/* ===========================================================
   A La Carte Health — landing page styles
   Theme reworked from the Curbside "fun modern" system:
   big rounded display type, pill buttons, floating badges,
   marquee, soft rounded cards — repalletted for a benefits
   advisory brand around a restaurant-menu motif.
   =========================================================== */

:root {
  --paper: #faf8f5;
  --paper-2: #ecf0f7;
  --card: #ffffff;
  --ink: #1a1523;
  --ink-soft: #5b5266;
  --ink-faint: #8d8499;
  --line: rgba(26, 21, 35, 0.09);
  --line-2: rgba(26, 21, 35, 0.14);

  --accent: #2563eb;        /* blue — primary action */
  --accent-dark: #1a47b8;
  --accent-wash: #e4ecfd;
  --mint: #0f9d70;          /* credit / positive money */
  --mint-dark: #07704f;
  --mint-wash: #e2f5ec;
  --butter: #ffc94d;        /* highlight chips */

  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --shadow-card: 0 24px 44px -24px rgba(26, 21, 35, 0.28);
  --shadow-lift: 0 30px 60px -26px rgba(26, 21, 35, 0.4);
  --shadow-accent: 0 12px 28px rgba(37, 99, 235, 0.34);

  --display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', monospace;

  --wrap: 1200px;
}

* { box-sizing: border-box; }
/* clip, not hidden: overflow:hidden on <html> breaks the sticky nav */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--butter); color: var(--ink); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.032em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 0 0 12px 0; font-weight: 700; z-index: 200;
}
.skip:focus { left: 0; }

/* ---------- animations ---------- */
@keyframes acFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes acFloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-13px) rotate(3deg); } }
@keyframes acMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes acPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(15, 179, 155, 0.45); } 50% { box-shadow: 0 0 0 10px rgba(15, 179, 155, 0); } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  * { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer; border: none;
  padding: 15px 26px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { box-shadow: 0 18px 36px rgba(37, 99, 235, 0.46); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 12px 26px rgba(26, 21, 35, 0.3); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }
.btn-butter { background: var(--butter); color: var(--ink); box-shadow: 0 12px 26px rgba(255, 201, 77, 0.42); }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-lg { padding: 18px 34px; font-size: 18px; }

/* ---------- section furniture ---------- */
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 13px;
}
.eyebrow-light { color: var(--butter); }

.h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; }
.h3 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.12; letter-spacing: -0.025em; }

.lede { font-size: 18px; line-height: 1.55; color: var(--ink-soft); font-weight: 500; }

section { position: relative; }
.sec { padding: 80px 0; }
.sec-tight { padding: 56px 0; }

.center-head { text-align: center; max-width: 700px; margin: 0 auto 46px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 247, 240, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 13px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50% 50% 50% 13px;
  background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4); flex: none;
}
.brand-mark span { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.03em; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--body); font-weight: 600; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.nav-links a { text-decoration: none; transition: color .18s; }
.nav-links a:hover { color: var(--accent-dark); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-tel { text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 12px; border-radius: 999px; }
.nav-tel:hover { background: rgba(26, 21, 35, 0.06); }

/* ---------- hero ---------- */
.hero {
  padding: 56px 0 34px;
  position: relative;
  /* clip pairs with visible on the other axis; hidden would not */
  overflow-x: clip;
}
.hero-blob {
  position: absolute; top: -120px; right: -140px; width: 560px; height: 560px;
  background: radial-gradient(circle at 35% 35%, #cfddff, transparent 70%);
  filter: blur(8px); pointer-events: none; z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 44px; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--accent-dark);
  box-shadow: 0 4px 14px rgba(26, 21, 35, 0.05); margin-bottom: 22px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18); }

.hero h1 { font-size: clamp(38px, 4.4vw, 62px); line-height: 0.99; letter-spacing: -0.038em; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { max-width: 500px; margin-bottom: 28px; font-size: 19px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 30px; }
.hero-bullets { display: flex; flex-wrap: wrap; gap: 9px 22px; }
.hero-bullets span { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.hero-bullets b { color: var(--mint-dark); font-weight: 800; }

/* ---------- the portal / menu card ---------- */
.portal {
  position: relative; background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); border: 1px solid var(--line);
  padding: 24px; max-width: 470px; margin-left: auto;
}
.portal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.portal-who { display: flex; align-items: center; gap: 10px; }
.portal-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2);
  display: grid; place-items: center; font-weight: 800; font-family: var(--display);
  color: var(--accent-dark); font-size: 14px; flex: none;
}
.portal-name { font-weight: 800; font-size: 15px; line-height: 1.15; }
.portal-role { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.portal-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  background: var(--mint-wash); color: var(--mint-dark); padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}

.portal-credit {
  margin: 14px 0 16px; padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--mint-wash); display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.portal-credit .lbl { font-size: 13px; font-weight: 700; color: var(--mint-dark); }
.portal-credit .val { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--mint-dark); }

.menu-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--paper); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 11px 13px; cursor: pointer; font-family: inherit; font-size: 15px;
  transition: border-color .16s, background .16s, transform .12s;
}
.menu-item:hover { border-color: var(--line-2); transform: translateX(2px); }
.menu-item[aria-pressed="true"] { background: var(--accent-wash); border-color: var(--accent); }
.menu-box {
  width: 21px; height: 21px; border-radius: 7px; border: 2px solid var(--line-2);
  display: grid; place-items: center; flex: none; background: #fff;
  color: #fff; font-size: 13px; font-weight: 900; line-height: 1; transition: background .16s, border-color .16s;
}
.menu-item[aria-pressed="true"] .menu-box { background: var(--accent); border-color: var(--accent); }
.menu-box::after { content: "✓"; opacity: 0; transition: opacity .16s; }
.menu-item[aria-pressed="true"] .menu-box::after { opacity: 1; }
.menu-text { flex: 1; min-width: 0; }
.menu-item-static { cursor: default; opacity: 0.72; }
.menu-item-static:hover { transform: none; border-color: transparent; }
.menu-box-static { border-style: dashed; }
.menu-item-static .menu-price { font-style: italic; font-size: 12.5px; }

.menu-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.menu-blurb { font-size: 12.5px; color: var(--ink-faint); font-weight: 500; }
.menu-price { font-family: var(--mono); font-size: 13.5px; font-weight: 700; color: var(--ink-soft); flex: none; }

.menu-footnote {
  font-size: 11.5px; color: var(--ink-faint); line-height: 1.5;
  margin: 11px 2px 0; padding-top: 10px; border-top: 1px dotted var(--line-2);
}

.portal-total { border-top: 1px dashed var(--line-2); margin-top: 14px; padding-top: 14px; }
.total-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; padding: 4px 0; }
.total-row .k { color: var(--ink-soft); font-weight: 600; }
.total-row .v { font-family: var(--mono); font-weight: 700; }
.total-row.credit .k, .total-row.credit .v { color: var(--mint-dark); }
.total-row.due { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.total-row.due .k { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink); }
.total-row.due .v { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.total-row.due .v small { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0; }
.due-free { color: var(--mint-dark); }

.portal-cta { width: 100%; margin-top: 14px; }
.portal-note { font-size: 11.5px; color: var(--ink-faint); text-align: center; margin-top: 10px; line-height: 1.45; }

.float-badge {
  position: absolute; background: var(--ink); color: #fff; border-radius: var(--radius-md);
  padding: 13px 17px; box-shadow: 0 16px 32px rgba(26, 21, 35, 0.34);
  animation: acFloat 6s ease-in-out infinite; z-index: 2;
}
.float-badge .big { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; }
.float-badge .small { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.05em; margin-top: 3px; }
.float-a { top: -20px; left: -22px; }

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink); color: var(--paper); padding: 17px 0;
  overflow: hidden; white-space: nowrap;
}
.marquee-in {
  display: inline-block; animation: acMarquee 34s linear infinite;
  font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em;
}
.marquee-in span { padding: 0 22px; }
.marquee-in i { color: var(--accent); font-style: normal; }

/* ---------- two paths ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.path:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--accent); }
.path-label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); }
.path h3 { font-size: 25px; line-height: 1.1; }
.path p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; flex: 1; }

/* ---------- stat cards ---------- */
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.stat-big {
  font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1; color: var(--accent); letter-spacing: -0.035em; margin-bottom: 10px;
}
.stat-title { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.stat-body { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.stat-src { font-size: 11.5px; color: var(--ink-faint); margin-top: 12px; font-weight: 600; }
.stat-src a { color: inherit; }

/* ---------- dark panel ---------- */
.panel {
  background: var(--ink); color: var(--paper); border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 66px); position: relative; overflow: hidden;
}
.panel-glow {
  position: absolute; top: -80px; right: -70px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 70%); pointer-events: none;
}
.panel-in { position: relative; z-index: 1; }
.panel p { color: #b6adc2; }

.step-num {
  font-family: var(--display); font-weight: 800; font-size: 17px;
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; flex: none;
}
.step-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.step-rule { height: 1px; flex: 1; background: rgba(255, 255, 255, 0.15); }
.step h3 { font-size: 21px; margin-bottom: 9px; }
.step p { font-size: 14.5px; line-height: 1.55; }

/* ---------- calculator ---------- */
.calc-wrap { background: var(--paper-2); padding: 54px 0; }
.calc { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 24px; align-items: start; }

/* The calculator heading is deliberately smaller than other sections so the
   numbers sit high enough on screen to read without scrolling past them. */
#calculator .center-head { margin-bottom: 26px; }
#calculator .center-head .h2 { font-size: clamp(27px, 3.3vw, 41px); }

.calc-controls { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field-val { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; color: var(--accent); }
.field-hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; font-weight: 500; line-height: 1.4; }

input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; background: transparent; height: 26px; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); border: 4px solid #fff; margin-top: -9px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--line-2); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  border: 4px solid #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.seg { display: flex; gap: 7px; flex-wrap: wrap; }
.seg button {
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: var(--card); color: var(--ink-soft); transition: all .16s;
}
.seg button:hover { border-color: var(--accent); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.calc-out { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: 26px; position: relative; overflow: hidden; }
.calc-out .panel-glow { top: -100px; left: -60px; right: auto; }
.calc-headline { position: relative; z-index: 1; }
.calc-headline .k { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--butter); margin-bottom: 8px; }
.calc-headline .v { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.calc-headline .v small { font-family: var(--body); font-size: 17px; font-weight: 600; color: #b6adc2; letter-spacing: 0; }

.calc-figs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.calc-fig { background: rgba(255, 255, 255, 0.07); border-radius: var(--radius-sm); padding: 12px; }
.calc-fig .n { font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1.05; letter-spacing: -0.03em; }
.calc-fig .l { font-size: 12px; color: #b6adc2; font-weight: 600; margin-top: 5px; line-height: 1.35; }

.calc-note { position: relative; z-index: 1; background: rgba(255, 201, 77, 0.13); border-left: 3px solid var(--butter); border-radius: 0 12px 12px 0; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; color: #e8e1f0; }
.calc-note b { color: var(--butter); }
.calc-fine { position: relative; z-index: 1; font-size: 11px; color: #8d84a0; line-height: 1.45; margin-top: 12px; }
.calc-fine a { color: #b6adc2; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 44px; align-items: center; }
.about-photo {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: repeating-linear-gradient(45deg, #e7ecf4, #e7ecf4 12px, #dfe5f0 12px, #dfe5f0 24px);
  border: 1px solid var(--line); display: grid; place-items: center;
}
.about-photo .ph { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); background: rgba(255,255,255,.86); padding: 9px 14px; border-radius: 9px; text-align: center; line-height: 1.5; }
.about-photo .flag {
  position: absolute; bottom: 16px; left: 16px; background: var(--ink); color: var(--butter);
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.04em;
  padding: 8px 14px; border-radius: 999px;
}
.chips { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.proof-chip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 17px; }
.proof-chip .big { font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--accent); line-height: 1.1; }
.proof-chip .small { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 11px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--display); font-weight: 700; font-size: 17.5px; color: var(--ink); letter-spacing: -0.02em;
}
.faq-sign { font-size: 25px; color: var(--accent); line-height: 1; flex: none; transition: transform .25s; font-weight: 700; }
.faq-item.open .faq-sign { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { font-size: 15px; color: var(--ink-soft); line-height: 1.62; padding: 0 24px 22px; }

/* ---------- sources ---------- */
.sources {
  max-width: 900px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 6px 26px;
}
.sources summary {
  cursor: pointer; padding: 18px 0; font-family: var(--display);
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
}
.sources summary::marker { color: var(--accent); }
.sources-intro { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin: 4px 0 14px; }
.sources ol { margin: 0 0 16px; padding-left: 20px; }
.sources li { font-size: 13px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 14px; }
.sources li b { color: var(--ink); font-weight: 700; }
.sources li a { color: var(--accent-dark); font-weight: 700; }

/* ---------- final CTA ---------- */
.cta-band {
  background: var(--accent); border-radius: var(--radius-xl);
  padding: clamp(44px, 6vw, 76px) clamp(28px, 5vw, 60px); text-align: center;
  position: relative; overflow: hidden; color: #fff;
}
.cta-band .glow { position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 420px; height: 420px; background: radial-gradient(circle, rgba(255,255,255,.3), transparent 70%); }
.cta-band-in { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(32px, 5vw, 60px); line-height: 0.99; margin-bottom: 16px; }
.cta-band p { font-size: 18px; font-weight: 600; max-width: 500px; margin: 0 auto 28px; color: rgba(255, 255, 255, 0.92); }
.cta-alt { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; margin-top: 22px; font-size: 15px; font-weight: 700; }
.cta-alt a { color: #fff; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.4); padding-bottom: 1px; }
.cta-alt a:hover { border-color: #fff; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 40px 0 56px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; font-weight: 600; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent-dark); }
.disclaimer { font-size: 12.5px; color: var(--ink-faint); line-height: 1.65; max-width: 860px; }
.disclaimer + .disclaimer { margin-top: 10px; }
.copyright { font-size: 12.5px; color: var(--ink-faint); margin-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .about, .calc { grid-template-columns: 1fr; }
  .portal { margin: 0 auto; }
  /* the card already says "Your employer puts in $50" — the badge would cover the avatar */
  .float-a { display: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 58px 0; }
  .g3, .g2, .g4, .paths, .calc-figs { grid-template-columns: 1fr; }
  .calc-figs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .calc-fig .n { font-size: 19px; }
  .nav-tel { display: none; }
  .hero-ctas .btn { width: 100%; }
  .marquee-in { font-size: 17px; }
  .panel, .calc-out, .calc-controls { padding: 22px; }

  /* Stacked, the controls sit above the results, so every pixel saved here is a
     pixel less scrolling before the owner sees a number. */
  .calc { gap: 14px; }
  .calc-wrap { padding: 44px 0; }
  #calculator .center-head { margin-bottom: 20px; }
  .field { margin-bottom: 14px; }
  .calc-headline .v { font-size: 40px; }
  .calc-figs { margin: 14px 0; }
  /* one swipeable row instead of three wrapped rows of preset chips */
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: none; }
}
@media (max-width: 420px) {
  /* Three short figures still fit across a phone; stacking them added ~130px
     of scrolling before the owner reached the results. */
  .calc-figs { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .calc-fig { padding: 10px 8px; }
  .calc-fig .n { font-size: 17px; }
  .calc-fig .l { font-size: 10.5px; }
}
