/* Court Work's own website (docs/designs/marketing-site.md).
   Quiet, after linear.app: plain type, thin lines, lots of space, light or dark with the
   visitor's device. Orange only on the main button. The app's own screens do the selling.
   No outside fonts: the system face (SF Pro on Apple devices). */
:root {
  --accent: #D95C1A;
  --accent-press: #B94C14;
  --on-accent: #FFFFFF;
  --bg: #FFFFFF;
  --bg-raised: #F7F8F8;
  --surface: #EFF0F2;
  --text: #0E0F11;
  --text-2: #3C3F44;
  --muted: #6B6F76;
  --faint: #8A8F98;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --pill: #0E0F11;
  --on-pill: #FFFFFF;
  --pill-hover: #2A2C30;
  --header-bg: rgba(255, 255, 255, 0.82);
  --glow: linear-gradient(180deg, var(--bg) 8%, rgba(14, 15, 17, 0.07) 100%);
  --vignette: rgba(255, 255, 255, 0.5);
  --shadow: 0 0 0 6px rgba(0, 0, 0, 0.025), 0 30px 60px rgba(0, 0, 0, 0.14);
  --menu-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  --focus-line: rgba(0, 0, 0, 0.35);
  --alert: #C72626;
  --font: "Inter Variable", "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --radius: 12px;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #FF7A29; --accent-press: #FF9350; --on-accent: #0B0B0C;
    --bg: #08090A; --bg-raised: #0F1011; --surface: #17181A;
    --text: #F7F8F8; --text-2: #D0D6E0; --muted: #8A8F98; --faint: #62666D;
    --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.14);
    --pill: #E5E5E6; --on-pill: #08090A; --pill-hover: #FFFFFF;
    --header-bg: rgba(8, 9, 10, 0.82);
    --glow: linear-gradient(180deg, var(--bg) 8%, rgba(208, 214, 224, 0.22) 100%);
    --vignette: rgba(8, 9, 10, 0.6);
    --shadow: 0 0 0 6px rgba(255, 255, 255, 0.025), 0 40px 80px rgba(0, 0, 0, 0.55);
    --menu-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    --focus-line: rgba(255, 255, 255, 0.3);
    --alert: #FF6B6B;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
/* The hidden attribute always wins over a class's display (a form is grid, the Sent box is grid). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; }
a { color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font); font-weight: 560; text-wrap: balance; margin: 0; color: var(--text); }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.03; letter-spacing: -0.022em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.04; letter-spacing: -0.022em; }
h3 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.011em; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.lede { font-size: 1.0625rem; color: var(--muted); max-width: 34em; letter-spacing: -0.011em; }
.eyebrow { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); text-decoration: none; }
a.eyebrow:hover { color: var(--muted); }
.muted { color: var(--muted); }
.dim { color: var(--muted); }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-lg { display: grid; gap: 24px; align-content: start; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: var(--header-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
header.site > .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.015em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; flex: none; }
nav.main { display: flex; gap: 2px; margin-left: auto; align-items: center; }
nav.main a { color: var(--muted); text-decoration: none; font-size: 0.8125rem; padding: 6px 12px; border-radius: 999px; }
nav.main a:hover, nav.main a[aria-current="page"], nav.main a[aria-expanded="true"] { color: var(--text); }
nav.main a[aria-expanded="true"] { background: var(--surface); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 0.8125rem; color: var(--text); cursor: pointer; }

/* Buttons. The main one is orange; the header's is a plain pill, as on linear.app. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--on-accent); font-weight: 590; text-decoration: none; border: 0; border-radius: 999px; padding: 11px 20px; font-size: 0.9375rem; font-family: var(--font); letter-spacing: -0.01em; cursor: pointer; text-align: center; }
.btn:hover { background: var(--accent-press); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.small { background: var(--pill); color: var(--on-pill); padding: 0 14px; height: 32px; font-size: 0.8125rem; white-space: nowrap; }
.btn.small:hover { background: var(--pill-hover); }
.link { color: var(--text); text-decoration: none; font-size: 0.9375rem; white-space: nowrap; }
.link::after { content: " →"; color: var(--muted); transition: margin 0.15s; }
.link:hover::after { margin-left: 3px; }
@media (prefers-reduced-motion: reduce) { .link::after { transition: none; } }

@media (max-width: 860px) {
  nav.main { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; }
  nav.main.open { display: flex; }
  nav.main a { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--text-2); }
  .menu-btn { display: inline-block; }
  header.site .btn.small { display: none; }
}

/* Sections: separated by space and one thin line, never a coloured band. */
.band { padding-block: 128px; border-top: 1px solid var(--line); }
.band.first { border-top: 0; padding-top: 96px; }
@media (max-width: 700px) { .band { padding-block: 80px; } .band.first { padding-top: 64px; } }

/* Hero: the words on top, the app's screens large underneath. */
.hero { padding-top: 112px; overflow: hidden; }
.hero-copy { display: grid; gap: 28px; }
.hero h1 { max-width: 16em; }
.hero-row { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-end; justify-content: space-between; }
.hero-row .stack { gap: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.fine { font-size: 0.875rem; color: var(--faint); }
@media (max-width: 700px) { .hero { padding-top: 64px; } .hero-row { align-items: flex-start; } }

/* The stage: a soft light behind the screens, the way linear.app lights its product. */
.stage { position: relative; margin-top: 72px; padding-bottom: 96px; }
.stage::before { content: ""; position: absolute; inset: 12% -40vw 0; background: radial-gradient(52% 58% at 50% 100%, transparent 0%, var(--vignette) 100%), var(--glow); pointer-events: none; z-index: 0; }
.stage > * { position: relative; z-index: 1; }
@media (max-width: 700px) { .stage { margin-top: 48px; padding-bottom: 56px; } }

/* Pictures of the app: the web app in a window, the iPhone in front of it.
   Each holds a real screenshot, or a drawing until one exists (build.mjs). */
.pair { position: relative; margin: 0; padding: 0 8% 6% 0; }
.device { background: var(--bg-raised); overflow: hidden; }
.device img { display: block; width: 100%; height: auto; }
.browser { border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser-bar span { margin-left: 10px; font-size: 11px; color: var(--muted); }
.phone-frame { width: 270px; max-width: 100%; border: 9px solid #1E1F22; border-radius: 44px; box-shadow: 0 0 0 1px var(--line-strong), var(--shadow); margin: 0 auto; }
.pair .phone-frame { position: absolute; right: 0; bottom: 0; width: 24%; border-width: clamp(4px, 0.9vw, 9px); border-radius: clamp(16px, 3.6vw, 40px); }
.phone-frame img { aspect-ratio: 603 / 1311; }
.browser .drawn { aspect-ratio: 16 / 10; }

/* Drawings (until a screen has a real screenshot): drawn in the app's own colours, light or dark. */
.drawn { --d-bg: #FFFFFF; --d-soft: #F4F4F5; --d-text: #1C1C1E; --d-muted: #5B5B61; --d-accent: #D95C1A; background: var(--d-bg); color: var(--d-text); display: flex; flex-direction: column; gap: 10px; padding: 26px 14px 14px; font-size: 12.5px; line-height: 1.35; height: 100%; }
@media (prefers-color-scheme: dark) { .drawn { --d-bg: #1C1C1F; --d-soft: #2A2A2E; --d-text: #F2F2F4; --d-muted: #A8A8AF; --d-accent: #FF7A29; } }
.phone-frame .drawn { aspect-ratio: 603 / 1311; }
.pair .phone-frame .drawn { font-size: clamp(5px, 1.15vw, 9.5px); gap: 0.6em; padding: 1.6em 0.9em 0.9em; }
.drawn.web { flex-direction: row; padding: 0; gap: 0; font-size: clamp(7px, 1.25vw, 12.5px); }
.drawn .side { width: 22%; background: var(--d-soft); padding: 1.2em 1em; display: grid; gap: 0.7em; align-content: start; color: var(--d-muted); }
.drawn .side b { color: var(--d-text); }
.drawn .side .on { color: var(--d-accent); font-weight: 700; }
.drawn .main { flex: 1; padding: 1.4em 1.6em; display: grid; gap: 0.9em; align-content: start; }
.drawn .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9em; }
.drawn .tt { font-weight: 800; font-size: 1.5em; }
.drawn .card { background: var(--d-soft); border-radius: 1.1em; padding: 0.8em 1em; display: grid; gap: 0.45em; }
.drawn .row { display: flex; justify-content: space-between; gap: 8px; }
.drawn .dot { width: 0.65em; height: 0.65em; border-radius: 50%; background: var(--d-accent); display: inline-block; margin-right: 0.45em; }
.drawn .live { color: var(--d-accent); font-weight: 700; font-size: 0.9em; letter-spacing: 0.06em; }
.drawn .who { font-size: 0.88em; color: var(--d-muted); }
.drawn .pbtn { background: var(--d-accent); color: #fff; border-radius: 999px; text-align: center; padding: 0.8em; font-weight: 700; margin-top: auto; }
.drawn .main .pbtn { margin-top: 0; justify-self: start; padding: 0.7em 1.4em; }
.drawn .film { aspect-ratio: 16 / 9; background: #1C1C1E; color: #fff; align-content: end; }

/* A statement in white that runs on in grey (linear.app's two-tone paragraph). */
.statement { font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.022em; font-weight: 560; max-width: 24em; }
.statement .dim { color: var(--muted); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; margin-top: 80px; }
.trio > div { display: grid; gap: 8px; align-content: start; }
.trio p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; margin-top: 48px; } }

/* A big section: heading on the left, a few words and a link on the right, a picture under both. */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
.section-head .stack { gap: 20px; max-width: 30em; }
.section-head p { color: var(--muted); }
.section-head + .shot, .section-head + .pair { margin-top: 64px; }
.shot { max-width: 1040px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } .section-head + .shot, .section-head + .pair { margin-top: 40px; } }

/* A list of features: thin lines between plain rows. */
.list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.list li { border-top: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; text-decoration: none; }
.list b { font-weight: 560; letter-spacing: -0.011em; }
.list span { grid-column: 1; color: var(--muted); font-size: 0.9375rem; }
.list a::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--faint); transition: transform 0.15s, color 0.15s; }
.list a:hover::after { color: var(--text); transform: translateX(3px); }
.list.one { grid-template-columns: 1fr; }
@media (max-width: 760px) { .list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .list a::after { transition: none; } }

.head { display: grid; gap: 16px; margin-bottom: 56px; max-width: 40em; }
.head.flush { margin-bottom: 0; }

/* Promises: two columns of short lines between thin rules. */
.promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.promises li { border-top: 1px solid var(--line); padding: 18px 0; color: var(--text-2); }
@media (max-width: 700px) { .promises { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; padding: 0; margin: 0; counter-reset: s; }
.steps li { list-style: none; display: grid; gap: 8px; align-content: start; border-top: 1px solid var(--line); padding-top: 20px; }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-size: 0.75rem; color: var(--faint); }
.steps p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Closing */
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.cta h2 { max-width: 14em; }
.cta .copy { display: grid; gap: 12px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; background: var(--bg-raised); }
.plan-card .price { font-weight: 560; font-size: 2.5rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-card .per { color: var(--muted); font-size: 0.9375rem; }
.plan-card ul { margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--muted); display: grid; gap: 8px; font-size: 0.9375rem; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin-top: 48px; }
.rules p { border-top: 1px solid var(--line); padding: 16px 0; color: var(--text-2); font-size: 0.9375rem; }
@media (max-width: 700px) { .rules { grid-template-columns: 1fr; } }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
/* Wide: the boxes on the left; on the right the Monthly | Season toggle sits on top of the price it changes.
   Phone: one column, the toggle straight after the boxes and the total under it, spaced as before. */
.result { display: grid; gap: 32px; align-content: start; min-width: 0; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; gap: 16px; padding: 22px; } .result { gap: 40px; } }
.calc label { display: grid; gap: 8px; font-size: 0.9375rem; color: var(--text-2); }
.calc input[type=number] { font: inherit; font-size: 1.0625rem; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--text); width: 100%; font-variant-numeric: tabular-nums; }
/* Monthly or Season: two real radio buttons, so the keyboard and a screen reader get them for free, drawn as one two-sided toggle. */
.calc .pay { min-width: 0; margin: 0; padding: 0; border: 0; }
.calc .pay legend { padding: 0 0 8px; font-size: 0.9375rem; color: var(--text-2); text-wrap: pretty; }
.calc .toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; }
.calc .toggle label { display: block; position: relative; }
.calc .toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.calc .toggle span { display: grid; place-items: center; min-height: 44px; padding: 6px 8px; border-radius: 7px; text-align: center; color: var(--text-2); }
.calc .toggle input:not(:checked):hover + span { color: var(--text); }
.calc .toggle input:checked + span { background: var(--pill); color: var(--on-pill); font-weight: 560; }
.calc .toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (forced-colors: active) { .calc .toggle input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; } }
/* The film question, with a small mark beside it that opens a note about Court Work Film. */
.calc .field { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.calc .field > input { grid-column: 1 / -1; }
.calc .note { justify-self: start; }
.calc .note > summary { list-style: none; cursor: pointer; width: 19px; height: 19px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-size: 0.75rem; line-height: 17px; text-align: center; }
.calc .note > summary::-webkit-details-marker { display: none; }
.calc .note > summary:hover { color: var(--text); border-color: var(--text-2); }
.calc .note[open] > summary { color: var(--text); border-color: var(--text-2); }
.calc .note > p { position: absolute; left: 0; right: 0; top: 100%; z-index: 3; margin-top: 8px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--menu-shadow); color: var(--muted); font-size: 0.875rem; }
.total { display: grid; gap: 12px; align-content: start; }
.total .big { font-weight: 560; font-size: 3.5rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.total .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.total .per { color: var(--muted); font-size: 1rem; font-weight: 450; }
.lines { display: grid; gap: 6px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.9375rem; }
.lines div { display: flex; justify-content: space-between; gap: 12px; }
.total .saving { margin: 0; color: var(--text-2); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.small-note { font-size: 0.875rem; color: var(--muted); }

/* Questions */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 48px; align-items: start; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
details.q { border-top: 1px solid var(--line); padding-block: 18px; }
details.q:last-of-type { border-bottom: 1px solid var(--line); }
details.q summary { font-weight: 510; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; letter-spacing: -0.011em; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; color: var(--faint); font-weight: 400; }
details.q[open] summary::after { content: "–"; }
details.q p { color: var(--muted); margin-top: 10px; max-width: 42em; }
.plan-line { font-size: 0.875rem; color: var(--faint); margin-top: 24px; }

/* Story */
.story { max-width: 36em; display: grid; gap: 22px; font-size: 1.125rem; line-height: 1.65; color: var(--text-2); }
.story .sig { font-weight: 560; color: var(--text); }
.story .sig span { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--muted); }

/* Forms */
form.f { display: grid; gap: 18px; max-width: 520px; }
form.f label { display: grid; gap: 8px; font-size: 0.9375rem; color: var(--text-2); }
form.f input, form.f select, form.f textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-raised); color: var(--text); width: 100%; }
form.f input:focus, form.f select:focus, form.f textarea:focus { border-color: var(--focus-line); }
form.f [aria-invalid="true"] { border-color: var(--alert); }
form.f textarea { min-height: 140px; resize: vertical; }
form.f .hint { font-size: 0.875rem; color: var(--faint); }
form.f .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--alert); }
.sent { border: 1px solid var(--line-strong); background: var(--bg-raised); border-radius: var(--radius); padding: 22px; max-width: 520px; display: grid; gap: 6px; }
.two { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.side-note { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.side-note p { color: var(--muted); font-size: 0.9375rem; }
.addr { display: grid; gap: 0; }
.addr div { display: grid; gap: 2px; border-top: 1px solid var(--line); padding: 16px 0; font-size: 0.9375rem; }
.mail { font-family: var(--mono); font-size: 0.9375rem; color: var(--text); user-select: all; }

/* Legal */
.legal { max-width: 42em; display: grid; gap: 16px; color: var(--text-2); }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.375rem; margin-top: 20px; }
.legal h3 { margin-top: 8px; }
.legal a { color: var(--text); }
.legal ul, .legal ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.legal .table { overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line-strong); padding: 8px 10px; text-align: left; vertical-align: top; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding-block: 40px; color: var(--faint); font-size: 0.8125rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

.h3 { font-size: 1.0625rem; font-weight: 560; letter-spacing: -0.011em; }

/* Feature pages: numbered steps, each beside its own screen, alternating sides. */
.flow { display: grid; gap: 112px; counter-reset: flow; }
.flow-step { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; }
.flow-step.phone { grid-template-columns: 1fr 300px; }
.flow-step:nth-child(even) { grid-template-columns: 1.4fr 1fr; }
.flow-step.phone:nth-child(even) { grid-template-columns: 300px 1fr; }
.flow-step:nth-child(even) > .copy { order: 2; }
.flow-step.phone > .phone-frame { justify-self: center; }
.flow-step .copy { display: grid; gap: 12px; min-width: 0; max-width: 28em; }
.flow-step .copy::before { counter-increment: flow; content: "0" counter(flow); font-family: var(--mono); font-size: 0.75rem; color: var(--faint); }
.flow-step .copy h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; }
.flow-step .copy p { color: var(--muted); }
.flow-step .phone-frame { width: 260px; }
@media (max-width: 860px) { .flow-step, .flow-step.phone, .flow-step:nth-child(even), .flow-step.phone:nth-child(even) { grid-template-columns: 1fr; gap: 32px; } .flow-step:nth-child(even) > .copy { order: 0; } .flow { gap: 80px; } }
.next { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; }

/* Features menu: a dark panel under the header, a name and two grey lines per feature. */
nav.main a.has-menu { display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.15s; }
a.has-menu[aria-expanded="true"] .caret { transform: rotate(-135deg) translate(-2px, 0); }
@media (prefers-reduced-motion: reduce) { .caret { transition: none; } }
.mega { position: absolute; left: 0; right: 0; top: calc(100% + 8px); }
.mega .wrap { display: flex; justify-content: flex-end; }
.mega-grid { width: min(760px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 10px; background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--menu-shadow); }
.mega-item { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text); }
.mega-item:hover, .mega-item.on { background: var(--surface); }
.mega-item b { font-weight: 510; font-size: 0.875rem; }
.mega-item span { font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }
.mega-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 4px; padding: 14px 14px 6px; font-size: 0.8125rem; text-decoration: none; color: var(--muted); }
.mega-all:hover { color: var(--text); }
/* On a phone, Features opens the overview page instead. */
@media (max-width: 860px) { .mega { display: none; } .caret { display: none; } }
