/* Blackcap's website, refreshed (2026-11). The app's own look, kept: system type, grouped backgrounds, white cards,
   system blue, capsule chips, the song sheet. New: a type scale with more confidence, a "night" band for the app's
   dark screens, a light look by default with a switch to dark, the lanes' layer colours as the site's palette, and
   components for a Docs section. Nothing is loaded from anyone else's servers — the same promise the app makes.

   Contents
   1. Tokens (light, dark)      5. Header and menu         9.  Song-sheet card        13. Docs: index
   2. Base                      6. Buttons and chips       10. Gallery and phones     14. Docs: article and callouts
   3. Type                      7. Layout helpers          11. Lists, FAQ             15. Footer
   4. Night band                8. Hero and feature rows   12. Promise strip          16. Motion and print */

/* 1. Tokens ---------------------------------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Surfaces and text (light) */
  --bg: #f2f2f7;                 /* iOS grouped background */
  --surface: #ffffff;            /* cards, rows, the sheet */
  --surface-2: #f2f2f7;          /* a well inside a card */
  --surface-3: #e5e5ea;
  --fill: rgba(120, 120, 128, 0.14);
  --text: #0b0b0f;
  --text-2: #5c5c64;             /* readable secondary (the app's secondaryText) */
  --text-3: #8a8a90;             /* captions, meta */
  --line: rgba(60, 60, 67, 0.16);
  --line-strong: rgba(60, 60, 67, 0.3);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -24px rgba(16, 24, 48, 0.35);
  --shadow-phone: 0 30px 60px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);

  /* Accent: system blue */
  --accent: #007aff;
  --accent-strong: #0062cc;
  --accent-soft: #e6f0ff;
  --accent-text: #0062cc;        /* blue on a light surface, for small text */
  --on-accent: #ffffff;

  /* The night: the App Store look, used as a band in light mode and as the page in dark mode */
  --night: #06070c;
  --night-2: #101320;
  --night-glow: #0a4fd0;
  --night-text: #f5f5f7;
  --night-text-2: #b4b9cc;
  --night-line: rgba(255, 255, 255, 0.1);

  /* The layers, as the app colours them on the lanes */
  --chords: #f0a52a;             /* amber */
  --beat: #ff5a4f;               /* coral */
  --keys: #3f86ff;               /* blue */
  --sampler: #9b6cff;            /* violet */
  --words: #26b7ab;              /* teal */
  --voice: #ff7a45;              /* orange */
  --band: #2fc36b;               /* green */
  /* Parts, as the app colours them (verse amber, chorus purple, bridge green, intro/outro deeper) */
  --part-intro: #b8452f;
  --part-verse: #f0a52a;
  --part-chorus: #8f5cff;
  --part-bridge: #2fa864;
  --part-outro: #7a4bd6;
  --red: #ff3b30; --green: #34c759; --orange: #ff9500; --yellow: #ffcc00; --teal: #30b0c7; --indigo: #5856d6; --pink: #ff2d55;

  /* Type: the system's own faces */
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: ui-serif, "New York", Georgia, "Times New Roman", serif;   /* lyrics, as on the app's Words page */
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Scale: 15 / 17 / 20 / 24 / 30–40 / 40–68 */
  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.875rem, 1.35rem + 2.2vw, 2.5rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.4vw, 4.25rem);

  /* Spacing (4-based) and radii */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 22px; --r-pill: 999px;

  --page: 1160px;
  --measure: 66ch;
  --header-h: 60px;
}

/* Dark: only when chosen with the header's switch (light is the default — Lane, 2026-11-01). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #141418;          /* the app's cards sit at #1c1c1e on black; a touch deeper reads better on the web */
  --surface-2: #1f1f24;
  --surface-3: #2c2c31;
  --fill: rgba(120, 120, 128, 0.24);
  --text: #f5f5f7;
  --text-2: #a9a9b2;
  --text-3: #7c7c85;
  --line: rgba(84, 84, 88, 0.55);
  --line-strong: rgba(84, 84, 88, 0.9);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -28px rgba(0, 0, 0, 0.9);
  --accent: #0a84ff;
  --accent-strong: #409cff;
  --accent-soft: rgba(10, 132, 255, 0.16);
  --accent-text: #5ea8ff;
  --chords: #f5b13a; --keys: #5a9bff; --sampler: #ad84ff; --words: #3bcbbf; --voice: #ff8a59; --band: #3fd27b;
  --part-verse: #f5b13a; --part-chorus: #a079ff; --part-bridge: #3fc07a; --part-intro: #d25a40; --part-outro: #8f62f0;
}

/* 2. Base ------------------------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--step-0)/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; text-underline-offset: 0.16em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
p, ul, ol, figure { margin: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Type ------------------------------------------------------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--step-4); letter-spacing: -0.03em; font-weight: 800; line-height: 1.02; }
h2 { font-size: var(--step-3); letter-spacing: -0.025em; }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
h4 { font-size: var(--step-0); }
.lede { font-size: var(--step-1); color: var(--text-2); line-height: 1.45; max-width: 36ch; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 0.8125rem/1 var(--font-body); letter-spacing: 0.06em;
           text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.muted { color: var(--text-2); }
.small { font-size: var(--step--1); }
.num { font-family: var(--font-rounded); font-variant-numeric: tabular-nums; }
.kbd { font: 600 0.9em/1 var(--font-body); background: var(--fill); padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.path { font-weight: 600; }                                 /* a route through the app: Beat → ⋯ → Beat Library */

/* 4. Night band: the App Store's look (black with a blue glow from below), for the app's dark screens --------- */
.night {
  --surface: var(--night-2); --surface-2: #171b2a; --fill: rgba(255, 255, 255, 0.1);
  --text: var(--night-text); --text-2: var(--night-text-2); --text-3: #8b90a6; --line: var(--night-line);
  --accent-text: #6cb0ff; --accent-soft: rgba(10, 132, 255, 0.2);
  color-scheme: dark;
  color: var(--text);
  background:
    radial-gradient(120% 70% at 50% 110%, color-mix(in srgb, var(--night-glow) 65%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, #070a16 100%);
}
.night a { color: var(--accent-text); }

/* 5. Header and menu ------------------------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line);
}
.site-header .bar {
  max-width: var(--page); margin-inline: auto; min-height: var(--header-h); padding: 8px 20px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 22.5%; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
.site-nav a { color: var(--text-2); font-weight: 500; font-size: var(--step--1); padding: 8px 12px; border-radius: var(--r-pill); }
.site-nav a:hover { color: var(--text); background: var(--fill); text-decoration: none; }
.site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { color: var(--text); background: var(--fill); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent;
  border-radius: var(--r-pill); color: var(--text); cursor: pointer; }
.theme-toggle:hover { background: var(--fill); }
.theme-toggle svg { width: 21px; height: 21px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r-pill);
               place-items: center; cursor: pointer; color: var(--text); }
.menu-toggle:hover { background: var(--fill); }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .close-icon { display: none; }
.site-header.is-open .menu-toggle .open-icon { display: none; }
.site-header.is-open .menu-toggle .close-icon { display: block; }
@media (max-width: 819px) {
  .site-header .bar { grid-template-columns: auto 1fr auto; grid-template-areas: "brand . actions" "nav nav nav"; }
  .brand { grid-area: brand; }
  .header-actions { grid-area: actions; justify-self: end; }
  .menu-toggle { display: grid; }
  .site-nav { display: none; grid-area: nav; flex-direction: column; align-items: stretch; gap: 2px;
              padding: 6px 0 12px; border-top: 0.5px solid var(--line); margin-top: 4px; }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { font-size: var(--step-0); padding: 12px 14px; }
  .header-actions .button { display: none; }
}

/* 6. Buttons and chips ----------------------------------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: var(--r-pill); border: 0; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--on-accent); font: 600 var(--step-0)/1.2 var(--font-body);
  transition: background-color 0.15s, transform 0.15s;
}
.button:hover { background: var(--accent-strong); text-decoration: none; }
.button:active { transform: scale(0.98); }
.button.secondary { background: var(--fill); color: var(--text); }
.button.secondary:hover { background: color-mix(in srgb, var(--fill) 70%, var(--text) 8%); }
.button.quiet { background: transparent; color: var(--accent-text); padding-inline: 12px; }
.button.quiet:hover { background: var(--accent-soft); }
.button.small { min-height: 36px; padding: 6px 14px; font-size: var(--step--1); }
.button svg { width: 18px; height: 18px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
        background: var(--fill); color: var(--text); font: 500 var(--step--1)/1.25 var(--font-body); }
.chip.tinted { background: var(--accent-soft); color: var(--accent-text); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.store-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.store-badge img { height: 48px; width: auto; }

/* 7. Layout helpers -------------------------------------------------------------------------------------------- */
.wrap { max-width: var(--page); margin-inline: auto; padding-inline: 20px; }
.prose { max-width: var(--measure); }
.section { padding-block: var(--s-8); }
.section-head { display: grid; gap: 12px; max-width: 60ch; margin-bottom: var(--s-6); }
.section-head .lede { max-width: 52ch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.card { background: var(--surface); border-radius: var(--r-l); padding: var(--s-5); box-shadow: var(--shadow-card); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .section { padding-block: var(--s-7); }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: var(--s-4); }
}

/* 8. Hero and feature rows ------------------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-7); align-items: center;
        padding-block: var(--s-7) var(--s-8); }
.hero-copy { display: grid; gap: var(--s-5); justify-items: start; }
.hero-copy h1 { max-width: 12ch; }
.hero-copy .lede { max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--text-2); font-size: var(--step--1); margin: 0; padding: 0; list-style: none; }
.hero-facts li + li::before { content: "·"; margin-inline: 10px; color: var(--text-3); }
.hero-facts strong { color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding-block: var(--s-6) var(--s-7); }
  .hero-copy h1 { max-width: 14ch; }
}
@media (max-width: 480px) {
  .hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start; gap: 6px 20px; }
  .hero-facts li + li::before { content: none; }
}

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; padding-block: var(--s-6); }
.feature.media-first .feature-media { order: -1; }
.feature-copy { display: grid; gap: 14px; max-width: 44ch; }
.feature-copy p { color: var(--text-2); text-wrap: pretty; }
.feature-copy ul { padding-left: 1.2em; color: var(--text-2); display: grid; gap: 6px; }
.feature-copy ul strong { color: var(--text); font-weight: 600; }
.feature-media { display: grid; place-items: center; }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding-block: var(--s-5); }
  .feature.media-first .feature-media { order: 0; }
}

/* A row of small cards: icon tile, title, a sentence. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); list-style: none; padding: 0; }
.tile { background: var(--surface); border-radius: var(--r-l); padding: 20px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow-card); }
.tile .icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--c, var(--accent)); margin-bottom: 6px; }
.tile .icon svg { width: 20px; height: 20px; }
.tile h3 { font-size: var(--step-0); font-weight: 650; }
.tile p { color: var(--text-2); font-size: var(--step--1); line-height: 1.5; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .tiles, .tiles.two { grid-template-columns: minmax(0, 1fr); } }

/* 9. Song-sheet card: a verse on Blackcap's chart — chord badges, numbered bars, the lyric, the transport ------ */
.sheet { background: var(--surface); border-radius: var(--r-xl); padding: 18px 18px 16px; display: grid; gap: 14px; min-width: 0;
         box-shadow: var(--shadow-card); }
.sheet-part { display: flex; align-items: center; gap: 10px; }
.sheet-part .part-bar { width: 4px; height: 24px; border-radius: 2px; background: var(--part-verse); }
.sheet-part strong { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.sheet-part .meta { margin-left: auto; color: var(--text-2); font-size: var(--step--1); }
.sheet-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-rows { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 20px auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px;
           border-radius: var(--r-m); background: var(--surface-2); transition: background-color 0.2s, box-shadow 0.2s; }
.bar-row .n { color: var(--text-3); font: 500 var(--step--1)/1 var(--font-rounded); text-align: center; font-variant-numeric: tabular-nums; }
.badge { min-width: 34px; height: 28px; padding-inline: 9px; border-radius: var(--r-pill); display: grid; place-items: center;
         background: var(--chords); color: #2a1900; font: 700 0.85rem/1 var(--font-rounded); letter-spacing: 0.01em; }
.bar-row .lyric { min-width: 0; overflow-wrap: anywhere; font-family: var(--font-serif); font-size: 1.05em; }
.bar-row.now { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.segmented { display: inline-flex; background: var(--fill); border-radius: 9px; padding: 2px; }
.segmented button { border: 0; background: transparent; color: var(--text); font: 500 var(--step--1)/1 var(--font-body);
                    padding: 8px 14px; border-radius: 7px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.05); }
.transport { display: flex; align-items: center; gap: 14px; }
.tempo { font-family: var(--font-rounded); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; line-height: 1; text-align: center; }
.tempo small { display: block; font-size: 0.6rem; font-weight: 600; color: var(--text-2); letter-spacing: 0.06em; margin-top: 3px; }
.play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer;
        display: grid; place-items: center; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.play:hover { background: var(--accent-strong); }
.play svg { width: 22px; height: 22px; }
.sheet-note { color: var(--text-3); font-size: 0.8125rem; line-height: 1.45; }
/* The whole song as a thin band of parts, as on the lanes. */
.song-band { display: grid; gap: 6px; }
.song-band .parts { display: flex; gap: 3px; height: 8px; }
.song-band .parts span { border-radius: 2px; background: var(--c); opacity: 0.85; position: relative; }
.song-band .parts span.playing { opacity: 1; box-shadow: 0 0 0 1.5px var(--accent); }
.song-band .labels { color: var(--text-3); font-size: 0.75rem; line-height: 1.4; }

/* 10. Gallery and phones -------------------------------------------------------------------------------------- */
.phone { background: #1c1c1e; border-radius: 44px; padding: 8px; box-shadow: var(--shadow-phone); width: min(100%, 300px);
         border: 0.5px solid rgba(255, 255, 255, 0.12); }
.phone img { border-radius: 36px; aspect-ratio: 1320 / 2868; object-fit: cover; width: 100%; background: #000; }
.phone.wide { width: min(100%, 360px); }
.tablet { background: #1c1c1e; border-radius: 22px; padding: 10px; box-shadow: var(--shadow-phone); border: 0.5px solid rgba(255, 255, 255, 0.12); }
.tablet img { border-radius: 14px; background: #000; }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px); gap: 22px; overflow-x: auto;
           padding: 4px 20px 16px; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin-inline: -20px;
           scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.gallery figure { display: grid; gap: 12px; scroll-snap-align: start; align-content: start; }
.gallery .phone { width: 100%; border-radius: 36px; padding: 6px; }
.gallery .phone img { border-radius: 30px; }
.gallery figcaption { font-size: var(--step--1); color: var(--text-2); line-height: 1.45; }
.gallery figcaption strong { display: block; color: var(--text); font-size: var(--step-0); font-weight: 600; margin-bottom: 2px; }
@media (min-width: 1240px) { .gallery { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; } }

/* 11. Lists and FAQ -------------------------------------------------------------------------------------------- */
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-card); }
.list > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; position: relative; }
.list > li + li::before { content: ""; position: absolute; top: 0; right: 0; left: 62px; border-top: 0.5px solid var(--line); }
.list .icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--c, var(--accent)); }
.list .icon svg { width: 18px; height: 18px; }
.list .title { font-weight: 550; }
.list .sub { display: block; color: var(--text-2); font-size: var(--step--1); line-height: 1.45; margin-top: 2px; }
.list .value { color: var(--text-2); font-size: var(--step--1); white-space: nowrap; }
.list-header { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); margin: 0 0 8px 16px; font-weight: 600; }

.faq { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-card); max-width: 800px; }
.faq details { position: relative; }
.faq details + details::before { content: ""; position: absolute; top: 0; right: 0; left: 18px; border-top: 0.5px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 15px 48px 15px 18px; font-weight: 550; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
                      border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > *:not(summary) { padding: 0 18px 16px; color: var(--text-2); max-width: 66ch; text-wrap: pretty; }

/* 12. Promise strip: the price and the five nothings ----------------------------------------------------------- */
.promise { border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
           gap: var(--s-6); align-items: center; }
.promise .price { font: 800 clamp(2.5rem, 2rem + 3vw, 4rem)/1 var(--font-display); letter-spacing: -0.03em; }
.promise .price small { font-size: 0.4em; font-weight: 600; letter-spacing: 0; color: var(--text-2); margin-left: 6px; }
.promise p { color: var(--text-2); max-width: 44ch; margin-top: 12px; text-wrap: pretty; }
.nothings { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.nothings li { display: flex; gap: 10px; align-items: baseline; font-size: var(--step--1); }
.nothings li strong { color: var(--text); font-weight: 600; }
.nothings li span { color: var(--text-2); }
.nothings li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--band); transform: translateY(-1px); }
@media (max-width: 760px) { .promise { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .nothings { grid-template-columns: minmax(0, 1fr); } }

/* 13. Docs: index ---------------------------------------------------------------------------------------------- */
.docs-head { padding-block: var(--s-6) var(--s-5); display: grid; gap: 14px; }
.docs-head h1 { font-size: var(--step-3); font-weight: 800; }
.docs-head .lede { max-width: 56ch; }
.search { position: relative; max-width: 520px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--text-3); pointer-events: none; }
.search input { width: 100%; min-height: 46px; padding: 10px 14px 10px 42px; border-radius: var(--r-m); border: 0.5px solid var(--line-strong);
                background: var(--surface); color: var(--text); font: var(--step-0)/1.3 var(--font-body); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--text-3); }
.search-note { color: var(--text-2); font-size: var(--step--1); min-height: 1.4em; }
.docs-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.docs-toc a { padding: 7px 13px; border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-size: var(--step--1); font-weight: 500; box-shadow: 0 0 0 0.5px var(--line); }
.docs-toc a:hover { text-decoration: none; background: var(--accent-soft); color: var(--accent-text); }
.docs-section { padding-block: var(--s-5) var(--s-4); }
.docs-section > h2 { font-size: var(--step-2); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.docs-section > h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); }
.docs-section .count { color: var(--text-3); font: 500 var(--step--1)/1 var(--font-body); margin-left: 2px; }
.articles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.articles a { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-l); background: var(--surface); color: var(--text); box-shadow: var(--shadow-card);
              border-left: 4px solid var(--c, var(--accent)); min-height: 100%; transition: transform 0.15s; }
.articles a:hover { text-decoration: none; transform: translateY(-2px); }
.articles h3 { font-size: var(--step-0); font-weight: 650; line-height: 1.3; }
.articles p { color: var(--text-2); font-size: var(--step--1); line-height: 1.45; }
.articles .new { font: 600 0.7rem/1 var(--font-body); letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 2px; }
.docs-section[hidden], .articles li[hidden] { display: none; }
@media (max-width: 900px) { .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .articles { grid-template-columns: minmax(0, 1fr); } }

/* 14. Docs: article and callouts ------------------------------------------------------------------------------- */
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-7); padding-block: var(--s-5) var(--s-8); align-items: start; }
.docs-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 18px; }
.docs-side .back { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; font-size: var(--step--1); }
.docs-side h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.docs-side h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
.docs-side summary { list-style: none; }
.docs-side summary::-webkit-details-marker { display: none; }
.docs-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.docs-side a { display: block; padding: 7px 10px; border-radius: var(--r-s); color: var(--text-2); font-size: var(--step--1); line-height: 1.35; }
.docs-side a:hover { background: var(--fill); color: var(--text); text-decoration: none; }
.docs-side a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--text-2); font-size: var(--step--1); }
.breadcrumb a { color: var(--text-2); }
.breadcrumb span[aria-hidden] { color: var(--text-3); }
.article { max-width: var(--measure); }
.article header { display: grid; gap: 12px; margin-bottom: var(--s-5); padding-bottom: var(--s-5); border-bottom: 0.5px solid var(--line); }
.article header h1 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.025em; }
.article header .lede { font-size: var(--step-1); max-width: 56ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--text-3); font-size: var(--step--1); }
.article-body { display: grid; gap: 18px; }
.article-body p { text-wrap: pretty; }
.article-body h2 { font-size: var(--step-2); margin-top: 12px; }
/* Numbered steps: a filled circle per step, as in the app's Help. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { position: relative; padding-left: 44px; counter-increment: step; text-wrap: pretty; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
                    background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 0.9rem/1 var(--font-rounded); }
.steps li + li::after { content: ""; position: absolute; left: 14.5px; top: -12px; height: 12px; border-left: 1px solid var(--line-strong); }
/* Callouts: a tip (amber) and a try-this (accent). */
.callout { border-radius: var(--r-m); padding: 14px 16px 14px 18px; position: relative; display: grid; gap: 4px; background: var(--surface); box-shadow: var(--shadow-card); }
.callout::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--c); }
.callout .label { display: inline-flex; align-items: center; gap: 6px; font: 650 0.8125rem/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--c); }
.callout .label svg { width: 15px; height: 15px; }
.callout p { color: var(--text); text-wrap: pretty; }
.callout.tip { --c: #c47a00; }
.callout.try { --c: var(--accent-text); background: var(--accent-soft); box-shadow: none; }
:root[data-theme="dark"] .callout.tip { --c: var(--chords); }
.article-foot { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 0.5px solid var(--line); display: grid; gap: 16px; }
.in-app { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: var(--step--1); }
.in-app img { width: 28px; height: 28px; border-radius: 22.5%; flex: none; }
.prev-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prev-next a { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-card); color: var(--text); }
.prev-next a:hover { text-decoration: none; background: var(--accent-soft); }
.prev-next small { color: var(--text-3); font-size: 0.8125rem; }
.prev-next .next { text-align: right; }
.prev-next a:only-child.next { grid-column: 2; }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .docs-side { position: static; }
  .docs-side details summary { cursor: pointer; padding: 10px 0; display: flex; align-items: center; gap: 8px; position: relative; }
  .docs-side details summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
                                      transform: rotate(45deg); margin-left: auto; margin-right: 6px; transition: transform 0.15s; }
  .docs-side details[open] summary::after { transform: rotate(-135deg); }
  .docs-side details summary h2 { margin: 0; }
}
@media (max-width: 480px) { .prev-next { grid-template-columns: minmax(0, 1fr); } .prev-next .next { text-align: left; } .prev-next a:only-child.next { grid-column: 1; } }

/* 15. Footer --------------------------------------------------------------------------------------------------- */
.site-footer { margin-top: var(--s-8); border-top: 0.5px solid var(--line); padding-block: var(--s-6) var(--s-7); color: var(--text-2); font-size: var(--step--1); }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.site-footer h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); font-weight: 600; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }
.site-footer .brand { margin-bottom: 10px; }
.site-footer .legal { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 0.5px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--text-3); }
.email { font-family: var(--font-mono); font-size: 0.92em; background: var(--surface); border: 0.5px solid var(--line); padding: 6px 10px; border-radius: 8px; user-select: all; overflow-wrap: anywhere; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* 16. Motion and print ----------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .docs-side, .prev-next, .search { display: none; }
  body { background: #fff; color: #000; }
  .article { max-width: none; }
}

/* 17. Phase 2 additions ----------------------------------------------------------------------------------------- */
/* Skip link: visible only when focused. */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; text-decoration: none; }
/* The badge in the header on wide screens. */
.header-actions .store-badge img { height: 40px; }
@media (max-width: 819px) { .header-actions .store-badge { display: none; } }
/* A picture with a caption under it. */
.shot { display: grid; gap: 10px; justify-items: center; }
.shot figcaption { color: var(--text-2); font-size: var(--step--1); text-align: center; max-width: 36ch; text-wrap: pretty; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-5); justify-items: center; margin-top: var(--s-5); }
.shots .phone { width: min(100%, 260px); }
/* Jump links at the top of a long page (Features, Support): the docs-toc chips. */
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { padding: 7px 13px; border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-size: var(--step--1); font-weight: 500; box-shadow: 0 0 0 0.5px var(--line); }
.jump a:hover { text-decoration: none; background: var(--accent-soft); color: var(--accent-text); }
/* The page head of a reading page. */
.page-head { padding-block: var(--s-6) var(--s-5); display: grid; gap: 14px; max-width: 64ch; }
.page-head h1 { font-size: var(--step-4); font-weight: 800; }
.page-head .lede { max-width: 56ch; }
/* A feature list: a bold name, a sentence, a link to its article. */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { background: var(--surface); border-radius: var(--r-m); padding: 14px 16px; box-shadow: var(--shadow-card); text-wrap: pretty; }
.feature-list li strong { font-weight: 650; }
.feature-list li a.more { white-space: nowrap; font-size: var(--step--1); margin-left: 6px; }
.feature-section { padding-block: var(--s-5) var(--s-4); display: grid; gap: 14px; }
.feature-section h2 { display: flex; align-items: center; gap: 10px; }
.feature-section h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); }
/* Questions and answers (Support, the FAQ as plain HTML): the answer first, readable on its own. */
.qa { display: grid; gap: 14px; }
.qa > div { background: var(--surface); border-radius: var(--r-m); padding: 14px 16px; box-shadow: var(--shadow-card); }
.qa h3 { font-size: var(--step-0); font-weight: 650; margin-bottom: 6px; }
.qa p, .qa li { color: var(--text-2); text-wrap: pretty; }
.qa p + p { margin-top: 8px; }
.reading { display: grid; gap: var(--s-5); max-width: var(--measure); }
.reading section { display: grid; gap: 12px; }
.reading h2 { font-size: var(--step-2); }
.reading p, .reading li { text-wrap: pretty; }
.reading ul, .reading ol { padding-left: 1.3em; display: grid; gap: 6px; }
.reading .links { list-style: none; padding: 0; display: grid; gap: 8px; }
.reading .links a { font-weight: 500; }
.summary-box { background: var(--accent-soft); border-radius: var(--r-l); padding: 16px 18px; display: grid; gap: 8px; }
.summary-box p { color: var(--text); font-size: var(--step-0); }
.contact-card { background: var(--surface); border-radius: var(--r-l); padding: 18px 20px; box-shadow: var(--shadow-card); display: grid; gap: 10px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.text-button { border: 0; background: none; color: var(--accent-text); font: 500 var(--step--1)/1 var(--font-body); cursor: pointer; padding: 8px 6px; border-radius: 6px; }
.text-button:hover { background: var(--accent-soft); }
/* The fairness table: a Settings-style list, label and value. */
.facts-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-card); overflow: hidden; }
.facts-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; position: relative; align-items: baseline; }
.facts-list li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--line); }
.facts-list .label { font-weight: 550; }
.facts-list .value { color: var(--text-2); text-align: right; text-wrap: pretty; }
.facts-list .value.good { color: var(--band); font-weight: 600; }
/* A screen walkthrough (the "?" guides): the controls from the top of the screen, each with its name and what it does. */
.screen-guide { background: var(--surface); border-radius: var(--r-l); padding: 20px; box-shadow: var(--shadow-card); display: grid; gap: 12px; border-top: 4px solid var(--c, var(--accent)); }
.screen-guide h3 { font-size: var(--step-1); }
.screen-guide .intro { color: var(--text-2); }
.controls { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.controls li { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: var(--step--1);
               padding: 8px 0; border-top: 0.5px solid var(--line); }
.controls li:first-child { border-top: 0; }
.controls strong { font-weight: 650; color: var(--text); }
.controls span { color: var(--text-2); }
@media (max-width: 480px) { .controls li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.screen-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 760px) { .screen-guides { grid-template-columns: minmax(0, 1fr); } }
/* The Docs index's section descriptions. */
.docs-section .section-sub { color: var(--text-2); margin: -6px 0 14px; max-width: 70ch; text-wrap: pretty; }
/* 404 */
.oops { padding-block: var(--s-8); display: grid; gap: 16px; max-width: 56ch; }
.oops .links { display: flex; flex-wrap: wrap; gap: 10px; }
/* The AI page and other long prose pages. */
.prose-page { max-width: var(--measure); display: grid; gap: var(--s-5); }
.prose-page section { display: grid; gap: 10px; }
.prose-page h2 { font-size: var(--step-2); margin-top: 8px; }
.prose-page h3 { font-size: var(--step-0); font-weight: 650; margin-top: 8px; }
.prose-page ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose-page p, .prose-page li { text-wrap: pretty; }
.prose-page .lead { background: var(--surface); border-radius: var(--r-l); padding: 16px 18px; box-shadow: var(--shadow-card); display: grid; gap: 8px; }
