@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,450;6..72,500&display=swap');

:root {
  --product-ink: #14231c;
  --product-muted: #66736c;
  --product-line: rgba(23, 74, 48, .14);
  --product-paper: #fbfcf8;
  --product-green: #0f7c4c;
  --product-green-dark: #095b39;
  --product-mint: #e7f4eb;
  --product-gold: #d2a93f;
  --product-display: 'Newsreader', Georgia, serif;
}

[data-theme="dark"] {
  --product-ink: #eef5f0;
  --product-muted: #a0aea6;
  --product-line: rgba(166, 211, 184, .14);
  --product-paper: #0b1410;
  --product-green: #58c88a;
  --product-green-dark: #8bdcab;
  --product-mint: #12251b;
}

.product-home,
.search-page,
.hubs-page,
.hub-detail-page,
.legal-page,
.research-page { color: var(--product-ink); }

.product-kicker { color: var(--product-green); font-size: .72rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.product-button { align-items: center; border-radius: 12px; display: inline-flex; font-size: .92rem; font-weight: 650; justify-content: center; min-height: 46px; padding: 0 20px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.product-button:hover { transform: translateY(-2px); }
.product-button.primary { background: var(--product-green); color: #fff; box-shadow: 0 12px 30px rgba(15, 124, 76, .18); }
.product-button.secondary { background: transparent; border: 1px solid var(--product-line); color: var(--product-ink); }

.home-hero { background: radial-gradient(circle at 78% 22%, rgba(76, 181, 117, .13), transparent 30%), linear-gradient(180deg, rgba(241, 247, 239, .75), transparent); border-bottom: 1px solid var(--product-line); padding: clamp(78px, 10vw, 138px) 0 88px; position: relative; overflow: hidden; }
[data-theme="dark"] .home-hero { background: radial-gradient(circle at 78% 22%, rgba(66, 180, 112, .12), transparent 32%), linear-gradient(180deg, #09150f, #08110d); }
.home-hero-grid { align-items: center; display: grid; gap: clamp(48px, 7vw, 100px); grid-template-columns: minmax(0, 1.15fr) minmax(330px, .65fr); }
.home-hero-copy h1 { font-family: var(--product-display); font-size: clamp(3rem, 5.2vw, 5.65rem); font-weight: 450; letter-spacing: -.045em; line-height: .98; margin: 22px 0 28px; max-width: 900px; }
.home-hero-copy > p:not(.home-trust-line) { color: var(--product-muted); font-size: clamp(1.08rem, 1.6vw, 1.32rem); line-height: 1.65; max-width: 660px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.home-trust-line { border-left: 2px solid var(--product-gold); color: var(--product-muted); font-size: .82rem; line-height: 1.55; margin-top: 30px; max-width: 600px; padding-left: 14px; }
.home-decision-card { background: color-mix(in srgb, var(--product-paper) 88%, transparent); border: 1px solid var(--product-line); border-radius: 24px; box-shadow: 0 30px 80px rgba(14, 58, 36, .09); overflow: hidden; padding: 8px; }
.decision-step { border-bottom: 1px solid var(--product-line); display: grid; gap: 3px 14px; grid-template-columns: 36px 1fr; padding: 24px 20px; }
.decision-step:last-child { border-bottom: 0; }
.decision-step > span { color: var(--product-green); font-size: .72rem; font-weight: 800; grid-row: 1 / 3; padding-top: 3px; }
.decision-step strong { font-size: 1rem; font-weight: 650; }
.decision-step small { color: var(--product-muted); font-size: .82rem; }

.home-paths { padding-bottom: 110px; padding-top: 104px; }
.product-section-heading > span,
.product-section-heading > div > span { color: var(--product-green); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.product-section-heading h2 { font-family: var(--product-display); font-size: clamp(2rem, 3.2vw, 3.2rem); font-weight: 450; letter-spacing: -.035em; margin: 10px 0 0; }
.product-section-heading.inline { align-items: end; display: flex; justify-content: space-between; }
.product-section-heading.inline > a { color: var(--product-green); font-size: .86rem; font-weight: 650; text-decoration: none; }
.home-path-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.home-path-card { background: var(--product-paper); border: 1px solid var(--product-line); border-radius: 20px; color: var(--product-ink); min-height: 320px; padding: 30px; position: relative; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border .25s ease; }
.home-path-card:hover { border-color: rgba(15, 124, 76, .4); box-shadow: 0 24px 60px rgba(14, 58, 36, .08); transform: translateY(-5px); }
.path-index { color: var(--product-green); font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
.home-path-card h3 { font-family: var(--product-display); font-size: 2rem; font-weight: 450; letter-spacing: -.025em; margin: 70px 0 14px; }
.home-path-card p { color: var(--product-muted); line-height: 1.65; }
.home-path-card > strong { bottom: 28px; font-size: .83rem; font-weight: 650; position: absolute; }
.home-path-card > strong span { color: var(--product-green); margin-left: 6px; }

.home-live { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); padding-bottom: 110px; }
.home-live-main, .home-editorial-card { border: 1px solid var(--product-line); border-radius: 22px; padding: 30px; }
.home-thread-list { margin-top: 24px; }
.home-thread-row { align-items: center; border-top: 1px solid var(--product-line); color: var(--product-ink); display: grid; gap: 14px; grid-template-columns: 132px 1fr 65px; padding: 18px 4px; text-decoration: none; }
.home-thread-category { color: var(--product-green); font-size: .72rem; font-weight: 650; }
.home-thread-title { font-size: .93rem; font-weight: 580; }
.home-thread-answer { color: var(--product-muted); font-size: .68rem; text-align: right; text-transform: uppercase; }
.home-thread-answer strong { color: var(--product-ink); display: block; font-size: 1rem; }
.home-editorial-card { background: var(--product-mint); align-self: start; }
.home-editorial-card h2 { font-family: var(--product-display); font-size: 2rem; font-weight: 450; letter-spacing: -.025em; line-height: 1.08; margin: 50px 0 18px; }
.home-editorial-card p { color: var(--product-muted); line-height: 1.65; }
.home-editorial-card a { color: var(--product-green); display: inline-block; font-size: .84rem; font-weight: 650; margin-top: 28px; text-decoration: none; }

.home-tools-band { background: #0b2418; color: #f3f8f5; padding: 90px 0; }
[data-theme="dark"] .home-tools-band { background: #10271b; }
.product-section-heading.light h2, .product-section-heading.light > div > span, .product-section-heading.light > a { color: inherit; }
.home-tool-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); margin-top: 34px; }
.home-tool-card { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; color: #f3f8f5; display: flex; flex-direction: column; min-height: 190px; padding: 22px; position: relative; text-decoration: none; }
.home-tool-card > span { color: #8ed9ac; font-size: .68rem; font-weight: 750; letter-spacing: .1em; }
.home-tool-card strong { font-family: var(--product-display); font-size: 1.35rem; font-weight: 450; margin-top: 38px; }
.home-tool-card small { color: rgba(255,255,255,.62); line-height: 1.45; margin-top: 8px; }
.home-tool-card i { bottom: 20px; color: #8ed9ac; font-style: normal; position: absolute; right: 22px; }
.home-closing { padding: 120px 20px; text-align: center; }
.home-closing h2 { font-family: var(--product-display); font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 450; letter-spacing: -.04em; line-height: 1.05; margin: 18px auto; max-width: 930px; }
.home-closing p { color: var(--product-muted); margin-bottom: 30px; }

.search-page, .hubs-page, .hub-detail-page, .research-page { min-height: 70vh; padding-bottom: 100px; padding-top: 80px; }
.search-page-header, .hubs-header, .research-header { max-width: 880px; }
.search-page-header h1, .hubs-header h1, .hub-detail-header h1, .research-header h1 { font-family: var(--product-display); font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 450; letter-spacing: -.04em; line-height: 1; margin: 18px 0 20px; }
.search-page-header p, .hubs-header p, .hub-detail-header p, .research-header > p { color: var(--product-muted); font-size: 1.05rem; line-height: 1.65; }
.search-page-form { background: var(--product-paper); border: 1px solid var(--product-line); border-radius: 14px; display: flex; margin: 34px 0 16px; max-width: 760px; padding: 6px; }
.search-page-form input { background: transparent; border: 0; color: var(--product-ink); flex: 1; font: inherit; min-width: 0; outline: none; padding: 0 16px; }
.search-page-form button { background: var(--product-green); border: 0; border-radius: 10px; color: #fff; font-weight: 650; padding: 13px 24px; }
.search-groups { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 52px; }
.search-group { border: 1px solid var(--product-line); border-radius: 18px; overflow: hidden; }
.search-group-title { align-items: center; background: var(--product-mint); display: flex; font-size: .75rem; font-weight: 750; justify-content: space-between; letter-spacing: .08em; padding: 16px 20px; text-transform: uppercase; }
.search-result-row { align-items: center; border-top: 1px solid var(--product-line); color: var(--product-ink); display: flex; justify-content: space-between; padding: 18px 20px; text-decoration: none; }
.search-result-row span { display: flex; flex-direction: column; gap: 5px; }
.search-result-row strong { font-size: .92rem; font-weight: 620; }
.search-result-row small { color: var(--product-muted); line-height: 1.4; }
.search-result-row i { color: var(--product-green); font-style: normal; }
.search-empty { background: var(--product-mint); border-radius: 18px; margin-top: 40px; padding: 30px; }
.search-empty a { color: var(--product-green); }

.hub-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-top: 50px; }
.hub-card { border: 1px solid var(--product-line); border-radius: 20px; color: var(--product-ink); min-height: 300px; padding: 30px; position: relative; text-decoration: none; }
.hub-number { color: var(--product-green); font-size: .72rem; font-weight: 800; }
.hub-card h2 { font-family: var(--product-display); font-size: 2.1rem; font-weight: 450; letter-spacing: -.025em; margin: 42px 0 12px; }
.hub-card p { color: var(--product-muted); line-height: 1.6; max-width: 540px; }
.hub-keywords { color: var(--product-muted); display: block; font-size: .74rem; margin-top: 20px; }
.hub-card > strong { bottom: 28px; color: var(--product-green); font-size: .82rem; position: absolute; }
.product-back { color: var(--product-green); display: inline-block; font-size: .85rem; font-weight: 650; margin-bottom: 45px; text-decoration: none; }
.hub-detail-header { border-bottom: 1px solid var(--product-line); padding-bottom: 50px; }
.decision-roadmap { list-style: none; margin: 0; padding: 0; }
.decision-roadmap > li { border-bottom: 1px solid var(--product-line); display: grid; gap: 30px; grid-template-columns: 70px 1fr; padding: 48px 0; }
.decision-roadmap > li > span { color: var(--product-green); font-size: .76rem; font-weight: 800; }
.decision-roadmap small { color: var(--product-muted); font-size: .68rem; font-weight: 750; letter-spacing: .12em; }
.decision-roadmap h2 { font-family: var(--product-display); font-size: 2rem; font-weight: 450; margin: 8px 0 22px; }
.resource-links { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.resource-links a { border: 1px solid var(--product-line); border-radius: 13px; color: var(--product-ink); display: flex; flex-direction: column; gap: 8px; padding: 17px; text-decoration: none; }
.resource-links strong { font-size: .9rem; font-weight: 620; }
.resource-links span { color: var(--product-green); font-size: .74rem; }

.legal-page { display: grid; gap: 72px; grid-template-columns: 210px minmax(0, 760px); justify-content: center; padding-bottom: 100px; padding-top: 80px; }
.legal-index { align-self: start; display: flex; flex-direction: column; gap: 5px; position: sticky; top: 100px; }
.legal-index > span { color: var(--product-muted); font-size: .65rem; font-weight: 800; letter-spacing: .13em; margin-bottom: 10px; }
.legal-index a { border-radius: 8px; color: var(--product-muted); font-size: .82rem; padding: 9px 11px; text-decoration: none; }
.legal-index a.active { background: var(--product-mint); color: var(--product-green); font-weight: 650; }
.legal-document h1 { font-family: var(--product-display); font-size: clamp(2.6rem, 4vw, 4.2rem); font-weight: 450; letter-spacing: -.035em; margin: 16px 0; }
.legal-updated { color: var(--product-muted); font-size: .76rem; }
.legal-document section { border-top: 1px solid var(--product-line); margin-top: 34px; padding-top: 28px; }
.legal-document h2 { font-size: 1.08rem; font-weight: 650; }
.legal-document p, .legal-document li { color: var(--product-muted); font-size: .92rem; line-height: 1.75; }
.legal-contact { background: var(--product-mint); border-radius: 14px; margin-top: 40px; padding: 22px; }
.legal-contact p { margin-bottom: 0; }
.legal-review-note { border-left: 2px solid var(--product-gold); font-size: .78rem !important; margin-top: 28px; padding-left: 14px; }

.research-integrity { align-items: flex-start; background: var(--product-mint); border-radius: 14px; display: flex; flex-direction: column; gap: 5px; margin-top: 32px; max-width: 780px; padding: 18px 20px; }
.research-integrity strong { font-size: .84rem; }
.research-integrity span { color: var(--product-muted); font-size: .8rem; line-height: 1.5; }
.research-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 330px; margin-top: 50px; }
.research-form { border: 1px solid var(--product-line); border-radius: 20px; display: grid; gap: 20px; padding: 30px; }
.research-form label { color: var(--product-ink); display: flex; flex-direction: column; font-size: .86rem; font-weight: 620; gap: 9px; }
.research-form select { background: var(--product-paper); border: 1px solid var(--product-line); border-radius: 10px; color: var(--product-ink); font: inherit; padding: 13px; }
.research-form input, .research-form textarea { background:var(--product-paper); border:1px solid var(--product-line); border-radius:10px; color:var(--product-ink); font:inherit; padding:13px; }
.research-form textarea { min-height:120px; resize:vertical; }
.research-form button { border: 0; cursor: pointer; }
.research-message { color: var(--product-muted); font-size: .82rem; min-height: 20px; }
.research-status { align-self: start; background: #0b2418; border-radius: 20px; color: #fff; padding: 30px; }
.research-status > span { color: #8ed9ac; font-size: .68rem; font-weight: 750; letter-spacing: .12em; }
.research-status > strong { display: block; font-family: var(--font-display); font-size: 4.5rem; font-weight: 520; margin: 32px 0 10px; }
.research-status p, .research-status small { color: rgba(255,255,255,.65); line-height: 1.55; }
.research-progress { background: rgba(255,255,255,.12); border-radius: 999px; height: 6px; margin: 25px 0; overflow: hidden; }
.research-progress i { background: #78d69d; display: block; height: 100%; }

.calculator-product-dock { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); padding-bottom: 80px; padding-top: 35px; }
.auth-legal-consents { border-top: 1px solid var(--product-line); display: grid; gap: 12px; margin: 22px 0 18px; padding-top: 18px; }
.auth-legal-consents label { align-items: flex-start; color: var(--product-muted); cursor: pointer; display: flex; font-size: .76rem; gap: 10px; line-height: 1.5; }
.auth-legal-consents input { accent-color: var(--product-green); flex: 0 0 auto; margin-top: 3px; }
.auth-legal-consents a { color: var(--product-green); }
.auth-legal-consents small { display: block; font-size: .69rem; }
.nav-notification-wrap { position:relative; }
.notification-count { align-items:center; background:#d85d53; border:2px solid var(--bg-primary,#fff); border-radius:999px; color:#fff; display:flex; font-size:.55rem; font-weight:750; height:17px; justify-content:center; min-width:17px; padding:0 3px; position:absolute; right:-5px; top:-5px; }
.notification-panel { background:var(--product-paper); border:1px solid var(--product-line); border-radius:14px; box-shadow:0 24px 70px rgba(5,25,15,.2); color:var(--product-ink); max-height:380px; overflow:auto; padding:8px; position:absolute; right:0; top:calc(100% + 12px); width:330px; z-index:1000; }
.notification-panel-title { align-items:center; display:flex; justify-content:space-between; padding:10px; }
.notification-panel-title strong { font-size:.82rem; }
.notification-panel-title a { color:var(--product-green); font-size:.7rem; text-decoration:none; }
#notificationList p { color:var(--product-muted); font-size:.76rem; padding:15px 10px; }
.notification-item { border-top:1px solid var(--product-line); color:var(--product-ink); display:flex; flex-direction:column; gap:4px; padding:12px 10px; text-decoration:none; }
.notification-item.is-unread { background:var(--product-mint); }
.notification-item strong { font-size:.78rem; font-weight:620; }
.notification-item small { color:var(--product-muted); font-size:.68rem; }
.calculator-method, .calculator-scenario { border: 1px solid var(--product-line); border-radius: 18px; color: var(--product-ink); padding: 26px; }
.calculator-method > span, .calculator-scenario > span { color: var(--product-green); font-size: .68rem; font-weight: 750; letter-spacing: .12em; }
.calculator-method h2, .calculator-scenario h2 { font-family: var(--product-display); font-size: 1.7rem; font-weight: 450; letter-spacing: -.025em; margin: 20px 0; }
.calculator-method details { border-top: 1px solid var(--product-line); padding-top: 16px; }
.calculator-method summary { color: var(--product-green); cursor: pointer; font-size: .82rem; font-weight: 650; }
.calculator-method details strong { display: block; font-size: .78rem; margin-top: 20px; }
.calculator-method details p { color: var(--product-muted); font-size: .82rem; line-height: 1.6; }
.calculator-scenario-actions { display: flex; gap: 8px; }
.calculator-scenario-actions button { background: var(--product-green); border: 0; border-radius: 9px; color: #fff; cursor: pointer; font-weight: 650; padding: 11px 14px; }
.calculator-scenario-actions button:last-child { background: var(--product-mint); color: var(--product-green); }
.scenario-list { display: grid; gap: 7px; margin-top: 18px; }
.scenario-list > small { color: var(--product-muted); }
.scenario-list button { align-items: center; background: transparent; border: 1px solid var(--product-line); border-radius: 9px; color: var(--product-ink); cursor: pointer; display: flex; justify-content: space-between; padding: 11px; text-align: left; }
.scenario-list button small { color: var(--product-muted); }

@media (max-width: 900px) {
  .home-hero-grid, .home-live, .research-layout { grid-template-columns: 1fr; }
  .home-path-grid { grid-template-columns: 1fr; }
  .home-path-card { min-height: 270px; }
  .home-tool-grid { grid-template-columns: repeat(2, 1fr); }
  .search-groups, .hub-grid { grid-template-columns: 1fr; }
  .legal-page { gap: 30px; grid-template-columns: 1fr; }
  .legal-index { flex-direction: row; overflow-x: auto; position: static; }
  .legal-index > span { display: none; }
}

@media (max-width: 620px) {
  .home-hero { padding: 58px 0 62px; }
  .home-hero-copy h1 { font-size: 3rem; }
  .home-decision-card { border-radius: 17px; }
  .home-paths { padding-bottom: 72px; padding-top: 72px; }
  .home-live-main, .home-editorial-card { padding: 22px; }
  .home-thread-row { grid-template-columns: 1fr 56px; }
  .home-thread-category { grid-column: 1; }
  .home-thread-title { grid-column: 1; }
  .home-thread-answer { grid-column: 2; grid-row: 1 / 3; }
  .home-tool-grid { grid-template-columns: 1fr; }
  .product-section-heading.inline { align-items: flex-start; flex-direction: column; gap: 16px; }
  .resource-links { grid-template-columns: 1fr; }
  .calculator-product-dock { grid-template-columns: 1fr; }
  .decision-roadmap > li { grid-template-columns: 42px 1fr; }
  .search-page, .hubs-page, .hub-detail-page, .research-page { padding-top: 48px; }
}
