/* StompLink — quiet, dark, HIG-flavoured. No web fonts, no JS. */
:root {
  --bg: #0a0a0b;
  --bg-elev: #141416;
  --bg-elev-2: #1c1c1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --accent: #2997ff;
  --radius: 20px;
  --max: 1080px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Inline SVG icons (styled here so the CSP needs no inline styles) */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--text); color: #000; padding: 8px 14px; border-radius: 10px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav ul a { color: var(--text-2); }
.nav ul a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav ul li:not(.keep) { display: none; } }

/* Type */
h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.1; margin: 0; font-weight: 700; }
h1 { font-size: clamp(44px, 7vw, 76px); }
h2 { font-size: clamp(32px, 4.6vw, 48px); }
h3 { font-size: 21px; letter-spacing: -0.01em; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: clamp(19px, 2.2vw, 24px); color: var(--text-2); line-height: 1.4; letter-spacing: -0.01em; }
.eyebrow { color: var(--text-3); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 12px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 17px; font-weight: 500; border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { background: #fff; }
.btn-ghost { color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-elev); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Sections */
section { padding: 112px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .lede { margin-top: 16px; }

/* Hero */
.hero { padding: 96px 0 112px; text-align: center; }
.hero .logo { width: 112px; height: 112px; margin: 0 auto 28px; border-radius: 25px; box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px var(--line); }
.hero .lede { max-width: 680px; margin: 20px auto 36px; }
.hero .small { margin-top: 18px; }

/* Menu-bar popover mock (decorative) */
.mock {
  width: min(420px, 100%); margin: 72px auto 0; text-align: left;
  background: rgba(30, 30, 33, 0.92); border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 14px; box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 0.5px rgba(255,255,255,.04);
  font-size: 13px;
}
.mock-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mock-head strong { font-size: 13px; }
.pill { font-size: 11px; color: #30d158; background: rgba(48,209,88,.12); padding: 2px 8px; border-radius: 999px; }
.mock-row { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 8px 4px; }
.mock-icon { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--bg-elev-2); }
.mock-icon .ico { width: 16px; height: 16px; }
.mock-label { display: flex; justify-content: space-between; color: var(--text); margin-bottom: 6px; }
.mock-label span:last-child { color: var(--text-3); font-variant-numeric: tabular-nums; }
.track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); position: relative; }
.fill { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--text); }
.fill::after { content: ""; position: absolute; right: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w50 { width: 50%; } .w65 { width: 65%; }
.mock-out { display: flex; justify-content: space-between; margin-top: 8px; padding: 10px 4px 2px; border-top: 1px solid var(--line); color: var(--text-2); }
.mock-out b { color: var(--text); font-weight: 500; }

/* Current panel: Sources + Destinations (decorative, pure CSS) */
.mock-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 8px 4px 2px; }
.msrc { grid-template-columns: 28px 1fr 10px; border-radius: 10px; overflow: hidden; }
.mock-label > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.mtag { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #30d158; background: rgba(48,209,88,.12); border-radius: 999px; padding: 1px 6px; }
.mtag-app { color: var(--accent); background: rgba(41,151,255,.14); }
.meter { display: flex; gap: 2px; height: 26px; align-self: center; }
.meter i { position: relative; width: 4px; height: 100%; border-radius: 2px; overflow: hidden; background: linear-gradient(0deg, #30d158 0 62%, #ffd60a 62% 84%, #ff453a 84%); }
.meter i::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 55%; background: #2a2a2e; animation: meter 1.7s ease-in-out infinite alternate; }
.meter i + i::after { animation-duration: 1.3s; animation-delay: -.4s; }
.m2 i::after { animation-duration: 2.2s; } .m3 i::after { animation-duration: 1.5s; animation-delay: -.8s; } .m4 i::after { animation-duration: 1.1s; }
@keyframes meter { 0% { height: 78%; } 30% { height: 42%; } 55% { height: 60%; } 80% { height: 30%; } 100% { height: 52%; } }
.mdst { background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 6px; }
.mdst-head { display: flex; align-items: center; gap: 8px; }
.mdst-head b { font-weight: 600; font-size: 13px; color: var(--text); }
.mdst-head small { flex: 1; min-width: 0; color: var(--text-3); font-size: 11.5px; }
.mdst .sw-go { --on: 1; background: #30d158; flex: none; }
.feeds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.feed { font-size: 11.5px; font-weight: 500; line-height: 1.5; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-3); }
.feed.on { background: rgba(41,151,255,.18); border-color: rgba(41,151,255,.55); color: var(--text); }
.mdst-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--text-3); }
.mdst-note .ico { width: 13px; height: 13px; stroke: #30d158; }
.mock-add { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 4px 2px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.mock-add span:last-child { color: var(--text-3); }
/* FaceTime and GarageBand "arrive" once, a moment after load */
.msrc.ap1, .msrc.ap2 { animation: row-in .7s ease-out 1.2s both, row-glow 2.6s ease-out 1.2s both; }
.msrc.ap2 { animation-delay: 2.4s, 2.4s; }
.feed.ap1, .feed.ap2 { animation: pill-in .5s ease-out 1.5s both; }
.feed.ap2 { animation-delay: 2.7s; }
@keyframes row-in { from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-4px); } to { opacity: 1; max-height: 64px; transform: none; } }
@keyframes row-glow { 0%, 25% { background: rgba(48,209,88,.12); } 100% { background: transparent; } }
@keyframes pill-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .msrc.ap1, .msrc.ap2, .feed.ap1, .feed.ap2, .meter i::after { animation: none; }
}
.hl { color: var(--text); font-weight: 600; }
.flow-notes { margin-top: 48px; }
.consent { max-width: 720px; margin: 28px auto 0; text-align: center; }
.consent strong { color: var(--text); }

/* Cards / grids */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--text-2); margin-top: 10px; }
.glyph { width: 40px; height: 40px; border-radius: 11px; background: var(--bg-elev-2); display: grid; place-items: center; margin-bottom: 18px; }
.glyph svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 18px;
  border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; font-size: 15px;
}

/* How the audio flows */
.flowmap { margin: 0; display: grid; gap: 16px; }
.lane { --lane: #30d158; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px 28px; }
.lane-ret { --lane: var(--accent); }
.lane-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.lane-title span:not(.lane-dot) { color: var(--text-3); font-weight: 500; }
.lane-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lane); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lane) 18%, transparent); }
.lane-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 132px 168px 132px minmax(0, 1fr); align-items: center; }
.fnode { display: grid; gap: 10px; }
.chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: 14px; }
.chip > span { display: grid; min-width: 0; }
.chip b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.chip small, .fhub small { font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
.fhub { justify-items: center; text-align: center; gap: 4px; padding: 18px 12px; border-radius: 18px; background: #1f1f23; border: 1px solid color-mix(in srgb, var(--lane) 35%, var(--line)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--lane) 6%, transparent); }
.fhub img { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 6px; }
.fhub b { font-size: 15px; }
/* Destinations are a chain (call app → person, interface → headphones): small connector between chips */
.fseq { gap: 16px; }
.fseq .chip + .chip { position: relative; }
.fseq .chip + .chip::before { content: ""; position: absolute; left: 23px; top: -16px; width: 2px; height: 10px; border-radius: 2px; background: var(--lane); }
.fseq .chip + .chip::after { content: ""; position: absolute; left: 20px; top: -7px; border: 4px solid transparent; border-top: 5px solid var(--lane); border-bottom: 0; }
.farrow { position: relative; height: 56px; }
.farrow::before { content: ""; position: absolute; left: 10px; right: 14px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--lane) 25%, transparent), var(--lane)); }
.farrow::after { content: ""; position: absolute; right: 8px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 8px solid var(--lane); border-right: 0; }
.farrow span { position: absolute; left: 6px; right: 6px; bottom: calc(50% + 8px); text-align: center; font-size: 12px; line-height: 1.3; color: var(--text-2); }

@media (max-width: 860px) {
  .lane { padding: 20px; }
  .lane-row { display: flex; flex-direction: column; align-items: stretch; }
  .fhub { margin: 0 auto; width: min(240px, 100%); }
  .farrow { height: 52px; }
  .farrow::before { left: 50%; right: auto; top: 6px; bottom: 12px; width: 2px; height: auto; margin: 0 0 0 -1px; background: linear-gradient(180deg, color-mix(in srgb, var(--lane) 25%, transparent), var(--lane)); }
  .farrow::after { left: 50%; right: auto; top: auto; bottom: 6px; margin: 0 0 0 -5px; border: 5px solid transparent; border-top: 8px solid var(--lane); border-bottom: 0; }
  .farrow span { left: calc(50% + 14px); right: 0; top: 50%; bottom: auto; transform: translateY(-50%); text-align: left; }
}

/* ── Flow animation (pure CSS) ───────────────────────────────────────────── */
/* Cycling examples: items share one grid cell (sized to the widest), each shown ~3s. */
.cycle { display: inline-grid; }
.cycle > * { grid-area: 1 / 1; opacity: 0; white-space: nowrap; animation: 12s ease-in-out infinite both; }
.c3 > * { animation-name: cyc3; animation-duration: 9s; }
.c4 > * { animation-name: cyc4; animation-duration: 12s; }
.cycle > :nth-child(2) { animation-delay: 3s; }
.cycle > :nth-child(3) { animation-delay: 6s; }
.cycle > :nth-child(4) { animation-delay: 9s; }
.cycle-ico { flex: none; }
.cycle-ico > .ico { display: block; }
@keyframes cyc3 { 0% { opacity: 0; transform: translateY(.3em); } 4% { opacity: 1; transform: none; } 30.5% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-.3em); } }
@keyframes cyc4 { 0% { opacity: 0; transform: translateY(.3em); } 3% { opacity: 1; transform: none; } 23% { opacity: 1; transform: none; } 25.5%, 100% { opacity: 0; transform: translateY(-.3em); } }
/* Static text for screen readers; becomes visible when motion is reduced. */
.rm { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pulses travelling along the arrows (green out, blue return) */
.farrow i { position: absolute; top: 50%; left: 10px; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--lane); box-shadow: 0 0 10px var(--lane); opacity: 0; animation: travel-x 3s linear infinite; }
.farrow i + i { animation-delay: 1.5s; }
@keyframes travel-x { 0% { left: 10px; opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 26px); opacity: 0; } }
@keyframes travel-y { 0% { top: 6px; opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { top: calc(100% - 20px); opacity: 0; } }

/* REC badge */
.fhub { position: relative; }
.rec { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #ff6961; background: rgba(255, 69, 58, .12); border-radius: 999px; padding: 2px 7px 2px 6px; }
.fhub .rec { position: absolute; top: 8px; right: 8px; }
.rec-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff453a; animation: rec-blink 2.4s ease-in-out infinite; }
@keyframes rec-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.rec-note { display: flex; align-items: flex-start; justify-content: center; gap: 12px; max-width: 720px; margin: 28px auto 0; color: var(--text-2); font-size: 15px; }
.rec-note .rec { flex: none; margin-top: 2px; }
.rec-note strong { color: var(--text); font-weight: 600; }

@media (max-width: 860px) {
  .farrow i { left: 50%; top: 6px; margin: 0 0 0 -3px; animation-name: travel-y; }
}

@media (prefers-reduced-motion: reduce) {
  .cycle:not(.cycle-ico), .farrow i { display: none; }
  .cycle-ico > * { animation: none; opacity: 0; }
  .cycle-ico > :first-child { opacity: 1; }
  .rm { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
  .rec-dot { animation: none; }
}

/* ── Scenes: Lesson · Practice · Record (pure CSS crossfade, 7s each) ───── */
.scene-pills { list-style: none; margin: 0 auto 4px; padding: 4px; display: flex; gap: 4px; justify-content: center; width: max-content; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; }
.scene-pills { position: relative; }
.stab { border-radius: 999px; color: var(--text-3); animation: pill3 21s ease-in-out infinite both; }
.stab label { display: block; padding: 6px 14px; border-radius: 999px; color: inherit; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.stab label:hover { color: var(--text); }
.stab .pl2 { display: none; }
.stab-b, .scene:nth-child(2) { animation-delay: 7s; }
.stab-c, .scene:nth-child(3) { animation-delay: 14s; }
@keyframes pill3 { 0% { background: transparent; color: var(--text-3); } 2%, 32% { background: rgba(255,255,255,.12); color: var(--text); } 35%, 100% { background: transparent; color: var(--text-3); } }
.scenes { display: grid; }
.scene { grid-area: 1 / 1; align-self: center; display: grid; gap: 16px; opacity: 0; visibility: hidden; animation: scene3 21s ease-in-out infinite both; }
@keyframes scene3 { 0% { opacity: 0; visibility: visible; } 4% { opacity: 1; } 32% { opacity: 1; visibility: visible; } 36%, 100% { opacity: 0; visibility: hidden; } }
.scene-cap { text-align: center; font-size: 14px; color: var(--text-3); }
.scene-cap b { color: var(--text); font-weight: 600; }
.lane-rec { --lane: #ff6961; }
.opt { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 7px; margin-left: 8px; vertical-align: 2px; }
.ico .solid-rec { fill: #ff453a; stroke: none; }

/* Clickable scene tabs (radio group, no JS). Each tab has two radios (…1 / …2) and shows the label for
   whichever one is NOT checked, so every click checks a different radio. Each radio swaps in its own
   copy of the keyframes, which restarts the 21s cycle offset to begin at the clicked scene; rotation
   then carries on through the next scenes and loops forever. Tab highlight runs on the same timing. */
.flowmap:has(#sp-a1:checked) .stab-a .pl1 { display: none; }
.flowmap:has(#sp-a1:checked) .stab-a .pl2 { display: block; }
.flowmap:has(#sp-a1:focus-visible, #sp-a2:focus-visible) .stab-a { outline: 2px solid var(--accent); outline-offset: 2px; }
.flowmap:has(#sp-b1:checked) .stab-b .pl1 { display: none; }
.flowmap:has(#sp-b1:checked) .stab-b .pl2 { display: block; }
.flowmap:has(#sp-b1:focus-visible, #sp-b2:focus-visible) .stab-b { outline: 2px solid var(--accent); outline-offset: 2px; }
.flowmap:has(#sp-c1:checked) .stab-c .pl1 { display: none; }
.flowmap:has(#sp-c1:checked) .stab-c .pl2 { display: block; }
.flowmap:has(#sp-c1:focus-visible, #sp-c2:focus-visible) .stab-c { outline: 2px solid var(--accent); outline-offset: 2px; }
.flowmap:has(#sp-a1:checked) .scene-a { animation: scene3-a1 21s ease-in-out 0s infinite both, recA 7s ease-in-out infinite both; }
.flowmap:has(#sp-a1:checked) .stab-a { animation: pill3-a1 21s ease-in-out 0s infinite both; }
.flowmap:has(#sp-a1:checked) .scene-b { animation: scene3-a1 21s ease-in-out 7s infinite both; }
.flowmap:has(#sp-a1:checked) .stab-b { animation: pill3-a1 21s ease-in-out 7s infinite both; }
.flowmap:has(#sp-a1:checked) .scene-c { animation: scene3-a1 21s ease-in-out 14s infinite both, recC 7s ease-in-out infinite both; }
.flowmap:has(#sp-a1:checked) .stab-c { animation: pill3-a1 21s ease-in-out 14s infinite both; }
.flowmap:has(#sp-a2:checked) .scene-a { animation: scene3-a2 21s ease-in-out 0s infinite both, recA 7s ease-in-out infinite both; }
.flowmap:has(#sp-a2:checked) .stab-a { animation: pill3-a2 21s ease-in-out 0s infinite both; }
.flowmap:has(#sp-a2:checked) .scene-b { animation: scene3-a2 21s ease-in-out 7s infinite both; }
.flowmap:has(#sp-a2:checked) .stab-b { animation: pill3-a2 21s ease-in-out 7s infinite both; }
.flowmap:has(#sp-a2:checked) .scene-c { animation: scene3-a2 21s ease-in-out 14s infinite both, recC 7s ease-in-out infinite both; }
.flowmap:has(#sp-a2:checked) .stab-c { animation: pill3-a2 21s ease-in-out 14s infinite both; }
.flowmap:has(#sp-b1:checked) .scene-a { animation: scene3-b1 21s ease-in-out 14s infinite both, recA 7s ease-in-out infinite both; }
.flowmap:has(#sp-b1:checked) .stab-a { animation: pill3-b1 21s ease-in-out 14s infinite both; }
.flowmap:has(#sp-b1:checked) .scene-b { animation: scene3-b1 21s ease-in-out 0s infinite both; }
.flowmap:has(#sp-b1:checked) .stab-b { animation: pill3-b1 21s ease-in-out 0s infinite both; }
.flowmap:has(#sp-b1:checked) .scene-c { animation: scene3-b1 21s ease-in-out 7s infinite both, recC 7s ease-in-out infinite both; }
.flowmap:has(#sp-b1:checked) .stab-c { animation: pill3-b1 21s ease-in-out 7s infinite both; }
.flowmap:has(#sp-b2:checked) .scene-a { animation: scene3-b2 21s ease-in-out 14s infinite both, recA 7s ease-in-out infinite both; }
.flowmap:has(#sp-b2:checked) .stab-a { animation: pill3-b2 21s ease-in-out 14s infinite both; }
.flowmap:has(#sp-b2:checked) .scene-b { animation: scene3-b2 21s ease-in-out 0s infinite both; }
.flowmap:has(#sp-b2:checked) .stab-b { animation: pill3-b2 21s ease-in-out 0s infinite both; }
.flowmap:has(#sp-b2:checked) .scene-c { animation: scene3-b2 21s ease-in-out 7s infinite both, recC 7s ease-in-out infinite both; }
.flowmap:has(#sp-b2:checked) .stab-c { animation: pill3-b2 21s ease-in-out 7s infinite both; }
.flowmap:has(#sp-c1:checked) .scene-a { animation: scene3-c1 21s ease-in-out 7s infinite both, recA 7s ease-in-out infinite both; }
.flowmap:has(#sp-c1:checked) .stab-a { animation: pill3-c1 21s ease-in-out 7s infinite both; }
.flowmap:has(#sp-c1:checked) .scene-b { animation: scene3-c1 21s ease-in-out 14s infinite both; }
.flowmap:has(#sp-c1:checked) .stab-b { animation: pill3-c1 21s ease-in-out 14s infinite both; }
.flowmap:has(#sp-c1:checked) .scene-c { animation: scene3-c1 21s ease-in-out 0s infinite both, recC 7s ease-in-out infinite both; }
.flowmap:has(#sp-c1:checked) .stab-c { animation: pill3-c1 21s ease-in-out 0s infinite both; }
.flowmap:has(#sp-c2:checked) .scene-a { animation: scene3-c2 21s ease-in-out 7s infinite both, recA 7s ease-in-out infinite both; }
.flowmap:has(#sp-c2:checked) .stab-a { animation: pill3-c2 21s ease-in-out 7s infinite both; }
.flowmap:has(#sp-c2:checked) .scene-b { animation: scene3-c2 21s ease-in-out 14s infinite both; }
.flowmap:has(#sp-c2:checked) .stab-b { animation: pill3-c2 21s ease-in-out 14s infinite both; }
.flowmap:has(#sp-c2:checked) .scene-c { animation: scene3-c2 21s ease-in-out 0s infinite both, recC 7s ease-in-out infinite both; }
.flowmap:has(#sp-c2:checked) .stab-c { animation: pill3-c2 21s ease-in-out 0s infinite both; }
@keyframes scene3-a1 { 0% { opacity: 0; visibility: visible; } 4% { opacity: 1; } 32% { opacity: 1; visibility: visible; } 36%, 100% { opacity: 0; visibility: hidden; } }
@keyframes pill3-a1 { 0% { background: transparent; color: var(--text-3); } 2%, 32% { background: rgba(255,255,255,.12); color: var(--text); } 35%, 100% { background: transparent; color: var(--text-3); } }
@keyframes scene3-a2 { 0% { opacity: 0; visibility: visible; } 4% { opacity: 1; } 32% { opacity: 1; visibility: visible; } 36%, 100% { opacity: 0; visibility: hidden; } }
@keyframes pill3-a2 { 0% { background: transparent; color: var(--text-3); } 2%, 32% { background: rgba(255,255,255,.12); color: var(--text); } 35%, 100% { background: transparent; color: var(--text-3); } }
@keyframes scene3-b1 { 0% { opacity: 0; visibility: visible; } 4% { opacity: 1; } 32% { opacity: 1; visibility: visible; } 36%, 100% { opacity: 0; visibility: hidden; } }
@keyframes pill3-b1 { 0% { background: transparent; color: var(--text-3); } 2%, 32% { background: rgba(255,255,255,.12); color: var(--text); } 35%, 100% { background: transparent; color: var(--text-3); } }
@keyframes scene3-b2 { 0% { opacity: 0; visibility: visible; } 4% { opacity: 1; } 32% { opacity: 1; visibility: visible; } 36%, 100% { opacity: 0; visibility: hidden; } }
@keyframes pill3-b2 { 0% { background: transparent; color: var(--text-3); } 2%, 32% { background: rgba(255,255,255,.12); color: var(--text); } 35%, 100% { background: transparent; color: var(--text-3); } }
@keyframes scene3-c1 { 0% { opacity: 0; visibility: visible; } 4% { opacity: 1; } 32% { opacity: 1; visibility: visible; } 36%, 100% { opacity: 0; visibility: hidden; } }
@keyframes pill3-c1 { 0% { background: transparent; color: var(--text-3); } 2%, 32% { background: rgba(255,255,255,.12); color: var(--text); } 35%, 100% { background: transparent; color: var(--text-3); } }
@keyframes scene3-c2 { 0% { opacity: 0; visibility: visible; } 4% { opacity: 1; } 32% { opacity: 1; visibility: visible; } 36%, 100% { opacity: 0; visibility: hidden; } }
@keyframes pill3-c2 { 0% { background: transparent; color: var(--text-3); } 2%, 32% { background: rgba(255,255,255,.12); color: var(--text); } 35%, 100% { background: transparent; color: var(--text-3); } }
@media (max-width: 860px) {
  .scene-pills { font-size: 12px; max-width: 100%; }
  .stab label { padding: 6px 9px; }
  .scene { align-self: start; }
}
/* Reduced motion: no rotation. The first scene shows until a tab is picked; tabs just switch. */
@media (prefers-reduced-motion: reduce) {
  .flowmap .scene-pills .stab, .flowmap .scenes .scene { animation: none !important; }
  .flowmap .scenes .scene { opacity: 0; visibility: hidden; }
  .flowmap:not(:has(.scene-pills input:checked)) .scene-a,
  .flowmap:has(#sp-a1:checked, #sp-a2:checked) .scene-a,
  .flowmap:has(#sp-b1:checked, #sp-b2:checked) .scene-b,
  .flowmap:has(#sp-c1:checked, #sp-c2:checked) .scene-c { opacity: 1; visibility: visible; }
  .flowmap:not(:has(.scene-pills input:checked)) .stab-a,
  .flowmap:has(#sp-a1:checked, #sp-a2:checked) .stab-a,
  .flowmap:has(#sp-b1:checked, #sp-b2:checked) .stab-b,
  .flowmap:has(#sp-c1:checked, #sp-c2:checked) .stab-c { background: rgba(255,255,255,.12); color: var(--text); }
}


/* ── Optional recording: Rec switch on the hub + dashed side branch ───────── */
@property --on { syntax: '<number>'; inherits: true; initial-value: 0; }
.scene-a { animation: scene3 21s ease-in-out infinite both, recA 7s ease-in-out infinite both; }
.scene-c { animation: scene3 21s ease-in-out infinite both, recC 7s ease-in-out infinite both; }
@keyframes recA { 0%, 40% { --on: 0; } 50%, 100% { --on: 1; } }   /* Lesson: off, then flipped on */
@keyframes recC { 0%, 12% { --on: 0; } 22%, 100% { --on: 1; } }   /* Practice + Record: flips on early */
/* Practice (scene B) stays off: audio flows either way. */

.fhub:has(.recsw) { padding-top: 32px; }
.fhub .hub-rec { right: auto; left: 8px; opacity: var(--on); }
.recsw { display: inline-flex; align-items: center; gap: 5px; }
.fhub .recsw { position: absolute; top: 8px; right: 8px; }
.recsw small, .fhub .recsw small { font-size: 10.5px; font-weight: 600; color: var(--text-3); }
.sw { position: relative; width: 24px; height: 14px; border-radius: 999px; background: color-mix(in srgb, #ff453a calc(var(--on) * 100%), rgba(255, 255, 255, .2)); }
.sw > span { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4); transform: translateX(calc(var(--on) * 10px)); }
.recsw-on { --on: 1; }
.rec-note .recsw { flex: none; margin-top: 3px; }

.lane-row:has(.fbranch) { grid-template-rows: auto auto; }
.fbranch { grid-column: 2 / 5; grid-row: 2; justify-self: center; display: flex; flex-direction: column; align-items: center; opacity: calc(.35 + var(--on) * .5); }
.bline { position: relative; width: 0; height: 34px; margin: 4px 0; border-left: 2px dashed rgba(255, 105, 97, .75); }
.bopt { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.bdots { position: absolute; inset: 0; opacity: var(--on); }
.bdots i { position: absolute; left: -4px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: #ff6961; box-shadow: 0 0 8px #ff6961; opacity: 0; animation: travel-down 2s linear infinite; }
.bdots i + i { animation-delay: 1s; }
@keyframes travel-down { 0% { top: -3px; opacity: 0; } 20%, 80% { opacity: 1; } 100% { top: calc(100% - 3px); opacity: 0; } }
.chip-rec { background: transparent; border-style: dashed; border-color: rgba(255, 105, 97, .45); }

@media (max-width: 860px) {
  .fbranch { margin: 2px 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .scenes .scene { animation: none; --on: 1; }
  .bdots i { display: none; }
}

/* Pricing */
.price-card { max-width: 440px; margin: 0 auto; text-align: center; padding: 40px 32px; }
.price { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; margin: 12px 0 4px; }
.price small { font-size: 17px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: #ffd60a; background: rgba(255,214,10,.1); border-radius: 999px; padding: 3px 10px; }
.checks { list-style: none; padding: 0; margin: 24px 0 28px; text-align: left; display: grid; gap: 10px; color: var(--text-2); }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--text); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 36px 22px 0; position: relative;
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; font-weight: 300; color: var(--text-2); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 0 22px; max-width: 660px; }

/* Prose pages */
.prose { padding: 80px 0 104px; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 16px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose kbd, .prose code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.note { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-top: 24px; color: var(--text-2); }

/* Platform */
.os-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.os-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.os-ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.price-os { margin-top: 16px; }
.made-for-mac { color: var(--text-2); font-weight: 600; letter-spacing: .01em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 13px; color: var(--text-3); }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer nav a { color: var(--text-2); }

/* Device-agnostic note under the hero */
.msub { font-style: normal; font-size: 11px; color: var(--text-3); }
.works-with { max-width: 820px; margin: 14px auto 0; font-size: 14.5px; line-height: 1.5; color: var(--text-3); text-wrap: balance; }
.works-with a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.works-with a:hover { color: var(--text); text-decoration-color: currentColor; }
@media (max-width: 640px) { .works-with { font-size: 13.5px; max-width: 360px; } .ww-more { display: none; } }
@media (max-width: 379px) { .works-with { font-size: 13px; } .ww-more-sm { display: none; } }

/* Made for: compact use-case strip */
.usecases { padding: 8px 0 88px; border-top: 0; }
.usecases .eyebrow { margin-bottom: 20px; }
.uc { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.uc .glyph { flex: none; margin-bottom: 0; }
.uc h3 { font-size: 18px; }
.uc p { margin-top: 6px; font-size: 15px; line-height: 1.45; }

/* SEO v6 */
.rec-macos { margin-top: 14px; }
.faq-group { font-size: 15px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; margin: 36px 0 4px; }
.faq-group:first-child { margin-top: 0; }
.crumbs { margin-bottom: 28px; }
.crumbs a { color: var(--text-2); }
.guide .lede { margin: 8px 0 8px; }
.guide h3 { margin: 22px 0 6px; font-size: 18px; }
.guide .note { margin-top: 20px; }
.guide-cta { margin-top: 48px; text-align: center; }
.guide-cta h2 { margin-top: 0 !important; }
.guide-cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.more-guides { margin-top: 8px; }
.guide-grid { grid-template-columns: repeat(2, 1fr); }
.guide-card { display: block; color: var(--text); }
.guide-card:hover { text-decoration: none; border-color: var(--line-strong); }
.guide-card h2 { font-size: 22px; margin: 0; letter-spacing: -0.015em; }
.guide-card .more { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 15px; }
.center-note { max-width: 720px; margin: 32px auto 0; text-align: center; }
@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; } }
.nav ul a[aria-current="page"] { color: var(--text); }

/* v11: Buy form + passkey pages (welcome, finish, recover, account) */
[hidden] { display: none !important; }
button.btn { font-family: inherit; cursor: pointer; line-height: 1; }
button.btn:disabled { opacity: .55; cursor: not-allowed; }
button.btn[aria-busy="true"] { cursor: progress; }
.buy-form { margin: 24px 0 0; }
.buy-form .btn { width: 100%; }
.buy-note { margin-top: 12px; }
.pk .wrap { max-width: 640px; }
.pk h1 { font-size: clamp(34px, 5vw, 48px); }
.pk h1:focus { outline: none; }
.pk .lede { margin-bottom: 18px; }
.pk-state > p + p { margin-top: 12px; }
.pk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.pk-steps { margin: 28px 0 24px; padding-left: 22px; }
.pk-steps li { color: var(--text-2); }
.pk-steps li + li { margin-top: 12px; }
.pk-steps .btn { margin-left: 4px; }
.pk-spin { color: var(--text-2); font-size: 19px; }
.pk-spin::before { content: "♪ "; color: var(--accent); }
.pk-error { margin-top: 14px; color: #ff9f8a; }
.pk-links { margin-top: 28px; }
.pk-form { display: grid; gap: 10px; margin: 28px 0 14px; max-width: 420px; }
.pk-form label { font-weight: 600; font-size: 15px; color: var(--text); }
.pk-form input {
  font: inherit; color: var(--text); background: var(--bg-elev); min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px;
}
.pk-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pk-form input[aria-invalid="true"] { border-color: #ff9f8a; }
.pk-form input[name="code"] { letter-spacing: .3em; font-size: 22px; max-width: 220px; }
.pk-form .btn { justify-self: start; margin-top: 6px; }
.pk-card { margin-top: 24px; padding: 24px 24px 20px; }
.pk-card h2 { font-size: 21px; margin: 0 0 8px; }
.pk-card .pk-actions { margin: 18px 0 10px; }
.pk-card .small + .small { margin-top: 8px; }
.prose .pk-list { list-style: none; margin: 12px 0; padding: 0; }
.pk-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pk-list li:first-child { border-top: 0; }
.pk-list li + li { margin-top: 0; }
.pk-list strong { display: block; color: var(--text); }
.pk-list span { display: inline-block; margin-right: 10px; font-size: 14px; color: var(--text-3); }
.btn-small { min-height: 34px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
@media (max-width: 520px) { .pk-list li { flex-direction: column; align-items: flex-start; } }

/* v12: activation code card (welcome, account) */
.pk-activate .pk-actions { margin: 18px 0 10px; }
.prose code.pk-code { display: inline-block; max-width: 100%; word-break: break-all; user-select: all; }
