/* Maruda marketing page. Sections follow the order of index.html. */

:root {
  color-scheme: light;
  --ink: #12241c;
  --soft: #4b5d54;
  --paper: #ffffff;
  --wash: #eef3ef;
  --rule: #cfdad3;
  --you: #0a7a4b;
  --other: #9aa59f;
  --mark: #f5c518;
  --bad: #b3261e;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --page: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --pad: clamp(52px, 7vw, 100px);
  --head-gap: clamp(26px, 4vw, 48px);
  /* Side padding that lines a full-width bar (header, footer) up with the .wrap column. */
  --edge: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); max-width: 22ch; }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
h4 { font-size: 1.08rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--you); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 30; background: var(--paper); padding: 8px 12px; }

/* ---------- layout ---------- */

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.pad { padding-block: var(--pad); }
.band { background: var(--wash); }
.head { margin-bottom: var(--head-gap); }
.head p { color: var(--soft); margin: 16px 0 0; }

/* ---------- shared pieces ---------- */

.button {
  display: inline-block; border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 700 1rem var(--display); padding: 13px 22px; border-radius: 999px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button:hover { background: var(--you); border-color: var(--you); }
.button.small { padding: 9px 16px; font-size: 0.9rem; }
.button.line { background: transparent; color: var(--ink); }
.button.line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button[disabled] { opacity: 0.55; cursor: progress; }
.text-link { font: 500 1rem var(--display); text-underline-offset: 4px; }
.ghost { background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; font: 500 0.85rem var(--display); color: var(--ink); cursor: pointer; }
.ghost:hover { border-color: var(--ink); }
/* Small print sets its own line length: 62ch of a smaller font would break it too early. */
.fine { font-size: 0.92rem; color: var(--soft); max-width: 78ch; }
.more { display: block; width: fit-content; margin-top: 10px; font: 500 0.95rem var(--display); color: var(--ink); text-underline-offset: 4px; }

.plain { margin: 22px 0 0; padding: 0; list-style: none; }
.plain li { padding: 12px 0 12px 26px; border-top: 1px solid var(--rule); position: relative; font-size: 1.02rem; }
.plain li::before { content: ''; position: absolute; left: 0; top: 22px; width: 12px; height: 12px; background: var(--you); }

.chip { display: inline-block; border: 1px solid var(--other); border-radius: 999px; padding: 1px 10px; margin: 0 6px 6px 0; font: 500 0.85rem/1.6 var(--display); white-space: nowrap; }
.chip.you { background: var(--you); border-color: var(--you); color: var(--paper); }
.chip.miss { border-color: var(--bad); color: var(--bad); }
.when { font: 700 0.9rem/1.5 var(--display); color: var(--you); white-space: nowrap; }

/* Rows shared by the hero tally and the interval explorer. */
.trow { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 14px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.tname { font: 700 1rem var(--display); }
.tread { font: 500 0.95rem var(--display); font-variant-numeric: tabular-nums; color: var(--soft); text-align: right; }
.tread b { color: var(--ink); }
.tbar { grid-column: 1 / -1; position: relative; height: 18px; margin-top: 6px; }
.tbar::before { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--rule); }
.tci { position: absolute; top: 5px; height: 8px; background: var(--other); border-radius: 4px; transition: left 0.16s linear, width 0.16s linear; }
.you .tci { background: var(--you); }
.tpt { position: absolute; top: 1px; width: 4px; height: 16px; margin-left: -2px; background: var(--ink); transition: left 0.16s linear; }

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px 28px;
  padding: 14px var(--edge);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; font: 700 1.05rem var(--display); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 14px; height: 14px; background: var(--you); display: inline-block; box-shadow: 18px 0 0 -4px var(--other); margin-right: 22px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font: 500 0.95rem var(--display); }
.top nav a { text-decoration: none; color: var(--soft); white-space: nowrap; padding: 4px 0; }
.top nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.top nav a[aria-current] { color: var(--ink); box-shadow: 0 2px 0 var(--you); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 7px 16px; font: 700 0.9rem var(--display); color: var(--ink); cursor: pointer; }
.menu-toggle[aria-expanded='true'] { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(40px, 7vw, 92px) clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: center;
}
.lede { font-size: 1.28rem; line-height: 1.5; color: var(--soft); margin-top: 22px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 30px 0 14px; }

.tally { margin: 0; background: var(--wash); padding: clamp(18px, 2.4vw, 30px); border-radius: 6px; }
.tally-prompt { font: 500 1.18rem/1.35 var(--display); margin: 0 0 22px; max-width: none; }
.tally-who { display: block; font: 400 0.9rem var(--text); color: var(--soft); margin-bottom: 4px; }
.squares { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; }
.squares i { aspect-ratio: 1; border: 1.5px solid var(--rule); border-radius: 2px; background: transparent; }
.squares i.asked { border-color: var(--other); }
.squares i.hit { background: var(--other); border-color: var(--other); }
.you .squares i.hit { background: var(--you); border-color: var(--you); }
.you .squares i.asked:not(.hit) { background: var(--mark); border-color: var(--mark); }
.tci-text { grid-column: 1 / -1; min-height: 2.7em; font: 500 0.85rem/1.35 var(--display); color: var(--soft); font-variant-numeric: tabular-nums; }
/* The markup holds the finished tally. With scripts it stays out of sight until the replay starts. */
.js .tally:not(.live) .tally-rows { visibility: hidden; }
html:not(.js) .tally-foot, html:not(.js) .explore-control, html:not(.js) .js-only { display: none; }
.tally-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--rule); padding-top: 14px; }
.tally-foot p { margin: 0; font: 500 0.95rem var(--display); font-variant-numeric: tabular-nums; }
.tally figcaption, .explore figcaption, .chart figcaption, .asks figcaption { font-size: 0.9rem; line-height: 1.45; color: var(--soft); margin-top: 14px; text-wrap: pretty; }

/* ---------- video ---------- */

.video {
  padding-bottom: var(--pad);
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center;
}
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 6px; overflow: hidden; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; color: var(--paper);
  background: var(--ink) center / cover no-repeat; display: grid; place-items: center;
}
.video-play span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.video-play:hover span { background: var(--mark); }
.video-play svg { width: 30px; height: 30px; margin-left: 5px; }
.video-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--paper); padding: 24px; font: 500 1rem/1.4 var(--display); }
.video-empty small { display: block; opacity: 0.7; font-weight: 400; margin-top: 6px; }
.video-note h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.video-note p { margin: 12px 0 0; color: var(--soft); }

/* ---------- what you learn ---------- */

.answers { margin: 0; }
.answers div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(16px, 4vw, 56px); padding: 26px 0; border-top: 2px solid var(--ink); }
.answers div:last-child { padding-bottom: 0; }
.answers dt { font: 700 clamp(1.25rem, 2vw, 1.6rem)/1.2 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.answers dd { margin: 0; color: var(--soft); max-width: 62ch; }

/* ---------- method and interval explorer ---------- */

.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.method-copy h2 { margin-bottom: 22px; }

.explore { margin: 0; background: var(--wash); padding: clamp(18px, 2.4vw, 30px); border-radius: 6px; }
.explore-q { font: 700 1.3rem/1.25 var(--display); letter-spacing: -0.015em; margin: 0 0 14px; max-width: none; }
.explore .trow:first-child { border-top: 2px solid var(--ink); }
.explore .tread { font-size: 0.9rem; }
.explore-control { border-top: 1px solid var(--rule); padding-top: 16px; }
.explore-control label { display: block; font: 500 1rem var(--display); }
.explore-control output { font-weight: 700; font-variant-numeric: tabular-nums; }
.explore-control input[type='range'] { display: block; width: 100%; margin: 14px 0; accent-color: var(--you); }
.explore-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.explore-presets button { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 10px; text-align: left; color: var(--ink); cursor: pointer; font-family: var(--display); }
.explore-presets button:hover { border-color: var(--ink); }
.explore-presets button[aria-pressed='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.explore-presets span { display: block; font-size: 0.8rem; font-weight: 500; color: var(--soft); }
.explore-presets b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
/* Two lines are reserved so the box does not jump when the verdict changes. */
.explore-verdict { margin: 16px 0 0; padding: 12px 14px; min-height: 4.2em; display: flex; align-items: center; font: 700 1.02rem/1.35 var(--display); background: var(--paper); border-left: 6px solid var(--mark); max-width: none; }
.explore-verdict.settled { border-left-color: var(--you); }

/* ---------- report preview ---------- */

.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
/* Before the script takes over, only the first panel shows; without scripts all four are listed. */
.js .tabs:not(.ready) .panel ~ .panel { display: none; }
html:not(.js) .tablist { display: none; }
html:not(.js) .panel + .panel { margin-top: 18px; }
.tablist [role='tab'] { background: transparent; border: 2px solid var(--ink); border-radius: 999px; padding: 9px 18px; font: 700 0.98rem var(--display); color: var(--ink); cursor: pointer; white-space: nowrap; }
.tablist [role='tab']:hover { background: var(--paper); }
.tablist [role='tab'][aria-selected='true'] { background: var(--ink); color: var(--paper); }
.panel { background: var(--paper); border-top: 2px solid var(--ink); padding: clamp(18px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: start; }
.panel-notes h3 { margin-bottom: 4px; }
.panel-notes .plain { margin-top: 14px; }
.after-tabs { margin: 18px 0 0; }

.chart { margin: 0; }
.crow, .caxis { display: grid; grid-template-columns: 6.6em minmax(0, 1fr) 2.8em; gap: 12px; align-items: center; }
.cname { font: 500 0.95rem var(--display); color: var(--soft); text-align: right; }
.you .cname { color: var(--ink); font-weight: 700; }
.cval { font: 700 1rem var(--display); text-align: right; font-variant-numeric: tabular-nums; }
/* The track spans 0 to 60%, with a gridline every 20%. Tracks touch, so the lines run unbroken. */
.ctrack { position: relative; height: 42px; border-right: 1px solid var(--rule); background: linear-gradient(to right, var(--rule) 1px, transparent 1px) 0 0 / calc(100% / 3) 100%; }
.cbar { position: absolute; inset: 9px auto 9px 0; width: calc(var(--v) / 60 * 100%); background: var(--other); }
.you .cbar { background: var(--you); }
.cci { position: absolute; top: 50%; left: calc(var(--lo) / 60 * 100%); width: calc((var(--hi) - var(--lo)) / 60 * 100%); height: 2px; margin-top: -1px; background: var(--ink); }
.cci::before, .cci::after { content: ''; position: absolute; top: -5px; width: 2px; height: 12px; background: var(--ink); }
.cci::before { left: 0; }
.cci::after { right: 0; }
.cticks { position: relative; height: 1.4em; }
.cticks i { position: absolute; top: 2px; transform: translateX(-50%); font: 500 0.8rem var(--display); color: var(--soft); }
.cticks i:nth-child(1) { left: 0; }
.cticks i:nth-child(2) { left: calc(100% / 3); }
.cticks i:nth-child(3) { left: calc(200% / 3); }
.cticks i:nth-child(4) { left: 100%; }

.scroll { overflow-x: auto; }
.mini { width: 100%; border-collapse: collapse; font-size: 1rem; }
.mini thead th { font: 500 0.85rem var(--display); color: var(--soft); text-align: left; padding: 0 12px 8px 0; white-space: nowrap; }
.mini tbody th, .mini td { border-top: 1px solid var(--rule); padding: 12px 12px 12px 0; text-align: left; vertical-align: top; }
.mini tbody th { font: 700 1rem var(--display); }
.mini tbody th small { display: block; font: 400 0.85rem var(--text); color: var(--soft); }
.mini th.num, .mini td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini tr > :last-child { padding-right: 0; }
.mini td small { color: var(--soft); margin-left: 4px; }

.actions-list { list-style: none; margin: 0; padding: 0; }
.actions-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 6px 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--rule); }
.actions-list li:first-child { border-top: 0; padding-top: 0; }
.actions-list h3 { font-size: 1.08rem; line-height: 1.25; }
.actions-list h3, .timeline h4 { margin: 0 0 4px; }
.actions-list p, .timeline p { margin: 0; color: var(--soft); font-size: 1rem; }
.actions-list .chip { margin: 2px 0 0; }

/* ---------- how it works ---------- */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); font: 700 3.2rem/1 var(--display); color: var(--you); display: block; margin-bottom: 14px; }
.steps h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.steps h3 span { font: 400 0.95rem var(--text); color: var(--soft); letter-spacing: 0; }
.steps p { color: var(--soft); font-size: 1.02rem; margin: 0; }

.days { margin-top: clamp(36px, 5vw, 64px); }
.days > h3 { margin-bottom: 14px; }
.timeline-head, .timeline li { display: grid; grid-template-columns: 120px minmax(0, 1.5fr) minmax(0, 1fr); gap: 6px clamp(16px, 3vw, 40px); }
.timeline-head { padding: 0 0 8px; font: 500 0.85rem var(--display); color: var(--soft); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.timeline li { padding: 16px 0; border-top: 1px solid var(--rule); }
.timeline li:first-child { border-top: 0; }
.timeline .need { color: var(--ink); }
/* The column heading already says "What I need from you"; the per-row label is for narrow screens
   and for screen readers, where the heading row is not announced. */
.need-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- connector ---------- */

.ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ask-copy h2 { margin-bottom: 22px; }
.asks { margin: 0; }
.asks ul { list-style: none; margin: 0; padding: 0; }
.asks li { border-top: 2px solid var(--ink); padding: 16px 0 18px; }
.asks q { display: block; font: 700 clamp(1.15rem, 1.7vw, 1.4rem)/1.25 var(--display); letter-spacing: -0.015em; quotes: '\201C' '\201D'; text-wrap: balance; }
.asks span { display: block; margin-top: 6px; color: var(--soft); font-size: 1.02rem; }
.asks figcaption { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 0; }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.plans article { padding: 26px clamp(16px, 2.4vw, 32px) 30px; display: flex; flex-direction: column; }
.plans article + article { border-left: 1px solid var(--rule); }
.plans article:first-child { padding-left: 0; }
.plans article:last-child { padding-right: 0; }
.plans .featured { background: var(--wash); }
.price { font: 700 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--display); letter-spacing: -0.02em; margin: 10px 0 18px; }
.price span { display: block; font: 400 0.95rem var(--text); color: var(--soft); letter-spacing: 0; margin-top: 6px; }
.plans ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: 1rem; }
.plans li { padding: 9px 0; border-top: 1px solid var(--rule); }
.plans .button, .plans .fine { margin-top: auto; align-self: flex-start; }
.plans .fine { margin-bottom: 0; }

/* ---------- questions ---------- */

.faq-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(12px, 4vw, 56px); border-top: 2px solid var(--ink); padding: 22px 0 clamp(22px, 3vw, 40px); }
.faq-group:last-child { padding-bottom: 0; }
.faq-group > h3 { padding-top: 4px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative; font: 700 1.15rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font: 500 1.7rem var(--display); }
.faq details[open] summary::after { content: '\2212'; }
.faq details:first-child summary { padding-top: 0; }
.faq details:first-child summary::after { top: -6px; }
.faq details p { color: var(--soft); padding-bottom: 18px; margin: 0; }

/* ---------- request form ---------- */

.request { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.request-copy p { color: var(--soft); margin-top: 18px; }
.next { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: next; }
.next li { counter-increment: next; position: relative; padding: 12px 0 12px 40px; border-top: 1px solid var(--rule); font-size: 1.02rem; }
.next li::before { content: counter(next); position: absolute; left: 0; top: 9px; font: 700 1.5rem/1.2 var(--display); color: var(--you); }
form { display: grid; gap: 20px; }
.field label { display: block; font: 700 1rem var(--display); margin-bottom: 6px; }
.field input {
  width: 100%; font: 400 1.05rem var(--text); color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 4px; padding: 12px 14px;
}
.field input::placeholder { color: #66756d; }
.field input[aria-invalid='true'] { border-color: var(--bad); }
.hint { font-size: 0.9rem; color: var(--soft); margin: 6px 0 0; }
.error { font: 500 0.92rem var(--display); color: var(--bad); margin: 6px 0 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .button { justify-self: start; }
.form-status { margin: 0; font: 500 1rem/1.4 var(--display); min-height: 1.4em; }
.form-status.ok { color: var(--you); }
.form-status.bad { color: var(--bad); }

/* ---------- footer ---------- */

.foot { border-top: 2px solid var(--ink); padding: 36px var(--edge) 30px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 22px clamp(20px, 4vw, 56px); font-size: 0.95rem; color: var(--soft); }
.foot p { margin: 10px 0 0; max-width: 34ch; }
.foot nav, .foot-cta { display: grid; gap: 8px 28px; align-content: start; justify-content: start; font-family: var(--display); }
.foot nav { grid-template-columns: auto auto; }
.foot a:hover { color: var(--ink); }
.foot .brand { color: var(--ink); }
.foot .foot-note { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 16px; margin: 0; max-width: none; font-size: 0.88rem; }

/* ---------- 404 page ---------- */

.notfound { padding-block: var(--pad); min-height: 60vh; }

/* ---------- narrower screens ---------- */

/* Six section links plus the button need about 1000px; tighten them first. */
@media (max-width: 1140px) {
  .top { gap: 10px 20px; }
  .top nav { gap: 16px; font-size: 0.9rem; }
}

/* Below this the links move behind the Menu button. Without JavaScript they wrap under the bar. */
@media (max-width: 1000px) {
  .top { flex-wrap: wrap; }
  html:not(.js) .top { position: static; }
  .top nav { margin-left: 0; flex-wrap: wrap; width: 100%; order: 3; gap: 4px 18px; }
  .top .button { margin-left: auto; }
  .js .menu-toggle { display: block; }
  .js .top .button { margin-left: 0; }
  .js .top nav { display: none; }
  /* On a short screen (phone held sideways) the open menu scrolls inside the bar. */
  .js .top.open { max-height: 100dvh; overflow-y: auto; }
  .js .top.open nav { display: grid; gap: 0; padding: 6px 0 4px; }
  .js .top.open nav a { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 1.05rem; color: var(--ink); box-shadow: none; }
  .js .top.open nav a[aria-current] { color: var(--you); }
}

@media (max-width: 900px) {
  .hero, .video, .method, .ask, .request, .panel { grid-template-columns: minmax(0, 1fr); }
  .video { align-items: start; }
  .answers div { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .faq-group { grid-template-columns: minmax(0, 1fr); gap: 18px; }

  /* Step number beside the text instead of above it. */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 8px; padding: 18px 0 22px; }
  .steps li::before { grid-row: 1 / span 2; font-size: 2.6rem; margin: -4px 0 0; }
  .steps h3, .steps p { grid-column: 2; }

  .timeline-head { display: none; }
  .timeline li { grid-template-columns: 96px minmax(0, 1fr); }
  .timeline .need { grid-column: 2; }
  .need-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; font: 500 0.85rem var(--display); color: var(--soft); }

  /* Plans stack; the featured one becomes a full-width band so its text stays on the column edge. */
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plans article, .plans article:first-child, .plans article:last-child { padding: 26px 0 28px; }
  .plans article + article { border-left: 0; border-top: 1px solid var(--rule); }
  .plans .featured { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); border-top: 0; }
  .plans .featured + article { border-top: 0; }
  .plans ul { margin-bottom: 20px; }
  .plans .button, .plans .fine { margin-top: 0; }

  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  body { font-size: 1.05rem; }
  .brand { font-size: 0.95rem; }
  /* The hero button is on screen at this size, so the header one would only crowd the bar. */
  .top .button { display: none; }
  .squares { gap: 3px; }
  /* Four pills do not fit one row here; two even rows read better than three and one. */
  .tablist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tablist [role='tab'] { padding: 8px 10px; font-size: 0.92rem; }
  .crow, .caxis { grid-template-columns: 5.4em minmax(0, 1fr) 2.6em; gap: 8px; }
  .cname { font-size: 0.85rem; }
  /* Tables become stacked records so nothing is cut off at the side. */
  .mini thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mini tbody tr { display: grid; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
  .mini tbody tr:first-child { border-top: 0; padding-top: 0; }
  .mini tbody th, .mini td { border: 0; padding: 0; }
  .mini.sources tbody tr { grid-template-columns: minmax(0, 1fr) auto; }
  .mini.sources td:last-child { grid-column: 1 / -1; padding-top: 4px; }
  .mini.streams tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mini.streams tbody th { grid-column: 1 / -1; margin-bottom: 2px; }
  .mini.streams tbody th small { display: inline; margin-left: 6px; }
  .mini.streams td { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .mini.streams td::before { content: attr(data-label); font: 500 0.85rem var(--display); color: var(--soft); }
  .actions-list li { grid-template-columns: minmax(0, 1fr); }
  .actions-list .chip { justify-self: start; }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .timeline .need { grid-column: auto; }
  .foot { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tci, .tpt { transition: none; }
}
