:root {
  --night: #0e1411;
  --panel: #151d19;
  --panel-2: #1b2520;
  --paper: #f2efe7;
  --paper-2: #fbfaf6;
  --ink: #131a16;
  --muted: #69736c;
  --muted-dark: #a7b1aa;
  --line: #d9d5ca;
  --line-dark: rgba(255,255,255,.11);
  --gold: #f4c44e;
  --gold-deep: #a97a17;
  --emerald: #77c79a;
  --emerald-deep: #216342;
  --red: #d96e63;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
.shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 14px; top: -80px; z-index: 100; background: white; color: #111; padding: 10px 13px; border-radius: 8px; }
.skip-link:focus { top: 14px; }

.notice {
  padding: 9px 20px;
  background: #202b25;
  color: #dce6df;
  text-align: center;
  font-size: 12px;
  letter-spacing: .01em;
}
.site-header { background: var(--night); color: #f7f2e5; }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line-dark); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 20px; font-weight: 900; letter-spacing: -.035em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px 10px 15px 15px; color: #181407; background: linear-gradient(145deg,#ffe59b,#d79b20); transform: rotate(45deg); }
.brand-mark span { transform: rotate(-45deg); }
.nav-links { display: flex; align-items: center; gap: 26px; color: #aeb8b1; font-size: 13px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: white; }
.nav-cta { border: 1px solid rgba(119,199,154,.48); color: #9ee0ba!important; border-radius: 99px; padding: 10px 14px; font-weight: 800; }
.mobile-toggle { display: none; border: 1px solid var(--line-dark); background: transparent; color: white; border-radius: 10px; padding: 9px 11px; }

.hero-dark { background: var(--night); color: #f7f2e5; position: relative; overflow: hidden; }
.hero-dark::after { content: ""; position: absolute; width: 620px; height: 620px; top: -260px; right: -120px; border-radius: 50%; background: radial-gradient(circle,rgba(119,199,154,.12),rgba(119,199,154,0) 70%); pointer-events: none; }
.hero { padding: 74px 0 64px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 60px; align-items: end; }
.eyebrow { color: #9ee0ba; text-transform: uppercase; font-weight: 900; font-size: 11px; letter-spacing: .18em; }
.hero h1 { margin: 17px 0 0; max-width: 830px; font-size: clamp(54px,7vw,92px); line-height: .96; letter-spacing: -.074em; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-copy { color: #aab4ad; line-height: 1.65; font-size: 17px; }
.proofs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.proof { border: 1px solid var(--line-dark); border-radius: 99px; padding: 8px 11px; color: #ced6d0; font-size: 11px; }
.proof::before { content: "●"; color: var(--emerald); margin-right: 7px; font-size: 8px; }

.compact-hero { padding: 60px 0 54px; position: relative; z-index: 1; }
.compact-hero .breadcrumb { color: #89948d; font-size: 12px; margin-bottom: 28px; }
.compact-hero .breadcrumb a { color: #bec7c1; }
.compact-hero h1 { max-width: 850px; margin: 0; font-size: clamp(44px,6vw,76px); line-height: 1; letter-spacing: -.065em; }
.compact-hero p { max-width: 720px; color: #aab4ad; font-size: 17px; line-height: 1.65; margin: 23px 0 0; }

.calc-wrap { background: var(--night); padding-bottom: 92px; }
.calculator { background: var(--panel); border: 1px solid var(--line-dark); border-radius: 27px; overflow: hidden; color: #f8f4e8; box-shadow: 0 30px 90px rgba(0,0,0,.30); }
.calc-top { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-dark); padding: 0 25px; }
.calc-top strong { font-size: 13px; }
.price-status { display: flex; align-items: center; gap: 9px; color: #9aa59d; font-size: 11px; }
.price-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(244,196,78,.10); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; }
.calc-form, .calc-result { padding: 31px; }
.calc-form { border-right: 1px solid var(--line-dark); }
.calc-form h2, .calc-result h2 { margin: 0 0 7px; font-size: 21px; letter-spacing: -.03em; }
.calc-sub { color: #98a29b; font-size: 12px; line-height: 1.5; margin: 0 0 25px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-wide { grid-column: 1/-1; }
.calc-form label { display: block; color: #c5cec8; font-size: 11px; font-weight: 800; margin-bottom: 8px; }
.input-shell { display: flex; align-items: stretch; background: #0f1512; border: 1px solid var(--line-dark); border-radius: 12px; overflow: hidden; transition: .2s; }
.input-shell:focus-within { border-color: rgba(119,199,154,.7); box-shadow: 0 0 0 3px rgba(119,199,154,.08); }
.input-shell input, .input-shell select { width: 100%; min-width: 0; padding: 13px; border: 0; outline: 0; color: white; background: transparent; }
.input-shell > input + select { flex: 0 0 auto; width: auto; min-width: 112px; border-left: 1px solid var(--line-dark); }
.input-shell select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,#849087 50%),linear-gradient(135deg,#849087 50%,transparent 50%); background-position: calc(100% - 17px) 52%,calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.input-shell select option { background: #151d19; }
.unit { display: grid; place-items: center; padding: 0 12px; border-left: 1px solid var(--line-dark); color: #98a29b; font-size: 11px; white-space: nowrap; }
.unit.leading { border-left: 0; border-right: 1px solid var(--line-dark); }
.field-note { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; color: #77827a; font-size: 10px; }
.field-note button { border: 0; padding: 0; color: #9ee0ba; background: transparent; cursor: pointer; }
.calc-btn { width: 100%; margin-top: 21px; padding: 15px 17px; border: 0; border-radius: 12px; background: var(--emerald); color: #122117; font-weight: 900; cursor: pointer; box-shadow: 0 12px 25px rgba(58,134,89,.18); }
.calc-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.privacy-note { margin: 12px 0 0; color: #77827a; font-size: 10px; text-align: center; }
.calc-result { background: linear-gradient(150deg,rgba(244,196,78,.07),transparent 48%); }
.score-row { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin: 26px 0 21px; }
.score { color: white; font-size: clamp(54px,7vw,78px); line-height: .88; font-weight: 950; letter-spacing: -.075em; }
.score small { color: #98a29b; font-size: 20px; letter-spacing: 0; }
.verdict-wrap { text-align: right; }
.verdict { display: inline-block; padding: 7px 10px; border-radius: 99px; color: #201a08; background: var(--gold); font-size: 11px; font-weight: 900; }
.verdict-caption { display: block; margin-top: 8px; color: #869189; font-size: 10px; }
.meter { height: 11px; border-radius: 99px; background: linear-gradient(90deg,var(--red) 0 58%,var(--gold) 58% 78%,var(--emerald) 78%); position: relative; }
.meter-dot { position: absolute; left: 76%; top: 50%; width: 19px; height: 19px; transform: translate(-50%,-50%); border: 4px solid #172019; border-radius: 50%; background: white; transition: left .35s; }
.meter-legend { display: flex; justify-content: space-between; margin-top: 8px; color: #7d8880; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.result-list { margin-top: 26px; border-top: 1px solid var(--line-dark); }
.result-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line-dark); }
.result-row span { color: #98a29b; font-size: 12px; }
.result-row strong { font-size: 18px; letter-spacing: -.025em; }
.result-explainer { margin: 18px 0 0; color: #8d9890; font-size: 11px; line-height: 1.55; }
.result-disclaimer { margin: 14px 0 0; padding: 12px 13px; border: 1px solid rgba(244,196,78,.28); border-radius: 12px; color: #d8d0b9; background: rgba(244,196,78,.07); font-size: 11px; line-height: 1.55; }
.result-disclaimer strong { color: #f3e4b1; }
.result-disclaimer a { color: #9ee0ba; font-weight: 800; }
.result-disclaimer a:hover { color: white; }

.section { padding: 88px 0; }
.section.white { background: var(--paper-2); }
.section.dark { background: var(--night); color: #f8f4e8; }
.section-head { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 60px; margin-bottom: 38px; }
.section-head h2 { margin: 0; font-size: clamp(39px,5vw,66px); line-height: .99; letter-spacing: -.065em; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.dark .section-head p { color: var(--muted-dark); }
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.dark .card { border-color: var(--line-dark); background: var(--panel); }
.card-num { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #f4e8bd; color: var(--gold-deep); font-size: 11px; font-weight: 900; }
.card h3 { margin: 22px 0 9px; font-size: 19px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.dark .card p { color: var(--muted-dark); }

.comparison-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.quote-card { padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.quote-card.featured { color: white; background: var(--panel); border-color: var(--panel); }
.quote-card small { color: #778179; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.quote-card.featured small { color: #a5afa8; }
.quote-card strong { display: block; margin: 18px 0 5px; font-size: 36px; letter-spacing: -.055em; }
.quote-card p { margin: 0; color: #737e76; font-size: 12px; }
.quote-card.featured p { color: #aab4ad; }
.tag { display: inline-block; margin-top: 23px; padding: 6px 9px; border-radius: 99px; color: #24552f; background: #dff1c4; font-size: 10px; font-weight: 900; }

.karat-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: white; }
.dark .karat-grid { border-color: var(--line-dark); background: var(--panel); }
.karat-card { min-height: 190px; padding: 24px; border-right: 1px solid var(--line); text-decoration: none; transition: .2s; }
.dark .karat-card { border-color: var(--line-dark); }
.karat-card:last-child { border-right: 0; }
.karat-card:hover { background: #fff4d2; }
.dark .karat-card:hover { background: var(--panel-2); }
.karat-card small { color: var(--muted); }
.dark .karat-card small { color: var(--muted-dark); }
.karat-card strong { display: block; margin: 43px 0 8px; font-size: 27px; letter-spacing: -.045em; }
.karat-card span { color: var(--gold-deep); font-size: 12px; }
.dark .karat-card span { color: var(--gold); }

.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 70px; align-items: start; }
.prose { max-width: 780px; }
.prose h2 { margin: 54px 0 17px; font-size: 34px; letter-spacing: -.045em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 12px; font-size: 21px; }
.prose p, .prose li { color: #58635b; font-size: 16px; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; }
.formula { margin: 25px 0; padding: 22px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: white; font-size: 17px; font-weight: 800; }
.callout { margin: 26px 0; padding: 20px; border-radius: 15px; background: #e9f2ec; color: #245338; font-size: 14px; line-height: 1.6; }
.toc { position: sticky; top: 24px; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); }
.toc strong { display: block; margin-bottom: 13px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.toc a { display: block; padding: 8px 0; color: #667068; font-size: 13px; text-decoration: none; border-bottom: 1px solid #e3dfd5; }
.toc a:last-child { border-bottom: 0; }

.faq { max-width: 880px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 4px; font-size: 17px; font-weight: 800; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold-deep); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: -4px 0 22px; max-width: 750px; color: var(--muted); line-height: 1.65; }

.cta-band { padding: 55px 0; background: var(--gold); color: #201906; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta-inner h2 { margin: 0; font-size: clamp(31px,4vw,51px); letter-spacing: -.055em; }
.button-dark { display: inline-block; padding: 13px 18px; border-radius: 99px; color: white; background: var(--night); text-decoration: none; font-size: 13px; font-weight: 900; white-space: nowrap; }

.footer { padding: 48px 0 32px; background: var(--night); color: #a3ada6; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3,.6fr); gap: 42px; }
.footer-about p { max-width: 360px; color: #7f8a82; font-size: 12px; line-height: 1.65; }
.footer h3 { margin: 0 0 15px; color: #eef2ee; font-size: 12px; }
.footer a { display: block; width: fit-content; margin: 9px 0; color: #8f9a92; font-size: 12px; text-decoration: none; }
.footer a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line-dark); color: #707b73; font-size: 10px; line-height: 1.5; }

/* Standalone editorial and trust pages */
.site-header:has(> .site-nav) {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line-dark);
}
.site-nav { display: flex; align-items: center; gap: 26px; color: #aeb8b1; font-size: 13px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a.active { color: white; }
.site-header > .brand .brand-mark, .site-footer .brand-mark, .not-found .brand-mark { font-size: 0; }
.site-header > .brand .brand-mark::before, .site-footer .brand-mark::before, .not-found .brand-mark::before { content: "G"; display: block; transform: rotate(-45deg); font-size: 14px; font-weight: 950; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 18px; border: 0; border-radius: 99px; color: #152018; background: var(--emerald); text-decoration: none; font-size: 13px; font-weight: 900; white-space: nowrap; box-shadow: 0 12px 24px rgba(40,102,64,.16); }
.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button-small { padding: 10px 14px; font-size: 12px; }
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px max(20px, calc((100vw - var(--max)) / 2)) 68px;
  color: #f8f4e8;
  background: var(--night);
}
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; top: -290px; right: -100px; border-radius: 50%; background: radial-gradient(circle,rgba(119,199,154,.14),rgba(119,199,154,0) 70%); pointer-events: none; }
.page-hero > * { position: relative; z-index: 1; }
.page-hero.compact { padding-top: 64px; padding-bottom: 58px; }
.page-hero h1 { max-width: 900px; margin: 16px 0 0; font-size: clamp(44px,6vw,74px); line-height: .99; letter-spacing: -.065em; }
.page-hero p { max-width: 760px; margin: 23px 0 0; color: #aab4ad; font-size: 17px; line-height: 1.65; }
.content-section { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; padding: 80px 0; }
.content-section.prose { width: min(820px, calc(100% - 40px)); max-width: none; }
.content-section + .content-section { padding-top: 0; }
.formula-card { margin: 24px 0 28px; padding: 22px 24px; border-left: 4px solid var(--gold); border-radius: 0 15px 15px 0; background: var(--paper-2); box-shadow: 0 12px 35px rgba(26,31,27,.06); font-size: 17px; font-weight: 850; line-height: 1.55; }
.table-wrap { margin: 24px 0 10px; overflow-x: auto; border: 1px solid var(--line); border-radius: 17px; background: var(--paper-2); }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.table-wrap th { color: #465148; background: #ebe7dc; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.table-wrap td { font-size: 15px; }
.table-wrap tr:last-child td { border-bottom: 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.step-card { min-height: 250px; padding: 24px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper-2); }
.step-card > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-deep); background: #f4e8bd; font-size: 11px; font-weight: 900; }
.step-card h2 { margin: 48px 0 10px; font-size: 21px; letter-spacing: -.035em; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.content-section .notice { margin: 0 0 34px; padding: 18px 20px; border: 1px solid #c9ded0; border-radius: 14px; color: #245338; background: #e9f2ec; text-align: left; font-size: 14px; line-height: 1.6; }
.review-note { margin-top: 48px!important; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px!important; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 45px; padding: 48px max(20px, calc((100vw - var(--max)) / 2)); color: #a3ada6; background: var(--night); }
.site-footer p { max-width: 360px; color: #7f8a82; font-size: 12px; line-height: 1.65; }
.footer-links { display: flex; align-items: flex-start; gap: 24px; }
.footer-links a { color: #9ba59e; font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: white; }

.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; padding: 70px 20px; }
.not-found strong { display: block; color: var(--gold); font-size: 96px; line-height: 1; }
.not-found h1 { margin: 15px 0 12px; font-size: 42px; }
.not-found p { color: var(--muted-dark); }

@media (max-width: 920px) {
  .hero-grid, .calc-grid, .section-head, .content-layout { grid-template-columns: 1fr; }
  .calc-form { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .cards-3, .comparison-grid { grid-template-columns: 1fr; }
  .karat-grid { grid-template-columns: 1fr 1fr; }
  .karat-card:nth-child(2) { border-right: 0; }
  .karat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dark .karat-card:nth-child(-n+2) { border-color: var(--line-dark); }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .site-header:has(> .site-nav) { flex-wrap: wrap; padding-block: 18px; }
  .site-header:has(> .site-nav) > .site-nav { order: 3; width: 100%; overflow-x: auto; padding-top: 15px; border-top: 1px solid var(--line-dark); }
}
@media (max-width: 700px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 12px; right: 12px; z-index: 50; padding: 18px; border: 1px solid var(--line-dark); border-radius: 15px; background: #16201a; flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: 53px; }
  .calc-form, .calc-result { padding: 22px; }
  .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .site-header:has(> .site-nav) > .button { display: none; }
  .page-hero.compact { padding-top: 48px; padding-bottom: 48px; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .shell { width: min(var(--max), calc(100% - 24px)); }
  .karat-grid { grid-template-columns: 1fr; }
  .karat-card { min-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dark .karat-card { border-color: var(--line-dark); }
  .karat-card:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .score-row { align-items: flex-start; flex-direction: column; }
  .verdict-wrap { text-align: left; }
  .steps-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 18px; }
}
