/* Saybox website. One deliberate look: a dark stage, warm paper text, and the Signal orange where speech becomes
   text (Branding/README.md). Type is Apple's own (SF Pro, New York, SF Mono) with plain fallbacks; nothing is loaded
   from another site. */

:root {
  color-scheme: dark;
  --bg: #0A0A0C;
  --bg-2: #111115;
  --surface: #16161B;
  --surface-2: #1D1D23;
  --line: rgba(242, 241, 238, 0.09);
  --line-2: rgba(242, 241, 238, 0.18);
  --text: #F2F1EE;
  --text-2: #ABA9A4;
  --text-3: #74736F;
  --signal: #FF6A3D;
  --signal-deep: #E9502A;
  --signal-glow: rgba(255, 106, 61, 0.22);
  --amber: #FFC247;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(18px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::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: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain over everything, very faint */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; }
a { color: var(--text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; text-decoration-color: var(--signal); }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
code { font-family: var(--mono); font-size: 0.88em; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Draft marker and placeholders: removed before publishing (Website/README.md) */
.draft-pill {
  position: fixed; right: 14px; top: 64px; z-index: 60;
  font: 600 0.75rem/1 var(--mono); letter-spacing: 0.04em; color: var(--amber);
  background: rgba(10, 10, 12, 0.85); border: 1px dashed var(--amber); border-radius: 999px; padding: 8px 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tbd { font-family: var(--mono); font-size: 0.84em; color: var(--amber); border: 1px dashed currentColor; border-radius: 4px; padding: 0 0.3em; white-space: nowrap; }
/* long placeholders (whole pending sentences, e.g. on the BAA page) wrap instead of widening the page */
.tbd.long { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 12, 0.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span { font: 700 1.125rem/1 var(--sans); letter-spacing: -0.02em; }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font-size: 0.875rem; }
.nav a { color: var(--text-2); text-decoration: none; padding-block: 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1.5px 0 var(--signal); }
@media (max-width: 560px) { .nav .wide { display: none; } }

/* ───────────── The film (home hero) ───────────── */
.film {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(860px, calc(100svh - 52px));
  display: grid; place-items: center; grid-template-columns: minmax(0, 1fr);
  padding: clamp(40px, 7vw, 88px) var(--gutter) 96px;
  background:
    radial-gradient(60% 55% at 50% 58%, var(--signal-glow), transparent 70%),
    radial-gradient(120% 80% at 50% 120%, rgba(255, 106, 61, 0.10), transparent 60%),
    var(--bg);
}
.scene {
  grid-area: 1 / 1; width: 100%; max-width: 1100px; min-width: 0;
  opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease);
  pointer-events: none; text-align: center;
}
.scene.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }

.mega {
  font: 800 clamp(3rem, 1.2rem + 8.4vw, 8.75rem)/0.92 var(--sans);
  letter-spacing: -0.045em;
}
.mega .serif { font-weight: 400; letter-spacing: -0.03em; }
.mega .dim { color: var(--text-3); }
.caret {
  display: inline-block; width: 0.07em; height: 0.82em; margin-left: 0.04em; vertical-align: -0.04em;
  background: linear-gradient(var(--signal), var(--signal-deep)); border-radius: 0.03em;
  box-shadow: 0 0 24px var(--signal-glow);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.kicker { margin-top: clamp(18px, 3vw, 28px); font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); color: var(--text-2); }

/* waveform behind the title */
.bars { display: flex; justify-content: center; align-items: center; gap: clamp(5px, 0.9vw, 10px); height: clamp(56px, 9vw, 110px); margin-bottom: clamp(18px, 3vw, 34px); }
.bars i { display: block; width: clamp(5px, 0.8vw, 9px); border-radius: 99px; background: var(--text); opacity: 0.85; height: 30%; animation: talk 1.2s ease-in-out infinite; }
.bars i:nth-child(odd) { animation-duration: 0.9s; }
.bars i:nth-child(3n) { animation-duration: 1.4s; opacity: 0.55; }
.bars i:nth-child(4n) { animation-delay: -0.4s; }
.bars i:nth-child(5n) { animation-delay: -0.7s; opacity: 0.7; }
.bars i.c { background: linear-gradient(var(--signal), var(--signal-deep)); opacity: 1; animation: none; height: 100%; width: clamp(4px, 0.55vw, 6px); margin-left: clamp(6px, 1.2vw, 14px); box-shadow: 0 0 24px var(--signal-glow); }
@keyframes talk { 0%, 100% { height: 18%; } 50% { height: 92%; } }

/* the note window inside the film */
.stage { position: relative; }
.screen {
  margin-inline: auto; width: min(760px, 100%); text-align: left;
  background: linear-gradient(180deg, #1A1A20, #141418); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 80px var(--signal-glow);
  overflow: hidden; transition: filter 0.6s var(--ease);
}
.screen-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.screen-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); flex: none; }
.screen-bar span { min-width: 0; margin-left: 10px; font-size: 0.8125rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-bar b { margin-left: auto; font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.06em; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 4px 6px; white-space: nowrap; }
.heard {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 18px;
  font: 0.875rem/1.4 var(--mono); color: var(--text-3); border-bottom: 1px dashed var(--line);
}
.heard .live { flex: none; display: inline-flex; gap: 3px; align-items: center; height: 14px; }
.heard .live i { width: 3px; border-radius: 2px; background: var(--signal); height: 50%; animation: talk 0.9s ease-in-out infinite; }
.heard .live i:nth-child(2) { animation-delay: -0.3s; }
.heard .live i:nth-child(3) { animation-delay: -0.6s; }
.heard .words { overflow: hidden; white-space: nowrap; min-width: 0; flex: 1; }
.heard .words span { white-space: nowrap; }
.heard .words span::before { content: "“"; }
.heard .words span::after { content: "”"; }
.heard .words span:empty::before, .heard .words span:empty::after { content: ""; }
.typed { padding: 22px 22px 30px; min-height: 200px; font-size: clamp(1rem, 0.9rem + 0.6vw, 1.3125rem); line-height: 1.65; white-space: pre-wrap; }
.typed .gone { background: rgba(255, 106, 61, 0.22); text-decoration: line-through; text-decoration-color: var(--signal); border-radius: 3px; }
.typed .ibeam { display: inline-block; width: 2px; height: 1.2em; vertical-align: -0.22em; margin-left: 1px; background: var(--signal); animation: blink 1.05s steps(1) infinite; }
.cmd {
  display: inline-block; margin-left: 10px; font: 600 0.8125rem/1 var(--mono); color: #16181D; vertical-align: 0.1em;
  background: linear-gradient(var(--signal), var(--signal-deep)); border-radius: 999px; padding: 6px 10px; white-space: nowrap;
  transform: scale(0.6); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.cmd.show { transform: none; opacity: 1; }
.scene .cap { margin-top: 24px; font: 600 0.8125rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.scene .cap b { color: var(--signal); font-weight: 600; margin-right: 10px; }

/* lock scene */
.lock-over { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.lock-badge { opacity: 0; transform: scale(0.8); transition: opacity 0.5s var(--ease) 0.2s, transform 0.5s var(--ease) 0.2s; text-align: center; padding: 0 16px; }
.locked .screen { filter: brightness(0.3) blur(2px); }
.locked .lock-badge { opacity: 1; transform: none; }
.locked .heard .live i { animation: none; height: 2px; }
.lock-badge svg { width: 60px; height: 60px; color: var(--text); }
.lock-badge p { margin-top: 14px; font: 750 clamp(1.5rem, 1rem + 2.4vw, 2.75rem)/1.05 var(--sans); letter-spacing: -0.03em; }
.lock-badge p span { color: var(--signal); }

/* "No cloud" scene */
.stack .ln { display: block; opacity: 0.1; transition: opacity 0.6s var(--ease); }
.stack .ln.lit { opacity: 1; }
.stack .ln s { text-decoration-thickness: 0.07em; text-decoration-color: var(--signal); }

/* end card */
.endmark { width: clamp(84px, 12vw, 132px); height: clamp(84px, 12vw, 132px); margin: 0 auto clamp(18px, 3vw, 28px); color: var(--text); filter: drop-shadow(0 0 40px var(--signal-glow)); }

/* film controls */
.film-ui { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 16px; z-index: 2; }
.film-ui button {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.film-ui button:hover { border-color: var(--signal); }
.film-ui button svg { width: 14px; height: 14px; }
.segs { flex: 1; display: flex; gap: 6px; }
.segs span { flex: 1; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.segs span i { display: block; height: 100%; width: 0; background: var(--text); }

/* ───────────── Home sections ───────────── */
.band { padding-block: clamp(80px, 12vw, 160px); border-top: 1px solid var(--line); position: relative; }
.label { font: 600 0.75rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); margin-bottom: clamp(20px, 3vw, 30px); display: flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.statement { font: 750 clamp(2.25rem, 1rem + 5.4vw, 5.75rem)/0.98 var(--sans); letter-spacing: -0.04em; max-width: 15ch; }
.statement .serif { font-weight: 400; color: var(--signal); }
.sub { margin-top: clamp(22px, 3vw, 32px); max-width: 52ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--text-2); }

/* numbers */
.figures { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: clamp(20px, 3vw, 40px); border-top: 1px solid var(--line); }
.figure { padding-block: clamp(26px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.figure .n { font: 800 clamp(3.25rem, 2rem + 4vw, 5.5rem)/0.9 var(--sans); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.figure .n small { font-size: 0.42em; letter-spacing: -0.02em; font-weight: 700; margin-left: 0.12em; color: var(--text-2); }
.figure p { margin-top: 14px; color: var(--text-2); max-width: 30ch; }
.figure p strong { color: var(--text); font-weight: 600; }

/* spoken commands */
.say { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.say-row { display: grid; grid-template-columns: 1fr; gap: 6px 40px; align-items: baseline; padding-block: clamp(18px, 2.4vw, 26px); border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .say-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.say-row .q { font: italic 400 clamp(2rem, 1.2rem + 3.2vw, 4rem)/1.05 var(--serif); letter-spacing: -0.02em; color: var(--text); }
.say-row .q::before { content: "“"; color: var(--signal); }
.say-row .q::after { content: "”"; color: var(--signal); }
.say-row .or { font: italic 400 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1 var(--serif); color: var(--text-3); margin-left: 0.4em; white-space: nowrap; }
.say-row p { color: var(--text-2); font-size: 1.0625rem; }

/* split feature */
.split { display: grid; gap: clamp(36px, 6vw, 80px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.split .statement { font-size: clamp(2.25rem, 1rem + 3.8vw, 4.5rem); }
.statement .serif { margin-left: 0.1em; }
.points { list-style: none; margin: clamp(26px, 3vw, 36px) 0 0; padding: 0; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); }
.points li::before { content: ""; width: 8px; height: 8px; margin-top: 0.62em; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal-glow); justify-self: center; }
.points strong { color: var(--text); font-weight: 600; }

/* iPhone demo: the record button before and after, and the Text Box (mic-demo.js). Mirrors the iPhone app's own
   look in Dark Mode (MicrophoneHomeView, MicrophoneControl): ink button when ready, Signal button with a halo when
   listening, the Box capsule tinted while the Text Box is open and counting down after it closes. */
.mic-intro { align-items: end; }
.mdemo { margin: clamp(32px, 5vw, 56px) 0 0; min-width: 0; padding: clamp(22px, 4vw, 40px) clamp(14px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(70% 70% at 50% 55%, rgba(255, 106, 61, 0.10), transparent 70%), var(--bg-2); }
.mdemo-stage { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 32px); }
.mdemo-phone { --ok: #30D158; --sig: #FF7A4F; flex: none; width: clamp(176px, 19vw, 214px); aspect-ratio: 9 / 19.5; border-radius: 34px; border: 3px solid #2B2B31; background: #050506; padding: 34px 12px 16px; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; }
.mp-island { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 64px; height: 19px; border-radius: 12px; background: #000; box-shadow: 0 0 0 1px #17171b; }
.mp-top { display: flex; align-items: center; gap: 5px; font: 600 0.75rem/1 var(--sans); color: var(--text); }
.mp-top svg { width: 14px; height: 14px; }
.mp-pill { margin-top: 12px; display: flex; align-items: center; gap: 3px; max-width: 100%; padding: 5px 8px; border-radius: 999px; background: #1C1C1E; font: 500 0.5625rem/1 var(--sans); color: #8E8E93; white-space: nowrap; }
.mp-pill-d { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.mp-ic svg { width: 11px; height: 11px; display: block; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mp-ic-ok svg circle { fill: var(--ok); stroke: none; } .mp-ic-ok svg path { stroke: #050506; }
.mp-ic-live svg { stroke: var(--sig); }
.mp-ic-live { display: none; }
.mp-code { margin-top: 12px; width: 100%; display: none; flex-direction: column; align-items: center; gap: 4px; padding: 9px 6px; border-radius: 12px; background: #1C1C1E; box-shadow: inset 0 0 0 1.5px var(--sig); }
.mp-code span { font: 600 0.5625rem/1.2 var(--sans); color: var(--text); text-align: center; }
.mp-code b { font: 650 1.25rem/1 var(--sans); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--text); }
.mp-mic { margin-top: auto; position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.mp-halo { position: absolute; inset: 7px; border-radius: 50%; background: rgba(255, 122, 79, 0.16); opacity: 0; scale: 0.9; transition: opacity 0.3s var(--ease); }
.mp-btn { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: #F2F1EE; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5); transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), scale 0.2s var(--ease); }
.mp-btn svg { width: 30px; height: 30px; grid-area: 1 / 1; transition: opacity 0.2s, scale 0.25s var(--ease); }
.mp-g-mic { fill: none; stroke: #16181D; stroke-width: 2.2; stroke-linecap: round; }
.mp-g-mic rect { fill: #16181D; stroke: none; }
.mp-g-stop { fill: #fff; opacity: 0; scale: 0.6; }
.mp-title { margin-top: 10px; font: 600 0.9375rem/1.2 var(--sans); color: var(--text); text-align: center; }
.mp-detail { min-height: 1.2em; margin-top: 4px; font: 400 0.625rem/1.2 var(--sans); color: #8E8E93; text-align: center; opacity: 0; transition: opacity 0.3s; }
.mp-wave { height: 20px; margin-top: 8px; display: flex; align-items: center; gap: 3px; opacity: 0; transition: opacity 0.3s; }
.mp-wave i { width: 3px; height: 4px; border-radius: 2px; background: var(--sig); }
.mp-box { margin-top: auto; position: relative; overflow: hidden; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #1C1C1E; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12); font: 600 0.6875rem/1 var(--sans); color: var(--text); white-space: nowrap; transition: background-color 0.3s, box-shadow 0.3s; }
.mp-box > * { position: relative; }
.mp-box-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255, 122, 79, 0.3); transition: width 0.9s linear; }
.mp-box-ic { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mp-box-open { display: none; }
.mp-box-s { font-variant-numeric: tabular-nums; color: var(--sig); }
/* states */
.mdemo.is-pair .mp-code { display: flex; }
.mdemo.is-live .mp-ic-ok { display: none; }
.mdemo.is-live .mp-ic-live { display: block; }
.mdemo.is-live .mp-btn { background: var(--sig); box-shadow: 0 8px 24px rgba(255, 122, 79, 0.35); }
.mdemo.is-live .mp-g-mic { opacity: 0; scale: 0.6; }
.mdemo.is-live .mp-g-stop { opacity: 1; scale: 1; }
.mdemo.is-live .mp-halo { opacity: 1; animation: mp-halo 1.1s ease-in-out infinite alternate; }
.mdemo.is-live .mp-detail, .mdemo.is-live .mp-wave { opacity: 1; }
.mdemo.is-live .mp-wave i { animation: mp-wave 0.9s ease-in-out infinite alternate; }
.mdemo.is-box .mp-box { background: rgba(255, 122, 79, 0.15); box-shadow: inset 0 0 0 1.5px var(--sig); }
.mdemo.is-box .mp-box-idle { display: none; }
.mdemo.is-box .mp-box-open { display: block; }
.mdemo.is-pressing .mp-btn { scale: 0.9; }
.mp-box, .mm-cbtns em { transition: background-color 0.3s, box-shadow 0.3s, scale 0.2s var(--ease); }
.mdemo.is-pressing-box .mp-box { scale: 0.93; }
.mdemo.is-match .mm-cbtns em:first-child { scale: 0.9; background: var(--signal); }
.mp-wave i:nth-child(2n) { animation-delay: -0.3s !important; } .mp-wave i:nth-child(3n) { animation-delay: -0.55s !important; } .mp-wave i:nth-child(5n) { animation-delay: -0.15s !important; }
@keyframes mp-halo { from { scale: 1.02; } to { scale: 1.28; } }
@keyframes mp-wave { from { height: 3px; } to { height: 18px; } }
/* the Mac */
.mdemo-mac { flex: 1 1 0; min-width: 0; max-width: 520px; }
.mm-lid { position: relative; aspect-ratio: 16 / 10.6; border-radius: 12px 12px 4px 4px; border: 2px solid var(--line-2); background: #0E0E11; overflow: hidden; }
.mm-base { height: 9px; margin-inline: -7%; border-radius: 0 0 10px 10px; background: linear-gradient(#2A2A31, #1A1A1F); }
.mm-win { position: absolute; border-radius: 7px; background: #1C1C21; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.45); overflow: hidden; transition: opacity 0.35s var(--ease), translate 0.35s var(--ease); }
.mm-note { inset: 8% 10% 12% 6%; }
.mm-box { right: 5%; bottom: 7%; width: 56%; height: 46%; opacity: 0; translate: 0 8px; }
.mdemo.is-box .mm-box { opacity: 1; translate: 0 0; }
.mm-bar { height: 17px; display: flex; align-items: center; gap: 4px; padding: 0 7px; background: #26262C; font: 500 0.5625rem/1 var(--sans); color: #9A9A9F; }
.mm-bar i { width: 6px; height: 6px; border-radius: 50%; background: #4A4A52; }
.mm-bar span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-text { margin: 0; padding: 8px 10px; font: 400 clamp(0.625rem, 0.5rem + 0.35vw, 0.75rem)/1.5 var(--sans); color: #E8E7E3; }
.mm-pre { color: #9A9A9F; }
.mm-caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--signal); animation: blink 1.05s steps(1) infinite; }
.mm-box .mm-caret, .mdemo.is-box .mm-note .mm-caret, .mdemo.is-after .mm-note .mm-caret { opacity: 0; animation: none; }
.mdemo.is-box .mm-box .mm-caret { opacity: 1; animation: blink 1.05s steps(1) infinite; }
.mm-confirm { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: none; flex-direction: column; align-items: center; gap: 5px; padding: 10px 14px; border-radius: 9px; background: #1C1C21; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 30px rgba(0, 0, 0, 0.55); font: 600 0.5625rem/1 var(--sans); color: #9A9A9F; }
.mm-confirm b { font: 650 1.0625rem/1 var(--sans); letter-spacing: 0.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.mm-cbtns { display: flex; gap: 5px; }
.mm-cbtns em { font-style: normal; padding: 3px 6px; border-radius: 4px; background: #2C2C33; color: var(--text); }
.mm-cbtns em:first-child { background: var(--signal-deep); }
.mdemo.is-pair .mm-confirm { display: flex; }
.mdemo.is-pair .mm-note { opacity: 0.35; }
/* controls */
.mdemo-ctl { margin-top: clamp(18px, 2.5vw, 26px); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.mdemo-play { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.mdemo-play svg { width: 13px; height: 13px; fill: currentColor; }
.mdemo-play .ic-play { display: none; }
.mdemo.is-paused .mdemo-stage * { animation-play-state: paused !important; }
.mdemo.is-paused .mdemo-play .ic-play { display: block; } .mdemo.is-paused .mdemo-play .ic-pause { display: none; }
.mdemo-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.mdemo-steps button { font: 600 0.75rem/1 var(--sans); color: var(--text-2); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; cursor: pointer; }
.mdemo-steps button[aria-current="step"] { color: var(--text); border-color: var(--signal); background: rgba(255, 106, 61, 0.12); }
.mdemo-steps button:focus-visible, .mdemo-play:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.mdemo-cap { margin: 12px auto 0; max-width: 46ch; min-height: 3em; text-align: center; font-size: 0.9375rem; color: var(--text-2); }
@media (max-width: 560px) {
  .mdemo-stage { flex-direction: column; }
  .mdemo-mac { width: 100%; max-width: 320px; flex: none; }
}

/* straight talk */
.straight { display: grid; gap: clamp(24px, 4vw, 60px); grid-template-columns: 1fr; }
@media (min-width: 920px) { .straight { grid-template-columns: 0.9fr 1.1fr; } }
.straight h2 { font: 750 clamp(2rem, 1.2rem + 3vw, 3.5rem)/1 var(--sans); letter-spacing: -0.035em; }
.straight p { color: var(--text-2); font-size: 1.125rem; max-width: 56ch; }
.straight p + p { margin-top: 14px; }
.straight strong { color: var(--text); }

/* availability */
.cta { text-align: center; }
.cta .label { justify-content: center; }
.cta .statement { margin-inline: auto; max-width: 13ch; }
.cta .sub { margin-inline: auto; }
.reqs { margin: clamp(36px, 5vw, 56px) auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.reqs span { font: 500 0.875rem/1.2 var(--mono); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 14px; }

/* ───────────── Text pages ───────────── */
.page-head { padding-block: clamp(64px, 9vw, 128px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); background: radial-gradient(50% 120% at 10% 0%, rgba(255, 106, 61, 0.10), transparent 60%); }
.page-head h1 { font: 800 clamp(2.75rem, 1.3rem + 6vw, 6.25rem)/0.95 var(--sans); letter-spacing: -0.045em; max-width: 14ch; }
.page-head h1 .serif { font-weight: 400; color: var(--signal); }
.page-head .meta { margin-top: 18px; font: 0.8125rem/1.4 var(--mono); color: var(--text-3); }
.doc { padding-block: clamp(48px, 6vw, 80px) clamp(80px, 10vw, 140px); }
.doc .wrap { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .doc .wrap { grid-template-columns: 240px minmax(0, 1fr); } }
.toc { font-size: 0.875rem; }
@media (min-width: 1000px) { .toc nav { position: sticky; top: 84px; } }
.toc h2 { font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: t; }
.toc li { counter-increment: t; display: grid; grid-template-columns: 28px 1fr; }
.toc li::before { content: counter(t, decimal-leading-zero); font: 0.75rem/1.7 var(--mono); color: var(--text-3); }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); }
.doc article { max-width: 70ch; min-width: 0; }
.doc article > h2 { font: 750 clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem)/1.1 var(--sans); letter-spacing: -0.03em; margin: 64px 0 18px; scroll-margin-top: 84px; }
.doc article > h2:first-child { margin-top: 0; }
.doc article > h3 { font: 650 1.1875rem/1.3 var(--sans); letter-spacing: -0.01em; margin: 30px 0 10px; }
.doc article > p, .doc article > ul, .doc article > ol { color: var(--text-2); }
.doc article > ul, .doc article > ol { padding-left: 1.2em; margin: 12px 0 0; }
.doc article li { padding-left: 4px; }
.doc article li::marker { color: var(--signal); }
.doc article li + li { margin-top: 8px; }
.doc article > p + p { margin-top: 14px; }
.doc strong { color: var(--text); font-weight: 600; }
.empty { margin-top: 14px; font: 0.875rem/1.4 var(--mono); color: var(--text-3); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 18px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--line); }
th { font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
td { color: var(--text-2); }
td:first-child { color: var(--text); font-weight: 600; min-width: 170px; }
.notice {
  margin: 0 0 8px; padding: 22px 24px; border-radius: 14px; border: 1px solid rgba(255, 106, 61, 0.45);
  background: linear-gradient(180deg, rgba(255, 106, 61, 0.10), rgba(255, 106, 61, 0.03));
}
.notice h2 { font: 750 1.5rem/1.15 var(--sans); letter-spacing: -0.025em; margin-bottom: 10px; }
.notice p, .notice li { color: var(--text-2); }
.notice ul { margin: 10px 0 0; padding-left: 1.2em; }
.notice li + li { margin-top: 6px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; color: var(--text); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 300 1.5rem/1 var(--sans); color: var(--signal); transition: transform 0.25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 0 20px; color: var(--text-2); }
details > div p + p { margin-top: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 72px; font-size: 0.875rem; color: var(--text-3); background: var(--bg-2); }
.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer .tag { margin: 14px 0 12px; font: italic 400 1.25rem/1.3 var(--serif); color: var(--text-2); }
.site-footer p + p { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .bars i, .heard .live i, .caret, .typed .ibeam, .mp-wave i, .mp-halo, .mm-caret { animation: none !important; }
  .scene { transition: none; filter: none; }
}
