/* Layout: question card on the left, running "what you may qualify for" panel on the right (stacks on phones). */
:root {
  --page: #fbeef0;        /* blush ground */
  --card: #ffffff;
  --panel: #fbeef0;       /* tinted boxes inside cards */
  --line: #efd3d8;
  --ink: #2b1416;
  --muted: #7a6266;
  --heading: #760111;     /* BabyStash wine */
  --accent: #b8405a;      /* rose: links, progress, labels */
  --brand: #760111;       /* top bar and primary buttons */
  --brand-hover: #5a000d;
  --on-brand: #ffffff;
  --brand-soft: #f8d6dc;
  --shadow: rgba(90, 0, 13, .07);
  --radius: 14px;
  --serif: Georgia, Cambria, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #1a0e10; --card: #25161a; --panel: #33202a; --line: #4a2f36; --ink: #f3e6e8; --muted: #b9a3a7;
    --heading: #f2a9b7; --accent: #e88ba0; --brand: #8c1424; --brand-hover: #a51a2d; --on-brand: #ffffff;
    --brand-soft: #f8d6dc; --shadow: rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #1a0e10; --card: #25161a; --panel: #33202a; --line: #4a2f36; --ink: #f3e6e8; --muted: #b9a3a7;
  --heading: #f2a9b7; --accent: #e88ba0; --brand: #8c1424; --brand-hover: #a51a2d; --on-brand: #ffffff;
  --brand-soft: #f8d6dc; --shadow: rgba(0, 0, 0, .35); color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--page); line-height: 1.45; }
a { color: var(--accent); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px;
          background: var(--brand); color: var(--on-brand); }
.brand { display: flex; align-items: center; gap: 14px; }
.logo { font-weight: 800; font-size: 15px; line-height: .95; color: var(--brand-soft); letter-spacing: -.5px; }
.tagline { font-family: var(--serif); font-style: italic; color: var(--brand-soft); font-size: 15px; }
.appnav { display: flex; gap: 4px; margin-left: auto; }
.appnav a { color: var(--brand-soft); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.appnav a:hover { background: rgba(255, 255, 255, .12); }
.appnav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 560px) { .tagline { display: none; } .appnav a { padding: 6px 9px; font-size: 13px; } .proto { display: none; } }
.proto { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; border: 1px solid var(--brand-soft);
         color: var(--brand-soft); padding: 3px 10px; border-radius: 999px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; max-width: 1060px;
          margin: 24px auto; padding: 0 16px; align-items: start; }
@media (max-width: 820px) { .layout { grid-template-columns: minmax(0, 1fr); } .summary { order: -1; } }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 10px var(--shadow); min-width: 0; }
@media (max-width: 480px) { .card { padding: 20px; } }

h1 { font-family: var(--serif); color: var(--heading); font-size: 30px; margin: 0 0 8px; line-height: 1.15; text-wrap: balance; }
h2 { font-family: var(--serif); color: var(--heading); font-size: 20px; margin: 0 0 14px; }
.lead { color: var(--muted); margin: 0 0 22px; }

.progress { height: 6px; background: var(--panel); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.progress > div { height: 100%; background: var(--accent); transition: width .25s; }
.step { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }

.options { display: grid; gap: 10px; margin: 18px 0; }
.options.cols { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.opt { text-align: left; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line);
       background: var(--card); font: inherit; font-size: 16px; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover, .opt:focus-visible { border-color: var(--accent); background: var(--panel); outline: none; }

.numrow { display: flex; gap: 10px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.numrow input { font: inherit; font-size: 20px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
                width: 220px; max-width: 100%; color: var(--ink); background: var(--card); }
.numrow input:focus { outline: none; border-color: var(--accent); }
.unit { color: var(--muted); }
.qhint { color: var(--muted); font-size: 15px; margin: -2px 0 0; }

.btn { background: var(--brand); color: var(--on-brand); border: 0; padding: 13px 22px; border-radius: 12px; font: inherit;
       font-size: 16px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--brand-hover); }
.btn:focus-visible, .linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--heading); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: var(--panel); }
.navrow { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 12px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 15px; padding: 6px 0; }
.linkbtn:hover { color: var(--heading); }

.why { margin-top: 22px; background: var(--panel); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; }
.why b { color: var(--heading); }
.why ul { margin: 8px 0 0; padding-left: 18px; }

.summary .stat { margin-bottom: 14px; }
.summary .big { display: block; font-family: var(--serif); font-size: 34px; color: var(--heading); font-weight: 700;
                line-height: 1.1; font-variant-numeric: tabular-nums; }
.summary .stat span:last-child { display: block; color: var(--muted); font-size: 14px; }
.cats { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; }
.cats li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 6px 10px; background: var(--panel); border-radius: 8px; }
.cats li b { color: var(--heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.n { color: var(--muted); font-weight: 400; font-size: .9em; }
.fine { font-size: 12.5px; color: var(--muted); margin: 0; }

.paywall { border: 2px solid var(--brand); border-radius: var(--radius); padding: 22px; margin: 22px 0; background: var(--panel); }
.paywall .price { font-family: var(--serif); font-size: 32px; color: var(--heading); font-weight: 700; }
.paywall ul { margin: 10px 0 16px; padding-left: 18px; }
.paywall .demo { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.blist { display: grid; gap: 12px; margin-top: 10px; }
.bitem { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.bitem h3 { margin: 0 0 4px; font-size: 16px; }
.bitem .meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.bitem .val { font-size: 14px; margin: 4px 0; }
.bitem .links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; margin-top: 8px; }
.locked .links { filter: blur(4px); user-select: none; pointer-events: none; }
.cathead { font-family: var(--serif); color: var(--heading); font-size: 18px; margin: 22px 0 6px; display: flex; gap: 6px;
            align-items: baseline; flex-wrap: wrap; }
.catval { margin-left: auto; font-family: var(--sans); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--accent);
       border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }

/* Timeline: one row per benefit, labelled (color is never the only cue), no motion, scrolls inside 300px. */
.timeline { margin: 22px 0; }
.timeline h2 { margin-bottom: 6px; }
.tl-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.tl-key > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sw { display: inline-block; width: 22px; height: 10px; border-radius: 3px; background: var(--accent); }
.sw.light { opacity: .4; }
.tl-chart { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.tl-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: center; min-height: 34px;
          border-top: 1px solid var(--line); }
.tl-row:nth-child(2) { border-top: 0; }
.tl-label { font-size: 12.5px; line-height: 1.2; padding: 4px 10px; display: flex; align-items: center; gap: 7px; min-width: 0; }
.tl-label span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-label i, .tl-next i { flex: none; width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tl-track { position: relative; align-self: stretch; min-height: 34px; margin-right: 12px; border-left: 2px solid var(--heading); }
.tl-tick { position: absolute; top: 0; bottom: 0; border-left: 1px dotted var(--line); }
.tl-tick.year { border-left: 1px solid var(--muted); opacity: .6; }
.tl-bar { position: absolute; top: calc(50% - 6px); height: 12px; border-radius: 4px; background: var(--c); }
.tl-bar.any { opacity: .35; }
.tl-axis { position: sticky; top: 0; z-index: 1; background: var(--panel); border-top: 0; }
.tl-axis .tl-label { font-weight: 600; color: var(--heading); }
.tl-axis .tl-tick { border-left: 1px solid var(--line); }
.tl-axis .tl-tick.year { opacity: 1; }
.tl-axis .tl-tick span { position: absolute; top: 6px; left: 4px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.tl-axis .tl-tick.year span { color: var(--ink); font-weight: 700; }
.tl-sub { font-size: 15px; margin: 16px 0 6px; color: var(--heading); }
.tl-next { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.tl-next li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px; font-size: 14px; padding: 8px 10px;
              background: var(--panel); border-radius: 8px; }
.tl-next .when { font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-next .what { display: grid; gap: 2px; }
.tl-next .what span { display: flex; align-items: center; gap: 7px; }
.tl-next .what .more { color: var(--muted); padding-left: 17px; }
.timeline .fine { margin-top: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
  .tl-row { grid-template-columns: 116px minmax(0, 1fr); }
  .tl-label { font-size: 12px; padding: 4px 6px; }
  .tl-axis .tl-tick:not(.year) span { display: none; }     /* years only: month labels would overlap */
  .tl-next li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.foot { text-align: center; font-size: 12.5px; color: var(--muted); padding: 10px 16px 30px; }
@media (prefers-reduced-motion: reduce) { .progress > div, .opt { transition: none; } }
