/* Sorot. A deck you scroll, one idea per screen. Light blue-grey sky, warm lamp
   light, and motion with a bit of bounce: things anticipate, squash, overshoot, settle. */
:root {
  --bg: #e6edf2;
  --bg-2: #d5e0e8;
  --tile: #ffffff;
  --text: #17222d;
  --gray: #5b6b7a;
  --line: color-mix(in srgb, var(--text) 10%, transparent);
  --lamp: #ffbd5c;
  --lamp-ink: #3a2608;
  --cue: #b37a22;
  --violet: #b870ff;
  --amber: #e0901f;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --scale: 1;
  --nav: 52px;
  --nav-bg: rgba(230, 237, 242, 0.72);
  --chip: rgba(255, 255, 255, 0.75);
  --ring: #b7c4cf;
  --shadow: rgb(40, 70, 100);
  --glow-1: rgba(255, 205, 120, 0.55);
  --glow-2: rgba(255, 220, 160, 0.16);
  --logo-nose: #dcb985;
  color-scheme: light;
}
/* Dark: the same lamp, at night. */
:root[data-theme="dark"] {
  --bg: #0f141a; --bg-2: #090d12; --tile: #19212b; --text: #edf1f5; --gray: #8f9cab; --line: rgba(255, 255, 255, 0.1);
  --cue: #e3bd84; --amber: #f2a93b; --nav-bg: rgba(15, 20, 26, 0.72); --chip: rgba(25, 33, 43, 0.85); --ring: #3a4654;
  --shadow: rgb(0, 0, 0); --glow-1: rgba(255, 189, 92, 0.22); --glow-2: rgba(255, 189, 92, 0.06); --logo-nose: #dcb985;
  color-scheme: dark;
}
/* Colourful: the logo lab's Sage. Forest ink on pale sage, a coral nose. */
:root[data-theme="colorful"] {
  --bg: #dbe7e2; --bg-2: #c8dad2; --tile: #f4f9f6; --text: #1f3a30; --gray: #4c6a5e; --line: rgba(31, 58, 48, 0.12);
  --lamp: #ef8a6b; --lamp-ink: #3b160b; --cue: #c45f3d; --amber: #d9704b; --nav-bg: rgba(219, 231, 226, 0.75); --chip: rgba(244, 249, 246, 0.85);
  --ring: #a8c3b7; --shadow: rgb(31, 58, 48); --glow-1: rgba(239, 138, 107, 0.26); --glow-2: rgba(239, 138, 107, 0.07); --logo-nose: #ef8a6b;
  color-scheme: light;
}
:root[data-theme="colorful"] .btn { box-shadow: 0 8px 24px -10px rgba(217, 112, 75, 0.6); }

/* The theme switch in the nav. */
.themes { display: inline-flex; padding: 2px; border-radius: 980px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.themes button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--gray); font: 600 12px var(--sans); padding: 4px 10px; border-radius: 980px; cursor: pointer; transition: background 0.25s, color 0.25s, transform 0.35s var(--bounce); }
.themes button:hover { color: var(--text); }
.themes button:active { transform: scale(0.92); }
.themes button[aria-pressed="true"] { background: var(--tile); color: var(--text); box-shadow: 0 2px 8px -4px color-mix(in srgb, var(--shadow) 50%, transparent); }
.themes svg { width: 13px; height: 13px; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; transition: background 0.4s; background: var(--bg); color: var(--text); font: 17px/1.47 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* ---------- The logo: S o r o t. The o's are reading glasses, the r drops
   between them as a cream nose, the lenses resting on it. Set in Fraunces. ---------- */
.logo {
  display: inline-flex; align-items: baseline; line-height: 1; color: var(--text); cursor: default;
  font-family: "Fraunces", Georgia, serif; font-weight: 750; font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -0.03em;
  --lens: 0.62em; --rim: 0.085em; --gap: 0.3em; --lift: 0.24em; --nose: var(--logo-nose);
}
.logo .ch { display: inline-block; transform-origin: 50% 100%; }
.logo .specs { position: relative; display: inline-block; width: calc(var(--lens) * 2 + var(--gap)); height: calc(var(--lens) + var(--lift)); margin: 0 0.03em; transform-origin: 50% 100%; }
.logo .lens { position: absolute; bottom: var(--lift); z-index: 1; width: var(--lens); height: var(--lens); border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 var(--rim) currentColor; overflow: hidden; }
.logo .lens.a { left: 0; }
.logo .lens.b { right: 0; }
.logo .pupil { position: absolute; left: 50%; top: 50%; width: 44%; height: 44%; margin: -22% 0 0 -22%; border-radius: 50%; background: #17222d; transition: transform 0.2s ease-out; }
.logo .pupil::after { content: ""; position: absolute; width: 36%; height: 36%; left: 50%; top: 12%; border-radius: 50%; background: #fff; }
.logo .lid { position: absolute; inset: 0; background: currentColor; transform: translateY(-101%); }
.logo.blink .lid { animation: blink 0.24s ease-in-out; }
@keyframes blink { 0%, 100% { transform: translateY(-101%); } 45%, 55% { transform: translateY(0); } }
.logo .arch { position: absolute; left: calc(var(--lens) - 0.06em); right: calc(var(--lens) - 0.06em); bottom: calc(var(--lens) * 0.8 + var(--lift)); height: 0.16em; border: var(--rim) solid currentColor; border-bottom: 0; border-radius: 0.3em 0.3em 0 0; }
.logo .nose { position: absolute; left: 50%; bottom: -0.02em; z-index: 0; font-size: 0.78em; color: var(--nose); translate: -50% 0; transform-origin: 50% 0; }
.logo.hop .nose { animation: sniff 0.6s ease-in-out 0.15s; }
@keyframes sniff { 0%, 100% { transform: none; } 25% { transform: scale(1.08, 0.92); } 50% { transform: rotate(-6deg); } 75% { transform: rotate(5deg); } }
.logo.hop .ch, .logo.hop .specs { animation: hop 0.7s var(--bounce) both; }
.logo.hop > :nth-child(2) { animation-delay: 0.05s; }
.logo.hop > :nth-child(3) { animation-delay: 0.1s; }
@keyframes hop {
  0% { transform: none; }
  18% { transform: scale(1.12, 0.82); }                     /* anticipation: squash */
  45% { transform: translateY(-0.2em) scale(0.9, 1.14); }   /* up, stretched */
  70% { transform: scale(1.07, 0.92); }                     /* land: squash */
  100% { transform: none; }
}
.logo.enter .ch, .logo.enter .specs { animation: drop 0.95s var(--bounce) both; }
.logo.enter > :nth-child(1) { animation-delay: 0.05s; }
.logo.enter > :nth-child(2) { animation-delay: 0.16s; }
.logo.enter > :nth-child(3) { animation-delay: 0.3s; }
@keyframes drop {
  0% { opacity: 0; transform: translateY(-0.9em) scale(0.85, 1.2); }
  55% { opacity: 1; transform: translateY(0) scale(1.18, 0.78); }
  75% { transform: translateY(-0.06em) scale(0.95, 1.06); }
  100% { opacity: 1; transform: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--nav); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(22px, calc((100vw - 1024px) / 2)); background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line);
}
.brand { font-size: 24px; display: flex; }
.nav nav { display: flex; gap: clamp(14px, 2.6vw, 34px); font-size: 12.5px; color: color-mix(in srgb, var(--text) 72%, transparent); }
.nav nav a { transition: color 0.2s; }
.nav nav a:hover, .nav nav a.on { color: var(--text); }
.nav nav a.on { font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.count { font: 12px var(--sans); color: var(--gray); font-variant-numeric: tabular-nums; }
.get { font-size: 12.5px; font-weight: 600; padding: 5px 13px; border-radius: 980px; background: var(--text); color: var(--bg); display: inline-block; transition: transform 0.3s var(--bounce); }
.get:hover { transform: scale(1.07); }

/* ---------- Deck ---------- */
.deck { height: 100svh; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; overscroll-behavior-y: contain; }
.slide {
  position: relative; min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; place-items: center; padding: calc(var(--nav) + 28px) 22px 64px; overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.slide::before { /* the lamp: a soft warm pool of light from above */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
  background: radial-gradient(46% 52% at 50% -6%, var(--glow-1), var(--glow-2) 55%, transparent 75%);
}
.slide.active::before { opacity: 1; }
/* Listen is the night scene. */
.slide.vice { background: radial-gradient(70% 60% at 50% 112%, #3b1d6e 0%, #191230 55%, #0f0c1c 100%); color: #f3effa; --gray: #a99fc2; --line: rgba(255, 255, 255, 0.12); }
.slide.vice::before { background: radial-gradient(60% 60% at 50% 108%, rgba(115, 41, 219, 0.5), rgba(255, 79, 163, 0.12) 48%, transparent 72%); }
.wrap { position: relative; width: min(100%, 1024px); }
.wrap.center { text-align: center; }

h1, h2 { font-weight: 700; letter-spacing: -0.028em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.6vw, 80px); }
h2 { font-size: clamp(34px, 5.2vw, 64px); }
h2.huge { font-size: clamp(64px, 12vw, 150px); letter-spacing: -0.04em; }
h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.2; }
.dim { color: var(--gray); }
.eyebrow { font-size: clamp(17px, 1.8vw, 21px); font-weight: 650; margin-bottom: 12px; letter-spacing: -0.005em; }
.eyebrow.green { color: var(--cue); }
.grad-green { color: var(--cue); }
.grad-vice { color: var(--violet); }
.hero-logo { font-size: clamp(56px, 8vw, 96px); margin-bottom: 14px; }
.lede { max-width: 640px; margin: 18px auto 0; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.4; color: var(--gray); font-weight: 500; text-wrap: pretty; }
.body { margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; color: var(--gray); font-weight: 500; max-width: 30em; }
.body strong, .tile p strong { color: var(--text); font-weight: 650; }
.links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; align-items: center; font-size: 17px; }
.btn { padding: 12px 24px; border-radius: 980px; background: var(--lamp); color: var(--lamp-ink); font-weight: 650; box-shadow: 0 8px 24px -10px rgba(224, 144, 31, 0.7); transition: transform 0.35s var(--bounce), box-shadow 0.3s; display: inline-block; }
.btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px -12px rgba(224, 144, 31, 0.8); }
.btn:active { transform: scale(0.94, 0.9); transition-duration: 0.08s; }
.more { color: var(--cue); font-weight: 600; }
.more:hover { text-decoration: underline; }
code { font: 0.88em var(--mono); color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); padding: 1px 6px; border-radius: 6px; }
kbd { display: inline-block; min-width: 30px; padding: 4px 9px; margin-right: 4px; text-align: center; font: 600 14px var(--sans); color: var(--text); background: var(--tile); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 9px; }

/* Things arrive with a little bounce: rise, overshoot, settle. */
.r { opacity: 0; transform: translateY(34px) scale(0.96); transition: opacity 0.5s ease, transform 0.85s var(--bounce); }
.slide.active .r { opacity: 1; transform: none; }
.slide.active .r:nth-child(2) { transition-delay: 0.07s; }
.slide.active .r:nth-child(3) { transition-delay: 0.14s; }
.slide.active .r:nth-child(4) { transition-delay: 0.21s; }
.slide.active .r:nth-child(5) { transition-delay: 0.3s; }
.slide.active .r:nth-child(6) { transition-delay: 0.38s; }
.slide.active .tiles .r:nth-child(1) { transition-delay: 0.2s; }
.slide.active .tiles .r:nth-child(2) { transition-delay: 0.32s; }
.slide.active .tiles .r:nth-child(3) { transition-delay: 0.44s; }

/* ---------- Rail and next ---------- */
.rail { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 25; display: flex; flex-direction: column; gap: 9px; }
.rail button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--text) 20%, transparent); cursor: pointer; transition: height 0.45s var(--bounce), background 0.3s; }
.rail button:hover { background: color-mix(in srgb, var(--text) 45%, transparent); }
.rail button.on { height: 24px; background: var(--amber); }
.rail button.on.vice { background: var(--violet); }
.next { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 25; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--chip); color: var(--text); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform 0.4s var(--bounce); animation: nudge 2.4s ease-in-out infinite; }
.next:hover { background: var(--tile); }
.next.end { transform: translateX(-50%) rotate(180deg); animation: none; }
@keyframes nudge { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 5px; } 90% { translate: 0 -2px; } }

/* ---------- Tiles ---------- */
.tiles { display: grid; gap: 16px; margin-top: clamp(26px, 4vw, 44px); }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tiles.left { text-align: left; }
.tile { background: var(--tile); border-radius: 28px; padding: clamp(22px, 2.6vw, 32px); box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent), 0 24px 48px -32px color-mix(in srgb, var(--shadow) 35%, transparent); transition: transform 0.45s var(--bounce); }
.tile:hover { transform: translateY(-4px); }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--gray); font-size: 16px; line-height: 1.45; font-weight: 500; }
.strip { height: 56px; margin-bottom: 18px; display: flex; align-items: center; gap: 0.32em; font-size: clamp(17px, 1.9vw, 22px); font-weight: 650; white-space: nowrap; overflow: hidden; }
.strip span { display: inline-block; transition: opacity 0.3s, color 0.3s; }
.strip span.said { opacity: 0.25; }
.strip i { font-style: normal; color: var(--cue); opacity: 0; transition: opacity 0.3s; }
.strip.waiting i { opacity: 1; animation: blinkdots 1.2s ease-in-out infinite; }
.strip span.here { color: var(--amber); animation: pop 0.45s var(--bounce); }
@keyframes blinkdots { 50% { opacity: 0.35; } }
@keyframes pop { 0% { transform: scale(0.8, 1.2); } 60% { transform: scale(1.12, 0.9); } 100% { transform: none; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.sheet { background: var(--tile); border-radius: 28px; padding: clamp(22px, 3vw, 36px); font-size: clamp(17px, 1.8vw, 21px); font-weight: 650; line-height: 1.45; display: grid; gap: 12px; box-shadow: 0 24px 48px -32px color-mix(in srgb, var(--shadow) 35%, transparent); }
.sheet .note { color: var(--cue); font-style: italic; }
.sheet p.note { display: flex; flex-direction: column; }
.sheet .note em { font: 500 11px var(--mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); margin-bottom: 2px; }

.clock { height: 132px; display: flex; flex-direction: column; justify-content: center; margin-bottom: 14px; }
.clock-num { display: inline-block; font-size: clamp(56px, 7vw, 88px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; transition: color 0.4s; }
.clock-num.warn { color: var(--amber); }
.clock-cap { margin-top: 8px; color: var(--cue); font-style: italic; font-weight: 650; }
.points { list-style: none; padding: 0; height: 132px; margin-bottom: 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px; font-size: 19px; font-weight: 650; }
.points li { display: flex; align-items: center; gap: 12px; color: var(--gray); transition: color 0.4s; }
.points li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ring); transition: transform 0.5s var(--bounce), background 0.3s, border-color 0.3s; flex-shrink: 0; }
.points li.must::after { content: "must"; font: 600 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.points li.done { color: var(--text); }
.points li.done::before { transform: scale(1.12); background: var(--lamp) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233a2608' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; border-color: var(--lamp); }
.points li.done::after { content: none; }

.keys { margin-top: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
.keys div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.keys dt { white-space: nowrap; }
.keys dd { color: var(--gray); text-align: right; font-weight: 500; }

.app-icon { width: clamp(96px, 12vw, 132px); height: auto; margin-bottom: 6px; filter: drop-shadow(0 18px 24px color-mix(in srgb, var(--shadow) 30%, transparent)); }
.slide.active .app-icon { animation: land 1s var(--bounce) both 0.1s; }
@keyframes land { 0% { transform: translateY(-60px) scale(0.9, 1.15); } 50% { transform: translateY(0) scale(1.15, 0.85); } 72% { transform: scale(0.96, 1.05); } 100% { transform: none; } }
.code { position: relative; margin: 30px auto 16px; max-width: 560px; background: var(--tile); border-radius: 18px; text-align: left; box-shadow: 0 24px 48px -32px color-mix(in srgb, var(--shadow) 35%, transparent); }
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; }
.code code { background: none; padding: 0; font-size: 15px; }
.copy { position: absolute; top: 12px; right: 12px; font: 600 12px var(--sans); color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); border: 0; border-radius: 980px; padding: 6px 13px; cursor: pointer; }
.copy:hover { background: color-mix(in srgb, var(--text) 13%, transparent); }
.fine { max-width: 560px; margin: 0 auto; font-size: 14px; color: var(--gray); }
.fine.foot { margin-top: 44px; font-size: 12px; }

/* ---------- The notch demo ---------- */
.demo { margin: clamp(20px, 3.4vh, 40px) auto 0; width: min(100%, 820px); }
.screen {
  position: relative; height: calc(232px * var(--scale)); overflow: hidden; border: 8px solid #10161c; border-bottom: 0; border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #33475a, #1a2532); box-shadow: 0 30px 60px -30px rgba(23, 34, 45, 0.6);
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent);
}
.vice .screen { background: linear-gradient(180deg, #2a2038, #120f17); }
.menubar { height: calc(34px * var(--scale)); display: flex; justify-content: space-between; align-items: center; padding: 0 calc(16px * var(--scale)); font-size: calc(12.5px * var(--scale)); color: rgba(255, 255, 255, 0.9); background: rgba(0, 0, 0, 0.22); white-space: nowrap; overflow: hidden; }
.menubar i { font-style: normal; margin-left: calc(16px * var(--scale)); opacity: 0.85; }
.notch-wrap { position: absolute; top: 0; left: 50%; width: 560px; height: 196px; margin-left: -280px; transform: scale(var(--scale)); transform-origin: top center; background: #000; clip-path: path("M187 0 H373 V28 Q373 34 367 34 H193 Q187 34 187 28 Z"); --haze: rgba(255, 189, 92, 0.42); --glow: 0.7; color: #f7f2e8; }
.vice .notch-wrap { --haze: rgba(115, 41, 219, 0.9); }
.notch-wrap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 95% at 50% -5%, var(--haze), transparent 75%); opacity: var(--glow); transition: opacity 0.4s; }
.vice .notch-wrap::before { background: radial-gradient(60% 75% at 50% 112%, var(--haze), transparent 70%); }
.camera { position: absolute; top: calc(13px * var(--scale)); left: 50%; width: calc(7px * var(--scale)); height: calc(7px * var(--scale)); margin-left: calc(-3.5px * var(--scale)); border-radius: 50%; background: #141a22; box-shadow: inset 0 0 0 1px #232c38; }
.card { position: absolute; inset: 0 10px; padding: 0 18px; display: flex; flex-direction: column; text-align: left; opacity: 0; --accent: var(--lamp); }
.card[data-mode="listen"] { --accent: var(--violet); }
.c-top { height: 34px; display: flex; align-items: center; font-size: 11.5px; font-weight: 600; }
.c-tabs, .c-status { flex: 1; display: flex; align-items: center; gap: 2px; }
.c-status { justify-content: flex-end; gap: 7px; white-space: nowrap; }
.c-gap { flex: 0 0 198px; }
.c-tab { padding: 3px 9px; border-radius: 999px; color: #8e8a83; }
.card[data-mode="prompter"] .c-tab[data-tab="prompter"], .card[data-mode="listen"] .c-tab[data-tab="listen"] { color: #f7f2e8; background: rgba(255, 255, 255, 0.13); }
.c-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); transition: background 0.2s, box-shadow 0.25s; }
.c-dot.live { background: var(--accent); }
.c-dot.voice { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.c-stage { height: 99px; margin-top: 4px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 10px, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 10px, #000 72%, transparent); }
.c-flow { font: 600 22px/31px var(--sans); text-align: center; will-change: transform; }
.card[data-mode="listen"] .c-flow { text-align: left; }
.c-flow span { opacity: 0.96; transition: opacity 0.28s ease; }
.c-flow span.said { opacity: 0.3; }
.c-flow span.cue { color: #e0ba80; font-style: italic; opacity: 0.9; }
.card[data-mode="listen"] .c-flow span.cue { color: var(--accent); }
.c-flow span.cue.said { opacity: 0.25; }
.c-flow span.guess { opacity: 0.5; }
.c-flow span.new { opacity: 0; }
.c-flow br.para { display: block; content: ""; margin-top: 10px; }
.c-foot { height: 30px; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.c-play { width: 34px; height: 24px; border-radius: 999px; background: var(--accent); position: relative; flex-shrink: 0; }
.c-play::after { content: ""; position: absolute; left: 14px; top: 7px; border: 5px solid transparent; border-left: 8px solid rgba(40, 25, 5, 0.85); border-right: 0; }
.c-play.on::after { left: 12px; top: 7.5px; width: 3px; height: 9px; border: 0; border-left: 3.5px solid rgba(40, 25, 5, 0.85); border-right: 3.5px solid rgba(40, 25, 5, 0.85); }
.c-chip { min-width: 26px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font: 700 10px var(--sans); color: rgba(247, 242, 232, 0.75); }
.c-bar { flex: 1; height: 3px; margin: 0 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.c-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; }
.c-time { font: 600 11px var(--sans); color: rgba(247, 242, 232, 0.62); font-variant-numeric: tabular-nums; }
.c-time.warn { color: #f5b84d; }
.c-spacer { flex: 1; }
.voice { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wave { height: 38px; display: flex; align-items: center; gap: 4px; }
.wave i { width: 4px; height: 4px; border-radius: 4px; background: var(--amber); }
.voice-label { font: 500 12px var(--mono); letter-spacing: 0.06em; color: var(--gray); min-height: 1.5em; }

/* ---------- Small and short screens: let slides be as tall as they need ---------- */
@media (max-width: 860px), (max-height: 720px) {
  .deck { scroll-snap-type: y proximity; }
  .slide { scroll-snap-stop: normal; }
}
@media (max-width: 860px) {
  .nav nav { display: none; }
  .tiles.three, .tiles.two, .split, .keys { grid-template-columns: 1fr; }
  .rail { right: 8px; }
  .slide { padding-right: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .deck { scroll-behavior: auto; }
  .r { opacity: 1; transform: none; transition: none; }
  .slide::before { transition: none; }
  .strip.waiting i, .next, .logo .ch, .logo .specs, .app-icon, .strip span.here { animation: none !important; }
  .logo .pupil { transition: none; }
}

.steps { list-style: none; padding: 0; margin: 30px auto 0; max-width: 860px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.steps li { position: relative; background: var(--tile); border-radius: 22px; padding: 20px 22px 22px; box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent), 0 22px 44px -32px color-mix(in srgb, var(--shadow) 40%, transparent); }
.steps .step-n { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; background: var(--lamp); color: var(--lamp-ink); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { font-size: 14.5px; line-height: 1.45; color: var(--gray); font-weight: 500; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.meta a { color: var(--gray); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gray) 45%, transparent); text-underline-offset: 2px; }
.meta a:hover { color: var(--text); }
.meta { margin-top: 12px; font-size: 13px; color: var(--gray); font-variant-numeric: tabular-nums; }
.appstore { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; }
.appstore img { height: 40px; width: auto; opacity: 0.45; filter: grayscale(1); }
:root[data-theme="dark"] .appstore img { filter: grayscale(1) invert(1); opacity: 0.55; }
.appstore .soon { padding: 4px 11px; border-radius: 980px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }

/* Footer: a quiet line and the theme switch, like the foot of an Apple page. */
.foot { margin: 48px auto 0; max-width: 760px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot .fine { margin: 0; font-size: 12px; }
@media (max-width: 560px) { .foot { justify-content: center; } }

/* ---------- Music: a coral stage light, karaoke in the notch ---------- */
.slide.music::before { background: radial-gradient(42% 50% at 30% -6%, rgba(255, 77, 157, 0.38), transparent 70%), radial-gradient(42% 50% at 72% -6%, rgba(77, 107, 255, 0.32), transparent 70%); }
.grad-music { color: #d6246f; }
:root[data-theme="dark"] .grad-music { color: #ff4d9d; }
.slide.music .tiles { margin-top: 14px; }
.slide.music .tile { padding: 16px 20px; border-radius: 22px; }
.slide.music .tile h3 { font-size: 17px; margin-bottom: 4px; }
.slide.music .tile p { font-size: 14.5px; }
.slide.music .lede { margin-top: 12px; }
.slide.music .demo { margin-top: 18px; }
.slide.music .voice { margin-top: -6px; }
.card[data-mode="music"] { --accent: #ff4d9d; }
.music .notch-wrap { --haze: rgba(255, 77, 157, 0.75); }
.music .notch-wrap::before { background: radial-gradient(55% 80% at 35% 112%, var(--haze), transparent 70%), radial-gradient(55% 80% at 70% 115%, rgba(77, 107, 255, 0.7), transparent 70%); }
.music .notch-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; pointer-events: none; background: var(--mwave, none); opacity: 0.9; }
.card[data-mode="music"] .c-tab[data-tab="music"] { color: #f7f2e8; background: rgba(255, 255, 255, 0.13); }
.card[data-mode="music"] .c-flow { text-align: center; }
.k-line { display: block; height: 31px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.5; transition: opacity 0.4s ease, transform 0.5s var(--bounce); }
.k-line.past { opacity: 0.25; }
.k-line.now { opacity: 1; transform: scale(1.04); background: linear-gradient(90deg, var(--accent) var(--p, 0%), #f7f2e8 var(--p, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.c-song { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; padding-left: 4px; }
.c-song b { font: 700 10.5px var(--sans); color: #f7f2e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-song i { font: 500 9.5px var(--sans); font-style: normal; color: #8e8a83; }
