/* Teleprompterz · V3 "Precision" · critical CSS: tokens, the product kit's recorder, base, navigation and the hero.
   Everything below the fold is in sections.css, loaded without blocking first paint. */
/* ==========================================================================
   Teleprompterz · V3 "Precision" · Minimal futuristic SaaS
   White, hairlines, dot grid. Inter light display + Roboto Mono spec labels.
   Part 1 is a copy of the product-UI kit (assets/shared/product-ui/kit.css:
   tokens, primitives, recorder, editor, script, captions), without its local
   @font-face rules (Chromium blocks them on file://) and with asset paths
   rewritten for this folder. Inter and Roboto Mono load from Google Fonts.
   Part 2 is the V3 page system.
   ========================================================================== */

/* ======================= PART 1 · product-UI kit (copied) ======================= */
/* ---------- Theme tokens (src/index.css :root / .dark) ---------- */
.tzui {
  --tzui-bg: #ffffff;              /* --bg-primary */
  --tzui-bg-2: #f5f3ff;            /* --bg-secondary (snow) */
  --tzui-card: #ffffff;            /* --bg-card */
  --tzui-text: #1e1b2e;            /* --text-primary (ink) */
  --tzui-text-2: #4c4666;          /* --text-secondary (body) */
  --tzui-border: #e9e5f5;          /* --border-color (hairline) */
  --tzui-primary: #7331bd;         /* --primary-color */
  --tzui-primary-deep: #61289f;    /* --tlz-primary-deep */
  --tzui-primary-glow: color-mix(in srgb, var(--tzui-primary) 10%, transparent);
  --tzui-primary-light: color-mix(in srgb, var(--tzui-primary) 6%, var(--tzui-bg));
  --tzui-primary-border: color-mix(in srgb, var(--tzui-primary) 45%, var(--tzui-border));
  --tzui-primary-ring: color-mix(in srgb, var(--tzui-primary) 55%, transparent);
  --tzui-rec: #ef4444;             /* --tlz-rec */
  --tzui-red: #ef4444;             /* destructive / red-500 */
  --tzui-success: #22c55e;         /* tailwind.config success */
  --tzui-info: #3b82f6;            /* tailwind.config info */
  --tzui-amber: #f59e0b;
  --tzui-emerald: #10b981;
  --tzui-indigo: #6366f1;
  --tzui-gray-label: #6b7280;      /* hard-coded back-link / field-label grey */
  --tzui-preflight-border: #e5e7eb;/* Tailwind preflight border colour: what `border` alone renders */
  --tzui-shadow-card: 0 1px 0 rgba(30, 27, 46, .02), 0 8px 24px rgba(30, 27, 46, .04);
  --tzui-shadow-deep: 0 24px 60px rgba(30, 27, 46, .08);
  --tzui-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
  --tzui-shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --tzui-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --tzui-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --tzui-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .25);
  --tzui-card-sheen: none;
  /* editor clip colours (src/features/editor/editor.css) */
  --tzui-clip-video: #3b2a5c;
  --tzui-clip-text: #1f5f63;
  --tzui-clip-audio: #2a4f2f;
  --tzui-clip-effect: #8b5cf6;
  --tzui-clip-captions: #7a4b12;
  --tzui-font: "Inter", system-ui, -apple-system, sans-serif;
  --tzui-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* camera feed used by the recorder / editor / captions previews */
  --tzui-feed: url("../assets/shared/product-ui/camera-feed.webp");
  --tzui-feed-portrait: url("../assets/shared/product-ui/camera-feed-portrait.webp");
}
.tzui[data-tzui-theme="dark"], .tzui [data-tzui-theme="dark"] {
  --tzui-bg: #0a0a0b;
  --tzui-bg-2: #131315;
  --tzui-card: #19191d;
  --tzui-text: #f5f5f6;
  --tzui-text-2: #a0a0a8;
  --tzui-border: #28282d;
  --tzui-primary: #975adb;
  --tzui-primary-deep: color-mix(in srgb, var(--tzui-primary) 65%, white);
  --tzui-primary-glow: color-mix(in srgb, var(--tzui-primary) 20%, transparent);
  --tzui-primary-light: color-mix(in srgb, var(--tzui-primary) 5%, var(--tzui-bg));
  --tzui-rec: #ff3b30;
  --tzui-shadow-card: 0 1px 0 rgba(0, 0, 0, .6), 0 8px 32px rgba(0, 0, 0, .5);
  --tzui-shadow-deep: 0 24px 64px rgba(0, 0, 0, .7);
  --tzui-card-sheen: linear-gradient(135deg, rgba(255, 255, 255, .015) 0%, rgba(255, 255, 255, 0) 100%);
  --tzui-clip-video: #2e2147;
  --tzui-clip-text: #18484b;
  --tzui-clip-audio: #203c24;
  --tzui-clip-effect: #7048d8;
  --tzui-clip-captions: #5e3a0e;
}

/* ---------- Base (scoped) ---------- */
.tzui, .tzui *, .tzui *::before, .tzui *::after { box-sizing: border-box; }
.tzui {
  font-family: var(--tzui-font);
  font-size: 15px;
  line-height: 1.625;
  letter-spacing: -0.025em;          /* body: text-[15px] leading-relaxed tracking-tight */
  color: var(--tzui-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.tzui :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure) { margin: 0; padding: 0; font: inherit; letter-spacing: inherit; }
.tzui :where(ul, ol) { list-style: none; }
.tzui :where(button) { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: default; text-align: inherit; }
.tzui :where(input, textarea, select) { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; }
.tzui :where(img) { display: block; max-width: 100%; }
.tzui-ic { display: block; flex-shrink: 0; }
.tzui-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tzui-mono { font-family: var(--tzui-mono); letter-spacing: normal; }
.tzui-tnum { font-variant-numeric: tabular-nums; }

/* ---------- Shared primitives ---------- */
/* Button (src/components/Button.jsx) */
.tzui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; padding: 12px 24px; font-size: 15px; font-weight: 600; line-height: 1.625;
  white-space: nowrap; border: 0;
}
.tzui-btn--primary { background: var(--tzui-primary); color: #fff; }
.tzui-btn--outline { border: 1px solid var(--tzui-border); background: transparent; color: var(--tzui-text); }
.tzui-btn--ghost { background: transparent; color: var(--tzui-text-2); }
.tzui-btn--secondary { background: #000; color: #fff; }
[data-tzui-theme="dark"] .tzui-btn--secondary, .tzui-btn--secondary[data-tzui-theme="dark"] { background: rgba(255, 255, 255, .1); }
.tzui-btn--danger { background: #ef4444; color: #fff; box-shadow: 0 2px 3px rgba(7, 7, 77, .05); }
.tzui-btn[aria-disabled="true"] { opacity: .5; }
.tzui-btn--block { width: 100%; }

/* Range (src/index.css input[type=range] rules: 6px track, 14px thumb) */
.tzui-range { position: relative; display: block; width: 100%; height: 14px; }
.tzui-range::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 6px; border-radius: 9999px; background: var(--tzui-border); }
.tzui-range > i {
  position: absolute; top: 0; left: calc(var(--tzui-value, .5) * (100% - 14px));
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--tzui-primary); border: 2px solid var(--tzui-card); box-shadow: 0 0 0 1px var(--tzui-border);
}

/* SelectMenu trigger (src/components/SelectMenu.jsx) */
.tzui-select {
  width: 100%; display: flex; align-items: center; gap: 8px;
  background: var(--tzui-bg-2); border: 1px solid var(--tzui-border); border-radius: 12px; color: var(--tzui-text);
  font-size: 14px; font-weight: 500; line-height: 20px; padding: 10px 12px;
}
.tzui-select > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.tzui-select > .tzui-ic:last-child { color: var(--tzui-text-2); }
.tzui-select--sm { font-size: 12px; font-weight: 600; line-height: 16px; padding: 8px 12px; }
.tzui-select--lg { padding: 14px 20px; }
.tzui-select--toolbar { height: 44px; padding: 0 14px; }

/* Navbar (src/components/Navbar.jsx) */
.tzui-nav { position: relative; width: 100%; }
.tzui-nav-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; }
.tzui-nav-l, .tzui-nav-r { flex: 1; display: flex; align-items: center; }
.tzui-nav-r { justify-content: flex-end; gap: 12px; }
.tzui-nav-brand { display: flex; align-items: center; gap: 10px; color: var(--tzui-text); text-decoration: none; }
.tzui-nav-brand > span { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.tzui-nav-c { display: none; flex: 1; justify-content: center; }
.tzui-nav-pill { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 16px; border: 1px solid var(--tzui-border); box-shadow: var(--tzui-shadow-sm); }
.tzui-nav-item { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--tzui-text-2); line-height: 1.625; }
.tzui-nav-item--on { background: var(--tzui-primary); color: #fff; }
.tzui-nav-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--tzui-border); color: var(--tzui-text); }
.tzui-nav-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--tzui-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: var(--tzui-shadow-sm); }
.tzui-nav-burger { display: flex; }

/* Page header (src/components/PageHeader.jsx) */
.tzui-ph { margin-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
.tzui-ph-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tzui-ph-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--tzui-primary-glow); color: var(--tzui-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tzui-ph h1, .tzui-ph .kh1 { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.tzui-ph p { margin-top: 2px; font-size: 13px; color: var(--tzui-text-2); }
.tzui-ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.tzui-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: -8px; padding: 0 8px; border-radius: 8px; color: var(--tzui-gray-label); font-size: 14px; font-weight: 500; }

/* Toolbar controls (src/components/toolbarStyles.js, SearchField, ViewModeToggle, FilterChip) */
.tzui-search { position: relative; width: 100%; }
.tzui-search > span { display: flex; align-items: center; width: 100%; height: 44px; padding: 0 40px; background: var(--tzui-bg-2); border: 1px solid var(--tzui-border); border-radius: 12px; font-size: 14px; color: var(--tzui-text-2); }
.tzui-search > .tzui-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tzui-text-2); }
.tzui-tbtn { position: relative; height: 44px; width: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--tzui-border); background: var(--tzui-bg-2); color: var(--tzui-text-2); }
.tzui-tbtn--label { width: auto; padding: 0 16px; gap: 8px; font-size: 14px; font-weight: 600; }
.tzui-viewtoggle { height: 44px; display: flex; align-items: center; padding: 4px; gap: 4px; border-radius: 12px; border: 1px solid var(--tzui-border); background: var(--tzui-bg-2); flex-shrink: 0; }
.tzui-viewtoggle > span { height: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--tzui-text-2); }
.tzui-viewtoggle > .tzui-on { background: var(--tzui-primary); color: #fff; box-shadow: var(--tzui-shadow-sm); }
.tzui-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px; padding: 4px; }
.tzui-chip { height: 40px; padding: 0 16px; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; border-radius: 9999px; border: 1px solid var(--tzui-border); background: var(--tzui-card); color: var(--tzui-text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tzui-chip--on { background: var(--tzui-primary); border-color: var(--tzui-primary); color: #fff; box-shadow: var(--tzui-shadow-sm); }
.tzui-chip--create { background: transparent; border-style: dashed; }
.tzui-chip-count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 9999px; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; background: var(--tzui-primary-glow); color: var(--tzui-primary); }
.tzui-chip--on .tzui-chip-count { background: rgba(255, 255, 255, .2); color: #fff; }
.tzui-chip-lock { margin-right: -4px; opacity: .7; }

/* Card (src/components/Card.jsx: rounded-xl p-6 sm:p-8 card-shadow, inline 1px border + bg) */
.tzui-card { border-radius: 12px; border: 1px solid var(--tzui-border); background: var(--tzui-card); background-image: var(--tzui-card-sheen); box-shadow: var(--tzui-shadow-card); padding: 24px; }

/* App page frame (pt-[90px] under the absolute Navbar; .wrap = max-w 1200 px-5 sm:px-8) */
.tzui-page { container-type: inline-size; container-name: tzui-page; background: var(--tzui-bg); color: var(--tzui-text); position: relative; overflow: hidden; }
.tzui-page-body { padding: 18px 0 48px; }
.tzui-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

@container tzui-page (min-width: 450px) {
  .tzui-xs-show { display: inline; }
}
@container tzui-page (min-width: 575px) {
  .tzui-wrap { padding: 0 32px; }
  .tzui-search { width: 256px; }
}
@container tzui-page (min-width: 992px) {
  .tzui-nav-c { display: flex; }
  .tzui-nav-burger { display: none; }
  .tzui-ph { flex-direction: row; align-items: center; justify-content: space-between; }
  .tzui-ph-actions { width: auto; justify-content: flex-end; }
}

/* ==========================================================================
   RECORDER: the teleprompter recording screen (always dark)
   src/pages/Teleprompter.jsx (top bar ~2771, ScriptScroller 2910, control bar 2928-3203,
   countdown 3843), src/features/voice-scroll/ScriptScroller.jsx,
   src/features/voice-detection/MicStatus.jsx, src/components/VolumeMeter.jsx,
   src/features/prompter/TakeProgress.jsx
   ========================================================================== */
.tzui-rec { container-type: inline-size; container-name: tzui-rec; color: #fff; }
.tzui-rec-screen {
  position: relative; width: 100%; aspect-ratio: var(--tzui-rec-aspect, 16 / 9); overflow: hidden;
  background: #000; border-radius: var(--tzui-rec-radius, 0);
  --tzui-prompter-size: 40px;       /* settings.fontSize: 16-64, step 2 */
  --tzui-prompter-leading: 1.9;     /* settings.lineSpacing default */
  --tzui-prompter-margin: 10%;      /* settings.margin default */
  --tzui-reading-line: .5;          /* settings.readingLine default */
}
/* camera: object-contain + mirrored (scale-x-[-1]), then bg-black/20 backdrop-blur-[1px] */
.tzui-rec-feed { position: absolute; inset: 0; background: #000 var(--tzui-feed) center / cover no-repeat; transform: scaleX(-1); }
.tzui-rec-feed::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }
/* camera off: black with soft brand glows (bg-primary/20 renders nothing, bg-info/10 does) */
.tzui-rec-feed--off { background: #000; transform: none; }
.tzui-rec-feed--off::after { background: radial-gradient(150px 150px at 25% 85%, rgba(59, 130, 246, .10), transparent 70%); backdrop-filter: none; }

/* top bar: relative z-20 flex justify-between px-4 sm:px-6 py-3 sm:py-4 gap-2 */
.tzui-rec-top { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; }
.tzui-rec-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .6); font-size: 15px; font-weight: 600; line-height: 1.625; background: transparent;
}
.tzui-rec-ghost > .tzui-ic + span { display: none; }
.tzui-rec-ghost--icon { padding: 12px 24px; }  /* size="icon" is not a Button prop: base px-6 stays */
.tzui-rec-top-r { display: flex; align-items: center; gap: 8px; }
.tzui-rec-pill {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9999px;
  background: rgba(18, 18, 18, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
}
.tzui-rec-pill-div { display: none; width: 1px; height: 12px; background: rgba(255, 255, 255, .1); }
.tzui-rec-pill-mode { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .5); font-family: var(--tzui-mono); font-size: 12px; line-height: 16px; letter-spacing: normal; }
/* mic status: dot (or icon) + 5-bar meter + state text */
.tzui-mic { position: relative; display: flex; align-items: center; gap: 8px; }
.tzui-mic-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.tzui-mic-dot--success { background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, .6); animation: tzui-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.tzui-mic-dot--info { background: #3b82f6; animation: tzui-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.tzui-mic-dot--warning { background: #fbbf24; }
.tzui-mic-dot--error { background: #f87171; }
.tzui-mic-ic--neutral { color: rgba(255, 255, 255, .5); }
.tzui-mic-ic--error { color: #f87171; }
.tzui-meter { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 12px; width: 48px; padding: 0 2px 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.tzui-meter > i { display: block; width: 100%; height: var(--h, 10%); border-radius: 9999px; background: rgba(255, 255, 255, .2); }
.tzui-meter--speaking > i { background: #22c55e; }
.tzui-meter--calibrating > i { background: #3b82f6; }
.tzui-meter-th { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, .7); bottom: calc(2px + var(--t, .4) * (100% - 2px)); }
.tzui-mic-text { display: none; font-size: 10px; font-weight: 700; line-height: 15px; white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .5); }
.tzui-mic-text--long { text-transform: none; letter-spacing: 0; }
.tzui-mic-text--success { color: #22c55e; }
.tzui-mic-text--info { color: #3b82f6; }
.tzui-mic-text--warning { color: #fbbf24; }
.tzui-mic-text--error { color: #f87171; }

/* the scrolling script (ScriptScroller): max-w-3xl, height = viewport - 250px, font-light, centred */
.tzui-rec-scroller {
  position: relative; z-index: 10; margin: 0 auto; max-width: 768px; height: calc(100% - 250px); overflow: hidden;
  font-family: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, sans-serif;
}
.tzui-rec-text {
  position: absolute; left: 0; right: 0; padding: 0 var(--tzui-prompter-margin);
  text-align: center; font-weight: 300; white-space: pre-line; letter-spacing: -0.025em;
  font-size: var(--tzui-prompter-size); line-height: var(--tzui-prompter-leading); color: #fff;
}
/* the current paragraph starts on the reading line; everything before it ends there */
.tzui-rec-text--ahead { top: calc(var(--tzui-reading-line) * 100% - var(--tzui-prompter-size) * var(--tzui-prompter-leading) / 2); }
.tzui-rec-text--past { bottom: calc((1 - var(--tzui-reading-line)) * 100% + var(--tzui-prompter-size) * var(--tzui-prompter-leading) / 2); }
.tzui-rec-text--start { top: calc(var(--tzui-reading-line) * 100%); }  /* a new take: the script starts on the line */
.tzui-w { color: #fff; }
.tzui-w--spoken { color: rgba(255, 255, 255, .4); }
.tzui-w--current { color: #facc15; filter: drop-shadow(0 0 8px rgba(251, 176, 64, .5)); animation: tzui-vs-pulse 1.4s ease-in-out infinite; }
.tzui-w-label { display: block; font-size: .5em; font-weight: 700; color: rgba(255, 255, 255, .3); text-transform: uppercase; letter-spacing: .3em; margin: 32px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: 8px; }
@keyframes tzui-vs-pulse {
  0%, 100% { text-shadow: 0 0 4px color-mix(in srgb, currentColor 30%, transparent); }
  50% { text-shadow: 0 0 14px color-mix(in srgb, currentColor 65%, transparent); }
}
/* reading line guide: shown while the Settings panel is open */
.tzui-rec-line { position: absolute; left: 0; right: 0; z-index: 20; top: calc(var(--tzui-reading-line) * 100%); transform: translateY(-50%); display: flex; align-items: center; gap: 8px; pointer-events: none; }
.tzui-rec-line::before, .tzui-rec-line::after { content: ""; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.tzui-rec-line::before { border-left: 8px solid var(--tzui-primary); }
.tzui-rec-line::after { border-right: 8px solid var(--tzui-primary); }
.tzui-rec-line > i { flex: 1; border-top: 1px dashed color-mix(in srgb, var(--tzui-primary) 60%, transparent); }
/* "Off script — paused" pill above the reading line (voice mode) */
.tzui-rec-offscript { position: absolute; left: 50%; z-index: 20; top: calc(var(--tzui-reading-line) * 100% - var(--tzui-prompter-size) * var(--tzui-prompter-leading) * .6); transform: translate(-50%, -100%); display: flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: 9999px; background: rgba(18, 18, 18, .8); border: 1px solid rgba(255, 255, 255, .1); padding: 4px 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .7); line-height: 15px; }
.tzui-rec-offscript::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(250, 204, 21, .7); }

/* control bar: fixed bottom-6, max-w-5xl px-4; bg #0B0B0C rounded-2xl border-zinc-800/80 */
.tzui-rec-barwrap { position: absolute; z-index: 30; bottom: 24px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 1024px; padding: 0 16px; }
.tzui-bar {
  position: relative; background: #0b0b0c; border-radius: 16px; border: 1px solid rgba(39, 39, 42, .8);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .7); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  color: #fff; font-family: var(--tzui-font); letter-spacing: -0.025em; line-height: 1.625;
}
.tzui-bar-l { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tzui-bar-l > div:first-child { display: flex; align-items: center; gap: 12px; }
.tzui-state { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 8px; border: 1px solid; }
.tzui-state > i { width: 6px; height: 6px; border-radius: 50%; }
.tzui-state > span { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 13.5px; }
.tzui-state--ready { background: rgba(59, 130, 246, .1); color: #60a5fa; border-color: rgba(59, 130, 246, .2); }
.tzui-state--ready > i { background: #60a5fa; }
.tzui-state--recording { background: rgba(239, 68, 68, .1); color: #ef4444; border-color: rgba(239, 68, 68, .2); }
.tzui-state--recording > i { background: #ef4444; animation: tzui-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.tzui-state--paused { background: rgba(234, 179, 8, .1); color: #eab308; border-color: rgba(234, 179, 8, .2); }
.tzui-state--paused > i { background: #eab308; }
.tzui-timer { color: #fff; font-family: var(--tzui-mono); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.025em; }
.tzui-left { font-family: var(--tzui-mono); font-size: 10px; line-height: 16px; font-weight: 500; color: #71717a; white-space: nowrap; letter-spacing: normal;
  position: absolute; right: 16px; top: -8px; padding: 0 6px; border-radius: 4px; background: #0b0b0c; }
.tzui-progress { position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 9999px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.tzui-progress > i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--tzui-progress, 0)); background: linear-gradient(to right, #9333ea, #3b82f6); }
.tzui-finish { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--tzui-primary); color: #fff; font-weight: 700; text-transform: uppercase; box-shadow: var(--tzui-shadow-md); padding: 6px 16px; font-size: 11px; line-height: 16.5px; letter-spacing: .05em; }
.tzui-finish[aria-disabled="true"] { opacity: .5; }
.tzui-finish--desk { display: none; padding: 10px 20px; font-size: 12px; line-height: 16px; letter-spacing: .1em; }
.tzui-bar-c { display: flex; align-items: center; justify-content: center; gap: 12px; flex: 1; }
.tzui-pbtn { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(24, 24, 27, .6); border: 1px solid rgba(39, 39, 42, .8); color: #a1a1aa; }
.tzui-pbtn--dim { color: #71717a; }
/* Start/Pause: playing = bg-white text-black; idle = "gradient-hero glow-primary", which have no CSS
   in the app, so the idle Start button renders as a white icon on the bar with shadow-md only */
.tzui-play { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: var(--tzui-shadow-md); color: #fff; }
.tzui-play > .tzui-ic { margin-left: 2px; }
.tzui-play--on { background: #fff; color: #000; }
.tzui-play--on > .tzui-ic { margin-left: 0; }
.tzui-bar-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tzui-bar-r > div:first-child { display: flex; align-items: center; gap: 6px; }
.tzui-size { display: flex; align-items: center; background: rgba(24, 24, 27, .6); border-radius: 12px; border: 1px solid rgba(39, 39, 42, .8); padding: 2px; }
.tzui-size > span:not(.tzui-size-v) { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #a1a1aa; }
.tzui-size-v { padding: 0 6px; min-width: 28px; text-align: center; }
.tzui-size-v > b { display: block; font-size: 8px; line-height: 12px; color: #71717a; text-transform: uppercase; font-weight: 800; letter-spacing: -0.05em; }
.tzui-size-v > span { display: block; font-family: var(--tzui-mono); font-size: 12px; line-height: 16px; font-weight: 700; color: #d4d4d8; letter-spacing: -0.025em; }
.tzui-tog { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(39, 39, 42, .8); background: rgba(24, 24, 27, .6); color: #a1a1aa; }
.tzui-tog--primary { background: var(--tzui-primary-glow); border-color: var(--tzui-primary); color: var(--tzui-primary); }
.tzui-tog--success { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .2); color: #22c55e; }
.tzui-tog--speaking { background: rgba(34, 197, 94, .2); border-color: rgba(34, 197, 94, .3); color: #22c55e; }
.tzui-tog--danger { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .2); color: #ef4444; }

/* countdown overlay: bg-black/40 backdrop-blur-md, 120px black italic numeral */
.tzui-countdown { position: absolute; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-align: center; }
.tzui-countdown h2, .tzui-countdown .cd-n { font-size: 120px; line-height: 1.2; font-weight: 900; font-style: italic; color: #fff; letter-spacing: -0.015em; filter: drop-shadow(0 0 30px rgba(255, 255, 255, .5)); }
.tzui-countdown p { font-size: 20px; line-height: 28px; color: rgba(255, 255, 255, .6); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.tzui-countdown-cancel { margin-top: 32px; display: inline-flex; align-items: center; height: 44px; padding: 0 32px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .8); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }

/* "Camera is off" banner */
.tzui-rec-alert { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); z-index: 20; width: calc(100% - 32px); max-width: 448px; display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(18, 18, 18, .8); backdrop-filter: blur(10px); border: 1px solid rgba(239, 68, 68, .3); text-align: left; }
.tzui-rec-alert-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; background: rgba(239, 68, 68, .15); color: #ef4444; display: flex; align-items: center; justify-content: center; }
.tzui-rec-alert b { display: block; font-size: 14px; line-height: 20px; font-weight: 700; color: #fff; }
.tzui-rec-alert p { margin-top: 4px; font-size: 12px; line-height: 1.625; color: rgba(255, 255, 255, .6); }
.tzui-rec-alert .tzui-btn { padding: 8px 12px; font-size: 12px; line-height: 16px; font-weight: 700; flex-shrink: 0; }

@container tzui-rec (max-width: 574px) {
  .tzui-rec-feed { background-image: var(--tzui-feed-portrait); }
  .tzui-rec-screen { aspect-ratio: var(--tzui-rec-aspect, 9 / 19.5); --tzui-prompter-size: 30px; }
}
@container tzui-rec (min-width: 450px) {
  .tzui-rec-ghost { padding: 12px 16px; }
  .tzui-rec-ghost > .tzui-ic + span { display: inline; }
  .tzui-rec-ghost > .tzui-ic:first-child:not(:only-child) { margin-right: -2px; }
  .tzui-rec-pill { gap: 12px; padding: 8px 16px; }
  .tzui-rec-pill-div { display: block; }
  .tzui-mic-text { display: inline; }
}
@container tzui-rec (min-width: 575px) {
  .tzui-rec-top { padding: 16px 24px; }
}
@container tzui-rec (min-width: 575px) and (max-width: 991px) {
  .tzui-rec-screen { aspect-ratio: var(--tzui-rec-aspect, 4 / 3); }
}
@container tzui-rec (min-width: 768px) {
  .tzui-left { position: static; padding: 0; background: none; font-size: 11px; }
}
@container tzui-rec (min-width: 992px) {
  .tzui-bar { flex-direction: row; align-items: center; padding: 12px 20px; }
  .tzui-bar-l { justify-content: flex-start; }
  .tzui-bar-l .tzui-finish { display: none; }
  .tzui-bar-r { justify-content: flex-end; }
  .tzui-finish--desk { display: inline-flex; }
}

/* ==========================================================================
   PROMPTER SETTINGS PANEL (Teleprompter.jsx 3205-3500, features/prompter/*,
   features/voice-detection/VoiceDetectionSettings.jsx, features/fonts/FontPicker.jsx)
   glass-dark rounded-2xl p-6 border white/10, w-72, space-y-5
   ========================================================================== */
.tzui-set {
  width: 288px; max-width: 100%; border-radius: 16px; padding: 24px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(18, 18, 18, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; display: flex; flex-direction: column; gap: 20px; font-family: var(--tzui-font); letter-spacing: -0.025em; line-height: 1.625;
}
.tzui-set--float { position: absolute; z-index: 30; top: 80px; right: 24px; max-height: calc(100% - 100px); overflow: hidden; }
.tzui-set h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: #fff; }
.tzui-set h3 .tzui-ic { color: var(--tzui-primary); }
.tzui-set-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tzui-set-label { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.tzui-set-val { font-family: var(--tzui-mono); font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .8); letter-spacing: normal; }
.tzui-set .tzui-range { height: 14px; }
.tzui-set-grid { display: grid; gap: 6px; margin-top: 8px; }
.tzui-set-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tzui-set-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tzui-set-opt { height: 32px; border-radius: 8px; font-size: 12px; font-weight: 700; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: center; }
/* on: "bg-primary/20 border-primary text-primary" (the /20 background has no CSS in the app) */
.tzui-set-opt--on { background: transparent; border-color: var(--tzui-primary); color: var(--tzui-primary); }
.tzui-set-switch { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px; background: rgba(255, 255, 255, .05); border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); }
.tzui-set-switch > span:first-child { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 700; color: #fff; }
.tzui-set-switch > span:first-child .tzui-ic { color: var(--tzui-primary); }
.tzui-sw { width: 40px; height: 20px; border-radius: 9999px; padding: 4px; background: rgba(255, 255, 255, .2); }
.tzui-sw > i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: var(--tzui-shadow-sm); }
.tzui-sw--on { background: var(--tzui-primary); }
.tzui-sw--on > i { transform: translateX(20px); }
.tzui-set-box { display: flex; flex-direction: column; gap: 12px; padding: 12px; background: rgba(255, 255, 255, .05); border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); }
.tzui-set-box h4 { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 700; color: #fff; }
.tzui-set-box h4 .tzui-ic { color: var(--tzui-primary); }
.tzui-set-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10px; line-height: 15px; color: rgba(255, 255, 255, .6); }
.tzui-set-help { margin-top: 8px; font-size: 11px; line-height: 1.375; color: rgba(255, 255, 255, .6); }
.tzui-set-btn { width: 100%; height: 36px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); line-height: 16px; }
.tzui-set-btn kbd { font-family: var(--tzui-mono); color: rgba(255, 255, 255, .4); }
.tzui-set-sec { padding-top: 12px; margin-top: -8px; border-top: 1px solid rgba(255, 255, 255, .1); }
.tzui-set-sec > div:first-child { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; line-height: 16px; font-weight: 700; color: #fff; }
.tzui-set-sec > div:first-child .tzui-ic { color: var(--tzui-primary); }
.tzui-set-sec .tzui-set-btn + .tzui-set-btn { margin-top: 8px; }
.tzui-new { background: var(--tzui-primary); color: #fff; font-size: 9px; line-height: 13.5px; padding: 2px 4px; border-radius: 4px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; }
.tzui-set-reset { width: 100%; margin-top: -12px; }
.tzui-set-stack { display: flex; flex-direction: column; gap: 8px; }
/* the panel's SelectMenus carry class "dark", so they always use the dark tokens */
.tzui-set .tzui-select { --tzui-bg-2: #131315; --tzui-border: #28282d; --tzui-text: #f5f5f6; --tzui-text-2: #a0a0a8; }

/* ======================= PART 2 · V3 Precision ======================= */
:root {
  --paper: #ffffff;
  --snow: #f5f3ff;
  --hair: #e9e5f5;
  --hair-2: #dcd6ec;
  --ink: #1e1b2e;
  --body: #4c4666;
  --mute: #5f5978;
  --primary: #7331bd;
  --primary-deep: #61289f;
  --primary-end: #a479d4;
  --primary-glow: rgba(115, 49, 189, .10);
  --primary-ring: rgba(115, 49, 189, .55);
  --primary-border: #b494dc;
  --primary-tint: #faf7fd;
  --rec: #ef4444;
  --sans: "Inter", Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif; /* metric-close fallback while the web font loads */
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* one easing family: moves decelerate, UI fades are standard */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-ui: cubic-bezier(.4, 0, .2, 1);
  --t-ui: .22s;
  --t-move: .55s;
  --t-big: .9s;
  --gut: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --nav-h: 64px;
  --shadow-frame: 0 0 0 1px rgba(30, 27, 46, .08), 0 2px 4px rgba(30, 27, 46, .04), 0 32px 80px -28px rgba(30, 27, 46, .32);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font: 400 16px/1.6 var(--sans); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: rgba(115, 49, 189, .16); color: var(--ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--mute); }
:focus-visible { outline: 2px solid var(--primary-ring); outline-offset: 2px; }
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); box-shadow: 0 5px 10px rgba(4, 10, 34, .2); transform: translateY(-1px); }
.btn-primary .ic { transition: transform .2s var(--ease); }
.btn-primary:hover .ic { transform: translateX(3px); }
.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--hair-2); }
.btn-quiet:hover { border-color: var(--primary-border); color: var(--primary-deep); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- navigation: hairline bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.nav-in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; justify-self: start; border-radius: 6px; }
.brand img { width: 160px; height: auto; }
.nav-links ul { display: flex; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  font-size: 14px; font-weight: 500; color: var(--body); transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--snow); }
.nav-r { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav-signin { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink); }
.nav-signin:hover { background: var(--snow); }
.nav-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 9px; margin-right: 6px;
  border: 1px solid var(--hair); border-radius: 999px; font-size: 10.5px; color: var(--mute); background: var(--paper);
  font-variant-numeric: tabular-nums; min-width: 104px;
}
.nav-chip i { width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; }
.nav-chip[data-state="recording"] { color: var(--rec); }
.nav-chip[data-state="recording"] i { background: var(--rec); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.nav-chip[data-state="paused"] i { background: #eab308; }
.nav-menu {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--hair-2); background: var(--paper); color: var(--ink); cursor: pointer;
}
.sheet {
  position: fixed; inset: 0; z-index: 100; background: var(--paper); display: flex; flex-direction: column;
  overflow-y: auto; animation: sheet-in .35s var(--ease);
}
.sheet-top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--hair); flex-shrink: 0; }
.sheet-top img { width: 160px; height: auto; }
.sheet .sheet-close { display: inline-flex; }
.sheet-nav { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-block: 24px 32px; }
.sheet-nav ol li { border-bottom: 1px solid var(--hair); }
.sheet-nav ol a {
  display: flex; align-items: baseline; gap: 16px; padding: 20px 0; text-decoration: none;
  font: 300 34px/1.1 var(--sans); letter-spacing: -0.035em; color: var(--ink);
}
.sheet-nav ol a .mono { font-size: 11px; }
.sheet-ctas { display: grid; gap: 10px; margin-top: 32px; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- shared figure caption + labels ---------- */
.fig-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 10.5px; }
.fig-cap .dash { color: var(--hair-2); margin: 0 4px; }
.sim {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
}
.sim::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .7; }

/* ---------- section scaffolding ---------- */
.sec { position: relative; padding: clamp(80px, 9vw, 144px) 0; border-bottom: 1px solid var(--hair); }
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-idx { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sec-idx span {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border: 1px solid var(--hair-2);
  border-radius: 4px; color: var(--ink); font-size: 10.5px;
}
.sec-idx::after { content: ""; width: 48px; height: 1px; background: var(--hair-2); }
.sec-title { font: 300 clamp(34px, 3.8vw, 56px)/1.04 var(--sans); letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.sec-lede { margin-top: 20px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--body); max-width: 36em; }
.sec-lede a { color: var(--primary-deep); text-underline-offset: 3px; }

/* ==========================================================================
   HERO: a technical drawing of the recording screen, in isometric view
   ========================================================================== */
:root { --grid-major: #e9e5f5; --grid-minor: #f4f1fb; --anno: #7331bd; --anno-soft: #8a52cf; }
.hero { position: relative; overflow: clip; padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--hair); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--paper); }
.bp-grid, .bp-paper {
  background-image:
    linear-gradient(to right, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-minor) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-minor) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px;
}
.bp-grid {
  position: absolute; inset: 0; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(62% 80% at 66% 48%, #000 35%, transparent 88%);
  mask-image: radial-gradient(62% 80% at 66% 48%, #000 35%, transparent 88%);
}
/* print registration marks in the sheet corners */
.reg { position: absolute; width: 22px; height: 22px; border: 1px solid rgba(30, 27, 46, .32); border-radius: 50%; }
.reg::before, .reg::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(30, 27, 46, .32); }
.reg::before { width: 34px; height: 1px; translate: -50% -50%; }
.reg::after { width: 1px; height: 34px; translate: -50% -50%; }
.reg-tl { left: 18px; top: 18px; } .reg-tr { right: 18px; top: 18px; } .reg-bl { left: 18px; bottom: 18px; } .reg-br { right: 18px; bottom: 18px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 3.9fr) minmax(0, 8.1fr); gap: clamp(16px, 2vw, 32px); align-items: center; }
.hero-copy { position: relative; z-index: 3; max-width: 520px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--primary-deep); margin-bottom: 24px; }
.eyebrow-tick { width: 22px; height: 1px; background: currentColor; position: relative; }
.eyebrow-tick::after { content: ""; position: absolute; right: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hero-h1 { position: relative; font: 300 clamp(42px, 4.4vw, 66px)/1.02 var(--sans); letter-spacing: -0.045em; color: var(--ink); text-wrap: balance; }
.tw-l2 { display: block; color: var(--primary); }
.tw-type { position: absolute; inset: 0; pointer-events: none; display: none; }
.tw-on .tw-full { color: transparent; }
.tw-on .tw-full .tw-l2 { color: transparent; }
.tw-on .tw-type { display: block; }
.tw-caret { display: inline-block; position: relative; width: 0; height: .86em; vertical-align: -0.06em; animation: caret 1.06s steps(1) infinite; }
.tw-caret::after { content: ""; position: absolute; left: .06em; top: 0; width: 3px; height: 100%; border-radius: 1px; background: var(--primary); }
.tw-caret.is-typing { animation: none; }
@keyframes caret { 50% { opacity: 0; } }
.lede { margin-top: 24px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--body); max-width: 27em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-size: 11px; }
.meta li { display: flex; align-items: center; gap: 8px; }
.meta li::before { content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--primary); border-bottom: 1.5px solid var(--primary); transform: rotate(-45deg) translateY(-2px); }

/* stage: the drawing */
.hero-stage { position: relative; padding: 64px 176px 84px 34px; }
.nw { white-space: nowrap; }
.iso { position: relative; z-index: 2; perspective: 2600px; perspective-origin: 30% 40%; }
.iso-plane {
  position: relative; z-index: 2;
  transform: rotateX(var(--rx, 11deg)) rotateY(var(--ry, -19deg)) rotateZ(var(--rz, 1.2deg));
  transform-origin: 50% 50%;
}
.iso-back { position: absolute; inset: 0; z-index: -1; border-radius: 14px; background: #2a2340; transform: translate(-10px, 11px); box-shadow: 0 0 0 1px rgba(115, 49, 189, .25); }
.iso-shadow {
  position: absolute; left: 4%; right: 8%; bottom: -54px; height: 70px; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 27, 46, .22), rgba(30, 27, 46, 0)); filter: blur(6px);
}

/* fit-to-width product screens (rendered at design size, scaled) */
.fit {
  position: relative; width: 100%; aspect-ratio: var(--dw, 1120) / var(--dh, 700); overflow: hidden;
  border-radius: 14px; background: #1b1626; box-shadow: var(--shadow-frame);
}
.fit-in {
  position: absolute; left: 0; top: 0; width: calc(var(--dw, 1120) * 1px); height: calc(var(--dh, 700) * 1px);
  transform: scale(var(--k, .5)); transform-origin: 0 0;
}
.iso .fit { box-shadow: 0 0 0 1px rgba(30, 27, 46, .5), 0 40px 80px -30px rgba(30, 27, 46, .55); }
/* the camera loop stand-in is dim: lift it so the window never reads as black */
.rec .tzui-rec-feed { background-color: #241c33; }
.rec .tzui-rec-feed.is-standin { filter: brightness(1.22) saturate(1.08); }
.rec .tzui-rec-feed::after { background: rgba(0, 0, 0, .08); }
.rec .tzui-countdown { background: rgba(14, 10, 24, .3); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* dimension lines, drawn in the window's own plane */
.dims { position: absolute; inset: 0; z-index: 3; pointer-events: none; color: var(--anno); }
.dim { position: absolute; left: 0; top: 0; height: 30px; display: block; }
.dim-line { position: absolute; left: 0; right: 0; top: 9px; height: 1.25px; background: currentColor; transform: scaleX(0); transition: transform .7s var(--ease); }
.dim-line::before, .dim-line::after { content: ""; position: absolute; top: -3.4px; width: 9px; height: 8px; background: currentColor; }
.dim-line::before { left: 0; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.dim-line::after { right: 0; clip-path: polygon(100% 50%, 0 0, 0 100%); }
.dim-ext { position: absolute; top: 2px; bottom: 3px; width: 1px; background: currentColor; opacity: 0; transition: opacity .3s var(--ease-ui) .1s; }
.dim-ext--a { left: 0; } .dim-ext--b { right: 0; }
.dim-t {
  position: absolute; left: 50%; top: 9px; translate: -50% -50%; padding: 1px 8px; background: var(--paper); color: var(--anno);
  font: 500 11.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; opacity: 0;
  transition: opacity .3s var(--ease-ui);
}
.dim.is-on .dim-line { transform: scaleX(1); }
.dim.is-on .dim-ext { opacity: .7; }
.dim.is-on .dim-t { opacity: 1; transition-delay: .35s; }
.dim-w { width: 100%; transform: translateY(-34px); }
.dim-h { width: var(--ph, 300px); transform-origin: 0 0; transform: translate(-36px, var(--ph, 300px)) rotate(-90deg); }
.dim-rl { width: calc(var(--ph, 300px) * var(--rl, .5)); transform-origin: 0 0; transform: translate(-36px, calc(var(--ph, 300px) * var(--rl, .5))) rotate(-90deg); }
.dim-crop { left: var(--c0, 0%); width: var(--cw, 100%); top: 100%; transform: translateY(4px) scaleY(-1); }
.dim-crop .dim-t { scale: 1 -1; }
.dims.is-phone .dim-crop, .dims.is-phone .dim-w, .dims.is-phone .dim-h { display: none; }

/* orbit: dashed engineering circles with centre lines, chips stay upright */
.iso-wrap { position: relative; }
.orbit {
  position: absolute; left: 50%; top: 50%; width: 130%; aspect-ratio: 1; transform: translate(-50%, -50%);
  z-index: 0; container-type: inline-size; pointer-events: none;
}
.orbit-cl { position: absolute; left: 50%; top: 50%; opacity: .55; }
.orbit-cl--h { width: 100%; height: 1px; translate: -50% 0; background: repeating-linear-gradient(90deg, var(--anno-soft) 0 18px, transparent 18px 23px, var(--anno-soft) 23px 26px, transparent 26px 31px); }
.orbit-cl--v { height: 100%; width: 1px; translate: 0 -50%; background: repeating-linear-gradient(180deg, var(--anno-soft) 0 18px, transparent 18px 23px, var(--anno-soft) 23px 26px, transparent 26px 31px); }
.ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; animation: spin var(--dur) linear infinite; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(115, 49, 189, .38); }
.ring-1 { --d: 50cqw; --dur: 30s; animation-direction: reverse; }
.ring-2 { --d: 67cqw; --dur: 40s; }
.ring-3 { --d: 83.5cqw; --dur: 50s; }
.ring-4 { --d: 100cqw; --dur: 60s; animation-direction: reverse; }
.ring-4::before { border-style: solid; border-color: rgba(115, 49, 189, .14); }
.ring { width: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); }
.chip { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(calc(var(--d) / 2)) rotate(calc(-1 * var(--a))); }
.chip-in {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: 12px; background: rgba(255, 255, 255, .96); border: 1px solid var(--hair-2); color: var(--ink);
  animation: spin var(--dur) linear infinite reverse, chip-in .9s var(--ease) calc(.5s + var(--i) * .18s) backwards;
}
.ring-1 .chip-in, .ring-4 .chip-in { animation: spin var(--dur) linear infinite, chip-in .9s var(--ease) calc(.5s + var(--i) * .18s) backwards; }
.chip-in b { font: 500 11px/1 var(--mono); letter-spacing: .04em; }
.chip-img { display: block; width: auto; height: 50px; max-width: none; }
.orbit.is-paused .ring, .orbit.is-paused .chip-in { animation-play-state: paused; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes chip-in { from { opacity: 0; scale: .3; } }

/* balloons: numbered callouts with leader lines, in a flat annotation layer */
.bl-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 6; }
.bl-lines .bl-halo { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset .6s var(--ease); }
.bl-lines .bl-path { fill: none; stroke: var(--anno); stroke-width: 1.25; stroke-linejoin: round; transition: stroke-dashoffset .6s var(--ease); }
.bl-lines .bl-dot { fill: var(--anno); stroke: #fff; stroke-width: 1.5; transition: opacity .25s var(--ease-ui); }
.bl-lines .bl-pin { fill: #fff; stroke: var(--anno); stroke-width: 1.25; transition: opacity .25s var(--ease-ui); }
.bl-lines .bl-pin-t { fill: var(--anno); font: 600 10px var(--mono); text-anchor: middle; dominant-baseline: central; transition: opacity .25s var(--ease-ui); }
.balloons { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.bl {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  color: var(--ink); font-size: 11.5px; opacity: 0; transition: opacity .25s var(--ease-ui);
}
.bl.is-on { opacity: 1; transition-delay: .35s; }
.bl-n {
  display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  border: 1.25px solid var(--anno); background: #fff; color: var(--anno); font-size: 12px; font-weight: 600; letter-spacing: 0;
}
.bl-t { padding: 3px 7px; background: rgba(255, 255, 255, .92); font-variant-numeric: tabular-nums; }
.bl[data-bl="rec"] .bl-n { border-color: var(--rec); color: #c81e1e; }

/* title block */
.tblock {
  position: absolute; right: 0; bottom: 0; display: flex; border: 1px solid var(--ink); background: #fff; font-size: 10.5px; color: var(--ink);
}
.tblock > span { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 12px; border-left: 1px solid var(--ink); }
.tblock > span:first-child { border-left: 0; }
.tblock em { font-style: normal; font-size: 9.5px; color: var(--mute); }
.tblock .sim { flex-direction: row; color: var(--mute); }

/* legend mode: no room for leaders, so numbered pins sit on the parts and a legend lists them */
.hero-stage.is-legend .balloons { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 16px; margin-top: 30px; }
.hero-stage.is-legend .bl { position: static; transform: none !important; opacity: .45; transition-delay: 0s; }
.hero-stage.is-legend .bl.is-on { opacity: 1; }
.hero-stage.is-legend .bl-n { width: 24px; height: 24px; font-size: 11px; }
.hero-stage.is-legend .tblock { position: static; margin-top: 18px; width: max-content; max-width: 100%; flex-wrap: wrap; }

/* hero recorder: overrides on the kit's recorder */
.rec { height: 100%; }
.rec .tzui-rec-screen { aspect-ratio: auto; height: 100%; --tzui-rec-radius: 0; }
.rec .tzui-rec-scroller { height: calc(100% - 250px); -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.rec-text {
  position: absolute; left: 0; right: 0; top: 0;
  padding: calc(var(--tzui-reading-line) * var(--sh, 450) * 1px - var(--tzui-prompter-size) * var(--tzui-prompter-leading) / 2) var(--tzui-prompter-margin) 0;
  text-align: center; font-weight: 300; letter-spacing: -0.025em; color: #fff;
  font-size: var(--tzui-prompter-size); line-height: var(--tzui-prompter-leading);
  will-change: transform;
}
.rec-p { margin: 0; }
.rec-text .tzui-w { transition: color .3s; }
.rec .tzui-progress > i { transition: transform .3s linear; }
.rec-line-anchor { position: absolute; left: 10%; top: calc(var(--tzui-reading-line) * 100%); width: 1px; height: 1px; }
.rec .tzui-rec-line { opacity: 0; transition: opacity .4s var(--ease-ui); }
.rec.is-rl .tzui-rec-line { opacity: 1; }
.tzui .tzui-play, .tzui .tzui-pbtn, .tzui .tzui-finish, .tzui-size > button { cursor: pointer; }
.tzui-size > button { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #a1a1aa; }
.tzui-size > button:hover, .tzui .tzui-pbtn:hover { color: #fff; }
.tzui button.tzui-pbtn:active, .tzui button.tzui-play:active { transform: scale(.93); }
/* idle Start button drawn as intended (frontend-analysis §2.10): purple gradient, not the as-rendered transparent fill */
.tzui-play--idle { background: linear-gradient(135deg, var(--tzui-primary), color-mix(in srgb, var(--tzui-primary) 65%, white)); box-shadow: 0 8px 24px color-mix(in srgb, var(--tzui-primary) 40%, transparent); }
.tzui-finish:disabled { opacity: .5; cursor: default; }
.rec .tzui-countdown { opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-ui), visibility 0s linear .35s; }
.rec .tzui-countdown.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
@keyframes cd-tick { from { opacity: 0; transform: translateY(20px); } }
.rec-stopped { position: absolute; inset: 0; z-index: 110; display: grid; place-items: center; background: rgba(14, 10, 24, .3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-ui), visibility 0s linear .35s; }
.rec-stopped.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.rec-stopped p { transform: scale(.96); transition: transform var(--t-move) var(--ease); }
.rec-stopped.is-on p { transform: none; }
.rec-stopped p {
  padding: 40px 56px; border-radius: 32px; background: rgba(18, 18, 18, .8); border: 1px solid rgba(255, 255, 255, .05);
  font-size: 24px; font-weight: 900; font-style: italic; letter-spacing: -0.02em; text-transform: uppercase; color: #fff;
}

/* ==========================================================================
   GHOST CURSOR: one glyph at a time, arrow and hand share the hotspot
   ========================================================================== */
.ghost { position: absolute; left: 0; top: 0; z-index: 40; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease-ui); will-change: transform; }
.ghost.is-on { opacity: 1; }
.ghost svg { position: absolute; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .28)); transition: transform .14s var(--ease-ui); }
.g-arrow { left: -4.58px; top: -2.29px; color: var(--ink); transform-origin: 4.58px 2.29px; }
.g-hand { left: -10.16px; top: -2.82px; transform-origin: 10.16px 2.82px; display: none; }
.ghost[data-shape="hand"] .g-arrow { display: none; }
.ghost[data-shape="hand"] .g-hand { display: block; }
.ghost.is-down svg { transform: scale(.92); }
.g-ripple { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--primary); background: rgba(115, 49, 189, .14); opacity: 0; animation: g-ripple .6s var(--ease) both; }
@keyframes g-ripple { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }
.gh-click.gh-hover { filter: brightness(1.04); }

/* ==========================================================================
   REDUCED MOTION: final states, no loops
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .ring, .chip-in { animation: none !important; }
  .tw-caret { display: none; }
}

/* ==========================================================================
   HERO LOOP: beats of the recording screen
   ========================================================================== */
.is-inert { pointer-events: none; opacity: .6; }
.tzui button.tzui-tog { cursor: pointer; }
.tzui-tog--muted { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .2); color: #ef4444; }
.rec .tzui-rec-top, .rec .tzui-rec-scroller, .rec .tzui-rec-barwrap { transition: opacity var(--t-move) var(--ease-ui); }
.rec[data-view="take"] .tzui-rec-top, .rec[data-view="take"] .tzui-rec-scroller, .rec[data-view="take"] .tzui-rec-barwrap { opacity: 0; }
.rec .tzui-rec-scroller { transition: opacity var(--t-move) var(--ease-ui), transform .7s var(--ease); }
.rec.is-mirror .tzui-rec-scroller { transform: scaleX(-1); }
.rec .tzui-rec-feed { overflow: hidden; }
.feed-video { pointer-events: none; }
.feed-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rec-caps { position: absolute; inset: 0; z-index: 25; pointer-events: none; opacity: 0; transition: opacity var(--t-move) var(--ease-ui); }
.rec[data-view="take"] .rec-caps { opacity: 1; }
.rec-cap { position: absolute; left: 50%; top: 80%; width: 74%; transform: translate(-50%, -50%); text-align: center; font: 700 36px/1.3 var(--sans); letter-spacing: 0; color: #fff; }
.is-phone .rec-cap { font-size: 26px; width: 88%; }
.rec-cap > span { opacity: 0; transition: opacity .25s var(--ease-ui); }
.rec-cap > span.is-on { opacity: 1; }
.rec-cap .w { display: inline-block; padding: 4px .24em; margin: 2px 0; background: rgba(0, 0, 0, .6); opacity: 0; transform: translateY(8px); animation: cap-word .4s var(--ease) forwards; animation-delay: calc(var(--i) * 85ms); }
@keyframes cap-word { to { opacity: 1; transform: none; } }
.rec-cc { position: absolute; top: 22px; right: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #975adb; color: #fff; font: 800 15px/1 var(--sans); letter-spacing: -0.01em; }
.rec-cc::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.rec-crop { position: absolute; inset: 0; z-index: 26; pointer-events: none; --cl: 0; --cr: 0; --ct: 0; --cb: 0; --x0: 0px; --x1: 100%; }
.crop-dim { position: absolute; background: rgba(0, 0, 0, .58); transition: transform .8s var(--ease); }
.crop-dim--l { left: 0; top: 0; bottom: 0; width: 50%; transform-origin: left; transform: scaleX(var(--cl)); }
.crop-dim--r { right: 0; top: 0; bottom: 0; width: 50%; transform-origin: right; transform: scaleX(var(--cr)); }
.crop-edge { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px; background: #975adb; opacity: 0; transition: transform .8s var(--ease), opacity var(--t-ui) var(--ease-ui); }
.crop-edge--l { transform: translateX(var(--x0)); }
.crop-edge--r { transform: translateX(var(--x1)); }
.rec-crop.is-on .crop-edge { opacity: 1; }
.crop-label {
  position: absolute; left: 50%; top: 28px; translate: -50% 6px; padding: 8px 16px; border-radius: 8px; background: rgba(18, 18, 18, .85);
  border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: 18px; letter-spacing: .06em; opacity: 0;
  transition: opacity var(--t-ui) var(--ease-ui), translate var(--t-move) var(--ease);
}
.rec-crop.is-on .crop-label { opacity: 1; translate: -50% 0; }
.rec-crop.is-phone-crop .crop-dim--l, .rec-crop.is-phone-crop .crop-dim--r { width: 100%; height: 50%; left: 0; right: 0; }
.rec-crop.is-phone-crop .crop-dim--l { top: 0; bottom: auto; transform-origin: top; transform: scaleY(var(--cl)); }
.rec-crop.is-phone-crop .crop-dim--r { top: auto; bottom: 0; transform-origin: bottom; transform: scaleY(var(--cr)); }
.rec-crop.is-phone-crop .crop-edge { top: 0; left: 0; right: 0; bottom: auto; width: auto; height: 3px; margin: -1.5px 0 0; }
.rec-crop.is-phone-crop .crop-edge--l { transform: translateY(var(--x0)); }
.rec-crop.is-phone-crop .crop-edge--r { transform: translateY(var(--x1)); }

/* H1 verbs follow the window's beat */
.vb { position: relative; display: inline-block; transition: color var(--t-move) var(--ease-ui); }
.vb::after { content: ""; position: absolute; left: .02em; right: .02em; bottom: .04em; height: .05em; min-height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.vb.is-on { color: var(--primary); }
.tw-on .vb::after { opacity: 0; }
.vb.is-on::after { transform: scaleX(1); transform-origin: left; }

/* orbit chips react to the beat */
.chip-in { transition: scale var(--t-move) var(--ease), border-color var(--t-ui) var(--ease-ui), color var(--t-ui) var(--ease-ui), box-shadow var(--t-move) var(--ease-ui); }
.chip.is-hot .chip-in { scale: 1.16; border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px rgba(115, 49, 189, .10), 0 14px 30px -12px rgba(115, 49, 189, .55); }
.chip-img { transition: filter var(--t-move) var(--ease-ui); }
.chip.is-hot .chip-img { filter: drop-shadow(0 8px 16px rgba(115, 49, 189, .45)); }

/* the step player's screens are a recording: not hit targets */
.screens { pointer-events: none; }

.rec-feed-anchor { position: absolute; right: 13%; top: 4%; width: 1px; height: 1px; }
/* the ghost box is 0 × 0: its glyphs must not inherit max-width: 100% */
.ghost svg { max-width: none; width: auto; }
.ghost .g-arrow { width: 22px; height: 22px; }
.ghost .g-hand { width: 26px; height: 26px; }

/* hero: tablet and phone */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-copy { max-width: 680px; }
  .hero-stage { padding: 72px 190px 92px 48px; max-width: 980px; width: 100%; justify-self: center; }
}
@media (max-width: 640px) {
  .hero { padding-top: 24px; }
  .reg { display: none; }
  .hero-h1 { font-size: clamp(38px, 11vw, 46px); }
  .lede { font-size: 17px; }
  .cta-row .btn { flex: 1 1 auto; }
  .hero-stage { padding: 52px 6px 8px 40px; }
  .iso-plane { --ry: -12deg; --rx: 7deg; --rz: .6deg; }
  .orbit { width: 118%; }
  .chip-img { height: 40px; }
  .dim-t { font-size: 10px; padding: 1px 5px; }
  .dim-w { transform: translateY(-30px); }
  .dim-h { transform: translate(-32px, var(--ph, 300px)) rotate(-90deg); }
  .dim-rl { transform: translate(-32px, calc(var(--ph, 300px) * var(--rl, .5))) rotate(-90deg); }
  .hero-stage.is-legend .balloons { margin-left: -34px; }
  .hero-stage.is-legend .tblock { margin-left: -34px; }
  .tblock > span { padding: 5px 9px; }
}

.pc { position: absolute; width: 1px; height: 1px; pointer-events: none; }
.pc-tl { left: 0; top: 0; } .pc-tr { right: 0; top: 0; } .pc-bl { left: 0; bottom: 0; } .pc-br { right: 0; bottom: 0; }
.bl-lines .bl-stub { fill: var(--anno); stroke: #fff; stroke-width: 1; stroke-linejoin: round; transition: opacity .25s var(--ease-ui); }

/* ==========================================================================
   RESPONSIVE: navigation and How it works
   ========================================================================== */
@media (min-width: 1800px) { :root { --maxw: 1480px; } }
@media (max-width: 1180px) { .nav-chip { display: none; } }
@media (max-width: 960px) {
  .nav-links, .nav-signin { display: none; }
  .nav-in { grid-template-columns: 1fr auto; }
  .nav-menu { display: inline-flex; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .how-ctl { position: static; }
  .step-line { display: none; }
  .step[aria-current="step"] .step-line { display: block; }
  .steps { margin-bottom: 8px; }
}
@media (max-width: 520px) {
  .brand img, .sheet-top img { width: 136px; }
  .nav-r .btn-sm { padding: 0 12px; }
}

.gh-click.gh-active { transform: scale(.96); transition: transform .12s var(--ease-ui); }

.rec .tzui-countdown { pointer-events: none; }

/* ==========================================================================
   PERFORMANCE: stable first paint
   ========================================================================== */
/* product screens know their shape before script runs (same breakpoints Fit() uses), so nothing resizes after load */
[data-hero] .fit { --dw: 1120; --dh: 630; }
.how-panel .fit { --dw: 880; --dh: 560; }
@media (max-width: 517px) { [data-hero] .fit { --dw: 390; --dh: 640; } }
@media (max-width: 593px) { .how-panel .fit { --dw: 400; --dh: 640; } }
/* camera surfaces start empty; script sets each slot's poster when it nears view (no stand-in download) */
[data-footage], [data-feed] { --tzui-feed: none; --tzui-feed-portrait: none; }
/* the hero's poster is a real image (LCP), the video fades in over it once it plays */
.feed-poster, .feed-poster img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
.feed-video { z-index: 1; }
.has-poster .feed-video { opacity: 0; transition: opacity .6s var(--ease-ui); }
.has-poster .feed-video.is-playing { opacity: 1; }
.has-poster::after { z-index: 2; }
.chip-in--img { padding: 0; border: 0; background: none; box-shadow: none; min-width: 0; height: auto; }
.tw-full { transition: color .25s var(--ease-ui); }

/* below-the-fold sections skip layout and paint until they near the viewport */
.features > section, main > section:not(.hero), .foot { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
/* hero layout does not depend on web-font metrics: both columns hang from the top */
@media (min-width: 1181px) {
  .hero-grid { align-items: start; }
  .hero-copy { padding-top: clamp(24px, 3.4vw, 52px); }
}
/* the recorder's script appears once the web font is in, so it never reflows on screen */
html:not(.fonts-ok) .rec-text { visibility: hidden; }
/* legend mode is decided by width in CSS (the same width script uses), so it never shifts after load */
@media (max-width: 695px) {
  .hero-stage .balloons { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 16px; margin-top: 30px; }
  .hero-stage .bl { position: static; transform: none !important; opacity: .45; transition-delay: 0s; }
  .hero-stage .bl.is-on { opacity: 1; }
  .hero-stage .bl-n { width: 24px; height: 24px; font-size: 11px; }
  .hero-stage .tblock { position: static; margin-top: 18px; width: max-content; max-width: 100%; flex-wrap: wrap; }
}
/* typewriter replay: the H1's own characters hide and come back one by one */
.tw-run .twc { visibility: hidden; }
.tw-run .twc.on { visibility: visible; }
/* the replay splits the H1 into characters; with kerning and ligatures off it measures the same before and after */
.hero-h1 { font-kerning: none; font-variant-ligatures: none; }
/* the two meta lines always stack, so a web-font swap can never re-wrap them and move the page */
.meta { flex-direction: column; gap: 8px; }
/* reserve the scrollbar from the first frame so the page never narrows once it grows taller */
html { scrollbar-gutter: stable; }
/* the header's button keeps one width whichever font is showing */
.nav-r .btn-sm { min-width: 96px; }
/* the replay caret floats over the heading; it never takes part in line breaking */
.hero-h1 > .tw-caret.tw-float { position: absolute; left: 0; top: 0; width: 0; height: .86em; pointer-events: none; }
/* the hero feed's dimmer is a flat tint (no backdrop blur over the LCP image) */
.has-poster::after { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, .14); }
