/* ============================================================
     LANDING — page-only styles. Tokens come from styles/tokens.css.
     Light theme always (no auto dark mode on the marketing site —
     the PWA itself respects prefers-color-scheme; this page does not).
     `color-scheme: light only` keeps the browser from auto-darkening
     scrollbars and form widgets in macOS / Windows dark mode.
     ============================================================ */
  html { color-scheme: light only; }
  :root { color-scheme: light only; }

  body { background: var(--bg); color: var(--ink); }

  ::selection { background: var(--accent); color: var(--accent-ink-on); }

  a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--ink-4); }
  a:hover { text-decoration-color: var(--accent); color: var(--ink); }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
  }

  /* Page rhythm */
  .page { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
  @media (max-width: 640px) { .page { padding: 0 20px; } }

  section { padding: 72px 0; border-top: 1px solid var(--line); }
  section:first-of-type { border-top: 0; }
  @media (max-width: 640px) { section { padding: 48px 0; } }

  /* ── NAV ───────────────────────────────────────────────── */
  .nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: var(--bg-overlay);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 32px;
    max-width: 1120px; margin: 0 auto;
  }
  @media (max-width: 640px) { .nav-inner { padding: 12px 20px; } }
  .wordmark {
    font-family: var(--font-display); font-style: italic; font-weight: 500;
    font-size: 22px; letter-spacing: -0.02em; color: var(--ink);
    line-height: 1; text-decoration: none;
  }
  .wordmark .dot { color: var(--accent); }
  /* Image-based wordmark (Phase 52). Single light SVG — landing is
     locked to light theme via `color-scheme: light only` (line ~129),
     so a dark variant would never apply correctly via prefers-
     color-scheme. The heights match the visual footprint of the
     pre-redesign text wordmark (font-size: 22 / 18 / clamp(56,9vw,96)). */
  .wordmark-img { height: 40px; width: auto; display: block; }
  /* Footer wordmark — sits next to the 11 px mono copyright line.
     At 20 px the SVG's ~30% empty top/bottom padding reduced the
     visible "R" to ~14 px, which read as smaller than the mono
     glyphs around it. 28 px puts the visible "R" near 20 px — a
     deliberate brand mark, clearly sitting "above" the body text
     in the type hierarchy. */
  .wordmark-img-sm { height: 28px; }
  .hero-mark-img {
    /* The SVG viewBox carries ~30% empty padding above + below the
       glyphs (Phase 52 design), so a rendered height of N produces
       a visible "R" of roughly 0.7 × N. To make the hero wordmark
       read clearly bigger than the 60-px App Store badge sitting
       below it, the clamp floor is set so the visible glyphs are
       at least badge-sized even at the narrowest mobile viewport.
       margin-left compensates for the ~11.6% empty space to the
       left of the "R" inside the SVG so the glyph reads as flush
       with the column edge instead of floating a bit inside. */
    --hero-mark-h: clamp(88px, 13vw, 132px);
    height: var(--hero-mark-h);
    margin-left: calc(var(--hero-mark-h) * -0.292);
    width: auto;
    display: block;
  }

  /* Hamburger button — replaces the inline lang toggle in the header.
     Two stacked bars; transforms into an "×" when the drawer is open. */
  .nav-menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center;
    align-items: center; gap: 5px;
    width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color var(--dur-base) var(--ease-standard);
  }
  .nav-menu-btn:hover { border-color: var(--ink-3); }
  .nav-menu-btn span {
    display: block; width: 16px; height: 1.5px;
    background: var(--ink-2); border-radius: 2px;
    transition: transform 220ms var(--ease-emph), opacity 180ms ease;
  }
  .nav-menu-btn[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .nav-menu-btn[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  /* Slide-in drawer — anchors to right edge, full height, narrow
     enough to leave the page peeking through on tablet+. */
  .nav-drawer-backdrop {
    position: fixed; inset: 0; z-index: 60;
    background: oklch(8% 0 0 / 0.4);
    opacity: 0; pointer-events: none;
    transition: opacity 220ms var(--ease-standard);
  }
  .nav-drawer-backdrop.is-open {
    opacity: 1; pointer-events: auto;
  }
  .nav-drawer {
    position: fixed; top: 0; right: 0; z-index: 61;
    width: min(320px, 88vw); height: 100%;
    background: var(--bg-raised);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 280ms var(--ease-emph);
    box-shadow: -16px 0 40px oklch(20% 0.02 60 / 0.10);
  }
  .nav-drawer.is-open { transform: translateX(0); }
  .nav-drawer-inner {
    height: 100%;
    display: flex; flex-direction: column;
    padding: 24px 28px 28px;
  }
  .nav-drawer-close {
    align-self: flex-end;
    width: 36px; height: 36px;
    background: transparent; border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-3); font-size: 24px; line-height: 1;
    cursor: pointer;
    transition: border-color var(--dur-base) var(--ease-standard),
                color var(--dur-base) var(--ease-standard);
  }
  .nav-drawer-close:hover { border-color: var(--ink-3); color: var(--ink); }

  .nav-drawer-list {
    display: flex; flex-direction: column; gap: 4px;
    margin-top: 32px; flex: 1;
  }
  .nav-drawer-list a {
    display: block;
    padding: 12px 0;
    font-family: var(--font-display); font-style: italic;
    font-size: 22px; line-height: 1.2;
    color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: color var(--dur-base) var(--ease-standard);
  }
  .nav-drawer-list a:last-child { border-bottom: 0; }
  .nav-drawer-list a:hover { color: var(--accent); }

  .nav-drawer-foot {
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  /* Header wordmark — hidden over the hero (where the big Riffshed mark
     already lives) and fades in once the user scrolls past it. The
     opacity-driven approach keeps the click target stable so the lang
     toggle on the right doesn't shift. */
  .nav .wordmark {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-2px);
    transition: opacity var(--dur-base) var(--ease-standard),
                transform var(--dur-base) var(--ease-standard);
  }
  .nav.is-scrolled .wordmark {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .lang {
    display: inline-flex; align-items: center;
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
  }
  .lang button {
    padding: 6px 12px;
    font: inherit; color: inherit;
    transition: color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
  }
  .lang button + button { border-left: 1px solid var(--line); }
  .lang button[aria-pressed="true"] { color: var(--ink); background: var(--bg-sunken); }
  .lang button:hover { color: var(--ink); }

  /* ── HERO ──────────────────────────────────────────────── */
  .hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 72px;
  }
  @media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 40px; padding-bottom: 48px; }
  }

  .eyebrow {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-3);
  }
  .eyebrow .sep { color: var(--ink-4); margin: 0 6px; }
  .eyebrow .accent-dot {
    display: inline-block; width: 5px; height: 5px; border-radius: 999px;
    background: var(--accent); margin-right: 10px; vertical-align: middle;
    transform: translateY(-1px);
  }

  h1.hero-mark {
    font-family: var(--font-display); font-style: italic; font-weight: 500;
    font-size: clamp(56px, 9vw, 96px);
    letter-spacing: -0.025em; line-height: 0.95;
    margin: 18px 0 0;
    color: var(--ink);
  }
  h1.hero-mark .dot { color: var(--accent); }

  /* Two display paragraphs in the same family/size — only the colour
     differs so the lead reads as primary, the supporting line reads
     as a clarification. Same kegel, no font-family contrast, no
     bold/italic switches inside the hero. The mono .hero-instruments
     paragraph below is the only deliberate type-system shift,
     marking the transition from prose to features list.

     Sized to sit comfortably below the wordmark — ~30% of the
     rendered wordmark height at every viewport, so the brand still
     reads as the dominant mark on the page. */
  .hero-headline {
    font-family: var(--font-display); font-style: italic; font-weight: 500;
    font-size: clamp(21px, 2.6vw, 30px);
    letter-spacing: -0.02em; line-height: 1.22;
    color: var(--ink);
    max-width: 36ch;
    margin: 22px 0 0;
    text-wrap: pretty;
  }
  .hero-hook {
    font-family: var(--font-display); font-style: italic; font-weight: 400;
    font-size: clamp(21px, 2.6vw, 30px);
    letter-spacing: -0.02em; line-height: 1.22;
    color: var(--ink-2);
    max-width: 36ch;
    margin: 22px 0 0;
    text-wrap: pretty;
  }
  .hero-instruments {
    font-family: var(--font-mono); font-size: 12px;
    letter-spacing: 0.04em; line-height: 1.7;
    color: var(--ink-3);
    max-width: 44ch;
    margin: 16px 0 0;
  }
  /* Three phases — accent colour, no italic / bold so it stays readable
     in EN (Explore / Integrate / Master) and in RU (Обзор / Интеграция /
     Мастерство). Subtle weight bump because the accent is light enough
     to lose visual presence at body weight. */
  .phase {
    color: var(--accent);
    font-weight: 500;
  }

  .cta-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
    margin-top: 36px;
  }
  .btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 24px;
    border-radius: 999px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    font-family: var(--font-mono); font-size: 12px;
    letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--dur-fast) var(--ease-standard),
                box-shadow var(--dur-base) var(--ease-standard);
    box-shadow: var(--shadow-2);
  }
  .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-3); color: var(--btn-primary-fg); }
  .btn .arrow {
    width: 18px; height: 18px; display: inline-flex;
    transition: transform var(--dur-base) var(--ease-emph);
  }
  .btn:hover .arrow { transform: translateX(4px); }

  /* Secondary button — same pill geometry as .btn, inverted: outline
     instead of fill. Used next to the App Store badge so the badge
     reads as the primary CTA without competing with another filled
     button. */
  .btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    box-shadow: none;
  }
  .btn-secondary:hover {
    background: var(--ink);
    color: var(--bg);
  }

  /* Official "Download on the App Store" badge from Apple's marketing
     toolbox (tools.applemediaservices.com). Two locale variants live
     in /assets/, swapped by the global data-lang-only filter. Apple's
     guidelines: minimum height 40px, surrounding clear space ≥ 10% of
     badge height, do NOT recolour or stretch. Rendered at 60px tall
     here to align visually with the .btn pill height. */
  .app-store-badge {
    display: inline-flex; align-items: center;
    line-height: 0;
    border-radius: 10px;
    transition: transform var(--dur-fast) var(--ease-standard);
  }
  .app-store-badge:hover { transform: translateY(-1px); }
  .app-store-badge img {
    display: block;
    height: 60px;
    width: auto;
  }

  .cta-meta {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-3);
  }
  .cta-meta .sep { color: var(--ink-4); margin: 0 6px; }

  /* ── iPhone with auto-cycling screenshots ───────────────── */
  .device-stage {
    position: relative;
    display: flex; justify-content: center; align-items: center;
    min-height: 660px;
  }
  .device-stage::before {
    content: ""; position: absolute; inset: -40px -20px;
    background: radial-gradient(60% 50% at 50% 50%, oklch(58% 0.10 62 / 0.10), transparent 70%);
    pointer-events: none;
  }
  .iphone {
    position: relative;
    width: 300px; height: 620px;
    background: oklch(8% 0 0);
    border-radius: 46px;
    padding: 9px;
    box-shadow:
      var(--shadow-3),
      0 0 0 1px oklch(20% 0 0) inset;
  }
  .iphone .screen {
    width: 100%; height: 100%;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    background: var(--bg);
  }
  .slides {
    position: absolute; inset: 0;
    overflow: hidden;
  }
  .slides .slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 700ms var(--ease-standard);
  }
  .slides .slide.is-active { opacity: 1; z-index: 2; }
  .slides .slide img {
    width: 100%; height: 100%;
    /* `cover` fills the iPhone frame fully; the small aspect mismatch
       (screenshot ~0.46, frame ~0.47) crops a few pixels from the
       bottom — the status bar and bottom-nav row stay readable. */
    object-fit: cover; object-position: top center;
    display: block;
  }
  /* Tiny screen-indicator dots */
  .screen-dots {
    position: absolute; left: 50%; bottom: 14px;
    transform: translateX(-50%);
    display: inline-flex; gap: 6px;
    z-index: 6; pointer-events: auto;
  }
  .screen-dots button {
    width: 6px; height: 6px; border-radius: 999px;
    background: oklch(0% 0 0 / 0.25);
    border: 0; padding: 0; cursor: pointer;
    transition: background var(--dur-base) var(--ease-standard), width var(--dur-base) var(--ease-standard);
  }
  .screen-dots button.is-active {
    background: var(--accent); width: 18px;
  }
  /* Eyebrow caption above device — names the current screen. */
  .device-caption {
    position: absolute; left: 50%; top: -28px;
    transform: translateX(-50%);
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-3);
    white-space: nowrap;
    transition: opacity var(--dur-base) var(--ease-standard);
  }
  .device-caption .accent-dot {
    display: inline-block; width: 5px; height: 5px; border-radius: 999px;
    background: var(--accent); margin-right: 10px; vertical-align: middle;
    transform: translateY(-1px);
  }
  @media (max-width: 900px) {
    .iphone { width: 260px; height: 540px; border-radius: 40px; padding: 8px; }
    .iphone .screen { border-radius: 32px; }
    .device-stage { min-height: 580px; }
  }
  .status-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 22px 8px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--ink); font-weight: 500;
  }
  .status-bar .icons { display: inline-flex; gap: 5px; align-items: center; }
  .status-bar .icons span { width: 4px; background: var(--ink); border-radius: 1px; display: inline-block; }
  .status-bar .icons .b1 { height: 5px; }
  .status-bar .icons .b2 { height: 7px; }
  .status-bar .icons .b3 { height: 9px; }
  .status-bar .icons .b4 { height: 11px; }
  .status-bar .battery {
    display: inline-block; width: 22px; height: 11px;
    border: 1px solid var(--ink); border-radius: 3px;
    position: relative; margin-left: 4px;
  }
  .status-bar .battery::after {
    content: ""; position: absolute; right: -3px; top: 3px;
    width: 2px; height: 5px; background: var(--ink); border-radius: 1px;
  }
  .status-bar .battery::before {
    content: ""; position: absolute; inset: 1px; width: calc(100% - 8px);
    background: var(--ink); border-radius: 1px;
  }

  /* ── Phone home screen content ─────────────────────────── */
  .home {
    padding: 0 18px 14px;
    height: calc(100% - 44px);
    overflow: hidden;
  }
  .home-head {
    display: flex; align-items: baseline; justify-content: space-between;
    padding-top: 8px;
  }
  .home-head .word {
    font-family: var(--font-display); font-style: italic; font-weight: 500;
    font-size: 28px; letter-spacing: -0.02em; line-height: 1; color: var(--ink);
  }
  .home-head .word .dot { color: var(--accent); }
  .home-head .date {
    font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ink-3);
  }
  .stat-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin-top: 14px;
  }
  .stat {
    padding-left: 10px;
    border-left: 1px solid var(--line);
  }
  .stat:first-child { padding-left: 0; border-left: 0; }
  .stat .lbl {
    font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ink-3);
  }
  .stat .val {
    font-family: var(--font-display); font-style: italic; font-size: 22px;
    color: var(--ink); margin-top: 4px; font-feature-settings: "tnum";
    line-height: 1;
  }
  .stat .sub {
    font-family: var(--font-mono); font-size: 9px; color: var(--ink-3); margin-left: 4px;
  }
  .goal { margin-top: 14px; }
  .goal-head { display: flex; justify-content: space-between; align-items: baseline; }
  .goal-head .l { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
  .goal-head .r { font-family: var(--font-mono); font-size: 9px; color: var(--accent); }
  .goal-bar { height: 2px; background: var(--line); border-radius: 2px; margin-top: 4px; overflow: hidden; }
  .goal-bar > div { height: 100%; width: 16%; background: var(--accent); }

  .last-played {
    margin-top: 14px;
    background: var(--bg-raised);
    border: 1.5px solid var(--accent);
    border-radius: 14px;
    box-shadow: 0 0 0 4px oklch(58% 0.10 62 / 0.10);
    padding: 10px 12px;
    display: flex; align-items: center; gap: 10px;
  }
  .play-bubble {
    width: 32px; height: 32px; border-radius: 999px;
    border: 1px solid var(--accent-soft);
    background: oklch(95% 0.04 62 / 0.5);
    color: var(--accent-deep);
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
  }
  @media (prefers-color-scheme: dark) {
    .play-bubble { background: oklch(40% 0.06 62 / 0.25); }
    .last-played { box-shadow: 0 0 0 4px oklch(72% 0.10 68 / 0.12); }
  }
  .last-played .body { flex: 1; min-width: 0; }
  .last-played .ttl {
    font-family: var(--font-display); font-style: italic; font-size: 13px;
    color: var(--ink); line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .last-played .meta {
    font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink-3); margin-top: 3px;
  }
  .last-played .reps {
    font-family: var(--font-display); font-style: italic;
    font-feature-settings: "tnum";
    font-size: 18px; color: var(--accent-deep); line-height: 1; text-align: right;
  }
  .last-played .reps .of { color: var(--ink-3); font-size: 13px; }

  .section-head {
    display: flex; align-items: center; gap: 6px; margin-top: 14px; margin-bottom: 8px;
  }
  .section-head .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); }
  .section-head .lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
  .section-head .line { flex: 1; height: 1px; background: var(--line); }

  .card {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    padding: 10px;
    display: flex; gap: 10px; align-items: flex-start;
    margin-bottom: 8px;
  }
  .card .body { flex: 1; min-width: 0; }
  .card .ttl {
    font-family: var(--font-display); font-style: italic; font-size: 13px;
    color: var(--ink); line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .card .desc {
    font-size: 10px; color: var(--ink-2); margin-top: 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .card .reps {
    font-family: var(--font-display); font-style: italic;
    font-feature-settings: "tnum";
    font-size: 17px; color: var(--ink); line-height: 1;
  }
  .card .reps .of { color: var(--ink-3); font-size: 12px; }
  .card .repbar {
    width: 50px; height: 2px; background: var(--line); border-radius: 2px;
    margin-top: 6px; overflow: hidden; margin-left: auto;
  }
  .card .repbar > div { height: 100%; background: var(--accent); }

  /* ── Section components ───────────────────────────────── */
  .section-eyebrow {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-3);
  }
  .section-eyebrow .accent-dot {
    display: inline-block; width: 5px; height: 5px; border-radius: 999px;
    background: var(--accent); margin-right: 12px; vertical-align: middle;
    transform: translateY(-1px);
  }
  h2.section-title {
    font-family: var(--font-display); font-style: italic; font-weight: 500;
    font-size: clamp(36px, 5.5vw, 56px);
    letter-spacing: -0.02em; line-height: 1.05;
    margin: 18px 0 0; color: var(--ink);
    max-width: 22ch; text-wrap: balance;
  }
  h2.section-title .dot { color: var(--accent); }

  .lede {
    font-size: 17px; line-height: 1.6;
    color: var(--ink-2); max-width: 56ch;
    margin: 18px 0 0;
    text-wrap: pretty;
  }
  .lede + .lede { margin-top: 12px; }
  .lede em { font-family: var(--font-display); font-style: italic; color: var(--ink); }
  .lede a { color: var(--ink); }

  /* Two column intro layout */
  .two-col {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px;
    align-items: start;
  }
  @media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

  /* Pull quote */
  .pull {
    margin-top: 40px;
    padding: 28px 32px;
    border-left: 2px solid var(--accent);
    background: var(--bg-raised);
    border-radius: 0 12px 12px 0;
    font-family: var(--font-display); font-style: italic;
    font-size: 22px; line-height: 1.4; color: var(--ink);
    max-width: 60ch;
    text-wrap: pretty;
  }
  .pull cite {
    display: block; margin-top: 12px;
    font-family: var(--font-mono); font-style: normal;
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-3);
  }

  /* ── 20/5 rhythm visual ─────────────────────────────── */
  .rhythm {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
    align-items: center;
  }
  @media (max-width: 800px) { .rhythm { grid-template-columns: 1fr; gap: 40px; } }
  .pendulum {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    display: flex; align-items: center; justify-content: center;
  }
  .pendulum::before, .pendulum::after {
    content: ""; position: absolute; inset: 0;
    border-radius: 50%; pointer-events: none;
  }
  .pendulum::before {
    inset: 28px;
    border: 1px dashed var(--line);
  }
  /* Single 25-minute cycle around the dial: 20 min focus + 5 min break.
     Total 360° = 25 min. 20/25 × 360 = 288° accent; 5/25 × 360 = 72° moss.
     The radial mask is a 0.5%-wide transition for crisp edges. */
  .pendulum-arc {
    position: absolute; inset: 28px;
    border-radius: 50%;
    background: conic-gradient(
      from -90deg,
      var(--accent) 0deg 288deg,
      var(--moss)   288deg 360deg
    );
    -webkit-mask: radial-gradient(circle, transparent 60%, #000 60.5%);
            mask: radial-gradient(circle, transparent 60%, #000 60.5%);
  }
  .pendulum-center {
    position: relative; z-index: 2;
    text-align: center;
  }
  .pendulum-center .num {
    font-family: var(--font-display); font-style: italic; font-weight: 500;
    font-size: 88px; letter-spacing: -0.03em; line-height: 0.9; color: var(--ink);
    font-feature-settings: "tnum";
  }
  .pendulum-center .num .slash { color: var(--ink-3); margin: 0 4px; }
  .pendulum-center .num .b { color: var(--moss); }
  .pendulum-center .lbl {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-3); margin-top: 8px;
  }
  .rhythm-list { margin: 32px 0 0; padding: 0; list-style: none; }
  .rhythm-list li {
    display: grid; grid-template-columns: auto 1fr; gap: 18px;
    padding: 18px 0; border-top: 1px solid var(--line);
    align-items: baseline;
  }
  .rhythm-list li:last-child { border-bottom: 1px solid var(--line); }
  .rhythm-list .num {
    font-family: var(--font-display); font-style: italic;
    font-size: 28px; color: var(--accent); line-height: 1;
    font-feature-settings: "tnum"; min-width: 56px;
  }
  .rhythm-list .num.alt { color: var(--moss); }
  .rhythm-list .num.inf { color: var(--ink-2); }
  .rhythm-list .ttl {
    font-family: var(--font-display); font-style: italic;
    font-size: 18px; color: var(--ink); line-height: 1.2;
  }
  .rhythm-list .body { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }

  /* ── Features grid ─────────────────────────────────────── */
  .feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 0;
    margin-top: 40px;
  }
  @media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
  .feature {
    background: var(--bg);
    padding: 32px 28px;
    display: flex; flex-direction: column;
    min-height: 220px;
  }
  .feature .ic {
    color: var(--ink);
    margin-bottom: 24px;
  }
  .feature .ttl {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 8px;
  }
  .feature .name {
    font-family: var(--font-display); font-style: italic;
    font-size: 22px; color: var(--ink); line-height: 1.15;
    margin-bottom: 10px;
  }
  .feature .body { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

  /* ── Refs accordion ────────────────────────────────────── */
  details.refs {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0;
  }
  details.refs summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 0;
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-mono); font-size: 12px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-2);
  }
  details.refs summary::-webkit-details-marker { display: none; }
  details.refs summary .chev { transition: transform var(--dur-base) var(--ease-emph); }
  details.refs[open] summary .chev { transform: rotate(45deg); }
  details.refs[open] summary { color: var(--ink); }
  .refs-list { padding: 0 0 28px; margin: 0; }
  .refs-list li {
    list-style: none;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
  }
  .refs-list li .label {
    font-family: var(--font-display); font-style: italic;
    font-size: 17px; color: var(--ink);
  }
  .refs-list li .desc { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
  .refs-list li .lnk {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-3); white-space: nowrap;
  }

  /* ── Audience cards ───────────────────────────────────── */
  .audience-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--line); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden;
    margin-top: 48px;
  }
  @media (max-width: 800px) { .audience-grid { grid-template-columns: 1fr; } }
  .audience { background: var(--bg-raised); padding: 40px 32px; }
  .audience .ic { display: inline-flex; color: var(--accent); margin-bottom: 16px; }
  .audience .ttl {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-3); margin-bottom: 8px;
  }
  .audience .name {
    font-family: var(--font-display); font-style: italic; font-weight: 500;
    font-size: 26px; line-height: 1.15; color: var(--ink);
    margin-bottom: 16px;
  }
  .audience .body { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0; }
  .audience .body + .body { margin-top: 12px; }

  /* ── Install steps ─────────────────────────────────── */
  .install-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden;
    margin-top: 48px;
  }
  @media (max-width: 900px) { .install-grid { grid-template-columns: 1fr; } }
  .install { background: var(--bg-raised); padding: 32px 28px; }
  .install .ic { display: inline-flex; color: var(--accent); margin-bottom: 14px; }
  .install .platform {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-3); margin-bottom: 6px;
  }
  .install h3 {
    font-family: var(--font-display); font-style: italic; font-weight: 500;
    font-size: 22px; line-height: 1.15; color: var(--ink);
    margin: 0 0 18px;
  }
  .install ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
  .install li {
    counter-increment: step;
    display: grid; grid-template-columns: 28px 1fr; gap: 12px;
    font-size: 14px; line-height: 1.55; color: var(--ink-2);
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }
  .install li:first-child { border-top: 0; }
  .install li::before {
    content: counter(step);
    font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
    width: 22px; height: 22px; border-radius: 999px;
    border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 1px;
  }

  /* iPhone & iPad card — primary path now that the native app shipped.
     No numbered steps: visitor just taps the App Store badge. The
     install-blurb sits between the H3 and the badge as one short
     musician-facing sentence, and the install-fallback at the bottom
     preserves the old Safari "Add to Home Screen" path for anyone who
     wants the PWA on iOS for whatever reason. */
  .install .install-blurb {
    font-size: 14px; line-height: 1.55; color: var(--ink-2);
    margin: 0 0 18px;
  }
  .install .app-store-cta {
    margin-bottom: 18px;
  }
  .install .install-fallback {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 12px; line-height: 1.55; color: var(--ink-3);
  }
  .install kbd {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink); background: var(--bg-sunken);
    border: 1px solid var(--line); border-radius: 4px;
    padding: 1px 6px;
  }

  /* ── FAQ ──────────────────────────────────────────── */
  .faq-list { margin-top: 48px; border-top: 1px solid var(--line); }
  details.faq-item { border-bottom: 1px solid var(--line); }
  details.faq-item summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    cursor: pointer; list-style: none;
    font-family: var(--font-display); font-style: italic; font-weight: 500;
    font-size: 20px; color: var(--ink);
    transition: color var(--dur-fast) var(--ease-standard);
  }
  details.faq-item summary::-webkit-details-marker { display: none; }
  details.faq-item summary:hover { color: var(--accent-deep); }
  details.faq-item summary .chev {
    flex-shrink: 0;
    width: 28px; height: 28px; border-radius: 999px;
    border: 1px solid var(--line); color: var(--ink-3);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 16px;
    transition: transform var(--dur-base) var(--ease-emph);
  }
  details.faq-item[open] summary .chev { transform: rotate(45deg); }
  details.faq-item .answer {
    padding: 0 0 22px;
    font-size: 14px; line-height: 1.65; color: var(--ink-2);
    max-width: 70ch;
  }
  details.faq-item .answer p { margin: 0 0 10px; }
  details.faq-item .answer p:last-child { margin: 0; }

  /* ── CTA ──────────────────────────────────────────────── */
  .cta-section {
    text-align: center;
    padding: 120px 0;
    background: var(--bg-sunken);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  @media (max-width: 640px) { .cta-section { padding: 80px 0; } }
  .cta-section .eyebrow { display: inline-block; }
  .cta-section h2 {
    font-family: var(--font-display); font-style: italic; font-weight: 500;
    font-size: clamp(40px, 7vw, 80px);
    letter-spacing: -0.025em; line-height: 1; margin: 18px 0 36px;
  }
  .cta-section h2 .dot { color: var(--accent); }
  /* Footer CTA row — same as the hero .cta-row but centred since the
     whole .cta-section is text-aligned centre. App Store badge as the
     primary lead, browser button as the secondary action right next
     to it, both matching what the hero shows. */
  .cta-row-center {
    justify-content: center;
    margin-top: 8px;
  }
  /* Limassol sunset — the wordmark's coral dot meeting the actual
     rising sun on the horizon. Sits between the H2 and the CTA button
     in the shed section. Explicit aspect-ratio + width/height attrs on
     the img keep layout stable while the photo lazy-loads. */
  .cta-hero-image {
    display: block;
    margin: 32px auto 48px;
    max-width: min(1056px, 100%);
    aspect-ratio: 1456 / 1048;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 0 var(--line-strong), 0 24px 48px -24px rgba(17, 12, 9, 0.18);
  }
  .cta-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  @media (max-width: 640px) {
    .cta-hero-image { margin-bottom: 32px; border-radius: 12px; }
  }

  /* ── Three phases of a card ─────────────────────────── */
  .phases-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 40px;
  }
  @media (max-width: 900px) { .phases-grid { grid-template-columns: 1fr; } }
  .phase-card {
    background: var(--bg);
    padding: 36px 32px 32px;
    display: flex; flex-direction: column;
    border-top: 4px solid var(--phase);
    min-height: 320px;
  }
  .phase-card[data-phase="explore"]   { --phase: var(--phase-explore); }
  .phase-card[data-phase="integrate"] { --phase: var(--phase-integrate); }
  .phase-card[data-phase="mastery"]   { --phase: var(--phase-mastery); }
  .phase-card .num {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--phase);
    margin-bottom: 10px;
  }
  .phase-card .name {
    font-family: var(--font-display); font-style: italic;
    font-size: 28px; line-height: 1.05; color: var(--ink);
    margin-bottom: 22px;
  }
  .phase-card dl { margin: 0; }
  .phase-card dt {
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 14px;
  }
  .phase-card dt:first-of-type { margin-top: 0; }
  .phase-card dd {
    margin: 4px 0 0;
    font-size: 14px; line-height: 1.55; color: var(--ink-2);
  }

  /* Pull-quote variant for the phases section — slightly tighter */
  .phases-quote { margin-top: 32px; }

  /* ── What the card remembers ─────────────────────────── */
  .card-remembers {
    display: grid; grid-template-columns: 1.05fr 0.95fr;
    gap: 56px; align-items: center;
    margin-top: 40px;
  }
  @media (max-width: 900px) { .card-remembers { grid-template-columns: 1fr; gap: 32px; } }
  .card-remembers .lede + .lede { margin-top: 12px; }
  .remembers-mock {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    padding: 28px 28px 24px;
    border-left: 4px solid var(--phase-integrate);
    position: relative;
  }
  .remembers-mock .ttl {
    font-family: var(--font-display); font-style: italic;
    font-size: 22px; line-height: 1.15; color: var(--ink);
    margin-bottom: 18px;
  }
  .remembers-mock .row {
    display: flex; align-items: baseline; gap: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-2);
  }
  .remembers-mock .row:first-of-type { border-top: 0; }
  .remembers-mock .row .dot {
    width: 6px; height: 6px; border-radius: 999px; flex-shrink: 0;
  }
  .remembers-mock .row .label {
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-3); flex-shrink: 0; min-width: 64px;
  }
  .remembers-mock .row .value { color: var(--ink); }
  .remembers-mock .row .meta { color: var(--ink-3); margin-left: auto; }
  .remembers-mock .footnote {
    margin-top: 16px;
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-3);
  }

  /* ── Footer ──────────────────────────────────────────── */
  footer {
    padding: 48px 0 56px;
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.12em; color: var(--ink-3);
  }
  footer .row {
    display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between;
    align-items: baseline;
  }
  footer a { color: var(--ink-3); text-decoration-color: transparent; }
  footer a:hover { color: var(--ink); text-decoration-color: var(--accent); }
  footer .mark-row {
    display: inline-flex; align-items: center; gap: 12px;
  }

  /* Bilingual visibility */
  [data-lang-only="ru"] { display: none; }
  html[lang="ru"] [data-lang-only="en"] { display: none; }
  html[lang="ru"] [data-lang-only="ru"] { display: revert; }
  /* Restore display values for inline-style elements */
  html[lang="ru"] .lede[data-lang-only="ru"],
  html[lang="ru"] p[data-lang-only="ru"] { display: block; }
  html[lang="ru"] span[data-lang-only="ru"] { display: inline; }

  @media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease-standard), transform 700ms var(--ease-standard); }
    .reveal.in { opacity: 1; transform: none; }
  }


/* ===== (was a second <style> block) ===== */

  /* The HTML `hidden` attribute defaults to `display: none` via UA
     stylesheet, but our `display: flex` below would otherwise win
     and the banner would never disappear on click. */
  #cookie-banner[hidden] { display: none !important; }
  #cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
    max-width: 720px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 12px;
    padding: 16px 18px;
    background: var(--bg, #fff); color: var(--ink, #1a1a1a);
    border: 1px solid rgba(0,0,0,.12); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    font-size: 14px; line-height: 1.45;
  }
  @media (prefers-color-scheme: dark) {
    #cookie-banner { background: #1a140f; color: #f1e6cf; border-color: rgba(255,255,255,.12); }
  }
  #cookie-banner a { color: inherit; text-decoration: underline; }
  #cookie-banner .cb-actions { display: flex; gap: 8px; justify-content: flex-end; }
  #cookie-banner .cb-btn {
    padding: 8px 16px; border-radius: 8px; border: 1px solid currentColor;
    background: transparent; color: inherit; cursor: pointer;
    font: inherit; font-weight: 500;
  }
  #cookie-banner .cb-primary { background: currentColor; }
  #cookie-banner .cb-primary span { color: var(--bg, #fff); }
  @media (prefers-color-scheme: dark) {
    #cookie-banner .cb-primary span { color: #1a140f; }
  }
  #cookie-banner .cb-btn:hover { opacity: .85; }
  @media (min-width: 640px) {
    #cookie-banner { flex-direction: row; align-items: center; }
    #cookie-banner .cb-text { flex: 1; }
  }

  /* ============================================================
     LIQUID GLASS LAYER (v2)
     Frosted warm-cream surfaces over a soft aurora, layered on top of
     the base styles above. Degrades to opaque panels where
     backdrop-filter is unsupported (see the @supports block at the end).
     ============================================================ */

  /* Aurora backdrop — fixed, very soft warm blobs the glass refracts. */
  body { position: relative; }
  body::before {
    content: ""; position: fixed; inset: -10vmax; z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(34% 30% at 16% 12%, var(--aurora-1), transparent 70%),
      radial-gradient(30% 26% at 88% 20%, var(--aurora-3), transparent 72%),
      radial-gradient(42% 38% at 72% 90%, var(--aurora-2), transparent 72%);
    filter: saturate(112%);
  }
  @media (prefers-reduced-motion: no-preference) {
    body::before { animation: aurora-drift 42s var(--ease-standard) infinite alternate; }
  }
  @keyframes aurora-drift {
    from { transform: translate3d(-1.4%, -1%, 0) scale(1.02); }
    to   { transform: translate3d(2%, 1.6%, 0) scale(1.07); }
  }

  /* Shared frosted surface. */
  .nav,
  .feature,
  .install,
  details.faq-item,
  .nav-drawer,
  #cookie-banner {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  }

  /* Nav — stronger frost so text stays legible over any content. */
  .nav {
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(28px) saturate(165%);
    backdrop-filter: blur(28px) saturate(165%);
    border-bottom: 1px solid var(--glass-edge);
    box-shadow: 0 1px 0 var(--glass-hi) inset;
  }

  /* Feature grid → separated rounded glass cards (was a 1px hairline grid). */
  .feature-grid { background: transparent; border: 0; gap: 14px; }
  .feature {
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow), 0 1px 0 var(--glass-hi) inset;
  }

  /* Install → one centered glass card. */
  .install-grid { background: transparent; border: 0; overflow: visible; gap: 0; }
  .install-grid--single { grid-template-columns: minmax(0, 540px); justify-content: center; }
  .install {
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius-2xl);
    box-shadow: var(--glass-shadow), 0 1px 0 var(--glass-hi) inset;
    text-align: center;
  }
  .install .ic { margin-left: auto; margin-right: auto; }
  .install .app-store-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

  /* FAQ → glass cards instead of plain hairline rows. */
  .faq-list { border-top: 0; display: flex; flex-direction: column; gap: 12px; }
  details.faq-item {
    border-bottom: 0;
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow), 0 1px 0 var(--glass-hi) inset;
    padding: 0 22px;
  }
  details.faq-item summary { padding: 20px 0; }
  details.faq-item .answer { padding: 0 0 20px; }

  /* CTA → let the aurora show instead of the flat sunken fill. */
  .cta-section { background: transparent; }

  .iphone { z-index: 1; }

  /* Pill buttons get a subtle glass sheen on the secondary variant. */
  .btn-secondary {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border-color: var(--glass-edge);
    box-shadow: 0 1px 0 var(--glass-hi) inset, var(--shadow-1);
  }

  /* No backdrop-filter (older Firefox / unsupported): fall back to opaque
     surfaces so nothing turns unreadable. */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav, .feature, .install, details.faq-item, .nav-drawer,
    #cookie-banner, .btn-secondary,
    .phase-card, .pull, .audience { background: var(--bg-raised); }
    .nav { background: var(--bg-overlay); }
    body::before { opacity: 0.6; }
  }

  /* ── v2 follow-ups ─────────────────────────────────────── */

  /* Screen selector moved BELOW the phone (it overlapped the screenshot).
     The stage now flows as a column: phone, then dots. */
  .device-stage {
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 8px 0 4px;
  }
  .screen-dots {
    position: static; transform: none; bottom: auto; left: auto;
    margin-top: 2px;
  }
  .screen-dots button { background: var(--ink-4); }
  .screen-dots button.is-active { background: var(--accent); }

  /* Phases → frosted glass "tabs" with a phase-coloured top edge. */
  .phases-grid { background: transparent; border: 0; gap: 14px; }
  .phase-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    border: 1px solid var(--glass-edge);
    border-top: 0;
    border-radius: var(--radius-xl);
    box-shadow:
      inset 0 3px 0 0 var(--phase),
      0 1px 0 var(--glass-hi) inset,
      var(--glass-shadow);
  }

  /* Pull-quotes → glass cards, keeping the accent edge. */
  .pull {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    border: 1px solid var(--glass-edge);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow), 0 1px 0 var(--glass-hi) inset;
  }

  /* Students & teachers → separated glass cards (was a hairline grid). */
  .audience-grid { background: transparent; border: 0; overflow: visible; gap: 14px; }
  .audience {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius-2xl);
    box-shadow: var(--glass-shadow), 0 1px 0 var(--glass-hi) inset;
  }

  /* The "+" chip was inheriting the summary's italic display font, which
     slanted the glyph. Force upright mono. */
  .chev { font-style: normal; font-family: var(--font-mono); line-height: 1; }


/* ============================================================
   QUICK PRACTICE — widgets & Live Activity (new in 1.1)
   Pure-CSS replicas of the real widget / Lock Screen faces:
   crisper than screenshots, zero image weight, theme-aware
   (the lock mock stays sepia-dark by design — it's a lock screen).
   ============================================================ */
.qp {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
@media (max-width: 800px) { .qp { grid-template-columns: 1fr; gap: 40px; } }

/* List mirrors .rhythm-list but with stroke icons instead of numerals. */
.qp-list { margin: 32px 0 0; padding: 0; list-style: none; }
.qp-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 18px 0; border-top: 1px solid var(--line);
  align-items: start;
}
.qp-list li:last-child { border-bottom: 1px solid var(--line); }
.qp-list .ic { color: var(--accent); display: inline-flex; margin-top: 2px; }
.qp-list .ttl {
  font-family: var(--font-display); font-style: italic;
  font-size: 18px; color: var(--ink); line-height: 1.2;
}
.qp-list .body { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }

/* ── Stage — a soft aurora wallpaper behind the two artifacts ── */
.qp-stage {
  display: flex; flex-direction: column; gap: 22px;
  padding: 30px 26px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--glass-edge);
  background:
    radial-gradient(120% 90% at 15% 0%,   var(--aurora-1), transparent 60%),
    radial-gradient(110% 80% at 100% 30%, var(--aurora-3), transparent 55%),
    radial-gradient(120% 90% at 40% 110%, var(--aurora-2), transparent 60%),
    var(--bg-sunken);
  box-shadow: 0 1px 0 var(--glass-hi) inset;
}
.qp-artifact { margin: 0; }
.qp-cap {
  font-family: var(--font-mono); font-size: var(--text-xxs);
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--ink-3); text-align: center; margin-top: 12px;
}
.qp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}

/* ── Home Screen widget replica ── */
.qp-widget {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px;
  align-items: center;
  max-width: 360px; margin: 0 auto;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-3), 0 1px 0 var(--glass-hi) inset;
}
.qp-w-left { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.qp-w-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.14em; color: var(--ink-3);
  margin-bottom: 2px;
}
.qp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  align-self: stretch;
  padding: 8px 10px; border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.45) inset;
}
.qp-btn-primary { background: var(--accent); color: var(--accent-ink-on); }
.qp-btn-secondary {
  background: var(--bg-sunken); color: var(--ink);
  border: 1px solid var(--line);
}
.qp-w-right { display: flex; flex-direction: column; gap: 12px; }
.qp-w-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qp-w-label {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.13em; color: var(--ink-3);
}
.qp-w-value {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 27px; line-height: 1.05; color: var(--ink);
  font-feature-settings: "tnum"; margin-top: 3px;
}
.qp-w-flame { font-size: 14px; font-style: normal; margin-left: 2px; }
.qp-w-goal-row { display: flex; justify-content: space-between; align-items: baseline; }
.qp-w-pct {
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  color: var(--accent);
}
.qp-w-bar {
  height: 3px; border-radius: var(--radius-pill);
  background: var(--line); margin-top: 5px; overflow: hidden;
}
.qp-w-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

/* ── Lock Screen replica — fixed sepia dark, matches the app's dark ── */
.qp-lock {
  --lk-bg:    oklch(17% 0.013 50);
  --lk-panel: oklch(23% 0.014 50);
  --lk-ink:   oklch(93% 0.010 75);
  --lk-ink3:  oklch(62% 0.012 65);
  --lk-line:  oklch(30% 0.014 55);
  --lk-accent: oklch(72% 0.10 68);
  max-width: 360px; margin: 0 auto;
  padding: 16px 18px 18px;
  border-radius: 28px;
  background:
    radial-gradient(120% 70% at 80% -10%, oklch(30% 0.05 250 / 0.5), transparent 60%),
    radial-gradient(100% 60% at 10% 110%, oklch(28% 0.05 145 / 0.45), transparent 60%),
    var(--lk-bg);
  border: 1px solid oklch(35% 0.014 55 / 0.6);
  box-shadow: var(--shadow-3);
  text-align: center;
}
.qp-island {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: oklch(5% 0 0);
  color: var(--lk-ink);
  font-family: var(--font-display); font-style: italic;
  font-size: 13px; font-feature-settings: "tnum";
}
.qp-island-note { color: var(--lk-accent); font-style: normal; font-size: 12px; }
.qp-lock-date {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  color: var(--lk-ink3); margin-top: 14px; letter-spacing: 0.02em;
}
.qp-lock-clock {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 56px; line-height: 1; color: var(--lk-ink);
  letter-spacing: -0.02em; margin: 2px 0 18px;
  font-feature-settings: "tnum";
}
.qp-la {
  border-radius: 18px;
  background: var(--lk-panel);
  border: 1px solid var(--lk-line);
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.06) inset, var(--shadow-2);
  padding: 13px 14px 12px;
  text-align: left;
}
.qp-la-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.qp-la-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.14em; color: var(--lk-ink3);
}
.qp-la-eyebrow .qp-dot { background: var(--lk-accent); }
.qp-la-title {
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  color: var(--lk-ink); margin-top: 4px;
}
.qp-la-time {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 30px; line-height: 1; color: var(--lk-ink);
  font-feature-settings: "tnum";
}
.qp-la-controls { display: flex; gap: 8px; margin-top: 12px; }
.qp-la-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 10px; border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 1;
  background: oklch(30% 0.014 55); color: var(--lk-ink);
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.10) inset;
}
.qp-la-btn-accent { background: var(--lk-accent); color: oklch(18% 0.012 50); }

@media (max-width: 480px) {
  .qp-stage { padding: 22px 16px; }
  .qp-widget { grid-template-columns: 1fr 1.1fr; gap: 14px; padding: 16px; }
  .qp-lock-clock { font-size: 48px; }
}
