/* Daymaker marketing page. Colours, type and shapes come only from tokens.css (a test checks it). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font: var(--fs-body)/var(--lh-body) var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: var(--gutter-phone); top: -60px; z-index: 10;
  background: var(--primary); color: var(--primary-ink);
  padding: 10px 18px; border-radius: var(--r-pill); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
/* Rooms, not bands: generous padding, no hairlines, white and blush rooms alternate
   full-bleed, and cards invert inside a blush room (visual benchmark rev 3b, change 3). */
.section { padding: var(--room-pad) 0; }
main > .section:nth-of-type(even) { background: var(--card); }
main > .section:nth-of-type(even) .card,
main > .section:nth-of-type(even) .item,
main > .section:nth-of-type(even) .plan-founding { background: var(--page); }
main > .section:nth-of-type(even) .card .col,
main > .section:nth-of-type(even) .card .next,
main > .section:nth-of-type(even) .card .board-steps li { background: var(--card); }
.eyebrow, .label { font-size: var(--fs-label); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: var(--label-track); }
.h1 { font: var(--h1); letter-spacing: var(--h1-track); max-width: var(--h1-max); }
.h2 { font: var(--h2); letter-spacing: -0.01em; }
.h3 { font: var(--h3); }
.card-title { font-weight: 700; font-size: 24px; line-height: 1.25; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: var(--text-max); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.strong { font-weight: 700; }
.head { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--gap-section); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: var(--fs-ui); font-weight: 700;
  min-height: var(--btn-h); padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.secondary { background: var(--sec-bg); color: var(--ink); border-color: var(--sec-line); }
.btn.quiet { background: transparent; color: var(--quiet-ink); padding: 0 12px; }
.badge {
  display: inline-flex; align-items: center; height: var(--badge-h); padding: 0 10px;
  border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: 600; white-space: nowrap;
}
.b-attn { background: var(--attn-bg); color: var(--attn-ink); }
.b-ok { background: var(--ok-bg); color: var(--ok-ink); }
.b-info { background: var(--info-bg); color: var(--info-ink); }
.b-neutral { background: var(--neutral-bg); color: var(--neutral-ink); }
.b-planned { background: var(--page); color: var(--neutral-ink); border: 1px dashed var(--sec-line); }

.card { background: var(--card); border-radius: var(--r-card); padding: var(--pad-card); }

/* Header */
/* The top bar stays put while the page scrolls (David, 2026-09-17). */
.top {
  position: sticky; top: 0; z-index: 20; background: var(--page);
  border-bottom: 1px solid var(--line);
}
main > .section, #start { scroll-margin-top: calc(var(--top-h) + 16px); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--top-h); }
.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
/* The approved Daymaker logo: fixed aspect ratio, never stretched (brand pack, 2026-09-17). */
.logo { display: block; width: 160px; height: auto; aspect-ratio: 568 / 128; }
.logo-foot { width: 150px; }
.nav { display: flex; gap: 4px; }
/* Narrow widths get a Menu with the same links, so navigation is never simply gone. */
.menu { position: relative; display: none; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px;
  background: var(--page); border: 1px solid var(--window-edge); border-radius: var(--r-item);
  box-shadow: var(--window-shadow); padding: 8px; display: flex; flex-direction: column;
}
.menu-panel a {
  color: var(--ink); text-decoration: none; font-size: var(--fs-ui);
  padding: 10px 12px; min-height: 44px; display: flex; align-items: center; border-radius: 10px;
}
.menu-panel a:hover { background: var(--card); }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: var(--r-pill); }
.nav a:hover { background: var(--card); }

/* Sign in: no dead end - a small panel that says we are not open yet (revision 5). */
.signin { position: relative; }
.signin summary { list-style: none; }
.signin summary::-webkit-details-marker { display: none; }
.signin-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 300px;
  background: var(--page); border: 1px solid var(--window-edge); border-radius: var(--r-item);
  box-shadow: var(--window-shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
  font-size: var(--fs-ui);
}

/* First screen */
.hero { padding: 28px 0 var(--room-pad); overflow-x: clip; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 520px; column-gap: 32px; row-gap: 20px; align-items: start;
  grid-template-areas: "top visual" "box box" "rest rest"; grid-template-rows: auto auto 1fr;
}
.hero-top { grid-area: top; }
.hero-rest { grid-area: rest; }
.hero-visual { grid-area: visual; }
.task { grid-area: box; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; }
/* A box with room to say what happened, not a sliver (David, 2026-09-17). */
.task { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.task label { font-weight: 700; }
.task-box {
  background: var(--card); border-radius: var(--r-card); padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.task-box textarea {
  width: 100%; min-height: 132px; resize: vertical;
  font: inherit; line-height: 1.5; color: var(--ink); background: var(--page);
  border: 1px solid var(--muted); border-radius: var(--r-item); padding: 16px 18px;
}
.task-box textarea::placeholder { color: var(--muted); opacity: 1; }
.task-actions { display: flex; justify-content: space-between; gap: 8px; padding: 0 4px 4px; }
.task-note { font-size: var(--fs-small); color: var(--muted); padding-left: 6px; }
.task-said { font-weight: 600; padding: 10px 16px; border-radius: var(--r-item); background: var(--attn-bg); color: var(--attn-ink); }
/* The early-access row sits in the job box; its notes follow underneath. */
.early-row { display: flex; gap: 8px; flex: 0 1 520px; min-width: 0; }
.early-row input {
  flex: 1 1 200px; min-width: 0; min-height: var(--btn-h); font: inherit; color: var(--ink);
  background: var(--page); border: 1px solid var(--muted); border-radius: var(--r-pill); padding: 0 16px;
}
.early-row input::placeholder { color: var(--muted); opacity: 1; }
.task .early-words { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: var(--fs-ui); padding-left: 6px; min-height: 28px; cursor: pointer; }
.early-words input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.early-mail { font-weight: 600; padding-left: 6px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Without the script, or with the day-one switch set to mail, the plain email line stands in for the box. */
html:not(.js) .early-row, html:not(.js) .early-words, html:not(.js) .early-note,
[data-early="mail"] .early-row, [data-early="mail"] .early-words, [data-early="mail"] .early-note { display: none; }
html.js[data-early="box"] .early-mail { display: none; }
.task.sent .task-actions, .task.sent .early-words { display: none; }
.task.sent .task-said { background: var(--ok-bg); color: var(--ok-ink); }
.hero-also { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-ai { font-size: var(--fs-small); color: var(--muted); max-width: var(--text-max); border-left: 3px solid var(--attn-bg); padding-left: 10px; }

.board, .item, .col, .ready ul, .qa, .plan { font-size: var(--fs-ui); }
.board-steps { font-size: var(--fs-card); }
.item { font-size: var(--fs-ui); }
/* A product window: white, framed, raised, with a soft blush glow behind (change 2). */
.hero-visual { position: relative; margin-top: -24px; }
.hero-visual::before {
  content: ""; position: absolute; z-index: 0; left: -40px; bottom: -160px;
  width: 480px; height: 480px; border-radius: 50%; background: var(--glow); filter: blur(40px);
}
.window {
  position: relative; z-index: 1; background: var(--page); border: 1px solid var(--window-edge);
  border-radius: var(--r-window); box-shadow: var(--window-shadow); overflow: hidden;
}
.window-bar {
  height: 32px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  border-bottom: 1px solid var(--window-edge); background: var(--page);
}
.window-bar .dots { display: flex; gap: 6px; }
.window-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--window-edge); }
.window-title { font-size: var(--fs-label); font-weight: 600; color: var(--muted); }
.window-job { font-size: var(--fs-label); color: var(--muted); margin-left: auto; }
.window-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.window .board-steps li { background: var(--card); box-shadow: none; }
.board { display: flex; flex-direction: column; }
.board-tag { align-self: flex-start; }
.board-steps { display: flex; flex-direction: column; gap: 8px; }
.board-steps li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--page); border-radius: var(--r-item); padding: 8px 14px; box-shadow: 0 2px 0 var(--card-lift);
}

/* Moving examples */
.lanes-head { margin-bottom: 18px; }
.lane { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.lane + .lane { margin-top: 12px; }
.lane-name { font-weight: 700; }
.lane-window { overflow: hidden; border-radius: var(--r-item); }
.track { display: flex; gap: 12px; width: max-content; }
.item {
  display: flex; flex-direction: column; gap: 10px; width: 280px; flex: none;
  background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--r-item); padding: 28px;
}
.item-t { font-weight: 700; font-size: 19px; line-height: 1.3; }
.item-s { font-size: var(--fs-small); color: var(--muted); }
.item .badge { align-self: flex-start; margin-top: auto; height: 30px; font-size: var(--fs-small); }

/* Moving: the lane window holds whole cards only and steps one card at a time (site.js). */
.moving .item { width: var(--card-w, 240px); }
.moving .track { transition: transform 0.6s ease; gap: var(--lane-gap); }
/* Cards fade in and out at the edges while moving; at rest only whole cards show (change 10). */
.moving .lane-window {
  padding: 0 var(--lane-edge); border-radius: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black var(--lane-edge), black calc(100% - var(--lane-edge)), transparent);
  mask-image: linear-gradient(to right, transparent, black var(--lane-edge), black calc(100% - var(--lane-edge)), transparent);
}
.textlink {
  font: inherit; font-size: var(--fs-small); font-weight: 600; color: var(--link);
  background: none; border: 0; padding: 8px 0; min-height: 44px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.lanes-foot { margin-top: 12px; }

/* No movement: a still, wrapping grid (reduced motion or no script) */
.lanes:not(.moving) .track { width: auto; flex-wrap: wrap; }
.lanes:not(.moving) .lane-window { overflow: visible; }
.lanes:not(.moving) .item { width: 220px; }
.lanes:not(.moving) .clone { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .moving .track { transition: none; }
}

/* One job */
.example { padding: 32px; }
.example .strong { font-size: 17px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.col { background: var(--page); border-radius: var(--r-item); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.col-title { font-size: var(--fs-label); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: var(--label-track); }
.doc, .fact { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.doc:last-child, .fact:last-child { border-bottom: 0; padding-bottom: 0; }
.fact .badge { align-self: flex-start; margin-top: 4px; }
.letter-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; }
.facts dt { color: var(--muted); }
/* The drafted letter, drawn about twice its old size (change 5). */
.paper {
  background: var(--paper); border-radius: var(--r-paper); box-shadow: 0 1px 0 var(--paper-edge);
  border: 1px solid var(--line); padding: 28px 24px; min-height: 280px;
  display: flex; flex-direction: column; gap: 12px;
}
.paper i { display: block; height: 10px; border-radius: var(--r-pill); background: var(--line); }
.paper i:nth-child(4n) { width: 72%; }
.paper .paper-head { width: 45%; height: 12px; margin-bottom: 10px; background: var(--sec-line); }
.paper .paper-sign { width: 30%; margin-top: auto; background: var(--sec-line); }
.next {
  margin-top: 16px; background: var(--page); border-radius: var(--r-item); padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  border-left: 6px solid var(--attn-bg);
}
.later { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notice-legal {
  margin-top: 20px; padding: 14px 18px; border-radius: var(--r-item);
  background: var(--page); border: 2px solid var(--ink); font-weight: 700;
}
.notice-legal p + p { font-weight: 400; margin-top: 2px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 6px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--attn-bg); color: var(--attn-ink); font-weight: 700; margin-bottom: 6px;
}

/* How it works: a three-step diagram in the palette (revision 4, change b). */
.diagram { display: block; width: 100%; height: auto; }
.diagram-tall { display: none; max-width: 340px; margin: 0 auto; }
.dg-card { fill: var(--page); stroke: var(--window-edge); }
main > .section:nth-of-type(odd) .dg-card { fill: var(--card); }
.dg-sheet { fill: var(--page); stroke: var(--sec-line); stroke-width: 1.5; }
.dg-line { fill: var(--line); }
.dg-row { fill: var(--card); stroke: var(--window-edge); }
.dg-ok { fill: var(--ok-ink); }
.dg-attn { fill: var(--attn-bg); }
.dg-tick { fill: none; stroke: var(--attn-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dg-arrow line, .dg-arrow path { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dg-label { fill: var(--ink); font-family: var(--font); font-size: 19px; font-weight: 700; }

/* Product pictures drawn from the app's own screens (revision 4, change b). */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.shots .window-body { gap: 12px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r-item); padding: 12px 16px; }
.mock-row.plain { background: none; padding: 0; }
.mock-decide { border: 2px solid var(--attn-bg); border-radius: var(--r-item); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.mock-quote { background: var(--card); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.mock-btn {
  /* Part of a picture of the app, never a control: it must not look clickable. */
  cursor: default; user-select: none;
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; margin-top: 6px;
  border-radius: var(--r-pill); border: 1px solid var(--sec-line); background: var(--page);
  font-size: var(--fs-small); font-weight: 700; color: var(--ink);
}
.mock-btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.mock-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.paper-small { min-height: 150px; padding: 18px; gap: 10px; }

/* What's ready */
.ready { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ready .card { display: flex; flex-direction: column; gap: 12px; }
.ready li { display: flex; gap: 10px; align-items: baseline; }
.ready li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-1px); }
.r-works li::before { background: var(--ok-ink); }
.r-planned li::before { border: 2px solid var(--neutral-ink); }
.r-not li::before { background: var(--line); border: 2px solid var(--sec-line); }

/* Why, pricing, questions */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.two .card { display: flex; flex-direction: column; gap: 6px; }
.price { display: flex; flex-direction: column; gap: 20px; }
.plan-plain .price-num { margin-top: 34px; }
/* The free first invoice, with its conditions in the same breath (AI legal review, section 5f). */
.price-free { background: var(--attn-bg); color: var(--attn-ink); border-radius: var(--r-window); padding: 20px 28px; max-width: 984px; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-ui); }
.price-free-line { font-weight: 700; font-size: 22px; line-height: 1.25; }
.price ul { display: flex; flex-direction: column; gap: 8px; }
.price li { font-weight: 700; font-size: 18px; }
/* Prices set like prices: two equal cards, 56px numbers (change 6). */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 480px)); gap: 24px; }
.plan { border-radius: var(--r-window); padding: 28px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.plan-plain { background: var(--page); border: 1px solid var(--window-edge); }
.plan-founding { background: var(--card); border: 1px solid var(--card); }
.plan .badge { margin-bottom: 8px; }
.price-num { font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
/* Questions as real components: one 760px column, open by default, +/- to fold (change 7). */
.faq { max-width: 760px; margin: 0 auto; border-bottom: 1px solid var(--sec-line); }
.qa { border-top: 1px solid var(--sec-line); padding: 20px 0; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--ink); }
.qa[open] summary::after { content: "\2212"; }
.q { font-size: 20px; font-weight: 600; line-height: 1.35; }
.a { margin-top: 8px; font-size: 17px; color: var(--muted); max-width: var(--measure); display: flex; flex-direction: column; gap: 4px; }
.a .strong { color: var(--ink); }

/* The one bold moment: a full-bleed yellow band with a large button (change 4). */
main > .section.end { background: var(--attn-bg); color: var(--attn-ink); text-align: center; }
.end .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.btn.big { min-height: 56px; min-width: 280px; font-size: 20px; padding: 0 32px; }

/* Footer */
/* A footer that looks like a company: three columns (change 8). */
.foot { background: var(--page); border-top: 1px solid var(--line); padding: 64px 0; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 40px; align-items: start; }
.foot-doc { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 40px; align-items: start; }
.foot-doc .foot-col { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
/* Privacy and Terms: one plain reading column. */
.legal-page .wrap { max-width: calc(var(--text-max) + 2 * var(--gutter)); }
.legal-body { display: flex; flex-direction: column; gap: 28px; }
.legal-body section { display: flex; flex-direction: column; gap: 6px; }
.legal-body .notice-legal { margin-top: 12px; }
.foot-end { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1.6fr; gap: 40px; align-items: start; }
.foot-small { display: flex; flex-direction: column; gap: 6px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-ui); }
.foot-col .brand { margin: 0; }
.foot nav a { color: var(--ink); }
.foot .notice-legal { margin-top: 0; }

/* Below 1100 the hero stacks, so the job box and its buttons stay on the first screen
   on a small laptop: headline and lead, the box, then the product window. */
@media (max-width: 1100px) {
  .hero { padding-top: 32px; }
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "box" "visual" "rest";
    row-gap: 16px;
  }
  .hero-visual { margin-top: 0; width: 100%; }
  .hero-visual .window, .shots .window { width: 100%; }
  .h1 { font-size: 52px; }
  .task { margin-top: 0; }
}

/* Between phone and desktop the inline links give way to the Menu. */
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* The header stays one row down to the phone (revision 7, fix 2). */
@media (max-width: 860px) {
  .top .wrap { gap: 12px; }
  .top .badge { order: 3; }
  .top .menu { order: 4; }
  .top .signin { order: 5; }
}

/* True phones: two rows, because four controls will not fit across 390. */
@media (max-width: 600px) {
  .top .wrap {
    display: grid; grid-template-columns: 1fr auto auto; align-items: center;
    row-gap: 6px; column-gap: 8px; padding-top: 8px; padding-bottom: 10px;
  }
  .top .brand { margin-right: 0; grid-area: 1 / 1; }
  .top .menu { grid-area: 1 / 2; justify-self: end; }
  .top .signin { grid-area: 1 / 3; justify-self: end; }
  .top .badge { grid-area: 2 / 1 / auto / -1; justify-self: start; }
}



/* True phones: the hero window is a crop under the job box, fading out. */
@media (max-width: 600px) {
  .hero-visual {
    max-height: 250px; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent);
    mask-image: linear-gradient(to bottom, black 55%, transparent);
  }
}

/* Phone */
@media (max-width: 860px) {
  :root { --top-h: 56px; }
  .wrap { padding: 0 var(--gutter-phone); }
  .logo { width: 142px; }
  .signin-panel { width: min(300px, calc(100vw - 32px)); }
  .hero { padding: 28px 0 40px; }
  /* Phone first screen: the job box, then a crop of the product, then the quick starts (change 9). */
  .hero .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "box" "visual" "rest"; gap: 24px; }
  .hero-visual { margin-top: 0; width: 100%; }
  .hero-visual .window { box-shadow: none; }
  .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips .btn { min-height: 48px; white-space: normal; line-height: 1.2; padding: 6px 12px; }
  .hero-visual::before { width: 300px; height: 300px; left: -40px; bottom: -80px; }
  .window-body { padding: 18px; }
  .window-bar { white-space: nowrap; }
  .window-job { display: none; }
  .h1 { font-size: var(--h1-phone); }
  .h2 { font-size: var(--h2-phone); }
  .lead { font-size: var(--fs-body); }
  body { font-size: var(--fs-ui); }
  .task-box textarea { min-height: 112px; padding: 14px 16px; }
  .task-actions { flex-direction: column; }
  .task-actions .btn { flex: 1 1 auto; }
  .early-row { flex: 1 1 auto; flex-direction: column; }
  .early-row input { flex: none; width: 100%; }
  .card, .example { padding: var(--pad-card-phone); }
  .section { padding: var(--room-pad-phone) 0; }
  .lane { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lanes:not(.moving) .item { width: 100%; }
  .diagram-wide { display: none; }
  .diagram-tall { display: block; }
  .cols, .steps, .ready, .two, .plans, .foot-cols, .foot-end, .foot-doc, .shots { grid-template-columns: minmax(0, 1fr); }
  /* The phone gutter rule above resets .wrap's padding; the footer's second row keeps its air. */
  .foot-end { padding-top: 24px; }
  .next .btn { width: 100%; }
}

/* Two header rows on a phone, so anchors need a deeper offset (found by the click sweep).
   Kept last so it wins over the 56px above. */
@media (max-width: 600px) {
  :root { --top-h: 96px; }
}
