  /* ─────────────────────────────────────────────────────────────
     Tokens — mirrored from apps/mobile/tailwind.config.ts.
     This page is hand-written HTML/CSS (not React Native Web) so it
     cannot import the Tailwind theme; keep these in sync by hand.
     See docs/design/marketing-site-spec.md.
     ───────────────────────────────────────────────────────────── */
  :root {
    --sky-50:  #f0f9fd;
    --sky-100: #dff2fa;
    --sky-200: #b9e5f3;
    --sky-500: #4EBAE0;
    --sky-600: #2799be;
    --sky-700: #1d709a;

    --note-100: #fff9d0;
    --note-500: #F5DD05;

    --warm-50:  #fafaf9;
    --warm-100: #f5f5f4;
    --warm-200: #e7e5e4;
    --warm-300: #d6d3d1;
    --warm-400: #a8a29e;
    --warm-500: #78716c;
    --warm-600: #57534e;
    --warm-700: #44403c;
    --warm-900: #1c1917;

    /* Warm cream, reserved in DESIGN.md for the ring's unfilled segments. */
    --ring-empty: #e8e1cd;

    --ink: var(--warm-900);
    --page: var(--warm-50);

    --r-card: 16px;   /* rounded-2xl */
    --r-btn:  12px;   /* rounded-xl  */

    --shadow-card: 0 1px 2px rgba(28, 25, 23, .04), 0 8px 24px -12px rgba(28, 25, 23, .10);
    --shadow-lift: 0 2px 4px rgba(28, 25, 23, .05), 0 24px 48px -20px rgba(28, 25, 23, .18);

    --measure: 1180px;

    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;
  }

  *, *::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);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* A single soft warm bloom behind the hero — no gradient atmospherics,
       just enough warmth that the page doesn't read as flat white. */
    background-image:
      radial-gradient(760px 520px at 78% -8%, var(--sky-50) 0%, rgba(240, 249, 253, 0) 68%),
      radial-gradient(680px 460px at 8% 2%, #fdfbf3 0%, rgba(253, 251, 243, 0) 70%);
    background-repeat: no-repeat;
  }

  .wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 24px; }

  a { color: inherit; }

  /* Visible focus for keyboard users everywhere. */
  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--sky-600);
    outline-offset: 3px;
    border-radius: 6px;
  }

  /* ── Header ───────────────────────────────────────────────── */
  .site-head { padding: 22px 0 0; }
  .head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

  .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
  .brand svg { display: block; width: 34px; height: 34px; }
  .brand b {
    font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--ink);
  }

  .head-nav { display: flex; align-items: center; gap: 4px; }
  .head-nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--warm-600);
    padding: 8px 12px;
    border-radius: 8px;
    transition: color .15s ease-out, background-color .15s ease-out;
  }
  .head-nav a:hover { color: var(--ink); background: var(--warm-100); }
  .head-nav .nav-cta {
    color: var(--sky-700);
    font-weight: 600;
  }
  .head-nav .nav-cta:hover { background: var(--sky-50); color: var(--sky-700); }

  /* ── Hero ─────────────────────────────────────────────────── */
  .hero { padding: 76px 0 24px; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
    align-items: center;
  }

  .eyebrow {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--sky-700);
    margin: 0 0 20px;
  }

  h1 {
    margin: 0 0 22px;
    font-size: clamp(38px, 5.2vw, 64px);
    line-height: 1.04;
    letter-spacing: -.032em;
    font-weight: 700;
    text-wrap: balance;
  }
  /* The signature from design/mockups/rhythm.html: bold roman, then the
     human half in sky italic ("Let's *set you up*." / "Hi, I'm *Freddie*.").
     Block, so the clause always breaks where the meaning does rather than
     stranding a one-word line. */
  h1 em {
    display: block;
    font-style: italic;
    color: var(--sky-500);
    font-weight: 700;
  }

  .lede {
    margin: 0 0 34px;
    font-size: clamp(17px, 1.35vw, 19.5px);
    line-height: 1.62;
    color: var(--warm-600);
    max-width: 33em;
  }
  .lede strong { color: var(--warm-700); font-weight: 600; }

  /* ── CTA ──────────────────────────────────────────────────── */
  .cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    border: 0; cursor: pointer;
    font-family: inherit; font-size: 16.5px; font-weight: 600;
    padding: 15px 26px;
    border-radius: var(--r-btn);
    text-decoration: none;
    background: var(--sky-500); color: #fff;
    box-shadow: 0 1px 2px rgba(29, 112, 154, .18), 0 10px 22px -12px rgba(29, 112, 154, .55);
    transition: background-color .15s ease-out, transform .15s ease-out;
  }
  .btn:hover { background: var(--sky-600); }
  .btn:active { background: var(--sky-700); transform: translateY(1px); }
  .btn svg { width: 18px; height: 18px; }

  .cta-note { margin: 14px 0 0; font-size: 14.5px; color: var(--warm-500); }

  /* Reserved App Store / Play slots. Laid out now so the hero does not need
     recomposing once Apple approves; hidden until the apps actually ship.
     Remove the `hidden` attribute in markup to switch them on. */
  .store-row { display: flex; gap: 12px; margin-top: 22px; }
  .store-row[hidden] { display: none; }
  .store-badge {
    display: inline-flex; align-items: center; gap: 8px;
    height: 50px; padding: 0 18px;
    border-radius: var(--r-btn);
    background: var(--ink); color: #fff;
    font-size: 14px; font-weight: 600; text-decoration: none;
  }

  /* ── Ring ─────────────────────────────────────────────────── */
  .ring-stage {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 440px;
  }

  .ring-wrap { position: relative; width: min(318px, 100%); }
  .ring-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }

  /* `butt` caps, matching RhythmRing.tsx. Round caps extend each arc by half
     the stroke width, which is wider than the 4° gap at this radius — the
     segments merge and the ring reads as one swoosh instead of a rhythm. */
  .ring-arc { fill: none; stroke-linecap: butt; stroke-width: 22; }
  .ring-arc.is-empty { stroke: var(--ring-empty); }
  .ring-arc.is-filled { stroke: var(--sky-500); }

  .ring-centre {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px;
    pointer-events: none;
  }
  .ring-num {
    font-size: 62px; font-weight: 700; letter-spacing: -.04em;
    color: var(--sky-700); line-height: 1;
  }
  .ring-cap {
    font-size: 11px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--warm-500);
  }

  /* Freddie's voice, floating around the ring — the product's actual tone
     rather than a screenshot. Headspace does this with Ebb's speech bubble. */
  .frag {
    position: absolute;
    background: #fff;
    border: 1px solid var(--warm-200);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--warm-700);
    max-width: 205px;
  }
  /* Positioned against .ring-stage, not .ring-wrap — on mobile the fragments
     become static and would otherwise stretch the wrapper that .ring-centre
     is centred within, dropping the "4" out of the ring. They may overlap the
     stroke for depth, but the "4 / this week" zone must stay legible. */
  .frag-a { top: 24px; right: 0; }
  .frag-c { bottom: 76px; left: 0; }

  /* The one sticky-note motif on this page. DESIGN.md: rotated yellow note
     means "I remembered this for you", and only one per screen. */
  .frag-note {
    position: absolute;
    bottom: 8px; right: 34px;
    background: var(--note-500);
    color: var(--warm-900);
    border: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-lift);
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 196px;
    transform: rotate(-4deg);
  }

  /* ── Sections ─────────────────────────────────────────────── */
  section { scroll-margin-top: 24px; }

  .sec-head { max-width: 34em; margin: 0 0 40px; }
  .sec-head h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.14;
    letter-spacing: -.026em;
    font-weight: 700;
  }
  .sec-head h2 em { font-style: italic; color: var(--sky-500); }
  .sec-head p { margin: 0; color: var(--warm-600); font-size: 17.5px; }

  /* ── Product ──────────────────────────────────────────────── */
  .product { padding: 96px 0 8px; }
  .product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }

  .phone {
    width: 320px;
    margin: 0 auto;
    background: #fff;
    border: 9px solid var(--warm-900);
    border-radius: 42px;
    padding: 16px 14px 22px;
    box-shadow: var(--shadow-lift);
  }
  .phone-greet { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; }
  .phone-date { font-size: 12.5px; color: var(--warm-400); margin: 0 0 16px; }

  .mini-card {
    background: var(--warm-50);
    border: 1px solid var(--warm-200);
    border-radius: 14px;
    padding: 13px;
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 10px;
  }
  .mini-card:last-child { margin-bottom: 0; }

  .avatar {
    flex: 0 0 auto;
    width: 38px; height: 38px; border-radius: 999px;
    display: grid; place-items: center;
    font-size: 15px; font-weight: 700; color: #fff;
  }
  .mini-title { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
  .mini-sub { font-size: 12.5px; color: var(--warm-500); line-height: 1.35; }

  .mini-ring { flex: 0 0 auto; width: 40px; height: 40px; }
  .mini-ring svg { display: block; width: 100%; height: 100%; }

  /* ── Features ─────────────────────────────────────────────── */
  .features { padding: 104px 0 0; }
  .feat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  .feat {
    background: #fff;
    border: 1px solid var(--warm-200);
    border-radius: var(--r-card);
    padding: 26px 24px 28px;
    box-shadow: var(--shadow-card);
  }
  .feat-ico {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--sky-50);
    display: grid; place-items: center;
    margin-bottom: 16px;
  }
  .feat-ico svg { width: 22px; height: 22px; stroke: var(--sky-500); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .feat h3 { margin: 0 0 8px; font-size: 18.5px; font-weight: 700; letter-spacing: -.015em; }
  .feat p { margin: 0; font-size: 15.5px; line-height: 1.58; color: var(--warm-600); }

  /* ── Closing ──────────────────────────────────────────────── */
  .closing { padding: 104px 0 96px; }
  .closing-card {
    background: #fff;
    border: 1px solid var(--warm-200);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    padding: 56px 44px;
    text-align: center;
  }
  .closing-card h2 {
    margin: 0 0 12px;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.16; letter-spacing: -.026em; font-weight: 700;
  }
  .closing-card h2 em { font-style: italic; color: var(--sky-500); }
  .closing-card p { margin: 0 auto 28px; color: var(--warm-600); max-width: 30em; }
  .closing-card .cta-row { justify-content: center; }

  /* ── Footer ───────────────────────────────────────────────── */
  .site-foot { border-top: 1px solid var(--warm-200); padding: 34px 0 56px; }
  .foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
  .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
  .foot-links a { font-size: 15px; font-weight: 500; color: var(--warm-600); text-decoration: none; }
  .foot-links a:hover { color: var(--ink); text-decoration: underline; }
  .foot-legal { font-size: 14px; color: var(--warm-500); }

  /* ── Entrance: opacity + transform only, ease-out, once ───── */
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  .rise { animation: rise .5s ease-out both; }
  .rise-1 { animation-delay: .04s; }
  .rise-2 { animation-delay: .12s; }
  .rise-3 { animation-delay: .20s; }

  /* The ring draws itself once. It fills — it never counts down. */
  .ring-arc.is-filled {
    stroke-dasharray: var(--len);
    stroke-dashoffset: var(--len);
    animation: draw .85s ease-out forwards;
  }
  /* Per-arc delays are set inline: nth-of-type counts every <path>, and the
     unfilled arcs come first in the DOM, so a class-scoped nth-of-type would
     never match the filled ones. */
  @keyframes draw { to { stroke-dashoffset: 0; } }

  @media (prefers-reduced-motion: reduce) {
    .rise { animation: none; }
    .ring-arc.is-filled { animation: none; stroke-dashoffset: 0; }
  }

  /* ── Responsive ───────────────────────────────────────────── */
  @media (max-width: 960px) {
    .hero-grid, .product-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hero { padding-top: 52px; }
    .ring-stage { min-height: 400px; }
    .feat-grid { grid-template-columns: minmax(0, 1fr); }
    .product { padding-top: 76px; }
    .features { padding-top: 76px; }
  }

  @media (max-width: 560px) {
    body { font-size: 16px; }
    .wrap { padding: 0 20px; }
    .head-nav a { padding: 8px 9px; font-size: 14.5px; }
    .hero { padding: 34px 0 8px; }
    h1 { font-size: 34px; letter-spacing: -.026em; }
    .lede { font-size: 16.5px; }
    .btn { width: 100%; }
    .cta-row { gap: 10px; }
    .ring-stage { min-height: 340px; }
    .ring-wrap { width: min(268px, 100%); }
    .ring-num { font-size: 48px; }
    /* Fragments stop floating and stack under the ring — absolute
       positioning at this width would collide with the ring itself. */
    .frag, .frag-note { position: static; max-width: none; margin: 0 0 10px; transform: none; }
    .frag-note { transform: rotate(-2deg); }
    .ring-stage { flex-direction: column; }
    .ring-extras { width: 100%; margin-top: 24px; }
    .phone { width: 100%; max-width: 300px; }
    .closing-card { padding: 40px 24px; }
  }

  /* Above 560px the fragments are positioned against the ring, so the
     stacking container must not add layout of its own. */
  @media (min-width: 561px) {
    .ring-extras { position: absolute; inset: 0; pointer-events: none; }
    .ring-extras > * { pointer-events: auto; }
  }

  /* ── Document pages (privacy, support) ────────────────────── */
  .doc { padding: 56px 0 88px; }
  .doc-wrap { max-width: 720px; }

  .doc h1 {
    font-size: clamp(32px, 4vw, 44px);
    margin: 0 0 6px;
    text-wrap: balance;
  }
  .doc-date { margin: 0 0 8px; font-size: 14.5px; color: var(--warm-400); }

  .doc h2 {
    margin: 40px 0 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.018em;
    text-wrap: balance;
  }
  .doc h3 {
    margin: 30px 0 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.012em;
  }
  .doc p { margin: 0 0 14px; color: var(--warm-600); line-height: 1.68; }
  .doc a { color: var(--sky-700); text-decoration: underline; text-underline-offset: 2px; }
  .doc a:hover { color: var(--sky-600); }
  .doc strong { color: var(--warm-700); font-weight: 600; }

  .doc ul { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .doc li {
    position: relative;
    padding-left: 20px;
    color: var(--warm-600);
    line-height: 1.62;
  }
  .doc li::before {
    content: "";
    position: absolute;
    left: 4px; top: .68em;
    width: 5px; height: 5px;
    border-radius: 999px;
    background: var(--warm-300);
  }

  .doc-note {
    background: var(--sky-50);
    border: 1px solid var(--sky-100);
    border-radius: var(--r-card);
    padding: 18px 20px;
    margin: 0 0 14px;
  }
  .doc-note p:last-child { margin-bottom: 0; }

  @media (max-width: 560px) {
    .doc { padding: 34px 0 64px; }
    .doc h2 { margin-top: 32px; font-size: 20px; }
  }
