/* Gritova website. The coach website's look ("Cobalt", docs/parity/notes-r7-web-design.md) at marketing scale: the
   same tokens, type, pills and kind tiles, so the site and the product read as one thing. Rules that hold here too:
   blue is action and selection only, green only good or done, orange only what still needs the coach, red only
   overdue, failed or destructive; kind colours live on icon tiles and nowhere else; no edge accent bars, gradients,
   glows or glass. */

@font-face {
  /* Only non-Apple devices download it: Apple's system font comes first in --font. Inter 4, OFL (fonts/LICENSES.txt). */
  font-family: "Gritova Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  /* While Inter loads, a local Arial sized to Inter's metrics, so text doesn't jump when it swaps in. */
  font-family: "Gritova Inter Fallback";
  src: local("Arial");
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
  size-adjust: 107.06%;
}

/* ---------- Tokens (the coach website's values) ---------- */
:root {
  --bg: #f3f1ec;
  --surface: #ffffff;
  --surface-inset: #efede7;
  --text: #141312;
  --muted: #66635d;
  --border: #e5e2db;
  --brand: #1a63db;
  --brand-hover: #1553ba;
  --brand-ink: #1553ba;
  --brand-soft: #e5eefc;
  --on-brand: #ffffff;
  --good: #18794a;
  --good-soft: #e2f4ea;
  --k-checkin: #4f46c8; --k-checkin-bg: #ecebfc;
  --k-message: #1a63db; --k-message-bg: #e5eefc;
  --k-training: #8136c4; --k-training-bg: #f3e8fc;
  --k-nutrition: #1b7f45; --k-nutrition-bg: #e3f5ea;
  --k-protocol: #cc2f36; --k-protocol-bg: #fde7e7;
  --k-payment: #0a7c73; --k-payment-bg: #ddf3f0;
  --k-client: #bd2160; --k-client-bg: #fce6ef;
  --k-form: #4f46c8; --k-form-bg: #ecebfc;
  --k-timeline: #0a6f8a; --k-timeline-bg: #ddf0f6;
  --card-shadow: 0 1px 2px rgb(40 33 20 / 0.05);
  --lift: 0 1px 2px rgb(40 33 20 / 0.05), 0 24px 48px -28px rgb(40 33 20 / 0.28);
  --float: 0 2px 6px rgb(40 33 20 / 0.06), 0 28px 60px -20px rgb(40 33 20 / 0.32);
  --edge: 0 0 0 1px rgb(20 19 18 / 0.06);
  --phone-frame: #141312;
  --header-bg: rgb(243 241 236 / 0.92);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Gritova Inter", "Gritova Inter Fallback", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Gritova Inter", "Gritova Inter Fallback", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-card: 20px;
  --wrap: 1120px;
  --gutter: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
/* Dark: the saved choice; without JavaScript, the device's setting (below). */
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-inset: #2c2c2e;
  --text: #ffffff;
  --muted: #98989f;
  --border: #38383a;
  --brand: #2b6ce6;
  --brand-hover: #3b7cf0;
  --brand-ink: #5e9bff;
  --brand-soft: #14284a;
  --good: #30d158;
  --good-soft: #12301c;
  --k-checkin: #8a86ff; --k-checkin-bg: #24224a;
  --k-message: #5e9bff; --k-message-bg: #14284a;
  --k-training: #c77dff; --k-training-bg: #33204a;
  --k-nutrition: #30d158; --k-nutrition-bg: #12301c;
  --k-protocol: #ff6961; --k-protocol-bg: #3d1715;
  --k-payment: #40c8ba; --k-payment-bg: #0f302d;
  --k-client: #ff6fa5; --k-client-bg: #3d1626;
  --k-form: #8a86ff; --k-form-bg: #24224a;
  --k-timeline: #5ac8fa; --k-timeline-bg: #0e2c3a;
  --card-shadow: none;
  --lift: 0 0 0 1px rgb(255 255 255 / 0.07);
  --float: 0 0 0 1px rgb(255 255 255 / 0.1), 0 28px 60px -20px rgb(0 0 0 / 0.9);
  --edge: 0 0 0 1px rgb(255 255 255 / 0.1);
  --phone-frame: #2c2c2e;
  --header-bg: rgb(0 0 0 / 0.9);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-inset: #2c2c2e;
    --text: #ffffff;
    --muted: #98989f;
    --border: #38383a;
    --brand: #2b6ce6;
    --brand-hover: #3b7cf0;
    --brand-ink: #5e9bff;
    --brand-soft: #14284a;
    --good: #30d158;
    --good-soft: #12301c;
    --k-checkin: #8a86ff; --k-checkin-bg: #24224a;
    --k-message: #5e9bff; --k-message-bg: #14284a;
    --k-training: #c77dff; --k-training-bg: #33204a;
    --k-nutrition: #30d158; --k-nutrition-bg: #12301c;
    --k-protocol: #ff6961; --k-protocol-bg: #3d1715;
    --k-payment: #40c8ba; --k-payment-bg: #0f302d;
    --k-client: #ff6fa5; --k-client-bg: #3d1626;
    --k-form: #8a86ff; --k-form-bg: #24224a;
    --k-timeline: #5ac8fa; --k-timeline-bg: #0e2c3a;
    --card-shadow: none;
    --lift: 0 0 0 1px rgb(255 255 255 / 0.07);
    --float: 0 0 0 1px rgb(255 255 255 / 0.1), 0 28px 60px -20px rgb(0 0 0 / 0.9);
    --edge: 0 0 0 1px rgb(255 255 255 / 0.1);
    --phone-frame: #2c2c2e;
    --header-bg: rgb(0 0 0 / 0.9);
    color-scheme: dark;
  }
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1000px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.625rem, 1.55rem + 4.4vw, 5.25rem); line-height: 1.03; letter-spacing: -0.032em; }
h2 { font-size: clamp(2rem, 1.45rem + 2.3vw, 3.375rem); line-height: 1.07; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(1.125rem, 1.03rem + 0.4vw, 1.3125rem); line-height: 1.5; color: var(--muted); letter-spacing: -0.01em; }
.fine { font-size: 0.9375rem; color: var(--muted); }
.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: -64px; z-index: 50; padding: 12px 18px; border-radius: 22px; background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons: pills, like the product's ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 24px; border: 0;
  background: var(--brand); color: var(--on-brand);
  font: 600 1.0625rem/1.2 var(--font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.button:hover { background: var(--brand-hover); }
.button:active { transform: scale(0.98); }
/* The second action: a white pill on the stone page, like the product's tabs. */
.button-quiet { background: var(--surface); color: var(--text); box-shadow: var(--card-shadow), var(--edge); }
.button-quiet:hover { background: var(--surface-inset); }
.button-small { min-height: 40px; padding: 8px 18px; border-radius: 20px; font-size: 0.9375rem; }
/* On a white card the second action is the product's grey pill. */
.card .button-quiet, .plan .button-quiet { background: var(--surface-inset); box-shadow: none; }
.card .button-quiet:hover, .plan .button-quiet:hover { background: var(--border); }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.text-link::after { content: "→"; transition: transform 0.15s var(--ease); }
.text-link:hover { text-decoration: underline; }
.text-link:hover::after { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (max-width: 419px) {
  .actions .button { flex: 1 1 100%; }
}

/* ---------- Kind tiles: the product's coloured tile per kind of thing ---------- */
.kind { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--kind-bg); color: var(--kind-ink); }
.kind svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kind-checkin { --kind-bg: var(--k-checkin-bg); --kind-ink: var(--k-checkin); }
.kind-message { --kind-bg: var(--k-message-bg); --kind-ink: var(--k-message); }
.kind-training { --kind-bg: var(--k-training-bg); --kind-ink: var(--k-training); }
.kind-nutrition { --kind-bg: var(--k-nutrition-bg); --kind-ink: var(--k-nutrition); }
.kind-protocol { --kind-bg: var(--k-protocol-bg); --kind-ink: var(--k-protocol); }
.kind-payment { --kind-bg: var(--k-payment-bg); --kind-ink: var(--k-payment); }
.kind-client { --kind-bg: var(--k-client-bg); --kind-ink: var(--k-client); }
.kind-form { --kind-bg: var(--k-form-bg); --kind-ink: var(--k-form); }
.kind-timeline { --kind-bg: var(--k-timeline-bg); --kind-ink: var(--k-timeline); }
/* Not a kind of thing (a device, an email): a neutral tile. */
.kind-plain { --kind-bg: var(--surface-inset); --kind-ink: var(--text); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.scrolled .site-header { border-bottom-color: var(--border); }
.header-row { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; color: var(--text); text-decoration: none; font: 700 1.25rem/1 var(--font-display); letter-spacing: -0.03em; }
.brand svg { width: 22px; height: 22px; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a, .menu-panel a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 20px; color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.nav a:hover, .menu-panel a:hover { background: var(--surface-inset); }
/* The page you're on: the product's selected-nav capsule. */
.nav a[aria-current="page"], .menu-panel a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.header-cta { margin-left: auto; }
.menu { position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; cursor: pointer; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--surface-inset); }
.menu summary svg { width: 22px; height: 22px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; display: grid; gap: 2px; padding: 8px; border-radius: 18px; background: var(--surface); box-shadow: var(--float); }
.menu-panel a { min-height: 44px; font-size: 1.0625rem; }
@media (max-width: 359px) { .header-cta { padding: 8px 14px; } .site-header .brand span { display: none; } }
@media (min-width: 820px) {
  .nav { display: flex; }
  .menu { display: none; }
  .header-cta { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(16px, 3vw, 40px); }
.hero h1 { max-width: 11.5em; }
.hero .lead { max-width: 33rem; margin-top: 24px; }
.hero .actions { margin-top: 32px; }
.hero .fine { margin-top: 16px; }
.hero-shot { margin: clamp(40px, 6vw, 72px) 0 0; }
.hero-shot figcaption { margin-top: 16px; }
@media (min-width: 1000px) {
  .hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 56px; align-items: end; }
  .hero .lead { margin-top: 0; }
  .hero-side .actions { margin-top: 28px; }
}

/* ---------- Pictures of the product ---------- */
/* Each picture exists in light and dark; only the one for the current appearance is shown (and, being lazy, loaded). */
.theme-dark-img { display: none; }
:root[data-theme="dark"] .theme-light-img { display: none; }
:root[data-theme="dark"] .theme-dark-img { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-light-img { display: none; }
  :root:not([data-theme]) .theme-dark-img { display: block; }
}
.shot img { width: 100%; }
/* The whole coach website, in a plain window (no fake browser bar). */
.window { overflow: hidden; border-radius: 24px; background: var(--bg); box-shadow: var(--float); }
@media (max-width: 640px) { .window { border-radius: 20px; } }
/* One of the product's cards (or part of one), on the page like it sits in the product. */
.card-shot { overflow: hidden; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--lift); }
.dialog-shot { overflow: hidden; border-radius: 22px; background: var(--surface); box-shadow: var(--float); }
/* The iPhone app, as real screenshots in a plain frame. */
.phone { padding: 2.6%; border-radius: 15% / 7%; background: var(--phone-frame); box-shadow: var(--lift); }
.phone img { width: 100%; border-radius: 12.6% / 5.8%; }
.shot-caption { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 6.5vw, 88px) 0; }
.area { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-weight: 600; color: var(--muted); }
.story p:not(.area) { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
.story p + p:not(.area) { margin-top: 12px; }
.story .text-link { margin-top: 12px; }
.story-head { max-width: 46rem; }
/* Text beside a picture. */
.split { display: grid; gap: 40px; align-items: center; }
.split .story { max-width: 30rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split.flip .story { order: 2; }
}
/* Text above a wide picture. */
.wide-head { display: grid; gap: 16px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.wide-head p { color: var(--muted); font-size: 1.125rem; max-width: 34rem; }
@media (min-width: 960px) { .wide-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

/* Check-ins: the week counted and what changed. */
.review-shot { max-width: 600px; margin-left: auto; }
@media (max-width: 959px) { .review-shot { margin: 0 auto; } }

/* Photos that line up: as the client took them, and after Align. */
.align-pairs { display: grid; gap: 16px; }
@media (min-width: 900px) { .align-pairs { grid-template-columns: 1fr 1fr; gap: 24px; } }
.pair { margin: 0; padding: clamp(16px, 2.4vw, 24px); border-radius: 24px; background: var(--surface); box-shadow: var(--lift); }
.pair-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 16px; }
.pair-head h3 { font-size: 1.125rem; }
.pair-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair-photos figure { margin: 0; }
.pair-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: var(--surface-inset); }
.pair-photos figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
/* The product's own "Aligned" state: green means done. */
.done-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.done-tag svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.align-notes { display: grid; gap: 8px 32px; margin-top: 24px; color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 900px) { .align-notes { grid-template-columns: 1fr 1fr; } }

/* Library: the coach's programs, and Assign beside them. */
.library-grid { display: grid; gap: 40px; }
.library-main .window { margin-top: 40px; }
.library-grid .story { max-width: 36rem; }
.library-grid .dialog-shot { max-width: 440px; }
@media (min-width: 960px) {
  .library-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
  .library-grid .dialog-shot { justify-self: end; width: 100%; }
}
@media (max-width: 959px) { .library-grid .dialog-shot { margin: 0 auto; width: 100%; } }

/* Timeline: the coaching term and phases, and the meal plan's history. */
.stack { display: grid; gap: 16px; }

/* Payments: two ways to get paid, each beside how it looks to the coach. */
.ways { display: grid; gap: 40px; }
.way-row { display: grid; gap: 20px; align-items: center; }
@media (min-width: 960px) { .way-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.way { max-width: 30rem; }
.way h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.way p { margin-top: 8px; color: var(--muted); font-size: 1.0625rem; }
/* A crop that starts inside a card gets back the card's own space above it. */
.card-shot.pad-top { padding-top: 14px; }

/* One app for clients. */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 40px); max-width: 940px; margin: 0 auto; align-items: start; }
.phones figure { margin: 0; }
.phones figure:nth-child(2) { margin-top: clamp(24px, 5vw, 56px); }
.phones figcaption { margin-top: 16px; text-align: center; font-size: 0.9375rem; color: var(--muted); }
.phones figcaption strong { display: block; color: var(--text); font-size: 1rem; font-weight: 600; }
@media (max-width: 640px) {
  .phones { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; overscroll-behavior-x: contain; }
  .phones::-webkit-scrollbar { display: none; }
  .phones figure { scroll-snap-align: center; }
  .phones figure:nth-child(2) { margin-top: 0; }
}
.clients-head { text-align: center; margin: 0 auto clamp(40px, 6vw, 64px); max-width: 40rem; }
.clients-head .area { justify-content: center; }
.clients-head p:not(.area) { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
.clients-head .text-link { margin-top: 8px; }

/* And also: the rest, quietly. */
.also-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.025em; }
.also { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px 40px; }
@media (min-width: 640px) { .also { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .also { grid-template-columns: repeat(3, 1fr); } }
.also li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.also p { color: var(--muted); }
.also strong { display: block; color: var(--text); font-weight: 600; }

/* The closing call to action, on a card. */
.closing { padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px); border-radius: 32px; background: var(--surface); box-shadow: var(--lift); text-align: center; }
.closing .lead { max-width: 32rem; margin: 16px auto 0; }
.closing .actions { justify-content: center; margin-top: 32px; }
.closing .text-link { margin-top: 12px; }

/* ---------- Page heads (every other page) ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem); }
.page-head .lead { max-width: 36rem; margin-top: 20px; }
.actions-spaced { margin-top: 32px; }
.page-end { padding-bottom: clamp(72px, 10vw, 128px); }

/* ---------- Pricing ---------- */
.billing-switch { display: none; margin-top: 32px; padding: 4px; gap: 4px; border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow), var(--edge); }
.js .billing-switch { display: inline-flex; }
.billing-switch button { min-height: 40px; padding: 8px 20px; border: 0; border-radius: 20px; background: transparent; color: var(--text); font: 600 0.9375rem/1.2 var(--font); cursor: pointer; white-space: nowrap; }
.billing-switch button:hover { background: var(--surface-inset); }
.billing-switch button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.billing-switch .save { font-weight: 500; }
@media (max-width: 379px) { .billing-switch .save { display: none; } }
.plans { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--lift); }
.plan h2 { font-size: 1.375rem; letter-spacing: -0.02em; }
.plan .clients { margin-top: 4px; color: var(--muted); }
.price { margin-top: 28px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.price .amount { font: 700 3rem/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: 0.9375rem; }
.price-note { min-height: 1.5em; margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }
.plan .button { margin-top: 24px; width: 100%; }
@media (max-width: 639px) { .price-note:empty { display: none; } .plan .button { margin-top: 20px; } }
.pricing-notes { margin-top: 28px; display: grid; gap: 6px; }
.included { margin-top: clamp(64px, 8vw, 104px); }
.included h2, .faq h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); letter-spacing: -0.03em; }
.included ul { display: grid; gap: 14px 40px; margin: 32px 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .included ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .included ul { grid-template-columns: 1fr 1fr 1fr; } }
.included li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.included li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--good-soft) var(--tick) center / 14px no-repeat; }
:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318794a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330d158' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330d158' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); } }
.faq { margin-top: clamp(72px, 9vw, 112px); }
.faq-list { max-width: 820px; margin-top: 28px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--lift); padding: 0 24px; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 44rem; }
.faq details p + p { margin-top: -8px; }

/* ---------- Cards (Download, Contact) ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--lift); }
.card .kind { margin-bottom: 20px; }
.card h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.card p { margin-top: 8px; color: var(--muted); }
.card .spacer { flex: 1; min-height: 24px; }
.card .button { max-width: 100%; white-space: normal; text-align: center; }
.card-wide { grid-column: 1 / -1; }
.card-column { display: grid; gap: 16px; align-content: start; }
.card .actions { gap: 8px 20px; }
.badge { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--surface-inset); color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.download-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 380px; margin-top: 28px; }
.download-phones figure { margin: 0; }
.download-phones figcaption { margin-top: 8px; text-align: center; font-size: 0.875rem; color: var(--muted); }
.email { display: inline-flex; align-items: center; min-height: 48px; font: 700 clamp(1.25rem, 1rem + 1.6vw, 2rem)/1.2 var(--font-display); letter-spacing: -0.025em; overflow-wrap: anywhere; color: var(--text); text-decoration: none; }
.email:hover { text-decoration: underline; }
.center-card { align-items: center; text-align: center; }

/* ---------- Legal pages ---------- */
.legal-head .wrap, .legal .legal-body { max-width: calc(760px + 2 * var(--gutter)); }
.legal-head .updated { margin-top: 16px; color: var(--muted); }
.legal-head .lead { margin-top: 20px; }
.legal { padding-bottom: clamp(72px, 10vw, 128px); }
.legal-body { margin: 0 auto; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--lift); }
.wrap.legal { max-width: calc(760px + 2 * var(--gutter)); }
.legal-body h2 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.02em; margin-top: 44px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body ul { margin: 14px 0 0; }
.legal-body ul { padding-left: 1.25em; }
.legal-body li + li { margin-top: 8px; }
.legal-body .summary { padding: 20px 24px; border-radius: 16px; background: var(--surface-inset); }
.legal-body .summary p:first-child { margin-top: 0; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 28px 0 8px; padding: 0 0 20px; border-bottom: 1px solid var(--border); list-style: none; font-size: 0.9375rem; }
.legal-body .legal-toc { padding-left: 0; }
.legal-body .legal-toc li + li { margin-top: 0; }
.legal-toc a, .privacy-body nav[aria-label="On this page"] a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 20px; background: var(--surface-inset); color: var(--text); text-decoration: none; }
.legal-toc a:hover, .privacy-body nav[aria-label="On this page"] a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.privacy-body header { display: none; }
.privacy-body nav[aria-label="On this page"] { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0 0 24px; border-bottom: 1px solid var(--border); font-size: 0.9375rem; }
.privacy-body section + section { margin-top: 44px; }
.privacy-body h2 { margin-top: 0; }
.privacy-body ul { padding-left: 1.25em; }
.privacy-body li + li { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--border); padding: 56px 0 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { margin-top: 6px; color: var(--muted); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-links { grid-template-columns: repeat(3, auto); gap: 8px 64px; }
}
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; color: var(--muted); font-size: 0.875rem; }
.theme-control { display: inline-flex; gap: 2px; padding: 3px; border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow), var(--edge); }
.theme-control button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 20px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-control button:hover { color: var(--text); }
.theme-control button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-ink); }
.theme-control svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:root:not(.js) .theme-control { display: none; }

/* Last, so it wins over the sizes above. Fingers: every control at least 44 px on phones and touch screens. */
@media (max-width: 599px), (pointer: coarse) {
  .button-small { min-height: 44px; border-radius: 22px; }
  .billing-switch button { min-height: 44px; border-radius: 22px; }
  .theme-control button { width: 44px; height: 44px; border-radius: 22px; }
  .billing-switch, .theme-control { border-radius: 26px; }
}

/* Motion is only ever a colour change or a small press; none of it when the person asks for less. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .button:active { transform: none; }
}
