/* readstow.com. One stylesheet for every page: tokens, the bar, the bands,
   the documents, the account pages and the consent banner. One web font,
   Newsreader 600 for the wordmark, self-hosted in /fonts (OFL, licence
   beside it). No inline styles, because the Worker's CSP allows only 'self'. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/newsreader-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --ground: #FBFAF7;
  --paper: #FFFFFF;
  --soft: #F4F2EE;
  --chip: #F1EEE9;
  --ink: #1D1B19;
  --body: #4A4642;
  --muted: #6F6A64;
  --hair: #E6E2DC;
  --strong: rgba(29, 27, 25, 0.4);
  --accent: #EE6C45;          /* the brand persimmon: marks, dots, display type */
  --accent-text: #C94B25;     /* links and buttons: 4.7:1 on the ground */
  --icon-shadow: 0 10px 24px -8px rgba(238, 108, 69, 0.55), 0 2px 6px rgba(238, 108, 69, 0.18);
  --bad: #C23A2A;
  --on-accent: #FFFFFF;
  --green: #2F8F5B;
  --band: #1D1B19;
  --on-band: #D6D1CA;
  --band-ink: #FEF6EC;
  --band-hair: #3A3735;
  --band-accent: #FF9873;
  --shadow: 0 24px 60px -24px rgba(29, 27, 25, 0.35), 0 4px 12px rgba(29, 27, 25, 0.06);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "New York", "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --brand-font: "Newsreader", Georgia, "Times New Roman", serif;

  --display: clamp(2.6rem, 6vw, 4.25rem);
  --title: clamp(2rem, 3.6vw, 3.25rem);
  --lead: clamp(1.125rem, 1.4vw, 1.375rem);
  --sub: clamp(1.125rem, 1.2vw, 1.3rem);
  --text: 1.0625rem;
  --small: 0.9375rem;
  --label: 0.8125rem;
  --section: clamp(3.5rem, 7vw, 6.5rem);
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --measure: 76rem;
  --bar: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #161513;
    --paper: #1D1B19;
    --soft: #201E1C;
    --chip: #2A2826;
    --ink: #ECE9E3;
    --body: #CFCAC2;
    --muted: #A39E95;
    --hair: #2E2C28;
    --strong: rgba(236, 233, 227, 0.35);
    --accent: #FF9873;
    --accent-text: #FF9873;
    --on-accent: #161513;
    --icon-shadow: 0 10px 28px -8px rgba(238, 108, 69, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    --bad: #FF7A66;
    --green: #5BC48A;
    --band: #0D0C0B;
    --on-band: #CFCAC2;
    --band-ink: #FEF6EC;
    --band-hair: #2E2C28;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 1rem); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--text)/1.6 var(--font); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 0.18em; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; padding: 0.75rem 1.25rem; background: var(--ink); color: var(--ground); font-weight: 700; }
.skip-link:focus { top: 0.75rem; }

/* ---------------------------------------------------------------- bar */
.bar { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--hair); background: color-mix(in srgb, var(--ground) 90%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); padding-inline: var(--gutter); }
.bar-inner { max-width: var(--measure); margin: 0 auto; min-height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* The lockup: the app icon with a soft accent shadow, then the wordmark in
   Newsreader 600 at -0.02em, the gap a third of the icon everywhere. */
.brand { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--ink); text-decoration: none; }
.brand-icon { flex: none; width: 32px; height: 32px; border-radius: 22.5%; box-shadow: var(--icon-shadow); }
.wordmark { font-family: var(--brand-font); font-weight: 600; font-size: 1.5rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.bar nav { display: flex; align-items: center; gap: 2rem; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--body); text-decoration: none; font-weight: 600; font-size: var(--small); }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--ink); }
.bar nav a.cta, .menu-list a.cta { color: var(--ground); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 24px; height: 24px; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu-list { position: absolute; right: calc(-1 * var(--gutter)); top: calc(100% + 10px); width: 100vw; max-width: 20rem; background: var(--ground); border: 1px solid var(--hair); box-shadow: var(--shadow); padding: 0.5rem 1.25rem 1rem; display: flex; flex-direction: column; }
.menu-list a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--hair); }
.menu-list a:last-child { border-bottom: 0; }
@media (max-width: 860px) {
  .bar nav.main { display: none; }
  .menu { display: block; }
  .bar .brand-icon { width: 28px; height: 28px; }
  .bar .wordmark { font-size: 1.375rem; }
}

/* ---------------------------------------------------------- buttons */
.cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 48px; padding: 0.8rem 1.4rem; font: inherit; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.cta { background: var(--ink); color: var(--ground); }
.cta .arrow { display: inline-block; transition: transform 220ms ease; }
.cta:hover .arrow { transform: translateX(4px); }
.cta.accent { background: var(--accent-text); color: var(--on-accent); }
.cta.accent:hover { background: var(--ink); color: var(--ground); }
.cta:not(.accent):hover { background: var(--accent-text); color: var(--on-accent); }
.bar .cta { min-height: 44px; padding: 0.55rem 1.1rem; font-size: var(--small); }
.button { background: transparent; color: var(--ink); border-color: var(--ink); }
.button:hover { color: var(--accent-text); border-color: var(--accent-text); }

/* The App Store treatment: it looks like a badge and is not a link, because
   there is nowhere to send anyone yet. */
.soon { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 56px; padding: 0.55rem 1.1rem 0.55rem 0.8rem; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); }
.soon img { width: 36px; height: 36px; border-radius: 22.5%; }
.soon span { display: flex; flex-direction: column; line-height: 1.2; }
.soon small { font-size: var(--label); font-weight: 600; color: var(--muted); }
.soon strong { font-size: 1.05rem; font-weight: 800; }

/* ------------------------------------------------------------ bands */
.band { padding: var(--section) var(--gutter); border-top: 1px solid var(--hair); }
.band.strong { border-top: 2px solid var(--strong); }
.band.flush { border-top: 0; }
.band.paper { background: var(--paper); border-bottom: 1px solid var(--hair); }
.inner { max-width: var(--measure); margin: 0 auto; }
.band h2 { font-size: var(--title); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.band h3 { font-size: var(--sub); font-weight: 800; line-height: 1.25; margin-bottom: 0.5rem; }
.band p { color: var(--body); }
.band .intro { max-width: 40ch; margin-top: 1rem; font-size: var(--lead); color: var(--body); }
.grid4 { display: grid; gap: 2.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.75rem; }
.grid3 { display: grid; gap: 2.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.75rem; }
.grid4 > *, .grid3 > * { min-width: 0; }
.feature svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 1rem; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid4, .grid3 { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.hero .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.hero-brand { display: flex; align-items: center; gap: 1.125rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.hero-icon { flex: none; width: 84px; height: 84px; border-radius: 22.5%; box-shadow: var(--icon-shadow); }
.hero-name { display: flex; flex-direction: column; gap: 0.35rem; }
.hero-name .wordmark { font-size: clamp(2.25rem, 4vw, 2.75rem); }
.hero-name .tagline { font-size: var(--small); font-weight: 600; color: var(--muted); }
@media (max-width: 480px) { .hero-icon { width: 64px; height: 64px; } }
.hero h1 { font-size: var(--display); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; }
.hero h1 span { color: var(--accent); display: block; }
.hero .lead { margin-top: 1.5rem; max-width: 42ch; font-size: var(--lead); line-height: 1.5; color: var(--body); }
.hero .lead strong { color: var(--ink); font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem; margin-top: 2rem; }
.hero .fine { margin-top: 1rem; font-size: var(--small); color: var(--muted); }
@media (max-width: 900px) { .hero .inner { grid-template-columns: minmax(0, 1fr); } }

/* claims strip */
.claims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.claims p { font-size: var(--sub); font-weight: 650; line-height: 1.4; color: var(--ink); }
.claims p::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-bottom: 0.9rem; }
@media (max-width: 1000px) { .claims { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .claims { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }

/* the dark band */
.band.dark { background: var(--band); color: var(--band-ink); border-top: 0; }
.band.dark h2, .band.dark h3 { color: var(--band-ink); }
.band.dark p { color: var(--on-band); }
.band.dark :focus-visible { outline-color: var(--band-ink); }
.band.dark a:not(.button) { color: var(--band-accent); }
.screen .status svg { width: 14px; height: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 7vw, 6rem); }
.split > * { min-width: 0; }
.numbered { list-style: none; margin: 0; padding: 0; }
.numbered li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--band-hair); }
.numbered li:first-child { padding-top: 0; }
.numbered li:last-child { border-bottom: 0; }
.numbered .n { padding-top: 0.2rem; font-weight: 800; font-size: var(--small); color: var(--band-accent); font-variant-numeric: tabular-nums; }
.band.dark .button { color: var(--band-ink); border-color: var(--band-ink); margin-top: 2.25rem; }
.band.dark .button:hover { color: var(--band-accent); border-color: var(--band-accent); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* folders */
.folder { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.folder .tag { display: inline-block; margin-bottom: 0.75rem; padding: 0.15rem 0.6rem; border-radius: 6px; background: var(--chip); font-size: var(--label); font-weight: 700; color: var(--ink); }
.swipes { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.swipe { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--paper); border: 1px solid var(--hair); font-size: var(--small); color: var(--body); }
.swipe b { color: var(--ink); }
.swipe .pill { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.swipe .pill svg { width: 18px; height: 18px; }
.pill.pin { background: #C94B25; }
.pill.archive { background: #2F8F5B; }
.pill.remove { background: #C23A2A; }
@media (max-width: 760px) { .swipes { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 4rem); }
.faq-grid > * { min-width: 0; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-child { border-top: 1px solid var(--hair); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; cursor: pointer; font-size: var(--sub); font-weight: 800; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--muted); transition: transform 250ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.5rem; max-width: 64ch; color: var(--body); }
.faq details > div p + p { margin-top: 0.75rem; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* poster */
.poster { padding-block: calc(var(--section) * 1.2); }
.poster .split { align-items: end; }
.poster h2 { font-size: var(--display); line-height: 0.98; letter-spacing: -0.04em; max-width: 13ch; }
.poster .soon { background: transparent; border-color: var(--band-ink); color: var(--band-ink); margin-top: 2rem; }
.poster .soon small { color: var(--on-band); }
.poster .lead { font-size: var(--lead); line-height: 1.55; max-width: 46ch; }

/* ------------------------------------------------------------ phone */
.phone { position: relative; justify-self: center; width: min(100%, 22rem); aspect-ratio: 9 / 18.5; border-radius: 3rem; padding: 0.7rem; background: #1D1B19; box-shadow: var(--shadow), 0 0 0 1px var(--hair); }
.screen { position: relative; height: 100%; border-radius: 2.4rem; overflow: hidden; background: #FBFAF7; color: #1D1B19; font-size: 13px; line-height: 1.35; }
.screen .status { display: flex; justify-content: space-between; align-items: center; padding: 0.95rem 1.6rem 0.2rem; font-weight: 700; font-size: 12px; }
.screen .island { position: absolute; top: 0.6rem; left: 50%; width: 5.5rem; height: 1.5rem; margin-left: -2.75rem; border-radius: 1rem; background: #1D1B19; }
.screen .top { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 1rem 0; }
.screen .top img { width: 24px; height: 24px; border-radius: 6px; }
.glass { display: flex; gap: 0.95rem; padding: 0.4rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.8); border: 0.5px solid rgba(29, 27, 25, 0.08); box-shadow: 0 6px 18px rgba(29, 27, 25, 0.1); color: #1D1B19; }
.glass svg { width: 16px; height: 16px; }
.screen .large { display: flex; justify-content: space-between; align-items: baseline; padding: 0.45rem 1rem 0.35rem; }
.screen .large b { font-size: 26px; letter-spacing: -0.02em; }
.screen .large span { color: #8A847D; font-size: 12px; }
.chips { display: flex; gap: 0.4rem; padding: 0.2rem 1rem 0.55rem; overflow: hidden; }
.chips span { flex: none; padding: 0.3rem 0.7rem; border-radius: 999px; background: #F1EEE9; font-size: 11.5px; font-weight: 600; color: #6F6A64; }
.chips span.on { background: #1D1B19; color: #fff; }
.day { padding: 0.35rem 1rem 0.2rem; font-size: 11px; font-weight: 700; color: #A29D96; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 0.7rem; padding: 0.55rem 1rem 0.65rem 1.5rem; border-bottom: 0.5px solid #E6E2DC; }
.row .dot { position: absolute; left: 0.65rem; top: 0.85rem; width: 7px; height: 7px; border-radius: 50%; background: #EE6C45; }
.row .t { font-weight: 650; font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .by { color: #6F6A64; font-size: 11.5px; margin-top: 0.15rem; }
.row .meta { color: #8A847D; font-size: 10.5px; margin-top: 0.2rem; letter-spacing: 0.02em; }
.row .meta em { font-style: normal; color: #2F8F5B; font-weight: 700; }
.thumb { width: 40px; height: 56px; border-radius: 6px; background: repeating-linear-gradient(135deg, #EDE8E1 0 6px, #E2DCD3 6px 12px); }
.thumb.warm { background: repeating-linear-gradient(135deg, #F7DCCF 0 6px, #F0CBB9 6px 12px); }
.thumb.green { background: repeating-linear-gradient(135deg, #DCE7DF 0 6px, #CCDCD1 6px 12px); }
.tweet { margin: 0.55rem 1rem 0.5rem 1.5rem; padding: 0.7rem 0.75rem; border: 1px solid #E6E2DC; border-radius: 16px; background: #fff; position: relative; }
.tweet .who { display: flex; align-items: center; gap: 0.5rem; font-size: 12px; }
.tweet .av { width: 26px; height: 26px; border-radius: 50%; background: #FDEDE6; }
.tweet .who b { display: block; font-size: 12px; }
.tweet .who span { color: #8A847D; font-size: 11px; }
.tweet .badge { margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; color: #C94B25; }
.tweet p { margin-top: 0.45rem; font-size: 12px; color: #1D1B19; }
.tabbar { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: flex; gap: 0.2rem; padding: 0.3rem; border-radius: 999px; background: rgba(255, 255, 255, 0.82); border: 0.5px solid rgba(29, 27, 25, 0.08); box-shadow: 0 10px 30px rgba(29, 27, 25, 0.14); }
.tabbar span { position: relative; display: grid; place-items: center; width: 3.4rem; height: 2.4rem; border-radius: 999px; color: #8A847D; }
.tabbar span.on { background: rgba(29, 27, 25, 0.08); color: #1D1B19; }
.tabbar svg { width: 20px; height: 20px; }
.tabbar .unread::after { content: ""; position: absolute; top: 0.4rem; right: 1rem; width: 6px; height: 6px; border-radius: 50%; background: #EE6C45; }
.offline-banner { margin: 0 1rem 0.35rem; padding: 0.45rem 0.65rem; border-radius: 10px; background: #FDEDE6; color: #8C3517; font-size: 11px; font-weight: 600; display: flex; gap: 0.4rem; align-items: center; }
.offline-banner svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 420px) { .phone { width: 100%; border-radius: 2.6rem; } .screen { border-radius: 2.1rem; } }

/* -------------------------------------------------------- documents */
.doc { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) var(--section); }
.doc .eyebrow { font-size: var(--label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.doc h1 { font-size: var(--title); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.doc .lead { margin-top: 1.25rem; max-width: 52ch; font-size: var(--lead); line-height: 1.5; color: var(--body); }
.doc .dated { margin-top: 1rem; font-size: var(--small); color: var(--muted); }
.doc-layout { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: clamp(2rem, 5vw, 4rem); margin-top: 3rem; }
.toc { position: sticky; top: calc(var(--bar) + 1.5rem); align-self: start; max-height: calc(100vh - var(--bar) - 3rem); overflow-y: auto; font-size: var(--label); }
.toc p { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.7rem; border-left: 2px solid var(--hair); color: var(--muted); text-decoration: none; line-height: 1.45; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 700; border-left-color: var(--accent); }
.heading-row { display: flex; align-items: flex-start; gap: 0.35rem; margin-bottom: 0.9rem; }
.heading-row h2 { margin-bottom: 0; }
.copy-link { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -0.1rem; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; opacity: 0.55; transition: opacity 150ms ease, color 150ms ease, background-color 150ms ease; }
.copy-link svg { width: 16px; height: 16px; }
.heading-row:hover .copy-link, .copy-link:focus-visible, .copy-link.copied { opacity: 1; }
.copy-link:hover { color: var(--ink); background: var(--chip); }
.copy-link.copied { color: var(--green); }
@media (hover: none) { .copy-link { opacity: 1; } }
.prose { color: var(--body); line-height: 1.7; min-width: 0; }
.prose section { scroll-margin-top: calc(var(--bar) + 1.5rem); }
.prose section + section { margin-top: 2.5rem; }
.prose h2 { font-size: var(--sub); font-weight: 800; line-height: 1.3; margin-bottom: 0.9rem; }
.prose h3 { font-size: var(--text); font-weight: 700; margin: 1.5rem 0 0.5rem; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + .table, .prose .table + p, .prose p + ol, .prose ol + p { margin-top: 0.9rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--accent-text); }
.table { overflow-x: auto; border: 1px solid var(--hair); border-radius: 12px; }
.table table { width: 100%; border-collapse: collapse; font-size: var(--small); line-height: 1.5; }
.table th, .table td { text-align: left; vertical-align: top; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--hair); }
.table tr:last-child td { border-bottom: 0; }
.table th { color: var(--ink); background: var(--soft); font-weight: 700; }
.table td:first-child { color: var(--ink); font-weight: 600; }
.placeholder { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--ink); padding: 0 0.2em; border-radius: 3px; font-weight: 600; }
.doc-controls { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; padding-bottom: 1.5rem; border-bottom: 1px solid var(--hair); }
}

/* support contact cards */
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.contact { padding: 1.25rem 1.3rem; border: 1px solid var(--hair); border-radius: 18px; background: var(--paper); }
.contact h2 { font-size: var(--text); font-weight: 800; margin-bottom: 0.35rem; }
.contact p { color: var(--body); font-size: var(--small); }
.contact a { font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 760px) { .contacts { grid-template-columns: minmax(0, 1fr); } }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 2.25rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0.1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--chip); color: var(--ink); font-size: var(--label); font-weight: 800; display: grid; place-items: center; }

/* ----------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--hair); padding: 1.75rem var(--gutter) 2rem; }
.footer .inner { display: flex; flex-direction: column; gap: 1.1rem; }
.footer nav { display: flex; flex-wrap: wrap; column-gap: 1.75rem; row-gap: 0.25rem; }
.footer nav a, .footer nav button { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0; background: none; border: 0; font: inherit; font-size: var(--small); color: var(--muted); text-decoration: none; cursor: pointer; }
.footer nav a:hover, .footer nav button:hover { color: var(--ink); }
.footer .base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; font-size: var(--small); color: var(--muted); }
.footer .brand-icon { width: 22px; height: 22px; box-shadow: 0 4px 10px -4px rgba(238, 108, 69, 0.55); }
.footer .brand .wordmark { font-size: 1.125rem; }
.footer .made { font-weight: 600; }
.footer .legal-line { font-size: var(--small); color: var(--muted); }

.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ink); color: var(--ground); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(0.75rem); pointer-events: none; transition: opacity 250ms ease, transform 250ms ease, background-color 180ms ease; }
.to-top.shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-text); color: var(--on-accent); }
.to-top svg { width: 20px; height: 20px; }
body.consent-open .to-top { display: none; }

/* 404 */
.lost { padding: clamp(4rem, 12vw, 9rem) var(--gutter); }
.lost h1 { font-size: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.lost p { margin-top: 1.25rem; font-size: var(--lead); color: var(--body); max-width: 40ch; }

/* ---------------------------------------------------------- consent */
.consent { position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem; margin: 0 auto; max-width: 44rem; padding: 1.35rem 1.4rem; background: var(--paper); color: var(--ink); border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--shadow); }
.consent[hidden] { display: none; }
.consent h2 { font-size: var(--sub); font-weight: 800; margin-bottom: 0.4rem; }
.consent p { font-size: var(--small); color: var(--body); line-height: 1.55; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.1rem; }
.consent-actions .choice { flex: 1 1 9rem; }
.choice { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0.6rem 1.1rem; font: inherit; font-size: var(--small); font-weight: 800; background: var(--ink); color: var(--ground); border: 2px solid var(--ink); cursor: pointer; }
.choice:hover { background: var(--accent-text); border-color: var(--accent-text); color: var(--on-accent); }
.choice.quiet { background: transparent; color: var(--ink); }
.choice.quiet:hover { background: transparent; color: var(--accent-text); border-color: var(--accent-text); }
.consent-dialog { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--hair); border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.consent-dialog::backdrop { background: rgba(13, 12, 11, 0.45); }
.consent-dialog form { padding: 1.5rem; }
.consent-dialog h2 { font-size: var(--sub); font-weight: 800; }
.consent-dialog > form > p { margin-top: 0.5rem; font-size: var(--small); color: var(--body); }
.category { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.category:first-of-type { margin-top: 1rem; border-top: 1px solid var(--hair); }
.category label, .category .name { font-weight: 800; }
.category p { grid-column: 1 / -1; font-size: var(--small); color: var(--body); }
.category .always { font-size: var(--label); font-weight: 700; color: var(--muted); }
.switch { appearance: none; -webkit-appearance: none; position: relative; width: 51px; height: 31px; margin: 0; border-radius: 999px; background: var(--hair); cursor: pointer; transition: background-color 200ms ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transition: transform 200ms ease; }
.switch:checked { background: var(--accent-text); }
.switch:checked::after { transform: translateX(20px); }
.consent-dialog .consent-actions { margin-top: 1.25rem; }
.consent-links { margin-top: 1rem; font-size: var(--label); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
  .bar, .footer, .consent, .to-top, .toc { display: none !important; }
  .doc-layout { display: block; }
}

/* Lettered and roman sub-clauses in the legal documents. */
.prose p.sub { padding-left: 1.75em; }

/* ---------------------------------------------------------- pricing */
.pricing .band { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.price-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem 4rem; }
.price-head h1 { font-size: var(--title); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.price-head .lead { align-self: end; max-width: 52ch; font-size: var(--lead); line-height: 1.55; color: var(--body); }
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 4rem; margin-top: 3.5rem; }
.price-grid > * { min-width: 0; }
.plan { display: flex; flex-direction: column; }
.plan h2, .plan-later h2 { font-size: var(--sub); font-weight: 800; line-height: 1.25; letter-spacing: 0; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.65rem; margin-top: 1rem; }
.price .amount { font-size: var(--title); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.price .period { font-size: var(--small); color: var(--muted); }
.plan-what { margin-top: 1rem; font-weight: 600; color: var(--ink); }
.plan-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.plan-list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--hair); color: var(--body); }
.plan-list li:first-child { border-top: 1px solid var(--hair); }
.plan-list .mark { font-weight: 800; color: var(--accent-text); }
.plan-foot { padding-top: 2rem; }
.plan-foot p { margin-top: 0.75rem; font-size: var(--small); color: var(--muted); }
.plan-later { border-left: 1px solid var(--hair); padding-left: 2.5rem; }
.plan-later p { margin-top: 1rem; max-width: 46ch; }
.guarantee { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); max-width: 92ch; }
@media (max-width: 860px) {
  .price-head, .price-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-later { border-left: 0; padding-left: 0; border-top: 2px solid var(--strong); padding-top: 1.75rem; }
}

/* ---------------------------------------------------- account pages */
.account { padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter) var(--section); }
.account-grid { display: grid; grid-template-columns: 28rem minmax(0, 22rem); justify-content: space-between; gap: 3rem 4rem; }
.account-main { min-width: 0; max-width: 28rem; }
.account-icon { width: 56px; height: 56px; border-radius: 22.5%; box-shadow: var(--icon-shadow); margin-bottom: 1.75rem; }
.panel h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
.panel h1:focus { outline: none; }
.panel h1:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
.lede { margin-top: 0.9rem; font-size: var(--text); line-height: 1.6; color: var(--body); }
.notice { margin-top: 1.5rem; padding: 0.9rem 1rem; border: 1px solid var(--hair); border-radius: 12px; background: var(--paper); font-size: var(--small); line-height: 1.55; color: var(--body); }
.account-form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2rem; }
.field label { display: block; margin-bottom: 0.4rem; font-size: var(--small); font-weight: 700; color: var(--ink); }
.field input { display: block; width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--strong); border-radius: 14px; }
.field input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; border-color: var(--accent-text); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.hint { margin-top: 0.4rem; font-size: var(--label); color: var(--muted); }
.form-error { padding: 0.75rem 0.9rem; border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--bad) 8%, transparent); color: var(--bad); font-size: var(--small); line-height: 1.5; }
.form-error:focus { outline: none; }
.form-error:focus-visible { outline: 2px solid var(--bad); outline-offset: 2px; }
.primary { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0.75rem 1.25rem; font: inherit; font-weight: 800; color: var(--on-accent); background: var(--accent-text); border: 0; border-radius: 16px; text-decoration: none; cursor: pointer; transition: background-color 180ms ease; }
.primary:hover { background: var(--ink); color: var(--ground); }
.primary:disabled { opacity: 0.6; cursor: progress; }
.panel-action { margin-top: 2rem; }
.account-more { margin-top: 1.5rem; font-size: var(--small); color: var(--muted); }
.account-aside { padding-top: 0.5rem; }
.account-aside .eyebrow { font-size: var(--label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.account-aside dl { margin: 1.25rem 0 0; }
.account-aside dl > div + div { margin-top: 1.25rem; }
.account-aside dt { font-weight: 800; color: var(--ink); }
.account-aside dd { margin: 0.25rem 0 0; font-size: var(--small); line-height: 1.6; color: var(--body); }
.account-aside .more { margin-top: 1.5rem; font-size: var(--small); font-weight: 700; }
@media (max-width: 900px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .account-aside { border-top: 1px solid var(--hair); padding-top: 2rem; }
}

/* Hero art: the app icon, large, until real App Store screenshots replace it. */
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(240px, 60vw); height: auto; border-radius: 22%; box-shadow: 0 24px 60px -18px rgba(238, 108, 69, 0.45); }

/* A real screenshot in the phone frame (public/shots/). Only genuine app screenshots go here. */
.phone.real { aspect-ratio: auto; margin: 0; }
.phone.real img { display: block; width: 100%; height: auto; border-radius: 2.4rem; }
@media (max-width: 420px) { .phone.real img { border-radius: 2.1rem; } }
