/* ════════════════════════════════════════════════════════════════════════════
   Actually. — marketing.css
   Single stylesheet for the marketing site at tryactually.app.
   Mobile-first. CSS variables per D-076 (burnt orange + green + grayscale,
   no red, no gold/amber). No third-party network requests. Privacy-friendly first-party analytics only (D-103).
   ════════════════════════════════════════════════════════════════════════════ */

/* ─── Self-hosted fonts ───────────────────────────────────────────────────── */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sora-latin-vf.woff2') format('woff2-variations'),
       url('../fonts/sora-latin-vf.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-latin-400i.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0A0A0A;
  --bg-elevated: #141414;
  --bg-card: #1A1A1A;
  --bg-input: #0F0F0F;
  --border: #262626;
  --border-strong: #383838;
  --text: #F5F1EA;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --text-dim-strong: #8B92A0;
  --brand: #C94E1A;
  --brand-text: #E26A30;
  --brand-hover: #E05B26;
  --brand-soft: rgba(201, 78, 26, 0.12);
  --brand-faint: rgba(201, 78, 26, 0.06);
  --yours: #22C55E;
  --yours-soft: rgba(34, 197, 94, 0.12);
  --focus: #FFB37A;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 8px 24px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1120px;
  --font-sans: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'DM Serif Display', ui-serif, Georgia, 'Times New Roman', serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--brand-text); }
/* In-prose link distinguishability — underline by default to satisfy axe link-in-text-block (WCAG 1.4.1).
   Pre-styled link contexts (.btn, .calc-card, .donation-tier, footer-grid, etc.) opt out via class-specific rules. */
.lede a, .section-lead a, .prose a, .answer a, .text-muted a, p a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.btn, .calc-card, .donation-tier, .compare-row a, .footer-grid a, .primary-nav a, .mobile-nav a, .crumb a, .brand-mark { text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--brand); color: #fff;
  padding: 8px 12px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { top: 8px; color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header > .container {
  display: flex; align-items: center; gap: 16px; min-height: 60px;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex; align-items: center;
}
.brand-mark .dot { color: var(--brand-text); }
.brand-mark:hover { color: var(--text); }

.primary-nav { margin-left: auto; display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 12px;
  font-size: 14px; color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a[aria-current="page"] { color: var(--brand-text); border-bottom-color: var(--brand-text); }

.cta-open {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px;
  background: var(--brand); color: #fff;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: background 0.15s; white-space: nowrap;
}
.cta-open:hover { background: var(--brand-hover); color: #fff; }

.menu-toggle {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (min-width: 880px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
}

/* Note: do NOT add class="container" to the #mobile-nav div.
   The .site-header > .container rule wins on specificity and forces display:flex. */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 20px;
  margin: 8px 0 0;
  max-width: none;
  width: min(240px, calc(100vw - 40px));
  padding: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 241, 234, 0.04);
  z-index: 60;
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.mobile-nav a {
  display: flex; align-items: center; min-height: 48px;
  padding: 0 12px; color: var(--text); border-radius: 8px;
  text-decoration: none;
}
.mobile-nav a:hover { background: var(--bg); color: var(--text); }
@media (min-width: 768px) { .mobile-nav { right: 32px; } }
@media (min-width: 880px) { .mobile-nav { display: none !important; } }

/* Beta banner */
.beta-banner { background: var(--brand-soft); color: var(--text); border-bottom: 1px solid var(--border); }
.beta-banner > .container {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: center; justify-content: center;
  padding: 10px 20px; font-size: 13px; text-align: center;
}
.beta-banner strong { color: var(--brand-text); font-weight: 600; }
.beta-banner a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }

/* Sections */
main { display: block; }
section { padding: 56px 0; }
@media (min-width: 768px) { section { padding: 80px 0; } }

.section-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-text); margin: 0 0 12px; font-weight: 600;
  font-family: var(--font-sans);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12; margin: 0 0 16px;
}
.section-lead { color: var(--text-muted); font-size: 17px; max-width: 60ch; margin: 0 0 36px; }

/* Hero (landing) */
.hero { padding: 48px 0 32px; }
@media (min-width: 768px) { .hero { padding: 80px 0 56px; } }

.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.06; letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--brand); font-style: italic; }
.hero p.lede { font-size: clamp(16px, 2vw, 18px); color: var(--text-muted); margin: 0 0 28px; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 20px;
  border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  font-family: var(--font-sans);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.hero-trust { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-muted); font-size: 13px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .check { color: var(--yours); font-weight: 700; }

.preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow);
}
.preview h3 {
  margin: 0 0 6px; font-size: 11px;
  color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--font-sans);
}
.preview .quiet-line { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; }
.preview .moneymap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 14px 0; padding: 14px;
  background: var(--bg-elevated); border-radius: var(--radius); border: 1px solid var(--border);
}
.preview .moneymap .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.preview .moneymap .yours-num { color: var(--yours); font-size: 22px; font-weight: 600; font-feature-settings: "tnum"; }
.preview .moneymap .interest-num { color: var(--brand-text); font-size: 22px; font-weight: 600; font-feature-settings: "tnum"; }
.preview ul.debt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.preview ul.debt-list li {
  padding: 12px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.preview .debt-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; flex-wrap: wrap; gap: 6px; }
.preview .debt-name { color: var(--text); }
.preview .debt-rate { font-size: 12px; color: var(--text-muted); margin-left: 6px; }
.preview .debt-cost { color: var(--brand-text); font-weight: 600; font-feature-settings: "tnum"; }
.preview .split { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 6px; font-size: 12px; color: var(--text-muted); font-feature-settings: "tnum"; }
.preview .split .yours-text { color: var(--yours); }

/* Three-up */
.explainer-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .explainer-grid { grid-template-columns: repeat(3, 1fr); } }
.explainer-card { padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.explainer-card h3 { font-size: 18px; margin: 8px 0; font-weight: 600; font-family: var(--font-sans); }
.explainer-card p { margin: 0; color: var(--text-muted); }
.explainer-card .step { font-family: var(--font-display); font-size: 32px; color: var(--brand); line-height: 1; font-feature-settings: "tnum"; }

/* Calculator tile grid */
.calc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .calc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .calc-grid { grid-template-columns: repeat(4, 1fr); } }
.calc-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  color: var(--text); transition: border-color 0.15s, transform 0.15s;
}
.calc-card:hover { border-color: var(--brand); transform: translateY(-1px); color: var(--text); }
.calc-card h3 { margin: 0; font-size: 17px; font-weight: 600; font-family: var(--font-sans); }
.calc-card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.calc-card .arrow { margin-top: auto; color: var(--brand-text); font-size: 14px; font-weight: 600; }

/* Privacy grid */
.privacy-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
.privacy-card { padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.privacy-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; font-family: var(--font-sans); }
.privacy-card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.privacy-card .icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-text);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

/* Free-forever */
.free-block { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.free-block .free-grid { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .free-block .free-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; } }
.free-block ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; color: var(--text-muted); }
.free-block ul li { display: flex; gap: 8px; align-items: flex-start; }
.free-block ul li::before { content: "·"; color: var(--brand); font-weight: 700; font-size: 22px; line-height: 1; margin-top: 2px; }
.donate-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.donate-card h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.donate-card p { margin: 0 0 16px; color: var(--text-muted); }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; transition: border-color 0.15s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; transition: transform 0.15s; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 20px; color: var(--text-muted); }

/* Footer */
.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 40px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; } }
.footer-grid h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; font-family: var(--font-sans); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--text-muted); display: inline-flex; align-items: center; min-height: 32px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 13px; }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tnum { font-feature-settings: "tnum"; }
.text-muted { color: var(--text-muted); }
.text-yours { color: var(--yours); }
.footer-tagline { margin: 12px 0 0; max-width: 32ch; color: var(--text-muted); }


/* ─── Calculator pages: shared layout + components ───────────────────────── */

.calc-hero { padding: 32px 0 24px; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .calc-hero { padding: 56px 0 40px; } }
.calc-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 4.5vw, 44px); line-height: 1.08;
  letter-spacing: -0.015em; margin: 0 0 14px;
}
.calc-hero p.lede { font-size: 17px; color: var(--text-muted); margin: 0; max-width: 60ch; }
.calc-hero .crumb { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.08em; }

.calc-page-grid { display: grid; gap: 24px; grid-template-columns: 1fr; padding: 32px 0; }
@media (min-width: 980px) {
  .calc-page-grid { grid-template-columns: minmax(320px, 1fr) minmax(0, 1.3fr); gap: 36px; padding: 48px 0; }
}

.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
@media (min-width: 768px) { .panel { padding: 24px; } }
.panel + .panel { margin-top: 16px; }
.panel h2 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin: 0 0 14px;
  font-weight: 600; font-family: var(--font-sans);
}

/* Form fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.field .help { font-size: 12px; color: var(--text-muted); }
.section-help {
  margin: -8px 0 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.field-error { color: var(--brand-text); font-size: 13px; line-height: 1.4; margin: 6px 0 0; }
.input-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 540px) { .input-row { grid-template-columns: 1fr 1fr; } }
.input-row.three { grid-template-columns: 1fr; }
@media (min-width: 540px) { .input-row.three { grid-template-columns: repeat(3, 1fr); } }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-sans); font-size: 16px;
  padding: 11px 14px; border-radius: var(--radius);
  font-feature-settings: "tnum"; -moz-appearance: textfield;
}
.input-wrap input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-wrap.has-prefix input { padding-left: 30px; }
.input-wrap.has-suffix input { padding-right: 36px; }
.input-wrap .prefix, .input-wrap .suffix {
  position: absolute; font-size: 14px; color: var(--text-muted);
  pointer-events: none; font-feature-settings: "tnum";
}
.input-wrap .prefix { left: 14px; }
.input-wrap .suffix { right: 14px; }

select {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-sans); font-size: 16px;
  padding: 11px 14px; border-radius: var(--radius);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 1 6 6 11 1'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}
select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Button group */
.button-group {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px; background: var(--bg-input); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 4px;
}
.button-group__btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; background: transparent; border: 1px solid transparent;
  color: var(--text-muted); font-family: var(--font-sans);
  font-size: 13px; font-weight: 600; border-radius: 8px;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.button-group__btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.button-group__btn:hover:not([aria-pressed="true"]) { background: var(--bg-elevated); color: var(--text); }

/* Slider */
.slider-row { display: flex; flex-direction: column; gap: 10px; }
.slider-row .slider-header {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--text-muted);
}
.slider-row .slider-header strong { color: var(--brand-text); font-weight: 700; font-feature-settings: "tnum"; font-size: 17px; }
input[type="range"] { width: 100%; height: 28px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--bg-input); border: 1px solid var(--border-strong); border-radius: 999px; }
input[type="range"]::-moz-range-track { height: 6px; background: var(--bg-input); border: 1px solid var(--border-strong); border-radius: 999px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px;
  background: var(--brand); border: 3px solid var(--bg);
  border-radius: 50%; margin-top: -9px; cursor: grab;
  box-shadow: 0 0 0 1px var(--border-strong);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; background: var(--brand);
  border: 3px solid var(--bg); border-radius: 50%; cursor: grab;
}
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--focus); }

/* Results */
.results-headline {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 16px;
}
.results-headline .label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin: 0 0 8px; font-weight: 600;
}
.results-headline .figure {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 5vw, 48px); color: var(--brand);
  line-height: 1; font-feature-settings: "tnum"; margin: 0 0 6px;
}
.results-headline .sublabel { font-size: 14px; color: var(--text-muted); }
.results-headline .sublabel .yours-text { color: var(--yours); }
.results-headline .sublabel .interest-text { color: var(--brand-text); }

.results-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 540px) { .results-grid { grid-template-columns: repeat(4, 1fr); } }
.result-tile { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.result-tile .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
.result-tile .figure { font-feature-settings: "tnum"; font-size: 19px; font-weight: 600; color: var(--text); margin-top: 4px; font-family: var(--font-sans); }
.result-tile.tone-brand .figure { color: var(--brand-text); }
.result-tile.tone-yours .figure { color: var(--yours); }
.figure-base {
  color: var(--text-muted);
  font-size: 0.65em;
  display: block;
  font-weight: 400;
  font-family: var(--font-sans);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--text-dim);
}
.figure-arrow {
  display: none;
}
.figure-yours {
  color: var(--yours);
  font-weight: 600;
  display: block;
}

/* Split bar */
.split-bar {
  height: 8px; border-radius: 999px;
  background: var(--bg-input); border: 1px solid var(--border-strong);
  overflow: hidden; display: flex; margin: 12px 0;
}
.split-bar .seg { height: 100%; }
.split-bar .seg--brand { background: var(--brand); }
.split-bar .seg--yours { background: var(--yours); }
.split-bar .seg--muted { background: var(--text-dim); }
.split-bar .seg--soft { background: var(--border-strong); }
.split-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-muted); font-feature-settings: "tnum"; }
.split-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Amortization table */
/* Year-by-year amortization bar chart (app-mockup pattern: orange diagonal stripes + gray) */
.amort-chart {
  display: flex; flex-direction: column; gap: 6px;
  font-feature-settings: "tnum";
  max-height: 460px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-input);
  padding: 14px 16px;
  margin-top: 12px;
}
.amort-chart .row { display: grid; grid-template-columns: 50px 1fr 80px; gap: 10px; align-items: center; font-size: 12px; }
.amort-chart .row .yr { color: var(--text-muted); }
.amort-chart .row .bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--bg-elevated); }
.amort-chart .row .bar .seg-int { background: repeating-linear-gradient(45deg, var(--brand), var(--brand) 3px, #A3411A 3px, #A3411A 6px); }
.amort-chart .row .bar .seg-prin { background: var(--text-muted); }
.amort-chart .row .amt { color: var(--text-muted); text-align: right; }
.amort-legend { display: flex; gap: 14px; margin-top: 12px; font-size: 11px; color: var(--text-muted); }
.amort-legend .item { display: flex; align-items: center; gap: 5px; }
.amort-legend .swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.amort-legend .swatch.is-int { background: repeating-linear-gradient(45deg, var(--brand), var(--brand) 3px, #A3411A 3px, #A3411A 6px); }
.amort-legend .swatch.is-prin { background: var(--text-muted); }
.amort-coach { font-size: 13px; color: var(--text-dim-strong); margin-top: 14px; line-height: 1.6; }

/* Debt rows */
.debt-row-card {
  padding: 14px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; position: relative;
}
.debt-row-card:last-child { margin-bottom: 0; }
.debt-row-card .remove-debt {
  position: absolute; top: 12px; right: 12px;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text-muted); width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1;
}
.debt-row-card .remove-debt:hover { border-color: var(--brand); color: var(--brand-text); }
.add-debt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: transparent; color: var(--brand-text);
  border: 1px dashed var(--brand); border-radius: var(--radius);
  cursor: pointer; font-size: 14px; font-weight: 600; font-family: var(--font-sans);
}
.add-debt-btn:hover { background: var(--brand-soft); }

/* Payoff order */
.payoff-order { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.payoff-order li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px;
  align-items: center; padding: 12px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
}
.payoff-order .pos { font-family: var(--font-display); font-size: 24px; color: var(--brand); line-height: 1; }
.payoff-order .name { font-weight: 600; }
.payoff-order .meta { color: var(--text-muted); font-size: 12px; font-feature-settings: "tnum"; }
.payoff-order .cost { color: var(--brand-text); font-weight: 600; font-feature-settings: "tnum"; }

/* DTI gauge */
.dti-gauge { margin: 14px 0; }
.dti-gauge .track {
  position: relative; height: 12px; border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(34, 197, 94, 0.55) 0%, rgba(34, 197, 94, 0.55) 28%,
    rgba(34, 197, 94, 0.25) 28%, rgba(34, 197, 94, 0.25) 36%,
    var(--text-dim) 36%, var(--text-dim) 43%,
    rgba(201, 78, 26, 0.45) 43%, rgba(201, 78, 26, 0.45) 49%,
    var(--brand) 49%, var(--brand) 100%);
  border: 1px solid var(--border-strong);
}
.dti-gauge .pin { position: absolute; top: -6px; width: 4px; height: 24px; background: var(--text); border-radius: 2px; box-shadow: 0 0 0 2px var(--bg); }
.dti-bands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: 11px; color: var(--text-muted); margin-top: 8px; text-align: center; }
.dti-bands span { font-feature-settings: "tnum"; }

/* Coaching note */
.note-coach { margin-top: 12px; padding: 12px 14px; background: var(--brand-faint); border: 1px solid var(--brand-soft); border-radius: var(--radius); font-size: 13px; color: var(--text); }
.note-coach strong { color: var(--brand-text); }

/* Donation tiers */
.donation-tiers { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 540px) { .donation-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .donation-tiers { grid-template-columns: repeat(3, 1fr); } }
.donation-tier {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-align: left; transition: border-color 0.15s, transform 0.15s;
}
.donation-tier:hover { border-color: var(--brand); transform: translateY(-1px); color: var(--text); }
.donation-tier .amount { font-family: var(--font-display); font-size: 34px; color: var(--brand); line-height: 1; font-feature-settings: "tnum"; }
.donation-tier .cadence { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }
.donation-tier .cta { margin-top: auto; color: var(--brand-text); font-weight: 600; font-size: 14px; }

/* Long-form prose */
.prose { max-width: 70ch; margin: 0 auto; padding: 40px 0 64px; }
.prose h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 8px; }
.prose .updated { color: var(--text-muted); font-size: 13px; margin: 0 0 32px; }
.prose h2 { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin: 32px 0 12px; }
.prose h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul li, .prose ol li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose .summary-box { background: var(--brand-faint); border: 1px solid var(--brand-soft); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0 32px; color: var(--text); }

/* Calc-hero brand accent (matches landing .hero .accent) */
.calc-hero h1 .accent { color: var(--brand); font-style: italic; }

/* ===== v6 additions (compare-table, founder-note, app-bridge, realization-callout, explainer-grid.four, tone-yours) ===== */

/* Section 4 — Why Actually.? comparison table */
.compare-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 28px;
}
.compare-row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 14px;
}
.compare-row:last-child { border-bottom: 0; }
.compare-row [role="rowheader"] {
  grid-column: 1 / -1;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}
.compare-row [role="cell"] { color: var(--text-muted); }
.compare-row .col-us { font-feature-settings: "tnum"; }
.compare-row .col-us .yours-text { color: var(--yours); font-weight: 600; }
.compare-head {
  background: var(--bg-elevated);
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.compare-head [role="columnheader"] {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.compare-head [role="columnheader"]:first-child { display: none; }
@media (min-width: 720px) {
  .compare-row { grid-template-columns: 1.4fr 1fr 1.4fr; gap: 20px; align-items: baseline; }
  .compare-row [role="rowheader"] { grid-column: auto; margin-bottom: 0; }
  .compare-head { grid-template-columns: 1.4fr 1fr 1.4fr; }
  .compare-head [role="columnheader"]:first-child { display: block; }
}

/* Section 4 — founder note callout */
.founder-note {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--brand-faint);
  border: 1px solid var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-lg);
}
.founder-note p { margin: 0 0 12px; color: var(--text); font-size: 15px; line-height: 1.6; }
.founder-note p:last-child { margin-bottom: 0; }
.founder-note .signature { color: var(--text-muted); font-size: 13px; font-style: italic; }

/* Section 6 — 4-column explainer + green-tone variant */
@media (min-width: 720px) { .explainer-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .explainer-grid.four { grid-template-columns: repeat(4, 1fr); } }
.explainer-card.tone-yours .step { color: var(--yours); }

/* Calc-page reusable: app bridge CTA */
.app-bridge {
  margin: 24px 0 0;
  padding: 22px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 16px;
  align-items: center;
}
@media (min-width: 720px) { .app-bridge { grid-template-columns: 1fr auto; } }
.app-bridge h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; font-family: var(--font-sans); }
.app-bridge p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* Calc-page reusable: realization callout */
.realization-callout {
  margin: 16px 0;
  padding: 16px 18px;
  background: var(--brand-faint);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--text);
}
.realization-callout strong { color: var(--brand-text); font-feature-settings: "tnum"; font-size: 17px; }
.realization-callout .yours-text { color: var(--yours); font-weight: 600; }
.realization-callout .yours-text strong { color: var(--yours); }

/* ─── Reduced-motion preference (WCAG 2.1 SC 2.3.3) ──────────────────────── */
/* Honors user's OS / browser motion preference. Disables all transitions
   and animations universally so future motion declarations inherit the
   guard without per-selector edits. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Beta gate popup (T1.8) ────────────────────────────────────────────── */
/* Pre-launch app-link interceptor. Sunsets when app launches by deleting
   marketing/js/beta-gate.js + removing this block + reverting CTA labels. */
.beta-gate-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.78);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.beta-gate-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  max-width: 420px; width: 100%;
  text-align: center;
}
.beta-gate-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: 0;
  color: var(--text-muted); font-size: 26px; line-height: 1;
  cursor: pointer; padding: 4px 10px;
  transition: color 0.15s;
}
.beta-gate-close:hover { color: var(--text); }
.beta-gate-title {
  margin: 0 0 24px; font-size: 22px; font-weight: 600;
  font-family: var(--font-sans); color: var(--text);
  line-height: 1.25;
}
.beta-gate-actions { display: flex; justify-content: center; }

/* Responsive CTA label: full text on desktop, abbreviated on narrow viewports. */
.cta-open-short { display: inline; }
.cta-open-full { display: none; }
@media (min-width: 720px) {
  .cta-open-short { display: none; }
  .cta-open-full { display: inline; }
}
