/*
 * PATCH-3790 — shell for the Getting started page (getting-started.html).
 *
 * The plain-document pattern features.css uses (see its header): no
 * design-system components, no DC runtime, and deliberately NOT
 * `_ds_bundle.css` / `styles.css`, which pin html/body to 100dvh with
 * overflow:hidden (PATCH-1098) and would clip this page. Only `fonts.css` is
 * pulled in, and `site-chrome.css` loads after this file.
 *
 * Tokens are the CURRENT home-page values (marketing/index.html :root), the
 * same set features.css restates. Every colour below this block is a var();
 * keep raw colours in :root.
 */

:root {
  /* PATCH-4131: the page behind everything is the Films page's #141413, so the
     cross-fade to and from /films/ keeps one colour. --bg-app stays the app's
     #1f1f1e for anything that is a surface. */
  --bg-page: #141413;
  --bg-app: #1f1f1e; --bg-rail: #1a1a19; --bg-raised: #221d1a; --bg-raised-2: #2b2520;
  --text: #ece8e1; --text-secondary: #b8b3aa; --text-muted: #948e85;
  --accent: #d97757; --accent-hover: #e2876a; --accent-text: #f0a98e; --on-accent: #2a1208;
  --border-soft: rgba(255,253,247,0.055); --border-strong: rgba(255,253,247,0.16);
  --r-sm: 6px; --r-md: 9px; --r-lg: 13px;
  --font-ui: "Hanken Grotesk", "Hanken Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg-page); color: var(--text);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* PATCH-3827: the column is the header's, so the first heading starts under
   the logo: --chrome-width is site-chrome.css's, which every page that loads
   this file loads too, and the 24px is .site-nav's side padding.
   PATCH-4141 (owner ask 2026-10-15): what sits in the column now spans it,
   1132px, as the home page's How it works grid and the Films page do:
   the jump list, the what-you-need box, the steps' dividers and the
   closing card.
   Running text keeps a reading width of its own, as How it works' intro
   does: a rule below that sets a narrower max-width still wins. */
main { max-width: var(--chrome-width); margin: 0 auto; padding: clamp(36px,5vw,64px) 24px 56px; }
main > * { max-width: 1132px; }
.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px;
}
/* PATCH-7272 (design review M1): every inner page's h1 and section heading sizes, site-chrome.css's. */
h1 {
  margin: 0 0 14px; max-width: 720px; font-size: var(--chrome-h1-size); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance;
}
.intro { margin: 0 0 32px; max-width: 640px; font-size: 18px; color: var(--text-secondary); }
/* PATCH-4225: on the pages with the rail, Features and Getting started, the
   heading area ends with one gap, the same in both stylesheets
   (test/page-heading-gap.test.mjs): 60px from 1000px wide, 40px on a phone.
   Below 1024px the "On this page" list keeps that gap below it too. Other
   pages that load this file keep the intro's 32px. */
.intro:has(+ .paged) { margin-bottom: clamp(40px,6vw,60px); }

main p, main li { color: var(--text-secondary); }
main strong { color: var(--text); font-weight: 600; }
main code {
  font-family: var(--font-mono); font-size: 0.86em; color: var(--accent-text);
  background: var(--bg-raised); border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); padding: 1px 5px;
}
main pre {
  margin: 0 0 14px; padding: 12px 16px; overflow-x: auto;
  background: var(--bg-rail); border: 1px solid var(--border-soft); border-radius: var(--r-md);
}
main pre code { padding: 0; border: 0; background: none; font-size: 14px; }
main blockquote {
  margin: 0 0 14px; padding: 2px 16px; border-left: 2px solid var(--border-strong);
  color: var(--text-secondary);
}

/* ---- PATCH-4217: "On this page", a rail from 1024px ----------------------

   Below 1024px it is the list at the top, in phone-navigation.css's full-width
   rows (PATCH-6100). From
   1024px the page's sections sit in .paged-body beside it, and the list is a
   200px column that stays in view under the sticky header while they scroll
   by. It stops where .paged ends, before the closing card and the footer.
   1024px is where it starts to fit: the 976px column there leaves the text
   672px beside the rail, a readable line, and narrower than that the text
   would go under 600px. page-rail.js marks the link for the section being
   read with aria-current; the links work without it. The rail and the text
   together stay inside main's 1132px (PATCH-4141). Its 4px padding keeps the
   focus ring inside the rail's scroll box. */

.jump { list-style: none; margin: 0 0 clamp(40px,6vw,60px); padding: 0; }
.jump a { display: block; font-size: 14px; color: var(--text-secondary); }
.jump a:is(:hover, :focus-visible) { text-decoration: none; border-color: var(--border-strong); color: var(--text); }

@media (min-width: 1024px) {
  .paged { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
  .rail {
    position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow-y: auto;
    margin: 0 -4px; padding: 4px;
  }
  .rail-title {
    display: block; margin: 0 0 10px; padding-left: 14px;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted);
  }
  .jump { margin: 0; }
  .jump a {
    padding: 6px 0 6px 12px; border: 0; border-left: 2px solid var(--border-soft); border-radius: 0;
    background: none; line-height: 1.4;
  }
  .jump a:is(:hover, :focus-visible) { border-left-color: var(--border-strong); }
  .jump a[aria-current] { border-left-color: var(--accent); color: var(--text); }
}

/* ---- What you need, before step 1 ---------------------------------------- */

.before {
  margin: 0 0 clamp(12px,2vw,24px); padding: 20px 24px 8px; scroll-margin-top: calc(var(--chrome-header-h, 58px) + 18px);
  background: var(--bg-raised); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
}
.before h2 { margin: 0 0 10px; font-size: var(--chrome-h2-size); font-weight: 600; color: var(--text); }
.before ul { margin: 0 0 14px; padding-left: 22px; max-width: 720px; }
.before li { margin-bottom: 7px; }

/* ---- One step ------------------------------------------------------------- */

.step {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px 20px;
  padding: clamp(28px,4vw,40px) 0; border-top: 1px solid var(--border-soft);
  scroll-margin-top: calc(var(--chrome-header-h, 58px) + 18px);
}
.step-number {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--bg-raised-2); color: var(--accent-text);
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
}
/* PATCH-3838: the step a jump lands on holds the accent on its number while
   the page scrolls there, then settles. Reduced motion: it stays. */
.step:target .step-number {
  background-color: var(--accent); color: var(--on-accent);
  animation: landed calc(var(--motion-landed) * 0.3) var(--ease-out-soft) calc(var(--motion-landed) * 0.7) forwards;
}
@keyframes landed { to { background-color: var(--bg-raised-2); color: var(--accent-text); } }
.step-body { max-width: 720px; }
.step h2 {
  margin: 4px 0 10px; font-size: var(--chrome-h2-size); font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.25; color: var(--text);
}
.step h3 { margin: 22px 0 8px; font-size: 17px; font-weight: 600; color: var(--text); }
.step p { margin: 0 0 14px; }
.step .lead { font-size: 17px; color: var(--text); }
.step ol, .step ul { margin: 0 0 14px; padding-left: 22px; }
.step li { margin-bottom: 7px; }
.step li::marker { color: var(--text-muted); }
.step li > ul { margin: 7px 0 0; }
/* A condition a step depends on. Set apart so it is never read past (the
   claim audit's F5), as on the Features page. */
.step .needs {
  margin: 0 0 14px; padding: 12px 16px; border-left: 2px solid var(--accent);
  background: var(--bg-rail); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 15px;
}
.step .needs:last-child { margin-bottom: 0; }

/* ---- Closing call to action ---------------------------------------------- */

.closing {
  margin-top: clamp(12px,2vw,24px); padding: clamp(28px,4vw,44px);
  background: var(--bg-raised); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
}
.closing h2 {
  margin: 0 0 10px; font-size: var(--chrome-h2-size); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--text);
}
.closing p { margin: 0 0 22px; max-width: 560px; color: var(--text-secondary); }
/* PATCH-7272: its Request access is the site's one .button (site-chrome.css). */
.closing .fineprint { margin: 18px 0 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-secondary); }
/* PATCH-6707 (owner `patch-cove:one-mac-site-correction`, 2026-11-10): Saul's
   availability statement A, under the intro and beside each Request access. */
.offer-note, .closing .offer-note { margin: 14px 0 0; max-width: 560px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.intro + .offer-note { margin: -16px 0 32px; max-width: 640px; }
.intro + .offer-note:has(+ .paged) { margin-bottom: clamp(40px,6vw,60px); }

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .intro { font-size: 16px; }
  .step { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
