/* The inner pages: guides, free tools, feature pages. Loads after styles.css and carries the
   home page's colour chapters inside: one flat field at the top of every page, filled tiles
   instead of rules and outlines, white cards only where the product itself is shown.

   A page picks its chapter with data-field on <body>. Each kind of page keeps one colour:
   guides hub slate, comparisons maroon, how-to guides slate, agent guides ink, plans mustard,
   tools mustard, features red. */

:root {
  --gut: clamp(16px, 2.8vw, 40px);
  --gap: 8px;
  --tile: 28px;
  --section: clamp(88px, 9vw, 144px);
  --surface-2: #cbc3b2;
}

.page { --f: var(--maroon); --fk: #fff; --fb: #fff; --fbk: var(--ink); --fb-hover: var(--bone); }
.page[data-field="slate"] { --f: var(--slate); }
.page[data-field="ink"] { --f: var(--ink); }
.page[data-field="red"] { --f: var(--red); --fb: var(--ink); --fbk: #fff; --fb-hover: #000; }
.page[data-field="mustard"] { --f: var(--mustard); --fk: var(--ink); --fb: var(--ink); --fbk: #fff; --fb-hover: #000; }

.page :target { scroll-margin-top: 32px; }
.page [hidden] { display: none !important; }
.page img { background: var(--ui-ground); }
.page .buddy { background: none; }

/* ---------- the field: bar, title, what the page shows ---------- */
.field-top { background: var(--f); color: var(--fk); padding: 24px var(--gut) 0; }
.field { background: var(--f); color: var(--fk); padding: clamp(48px, 7.5vw, 112px) var(--gut) 0; overflow: clip; }
.field .button, .field-top .bar-action { background: var(--fb); color: var(--fbk); }
@media (hover: hover) and (pointer: fine) { .field .button:hover, .field-top .bar-action:hover { background: var(--fb-hover); } }

.field h1 { max-width: 26ch; font-size: clamp(2.125rem, 0.9rem + 4.6vw, 5.25rem); line-height: 0.94; letter-spacing: -0.035em; }
.field .giant { max-width: none; font-size: clamp(5rem, 17vw, 15rem); line-height: 0.82; letter-spacing: -0.045em; }
.field-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; align-items: end; margin-top: clamp(24px, 2.6vw, 40px); padding-bottom: clamp(40px, 5vw, 72px); }
.field-sub { grid-column: 1 / 8; max-width: 46ch; font-size: var(--step-lead); line-height: 1.3; text-wrap: pretty; }
.field-date { grid-column: 9 / 13; justify-self: end; text-align: right; font-size: var(--step-small); }
.crumb { font-weight: 700; text-underline-offset: 0.22em; }
.page .foot { padding-inline: var(--gut); }

/* Real slides standing on the field's lower edge. */
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 20px); align-items: end; height: clamp(200px, 25vw, 380px); overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; align-self: start; }
.strip-portrait { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip-portrait img { aspect-ratio: 4 / 5; }
.strip img:nth-child(even) { margin-top: clamp(16px, 2.6vw, 40px); }

/* Two posters that answer the comparison before the reading starts. */
.verdict-pair { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); margin-inline: calc(var(--gut) * -1); padding-inline: var(--gap); }
.poster { position: relative; display: flex; flex-direction: column; min-height: clamp(280px, 27vw, 420px); padding: clamp(20px, 2.2vw, 32px); overflow: hidden; }
.poster-us { background: var(--red); color: #fff; padding-right: 46%; }
.poster-them { background: var(--bone); color: var(--ink); }
.poster-name { font-size: clamp(2rem, 1rem + 2.8vw, 3.75rem); line-height: 0.92; letter-spacing: -0.035em; font-weight: 800; overflow-wrap: anywhere; }
.poster-fit { margin-top: auto; padding-top: 2rem; max-width: 30ch; font-size: var(--step-lead); line-height: 1.25; }
.poster-us img { position: absolute; top: clamp(20px, 2.2vw, 32px); width: 20%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.poster-us img:nth-of-type(1) { right: 24%; }
.poster-us img:nth-of-type(2) { right: clamp(20px, 2.2vw, 32px); top: clamp(56px, 6vw, 96px); }

/* ---------- reading: contents beside the text ---------- */
.read { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 24px; align-items: start; padding: clamp(64px, 7vw, 112px) var(--gut) var(--section); }
.toc { position: sticky; top: 32px; display: grid; gap: 28px; padding-right: 12%; font-size: var(--step-small); }
.toc ul { display: grid; gap: 2px; }
.page main .toc li a[href] { text-decoration: none; }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 36px; text-decoration: none; transition: color var(--t-hover) ease; }
.toc li a::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--red); transform: scale(0); margin-right: -18px; transition: transform var(--t-ui) var(--ease-out), margin var(--t-ui) var(--ease-out); }
.toc a[aria-current] { font-weight: 800; }
.toc li a[aria-current]::before { transform: none; margin-right: 0; }
@media (hover: hover) and (pointer: fine) { .toc li a:hover { color: var(--red); } }
.toc-try { display: grid; gap: 14px; padding: 18px; background: var(--surface); }
.toc-try b { font-size: var(--step-body); line-height: 1.2; }
.toc-try .button { min-height: 44px; padding: 0 1rem; background: var(--red); }
@media (hover: hover) and (pointer: fine) { .toc-try .button:hover { background: #bd1422; } }

.read-body { min-width: 0; display: grid; gap: var(--section); }
.read-body > section, .pair { min-width: 0; }
.page h2 { font-size: clamp(1.875rem, 1.1rem + 2.6vw, 3.25rem); line-height: 0.98; letter-spacing: -0.03em; }
.page h3 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.015em; }
.prose > * + *, .read-body > section > * + * { margin-top: 1.1rem; }
.read-body > section > h2 + * { margin-top: clamp(20px, 2vw, 32px); }
.page p, .page li { text-wrap: pretty; }
.prose p, .read-body p, .read-body li { max-width: 54ch; }
.page main p a:not([class]), .page main li > a:not([class]), .page main li span a, .page main td a, .page .link { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 38%, transparent); text-underline-offset: 0.2em; text-decoration-thickness: 2px; transition: text-decoration-color var(--t-hover) ease; }
.page .bar .link { text-decoration-color: transparent; text-decoration-thickness: from-font; }
.page .bar .link[aria-current="page"] { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .page main p a:not([class]):hover, .page main li span a:hover, .page main td a:hover, .page .link:hover { text-decoration-color: currentColor; } }
#answer > p, #quick-answer > p:first-of-type { max-width: 46ch; font-size: clamp(1.25rem, 1.05rem + 0.75vw, 1.625rem); line-height: 1.38; }

.read-body ul:not([class]) { display: grid; gap: 10px; }
.read-body ul:not([class]) > li { position: relative; padding-left: 28px; }
.read-body ul:not([class]) > li::before { content: ""; position: absolute; left: 0; top: 0.52em; width: 10px; height: 10px; background: var(--red); }

/* Steps: an ordered list as a run of filled tiles. */
.steps { counter-reset: step; display: grid; gap: var(--gap); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: baseline; max-width: none; padding: 22px 28px 24px 24px; background: var(--surface); }
.steps > li::before { content: counter(step); font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.steps > li > span { max-width: 54ch; }

/* Code blocks: the one dark surface in the text, with its copy button inside. */
.page pre { position: relative; margin: 0; padding: 20px 24px; overflow-x: auto; background: var(--ink); color: #f3e9e4; font: 0.875rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.page pre code { font: inherit; }
.page :not(pre) > code { padding: 0.1em 0.35em; background: var(--surface); font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.page .side code, .page .steps code, .page .rows-table code, .page .cmp code { background: var(--bg); }
.page .qa details[open] code, .page .offer code, .page .cmp td:nth-child(2) code, .page .pair-us code, .page .is-us code { background: rgba(255, 255, 255, 0.16); }
.snip { position: relative; min-width: 0; }
.snip pre { padding-top: 52px; }
.snip-copy { position: absolute; z-index: 1; right: 8px; top: 8px; min-height: 36px; padding: 0 14px; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 13px; font-weight: 700; transition: background-color var(--t-hover) ease; }
.snip-copy.is-copied { background: #1f8a4c; }
@media (hover: hover) and (pointer: fine) { .snip-copy:not(.is-copied):hover { background: rgba(255, 255, 255, 0.26); } }

/* Title beside text, for runs of short sub-sections. */
.sides { display: grid; gap: var(--gap); }
.side { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; padding: 26px var(--tile) 28px; background: var(--surface); }
.side > div > * + * { margin-top: 0.9rem; }
.prose-sides { display: grid; gap: 1.1rem; }

/* ---------- comparison table ---------- */
.table-wrap { margin-inline: 0; }
.cmp, .rows-table { width: 100%; border-collapse: separate; border-spacing: 0 2px; text-align: left; font-size: 1rem; line-height: 1.45; }
.cmp caption, .rows-table caption, .cards-table caption { caption-side: bottom; padding-top: 16px; max-width: 54ch; text-align: left; font-size: var(--step-small); color: var(--muted); }
.cmp th, .cmp td, .rows-table th, .rows-table td { padding: 18px 20px; vertical-align: top; overflow-wrap: break-word; }
.cmp th, .rows-table th { font-weight: 800; }
.cmp { table-layout: fixed; }
.cmp thead th { padding-block: 22px; vertical-align: bottom; font-size: var(--step-lead); line-height: 1.05; letter-spacing: -0.02em; }
.cmp thead th:first-child { width: 22%; font-size: var(--step-small); font-weight: 500; letter-spacing: 0; padding-left: 0; }
.cmp td:nth-child(1) { font-weight: 800; padding-left: 0; }
.cmp th:nth-child(2), .cmp td:nth-child(2) { background: var(--ink); color: #fff; }
.cmp th:nth-child(3), .cmp td:nth-child(3) { background: var(--surface); }
.cmp-us { display: inline-flex; align-items: center; gap: 10px; }
.cmp-us img { width: 36px; height: 36px; }

.rows-table thead th { padding: 0 20px 10px; font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.rows-table tbody td { background: var(--surface); }
.rows-table tbody td:first-child { font-weight: 800; width: 24%; }
.rows-table tbody tr.is-us td { background: var(--ink); color: #fff; }

/* Many columns: every row becomes a card that names its own fields. */
.cards-table, .cards-table tbody, .cards-table tr, .cards-table td { display: block; }
.cards-table { font-size: 1rem; line-height: 1.45; }
.cards-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cards-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.cards-table caption { display: block; padding: 0 0 20px; }
.cards-table tr { padding: 26px var(--tile) 28px; background: var(--surface); }
.cards-table tr.is-us { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; background: var(--ink); color: #fff; }
.cards-table td + td { margin-top: 14px; }
.cards-table tr.is-us td:first-child { grid-column: 1 / -1; }
.cards-table td:first-child { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.cards-table td:not(:first-child)::before { content: attr(data-label); display: block; font-size: var(--step-small); font-weight: 800; }

/* ---------- which one fits: two filled halves ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.pair > section { padding: clamp(24px, 2.6vw, 40px); background: var(--surface); }
.pair > section > * + * { margin-top: 1.1rem; }
.pair > section > h2 + * { margin-top: 1.75rem; }
.pair h2 { font-size: clamp(1.75rem, 1.1rem + 1.9vw, 2.5rem); }
.pair > .pair-us { background: var(--slate); color: #fff; }
.pair ul:not([class]) > li::before { background: none; width: 8px; height: 14px; left: 4px; top: 0.22em; border: solid var(--red); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.pair .pair-us ul:not([class]) > li::before { border-color: var(--mustard); }

/* ---------- questions ---------- */
.qa { display: grid; gap: var(--gap); }
.qa details { background: var(--surface); transition: background-color 250ms ease, color 250ms ease; }
.qa details[open] { background: var(--slate); color: #fff; }
.qa summary { position: relative; display: flex; align-items: center; min-height: 72px; padding: 18px 72px 18px 24px; list-style: none; cursor: pointer; font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: inherit; font-weight: 500; line-height: inherit; letter-spacing: -0.01em; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.qa summary::after { transform: rotate(90deg); }
.qa details[open] summary::after { transform: rotate(0deg); }
.qa details > p { padding: 0 72px 26px 24px; max-width: calc(54ch + 96px); }
.qa details > p + p { padding-top: 0; }
@media (hover: hover) and (pointer: fine) { .qa details:not([open]):hover { background: var(--surface-2); } }

/* ---------- where to go from here ---------- */
.onward { padding: 0 var(--gut) var(--section); }
.onward h2 { margin-bottom: clamp(24px, 2.6vw, 40px); }
.onward-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.go { grid-column: span 3; display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 22px 24px; background: var(--surface); color: var(--ink); text-decoration: none; transition: background-color 220ms ease, color 220ms ease; }
.go b { font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.go span { font-size: var(--step-small); line-height: 1.4; max-width: 34ch; }
.go::after { content: ""; margin-top: auto; width: 28px; height: 18px; background: currentColor; clip-path: polygon(0 42%, 72% 42%, 50% 12%, 62% 0, 100% 50%, 62% 100%, 50% 88%, 72% 58%, 0 58%); transition: transform 320ms var(--ease-expo); }
.go-tool { grid-column: span 4; background: var(--mustard); }
.go-half { grid-column: span 6; }
@media (hover: hover) and (pointer: fine) {
  .go:hover { background: var(--slate); color: #fff; }
  .go-tool:hover { background: var(--ink); color: #fff; }
  .go:hover::after { transform: translateX(10px); }
}
.go:active { transform: scale(0.99); }

/* ---------- the offer, right above the footer ---------- */
.offer { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 24px; align-items: stretch; background: var(--ink); color: #fff; padding: 0 var(--gut); overflow: hidden; }
.offer-text { padding: clamp(72px, 9vw, 144px) 0; align-self: center; }
.offer h2 { max-width: 11ch; font-size: clamp(2.75rem, 1.2rem + 5vw, 5.5rem); line-height: 0.9; letter-spacing: -0.035em; }
.offer p { margin-top: 1.5rem; max-width: 40ch; font-size: var(--step-lead); line-height: 1.3; }
.offer .button { margin-top: 2rem; background: var(--red); color: #fff; min-height: 56px; padding: 0 1.75rem; }
@media (hover: hover) and (pointer: fine) { .offer .button:hover { background: #bd1422; } }
.offer-slides { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); height: 0; min-height: 100%; }
.offer-slides img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.offer-slides img:nth-child(1) { margin-top: clamp(40px, 6vw, 88px); }
.offer-slides img:nth-child(2) { margin-top: -40px; }
.offer-buddy { position: absolute; right: calc(41.6% + 24px); bottom: 0; width: clamp(88px, 9vw, 148px); }

/* ---------- /guides/ ---------- */
.hub-field { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: end; padding-bottom: clamp(32px, 4vw, 56px); }
.field-note { grid-column: 8 / 13; }
.hub-field .giant { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 0.06em; }
.hub-buddy { width: 0.62em; height: auto; margin-bottom: 0.03em; }
.hub-field .field-sub { grid-column: 1 / 7; }
.finder { grid-column: 8 / 13; display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: var(--ui-card); color: var(--ui-text); }
.finder label { padding: 0 4px; font-size: var(--step-small); font-weight: 500; }
.finder-box { position: relative; }
.finder input { width: 100%; min-height: 56px; padding: 0 16px 0 48px; border: 0; border-radius: 12px; background: #f3eeec; font-size: max(16px, var(--step-body)); }
.finder input::placeholder { color: var(--ui-muted); }
.finder input:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.finder input::-webkit-search-cancel-button { appearance: none; }
.finder svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ui-muted); pointer-events: none; }
.finder-count { padding: 0 4px; font-size: var(--step-small); color: var(--ui-muted); }
html:not(.js) .finder { display: none; }

.hub-section { padding: var(--section) var(--gut) 0; }
.hub-section:has(+ .hub-empty) { padding-bottom: var(--section); }
.hub-section > h2 { margin-bottom: clamp(24px, 3vw, 48px); }
.hub-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: clamp(24px, 3vw, 48px); }
.hub-head h2 { grid-column: 1 / 8; }
.hub-head p { grid-column: 8 / 13; }
.hub-empty { padding: var(--section) var(--gut); font-size: var(--step-lead); }

.starts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); gap: var(--gap); }
.start { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 32px); overflow: hidden; color: #fff; text-decoration: none; }
.start b { font-size: clamp(1.75rem, 1rem + 2.2vw, 3rem); line-height: 0.96; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.start span { margin-top: 14px; max-width: 38ch; line-height: 1.4; }
.start-1 { grid-column: 1 / 8; grid-row: 1 / 3; background: var(--red); }
.start-1 b { max-width: 14ch; font-size: clamp(2.125rem, 1rem + 3.4vw, 4.25rem); }
.start-slides { position: absolute; left: clamp(22px, 2.2vw, 32px); right: clamp(22px, 2.2vw, 32px); bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; height: 46%; overflow: hidden; }
.start-slides img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; transition: transform 600ms var(--ease-expo); }
.start-slides img:nth-child(odd) { margin-top: 24px; }
.start-2 > b, .start-2 > span, .start-3 > b, .start-3 > span { max-width: 66%; }
.start-2 { grid-column: 8 / 13; background: var(--maroon); }
.start-3 { grid-column: 8 / 13; background: var(--mustard); color: var(--ink); }
.start-img { position: absolute; right: clamp(22px, 2.2vw, 32px); bottom: -2%; width: 29%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; transition: transform 600ms var(--ease-expo); }
.start-days { position: absolute; right: clamp(22px, 2.2vw, 32px); bottom: clamp(22px, 2.2vw, 32px); display: grid; grid-template-columns: repeat(7, 16px); gap: 4px; }
.start-days i { width: 16px; height: 16px; background: rgba(255, 255, 255, 0.22); }
.start-days i.on { background: #fff; }
@media (hover: hover) and (pointer: fine) {
  .start:hover .start-slides img, .start:hover .start-img { transform: translateY(-14px); }
  .start:hover .start-slides img:nth-child(2) { transition-delay: 40ms; }
  .start:hover .start-slides img:nth-child(3) { transition-delay: 80ms; }
  .start:hover .start-slides img:nth-child(4) { transition-delay: 120ms; }
}

.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.entry { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 28px; gap: 20px; align-items: center; min-height: 96px; padding: 18px 24px; background: var(--surface); text-decoration: none; transition: background-color 220ms ease, color 220ms ease; }
.entry b { font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); line-height: 1; letter-spacing: -0.03em; font-weight: 800; overflow-wrap: anywhere; }
.entry span { font-size: var(--step-small); line-height: 1.4; }
.entry::after { content: ""; width: 28px; height: 18px; background: currentColor; clip-path: polygon(0 42%, 72% 42%, 50% 12%, 62% 0, 100% 50%, 62% 100%, 50% 88%, 72% 58%, 0 58%); transition: transform 320ms var(--ease-expo); }
.index-one { grid-template-columns: minmax(0, 1fr); }
@media (hover: hover) and (pointer: fine) {
  .entry:hover { background: var(--maroon); color: #fff; }
  .entry:hover::after { transform: translateX(6px); }
}
[data-guide][hidden], .hub-section[hidden] { display: none; }

/* ---------- arrivals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(24px); }
  .rv.is-in { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 60ms); }
  .js .strip img, .js .poster { animation: stand 900ms var(--ease-expo) both; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
  .strip img:nth-child(2) { --i: 1; } .strip img:nth-child(3) { --i: 2; } .strip img:nth-child(4) { --i: 3; } .strip img:nth-child(5) { --i: 4; }
  .poster-them { --i: 1; }
}
@keyframes stand { from { transform: translateY(80px); } to { transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .go { grid-column: span 6; min-height: 180px; }
  .go-tool { grid-column: span 4; }
  .entry { grid-template-columns: minmax(0, 1fr) 28px; row-gap: 8px; }
  .entry span { grid-column: 1; grid-row: 2; }
  .entry::after { grid-column: 2; grid-row: 1; }
  .hub-field .field-sub { grid-column: 1 / 8; }
  .finder { grid-column: 1 / 9; }
  .side { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ---------- one column ---------- */
@media (max-width: 900px) {
  .read { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .toc { position: sticky; top: 0; z-index: 5; margin-inline: calc(var(--gut) * -1); padding: 10px var(--gut); background: var(--bg); }
  .toc ul { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .toc li { flex: none; }
  .toc a { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); white-space: nowrap; }
  .toc li a::before { display: none; }
  .toc a[aria-current] { background: var(--ink); color: #fff; }
  .toc-try { display: none; }
  .read-body { padding-top: 48px; }
  .page .read-body :target { scroll-margin-top: 88px; }
  .read-body section[id] { scroll-margin-top: 88px; }
  .field-sub { grid-column: 1 / -1; }
  .field-date { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .offer-text { padding-bottom: 40px; }
  .offer-slides { height: 220px; min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; }
  .offer-slides img:nth-child(1) { margin-top: 24px; }
  .offer-slides img:nth-child(2) { margin-top: 0; }
  .offer-buddy { right: var(--gut); bottom: 0; }
  .go-tool { grid-column: span 12; min-height: 140px; }
  .starts { grid-auto-rows: auto; }
  .start { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
  .start-1 { min-height: 640px; }
  .index { grid-template-columns: minmax(0, 1fr); }
  .hub-head h2, .hub-head p { grid-column: 1 / -1; }
  .hub-head p { margin-top: 16px; }
  .finder { grid-column: 1 / -1; }
  .hub-field .field-sub { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .field-top { padding-top: 16px; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); height: 170px; }
  .strip img:nth-child(n + 4) { display: none; }
  .verdict-pair { grid-template-columns: minmax(0, 1fr); }
  .poster { min-height: 240px; }
  .poster-them { min-height: 180px; }
  .poster-us { padding-right: 38%; }
  .poster-us img { width: 30%; }
  .poster-us img:nth-of-type(1) { display: none; }
  .poster-us img:nth-of-type(2) { top: 20px; }
  .go { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 4px 16px; min-height: 64px; padding: 16px 20px; }
  .go-tool { min-height: 96px; }
  .go span { grid-column: 1; }
  .go:not(.go-tool) span { display: none; }
  .go::after { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .steps > li { grid-template-columns: 40px minmax(0, 1fr); padding: 18px 18px 20px; }
  .qa summary { padding: 16px 60px 16px 20px; min-height: 64px; }
  .qa details > p { padding: 0 20px 22px; }
  .qa summary::before, .qa summary::after { right: 20px; }
  .side, .cards-table tr { padding: 20px; }
  .cards-table tbody { grid-template-columns: minmax(0, 1fr); }
  .cards-table tr.is-us { display: block; }

  /* Each dimension becomes a small block: its name, then the two answers on their own fills. */
  .cmp, .cmp tbody, .cmp tr, .cmp td, .rows-table, .rows-table tbody, .rows-table tr, .rows-table td, .rows-table tbody th { display: block; width: auto; }
  .cmp caption, .rows-table caption { display: block; }
  .cmp thead, .rows-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp tr + tr { margin-top: 28px; }
  .cmp td { padding: 14px 16px; }
  .cmp td:nth-child(1) { padding: 0 0 8px; font-size: var(--step-lead); letter-spacing: -0.015em; }
  .cmp td:nth-child(n + 2)::before { content: attr(data-label); display: block; font-size: var(--step-small); font-weight: 800; }
  .rows-table tr { padding: 18px 20px; background: var(--surface); }
  .rows-table tr + tr { margin-top: var(--gap); }
  .rows-table tbody tr.is-us { background: var(--ink); color: #fff; }
  .rows-table tbody td, .rows-table tbody td:first-child, .about .rows-table tbody th { width: auto; padding: 0; }
  .rows-table tbody td:first-child { font-size: var(--step-lead); letter-spacing: -0.015em; }
  .rows-table td + td, .rows-table th + td { margin-top: 8px; }
  .rows-table td:nth-child(n + 2)::before { content: attr(data-label); display: block; font-size: var(--step-small); font-weight: 800; }
  .start-days { display: none; }
  .format-text { grid-template-columns: minmax(0, 1fr); }
  .story { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story li { min-height: 128px; }
  .start-1 { min-height: 470px; }
  .start-slides { grid-template-columns: repeat(3, minmax(0, 1fr)); height: 200px; }
  .start-slides img:nth-child(4) { display: none; }
}

/* A slideshow format as its slides: hook red, words ink, app screens slate, the ask mustard. */
.formats { display: grid; gap: var(--gap); }
.format { display: grid; gap: 22px; padding: clamp(20px, 2vw, 28px); background: var(--surface); }
.format-text { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 24px; align-items: baseline; }
.story { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.story li { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; max-width: none; min-height: 168px; padding: 14px; background: var(--slate); color: #fff; font-size: var(--step-small); line-height: 1.35; }
.story li b { font-size: 14px; }
.story .is-hook { background: var(--red); }
.story .is-text { background: var(--ink); }
.story .is-cta { background: var(--mustard); color: var(--ink); }

/* A numbered list inside a titled tile, and a code block long enough to scroll on its own. */
.side .steps { gap: 0; }
.side .steps > li { grid-template-columns: 28px minmax(0, 1fr); padding: 5px 0; background: none; }
.side .steps > li::before { font-size: 1em; letter-spacing: 0; line-height: inherit; }
.page pre.long { max-height: 560px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
