/* fonts.css */
/* Brand faces, served from this origin.
 *
 * Generated by tools/fetch-fonts.mjs — do not edit. The site loads no font, stylesheet or
 * script from a third party: that is what keeps the cookie policy's "no banner" true, and
 * it is the same reasoning ADR-014 applied to the waitlist.
 *
 * The app does not use these. In-app type is the platform default; the serif is a brand
 * surface only, which is why it lives here and not in the app's theme.
 *
 * Both faces are SIL Open Font License 1.1. The licence has to travel with every copy we
 * serve, so it ships beside them as assets/fonts/OFL-*.txt — one per family, because each
 * carries its own copyright line. A new family needs its own file from google/fonts.
 */

@font-face  {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-latin-ext-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face  {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-latin-2.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;
}

@font-face  {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-latin-ext-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face  {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-latin-2.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;
}

@font-face  {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-latin-ext-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face  {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-latin-2.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;
}

@font-face  {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin-3.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face  {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin-ext-4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face  {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin-5.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;
}

@font-face  {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin-3.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face  {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin-ext-4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face  {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin-5.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;
}


/* tokens.css */
/* Design tokens for the marketing surface.
 *
 * Taken from the Spadework design system that shipped with the landing design, narrowed to
 * what a static site needs. Two rules travel with these values and are worth restating
 * where they can be broken:
 *
 *   1. **Red is fenced.** `--danger` marks the referral block and nothing else. It is the
 *      one place in the product where a user sees red, and it only keeps that meaning if
 *      nothing borrows it for a form error. Form errors use ink.
 *   2. **The serif is a brand surface only.** The app runs on system type; Newsreader lives
 *      here, on the page, and never inside a product screenshot.
 *
 * There is no dark theme. The dark blocks on the page are composition, not a mode — a site
 * that flips to dark would have to re-derive the brand's dark palette, and the design does
 * not have one for the web.
 */
:root {
  --brand: #0d5e59;
  --brand-deep: #073f3c;
  --brand-on-dark: #5fa79f;
  --on-brand: #fff;

  --ink: #14201e;
  --ink-muted: rgba(20, 32, 30, 0.72);
  /* 64%, not lower: the floor for 4.5:1 on both `--page` (5.05) and `--surface` (4.90). The
     app's `inkFaint` was re-set to the same 64% for the same reason. */
  --ink-faint: rgba(20, 32, 30, 0.64);
  --on-dark: rgba(255, 255, 255, 0.72);
  --on-dark-faint: rgba(255, 255, 255, 0.62);

  --page: #fff;
  --surface: #f4f6f5;
  --surface-dark: #14201e;
  --card: #fff;

  --border: rgba(20, 32, 30, 0.1);
  --border-input: rgba(20, 32, 30, 0.14);
  --tint: rgba(13, 94, 89, 0.09);
  --on-dark-surface: rgba(255, 255, 255, 0.06);

  /* Referral and red-flag only. Never a form error. */
  --danger: #b4232a;

  --font-serif: Newsreader, Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-ui: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 9px;
  --radius: 11px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(48px, 6vw, 72px);
  --measure: 1200px;

  --shadow-card: 0 1px 2px rgba(20, 32, 30, 0.07);
  --shadow-phone: 0 24px 60px rgba(20, 32, 30, 0.22);
}

/* base.css */
/* Reset, page chrome, and the two controls the whole site shares. */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--brand); }
a:hover { color: var(--brand-deep); }

/* One focus treatment everywhere. Keyboard users get a ring on the brand colour; on dark
   surfaces it inverts, because a teal ring on near-black is not a ring. */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.on-dark :focus-visible { outline-color: #fff; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius) 0;
  font-size: 15px;
  text-decoration: none;
}
.skip:focus { left: 0; color: #fff; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
}

.section { padding: var(--section) var(--gutter); }

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.brand span {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.015em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.site-nav a {
  font-size: 15px;
  color: var(--ink-muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
/* `.site-nav a` outranks `.btn` on specificity, which painted the header CTA's label in
   ink-muted on brand green — 1.83:1. The button keeps its own colours inside the nav. */
.site-nav a.btn,
.site-nav a.btn:hover { color: #fff; }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-pill);
}

.lang a,
.lang span {
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  color: var(--ink-muted);
}

.lang [aria-current="true"] {
  background: var(--brand);
  color: #fff;
}

/* A language that is planned but not published. Shown, not linked — the switcher says what
   the product will be in, and a dead link would say it is already there. */
.lang .planned {
  color: var(--ink-faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn[disabled] { background: var(--brand-deep); cursor: default; }

.btn-lg {
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: 16px;
}

/* ------------------------------------------------------------- Waitlist */

.waitlist { max-width: 490px; }

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.waitlist input {
  flex: 1 1 220px;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}
.waitlist input:focus-visible {
  border-color: var(--brand);
  outline-offset: 1px;
}

/* The status line holds the consent notice at rest, so the space it occupies never changes
   height when a message replaces it. */
.waitlist-msg {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
}
/* The state lives on the status span, not the line: the privacy link sits outside it so a
   message replacing the consent text never takes the link away with it. */
.waitlist-msg [data-state="sent"] { color: var(--brand); }
.waitlist-msg [data-state="invalid"],
.waitlist-msg [data-state="error"],
.waitlist-msg [data-state="unavailable"] { color: var(--ink); }

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

.site-footer {
  padding: clamp(30px, 4vw, 40px) var(--gutter) 40px;
  border-top: 1px solid var(--border);
}

.site-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-muted);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
}

.site-footer-links a {
  font-size: 13.5px;
  color: var(--ink-muted);
  text-decoration: none;
}
.site-footer-links a:hover { color: var(--ink); }

.site-footer p {
  margin: 26px 0 0;
  max-width: 860px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.site-footer .holder {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* landing.css */
/* The landing page. Section order matches the design canvas; every clamp() below is the
   value the design carries, so a change here is a change to the design, not a tidy-up. */

.eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.on-dark .eyebrow { color: var(--brand-on-dark); }

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.06;
}

h2 {
  margin: 16px 0 0;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.15;
}

.lede {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}

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

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 6vw, 76px) var(--gutter);
  background: var(--surface);
}

.hero-copy { flex: 1 1 380px; min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--tint);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.hero .waitlist { margin-top: 30px; }

.hero-fine {
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* -------------------------------------------------------------- Phone */

.phone {
  flex: 0 1 372px;
  min-width: 280px;
  margin: 0 auto;
  padding: 11px;
  border-radius: 44px;
  background: var(--surface-dark);
  box-shadow: var(--shadow-phone);
}

/* Full-bleed brand chrome with one white action — the app's Today screen, not a generic
   card. Its type is the platform UI stack because that is what the screen actually uses. */
.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 580px;
  padding: 24px 20px 20px;
  border-radius: 34px;
  background: var(--brand);
  font-family: var(--font-ui);
  color: #fff;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.phone-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.phone-eyebrow { font-size: 15px; color: rgba(255, 255, 255, 0.75); }

.phone-title {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.phone-phase {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

/* The phase chip carries no rank: one tint for all three, identity only. */
.phone-phase i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: #fff;
}
.phone-phase b { font-size: 16px; font-weight: 500; }
.phone-phase em {
  font-size: 13px;
  font-style: normal;
  /* 0.9 because it sits on the phase chip's lighter green, not on the brand: 0.72 there is 3.66:1. */
  color: rgba(255, 255, 255, 0.9);
}

.phone-note {
  max-width: 290px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  text-wrap: pretty;
}

.phone-cta {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff;
  color: var(--brand);
  font-size: 17px;
  font-weight: 600;
}

.phone-second {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

.phone-second i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

/* ------------------------------------------------------------- Limits */

/* Above the fold on most screens, and the reason this block sits here rather than in the
   footer: the claim the product does not make has to be visible before the sign-up is. */
.limits-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 34px) var(--gutter);
  border-bottom: 1px solid var(--border);
}

.limits-strip p {
  flex: 1 1 420px;
  max-width: 900px;
  margin: 0;
  font-size: clamp(15px, 1.4vw, 16px);
  line-height: 1.65;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.mark {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 32, 30, 0.12);
  border-radius: 10px;
  background: var(--surface);
  font-size: 18px;
  font-weight: 600;
  color: var(--danger);
}

/* ----------------------------------------------------------- Sections */

.head { max-width: 640px; }

.steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.step {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step-n {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1;
  color: var(--brand);
}

.step h3 {
  margin: 14px 0 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
}

.step p,
.card p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.types {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(20, 32, 30, 0.12);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

/* Recovery is the only type with the engine behind it, and the only filled card. */
.card-brand {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}
.card-brand p { color: rgba(255, 255, 255, 0.82); }

.card-tag {
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.card-brand .card-tag { color: rgba(255, 255, 255, 0.78); }

.card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
}

.card p { margin: 0; }

.card-meta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-faint);
}
.card-brand .card-meta { color: rgba(255, 255, 255, 0.72); }

.note {
  margin: 22px 0 0;
  max-width: 820px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.stats {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.stat-n {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.stat-label {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.stats-note {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* -------------------------------------------------------------- Phases */

.on-dark {
  background: var(--surface-dark);
  color: #fff;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: var(--section) var(--gutter);
}

.split > * { flex: 1 1 320px; min-width: 0; }

.on-dark h2 { color: #fff; }

.on-dark .lede { color: var(--on-dark); }

.phase-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phase-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--on-dark-surface);
}

.phase-row .id {
  flex: none;
  width: 26px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  color: var(--brand-on-dark);
}

.phase-row b {
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.phase-row em {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-style: normal;
  line-height: 1.3;
  color: var(--on-dark-faint);
}

/* ------------------------------------------------------------ Streaks */

.counter {
  flex: 0 1 300px;
  min-width: 240px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.counter-n {
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.counter-label {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.grid-days {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.grid-days i {
  height: 16px;
  border-radius: 3px;
  background: rgba(20, 32, 30, 0.08);
}
.grid-days i.on { background: rgba(13, 94, 89, 0.55); }

.counter-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------- Stop */

.stop {
  margin: 0 var(--gutter);
  padding: 30px clamp(22px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.stop .mark { background: #fff; }

.stop > div:not(.mark) { flex: 1 1 420px; min-width: 0; }

.stop h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.stop p {
  margin: 8px 0 0;
  max-width: 820px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- CTA */

.cta {
  padding: var(--section) var(--gutter) clamp(48px, 6vw, 78px);
  text-align: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 42px);
}

.cta p {
  margin: 16px auto 0;
  max-width: 540px;
  font-size: clamp(15px, 1.4vw, 16px);
  line-height: 1.65;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.cta .waitlist {
  margin: 30px auto 0;
  text-align: left;
}

/* page.css */
/* The document template — privacy, terms, legal notice, cookies — and the two short pages.
 *
 * One template for all four legal documents, because they are the same object: a long
 * Spanish text somebody reads once, in a hurry, looking for one clause. So: a narrow
 * measure, generous leading, headings that can be linked to, and an index at the top. */

.page-head {
  padding: clamp(36px, 5vw, 56px) var(--gutter) clamp(24px, 3vw, 32px);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-head h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.12;
}

/* The status line under the title: the version and when it took effect, which is what a
   reader needs to match this page to the text they accepted in the app. */
.page-status {
  margin: 16px 0 0;
  max-width: 720px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.doc {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: flex-start;
  padding: clamp(32px, 4vw, 52px) var(--gutter) var(--section);
}

.doc-body {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 720px;
}

.doc-body h2 {
  margin: 40px 0 0;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  scroll-margin-top: 24px;
}
.doc-body h2:first-child { margin-top: 0; }

.doc-body h3 {
  margin: 28px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.doc-body p,
.doc-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.doc-body p { margin: 14px 0 0; }

.doc-body ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.doc-body li { margin-top: 8px; }

.doc-body strong { color: var(--ink); }

.doc-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.9em;
}

/* A table is the one block that cannot reflow, so it gets its own scroller rather than
   pushing the page sideways on a phone. */
.doc-table {
  margin-top: 18px;
  overflow-x: auto;
}

.doc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.doc-table th,
.doc-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
  color: var(--ink-muted);
}

.doc-table th {
  background: var(--surface);
  font-weight: 600;
  color: var(--ink);
}

.doc-note {
  margin-top: 18px;
  padding: 18px 22px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}
.doc-note > :first-child { margin-top: 0; }

.toc {
  position: sticky;
  top: 24px;
  flex: 0 1 250px;
  min-width: 220px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.toc h2 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.toc a {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-muted);
  text-decoration: none;
}
.toc a:hover { color: var(--brand); }

/* Narrow: the index moves above the document and stops sticking. Below forty sections of
   legal text it would be furniture; above them it is the only way to reach clause nine. */
@media (max-width: 860px) {
  .toc {
    order: -1;
    position: static;
    flex-basis: 100%;
  }
}

.doc-foot {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-faint);
}

/* --------------------------------------------------------- Short pages */

.prose {
  max-width: 720px;
  padding: clamp(32px, 4vw, 52px) var(--gutter) var(--section);
}

.prose > p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.block {
  margin-top: 28px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.block h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.block p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* The one block on a support page that is about a body rather than about software. It
   carries the referral mark for the same reason the landing's stop block does. */
.block-warning {
  background: #fff;
  border: 1px solid rgba(20, 32, 30, 0.12);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.block-warning > div:not(.mark) { flex: 1; min-width: 0; }

.links {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links a { font-size: 15.5px; }

.action {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.unavailable {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------- Licences */
/* Three hundred licence texts on one page. Each is folded behind its own summary, so the page
   reads as a list; the text is in the HTML regardless, which is what the licences require. */

.prose > h2 {
  margin: 40px 0 0;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
}

.license-summary {
  margin: 14px 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-muted);
}
.license-summary li {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.license {
  border-top: 1px solid var(--border);
}
.license:last-child { border-bottom: 1px solid var(--border); }

.license summary {
  /* 44px floor: a summary is the control, and on a phone it is tapped. */
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.license summary span { color: var(--ink-muted); }

.license-note {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.license-packages {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

.license-text {
  margin: 0 0 18px;
  padding: 14px 16px;
  max-height: 360px;
  overflow: auto;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
