/* Paydesk — site styles.
   Palette and rules come from the app (Paydesk/Design/Palette.swift):
   paper canvases, graphite ink, one vivid blue, and one pencil-yellow moment per page. */

:root {
  --paper: #F6F5F2;
  --paper-2: #EFEDE8;
  --well: #ECEAE4;
  --card: #FFFFFF;
  --ink: #1F2933;
  --ink-2: #5B6573;
  --ink-3: #8A929D;
  --rule: #DDD9D0;
  --accent: #1E5EFF;
  --accent-hover: #1A4FD6;
  --accent-soft: rgba(30, 94, 255, 0.10);
  --highlight: #F6C343;
  --on-highlight: #1F2933;
  --paid: #2E7D4F;
  --overdue: #B3392B;
  --night: #111317;
  --night-2: #0B1222;
  --night-ink: #F2F4F7;
  --night-ink-2: #9AA4B1;
  --night-rule: #2A2E36;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --shadow-window: 0 1px 2px rgba(31, 41, 51, .08), 0 14px 28px -10px rgba(31, 41, 51, .20), 0 48px 96px -28px rgba(31, 41, 51, .30);
  --shadow-paper: 0 1px 2px rgba(31, 41, 51, .10), 0 18px 40px -18px rgba(31, 41, 51, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B1B1D;
    --paper-2: #202024;
    --well: #232327;
    --card: #2A2B30;
    --ink: #ECEEF1;
    --ink-2: #A3AAB5;
    --ink-3: #7D8590;
    --rule: #3A3B41;
    --accent: #4A8CFF;
    --accent-hover: #6B9FFF;
    --accent-soft: rgba(74, 140, 255, 0.14);
    --highlight: #E9B53C;
    --on-highlight: #14181D;
    --paid: #5FC48A;
    --overdue: #EC7566;
    --shadow-window: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 28px -10px rgba(0, 0, 0, .55), 0 48px 96px -28px rgba(0, 0, 0, .7);
    --shadow-paper: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
kbd { font: 600 .85em/1 var(--mono); padding: .18em .42em; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 6px; background: var(--card); color: var(--ink); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--paper); }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.label { display: block; font: 600 .75rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.section { padding-block: clamp(72px, 11vw, 144px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-top: 14px; }
.section-head p { margin-top: 18px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: #fff; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; margin-inline: auto; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons & calls to action ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(30, 94, 255, .3), 0 8px 20px -8px rgba(30, 94, 255, .55); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .9375rem; border-radius: 10px; }
.btn .price { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .35); font-variant-numeric: tabular-nums; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
/* Apple's badge rules: never altered, at least 40px tall, clear space of a quarter of its height. */
.store-badge { position: relative; display: inline-flex; align-items: center; padding: 12px; margin: -12px; border-radius: 12px; text-decoration: none; }
.store-badge img { height: 48px; width: auto; }
.store-badge .store-fallback { display: none; }
.store-badge.is-missing img { display: none; }
.store-badge.is-missing .store-fallback {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 600;
}
.store-fallback small { color: var(--ink-2); font-weight: 500; }
.cta-note { margin-top: 18px; font-size: .9375rem; color: var(--ink-2); }
.cta-note span + span::before { content: "·"; margin: 0 .55em; color: var(--ink-3); }
.soon-only { display: none; }
.is-prelaunch .soon-only { display: inline; }

/* ---------- Hero ---------- */

.hero { position: relative; padding-top: clamp(48px, 8vw, 104px); background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 40%, #E4ECF7 100%); }
@media (prefers-color-scheme: dark) { .hero { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 45%, #111826 100%); } }
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 6rem); max-width: 11.5em; margin-top: 18px; }
.hero h1 .line { display: block; }
.hero .lead { margin-top: 26px; }
.hero .cta-row { margin-top: 36px; }
.hero-shot { position: relative; margin-top: clamp(56px, 8vw, 96px); }
.hero-shot .shot { margin-bottom: -12%; }
/* A margin note, placed in the Desk's empty canvas and pointing at the highlighted amount. */
.hero-note { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* Desk content starts at 33.9% of the window; the arrow stops just short of it, level with "You're owed". */
.hero-note p { position: absolute; left: 16%; top: 11.6%; width: 11.2%; text-align: right; font: italic 400 clamp(11px, 1.05vw, 14px)/1.3 var(--serif); color: var(--ink-2); }
.hero-note svg { position: absolute; left: 27.8%; top: 14.3%; width: 5.4%; height: auto; color: var(--ink-3); }
.hero + .problem { padding-top: calc(12% + clamp(72px, 10vw, 128px)); }

/* A macOS window capture: clip to the window's 24pt corners. */
.shot { position: relative; border-radius: 1.667% / 2.667%; overflow: hidden; box-shadow: var(--shadow-window); background: var(--paper-2); isolation: isolate; }
.shot img { width: 100%; height: auto; }

/* ---------- Problem ---------- */

.problem { padding-bottom: clamp(72px, 10vw, 128px); }
.problem-lines { list-style: none; font: 700 clamp(1.9rem, 4.8vw, 3.5rem)/1.18 var(--serif); letter-spacing: -.02em; }
.problem-lines li { width: fit-content; }
.strike {
  background-image: linear-gradient(var(--overdue), var(--overdue));
  background-repeat: no-repeat; background-position: 0 58%; background-size: 0% .09em;
  transition: background-size .7s var(--ease), color .6s var(--ease);
}
.problem.is-in .strike { background-size: 100% .09em; color: var(--ink-3); }
.problem.is-in li:nth-child(2) .strike { transition-delay: .18s; }
.problem.is-in li:nth-child(3) .strike { transition-delay: .36s; }
.problem-answer { margin-top: clamp(32px, 5vw, 56px); max-width: 34em; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; }
.problem-answer strong { font-weight: 650; }

/* ---------- The loop (feature steps) ---------- */

.loop { border-top: 1px solid var(--rule); }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--rule); }
.step:last-child { border-bottom: 0; }
.step.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.step.flip .step-copy { order: 2; }
.step-num { display: flex; align-items: baseline; gap: 14px; }
.step-num b { font: 400 1rem/1 var(--mono); color: var(--accent); }
.step h2, .step h3 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 16px; }
.step p { margin-top: 16px; color: var(--ink-2); }
.ticks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .42em; width: 11px; height: 6px;
  border-left: 2.2px solid var(--accent); border-bottom: 2.2px solid var(--accent); transform: rotate(-45deg);
}
.step-media { min-width: 0; }

/* ---------- Documents ---------- */

.docs { background: var(--paper-2); border-block: 1px solid var(--rule); }
.papers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 32px); align-items: start; }
.paper { margin: 0; }
.paper .sheet { background: #fff; box-shadow: var(--shadow-paper); border-radius: 3px; overflow: hidden; aspect-ratio: 595 / 842; }
.paper .sheet img { width: 100%; }
.paper figcaption { margin-top: 18px; }
.paper figcaption strong { display: block; font: 700 1.25rem/1.2 var(--serif); }
.paper figcaption span { color: var(--ink-2); font-size: .9375rem; }

.spec { margin: clamp(56px, 8vw, 96px) 0 0; border-top: 1.5px solid var(--ink); }
.spec div { display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font: 600 .75rem/1.7 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.spec dd { margin: 0; }
.spec .langs span { white-space: nowrap; unicode-bidi: isolate; }
.spec .langs span + span::before { content: "·"; margin: 0 .5em; color: var(--ink-3); }
.spec-note { margin-top: 16px; font-size: .875rem; color: var(--ink-2); }

/* ---------- Privacy band ---------- */

.night { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: var(--night-ink); }
.night .label { color: var(--night-ink-2); }
.night h2 { font-size: clamp(2.3rem, 6vw, 4.8rem); color: #fff; }
.night .lead { color: var(--night-ink-2); margin-top: 22px; }
.lock { width: 64px; height: 72px; margin-bottom: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(48px, 7vw, 80px); padding-top: 32px; border-top: 1px solid var(--night-rule); }
.facts h3 { font: 650 1.125rem/1.3 var(--sans); letter-spacing: 0; color: #fff; }
.facts p { margin-top: 10px; color: var(--night-ink-2); font-size: 1rem; }
.facts code { font: 500 .9em var(--mono); color: #fff; }
.night a { color: #8FB6FF; }
.night a:hover { color: #B7CFFF; }

/* ---------- Mac-native ---------- */

.native { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.native h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 14px; }
.native p { margin-top: 16px; color: var(--ink-2); }
.keys { list-style: none; margin-top: 26px; border-top: 1px solid var(--rule); }
.keys li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.keys li span:last-child { color: var(--ink-2); text-align: right; }

/* ---------- Pricing, set as an invoice ---------- */

.pricing .section-head { margin-inline: auto; text-align: center; }
.pricing .section-head .lead { margin-inline: auto; }
.bill {
  max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); background: #fff; color: #1F2933;
  border-radius: 4px; box-shadow: var(--shadow-paper); font-variant-numeric: tabular-nums;
}
.bill-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.bill-top h3 { font: 700 clamp(1.8rem, 3.4vw, 2.4rem)/1 var(--serif); letter-spacing: -.02em; }
.bill-meta { text-align: right; font-size: .875rem; color: #5B6573; }
.bill-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; font-size: .9375rem; }
.bill .label { color: #5B6573; margin-bottom: 6px; }
.bill table { width: 100%; margin-top: 36px; border-collapse: collapse; font-size: .9375rem; }
.bill th { text-align: left; font: 600 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #5B6573; padding: 0 0 12px; border-bottom: 1px solid #DDD9D0; }
.bill td { padding: 16px 0; border-bottom: 1px solid #DDD9D0; vertical-align: top; }
.bill td small { display: block; color: #5B6573; font-size: .8125rem; margin-top: 2px; }
.bill .num { text-align: right; white-space: nowrap; }
.bill-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 20px; margin-top: 24px; }
.bill-total .label { margin: 0; }
.amount-due { font: 700 clamp(2rem, 4.2vw, 2.75rem)/1 var(--sans); letter-spacing: -.02em; padding: .08em .22em; border-radius: 8px; background: linear-gradient(var(--highlight), var(--highlight)) no-repeat 0 0 / 100% 100%; color: var(--on-highlight); }
.js .reveal .amount-due { background-size: 0% 100%; transition: background-size .8s var(--ease) .25s; }
.js .reveal.is-in .amount-due { background-size: 100% 100%; }
.bill-terms { margin-top: 28px; padding-top: 18px; border-top: 1px solid #DDD9D0; font-size: .875rem; color: #5B6573; }

.buy-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 32px auto 0; }
.buy-option { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.buy-option h3 { font: 650 1.125rem/1.3 var(--sans); letter-spacing: 0; }
.buy-option p { color: var(--ink-2); font-size: .9375rem; flex: 1; }
.buy-option .btn, .buy-option .store-badge { align-self: flex-start; margin-top: 8px; }
.buy-option .store-badge { margin: -4px -12px -12px; }
.fine { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: .875rem; color: var(--ink-2); }

/* ---------- At a glance & FAQ ---------- */

.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); margin: 0; }
.glance div { padding: 20px 20px 22px 0; border-bottom: 1px solid var(--rule); }
.glance dt { font: 600 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.glance dd { margin: 6px 0 0; font-weight: 600; }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1.5px solid var(--ink); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font: 650 1.125rem/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 48px 24px 0; color: var(--ink-2); }
.faq .answer p + p { margin-top: 10px; }

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

.closer { text-align: center; }
.closer h2 { font-size: clamp(2.4rem, 6.4vw, 5rem); }
.closer .lead { margin: 20px auto 0; }
.closer .cta-row { justify-content: center; margin-top: 36px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); padding-block: 56px 40px; font-size: .9375rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid p { margin-top: 12px; max-width: 26em; }
.footer-grid h2 { font: 600 .75rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--ink-3); display: grid; gap: 6px; }

/* ---------- Long-form pages (privacy, support) ---------- */

.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-top: 14px; }
.page-head .lead { margin-top: 20px; }
.crumbs { font-size: .875rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.page-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 128px); }
.toc { position: sticky; top: 96px; align-self: start; font-size: .9375rem; }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; border-left: 1px solid var(--rule); }
.toc a { display: block; padding-left: 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--rule); }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 650 1.125rem/1.35 var(--sans); letter-spacing: 0; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--ink-3); }
.summary-box { padding: 24px 28px; border: 1px solid var(--rule); border-left: 4px solid var(--paid); border-radius: 10px; background: var(--card); margin-bottom: 40px; }
.summary-box p { margin: 0; }
.summary-box p + p { margin-top: 8px; color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin: 0 0 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font: 600 .75rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.contact-card { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; padding: 28px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); margin-bottom: 48px; }
.contact-card h2 { margin: 0; font-size: 1.6rem; }
.contact-card p { margin: 6px 0 0; color: var(--ink-2); }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 18px 48px; margin: 0; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); background: var(--card); font: 600 .875rem/1 var(--mono); color: var(--accent); }
.updated { font-size: .875rem; color: var(--ink-2); }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.notfound h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
.notfound p { margin: 18px auto 32px; }

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .strike, .js .reveal .amount-due { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hero-note { display: none; }
}
@media (max-width: 1080px) {
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--rule);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
  .step, .native { grid-template-columns: 1fr; }
  .step.flip { grid-template-columns: 1fr; }
  .step.flip .step-copy { order: 0; }
  .papers { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .facts { grid-template-columns: 1fr; }
  .buy-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .page-body { grid-template-columns: 1fr; }
  .toc { position: static; }
  .spec div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  /* Two equal buttons, centred and stacked. The badge scales to the same width; it is never stretched. */
  .cta-row { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .cta-row .btn, .cta-row .store-badge { width: 232px; margin: 0; padding: 0; }
  .cta-row .btn { min-height: 56px; }
  .cta-row .store-badge img { width: 100%; height: auto; }
  .cta-row .store-badge.is-missing .store-fallback { width: 100%; min-height: 56px; justify-content: center; }
  .cta-note { text-align: center; }
  .buy-option .btn, .buy-option .store-badge { width: 232px; align-self: center; margin: 8px 0 0; padding: 0; }
  .buy-option .btn { min-height: 56px; }
  .buy-option .store-badge img { width: 100%; height: auto; }
  .buy-option .store-badge.is-missing .store-fallback { width: 100%; min-height: 56px; justify-content: center; }
  .hero-shot .shot { margin-bottom: -18%; }
  .hero + .problem { padding-top: calc(18% + 64px); }
  .glance { grid-template-columns: 1fr; }
  .bill-parties { grid-template-columns: 1fr; }
  .bill-meta { display: none; }
  .contact-card { grid-template-columns: 1fr; }
  .faq summary { padding-right: 36px; }
  .faq .answer { padding-right: 0; }
}

@media print {
  .site-header, .site-footer, .toc, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .page-body { display: block; padding: 0; }
  a { color: #000; }
}

/* Without JavaScript: the full menu instead of a toggle. */
@media (max-width: 880px) {
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px; padding: 0; border: 0; background: none; }
  html:not(.js) .nav a { border: 0; padding: 0; }
  html:not(.js) .site-header .wrap { height: auto; padding-block: 14px; flex-wrap: wrap; }
}
code { font: 500 .88em/1 var(--mono); padding: .12em .32em; border-radius: 5px; background: var(--accent-soft); color: var(--ink); }
.night code { background: rgba(255, 255, 255, .08); }

/* ---------- Order complete ---------- */
.thanks-icon { width: 88px; height: 88px; margin-bottom: 28px; filter: drop-shadow(0 10px 22px rgba(31, 41, 51, .18)); }
.nb { white-space: nowrap; }
.store-fallback { white-space: nowrap; }
@media (max-width: 560px) {
  .store-badge.is-missing .store-fallback { flex-direction: column; gap: 0; line-height: 1.2; }
  .store-fallback small { font-size: .75rem; }
}

/* "Coming soon" tag: sits outside the badge and its clear space, never on the artwork. */
.soon-tag {
  position: absolute; right: 0; bottom: 100%; margin-bottom: 2px;
  padding: 5px 10px 5px; border-radius: 6px 6px 6px 0; background: #D92D20; color: #fff;
  font: 700 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(217, 45, 32, .7); transform: rotate(-3deg); transform-origin: right bottom;
}
.cta-row { row-gap: 30px; }
