/* =============================================================
   YieldAfterTax — stylesheet
   Trustworthy-fintech identity. Palette built around one idea:
   money you KEEP (emerald) vs money that DRAGS away to tax (amber).
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Ink & neutrals */
  --ink:        #0B2027;
  --ink-soft:   #33484F;
  --muted:      #5E7178;
  --line:       #E4EAE8;
  --line-strong:#CED9D5;
  --surface:    #F5F8F7;
  --paper:      #FFFFFF;

  /* Brand — deep emerald-teal */
  --brand:      #0F6B57;
  --brand-700:  #0A4E40;
  --brand-900:  #06382E;
  --brand-tint: #E7F1EE;

  /* Semantic finance colours */
  --kept:       #17B890;   /* net / money you keep */
  --kept-deep:  #0E8F6E;
  --drag:       #E08A3C;   /* tax drag / money lost */
  --drag-deep:  #C46F26;
  --drag-tint:  #FBEBD8;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: 0.78rem;
  --fs-sm:  0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.35rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  --fs-2xl: clamp(1.9rem, 1.3rem + 2.4vw, 2.6rem);
  --fs-hero: clamp(2.3rem, 1.4rem + 3.9vw, 3.6rem);

  /* Layout */
  --maxw: 1120px;
  --maxw-narrow: 760px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 32, 39, .06), 0 1px 3px rgba(11, 32, 39, .05);
  --shadow-md: 0 6px 20px rgba(11, 32, 39, .08), 0 2px 6px rgba(11, 32, 39, .05);
  --shadow-lg: 0 24px 60px rgba(6, 56, 46, .16), 0 8px 24px rgba(11, 32, 39, .08);

  --ring: 0 0 0 3px rgba(15, 107, 87, .28);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-color: rgba(15,107,87,.35); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--brand-900); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 200; transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { width: 100%; max-width: var(--maxw-narrow); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 6vw, 88px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.stack > * + * { margin-top: 1rem; }
.eyebrow {
  font-size: var(--fs-eyebrow); letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: .5em;
}
.eyebrow--light { color: #9FE3D0; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { color: var(--ink-soft); }
.lead { font-size: var(--fs-md); color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-base);
  padding: .8em 1.4em; border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-700); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--brand-tint); border-color: var(--brand); }
.btn--light { background: #fff; color: var(--brand-900); }
.btn--light:hover { background: #EAF4F0; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand__name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; letter-spacing: -.02em; }
.brand__name b { color: var(--brand); font-weight: 600; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .5rem .75rem; border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--brand-tint); }
.nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-tint); font-weight: 600; }
.nav a.btn--primary { color: #fff; background: var(--brand); }
.nav a.btn--primary:hover { color: #fff; background: var(--brand-700); text-decoration: none; }
.header-cta { margin-left: .4rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong); border-radius: 9px;
  width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
    gap: .2rem; box-shadow: var(--shadow-md); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .75rem; font-size: 1rem; }
  .header-cta { margin: .5rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 85% -10%, #12775F 0%, var(--brand-900) 55%, #052A22 100%);
  color: #EAF4F0;
  padding-block: clamp(40px, 5vw, 64px) 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 34px; -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%);
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: italic; color: #7FE0C6; font-weight: 500; }
.hero__sub { color: #C6E4DB; font-size: var(--fs-md); max-width: 52ch; margin-top: 1rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 1.6rem; }
.hero__meta div { line-height: 1.3; }
.hero__meta .k { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; color: #fff; font-variant-numeric: tabular-nums; }
.hero__meta .l { font-size: .82rem; color: #9FCFC2; }

/* ---------- Calculator ---------- */
.calc-shell { position: relative; z-index: 2; margin-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(28px, 4vw, 48px); }
.calc {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.calc__inputs { padding: clamp(22px, 3vw, 34px); border-right: 1px solid var(--line); }
.calc__results {
  padding: clamp(22px, 3vw, 34px); background: linear-gradient(180deg, #FBFDFC, #F3F8F6);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.calc__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: .3rem; }
.calc__note { font-size: .82rem; color: var(--muted); margin-bottom: 1.3rem; }

@media (max-width: 800px) {
  .calc { grid-template-columns: 1fr; }
  .calc__inputs { border-right: none; border-bottom: 1px solid var(--line); }
}

.field { margin-bottom: 1.15rem; }
.field:last-child { margin-bottom: 0; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .4rem; }
.field__label label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field__hint { font-size: .76rem; color: var(--muted); }

.input-money, .input-plain, select.input-plain {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
  font-variant-numeric: tabular-nums;
}
.input-money:focus, .input-plain:focus, select.input-plain:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

.money-wrap { position: relative; }
.money-wrap::before { content: "$"; position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.money-wrap .input-money { padding-left: 1.6rem; }

.suffix-wrap { position: relative; }
.suffix-wrap::after { content: attr(data-suffix); position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: .9rem; }
.suffix-wrap .input-plain { padding-right: 2.4rem; }

/* Range sliders */
.range-row { display: grid; grid-template-columns: 1fr 92px; gap: .8rem; align-items: center; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: var(--line-strong); outline-offset: 6px; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); border: 3px solid #fff; box-shadow: var(--shadow-sm); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 3px solid #fff;
  box-shadow: var(--shadow-sm); cursor: grab;
}
.range-num { text-align: center; }

.bracket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 420px) { .bracket-grid { grid-template-columns: 1fr; } }

/* Segmented toggle (filing status + comparison) */
.seg {
  display: flex; width: 100%; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 4px; gap: 3px;
}
.seg__btn {
  flex: 1 1 0; min-width: 0; appearance: none; cursor: pointer; border: none; background: transparent;
  font-family: var(--font-body); font-weight: 600; font-size: .8rem; color: var(--ink-soft);
  padding: .58rem .6rem; border-radius: var(--radius-pill); line-height: 1.25; text-align: center;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-active { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm); }
.seg__btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
/* Comparison variant: three items, wraps to a tidy stack on narrow cards */
.seg--compare { flex-wrap: wrap; }
.seg--compare .seg__btn { flex: 1 1 28%; }
@media (max-width: 560px) {
  .seg--compare { flex-direction: column; border-radius: var(--radius-sm); }
  .seg--compare .seg__btn { flex: 1 1 auto; width: 100%; border-radius: 8px; }
}
/* Extra-small phones: keep the 2-up filing toggle readable without overflow */
@media (max-width: 380px) {
  .seg__btn { font-size: .8rem; padding: .55rem .4rem; }
}

/* Native <select> — add a crisp chevron so it doesn't look like a plain box */
select.input-plain {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235E7178' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
}

/* Applied-rate chip in the state field label */
.field__hint--rate { color: var(--brand-700); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Inline checkbox (e.g. Do you live in NYC?) */
.calc-check {
  display: flex; align-items: center; gap: .55rem; margin-top: .6rem;
  font-size: .85rem; font-weight: 600; color: var(--brand-700); cursor: pointer;
  background: var(--brand-tint); border: 1px solid #CFE6DF; border-radius: var(--radius-sm);
  padding: .6rem .75rem; transition: border-color .15s ease, background .15s ease;
}
.calc-check:hover { border-color: var(--brand); }
.calc-check input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; flex: 0 0 auto; }
.custom-rate { margin-top: .6rem; }

/* Comparison / solution-finder block */
.compare {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 1.1rem 1.2rem; margin-bottom: 1.3rem;
}
.compare__title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.compare__note { font-size: .82rem; color: var(--muted); margin: .2rem 0 .9rem; max-width: 60ch; }
.compare__panel {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong);
  display: grid; grid-template-columns: minmax(170px, auto) 1fr; gap: .9rem 1.5rem; align-items: center;
}
@media (max-width: 620px) { .compare__panel { grid-template-columns: 1fr; align-items: start; } }
.compare__stat {
  display: inline-flex; flex-direction: column; background: #fff; border: 1px solid #E2DBFA;
  border-radius: 12px; padding: .8rem 1rem; box-shadow: var(--shadow-sm);
}
.compare__stat .l { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6B5BD0; }
.compare__stat .v { font-size: 1.55rem; font-weight: 800; color: #4B3BC4; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; margin-top: .1rem; }
.compare__sub { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: .15rem; }
.compare__explain { font-size: .86rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.compare__explain strong { color: var(--ink); }
.swatch-compare { background: #7A5AF8; }

/* Results */
.result-hero { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.result-hero .l { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.result-hero .v { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--kept-deep); line-height: 1.05; margin-top: .15rem; }
.result-hero .sub { font-size: .85rem; color: var(--muted); margin-top: .35rem; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .9rem; }
.stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .85rem; background: #fff; }
.stat .l { font-size: .76rem; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 1.22rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-top: .15rem; }
.stat--drag { background: var(--drag-tint); border-color: #F1D6B6; }
.stat--drag .v { color: var(--drag-deep); }
.stat--gross .v { color: var(--ink); }
.stat--interest .v { color: var(--brand-700); }

.result-foot { font-size: .76rem; color: var(--muted); margin-top: .9rem; line-height: 1.5; }

/* ---------- Chart / signature wedge ---------- */
.chart-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: clamp(20px, 3vw, 32px);
}
.chart-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }
.legend-item { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.legend-swatch { width: 14px; height: 14px; border-radius: 4px; }
.swatch-gross { background: var(--brand); }
.swatch-net { background: var(--kept); }
.swatch-drag { background: var(--drag); opacity: .55; }

.chart-figure { position: relative; width: 100%; }
.chart-figure svg { width: 100%; height: auto; overflow: visible; }
.wedge-callout {
  display: inline-flex; flex-direction: column; background: var(--drag-tint); border: 1px solid #F1D6B6;
  border-radius: 12px; padding: .7rem 1rem; min-width: 180px;
}
.wedge-callout .l { font-size: .78rem; font-weight: 600; color: var(--drag-deep); text-transform: uppercase; letter-spacing: .04em; }
.wedge-callout .v { font-size: 1.5rem; font-weight: 800; color: var(--drag-deep); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---------- Ad slots ---------- */
.ad-slot { max-width: var(--maxw); margin: 28px auto; padding-inline: 20px; text-align: center; }
.ad-slot__inner {
  min-height: 100px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line-strong); border-radius: 12px; background: #fff;
  color: var(--muted); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
}
.ad-label { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* ---------- Content / prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.6rem; margin-bottom: .8rem; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.8rem; margin-bottom: .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 500; }
.content-lead { border-left: 3px solid var(--brand); padding-left: 1.1rem; color: var(--ink-soft); font-size: var(--fs-md); }

.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); }
.toc p { font-weight: 700; color: var(--ink); margin-bottom: .5rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--brand); }

/* Formula blocks */
.formula {
  font-family: var(--font-display); background: #0B2027; color: #EAF4F0; border-radius: 12px;
  padding: 1.1rem 1.3rem; margin: 1rem 0 .4rem; overflow-x: auto; font-size: 1.15rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.formula var { font-style: italic; color: #7FE0C6; }
.frac { display: inline-flex; flex-direction: column; text-align: center; vertical-align: middle; margin: 0 .2em; }
.frac .num { border-bottom: 1px solid #7FE0C6; padding: 0 .3em; }
.frac .den { padding: 0 .3em; }
.formula sup { font-size: .7em; }
.formula-note { font-size: .85rem; color: var(--muted); margin: 0 0 1.4rem; }

/* Scenario cards */
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.4rem 0; }
@media (max-width: 720px) { .scenario-grid { grid-template-columns: 1fr; } }
.scenario { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; background: #fff; box-shadow: var(--shadow-sm); }
.scenario--low { border-top: 4px solid var(--kept); }
.scenario--high { border-top: 4px solid var(--drag); }
.scenario h4 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: .2rem; }
.scenario .place { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.scenario dl { margin-top: .9rem; display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; }
.scenario dt { color: var(--ink-soft); font-size: .9rem; }
.scenario dd { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.scenario .drag-line dd { color: var(--drag-deep); }
.scenario .net-line { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .3rem; }
.scenario .net-line dt, .scenario .net-line dd { font-size: 1rem; }
.scenario .net-line dd { color: var(--kept-deep); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 1.3rem 0; }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; min-width: 480px; }
table.data th, table.data td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--brand-tint); color: var(--brand-900); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
table.data td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: #FAFCFB; }

/* ---------- FAQ accordion ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.1rem 1.3rem; font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq__q:hover { background: #FAFCFB; }
.faq__icon { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--brand); position: relative; transition: background .2s ease; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--brand); border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq__icon::before { width: 10px; height: 2px; }
.faq__icon::after { width: 2px; height: 10px; transition: transform .2s ease; }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--brand-tint); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a { padding: 0 1.3rem; max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s ease; }
.faq__a[data-open="true"] { padding: 0 1.3rem 1.2rem; }
.faq__a p { margin: 0 0 .6rem; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- Disclaimer strip ---------- */
.disclaimer-strip { background: #0B2027; color: #C6D6D1; }
.disclaimer-strip .wrap { display: flex; gap: 1rem; align-items: flex-start; padding-block: 1.4rem; }
.disclaimer-strip svg { flex: 0 0 auto; width: 26px; height: 26px; stroke: var(--drag); }
.disclaimer-strip p { color: #C6D6D1; font-size: .88rem; margin: 0; }
.disclaimer-strip a { color: #9FE3D0; }

/* ---------- Trust band ---------- */
.trust { background: var(--paper); border-block: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding-block: 2.2rem; }
@media (max-width: 720px) { .trust__grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.trust__item { display: flex; gap: .9rem; align-items: flex-start; }
.trust__item svg { flex: 0 0 auto; width: 26px; height: 26px; stroke: var(--brand); }
.trust__item h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: .1rem; }
.trust__item p { font-size: .9rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #062A22; color: #B9D3CB; padding-block: clamp(40px, 5vw, 64px) 28px; }
.site-footer a { color: #B9D3CB; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name b { color: #7FE0C6; }
.footer-about { font-size: .88rem; color: #93B7AD; margin-top: .8rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: .82rem; color: #7FA69B; margin: 0; }
.footer-bottom .foot-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }

/* ---------- Page header (interior pages) ---------- */
.page-head { background: linear-gradient(160deg, var(--brand-900), var(--brand-700)); color: #EAF4F0; padding-block: clamp(40px, 5vw, 68px); }
.page-head h1 { color: #fff; }
.page-head p { color: #C6E4DB; margin-top: .6rem; max-width: 60ch; }
.page-head .eyebrow { color: #9FE3D0; }
.updated { font-size: .82rem; color: #9FCFC2; margin-top: 1rem; }

/* Legal / doc pages */
.doc { background: var(--surface); }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 880px) { .doc-layout { grid-template-columns: 1fr; } .doc-aside { position: static; } }
.doc-aside { position: sticky; top: 88px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); font-size: .9rem; }
.doc-aside p { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; color: var(--ink); margin-bottom: .6rem; }
.doc-aside ol { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.doc-aside li { margin-bottom: .45rem; }
.doc-aside a { color: var(--ink-soft); text-decoration: none; }
.doc-aside a:hover { color: var(--brand); }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 48px); }
.doc-card h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: .6rem; scroll-margin-top: 90px; }
.doc-card h2:first-child { margin-top: 0; }
.doc-card h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; margin-top: 1.4rem; margin-bottom: .4rem; }
.doc-card p, .doc-card li { color: var(--ink-soft); }
.doc-card p { margin-bottom: 1rem; }
.doc-card ul, .doc-card ol { margin: 0 0 1.1rem 1.2rem; }
.doc-card li { margin-bottom: .45rem; }
.doc-card address { font-style: normal; background: var(--brand-tint); border-radius: 10px; padding: 1rem 1.2rem; color: var(--ink); }

/* Contact form */
.form-grid { display: grid; gap: 1.1rem; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-two { grid-template-columns: 1fr; } }
.form-row { display: grid; gap: .4rem; }
.form-row label { font-weight: 600; font-size: .92rem; }
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--font-body); font-size: 1rem; padding: .7rem .85rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: #fff; width: 100%; color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { font-size: .92rem; font-weight: 600; padding: .8rem 1rem; border-radius: var(--radius-sm); display: none; }
.form-status.ok { display: block; background: var(--brand-tint); color: var(--brand-700); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.3rem; max-width: 720px; margin-inline: auto;
  display: none; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { font-size: .88rem; color: var(--ink-soft); flex: 1 1 320px; margin: 0; }
.cookie-banner .cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-banner .btn { padding: .6em 1.1em; font-size: .9rem; }

/* ---------- 404 ---------- */
.err { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 60px; }
.err__code { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 7rem); color: var(--brand); line-height: 1; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--brand-tint); color: var(--brand-700); font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.body-flex { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: #fff;
}
.pagination-link:hover {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand);
}
.pagination-link.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  cursor: default;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.2rem;
  height: 38px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: #fff;
  transition: all 0.2s ease;
}
.pagination-btn:hover {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- Grid Utils ---------- */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Utility Overrides ---------- */
[hidden] {
  display: none !important;
}


