/* ============================================================
   RSU Planner — styles.css
   Sharp, contemporary "developer docs" skin.
   Tokens are tweakable via --accent / fonts (see Tweaks panel).
   ============================================================ */

:root {
  /* color — neutrals near-black / off-white, low chroma */
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-sunken: #f1f1f3;
  --ink: #15171c;
  --ink-2: #3d424d;
  --ink-3: #6b7280;
  --ink-4: #9aa1ad;
  --line: #e6e7eb;
  --line-2: #d6d8de;

  /* accent (tweakable) */
  --accent: #2a6fdb;
  --accent-ink: #1c4f9e;
  --accent-soft: #eef3fd;

  /* the gap — warning/alert hue */
  --gap: oklch(0.58 0.18 25);
  --gap-soft: oklch(0.96 0.03 28);
  --gap-line: oklch(0.85 0.09 28);

  /* positive / withheld */
  --calm: #1f2937;

  /* type (tweakable) */
  --font-ui: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16,18,24,.06), 0 1px 1px rgba(16,18,24,.04);
  --shadow: 0 4px 16px -4px rgba(16,18,24,.10), 0 2px 6px -2px rgba(16,18,24,.06);
  --shadow-lg: 0 18px 50px -12px rgba(16,18,24,.22);

  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ===================== site header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 14px;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  letter-spacing: -0.04em;
}
.brand__name { font-size: 17px; letter-spacing: -0.02em; }
.brand__name .tld { color: var(--ink-4); font-weight: 500; }
.site-header nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.site-header nav a {
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.site-header nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .site-header nav { display: none; } }

/* ===================== hero ===================== */
.hero { padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  margin: 22px 0 0; max-width: 16ch; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--gap); }
.hero__sub {
  font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-2);
  max-width: 56ch; margin: 18px 0 0; text-wrap: pretty;
}
.hero__meta {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 13.5px; color: var(--ink-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ===================== ad slots ===================== */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; margin-inline: auto;
}
.ad-slot-label {
  display: none;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px;
}
.ad-slot:has(ins[data-ad-status="filled"]) .ad-slot-label { display: block; }
.ad-slot ins[data-ad-status="unfilled"] { display: none; }
.ad-slot--top-banner { min-height: 90px; margin-block: 8px 0; }
.ad-slot--pre-result { min-height: 250px; }
.ad-slot--mid-content { min-height: 90px; }
.ad-slot--pre-faq { min-height: 90px; }
.ad-slot--sidebar { min-height: 600px; }
@media (max-width: 900px) {
  .ad-slot--top-banner, .ad-slot--mid-content, .ad-slot--pre-faq { min-height: 100px; }
}
/* Unfilled slots render as reserved empty space — no outline, hatching, or
   label — until AdSense actually fills them. The min-height above keeps the
   layout stable (no CLS); the "Advertisement" label appears only on a real
   fill, gated by data-ad-status="filled". See docs/ad_slots.md ("Unfilled
   slot behavior") and CLAUDE.md ("No debug placeholders on the live domain"). */

/* mobile sticky anchor */
.ad-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: none; align-items: center; justify-content: center;
  min-height: 50px; padding: 4px 0;
}
.ad-sticky.is-visible { display: flex; }
.ad-sticky__close {
  position: absolute; top: -28px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-3);
  display: grid; place-items: center; cursor: pointer; font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.ad-sticky .ad-slot-label { display: none !important; }
@media (max-width: 900px) {
  .ad-sticky.is-enabled { display: flex; }
  body.has-sticky-ad { padding-bottom: 60px; }
}

/* ===================== app layout ===================== */
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding-block: 8px clamp(40px, 6vw, 72px);
}
@media (max-width: 1040px) { .app-grid { grid-template-columns: minmax(0,1fr); } }
.rail { position: sticky; top: 76px; }
@media (max-width: 1040px) { .rail { display: none; } }

/* ===================== calculator card ===================== */
.calc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.calc__head {
  padding: 22px 26px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.calc__head h2 { font-size: 19px; }
.calc__head .step { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); letter-spacing: 0.05em; }
.calc__body { padding: 24px 26px; }
@media (max-width: 560px) { .calc__body, .calc__head { padding-inline: 18px; } }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 7px;
}
.field .hint { font-size: 12.5px; color: var(--ink-4); font-weight: 400; line-height: 1.4; }
.field-input {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color .12s, box-shadow .12s;
  overflow: hidden;
}
.field-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-input .prefix, .field-input .suffix {
  padding: 0 11px; color: var(--ink-4); font-family: var(--font-mono);
  font-size: 14px; background: var(--bg-soft); align-self: stretch;
  display: flex; align-items: center; border-right: 1px solid var(--line);
}
.field-input .suffix { border-right: none; border-left: 1px solid var(--line); }
.field-input input, .field-input select {
  border: 0; outline: 0; background: transparent; width: 100%;
  padding: 11px 12px; font: inherit; font-size: 15.5px; color: var(--ink);
  font-variant-numeric: tabular-nums; min-width: 0;
}
.field-input select { cursor: pointer; appearance: none; padding-right: 34px; }
.field-input.has-select { position: relative; }
.field-input.has-select::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}

/* segmented control (filing status) */
.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--bg-sunken); border-radius: var(--radius-sm); padding: 3px; gap: 2px;
}
.segmented button {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 6px; border-radius: 6px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-3); transition: all .12s;
}
.segmented button[aria-pressed="true"] {
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm);
}

/* slider field */
.slider-field { display: flex; flex-direction: column; gap: 10px; }
.slider-top { display: flex; align-items: baseline; justify-content: space-between; }
.slider-top .val { font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--bg-sunken); outline: none; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  border: 3px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer;
}

/* advanced disclosure */
.disclosure { border-top: 1px solid var(--line); margin-top: 4px; }
.disclosure__btn {
  width: 100%; display: flex; align-items: center; gap: 10px; justify-content: space-between;
  background: transparent; border: 0; cursor: pointer; padding: 16px 0 14px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.disclosure__btn .chev { width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; }
.disclosure[open] .disclosure__btn .chev, .disclosure.is-open .disclosure__btn .chev { transform: rotate(-135deg); }
.disclosure__panel { padding-bottom: 18px; }

/* ===================== results ===================== */
.results { margin-top: 26px; display: flex; flex-direction: column; gap: 22px; }

.gap-card {
  border: 1px solid var(--gap-line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--gap-soft), var(--bg) 60%);
  overflow: hidden;
}
.gap-card__head { padding: 22px 26px 0; }
.gap-card__kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--gap); font-weight: 500;
}
.gap-figure {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 8px;
}
.gap-figure .amount {
  font-size: clamp(44px, 8vw, 76px); font-weight: 700; letter-spacing: -0.04em;
  color: var(--gap); font-variant-numeric: tabular-nums; line-height: 1;
}
.gap-figure .amount.is-surplus { color: var(--calm); }
.gap-figure .caption { font-size: 15px; color: var(--ink-2); max-width: 30ch; }
.gap-statement {
  padding: 16px 26px 22px; font-size: 16px; color: var(--ink-2); border-bottom: 1px solid var(--gap-line);
}
.gap-statement b { color: var(--ink); font-weight: 600; }
.gap-statement .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* opposing-bars viz */
.bars { padding: 24px 26px; display: grid; gap: 18px; }
.bars__track { position: relative; }
.bar-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 14px; margin-bottom: 14px; }
.bar-row__label { font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: right; }
.bar-row__label small { display: block; font-weight: 400; color: var(--ink-4); font-size: 11px; }
.bar { position: relative; height: 44px; border-radius: 8px; background: var(--bg-sunken); overflow: hidden; }
.bar__fill { position: absolute; inset: 0 auto 0 0; border-radius: 8px; transition: width .5s cubic-bezier(.22,.61,.36,1); display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; }
.bar__fill.withheld { background: var(--calm); }
.bar__fill.owed { background: var(--gap); }
.bar__val { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__val.outside { color: var(--ink); }
.gap-bracket {
  display: flex; align-items: center; gap: 10px; margin-left: 124px;
  font-size: 13px; color: var(--gap); font-weight: 600;
}
.gap-bracket .line { flex: 1; height: 1px; background: var(--gap-line); position: relative; }

/* breakdown table */
.breakdown { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.breakdown__row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline;
  padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.breakdown__row:last-child { border-bottom: 0; }
.breakdown__row .lbl { color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.breakdown__row .lbl small { color: var(--ink-4); font-size: 12px; }
.breakdown__row .amt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.breakdown__row.is-total { background: var(--bg-soft); font-weight: 700; }
.breakdown__row.is-total .lbl { color: var(--ink); font-weight: 700; }
.breakdown__row.is-sub { padding-left: 30px; font-size: 13.5px; }
.breakdown__row.is-sub .lbl { color: var(--ink-3); }
.tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: var(--bg-sunken); color: var(--ink-3); font-weight: 500; }
.tag.warn { background: var(--gap-soft); color: var(--gap); }

/* what-to-do options */
.section-title { font-size: 22px; margin-bottom: 4px; }
.section-sub { color: var(--ink-3); font-size: 15px; margin: 0 0 18px; }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .options { grid-template-columns: 1fr; } }
.option {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 8px; background: var(--bg);
  transition: border-color .12s, box-shadow .12s; position: relative;
}
.option:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.option__n { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); font-weight: 600; }
.option h4 { font-size: 16px; }
.option p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.option .big { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.option a.cta { font-size: 13.5px; font-weight: 600; margin-top: auto; }

/* settlement comparison */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.compare__card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare__card h4 { font-size: 15px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.compare__card .crow { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.compare__card .crow:last-child { border-bottom: 0; }
.compare__card .crow span:first-child { color: var(--ink-3); }
.compare__card .crow b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* callout / cliff warning */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--gap-line); background: var(--gap-soft);
  border-radius: var(--radius); padding: 16px 18px;
}
.callout__icon { width: 24px; height: 24px; flex: none; border-radius: 6px; background: var(--gap); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-mono); }
.callout h4 { font-size: 15px; margin-bottom: 4px; }
.callout p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.callout.info { border-color: var(--line-2); background: var(--bg-soft); }
.callout.info .callout__icon { background: var(--ink); }

/* concentration bar */
.concentration { display: flex; flex-direction: column; gap: 10px; }
.conc-bar { height: 16px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; }
.conc-bar__fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s; }
.conc-bar__fill.high { background: var(--gap); }

/* multi-year schedule */
.schedule { width: 100%; border-collapse: collapse; font-size: 14px; }
.schedule th, .schedule td { text-align: right; padding: 11px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.schedule th:first-child, .schedule td:first-child { text-align: left; }
.schedule thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-4); font-weight: 600; }
.schedule td.gap-cell { color: var(--gap); font-family: var(--font-mono); font-weight: 600; }
.schedule tfoot td { font-weight: 700; border-top: 2px solid var(--line-2); border-bottom: 0; }

/* result actions */
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); transition: all .12s;
}
.btn:hover { background: var(--bg-soft); text-decoration: none; }
.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: #000; }

/* card shell for result subsections */
.rcard { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; background: var(--bg); }
@media (max-width: 560px) { .rcard { padding: 20px 18px; } }
.rcard + .rcard { margin-top: 0; }

/* ===================== long-form content ===================== */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: clamp(26px, 4vw, 34px); margin: 56px 0 16px; letter-spacing: -0.025em; }
.prose h3 { font-size: 20px; margin: 32px 0 10px; }
.prose p { color: var(--ink-2); margin: 0 0 16px; }
.prose ul { color: var(--ink-2); padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .lead { font-size: 19px; color: var(--ink); }
.section-divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* faq */
.faq { max-width: 720px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 20px 36px 20px 0; font-size: 17px; font-weight: 600; color: var(--ink); position: relative; }
.faq__q::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 22px; color: var(--ink-4); font-weight: 400; transition: transform .15s; }
.faq__item.is-open .faq__q::after { content: "−"; }
.faq__a { color: var(--ink-2); font-size: 15.5px; padding: 0 0 22px; max-width: 64ch; }
.faq__a p { margin: 0 0 12px; }
.faq__a p:last-child { margin-bottom: 0; }

/* ===================== footer ===================== */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: clamp(50px, 8vw, 96px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--ink-3); font-size: 14px; max-width: 32ch; margin: 0; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--ink-2); font-size: 14px; }
.footer-col a:hover { color: var(--ink); }
.footer-disclaimer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 12.5px; color: var(--ink-4); line-height: 1.6; max-width: 90ch; }
.footer-disclaimer b { color: var(--ink-3); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 0 0 36px; font-size: 12.5px; color: var(--ink-4); flex-wrap: wrap; }
.footer-bottom a { color: var(--ink-3); }
.footer-bottom button { background: none; border: 0; color: var(--ink-3); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0; }
.footer-bottom button:hover { color: var(--ink); text-decoration: underline; }

/* ===================== privacy modal ===================== */
.modal-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(16,18,24,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--bg); border-radius: var(--radius-lg); max-width: 640px; width: 100%; max-height: 86vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__head h3 { font-size: 18px; }
.modal__close { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; color: var(--ink-3); font-size: 18px; display: grid; place-items: center; }
.modal__close:hover { background: var(--bg-soft); }
.modal__body { padding: 22px 24px; overflow-y: auto; font-size: 14.5px; color: var(--ink-2); }
.modal__body h4 { font-size: 15px; margin: 22px 0 8px; color: var(--ink); }
.modal__body h4:first-child { margin-top: 0; }
.modal__body p, .modal__body ul { margin: 0 0 12px; }
.modal__body ul { padding-left: 20px; }
.modal__body li { margin-bottom: 6px; }
.modal__body .short { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--ink); }
.modal__body strong { color: var(--ink); }
.modal__foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }

/* section heading band */
.band { padding: clamp(36px, 6vw, 64px) 0; }
.band--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

/* small print disclaimer under calc */
.fine-print { font-size: 12.5px; color: var(--ink-4); line-height: 1.55; margin-top: 14px; }
.fine-print a { color: var(--ink-3); text-decoration: underline; }

/* reveal animation — transform-only so content is never gated on opacity
   (a backgrounded tab pauses the animation; it must stay visible) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal .45s cubic-bezier(.22,.61,.36,1) both; }
}
@keyframes reveal { from { transform: translateY(10px); } to { transform: none; } }

/* print */
@media print {
  .site-header, .ad-slot, .ad-sticky, .tweaks-root, nav, .result-actions, .disclosure__btn .chev { display: none !important; }
  .calc, .rcard, .gap-card { box-shadow: none; border-color: #ccc; }
  body { font-size: 12pt; }
  .hero { padding: 12px 0; }
}
