/* Metric-matched local fallbacks (measured against the web fonts: Inter at 105% keeps the hero copy on the same line breaks;
   ascent/descent divided by it), so the swap from fallback to web font does not move layout.
   Google Fonts load without blocking first paint. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); font-weight: 100 599; size-adjust: 105%; ascent-override: 92.4%; descent-override: 22.9%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); font-weight: 600 900; size-adjust: 105%; ascent-override: 92.4%; descent-override: 22.9%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 78.5%; ascent-override: 118.5%; descent-override: 34.4%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Kin Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 64%; ascent-override: 145.3%; descent-override: 42.2%; line-gap-override: 0%; }
/* ==========================================================================
   Teleprompterz · Variant 02 "Studio Floor" · Experimental creative studio
   Paper + purple floods, Bricolage Grotesque kinetic type, pointer physics.
   Product UI inside demos: an excerpt of assets/shared/product-ui/kit.css (tzui-*), below.
   Motion: one easing family (--ease, expo-out) for every CSS/WAAPI transition, JS springs for
   physics, and only transform/opacity animate (canvas demos excepted).
   ========================================================================== */

:root {
  /* app palette (frontend-analysis §2.1), light theme */
  --paper: #f5f3ff;
  --white: #ffffff;
  --ink: #1e1b2e;
  --body: #4c4666;
  --hair: #e9e5f5;
  --purple: #7331bd;
  --purple-deep: #61289f;
  --purple-lift: #975adb;
  --purple-end: #a479d4;
  --glow: rgba(115, 49, 189, .10);
  --ring: rgba(115, 49, 189, .55);
  --rec: #ef4444;
  --rec-deep: #dc2626;
  --dock: #0b0b0c;
  --word: #facc15;

  --display: "Bricolage Grotesque", "Bricolage Fallback", "Inter Fallback", system-ui, sans-serif;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* one container, one gutter, one section rhythm */
  --gut: clamp(16px, 4vw, 64px);
  --max: 1440px;
  --sec-pad: clamp(80px, 9vw, 136px);
  --head-h: 76px;
  --shadow-sticker: 0 1px 0 rgba(30, 27, 46, .05), 0 18px 40px -12px rgba(30, 27, 46, .28);
  --shadow-lift: 0 2px 0 rgba(30, 27, 46, .05), 0 34px 60px -18px rgba(30, 27, 46, .45);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* paper grain: the V2 asset first, an inline SVG noise underneath */
  --grain-img: url("../assets/variant-02-experimental/motion/paper-grain.webp");
  --grain-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .12  0 0 0 0 .1  0 0 0 0 .18  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ==========================================================================
   EXCERPT of assets/shared/product-ui/kit.css: tokens, base, primitives, recorder,
   prompter settings, editor, script, animations. Copied, not linked, so no local font
   files load (Inter comes from Google Fonts). Kit class names unchanged.
   ========================================================================== */
.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: none;
  --tzui-feed-portrait: none;
}
.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 { 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 { 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; }

/* ==========================================================================
   EDITOR (src/features/editor: EditorPage, layout/TopBar + DesktopLayout + PhoneLayout,
   preview/PreviewPanel, timeline/*, panels/*, export/ExportDialog; editor.css)
   ========================================================================== */
.tzui-ed { container-type: inline-size; container-name: tzui-ed; }
.tzui-ed-root { display: flex; flex-direction: column; height: var(--tzui-ed-height, 820px); overflow: hidden; background: var(--tzui-bg-2); color: var(--tzui-text); position: relative; }
.tzui-ed-surface { background: var(--tzui-bg); border: 1px solid var(--tzui-border); }
.tzui-ed-top { display: flex; height: 56px; flex-shrink: 0; align-items: center; gap: 8px; border-bottom: 1px solid var(--tzui-border); background: var(--tzui-bg); padding: 0 12px; }
.tzui-ed-ib { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 10px; color: var(--tzui-text); }
.tzui-ed-ib--on { background: var(--tzui-primary-glow); color: var(--tzui-primary); }
.tzui-ed-title { flex: 1; min-width: 0; }
.tzui-ed-title > p { display: none; font-size: 10px; line-height: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--tzui-primary); }
.tzui-ed-title > h1 { font-size: 14px; line-height: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.025em; }
.tzui-ed-undo { display: none; align-items: center; }
.tzui-ed-status { display: none; max-width: 220px; font-size: 12px; line-height: 16px; color: var(--tzui-text-2); white-space: nowrap; }
.tzui-ed-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tzui-success); flex-shrink: 0; margin: 0 4px; }
.tzui-ed-top .tzui-btn { padding: 8px 12px; font-size: 12px; line-height: 16px; }
.tzui-ed-top .tzui-btn--primary { padding: 8px 16px; }
.tzui-ed-save { display: none !important; }
.tzui-ed-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tzui-ed-main { min-height: 0; padding: 8px 8px 0; display: flex; flex-direction: column; }
.tzui-ed-preview { flex: 1; min-height: 0; min-width: 0; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.tzui-ed-stagearea { position: relative; flex: 1; min-height: 0; }
.tzui-ed-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: calc(100% - 24px); aspect-ratio: var(--tzui-ed-aspect, 9 / 16); max-width: calc(100% - 24px); overflow: hidden; background: #000; container-type: inline-size; }
.tzui-ed-stage-feed { position: absolute; inset: 0; background: var(--tzui-feed) center / cover no-repeat; }
.tzui-ed-stage--portrait .tzui-ed-stage-feed { background-image: var(--tzui-feed-portrait); }
/* editor caption preset "Box": Inter 700 48px @1080 wide, #000 box at 60%, padding 12, y 0.82 */
.tzui-ed-cap { position: absolute; left: 50%; top: 82%; transform: translate(-50%, -50%); max-width: 90%; text-align: center; font-family: var(--tzui-font); font-weight: 700; font-size: calc(48 / 1080 * 100cqw); line-height: 1.2; letter-spacing: 0; color: #fff; }
.tzui-ed-cap > span { background: rgba(0, 0, 0, .6); padding: calc(12 / 1080 * 100cqw); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tzui-ed-transport { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; gap: 4px; }
.tzui-ed-play { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9999px; background: var(--tzui-primary); color: #fff; flex-shrink: 0; }
.tzui-ed-time { padding: 0 8px; font-size: 12px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tzui-text-2); white-space: nowrap; letter-spacing: -0.025em; }
.tzui-ed-time > b { font-weight: 600; color: var(--tzui-text); }
.tzui-ed-tr-r { position: relative; margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tzui-ed-tr-r > .tzui-ed-pop { left: 0; bottom: calc(100% + 4px); }
.tzui-ed-ratio-btn { display: none !important; }
.tzui-ed-split-v, .tzui-ed-split-h { display: flex; align-items: center; justify-content: center; flex: none; }
.tzui-ed-split-v { width: 12px; }
.tzui-ed-split-h { height: 12px; }
.tzui-ed-split-v > i, .tzui-ed-split-h > i { border-radius: 9999px; background: var(--tzui-border); }
.tzui-ed-split-v > i { width: 4px; height: 40px; }
.tzui-ed-split-h > i { width: 40px; height: 4px; }
.tzui-ed-insp { display: none; border-radius: 16px; overflow: hidden; flex-direction: column; min-height: 0; }
.tzui-ed-insp-head { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px; background: var(--tzui-bg); border-bottom: 1px solid var(--tzui-border); flex-shrink: 0; }
.tzui-ed-insp-head h2 { font-size: 14px; line-height: 20px; font-weight: 700; }
.tzui-ed-insp-body { flex: 1; overflow: hidden; padding: 16px; display: flex; flex-direction: column; gap: 24px; }
.tzui-ed-act { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--tzui-border); font-size: 12px; font-weight: 600; color: var(--tzui-text); background: var(--tzui-bg); line-height: 16px; }
.tzui-ed-act--danger { color: #ef4444; }
.tzui-ed-sec { display: flex; flex-direction: column; gap: 10px; }
.tzui-ed-sec > h3 { font-size: 11px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--tzui-text-2); }
.tzui-ed-seg { display: flex; gap: 4px; border-radius: 12px; padding: 4px; background: var(--tzui-bg-2); border: 1px solid var(--tzui-border); }
.tzui-ed-seg > span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; border-radius: 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--tzui-text-2); padding: 0 8px; white-space: nowrap; }
.tzui-ed-seg > .tzui-on { background: var(--tzui-primary-glow); color: var(--tzui-primary); }
.tzui-ed-insp-body { container-type: inline-size; container-name: tzui-edadd; }
.tzui-ed-tabs { display: flex; }
@container tzui-edadd (max-width: 640px) {
  .tzui-ed-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tzui-ed-tabs > span:last-child:nth-child(3n + 2) { grid-column: span 2; }
}
@container tzui-edadd (min-width: 641px) and (max-width: 939px) {
  .tzui-ed-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tzui-ed-tabs > span { min-height: 36px; }
.tzui-ed-chip { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 9999px; border: 1px solid var(--tzui-border); background: var(--tzui-bg-2); color: var(--tzui-text-2); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.tzui-ed-chip--row { width: 100%; border-radius: 10px; }
.tzui-ed-chip--on { background: var(--tzui-primary-glow); border-color: var(--tzui-primary); color: var(--tzui-primary); }
.tzui-ed-chip > .tzui-ed-chip-ic { display: inline-flex; width: 16px; justify-content: center; flex-shrink: 0; }
.tzui-ed-chip-hint { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; font-size: 11px; font-weight: 500; color: var(--tzui-text-2); }
.tzui-ed-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tzui-ed-note { font-size: 12px; line-height: 16px; color: var(--tzui-text-2); font-variant-numeric: tabular-nums; }
.tzui-ed-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tzui-ed-ftile { display: block; min-width: 0; padding: 4px; border-radius: 10px; border: 1px solid var(--tzui-border); color: var(--tzui-text-2); text-align: center; }
.tzui-ed-ftile--on { background: var(--tzui-primary-glow); border-color: var(--tzui-primary); color: var(--tzui-primary); }
.tzui-ed-fsw { position: relative; display: block; width: 100%; margin-bottom: 4px; overflow: hidden; border-radius: 6px; background: #222 center / cover no-repeat; padding-top: 56.25%; }
.tzui-ed-fsw > .tzui-ed-fsw-ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .4); color: #fff; }
.tzui-ed-ftile > b { display: block; font-size: 11px; line-height: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tzui-ed-slider { display: block; }
.tzui-ed-slider > span { margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 16px; }
.tzui-ed-slider > span > b { font-weight: 600; }
.tzui-ed-slider > span > i { font-style: normal; font-variant-numeric: tabular-nums; color: var(--tzui-text-2); }
.tzui-ed-slider .tzui-range { margin: 3px 0; }
.tzui-ed-kind { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; background: #3b2a5c; flex-shrink: 0; }
.tzui-ed-cliphead { display: flex; align-items: center; gap: 10px; }
.tzui-ed-cliphead b { display: block; font-size: 14px; line-height: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tzui-ed-cliphead span { display: block; font-size: 12px; line-height: 16px; color: var(--tzui-text-2); font-variant-numeric: tabular-nums; }
.tzui-ed-acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* Ratio popover (timeline/Popover.jsx .ed-pop + CanvasPanel in a w-[288px] p-3 box) */
.tzui-ed-pop { position: absolute; z-index: 60; width: 296px; padding: 4px; border-radius: 12px; border: 1px solid var(--tzui-border); background: var(--tzui-bg); color: var(--tzui-text); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.tzui-ed-pop > div { padding: 12px; display: flex; flex-direction: column; gap: 20px; }
.tzui-ed-swatches { display: flex; flex-wrap: wrap; gap: 6px; }

/* timeline */
.tzui-ed-tl { background: var(--tzui-bg); border-top: 1px solid var(--tzui-border); display: flex; flex-direction: column; min-height: 0; flex: 1; user-select: none; }
.tzui-ed-tlbar { display: flex; flex-shrink: 0; align-items: center; gap: 4px; height: 52px; padding: 0 8px; border-bottom: 1px solid var(--tzui-border); }
.tzui-ed-zoom { position: relative; width: 64px; height: 16px; flex-shrink: 0; }
.tzui-ed-zoom::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--tzui-text-2) 35%, transparent); }
.tzui-ed-zoom::after { content: ""; position: absolute; left: 0; width: var(--tzui-zoom, 30%); top: 6px; height: 4px; border-radius: 2px; background: var(--tzui-primary); }
.tzui-ed-zoom > i { position: absolute; top: 0; left: calc(var(--tzui-zoom, 30%) - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--tzui-primary); }
.tzui-ed-tladd { display: inline-flex; align-items: center; gap: 2px; height: 44px; min-width: 44px; padding: 0 4px; border-radius: 10px; border: 1px solid var(--tzui-border); font-size: 12px; font-weight: 600; color: var(--tzui-text); justify-content: center; line-height: 16px; }
.tzui-ed-tladd > span { display: none; }
.tzui-ed-tlgrow { flex: 1; }
.tzui-ed-tlscroll { position: relative; flex: 1; min-height: 0; overflow: hidden; --tzui-head-w: 68px; --tzui-pps: 80px; }
.tzui-ed-ruler { position: relative; display: flex; height: 45px; background: var(--tzui-bg-2); border-bottom: 1px solid var(--tzui-border); }
.tzui-ed-ruler > .tzui-ed-head { background: var(--tzui-bg-2); border-bottom: 0; }
.tzui-ed-lane { position: relative; flex: 1; overflow: hidden; }
.tzui-ed-tick { position: absolute; bottom: 0; width: 1px; height: 5px; background: var(--tzui-border); }
.tzui-ed-tick--major { height: 10px; background: var(--tzui-text-2); }
.tzui-ed-tick > b { position: absolute; bottom: 11px; left: 3px; font-size: 10px; line-height: 12px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--tzui-text-2); letter-spacing: 0; }
.tzui-ed-trow { display: flex; }
.tzui-ed-head { position: relative; z-index: 15; width: var(--tzui-head-w); flex-shrink: 0; background: var(--tzui-bg); border-right: 1px solid var(--tzui-border); border-bottom: 1px solid var(--tzui-border); color: var(--tzui-text); display: flex; flex-direction: column; justify-content: center; padding: 0 6px; }
.tzui-ed-head--active { box-shadow: inset 3px 0 0 var(--tzui-primary); }
.tzui-ed-head-name { display: flex; min-width: 0; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; line-height: 11px; }
.tzui-ed-head-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tzui-ed-head-btns { display: none; align-items: center; }
.tzui-ed-head-btns > span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; color: var(--tzui-text-2); }
.tzui-ed-head--short .tzui-ed-head-btns > span { height: 22px; }
.tzui-ed-head-more { display: flex; align-items: center; justify-content: space-between; flex-direction: row; padding-left: 6px; }
.tzui-ed-head-more .tzui-ed-head-name { gap: 6px; }
.tzui-ed-head-more .tzui-ed-head-name > span { display: none; }
.tzui-ed-row { position: relative; flex: 1; border-bottom: 1px solid var(--tzui-border); overflow: hidden; }
.tzui-ed-row--active { background: var(--tzui-primary-light); }
.tzui-ed-clip { position: absolute; top: 4px; bottom: 4px; left: calc(16px + var(--s) * var(--tzui-pps)); width: calc(var(--d) * var(--tzui-pps)); border-radius: 8px; overflow: hidden; }
.tzui-ed-clip--video { background: var(--tzui-clip-video); }
.tzui-ed-clip--text { display: flex; align-items: center; background: var(--tzui-clip-text); color: #fff; }
.tzui-ed-clip--audio { background: var(--tzui-clip-audio); }
.tzui-ed-clip--captions { display: flex; align-items: center; background: var(--tzui-clip-captions); color: #fff; }
.tzui-ed-clip--sel { outline: 2px solid var(--tzui-primary); outline-offset: -2px; }
.tzui-ed-thumbs { position: absolute; top: 4px; left: 0; right: 0; bottom: 4px; background: var(--tzui-thumb, url("../assets/shared/product-ui/media/take-1.webp")) left center / auto 100% repeat-x; }
.tzui-ed-handle { position: absolute; top: 0; bottom: 0; width: 20px; background: var(--tzui-primary); opacity: .9; }
.tzui-ed-handle--s { left: 0; border-radius: 8px 0 0 8px; }
.tzui-ed-handle--e { right: 0; border-radius: 0 8px 8px 0; }
.tzui-ed-cliptext { padding: 0 8px; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.025em; }
.tzui-ed-captext { min-width: 0; flex: 1; overflow: hidden; padding: 0 6px; font-size: 11px; line-height: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tzui-ed-clipname { position: absolute; top: 2px; left: 6px; font-size: 10px; line-height: 12px; font-weight: 600; white-space: nowrap; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); z-index: 1; }
.tzui-ed-wave { position: absolute; left: 0; right: 0; top: 14px; bottom: 2px; }
.tzui-ed-wave > svg { display: block; width: 100%; height: 100%; }
.tzui-ed-playhead { position: absolute; top: 0; bottom: 0; left: calc(var(--tzui-head-w) + 16px + var(--tzui-t, 0) * var(--tzui-pps)); width: 2px; margin-left: -1px; background: #ef4444; z-index: 10; pointer-events: none; }
.tzui-ed-playhead::before { content: ""; position: absolute; top: 0; left: -5px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #ef4444; }
.tzui-ed-marker { position: absolute; top: 2px; bottom: 0; left: calc(var(--tzui-head-w) + 16px + var(--m) * var(--tzui-pps)); width: 0; border-left: 1px dashed rgba(245, 158, 11, .55); z-index: 5; }
.tzui-ed-marker::before { content: ""; position: absolute; top: 0; left: -1px; width: 2px; height: 43px; background: #f59e0b; }
.tzui-ed-marker::after { content: ""; position: absolute; top: 0; left: 1px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid #f59e0b; }
/* phone bottom toolbar (layout/PhoneLayout.jsx) */
.tzui-ed-toolbar { display: flex; flex-shrink: 0; height: 64px; align-items: center; justify-content: space-around; border-top: 1px solid var(--tzui-border); background: var(--tzui-bg); padding: 0 8px; }
.tzui-ed-tool { display: inline-flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 44px; max-width: 76px; min-height: 52px; border-radius: 12px; color: var(--tzui-text); }
.tzui-ed-tool > span { font-size: 10px; line-height: 15px; font-weight: 600; }
/* export dialog (export/ExportDialog.jsx) */
.tzui-ed-modal { position: absolute; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .6); }
.tzui-dlg { width: 100%; display: flex; flex-direction: column; gap: 20px; border-radius: 24px 24px 0 0; border: 1px solid var(--tzui-border); background: var(--tzui-bg-2); padding: 24px; color: var(--tzui-text); }
.tzui-dlg-head { text-align: center; display: flex; flex-direction: column; gap: 12px; }
.tzui-dlg-ic { margin: 0 auto; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tzui-dlg-ic--primary { background: var(--tzui-primary-glow); color: var(--tzui-primary); }
.tzui-dlg-ic--success { background: rgba(34, 197, 94, .1); color: #22c55e; }
.tzui-dlg h2 { font-size: 18px; line-height: 28px; font-weight: 700; }
.tzui-dlg-head > div { font-size: 14px; line-height: 20px; color: var(--tzui-text-2); }
.tzui-dlg-bar { height: 8px; width: 100%; overflow: hidden; border-radius: 9999px; background: var(--tzui-bg); }
.tzui-dlg-bar > i { display: block; height: 100%; width: var(--tzui-pct, 42%); border-radius: 9999px; background: var(--tzui-primary); }
.tzui-dlg-pct { margin-top: 8px; text-align: center; font-size: 12px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tzui-dlg-btns { display: flex; gap: 12px; }
.tzui-dlg-btns > * { flex: 1; }
.tzui-dlg-col { display: flex; flex-direction: column; gap: 12px; }
.tzui-dlg-link { margin: 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--tzui-text-2); text-decoration: underline; }
.tzui-dlg .tzui-spin { animation: tzui-spin 1s linear infinite; }

@container tzui-ed (min-width: 768px) {
  .tzui-ed-modal { align-items: center; }
  .tzui-dlg { max-width: 448px; border-radius: 24px; }
  .tzui-dlg-row { flex-direction: row; }
  .tzui-ed-status { display: block; }
  .tzui-ed-dot { display: none; }
  .tzui-ed-save { display: inline-flex !important; }
  .tzui-ed-undo { display: flex; }
  .tzui-ed-ib { min-width: 36px; min-height: 36px; }
  .tzui-ed-play { width: 40px; height: 40px; }
  .tzui-ed-ratio-btn { display: inline-flex !important; }
  .tzui-ed-main { padding: 12px 12px 0; }
  .tzui-ed-tlscroll { --tzui-head-w: 112px; }
  .tzui-ed-tlbar { height: 44px; }
  .tzui-ed-tladd { height: 32px; padding: 0 10px; gap: 4px; }
  .tzui-ed-tladd > span { display: inline; }
  .tzui-ed-tladd > .tzui-ic:nth-child(2) { display: none; }
  .tzui-ed-zoom { width: 128px; }
  .tzui-ed-ruler { height: 28px; }
  .tzui-ed-marker::before { height: 26px; }
  .tzui-ed-handle { width: 10px; }
  .tzui-ed-head-btns { display: flex; }
  .tzui-ed-head-more .tzui-ed-ib { display: none; }
  .tzui-ed-head-more { flex-direction: column; align-items: stretch; justify-content: center; padding: 0 6px; }
  .tzui-ed-head-more .tzui-ed-head-name { gap: 4px; }
  .tzui-ed-head-more .tzui-ed-head-name > span { display: inline; }
  .tzui-ed-toolbar { display: none; }
}
@container tzui-ed (min-width: 992px) {
  .tzui-ed-title > p { display: block; }
  .tzui-ed-main { flex-direction: row; flex: 1; }
  .tzui-ed-insp { display: flex; width: 40%; min-width: 300px; }
  .tzui-ed-body > .tzui-ed-tl { flex: none; height: var(--tzui-ed-tl-h, 280px); }
  .tzui-ed-split-h { display: flex; }
}
@container tzui-ed (max-width: 574px) {
  .tzui-ed-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container tzui-ed (max-width: 991px) {
  .tzui-ed-split-v { display: none; }
  .tzui-ed-main { flex: none; height: var(--tzui-ed-preview-h, 45%); }
}
@container tzui-ed (max-width: 767px) {
  .tzui-ed-main { height: var(--tzui-ed-preview-h, 38%); padding: 8px 8px 0; }
  .tzui-ed-preview { border-radius: 16px; }
  .tzui-ed-split-h { display: none; }
  .tzui-ed-tl { margin-top: 4px; border: 1px solid var(--tzui-border); border-width: 1px 0 0; }
}

/* ==========================================================================
   SCRIPT (src/pages/Script.jsx detail view, src/pages/CreateScript.jsx)
   ========================================================================== */
.tzui-sc-top { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.tzui-sc-back { display: flex; align-items: center; gap: 8px; color: var(--tzui-gray-label); font-size: 14px; line-height: 20px; font-weight: 500; }
.tzui-sc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--tzui-card); background-image: var(--tzui-card-sheen); border: 1px solid var(--tzui-border); border-radius: 12px; padding: 8px; box-shadow: var(--tzui-shadow-sm); }
.tzui-sc-tools .tzui-select { width: auto; }
.tzui-sc-div { width: 1px; height: 20px; background: var(--tzui-border); }
.tzui-sc-tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 12px 24px; font-size: 12px; line-height: 16px; font-weight: 600; border: 1px solid var(--tzui-border); background: transparent; color: var(--tzui-text); white-space: nowrap; }
.tzui-sc-tool--green { border-color: #10b981; color: #10b981; }
.tzui-sc-tool--primary { border-color: var(--tzui-primary); color: var(--tzui-primary); }
.tzui-sc-tool--indigo { border-color: #6366f1; color: #6366f1; }
.tzui-sc-tool--solid { border: 0; background: var(--tzui-primary); color: #fff; }
.tzui-sc-titlebar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; border-bottom: 1px solid var(--tzui-border); padding-bottom: 16px; }
.tzui-sc-eyebrow { color: var(--tzui-primary); font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.tzui-sc-titlebar h1 { margin-top: 4px; font-size: 20px; line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
.tzui-sc-tactions { display: flex; align-items: center; gap: 16px; }
.tzui-sc-tactions > span { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--tzui-primary); }
.tzui-sc-tactions > .tzui-sc-del { color: #ef4444; }
[data-tzui-theme="dark"] .tzui-sc-del { color: #f87171 !important; }
.tzui-sc-stack { display: flex; flex-direction: column; gap: 24px; }
.tzui-sc-body { box-shadow: var(--tzui-shadow-md); display: flex; flex-direction: column; gap: 24px; font-size: 14px; line-height: 20px; }
.tzui-sc-lbl { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--tzui-primary); text-transform: uppercase; margin-bottom: 8px; }
.tzui-sc-hook { color: var(--tzui-text); font-weight: 500; white-space: pre-wrap; }
.tzui-sc-points { display: flex; flex-direction: column; gap: 8px; }
.tzui-sc-points > li { color: var(--tzui-text-2); font-weight: 500; }
.tzui-sc-cta { color: var(--tzui-text); font-weight: 500; font-style: italic; }
.tzui-sc-ins { padding: 20px; }
.tzui-sc-ins-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.tzui-sc-ins-head > div { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 700; }
.tzui-sc-ins-head .tzui-ic { color: var(--tzui-primary); }
.tzui-sc-badge { font-size: 10px; line-height: 15px; padding: 2px 8px; border-radius: 9999px; background: var(--tzui-primary-glow); color: var(--tzui-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.tzui-sc-field { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--tzui-border); }
.tzui-sc-field-h { display: flex; align-items: center; justify-content: space-between; }
.tzui-sc-field-h > span { font-size: 12px; line-height: 16px; color: var(--tzui-gray-label); font-weight: 500; }
.tzui-sc-field p { font-size: 14px; line-height: 20px; color: var(--tzui-text-2); }
.tzui-sc-copy { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--tzui-border); font-size: 12px; font-weight: 600; color: var(--tzui-text-2); }
/* CreateScript */
.tzui-cs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.tzui-cs-form { border-radius: 20px; background: var(--tzui-card); background-image: var(--tzui-card-sheen); padding: 24px; box-shadow: var(--tzui-shadow-sm); border: 1px solid var(--tzui-border); display: flex; flex-direction: column; gap: 20px; }
.tzui-cs-tabs { display: flex; padding: 6px; background: var(--tzui-bg-2); border-radius: 16px; border: 1px solid var(--tzui-border); }
.tzui-cs-tabs > span { flex: 1; text-align: center; padding: 12px 0; font-size: 13px; line-height: 19.5px; font-weight: 600; border-radius: 12px; color: var(--tzui-text-2); opacity: .7; }
.tzui-cs-tabs > .tzui-on { background: var(--tzui-card); box-shadow: var(--tzui-shadow-sm); color: var(--tzui-primary); opacity: 1; }
.tzui-cs-help { font-size: 12px; line-height: 16px; color: var(--tzui-text-2); padding: 0 4px; }
.tzui-cs-lbl-caps { display: block; font-size: 10px; line-height: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .2em; color: var(--tzui-text); opacity: .6; margin-bottom: 8px; padding-left: 4px; }
.tzui-cs-lbl-caps > em { font-style: normal; color: var(--tzui-primary); }
.tzui-cs-input { width: 100%; border-radius: 12px; border: 1px solid var(--tzui-border); padding: 12px 20px; font-size: 14px; line-height: 20px; background: var(--tzui-bg-2); color: var(--tzui-text-2); }
.tzui-cs-input--focus { border-color: var(--tzui-primary); box-shadow: 0 0 0 2px var(--tzui-primary-glow); color: var(--tzui-text); }
.tzui-cs-caret { display: inline-block; width: 1px; height: 18px; margin-left: 1px; vertical-align: -3px; background: var(--tzui-text); animation: tzui-blink 1s steps(1) infinite; }
.tzui-cs-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.tzui-cs-col { display: flex; flex-direction: column; gap: 8px; }
.tzui-cs-lbl { font-size: 13px; line-height: 19.5px; font-weight: 600; opacity: .75; padding: 0 4px; }
.tzui-cs-lblrow { display: flex; align-items: center; justify-content: space-between; }
.tzui-cs-req { font-size: 11px; line-height: 16px; color: #ef4444; font-weight: 600; }
.tzui-cs-submit { height: 56px; font-size: 15px; border-radius: 12px; box-shadow: var(--tzui-shadow-sm); }
.tzui-cs-aside { border-radius: 20px; background: var(--tzui-card); background-image: var(--tzui-card-sheen); padding: 24px; box-shadow: var(--tzui-shadow-sm); border: 1px solid var(--tzui-border); }
.tzui-cs-aside h2 { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: -0.015em; }
.tzui-cs-sum { margin-top: 8px; }
.tzui-cs-sum > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--tzui-border); }
.tzui-cs-sum > div:last-child { border-bottom: 0; }
.tzui-cs-sum dt { font-size: 12px; line-height: 16px; color: var(--tzui-text-2); }
.tzui-cs-sum dd { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; text-align: right; }
.tzui-cs-sum dd > small { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--tzui-text-2); }
.tzui-cs-list { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.tzui-cs-list > li { display: flex; gap: 12px; }
.tzui-cs-list-ic { width: 36px; height: 36px; border-radius: 8px; background: var(--tzui-primary-glow); color: var(--tzui-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tzui-cs-list div > b { display: block; font-size: 14px; line-height: 20px; font-weight: 600; }
.tzui-cs-list div > span { display: block; font-size: 12px; line-height: 1.625; color: var(--tzui-text-2); }
.tzui-cs-aside h2 + .tzui-cs-sum + h2 { margin-top: 20px; }
@container tzui-page (min-width: 575px) {
  .tzui-cs-form { padding: 40px; }
  .tzui-cs-aside { padding: 32px; }
  .tzui-cs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tzui-sc-titlebar { flex-direction: row; align-items: center; justify-content: space-between; }
  .tzui-sc-titlebar h1 { font-size: 24px; }
  .tzui-card--lg { padding: 32px; }
}
@container tzui-page (min-width: 992px) {
  .tzui-sc-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .tzui-cs-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

/* ---------- Animations ---------- */
@keyframes tzui-pulse { 50% { opacity: .5; } }
@keyframes tzui-ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes tzui-spin { to { transform: rotate(360deg); } }
@keyframes tzui-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tzui *, .tzui *::before, .tzui *::after { animation: none !important; }
}
.tzui-still *, .tzui-still *::before, .tzui-still *::after { animation: none !important; }

/* ====================== end of kit excerpt ====================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; scroll-padding-bottom: 120px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--sans); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
main > section, .page > section { position: relative; overflow-x: clip; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec-pad); }
.sec--flush-top { padding-top: 0; }
.sec--flush-bottom { padding-bottom: 0; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.flood :focus-visible, .record :focus-visible, .final :focus-visible, .dock :focus-visible, .plan--pro :focus-visible, .channel :focus-visible { outline-color: #fff; }

.skip {
  position: fixed; z-index: 100; left: 16px; top: 12px; padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* paper grain: painted into the section's own background (static), never an overlay
   blended over animated content */
.grain { position: relative; isolation: isolate; }
.grain::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain-img); background-size: 512px 512px; opacity: .06; mix-blend-mode: soft-light; }

/* ---------- shared type ---------- */
.h2 {
  font-family: var(--display); font-weight: 800; font-stretch: 84%;
  font-size: clamp(44px, 6.6vw, 112px); line-height: .94; letter-spacing: -0.018em; text-wrap: balance;
}
.lede { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--body); max-width: 44ch; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--purple-deep);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 4px var(--glow); animation: eb-pulse 1.6s ease-in-out infinite;
}
.eyebrow--on-dark { color: #f1e8ff; }
.eyebrow--on-dark::before { box-shadow: 0 0 0 4px rgba(255, 255, 255, .16); }
/* the app's pulsing eyebrow dot, as a transform loop that returns to its start (no seam) */
@keyframes eb-pulse { 50% { transform: scale(1.3); } }

.sec-head { position: relative; z-index: 2; display: grid; justify-items: start; gap: 20px; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto clamp(36px, 4.5vw, 64px); padding-inline: var(--gut); }
.sec-head--flush { padding-inline: 0; margin: 0; }
.sec-head--center { justify-items: center; text-align: center; }
.sec-head--center .lede { margin: 0 auto; }

.note {
  position: absolute; z-index: 4; pointer-events: none; white-space: nowrap;
  font: 600 clamp(22px, 1.75vw, 30px)/1 var(--hand); color: var(--purple); letter-spacing: 0;
}
.mk { position: absolute; width: 96px; height: 64px; overflow: visible; }
.mk path { fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.mk--a1 { width: 66px; height: 66px; }
.mk--a3 { width: 92px; height: 70px; }
.mk--a4 { width: 62px; height: 75px; }

.demo-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--body);
}
.demo-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--purple-lift); }
.demo-tag--dark { color: rgba(255, 255, 255, .7); }
.demo-tag--ink { color: var(--body); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px;
  border-radius: 9999px; border: 0; font: 600 16px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 4px 0 var(--purple); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--line:hover { background: #fff; }
.btn--paper { background: #fff; color: var(--purple-deep); box-shadow: 0 4px 0 var(--ink); }
.rec-dot {
  display: inline-block; width: 12px; height: 12px; flex: none; border-radius: 50%;
  background: var(--rec); box-shadow: 0 0 0 3px rgba(239, 68, 68, .28);
}
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #fff; border: 2px solid var(--ink); color: var(--ink); transition: transform .25s var(--ease);
}
.round-btn:hover { background: var(--ink); color: #fff; }
.round-btn:active { transform: scale(.94); }
.chunky {
  display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 24px; border-radius: 18px; cursor: pointer;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  font: 700 17px/1 var(--sans); transition: transform .2s var(--ease);
}
.chunky:active { transform: translateY(4px); }
.chunky[aria-pressed="true"] { background: var(--purple); color: #fff; }
.chunky .ic { width: 20px; height: 20px; }
.chunky--sm { min-height: 48px; padding: 0 18px; border-radius: 14px; font-size: 16px; box-shadow: 0 4px 0 var(--ink); }
.chunky--ghost { background: transparent; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 9999px; cursor: pointer;
  background: #fff; border: 1px solid var(--hair); color: var(--ink); font: 600 15px/1 var(--sans);
}
.pill-btn-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.pill-btn[aria-pressed="true"] .pill-btn-dot { background: #eab308; box-shadow: 0 0 0 3px rgba(234, 179, 8, .2); }
.pill-btn--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .9); }
.pill-btn--dark[aria-pressed="true"] { background: #fff; color: var(--ink); }
.pill-btn .ic { width: 16px; height: 16px; }

/* ==========================================================================
   Header (standard) + mobile menu
   ========================================================================== */
.site-head { position: relative; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--hair); }
.head-in { display: flex; align-items: center; gap: 16px; height: var(--head-h); max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.brand { display: inline-flex; flex: none; border-radius: 8px; }
.brand img { width: auto; height: 28px; }
.head-nav { display: none; margin-left: auto; }
.head-nav ul { display: flex; gap: 2px; }
.head-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font: 600 15px/1 var(--sans); color: var(--body); }
.head-nav a:hover, .head-nav a[aria-current="page"] { color: var(--ink); background: rgba(115, 49, 189, .08); }
.head-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { display: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--hair); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.head-signin { display: none; align-items: center; min-height: 44px; padding: 0 14px; font: 600 15px/1 var(--sans); text-decoration: none; border-radius: 10px; }
.head-signin:hover { background: rgba(115, 49, 189, .08); }
.head-start { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--hair); background: #fff; font: 600 15px/1 var(--sans); cursor: pointer; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%; padding: 12px var(--gut) 24px; background: var(--paper);
  border-bottom: 1px solid var(--hair); box-shadow: 0 30px 40px -24px rgba(30, 27, 46, .35); display: grid; gap: 16px;
}
.mm-links a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--hair); text-decoration: none; font: 800 26px/1 var(--display); font-stretch: 86%; letter-spacing: -0.01em; }
.mm-links a[aria-current="page"] { color: var(--purple); }
.mm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-menu .pill-btn { justify-self: start; }
@media (min-width: 560px) { .head-start { display: inline-flex; } }
@media (min-width: 1100px) {
  .head-nav { display: block; }
  .head-r { margin-left: 8px; }
  .icon-btn { display: grid; }
  .head-signin { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none !important; }
  .brand img { height: 32px; }
}

/* ==========================================================================
   Dock: V2's signature, shown only after the hero (never with the header)
   ========================================================================== */
.dock {
  position: fixed; z-index: 60; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 6px; padding: 6px;
  background: var(--dock); border: 1px solid rgba(39, 39, 42, .8); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .32);
  transform: translate3d(-50%, 140%, 0); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), opacity .3s var(--ease), visibility 0s linear .5s;
}
.dock.is-on { transform: translate3d(-50%, 0, 0); opacity: 1; visibility: visible; transition: transform .5s var(--ease), opacity .3s var(--ease), visibility 0s; }
.dock-shade {
  position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; height: 92px; pointer-events: none;
  background: linear-gradient(to top, var(--paper) 0%, rgba(245, 243, 255, .92) 45%, rgba(245, 243, 255, 0) 100%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.dock-shade.is-on { opacity: 1; }
.dock-links { display: flex; gap: 2px; }
.dock-links a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 12px; color: #a1a1aa; text-decoration: none; font: 600 15px/1 var(--sans);
}
.dock-links a:hover { color: #fff; background: rgba(39, 39, 42, .7); }
.dock-links .ic { width: 18px; height: 18px; }
.dock-links span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dock-price { display: none; }
.dock-start {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 14px; border-radius: 12px; white-space: nowrap;
  background: #fff; color: #0b0b0c; text-decoration: none; font: 700 15px/1 var(--sans); transition: transform .2s var(--ease);
}
.dock-start:active { transform: scale(.95); }
.dock-start .rec-dot { width: 11px; height: 11px; animation: rec-blink 2s ease-in-out infinite; }
@keyframes rec-blink { 50% { opacity: .45; } }
@media (min-width: 768px) {
  .dock-links a { padding: 0 14px; }
  .dock-links .ic { display: none; }
  .dock-links span { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
  .dock-price { display: block; }
  .dock { gap: 10px; }
}
/* the page's last section leaves room for the dock */
main { padding-bottom: 0; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero { padding: clamp(24px, 3vw, 40px) var(--gut) clamp(48px, 5vw, 72px); background-color: var(--paper); overflow: hidden; }
.wake { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; color: var(--ink); }
.hero-grid {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; display: grid; gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "badge" "title" "meta" "screen" "floor" "box";
}
.badge {
  grid-area: badge; justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 14px 0 12px;
  border-radius: 9999px; background: #fff; border: 1px solid var(--hair); box-shadow: 0 1px 2px rgba(30, 27, 46, .05);
  font: 700 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--purple-deep);
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px var(--glow); animation: eb-pulse 1.6s ease-in-out infinite; }
.kin {
  grid-area: title; margin: 0; color: var(--ink); justify-self: start;
  font-family: var(--display); font-weight: 700; font-size: clamp(54px, 16vw, 112px); line-height: .88; letter-spacing: -0.012em;
  font-variation-settings: "wght" 640, "wdth" 76, "opsz" 96;
}
.kin-vis { display: block; }
.kin-line { display: block; white-space: nowrap; }
.kin-line--2 { padding-left: .55em; }
.kin-line--4 { padding-left: .9em; }
.kin .w--lens, .kin .w--up { color: var(--purple); }
.hero-meta { grid-area: meta; display: grid; gap: 18px; max-width: 540px; }
.hero-sub { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--body); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 16px; font-weight: 500; color: var(--body); }
.hero-screen { grid-area: screen; justify-self: center; margin: 12px 0 0; width: min(76vw, 300px); transform: rotate(3deg); position: relative; z-index: 2; }
.sticker { background: #fff; padding: 9px; border-radius: 30px; box-shadow: var(--shadow-lift); }
.sticker > .demo-tag { margin: 10px 0 2px 10px; }
.box-list { grid-area: box; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 16px; font-weight: 600; color: var(--body); position: relative; z-index: 3; }
.box-list ul { display: flex; flex-wrap: wrap; gap: 6px; }
.box-list li { padding: 6px 12px; border-radius: 9999px; background: #fff; border: 1px solid var(--hair); color: var(--ink); font-size: 15px; }
.tile-floor { grid-area: floor; height: calc(2 * (var(--ts) + 44px)); --ts: 84px; }

/* product screens (kit recorder, sized for the page) */
.scr { --tzui-feed: none; --tzui-feed-portrait: none; border-radius: 22px; isolation: isolate; }
.scr-feed { background: #000; }
.scr-feed img, .scr-feed video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scr--portrait { --tzui-rec-aspect: 9 / 16; --tzui-prompter-size: 21px; }
.scr .tzui-rec-scroller { position: absolute; left: 0; right: 0; top: 64px; bottom: 96px; height: auto; max-width: 768px; margin: 0 auto; overflow: hidden; transition: opacity .3s var(--ease); }
.scr-mirror { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform .7s var(--ease); }
.scr-mirror.is-mirrored { transform: scaleX(-1); }
.scr-text { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.scr .tzui-w { transition: color .3s; }
.scr .tzui-w-label { margin: .9em 0; }
.scr .tzui-meter > i { height: 100%; transform: scaleY(var(--s, .1)); transform-origin: 50% 100%; }
.scr .tzui-rec-top { justify-content: center; }
.scr .tzui-rec-top-r { position: absolute; right: 16px; top: 12px; }
.scr-line { top: 50%; }
.scr-set { cursor: pointer; }
.scr-set[aria-expanded="true"] { color: #fff; border-color: rgba(115, 49, 189, .9); background: rgba(115, 49, 189, .25); }
.scr--portrait .tzui-rec-top { padding: 10px; }
.scr--portrait .tzui-rec-pill { padding: 5px 9px; gap: 6px; }
.scr--portrait .tzui-mic-text { display: inline; }
.scr--portrait .tzui-rec-pill-div, .scr--portrait .tzui-rec-pill-mode { display: none; }
.scr--portrait .tzui-rec-scroller { top: 54px; bottom: 82px; }
.scr-barwrap { bottom: 12px; padding: 0 10px; }
.scr-barwrap .tzui-bar { padding: 12px; }
.scr .tzui-progress > i { transition: transform .3s linear; }
.scr .tzui-play, .scr .tzui-pbtn, .scr .tzui-finish, .scr .tzui-size button, .scr .tzui-tog { cursor: pointer; }
.scr .tzui-play:not(.tzui-play--on) { background: linear-gradient(135deg, var(--purple), var(--purple-end)); }
.scr .tzui-play:active, .scr .tzui-pbtn:active, .scr .tzui-tog:active { transform: scale(.93); }
.scr .tzui-pbtn:hover { color: #fff; }
.scr .tzui-size button { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #a1a1aa; }
.scr .tzui-size button:hover { color: #fff; }
.scr .tzui-finish[aria-disabled="true"] { cursor: default; }
.scr :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* tiles */
.tiles { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.tile {
  --ts: 84px; position: absolute; left: 0; top: 0; width: var(--ts); pointer-events: auto; touch-action: none;
  cursor: grab; user-select: none; -webkit-user-select: none; will-change: transform; transform: translate3d(-999px, -999px, 0);
}
.tile.is-held { cursor: grabbing; z-index: 10; }
.tile-face { position: relative; width: var(--ts); height: var(--ts); border-radius: 30%; overflow: hidden; background: #fff; box-shadow: var(--shadow-sticker); outline: 4px solid #fff; }
.tile-pill {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); height: 26px; padding: 0 11px;
  display: inline-flex; align-items: center; border-radius: 9999px; background: var(--ink); color: #fff;
  font: 700 12px/1 var(--sans); letter-spacing: .02em; white-space: nowrap; box-shadow: 0 6px 14px rgba(30, 27, 46, .2);
}
.slot-img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); }
.slot-img.is-loaded { opacity: 1; }
.tile-fb { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 5%; padding: 16%; }
.has-asset > .tile-fb, .has-asset > .slot-fb { visibility: hidden; }
.tile-fb i { display: block; height: 7%; border-radius: 9px; background: currentColor; opacity: .22; }
.tile-fb i.s { width: 62%; }
.tile-fb b { font: 800 calc(var(--ts) * .065)/1 var(--sans); letter-spacing: .2em; opacity: .45; }
.tile-fb--script { background: #fff; color: var(--ink); }
.tile-fb--script b { color: var(--purple); opacity: .9; }
.tile-fb--prompter { background: #050505; color: #fff; align-items: center; text-align: center; }
.tile-fb--prompter i { width: 100%; opacity: .16; }
.tile-fb--prompter i.d { opacity: .3; }
.tile-fb--prompter span { font: 400 calc(var(--ts) * .11)/1.2 var(--sans); white-space: nowrap; }
.tile-fb--prompter em { font-style: normal; color: var(--word); filter: drop-shadow(0 0 6px rgba(251, 176, 64, .5)); }
.tile-fb--camera { background: radial-gradient(circle at 30% 25%, #4b3a74, #1a1428 70%); align-items: center; justify-content: center; }
.tile-fb--camera .lens { width: 52%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #9a7be0 0 8%, #2a1c48 22%, #050307 60%); box-shadow: 0 0 0 4px #2b2340, 0 0 0 7px #120e1d; }
.tile-fb--camera .rec { position: absolute; top: 12%; left: 12%; display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 6px; background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .3); color: #ef4444; font: 700 calc(var(--ts) * .07)/1 var(--sans); letter-spacing: .1em; }
.tile-fb--camera .rec i { width: 5px; height: 5px; border-radius: 50%; background: #ef4444; opacity: 1; }
.tile-fb--captions { background: linear-gradient(160deg, #5a3a8a, #241838); align-items: center; justify-content: flex-end; padding-bottom: 18%; }
.tile-fb--captions span { padding: 4px 6px; background: rgba(0, 0, 0, .6); color: #fff; font: 700 calc(var(--ts) * .09)/1.2 var(--sans); text-align: center; }
.tile-fb--music { background: #2a4f2f; color: #fff; justify-content: flex-end; }
.tile-fb--music .wave { height: 38%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .62) 0 2px, transparent 2px 5px); mask-image: radial-gradient(ellipse 60% 100% at 50% 100%, #000 55%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 100%, #000 55%, transparent 100%); }
.tile-fb--music b { opacity: .85; letter-spacing: .02em; font-weight: 700; font-size: calc(var(--ts) * .08); }
.tile-fb--export { background: var(--purple); flex-direction: row; align-items: flex-end; justify-content: center; gap: 7%; }
.tile-fb--export i { height: auto; opacity: 1; background: none; border: 2px solid #fff; border-radius: 4px; }
.tile-fb--export .r916 { width: 24%; aspect-ratio: 9 / 16; }
.tile-fb--export .r11 { width: 30%; aspect-ratio: 1; }
.tile-fb--export .r169 { width: 34%; aspect-ratio: 16 / 9; }
.note--hero-screen { display: none; }

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(200px, 28vw, 380px); column-gap: clamp(24px, 4vw, 72px); row-gap: 20px;
    grid-template-areas: "badge screen" "title screen" "meta screen" "box screen" "floor floor";
    align-items: start;
  }
  .kin { font-size: clamp(64px, 11.4vw, 150px); }
  .hero-screen { justify-self: end; width: 100%; margin-top: 4px; }
  .tile, .tile-floor { --ts: 92px; }
  .tile-floor { height: calc(var(--ts) + 56px); }
}
@media (min-width: 1100px) {
  .kin { font-size: min(8.8vw, 14svh, 168px); }
  .hero-grid {
    grid-template-columns: minmax(0, auto) minmax(260px, 1fr) clamp(260px, 22vw, 340px);
    grid-template-areas: "badge . screen" "title zone screen" "meta zone screen" "box zone screen";
  }
  .tile-floor { grid-area: zone; height: auto; align-self: stretch; min-height: 420px; --ts: 120px; }
  .tile { --ts: 120px; }
  .note--hero-screen { display: block; right: calc(var(--gut) + clamp(260px, 22vw, 340px) - 20px); bottom: 64px; transform: rotate(-4deg); }
  .note--hero-screen .mk { right: -70px; top: -58px; }
}

/* ==========================================================================
   2. REEL WALL
   ========================================================================== */
.reel { background: #fff; }
.reel-band { position: relative; height: 330px; margin: 0 auto; max-width: 1920px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.reel-band.is-dragging { cursor: grabbing; }
.reel-track { position: absolute; inset: 0; contain: layout paint; }
.rc { position: absolute; left: 0; top: 0; overflow: hidden; background: #241a36; will-change: transform; }
.rc-in { position: absolute; inset: 0; will-change: transform; }
.rc-in > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.rc { background: #17131f; }
.rc-fb { position: absolute; inset: 0; }
.rc-fb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.rc-fb::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--tint); mix-blend-mode: color; }
.rc-cap { position: absolute; z-index: 2; left: 15%; right: 15%; top: 74%; text-align: center; font: 700 var(--cs, 13px)/1.25 var(--sans); color: #fff; }
.rc-cap--box span { background: rgba(0, 0, 0, .6); padding: .25em .4em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.rc-cap--pop { color: #ffe600; -webkit-text-stroke: .14em #000; paint-order: stroke fill; }
.rc-cap--minimal { font-weight: 400; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000; }
.rc-cap--outline { -webkit-text-stroke: .18em #000; paint-order: stroke fill; }
.rc-who { position: absolute; z-index: 2; left: 10px; top: 10px; padding: 4px 8px; border-radius: 9999px; background: rgba(255, 255, 255, .9); color: var(--ink); font: 700 11px/1 var(--sans); }
.has-asset .rc-fb, .has-asset .rc-who, .has-asset .rc-cap { display: none; }
.rc-play { position: absolute; z-index: 3; left: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .42); color: #fff; }
.rc-play svg { width: 12px; height: 12px; margin-left: 2px; }
.reel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 22px; max-width: var(--max); margin: clamp(24px, 3vw, 40px) auto 0; padding: 0 var(--gut); }
.reel-ctrl { display: flex; gap: 10px; }
.reel-cap { font-size: 16px; color: var(--body); max-width: 52ch; text-align: center; }
.note--reel-1, .note--reel-2 { display: none; }
@media (min-width: 900px) {
  .note--reel-1 { display: block; left: 7%; top: -6px; transform: rotate(-7deg); }
  .note--reel-1 .mk { left: 74%; top: 22px; }
  .note--reel-2 { display: block; right: 8%; top: -18px; transform: rotate(6deg); }
  .note--reel-2 .mk { right: 70%; top: 20px; }
}

/* ==========================================================================
   3. WRITE (purple flood)
   ========================================================================== */
.flood { background: var(--purple); color: #fff; }
.flood .lede { color: rgba(255, 255, 255, .88); }
.write { overflow: hidden; }
.write::before { content: ""; position: absolute; z-index: 0; right: -14vw; bottom: -24vw; width: 50vw; aspect-ratio: 1; border-radius: 50%; background: var(--purple-deep); }
.write-grid { position: relative; z-index: 1; display: grid; gap: 40px; }
.ai-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-fields li { padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24); font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.deck-wrap { position: relative; display: grid; gap: 28px; }
.note--write { position: absolute; right: 4px; top: -34px; color: #fff; transform: rotate(-4deg); }
.deck { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tcard {
  position: relative; display: grid; align-content: space-between; gap: 10px; min-height: 124px; padding: 14px; text-align: left; cursor: pointer;
  border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 10px 24px -10px rgba(20, 8, 40, .55);
  transform: rotate(var(--r)); transition: transform .45s var(--ease);
}
.tcard:hover { transform: rotate(0deg) translateY(-4px); }
.tcard[aria-pressed="true"] { background: var(--ink); color: #fff; transform: rotate(0deg) translateY(-6px); box-shadow: 0 0 0 3px #fff, 0 18px 30px -12px rgba(20, 8, 40, .6); }
.tcard-cat { justify-self: start; padding: 4px 8px; border-radius: 9999px; font: 800 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; border: 1px solid; }
.tcard-cat--creator { background: #faf5ff; border-color: #e9d5ff; color: #9333ea; }
.tcard-cat--teacher { background: #f0fdfa; border-color: #99f6e4; color: #0d9488; }
.tcard-cat--estate { background: #fff1f2; border-color: #fecdd3; color: #e11d48; }
.tcard-cat--pastor { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.tcard-title { font: 800 20px/1.08 var(--display); font-stretch: 88%; letter-spacing: -0.01em; }
.tcard-time { font: 600 13px/1 var(--mono); opacity: .65; }
.sheet { position: relative; padding: 28px 22px 22px; border-radius: 6px; background: #fff; color: var(--ink); transform: rotate(-1.2deg); box-shadow: 0 30px 60px -24px rgba(20, 8, 40, .65); }
.tape { position: absolute; top: -12px; width: 92px; height: 26px; background: rgba(250, 204, 21, .78); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.tape--l { left: 18px; transform: rotate(-6deg); }
.tape--r { right: 18px; transform: rotate(5deg); background: rgba(255, 255, 255, .7); outline: 1px solid rgba(0, 0, 0, .06); }
.sheet-head { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.sheet-title { font: 800 clamp(28px, 2.6vw, 38px)/1 var(--display); font-stretch: 86%; letter-spacing: -0.015em; }
.sheet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 16px; color: var(--body); }
.sheet-pill { padding: 4px 9px; border-radius: 9999px; font: 800 10px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; border: 1px solid; }
.sheet-label { margin: 16px 0 8px; font: 800 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--body); }
.sheet-body { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; }
.sheet-body .ph { display: inline-block; padding: 1px 6px; margin: 0 1px; border-radius: 4px; background: var(--glow); color: var(--purple); border: 1px solid rgba(115, 49, 189, .1); font: 700 .8em/1.5 var(--sans); }
.sheet-body.is-dealt { animation: deal .55s var(--ease); }
@keyframes deal { from { opacity: 0; transform: translateY(8px); } }
.sheet-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.sheet-foot .demo-tag { margin: 0; }
.sheet-link { display: inline-flex; align-items: center; min-height: 44px; font: 700 16px/1 var(--sans); color: var(--purple); text-underline-offset: 4px; }
@media (min-width: 700px) { .deck { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tcard { min-height: 150px; } }
@media (min-width: 1100px) {
  .write-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; column-gap: clamp(40px, 5vw, 88px); }
  .sheet { padding: 36px 34px 26px; }
}

/* ==========================================================================
   4. READ: Hold to speak
   ========================================================================== */
.read { background-color: var(--paper); }
.read-stage { position: relative; z-index: 2; display: grid; gap: 40px; }
.read-screen { margin: 0; }
.sticker--tilt { transform: rotate(-1deg); }
.read-screen .scr { --tzui-prompter-size: 32px; }
.scr--wide .tzui-rec-scroller { top: 72px; bottom: 120px; }
.floor { display: grid; gap: 28px; justify-items: center; }
.floor-help { margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--body); text-align: center; max-width: 28ch; }
.dial-wrap, .hold-wrap, .mirror-wrap { display: grid; justify-items: center; }
.dial { position: relative; width: 210px; height: 210px; border-radius: 50%; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.dial.is-turning { cursor: grabbing; }
.dial-ticks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial-ticks .tk { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: .35; }
.dial-ticks .tk--major { opacity: .9; stroke-width: 3; }
.dial-ticks .arc-bg { fill: none; stroke: var(--hair); stroke-width: 10; stroke-linecap: round; }
.dial-ticks .arc { fill: none; stroke: var(--purple); stroke-width: 10; stroke-linecap: round; }
.dial-ticks text { font: 700 12px var(--sans); fill: var(--body); }
.dial-knob { position: absolute; inset: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a3352, var(--ink) 62%); box-shadow: 0 16px 30px -12px rgba(30, 27, 46, .7), inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 -6px 12px rgba(0, 0, 0, .35); }
.dial-notch { position: absolute; left: 50%; top: 8px; width: 6px; height: 22px; margin-left: -3px; border-radius: 6px; background: var(--rec); box-shadow: 0 0 10px rgba(239, 68, 68, .55); }
.dial-read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; color: #fff; }
.dial-read b { font: 800 34px/1 var(--display); font-stretch: 84%; letter-spacing: -0.01em; }
.dial-read span { font: 700 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.dial:focus-visible { outline-offset: 6px; border-radius: 50%; }
.hold {
  position: relative; width: 168px; height: 168px; border-radius: 50%; border: 0; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
  display: grid; place-content: center; justify-items: center; gap: 8px; color: #fff;
  background: radial-gradient(circle at 35% 30%, #8e4fd6, var(--purple) 55%, var(--purple-deep));
  box-shadow: 0 8px 0 var(--purple-deep), 0 26px 40px -14px rgba(97, 40, 159, .7);
  transition: transform .14s var(--ease); -webkit-touch-callout: none;
}
.hold-ic { width: 34px; height: 34px; }
.hold-label { font: 800 20px/1 var(--display); font-stretch: 85%; }
.hold-ring { position: absolute; inset: -10px; border-radius: 50%; border: 3px solid #22c55e; opacity: 0; transform: scale(.94); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.hold[aria-pressed="true"] { transform: translateY(6px); }
.hold[aria-pressed="true"] .hold-ring { opacity: 1; transform: scale(1); animation: ring-pulse 1.1s ease-in-out infinite; }
@keyframes ring-pulse { 50% { transform: scale(1.06); opacity: .55; } }
.wave { display: flex; align-items: center; gap: 3px; height: 40px; margin-top: 18px; }
.wave i { display: block; width: 4px; height: 100%; border-radius: 4px; background: var(--purple); opacity: .55; transform: scaleY(.08); }
.wave.is-live i { background: #16a34a; opacity: 1; }
.note--read { display: none; }
@media (min-width: 760px) { .floor { grid-template-columns: repeat(3, auto); justify-content: center; align-items: start; gap: 40px; } }
@media (min-width: 1280px) {
  .read-stage { grid-template-columns: minmax(0, 1fr) 260px; align-items: center; column-gap: 40px; }
  .floor { grid-template-columns: 1fr; gap: 24px; }
  .note--read { display: block; right: calc(var(--gut) + 300px); top: -40px; transform: rotate(-4deg); }
}

/* ==========================================================================
   5. RECORD (ink) + heat-word divider
   ========================================================================== */
.record { background: var(--ink); color: #fff; }
.record .lede { color: rgba(255, 255, 255, .8); }
.heat {
  position: relative; display: block; width: 100%; height: clamp(170px, 23vw, 320px); padding: 0; margin: 0 0 var(--sec-pad);
  border: 0; background: var(--ink); cursor: pointer; touch-action: pan-y; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.heat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.heat-hint { position: absolute; right: var(--gut); bottom: 14px; font: 600 24px/1 var(--hand); color: rgba(255, 255, 255, .6); transform: rotate(-6deg); }
.heat:focus-visible { outline-offset: -6px; }
.rec-stage { position: relative; display: grid; gap: 40px; }
.rec-screen { margin: 0; }
.rec-screen .scr { --tzui-prompter-size: 30px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.rec-screen .scr::after { content: ""; position: absolute; inset: 0; z-index: 120; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(239, 68, 68, .7); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.rec-screen .scr.is-rec::after { opacity: 1; }
.stopped { position: absolute; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .78); }
.stopped-card { max-width: 380px; padding: 28px; border-radius: 32px; text-align: center; background: rgba(18, 18, 18, .8); border: 1px solid rgba(255, 255, 255, .05); display: grid; gap: 12px; justify-items: center; }
.stopped-title { font: 900 22px/1.1 var(--sans); font-style: italic; text-transform: uppercase; letter-spacing: -0.01em; }
.stopped-body { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .7); }
.stopped .tzui-btn, .tzui-countdown-cancel { cursor: pointer; }
.magnet-zone { position: relative; display: grid; justify-items: center; align-content: center; gap: 16px; padding: 24px 0; }
.rec-big { position: relative; display: grid; place-items: center; width: 190px; height: 190px; border-radius: 50%; border: 0; cursor: pointer; background: none; color: #fff; text-decoration: none; will-change: transform; touch-action: manipulation; }
.rec-big-ring { position: absolute; inset: -14px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .3); animation: spin 18s linear infinite; }
.rec-big-core {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ff7a7a, var(--rec) 48%, #b91c1c);
  box-shadow: 0 0 0 8px rgba(239, 68, 68, .16), 0 30px 60px -16px rgba(239, 68, 68, .65), inset 0 -10px 20px rgba(0, 0, 0, .18);
  transition: transform .45s var(--ease);
}
.rec-big-stop { position: absolute; left: 50%; top: 22%; width: 22px; height: 22px; margin-left: -11px; border-radius: 5px; background: #fff; opacity: 0; transform: scale(.4); transition: transform .45s var(--ease), opacity .3s var(--ease); }
.rec-big[data-state="recording"] .rec-big-stop { opacity: 1; transform: scale(1); }
.rec-big-label { position: relative; font: 800 28px/1 var(--display); font-stretch: 85%; letter-spacing: -0.01em; text-shadow: 0 1px 1px rgba(0, 0, 0, .2); }
.rec-big:active .rec-big-core { transform: scale(.94); }
.rec-big[data-state="recording"] .rec-big-core { transform: scale(.88); }
.rec-big[data-state="recording"] .rec-big-ring { border-color: rgba(239, 68, 68, .8); border-style: solid; animation: ring-pulse 1.2s ease-in-out infinite; }
.rec-big[data-state="countdown"] .rec-big-ring { border-color: #fff; }
.rec-big:focus-visible { outline: 3px solid #fff; outline-offset: 22px; border-radius: 50%; }
.rec-state { font: 600 16px/1.4 var(--sans); color: rgba(255, 255, 255, .8); text-align: center; min-height: 1.4em; }
.note--rec { position: relative; color: #ffb4b4; transform: rotate(-5deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1280px) {
  .rec-stage { grid-template-columns: minmax(0, 1fr) 260px; align-items: center; column-gap: 40px; }
  .magnet-zone { min-height: 420px; }
}

/* ==========================================================================
   6. EDIT: editor frame with compare, gooey toolbar
   ========================================================================== */
.edit { background: #fff; }
.edit-grid { display: grid; gap: 40px; align-items: center; }
.edframe { margin: 0; justify-self: center; width: 100%; max-width: 820px; padding: 10px; border-radius: 22px; background: var(--paper); border: 1px solid var(--hair); box-shadow: 0 40px 80px -40px rgba(30, 27, 46, .45); }
.edf-top { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 6px 8px; flex-wrap: wrap; }
.edf-eyebrow-wrap { display: grid; gap: 2px; margin-right: auto; }
.edf-eyebrow { font: 600 10px/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--purple); }
.edf-title { font: 700 14px/1.4 var(--sans); }
.edf-status { font-size: 12px; color: var(--body); min-width: 64px; text-align: right; }
.edf-btn { min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--hair); background: #fff; font: 600 12px/1 var(--sans); cursor: pointer; transition: transform .2s var(--ease); }
.edf-btn:active { transform: scale(.96); }
.edf-btn--p { background: var(--purple); border-color: var(--purple); color: #fff; }
.edf-stage { padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--hair); }
.cmp {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000;
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
}
.cmp:focus-visible { outline-offset: 3px; }
.cmp-layer { position: absolute; inset: 0; }
.cmp-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.slot-fb { position: absolute; inset: 0; }
.fb-raw img { transform: scaleX(-1); filter: saturate(.75) brightness(.92); }
.fb-finished img { transform: scaleX(-1) scale(1.12); transform-origin: 50% 40%; filter: sepia(.22) saturate(1.35) contrast(1.06) brightness(1.04); }
.fb-cap { position: absolute; left: 50%; top: 82%; transform: translate(-50%, -50%); width: 90%; text-align: center; font: 700 clamp(11px, 2.2vw, 30px)/1.25 var(--sans); color: #fff; }
.fb-cap span { background: rgba(0, 0, 0, .6); padding: .2em .4em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cmp-tag { position: absolute; z-index: 5; top: 10px; left: 10px; padding: 6px 11px; border-radius: 9999px; background: rgba(23, 24, 26, .55); color: #fff; font: 700 12px/1 var(--sans); pointer-events: none; transition: opacity .2s var(--ease); }
.cmp-tag--r { left: auto; right: 10px; background: var(--purple); }
.cmp-line { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 6px rgba(239, 68, 68, .55)); }
.cmp-line path { fill: none; stroke: var(--rec); stroke-width: 2; }
.cmp-grip { position: absolute; z-index: 5; top: 0; bottom: 0; left: 0; width: 0; pointer-events: none; will-change: transform; }
.cmp-cap { position: absolute; top: 0; left: -6px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--rec); }
.cmp-chip { position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); padding: 6px 10px; border-radius: 8px; background: var(--rec); color: #fff; font: 700 12px/1 var(--mono); white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transition: scale .3s var(--ease); }
.cmp[data-held] .cmp-chip { scale: 1.12; }
.edf-transport { display: flex; align-items: center; gap: 6px; padding: 10px 6px 2px; }
.edf-play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--purple); color: #fff; cursor: pointer; transition: transform .2s var(--ease); }
.edf-play .ic { width: 16px; height: 16px; margin-left: 2px; }
.edf-play[aria-label="Pause"] .ic { margin-left: 0; }
.edf-play:active { transform: scale(.93); }
.edf-time { padding: 0 8px; font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--body); }
.edf-time b { color: var(--ink); font-weight: 600; }
.edframe > .demo-tag { margin: 10px 6px 0; }
.ed-col { display: grid; gap: 22px; justify-items: center; min-width: 0; }
.tools { display: grid; justify-items: center; gap: 12px; text-align: center; }
.goo { position: relative; isolation: isolate; padding: 12px 14px; border-radius: 26px; background: var(--ink); max-width: 100%; }
.goo-svg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.goo-svg rect { fill: var(--purple); }
.goo-svg rect.is-export { fill: #fff; }
.goo-row { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.goo-chip, .goo-export { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 9999px; background: transparent; color: #fff; font: 600 15px/1 var(--sans); cursor: pointer; will-change: transform; }
.goo-chip .ic { width: 17px; height: 17px; }
.goo-chip[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--word); }
.goo-export { color: var(--ink); font-weight: 800; padding: 0 22px; min-width: 112px; justify-content: center; }
.goo-export[aria-disabled="true"] { cursor: progress; }
.goo-chip > *, .goo-export > * { transition: opacity .2s var(--ease); }
.goo.is-merged .goo-chip > * { opacity: 0; }
.no-goo .goo-svg { display: none; }
.no-goo .goo-chip { background: var(--purple); }
.no-goo .goo-export { background: #fff; }
.tool-hint { font-size: 16px; line-height: 1.5; color: var(--body); max-width: 52ch; min-height: 3em; }
.tool-hint b { color: var(--ink); }
@media (max-width: 520px) { .goo-chip span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .goo-chip { padding: 0 14px; } }
@media (min-width: 1100px) { .edit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 820px); column-gap: clamp(40px, 4vw, 72px); } }

/* ==========================================================================
   7. EXPORT: card swap
   ========================================================================== */
.export { background-color: var(--paper); }
.export-grid { position: relative; z-index: 2; display: grid; gap: 40px; }
.swap-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.swap-timer { position: relative; width: 120px; height: 6px; border-radius: 6px; background: var(--hair); overflow: hidden; }
.swap-timer i { position: absolute; inset: 0; background: var(--purple); transform-origin: left; transform: scaleX(0); }
.swap { position: relative; height: 420px; }
.swap-stage { position: absolute; left: 4%; bottom: 40px; width: 1px; height: 1px; perspective: 1000px; }
.sw { position: absolute; left: 0; bottom: 0; padding: 5px; border-radius: 22px; background: #fff; cursor: pointer; border: 0; box-shadow: 0 0 0 1px rgba(30, 27, 46, .1), 0 24px 40px -22px rgba(30, 27, 46, .55); transform: var(--t); transition: transform .7s var(--ease); backface-visibility: hidden; touch-action: none; }
.sw[data-front] { cursor: grab; }
.sw-in { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 17px; background: #000; }
.sw-in > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sw .slot-fb img { transform: scaleX(-1); }
.sw .slot-fb .fb-cap { font-size: clamp(9px, 1.1vw, 14px); top: 80%; }
.sw-tag { position: absolute; z-index: 3; left: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 11px; border-radius: 9999px; background: #fff; color: var(--ink); font: 800 13px/1 var(--sans); white-space: nowrap; }
.sw-tag em { font-style: normal; font-weight: 500; color: var(--body); }
.swap-tag { position: absolute; right: 0; bottom: 0; margin: 0; }
@media (min-width: 1000px) { .export-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; } .swap { height: 520px; } }

/* ==========================================================================
   8. STICKER SHEET (purple flood)
   ========================================================================== */
.extras { background: var(--purple); overflow: hidden; }
.extras::before { content: ""; position: absolute; left: -10vw; bottom: -20vw; width: 60vw; aspect-ratio: 1; border-radius: 50%; background: var(--purple-deep); }
.sheet-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.stk { position: relative; display: grid; justify-items: center; align-content: start; transform: translate(var(--dx, 0), var(--dy, 0)); }
.stk-btn { position: relative; width: 100%; max-width: 230px; aspect-ratio: 1.15; padding: 0; border: 0; background: none; cursor: pointer; transform: rotate(var(--r)); transition: transform .55s var(--ease); filter: drop-shadow(0 10px 14px rgba(25, 6, 50, .4)); }
.stk-btn:hover { transform: rotate(calc(var(--r) * .4)) translateY(-3px); }
.stk-btn[aria-expanded="true"] { transform: rotate(0deg) translateY(-10px) scale(1.04); }
.stk-face { position: absolute; inset: 0; }
.stk-face .slot-img { object-fit: contain; }
.stk-fb { position: absolute; inset: 6%; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 8%; padding: 10%; border-radius: 28px; background: var(--bg, #fff); color: var(--fg, var(--ink)); border: 6px solid #fff; text-align: center; }
.stk-fb .ic { width: 34%; height: auto; aspect-ratio: 1; }
.stk-fb b { font: 800 clamp(17px, 1.7vw, 22px)/1 var(--display); font-stretch: 86%; letter-spacing: -0.01em; }
.stk-peel { position: absolute; z-index: 3; right: 4%; bottom: 4%; width: 30%; height: 30%; border-radius: 0 0 26px 0; background: linear-gradient(135deg, rgba(255, 255, 255, 0) 50%, #e7e1f2 50%, #fff 80%); box-shadow: -3px -3px 6px rgba(0, 0, 0, .12); transform: scale(0); transform-origin: 100% 100%; transition: transform .5s var(--ease); }
.stk-btn[aria-expanded="true"] .stk-peel { transform: scale(1); }
.stk-note { position: relative; z-index: 4; width: min(100%, 260px); margin-top: 8px; padding: 14px 16px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.45; box-shadow: 0 16px 30px -14px rgba(20, 6, 40, .6); transform-origin: 50% 0; }
.stk-note.is-in { animation: note-in .55s var(--ease); }
@keyframes note-in { from { opacity: 0; transform: translateY(-10px) rotate(-3deg) scale(.96); } }
@media (min-width: 900px) { .sheet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 30px; } }

/* ==========================================================================
   9. PRICING: heading band, then a colour-block split with aligned plans
   ========================================================================== */
.pricing-head { background-color: var(--paper); }
.pricing-head .sec-head { margin-bottom: 0; padding-bottom: clamp(36px, 4vw, 56px); }
.plans { display: grid; grid-template-columns: 1fr; }
.plan { position: relative; padding: clamp(48px, 6vw, 88px) var(--gut); }
.plan--free { background-color: var(--paper); border-top: 2px solid var(--ink); }
.plan--pro { background: var(--purple); color: #fff; }
.plan-card { position: relative; z-index: 2; display: grid; grid-template-rows: auto auto 1fr auto; gap: 22px; max-width: 600px; height: 100%; }
.plan-name { font: 800 22px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.plan-price { display: flex; align-items: flex-end; gap: 14px; }
.plan-price .num { font: 800 clamp(120px, 15vw, 260px)/.78 var(--display); font-stretch: 75%; letter-spacing: -0.03em; }
.plan--free .num { color: var(--ink); }
.plan--pro .num { color: #fff; text-shadow: 0 10px 0 var(--purple-deep); }
.plan-price .per { padding-bottom: .5em; font: 600 18px/1 var(--sans); opacity: .8; }
.plan-list { display: grid; align-content: start; gap: 12px; font-size: 18px; font-weight: 500; }
.plan-list li { display: flex; align-items: center; gap: 12px; }
.plan-list .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ink); color: #fff; }
.plan--pro .plan-list .ic { background: #fff; color: var(--purple); }
.plan-card .btn { justify-self: start; margin-top: 6px; }
@media (min-width: 900px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan--free { padding-left: max(var(--gut), calc((100vw - var(--max)) / 2)); }
  .plan--free .plan-card { margin-left: 0; }
  .plan--pro { padding-left: clamp(40px, 5vw, 96px); border-top: 2px solid var(--ink); }
}

/* ==========================================================================
   10. FAQ
   ========================================================================== */
.faq { background: #fff; }
.faq-list { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.qa { position: relative; background: #fff; border-top: 2px solid var(--ink); }
.qa:last-child { border-bottom: 2px solid var(--ink); }
.qa h3 { margin: 0; }
.qa button { display: grid; grid-template-columns: 52px minmax(0, 1fr) 36px; align-items: center; gap: 14px; width: 100%; padding: 24px 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.qa-n { position: relative; display: grid; place-items: center; width: 48px; height: 48px; font: 700 30px/1 var(--hand); color: var(--purple); }
.qa-n::before { content: ""; position: absolute; inset: 2px; border: 2.5px solid var(--purple); border-radius: 55% 45% 52% 48% / 48% 56% 44% 52%; transform: rotate(-8deg); }
.qa-q { font: 750 clamp(23px, 3.1vw, 50px)/1.05 var(--display); font-stretch: 86%; letter-spacing: -0.012em; text-wrap: balance; }
.qa button:hover .qa-q { color: var(--purple); }
.qa-x { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); }
.qa-x::before, .qa-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease); }
.qa-x::after { transform: rotate(90deg); }
.qa button[aria-expanded="true"] .qa-x { background: var(--purple); }
.qa button[aria-expanded="true"] .qa-x::after { transform: rotate(0deg); }
.qa-a { display: none; }
.qa.is-open .qa-a { display: block; }
.qa-a p { padding: 0 0 28px 66px; max-width: 64ch; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; color: var(--body); }
@media (max-width: 600px) {
  .qa button { grid-template-columns: 40px minmax(0, 1fr) 30px; gap: 10px; padding: 20px 0; }
  .qa-n { width: 38px; height: 38px; font-size: 24px; }
  .qa-x { width: 30px; height: 30px; }
  .qa-a p { padding-left: 50px; }
}

/* ==========================================================================
   11. FINAL CTA (ink): marquee band, then the button below it, clear of the type
   ========================================================================== */
.final { background: var(--ink); color: #fff; text-align: center; overflow: hidden; display: grid; justify-items: center; }
.final-title { position: relative; z-index: 3; padding: 0 var(--gut); font: 700 clamp(24px, 2.4vw, 34px)/1.15 var(--display); font-stretch: 86%; color: rgba(255, 255, 255, .9); }
.marquee { position: relative; z-index: 1; width: 100%; margin: clamp(20px, 3vw, 36px) 0 0; white-space: nowrap; overflow: hidden; }
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span { font: 800 clamp(88px, 15vw, 260px)/.95 var(--display); font-stretch: 75%; letter-spacing: -0.025em; padding-right: .1em; }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .55); }
.final-cta { position: relative; z-index: 4; margin-top: clamp(28px, 3vw, 44px); padding: 26px; }
.final-fine { position: relative; z-index: 3; margin-top: 8px; font-size: 16px; color: rgba(255, 255, 255, .78); }
.final .pill-btn { position: relative; z-index: 3; margin-top: 18px; }
.rec-big--link .rec-big-label { font-size: 30px; }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.foot { position: relative; background-color: var(--paper); padding: clamp(56px, 6vw, 88px) 0 0; overflow: hidden; border-top: 1px solid var(--hair); }
.foot-in { position: relative; z-index: 2; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); display: grid; gap: 40px; }
.foot-brand { display: grid; gap: 18px; justify-items: start; }
.foot-tag { font: 700 clamp(22px, 2.2vw, 30px)/1.15 var(--display); font-stretch: 86%; max-width: 22ch; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.foot-h { margin-bottom: 12px; font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--purple-deep); }
.foot-cols ul { display: grid; gap: 4px; }
.foot-cols a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; font-size: 16px; text-decoration: none; overflow-wrap: anywhere; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-copy { font-size: 16px; color: var(--body); padding-top: 24px; border-top: 1px solid var(--hair); }
.foot-copy a { color: var(--ink); }
.foot-copy .ic--heart { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; color: var(--rec); }
.foot-word { position: relative; z-index: 1; height: 11.5vw; margin-top: 48px; overflow: hidden; }
.foot-word img { width: 102vw; max-width: none; height: auto; margin-left: -1vw; }
@media (min-width: 900px) {
  .foot-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); }
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-copy { grid-column: 1 / -1; }
}

/* ==========================================================================
   Sub-pages: contact, privacy, terms
   ========================================================================== */
.page-hero { background-color: var(--paper); padding-block: clamp(48px, 6vw, 96px) clamp(40px, 5vw, 72px); border-bottom: 2px solid var(--ink); }
.page-hero-in { position: relative; z-index: 2; display: grid; justify-items: start; gap: 22px; }
.page-hero-in > .badge { grid-area: auto; }
.page-h1 { font: 800 clamp(48px, 7vw, 120px)/.94 var(--display); font-stretch: 82%; letter-spacing: -0.018em; max-width: 14ch; text-wrap: balance; }
.contact { background: #fff; }
.contact-grid { display: grid; gap: 32px; align-items: start; }
.form-card { padding: clamp(22px, 3vw, 40px); border-radius: 28px; border: 1px solid var(--hair); }
.cform { display: grid; gap: 20px; }
.form-title { font: 800 clamp(28px, 2.6vw, 40px)/1 var(--display); font-stretch: 86%; letter-spacing: -0.01em; }
.form-sub { margin-top: -10px; font-size: 16px; color: var(--body); }
.field { display: grid; gap: 8px; }
.field label { font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--body); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--hair); background: var(--paper);
  font: 500 16px/1.4 var(--sans); color: var(--ink); appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--glow); }
.field [aria-invalid="true"] { border-color: var(--rec-deep); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.select-wrap { position: relative; }
.select-wrap .ic { position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%) rotate(90deg); pointer-events: none; color: var(--body); }
.field-err { color: #b91c1c; font-size: 15px; font-weight: 500; }
.field-meta { display: flex; justify-content: space-between; gap: 12px; }
.field-count { margin-left: auto; font-size: 14px; color: var(--body); font-variant-numeric: tabular-nums; }
.consent { font-size: 16px; color: var(--body); }
.consent a { color: var(--purple); font-weight: 600; }
.cform-submit { justify-self: start; }
.cform-submit[aria-busy="true"] { opacity: .75; cursor: progress; }
.proto-note { font-size: 15px; color: var(--body); opacity: .9; }
.sent { display: grid; gap: 16px; justify-items: start; padding-block: 12px; outline: none; }
.sent-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(34, 197, 94, .12); color: #16a34a; }
.sent-ic .ic { width: 30px; height: 30px; }
.sent-body { font-size: 18px; line-height: 1.55; max-width: 46ch; }
.contact-side { display: grid; gap: 24px; }
.channel { display: grid; gap: 10px; justify-items: start; padding: 28px; border-radius: 24px; }
.channel-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .16); }
.channel-ic .ic { width: 24px; height: 24px; }
.channel-title { font: 800 28px/1 var(--display); font-stretch: 86%; }
.channel p { font-size: 17px; color: rgba(255, 255, 255, .9); }
.channel-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 17px; color: #fff; text-underline-offset: 4px; overflow-wrap: anywhere; }
.quick-title { margin-bottom: 8px; font: 800 28px/1 var(--display); font-stretch: 86%; }
.faq-list--quick { padding: 0; }
.faq-list--quick .qa-q { font-size: clamp(20px, 1.8vw, 26px); }
.faq-list--quick .qa-a p { padding-left: 66px; font-size: 17px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: clamp(32px, 4vw, 64px); } }

.doc { display: grid; gap: 32px; align-items: start; }
.toc { position: relative; }
.toc-title { margin-bottom: 12px; font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--purple-deep); }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc a { position: relative; display: flex; align-items: center; min-height: 40px; padding: 0 12px 0 14px; border-left: 2px solid var(--hair); text-decoration: none; font-size: 16px; font-weight: 500; color: var(--body); }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--purple); font-weight: 700; border-left-color: var(--purple); background: rgba(115, 49, 189, .06); }
.doc-body { max-width: 68ch; }
.doc-sec { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--hair); scroll-margin-top: 24px; }
.doc-sec:last-child { border-bottom: 0; }
.doc-sec h2 { margin-bottom: 14px; font: 800 clamp(28px, 2.6vw, 40px)/1.02 var(--display); font-stretch: 86%; letter-spacing: -0.01em; }
.doc-sec p, .doc-sec li { font-size: 18px; line-height: 1.7; color: #2f2a44; }
.doc-sec p + p, .doc-sec p + ul, .doc-sec ul + p { margin-top: 14px; }
.doc-sec ul { display: grid; gap: 8px; padding-left: 0; }
.doc-sec li { position: relative; padding-left: 24px; }
.doc-sec li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.doc-sec a { color: var(--purple); font-weight: 600; text-underline-offset: 3px; }
.doc-sec strong { color: var(--ink); }
@media (max-width: 899px) { .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .doc { grid-template-columns: 260px minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px); }
  .toc { position: sticky; top: 24px; }
}

/* ==========================================================================
   Reduced motion: static final states, no loops
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { transform: none !important; }
  .rec-big-ring { animation: none; }
}
.motion-off .eyebrow::before, .motion-off .badge i, .motion-off .rec-big-ring, .motion-off .dock-start .rec-dot { animation: none; }

/* the app's 1px backdrop blur over the camera is visually negligible but re-blurs a live video
   every frame; a plain dim layer keeps the look at a fraction of the cost */
.scr .tzui-rec-feed::after { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0, 0, 0, .24); }

/* phones: no large blur filters */
@media (max-width: 767px) {
  .tzui-countdown { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(0, 0, 0, .62) !important; }
  .tzui-rec-pill { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sticker { padding: 7px; border-radius: 24px; }
}

/* sound toggles (shared Web Audio engine will drive these; off by default) */
.dock-sound { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(39, 39, 42, .7); color: #a1a1aa; cursor: pointer; }
.dock-sound[aria-pressed="true"], .icon-btn[data-sound-toggle][aria-pressed="true"] { background: var(--purple); color: #fff; border-color: var(--purple); }
.mm-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-btn[data-sound-toggle][aria-pressed="true"] { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ==========================================================================
   R3 additions
   ========================================================================== */
/* one quiet "Simulated demo" chip per interactive section */
.sim { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; background: rgba(30, 27, 46, .07); color: var(--body); font: 600 11px/1 var(--mono); letter-spacing: .02em; white-space: nowrap; }
.sim::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--purple-lift); }
.flood .sim, .record .sim { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }
.sim-sub { margin-left: 6px; font-size: 13px; color: var(--body); }
figure > figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sticker > figcaption { margin: 10px 4px 2px; }
.foot-note { font-size: 15px; color: var(--body); max-width: 70ch; }
.head-nav a { padding: 0 10px; font-size: 15px; }
.dock-wide { display: none; }
@media (min-width: 768px) { .dock-wide { display: block; } }
.h3 { font: 800 clamp(30px, 3.4vw, 52px)/.98 var(--display); font-stretch: 84%; letter-spacing: -0.015em; text-wrap: balance; }
.h2--sm { font-size: clamp(34px, 4vw, 60px); }

/* ---------- How it works ---------- */
.how { overflow: hidden; }
.how::before { content: ""; position: absolute; left: -16vw; top: -20vw; width: 46vw; aspect-ratio: 1; border-radius: 50%; background: var(--purple-deep); }
.how-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.how-ctl { display: grid; gap: 28px; align-content: start; }
.steps-wrap { position: relative; }
.steps { position: relative; z-index: 1; display: grid; gap: 6px; }
.step { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; width: 100%; padding: 14px 16px 18px 12px; border: 0; border-radius: 16px; background: none; color: #fff; text-align: left; cursor: pointer; }
.step-n { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--purple); font: 700 26px/1 var(--hand); box-shadow: 0 0 0 3px rgba(255, 255, 255, .3), 0 4px 0 rgba(20, 6, 40, .35); transform: rotate(-6deg); }
.step-t { font: 800 clamp(24px, 2.2vw, 32px)/1.05 var(--display); font-stretch: 86%; letter-spacing: -0.01em; }
.step-l { font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .8); max-width: 44ch; }
.step-fill { position: absolute; left: 72px; right: 16px; bottom: 6px; height: 12px; width: calc(100% - 88px); overflow: visible; opacity: 0; }
.step-fill path { fill: none; stroke: var(--purple); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.step[aria-current="step"] { color: var(--ink); }
.step[aria-current="step"] .step-l { color: var(--body); }
.step[aria-current="step"] .step-n { background: var(--purple); color: #fff; box-shadow: 0 0 0 3px #fff, 0 4px 0 var(--ink); }
.step[aria-current="step"] .step-fill { opacity: 1; }
.step-hl { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 80px; border-radius: 16px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); will-change: transform; transition: transform .6s var(--ease), height .6s var(--ease); }
.chunky--on-dark { background: transparent; color: #fff; border-color: #fff; box-shadow: 0 4px 0 #fff; justify-self: start; }
.chunky--on-dark[aria-pressed="true"] { background: #fff; color: var(--purple-deep); }
.how-panel { margin: 0; transform: rotate(1deg); }
.how-fit { position: relative; width: 100%; aspect-ratio: 880 / 540; overflow: hidden; border-radius: 20px; background: #0b0b0c; isolation: isolate; }
.how-stage { position: absolute; left: 0; top: 0; width: 880px; height: 540px; transform-origin: 0 0; }
.hs { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; overflow: hidden; }
.hs.is-on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.hs-write { background: var(--tzui-bg, #fff); }
.hs-pad { padding: 22px 26px; }
.hs-write .tzui-ph { margin-bottom: 14px; }
.hw-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) !important; gap: 18px !important; }
.hs-write .tzui-cs-form { padding: 22px !important; gap: 14px; display: flex; flex-direction: column; }
.hs-write .tzui-cs-aside { padding: 22px !important; }
.hs-write .tzui-cs-row { grid-template-columns: 1fr 1fr !important; gap: 14px; }
.hs-write .tzui-cs-submit { height: 52px; }
.hw-topic { position: relative; display: flex; align-items: center; min-height: 46px; }
.hw-topic .tzui-cs-caret { display: none; }
.hw-topic.tzui-cs-input--focus .tzui-cs-caret { display: inline-block; }
.hw-ph { color: var(--tzui-text-2); opacity: .7; }
.hw-topic.has-text .hw-ph { display: none; }
.hw-selwrap { position: relative; }
.hw-sel.is-focus { border-color: var(--tzui-primary); box-shadow: 0 0 0 2px rgba(59, 130, 246, .5); }
.hw-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 8px); padding: 6px; border-radius: 12px; background: var(--tzui-card); box-shadow: var(--tzui-shadow-deep), 0 0 0 1px var(--tzui-border); display: grid; gap: 2px; opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top; transition: opacity .15s var(--ease), transform .15s var(--ease); pointer-events: none; }
.hs-write.is-open .hw-list { opacity: 1; transform: none; }
.hw-opt { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.hw-opt .tzui-ic { opacity: 0; color: var(--tzui-primary); }
.hw-opt.is-sel { background: var(--tzui-primary-glow); color: var(--tzui-primary); }
.hw-opt.is-sel .tzui-ic { opacity: 1; }
.hw-gen { position: relative; }
.hw-spin { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; border-top-color: transparent; animation: tzui-spin .8s linear infinite; }
.hs-write.is-gen .hw-gen > .tzui-ic, .hs-write.is-gen .hw-gen-t { display: none; }
.hs-write.is-gen .hw-spin { display: block; }
.hs-read { background: #000; }
.hr-back { position: absolute; inset: 0 330px 0 0; display: grid; place-items: center; padding: 0 48px; }
.hr-text { color: rgba(255, 255, 255, .85); font: 300 var(--hr-size, 32px)/1.9 Inter, system-ui, sans-serif; text-align: center; transition: transform .6s var(--ease); }
.hr-text.is-mirrored { transform: scaleX(-1); }
.hr-text .tzui-w-label { font-size: .5em; margin: .5em 0; }
.hr-line { top: 50%; left: 16px; right: 16px; }
.hr-set { position: absolute; right: 22px; top: 22px; bottom: 22px; width: 300px; gap: 16px; overflow: hidden; }
.hr-speedrow { overflow: hidden; max-height: 60px; transition: max-height .4s var(--ease), opacity .3s var(--ease); }
.hs-read.is-voice .hr-speedrow { max-height: 0; opacity: 0; }
.hr-lbl { display: block; margin-bottom: 8px; }
.hr-fontwrap { position: relative; }
.hr-menu { position: absolute; z-index: 3; left: 0; right: 0; top: calc(100% + 6px); padding: 6px; border-radius: 12px; background: #19191d; box-shadow: 0 0 0 1px #28282d, 0 20px 40px rgba(0, 0, 0, .5); display: grid; gap: 2px; opacity: 0; transform: translateY(-4px); transition: opacity .15s var(--ease), transform .15s var(--ease); }
.hr-menu span { padding: 8px 10px; border-radius: 8px; font-size: 12px; color: #f5f5f6; }
.hr-menu .is-sel { background: rgba(151, 90, 219, .2); color: #c4a3ef; }
.hs-read.is-font .hr-menu { opacity: 1; transform: none; }
.tzui-sw > i { transition: transform .2s var(--ease); }
.hs-fill { position: absolute; inset: 0; aspect-ratio: auto !important; height: 100%; border-radius: 0; }
.hs-rec .tzui-rec-scroller.hs-scroller { top: 64px; bottom: 150px; }
.hs-rec .scr-text { --tzui-prompter-size: 30px; }
.hrec-cd { opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s linear .25s; }
.hrec-cd.is-on { opacity: 1; visibility: visible; transition: opacity .25s var(--ease), visibility 0s; }
.hs-ed .tzui-ed-root { --tzui-ed-height: 540px; height: 540px; }
.hs-ed .tzui-ed-main { flex: 1; }
.hs-ed .tzui-ed-body > .tzui-ed-tl { flex: none; height: 214px; }
.he-feed { position: absolute; inset: 0; background: #000; }
.he-feed img, .he-feed video { width: 100%; height: 100%; object-fit: cover; }
.he-stage { transition: aspect-ratio .4s var(--ease); }
.hs-ed.is-portrait .he-stage { --tzui-ed-aspect: 9 / 16; }
.hs-ed.is-capoff [data-he-caprow] { opacity: .35; }
.hs-ed.is-capoff .tzui-ed-cap { visibility: hidden; }
.he-pop { right: 12px; bottom: 60px; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.hs-ed.is-pop .he-pop { opacity: 1; transform: none; }
.he-ratios { display: grid; gap: 6px; }
.he-modal { opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
.hs-ed.is-export .he-modal { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }
.he-wave { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .6) 0 1px, transparent 1px 3px); mask-image: linear-gradient(transparent 30%, #000 30%, #000 70%, transparent 70%); -webkit-mask-image: linear-gradient(transparent 30%, #000 30%, #000 70%, transparent 70%); }
.he-hide { display: inline-flex; }
/* ghost cursor: one glyph at a time; arrow tip and fingertip share the hotspot (0,0) */
.ghost { position: absolute; left: 0; top: 0; z-index: 50; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); will-change: transform; }
.ghost.is-on { opacity: 1; }
.ghost svg { position: absolute; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: transform .12s var(--ease); }
.ghost .g-arrow { left: -5.5px; top: -2.7px; width: 26px; height: 26px; }
.ghost .g-hand { left: -11.2px; top: -3.4px; width: 28px; height: 28px; }
.ghost[data-shape="arrow"] .g-hand, .ghost[data-shape="hand"] .g-arrow { display: none; }
.ghost.is-down svg { transform: scale(.88); }
.g-ripple { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--purple-lift); opacity: 0; }
.gh-hover { filter: brightness(1.06); }
.gh-active { transform: scale(.97); }
@media (min-width: 1100px) { .how-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(40px, 5vw, 80px); } }

/* ---------- Write deep dive ---------- */
.write { background-color: var(--paper); }
.sc-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--hair); background: #fff; color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer; transition: transform .2s var(--ease); }
.sc-tool:active { transform: scale(.97); }
.sc-tool--green { border-color: #10b981; color: #047857; }
.sc-tool--primary { border-color: var(--purple); color: var(--purple); }
.sc-tool--red { border-color: #ef4444; color: #b91c1c; }
.sc-tool--solid { background: var(--purple); border-color: var(--purple); color: #fff; }
.sc-tool[aria-busy="true"] { opacity: .6; cursor: progress; }
.sc-toast { min-height: 1.5em; font-size: 16px; font-weight: 600; color: var(--purple-deep); }
.sheet-src { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--hair); }
.src-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.src-chips span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9999px; background: var(--paper); border: 1px solid var(--hair); font-size: 13px; font-weight: 600; }
.src-chips .ic { width: 11px; height: 11px; }
.src-note { margin-top: 8px; font-size: 14px; color: var(--body); }
.diff { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--hair); }
.diff-title { font: 800 20px/1.1 var(--display); font-stretch: 86%; }
.diff-sub { font-size: 14px; color: var(--body); margin: 2px 0 12px; }
.diff-cols { display: grid; gap: 10px; }
.diff-cols > div { padding: 12px; border-radius: 10px; background: #fff; border: 1px solid var(--hair); font-size: 15px; line-height: 1.5; }
.diff-cols > div:first-child p { opacity: .7; }
.diff-new { background: rgba(16, 185, 129, .05) !important; border-color: rgba(16, 185, 129, .2) !important; }
.diff-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--body); }
.diff-h em { font-style: normal; padding: 3px 7px; border-radius: 9999px; background: #10b981; color: #fff; letter-spacing: .02em; }
.diff-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (min-width: 640px) { .diff-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Read deep dive: Practice + Web Remote ---------- */
.read { background: #fff; }
.scr--practice .tzui-rec-scroller { top: 64px; bottom: 96px; }
.pr-offpill { position: absolute; z-index: 20; left: 50%; top: calc(50% - 46px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: 9999px; background: rgba(18, 18, 18, .85); border: 1px solid rgba(255, 255, 255, .1); padding: 4px 10px; font: 700 10px/15px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .8); }
.pr-offpill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(250, 204, 21, .7); }
.scr.is-off .tzui-w--current { opacity: .8; animation: vs-soft 2.8s ease-in-out infinite; }
@keyframes vs-soft { 50% { text-shadow: 0 0 6px color-mix(in srgb, currentColor 25%, transparent); } }
.pr-bar { position: absolute; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(18, 18, 18, .85); border: 1px solid rgba(255, 255, 255, .1); }
.pr-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; }
.pr-play { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--purple); color: #fff; font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; white-space: nowrap; }
.pr-play.is-on { background: #fff; color: #000; }
.pr-div { width: 1px; height: 24px; background: rgba(255, 255, 255, .12); }
.pr-size { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.pr-size b { font: 700 10px/1 var(--sans); text-transform: uppercase; color: #a1a1aa; padding: 0 2px; }
.pr-size button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: #d4d4d8; cursor: pointer; }
.pr-set { position: absolute; z-index: 40; top: 64px; right: 16px; width: 280px; gap: 14px; }
.pr-set .tzui-set-switch { cursor: pointer; color: #fff; }
.pr-range { width: 100%; height: 22px; margin: 0; accent-color: var(--purple-lift); cursor: pointer; }
.pr-range--dark { accent-color: var(--purple-lift); }
.read-stage { display: grid; gap: 40px; }
.remote { display: grid; gap: 36px; margin-top: clamp(56px, 7vw, 104px); align-items: center; }
.remote-copy { display: grid; gap: 18px; align-content: start; }
.kbd-card { padding: 20px; border-radius: 18px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); background: var(--paper); max-width: 560px; }
.kbd-title { display: flex; align-items: center; gap: 8px; font: 800 20px/1 var(--display); font-stretch: 86%; margin-bottom: 10px; }
.kbd-list { display: grid; gap: 6px; }
.kbd-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.kbd-list kbd, .kbd-foot kbd { display: inline-block; min-width: 26px; margin-left: 4px; padding: 3px 7px; border-radius: 6px; background: #fff; border: 1px solid var(--hair); box-shadow: 0 2px 0 var(--hair); font: 600 12px/1.2 var(--mono); text-align: center; }
.kbd-foot { margin-top: 12px; font-size: 14px; color: var(--body); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.remote-demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: center; align-items: center; }
.qr-card { width: min(100%, 280px); padding: 20px; border-radius: 24px; background: #0b0b0c; color: #fff; display: grid; justify-items: center; gap: 10px; text-align: center; }
.qr-title { font: 800 22px/1 var(--display); font-stretch: 86%; }
.qr-sub { font-size: 14px; color: rgba(255, 255, 255, .65); margin-top: -4px; }
.qr { width: 150px; height: 150px; padding: 12px; border-radius: 24px; background: #fff; display: grid; grid-template-columns: repeat(21, 1fr); gap: 0; }
.qr i { display: block; aspect-ratio: 1; }
.qr i.on { background: #0b0b0c; }
.qr-status { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); font: 800 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.qr-status i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.qr-status.is-live { background: rgba(16, 185, 129, .12); color: #34d399; }
.qr-status.is-live i { background: #10b981; box-shadow: 0 0 8px #10b981; }
.qr-card .btn--ink { background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--purple); }
.phone { width: 270px; padding: 10px; border-radius: 40px; background: #1a1a1d; box-shadow: 0 0 0 2px #2b2b30, 0 40px 60px -30px rgba(30, 27, 46, .6); }
.ph-screen { position: relative; height: 520px; border-radius: 32px; overflow: hidden; background: #0a0a0b; color: #fff; }
.ph-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .6); }
.ph-wait b { font: 900 18px/1 var(--sans); font-style: italic; color: #fff; }
.ph-wait-ic { color: rgba(255, 255, 255, .25); }
.ph-ui { position: absolute; inset: 0; display: flex; flex-direction: column; }
.ph-head { padding: 16px 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); display: grid; gap: 2px; }
.ph-eyebrow { font: 900 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.ph-head b { font-size: 14px; }
.ph-mon { position: relative; margin: 12px; height: 210px; border-radius: 26px; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, .1); }
.ph-feed { position: absolute; inset: 0; transform: scaleX(-1); opacity: .6; }
.ph-feed img, .ph-feed video { width: 100%; height: 100%; object-fit: cover; }
.ph-mon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .8), rgba(0, 0, 0, .4) 40%, rgba(0, 0, 0, .8)); }
.ph-live, .ph-sync { position: absolute; z-index: 2; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 8px; font: 900 8px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.ph-live { left: 10px; background: rgba(0, 0, 0, .5); }
.ph-live i { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; animation: tzui-pulse 2s infinite; }
.ph-sync { right: 10px; background: rgba(168, 85, 247, .2); border: 1px solid rgba(168, 85, 247, .3); color: #c084fc; }
.ph-script { position: absolute; z-index: 2; left: 0; right: 0; top: 0; padding: 0 16px; text-align: center; font: 300 15px/1.8 Inter, sans-serif; color: #fff; will-change: transform; }
.ph-script .tzui-w--spoken { color: rgba(255, 255, 255, .4); }
.ph-script .tzui-w--current { color: #facc15; }
.ph-prog { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 0 16px; font: 900 9px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.ph-prog b { color: #c084fc; }
.ph-prog > i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.ph-prog > i > i { display: block; height: 100%; background: linear-gradient(90deg, #9333ea, #3b82f6); transform-origin: left; transform: scaleX(0); transition: transform .3s var(--ease); }
.ph-trans { display: flex; align-items: center; gap: 10px; padding: 16px; }
.ph-side { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: transform .15s var(--ease); }
.ph-main { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 68px; border: 0; border-radius: 28px; background: var(--purple); color: #fff; font: 900 14px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: transform .15s var(--ease); }
.ph-main.is-on { background: #fff; color: #000; }
.ph-side:active, .ph-main:active { transform: scale(.92); }
.ph-sec { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 16px; }
.ph-mini { display: grid; justify-items: center; gap: 3px; min-width: 44px; min-height: 44px; border: 0; background: none; color: rgba(255, 255, 255, .7); font: 900 8px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.ph-mini[aria-pressed="true"] { color: #c084fc; }
.ph-speed { display: inline-flex; align-items: center; gap: 4px; font: 900 8px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ph-speed b { color: #c084fc; font-size: 12px; }
.ph-speed button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; }
@media (min-width: 560px) { .remote-demo { grid-template-columns: auto auto; justify-content: center; } }
@media (min-width: 1100px) { .remote { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }

/* ---------- Record deep dive: viewfinder, zoom, lenses, takes ---------- */
.rec-stage { display: grid; gap: 32px; align-items: start; }
.vf { margin: 0; }
.vf-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.vf-frame.is-rec { box-shadow: 0 0 0 2px rgba(239, 68, 68, .75), 0 40px 80px -30px rgba(239, 68, 68, .3); }
.vf-zoom { position: absolute; inset: 0; transform: scale(var(--z, 1)); transform-origin: 50% 42%; transition: transform .15s linear; }
.vf-feed { position: absolute; inset: 0; transform: scaleX(-1); }
.vf-feed img, .vf-feed video { width: 100%; height: 100%; object-fit: cover; }
.vf-frame.is-soft .vf-zoom { filter: blur(.6px); }
.vf-lens { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); }
.vf-lens[data-l="1"] { opacity: 1; background: radial-gradient(circle at 30% 20%, rgba(255, 230, 120, .35), transparent 30%), radial-gradient(circle at 75% 25%, rgba(255, 180, 220, .3), transparent 28%); mix-blend-mode: screen; }
.vf-lens[data-l="2"] { opacity: 1; background: linear-gradient(160deg, rgba(151, 90, 219, .35), rgba(239, 68, 68, .2)); mix-blend-mode: soft-light; }
.vf-lens[data-l="3"] { opacity: 1; box-shadow: inset 0 0 120px 30px rgba(0, 0, 0, .75); }
.vf-lens[data-l="4"] { opacity: 1; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 4px); }
.vf-lens[data-l="5"] { opacity: 1; background: radial-gradient(circle at 50% 36%, transparent 22%, rgba(250, 204, 21, .25) 23%, transparent 26%); }
.vf-corners i { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, .7); }
.vf-corners i:nth-child(1) { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.vf-corners i:nth-child(2) { right: 14px; top: 14px; border-left: 0; border-bottom: 0; }
.vf-corners i:nth-child(3) { left: 14px; bottom: 14px; border-right: 0; border-top: 0; }
.vf-corners i:nth-child(4) { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
.vf-tally { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9999px; background: rgba(0, 0, 0, .55); color: #fff; font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.vf-tally i { width: 8px; height: 8px; border-radius: 50%; background: #60a5fa; }
.vf-tally b { font: 700 14px/1 var(--mono); letter-spacing: 0; }
.vf-frame.is-rec .vf-tally i { background: #ef4444; animation: tzui-pulse 1.6s infinite; }
.vf-frame.is-paused .vf-tally i { background: #eab308; }
.vf-zchip { position: absolute; right: 20px; bottom: 20px; padding: 5px 9px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font: 700 12px/1 var(--mono); }
.vf-cd { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; background: rgba(0, 0, 0, .45); color: #fff; }
.vf-cd b { font: 900 120px/1 var(--sans); font-style: italic; filter: drop-shadow(0 0 30px rgba(255, 255, 255, .5)); }
.vf-cd span { font: 500 18px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.vf-cal { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9999px; background: rgba(18, 18, 18, .85); color: #60a5fa; font: 700 12px/1 var(--sans); white-space: nowrap; }
.rec-side { display: grid; gap: 16px; }
.rec-actions { display: flex; gap: 8px; justify-content: center; }
.rec-actions .pill-btn[disabled] { opacity: .45; cursor: default; }
.ctl-card { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.ctl-card--row { display: flex; flex-wrap: wrap; gap: 8px; }
.ctl-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ctl-lbl { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
p.ctl-lbl { margin-bottom: 10px; }
.ctl-val { font: 700 14px/1 var(--mono); }
.zband { display: flex; height: 4px; margin: 4px 0 8px; border-radius: 4px; overflow: hidden; }
.zband i:first-child { background: rgba(16, 185, 129, .7); }
.zband i:last-child { background: rgba(245, 158, 11, .4); }
.ctl-note { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .75); }
.ctl-note.is-warn { color: #fbbf24; }
.lens-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lens-tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(24, 24, 27, .6); color: #a1a1aa; cursor: pointer; transition: transform .2s var(--ease); }
.lens-tile[aria-pressed="true"] { border-color: var(--purple-lift); box-shadow: 0 0 0 2px var(--purple-lift); color: #fff; }
.lens-tile:disabled { opacity: .4; cursor: not-allowed; }
.lens-art { width: 26px; height: 26px; border-radius: 50%; }
.lens-art--1 { background: radial-gradient(circle at 30% 30%, #fde68a, #f472b6); }
.lens-art--2 { background: linear-gradient(135deg, #975adb, #ef4444); }
.lens-art--3 { background: radial-gradient(circle, transparent 40%, #000 42%), #52525b; }
.lens-art--4 { background: repeating-linear-gradient(0deg, #a1a1aa 0 2px, #3f3f46 2px 4px); }
.lens-art--5 { background: radial-gradient(circle, transparent 46%, #facc15 48%, transparent 58%), #27272a; }
.dev-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.rec-main { display: grid; gap: 28px; min-width: 0; }
.takes-shelf { display: grid; gap: 14px; }
.takes { margin-top: 32px; display: grid; gap: 16px; }
.takes:has(.ana[hidden]) { margin-top: 0; }
.takes-title { font: 800 28px/1 var(--display); font-stretch: 86%; }
.take-list { display: flex; flex-wrap: wrap; gap: 14px; }
.take { width: 220px; border-radius: 16px; overflow: hidden; background: #19191d; border: 1px solid rgba(255, 255, 255, .1); }
.take-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.take-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: .85; }
.take-thumb span { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 9999px; background: rgba(0, 0, 0, .55); font: 700 11px/1 var(--mono); }
.take-body { padding: 10px 12px 12px; display: grid; gap: 8px; }
.take-body b { font: 900 15px/1.2 var(--sans); }
.take-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.take-btns button { min-height: 32px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; font: 800 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.take-btns .is-p { background: var(--purple-lift); border-color: var(--purple-lift); }
.take.is-in { animation: take-in .55s var(--ease); }
@keyframes take-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.ana { padding: 24px; border-radius: 20px; background: #fff; color: var(--ink); display: grid; gap: 12px; }
.ana-title { font: 800 22px/1 var(--display); font-stretch: 86%; }
.ana-title span { font: 600 14px/1 var(--sans); color: var(--body); margin-left: 8px; }
.ana-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ana-m { display: grid; gap: 2px; padding: 12px; border-radius: 12px; border: 1px solid var(--hair); }
.ana-m span { font: 600 12px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.ana-m b { font: 700 24px/1.1 var(--sans); }
.ana-m small { font-size: 12px; color: #6b7280; }
.ana-m i { height: 8px; border-radius: 8px; background: var(--c); transform-origin: left; transform: scaleX(var(--w)); transition: transform .7s var(--ease); }
.ana.is-zero .ana-m i { transform: scaleX(0); }
.ana-sub { font: 700 14px/1 var(--sans); }
.ana-flow { position: relative; height: 40px; border-radius: 12px; background: var(--paper); border: 1px solid var(--hair); overflow: hidden; }
.ana-flow i { position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 100%); width: calc(var(--d) * 100%); background: rgba(16, 185, 129, .9); box-shadow: inset 0 -4px 0 #15803d; transform-origin: left; transition: transform .5s var(--ease); }
.ana-flow i.p { background: rgba(245, 158, 11, .4); box-shadow: none; }
.ana.is-zero .ana-flow i { transform: scaleX(0); }
.ana-verdict { font-size: 16px; }
.ana-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ana-btns .pill-btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.ana-toast { min-height: 1.4em; font-size: 15px; color: var(--purple-deep); font-weight: 600; }
@media (min-width: 760px) { .ana-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rec-stage { grid-template-columns: minmax(0, 1fr) 340px; } }

/* ---------- Edit deep dive: compare + toolbar + effects ---------- */
.edit-grid { display: grid; gap: 36px; align-items: start; }
.cmp-card { display: grid; gap: 12px; }
.cmp { border-radius: 18px; box-shadow: 0 40px 80px -40px rgba(30, 27, 46, .45); }
/* the frames are graded already (raw = flat camera original, finished = the app's filters) and carry
   live HTML captions, so no CSS filter and no selfie mirror here: a mirror would reverse the caption */
.cap-box { position: absolute; left: 50%; top: 82%; transform: translate(-50%, -50%); width: 86%; text-align: center; font: 700 clamp(13px, 2vw, 26px)/1.25 var(--sans); color: #fff; }
.cap-box span { background: rgba(0, 0, 0, .6); padding: .2em .45em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cmp-badge { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 9999px; background: rgba(0, 0, 0, .5); color: #fff; font: 600 11px/1 var(--sans); }
.cmp-foot { display: flex; align-items: center; gap: 8px; }
.cmp-foot .sim { margin-left: auto; }
.fx { display: grid; gap: 14px; padding: 18px; border-radius: 20px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.fx-prev { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; }
.fx-a, .fx-b { position: absolute; inset: 0; }
.fx-a img, .fx-a video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-b { background: linear-gradient(135deg, var(--purple), var(--purple-deep)); opacity: 0; }
.fx-text { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); padding: 6px 12px; border-radius: 8px; background: #fff; color: var(--ink); font: 800 clamp(14px, 1.6vw, 20px)/1.2 var(--display); font-stretch: 86%; white-space: nowrap; opacity: 0; }
.fx-tag { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font: 600 11px/1 var(--mono); }
.fx-group { display: grid; gap: 8px; }
.fx-h { font: 700 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--body); }
.fx-h b { color: var(--purple); font-size: 15px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-chip { min-height: 36px; padding: 0 12px; border-radius: 9999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer; transition: transform .2s var(--ease); }
.fx-chip:hover, .fx-chip:focus-visible, .fx-chip.is-on { background: var(--ink); color: #fff; transform: translateY(-2px) rotate(-1.5deg); }
.fx-also { font-size: 15px; line-height: 1.5; color: var(--body); }
.ed-col { justify-items: stretch; }
.ed-col .tools { justify-items: start; text-align: left; }
@media (min-width: 1100px) { .edit-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(32px, 4vw, 64px); } }

/* ---------- sticker live mini-animations ---------- */
.mini { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--paper); font-size: 13px; }
.mini-row { display: flex; justify-content: space-between; gap: 8px; }
.mini-row b { font-variant-numeric: tabular-nums; }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.mini-bars i { width: 6px; height: 100%; border-radius: 3px; background: #22c55e; transform-origin: bottom; animation: mini-bar .9s ease-in-out infinite alternate; }
.mini-bars i:nth-child(2) { animation-delay: .15s; } .mini-bars i:nth-child(3) { animation-delay: .3s; } .mini-bars i:nth-child(4) { animation-delay: .45s; } .mini-bars i:nth-child(5) { animation-delay: .6s; }
@keyframes mini-bar { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.mini-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-chips span { padding: 3px 7px; border-radius: 9999px; background: #fff; border: 1px solid var(--hair); font-size: 11px; font-weight: 600; animation: chip-in .5s var(--ease) backwards; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px); } }
.mini-folder { display: flex; gap: 4px; }
.mini-folder i { width: 22px; height: 28px; border-radius: 4px; background: #fff; border: 1px solid var(--hair); animation: chip-in .45s var(--ease) backwards; }
.mini-copy { display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--hair); background: #fff; font-size: 12px; font-weight: 700; }
.mini-copy.is-done { color: #10b981; border-color: rgba(16, 185, 129, .4); }

/* ---------- reel cards: footage posters + caption presets ---------- */
.rc-cap--box span { background: rgba(0, 0, 0, .6); }

/* ---------- compare page ---------- */
.cmpx { background: #fff; }
.cmpx-claim { margin-top: 20px; max-width: 62ch; padding: 14px 18px; border-radius: 14px; background: #fff; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-size: 16px; line-height: 1.5; }
.cmpx-claim a { color: var(--purple); font-weight: 600; white-space: nowrap; }
.cmpx-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cmpx-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.lg { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 9999px; font-size: 14px; font-weight: 600; border: 1px solid var(--hair); }
.lg--yes { color: #047857; } .lg--part { color: #b45309; } .lg--nl { color: var(--body); } .lg--no { color: #b91c1c; }
.cmpx-browser { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; font-size: 16px; color: var(--ink); }
.cmpx-browser .ic { flex: none; margin-top: 3px; color: var(--purple); }
.cmpx-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--purple); margin-bottom: 8px; }
.cmpx-hint .ic { animation: cmpxNudge 1.6s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes cmpxNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.cmpx-scroll { position: relative; overflow-x: auto; border-radius: 18px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: #fff; }
.cmpx-scroll.is-over:not(.at-end) { box-shadow: 6px 6px 0 var(--ink), inset -18px 0 16px -14px rgba(20, 16, 32, .35); }
.cmpx-scroll:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.cmpx-table { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.cmpx-table th, .cmpx-table td { padding: 14px 14px; border-bottom: 1px solid var(--hair); text-align: center; vertical-align: middle; }
.cmpx-table tbody tr:last-child > * { border-bottom: 0; }
.cmpx-table thead th { position: sticky; top: 0; z-index: 2; background: var(--ink); color: #fff; font: 800 18px/1.1 var(--display); font-stretch: 86%; }
.cmpx-table tbody th { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; font-weight: 600; min-width: 230px; box-shadow: 1px 0 0 var(--hair); }
.cmpx-table thead th:first-child { left: 0; z-index: 3; text-align: left; }
.cmpx-table .is-tz { background: rgba(115, 49, 189, .06); }
.cmpx-table thead .is-tz { background: var(--purple); }
.cmpx-table thead .is-tz sup a { color: #fff; }
.cmpx-table tr > * { transition: background-color .5s cubic-bezier(.16,1,.3,1); }
.cmpx-table tr.is-scan td, .cmpx-table tr.is-scan th { background: #fff8d6; }
.cx-mk { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.cx-mk.cell-yes { color: #047857; } .cx-mk.cell-part { color: #b45309; } .cx-mk.cell-nl { color: #6b6880; font-weight: 500; } .cx-mk.cell-no { color: #b91c1c; }
.cmpx sup { font-size: 11px; margin-left: 2px; }
.cmpx sup a { color: var(--purple); text-decoration: none; padding: 2px 1px; }
.cmpx sup a:hover, .cmpx sup a:focus-visible { text-decoration: underline; }
.cell-note { display: block; margin-top: 2px; font-size: 13px; color: var(--body); white-space: nowrap; }
.cmpx-cards, .cmpx-cards-hint { display: none; }
.cmpx-pending { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px dashed var(--purple-lift); font-size: 16px; }
.cmpx-reading { margin-top: 28px; display: grid; gap: 10px; max-width: 72ch; font-size: 16px; line-height: 1.55; color: var(--ink); padding-left: 20px; list-style: disc; }
.cmpx-foot { margin-top: 28px; display: grid; gap: 16px; }
.cmpx-disc { padding: 18px 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--hair); font-size: 15px; line-height: 1.6; color: var(--body); max-width: 86ch; }
.cmpx-disc b { color: var(--ink); }
.cmpx-disc a { color: var(--purple); font-weight: 600; }
.cmpx-disc:focus { outline: 3px solid var(--purple); outline-offset: 3px; }
.cmpx-src { border-top: 1px solid var(--hair); padding-top: 8px; }
.cmpx-src summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font: 800 20px/1 var(--display); font-stretch: 86%; list-style: none; }
.cmpx-src summary::-webkit-details-marker { display: none; }
.cmpx-src summary .ic { transition: transform .4s cubic-bezier(.16,1,.3,1); }
.cmpx-src[open] summary .ic { transform: rotate(180deg); }
.cmpx-src summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.cmpx-src-n { font: 500 15px/1 var(--sans); color: var(--body); }
.cmpx-notes { margin-top: 10px; display: grid; gap: 6px; font-size: 15px; color: var(--body); list-style: decimal; padding-left: 28px; }
@media (min-width: 900px) { .cmpx-notes { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.cmpx-notes li { padding: 2px 4px; border-radius: 6px; }
.cmpx-notes li.is-t { list-style: none; margin-left: -24px; }
.cmpx-notes b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.cmpx-notes a { color: var(--purple); overflow-wrap: anywhere; }
.cmpx-notes li:focus { outline: 2px solid var(--purple); }
.cmpx-notes li.is-flash { animation: cmpxFlash 1.6s cubic-bezier(.16,1,.3,1); }
@keyframes cmpxFlash { 0%, 30% { background: #fff1a8; } 100% { background: transparent; } }
@media (max-width: 759px) {
  .cmpx-scroll, .cmpx-hint { display: none !important; }
  .cmpx-cards { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 2px 2px 12px; margin-inline: -2px; scrollbar-width: thin; }
  .cmpx-cards:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 18px; }
  .cmpx-card { flex: 0 0 86%; scroll-snap-align: start; border-radius: 18px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); background: #fff; overflow: hidden; }
  .cmpx-cards-hint { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; font-weight: 600; color: var(--purple); }
  .cmpx-cards-hint .ic { animation: cmpxNudge 1.6s cubic-bezier(.16,1,.3,1) infinite; }
  .cmpx-cards-n { margin-left: auto; color: var(--body); font-weight: 500; }
  .cmpx-card h3 { padding: 14px 16px; background: var(--ink); color: #fff; font: 800 20px/1.15 var(--display); font-stretch: 86%; }
  .cmpx-card h3 span { color: var(--purple-lift); }
  .cc-cols, .cmpx-card li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; row-gap: 6px; align-items: center; padding: 10px 14px; }
  .cc-cols > span:first-child { display: none; }
  .cc-l { grid-column: 1 / -1; }
  .cc-cols { font-size: 13px; font-weight: 600; color: var(--body); border-bottom: 1px solid var(--hair); padding-block: 8px; }
  .cc-cols span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cmpx-card li { border-bottom: 1px solid var(--hair); }
  .cmpx-card li:last-child { border-bottom: 0; }
  .cc-l { font-size: 15px; font-weight: 600; line-height: 1.3; }
  .cc-v .cx-mk { font-size: 14px; white-space: normal; }
  .cc-v { padding: 4px 8px; border-radius: 8px; }
  .cc-v:nth-child(2) { background: rgba(115, 49, 189, .06); }
  .cc-cols > span { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) { .cmpx-hint .ic, .cmpx-cards-hint .ic { animation: none; } }
.stitch-grid { display: grid; gap: 32px; align-items: center; }
.stitch-extra { display: grid; gap: 8px; margin: 4px 0 24px; font-size: 16px; color: rgba(255, 255, 255, .92); }
.stitch-extra li { display: flex; gap: 8px; align-items: center; }
.stitch-extra .ic { flex: none; color: #fde68a; }
.stitch-list { display: grid; gap: 10px; }
.stitch-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.stitch-list b { display: block; font: 800 20px/1.1 var(--display); font-stretch: 86%; }
.stitch-list div > span { display: block; font-size: 16px; color: rgba(255, 255, 255, .88); }
.stitch-list .st-ic { color: var(--purple); }
.st-ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fff; color: var(--purple); }
@media (min-width: 1000px) { .stitch-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

/* countdown digit is not a heading (no single-digit h2 on the page) */
.tzui-countdown .tzui-cd-n { display: block; 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)); }

/* export cards: caption sized to the card, clear of the ratio tag */
.sw .sw-in { container-type: inline-size; }
.sw .sw-in > .fb-cap { top: auto; bottom: calc(10% + 36px); transform: translateX(-50%); width: 88%; font-size: clamp(11px, 8.5cqi, 22px); }

/* sound toggles (shared engine): waiting for the first gesture, and the equaliser while audio runs */
[data-sound-toggle][data-sound-state="waiting"] { opacity: .75; }
[data-sound-toggle].is-playing .ic { animation: eqPulse .9s cubic-bezier(.16,1,.3,1) infinite; transform-origin: 50% 100%; }
@keyframes eqPulse { 50% { transform: scaleY(.72); } }
@media (prefers-reduced-motion: reduce) { [data-sound-toggle].is-playing .ic { animation: none; } }
main:focus { outline: none; }
/* one column: viewfinder, then the record controls, then the takes shelf */
@media (max-width: 1099px) {
  .rec-main { display: contents; }
  .rec-stage > .rec-main > .vf { order: 1; }
  .rec-stage > .rec-side { order: 2; }
  .rec-stage > .rec-main > .takes-shelf { order: 3; }
}
/* How it works editor: the filmstrip shows frames of the same clip as the stage (founder) */
.hs .tzui-ed-thumbs { --tzui-thumb: url("../assets/shared/footage/founder-poster.webp"); }

/* ==========================================================================
   Performance + contrast pass
   ========================================================================== */
/* hero tiles before JS: a static grid on their floor, painted at first paint.
   script.js lifts the same tiles into .tiles.is-live at the positions painted here. */
.tile-floor { position: relative; }
.tile-floor > .tiles { position: absolute; inset: 0; z-index: 5; display: grid; grid-template-columns: repeat(var(--cols, 3), var(--ts)); column-gap: 22px; row-gap: 40px; justify-content: center; align-content: center; pointer-events: none; }
.tile-floor > .tiles .tile { position: relative; transform: rotate(var(--r, 0deg)); }
.tiles.is-live { position: absolute; inset: 0; z-index: 5; display: block; }
@media (min-width: 768px) { .tile-floor > .tiles { --cols: 6; } }
@media (min-width: 1100px) { .tile-floor > .tiles { --cols: 2; } }

/* contrast: prompter labels and spoken words stay dim but readable on black (5.3:1) */
.tzui-w-label { color: #808080; }
.tzui-w--spoken { color: #808080; }
.take-btns .is-p { background: #7331bd; border-color: #7331bd; }
.cmp-chip { background: #b91c1c; }

/* the kinetic headline runs narrower (wdth 76) than the other headings: its own matched fallback */
.kin { font-family: "Bricolage Grotesque", "Bricolage Kin Fallback", sans-serif; }

/* Read: the person rehearsing (a photo beside the Practice screen, which has no camera of its own) */
.read-stage { position: relative; }
.rehearse { margin: 0; width: 180px; padding: 7px 7px 9px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sticker); transform: rotate(-4deg); justify-self: center; }
.rehearse-cam { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #1e1b2e; }
.rehearse-cam img, .rehearse-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rehearse-cam::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px; box-shadow: inset 0 0 0 3px transparent; transition: box-shadow .25s var(--ease); }
.rehearse.is-speaking .rehearse-cam::after { box-shadow: inset 0 0 0 3px #22c55e; }
.rehearse-state { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; border-radius: 9999px; background: rgba(18, 18, 18, .78); color: #fff; font: 700 11px/1 var(--sans); white-space: nowrap; }
.rehearse-state i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #a1a1aa; }
.rehearse.is-speaking .rehearse-state i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .3); }
.rehearse figcaption { margin-top: 6px; font: 600 19px/1.05 var(--hand); color: var(--ink); text-align: center; }
.hold-auto { margin-bottom: 14px; padding: 6px 10px; border-radius: 9999px; background: var(--paper); color: var(--purple-deep); font: 700 12px/1 var(--sans); white-space: nowrap; opacity: 0; transition: opacity .3s var(--ease); }
.hold-auto.is-on { opacity: 1; }
.read-screen { position: relative; }
/* phones: the Practice bar keeps skip, play, skip and reset; text size stays in Settings */
@media (max-width: 520px) {
  .read-screen .pr-bar { gap: 6px; padding: 6px; }
  .read-screen .pr-div, .read-screen .pr-size { display: none; }
  .read-screen .pr-btn { width: 40px; height: 40px; }
  .read-screen .pr-play { height: 40px; padding: 0 12px; }
}
.read-screen .rehearse { margin: 18px auto 6px; }
@media (min-width: 760px) {
  /* the Practice screen has no camera, so the person sits on its empty lower-left corner, outside the text column */
  .read-screen .rehearse { position: absolute; z-index: 4; left: -26px; bottom: 44px; width: 150px; margin: 0; }
}
@media (min-width: 1100px) { .read-screen .rehearse { width: 176px; left: -38px; } }
/* reel: the centred card's clip fills the card like its take */
.rc-in > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* sticker minis: a small still of the character */
.mini-face { position: relative; display: block; overflow: hidden; float: right; width: 96px; height: 54px; border-radius: 8px; margin: 0 0 6px 10px; box-shadow: 0 0 0 2px #fff; background: #1b1626; }
.mini-face img, .mini-face video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Edit: one editor card that builds the finished take tool by tool (auto tour, ~22 s loop) ----------
   Without JS (or with motion off) it rests on the finished take: filter, caption, trim and music on, crop off. */
.ed-app { position: relative; display: grid; gap: 12px; min-width: 0; padding: 12px; border-radius: 24px; background: var(--ink); color: #fff; box-shadow: 0 40px 80px -40px rgba(30, 27, 46, .6); }
.ed-app .cmp { border-radius: 14px; box-shadow: none; }
.cmp-after { container-type: size; }
.ed-bar { display: flex; align-items: center; gap: 8px; padding: 0 2px; }
.ed-app .edf-time { color: rgba(255, 255, 255, .62); }
.ed-app .edf-time b { color: #fff; }
.ed-auto { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--sans); color: rgba(255, 255, 255, .72); }
.ed-auto i { position: relative; width: 56px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.ed-auto i::after { content: ""; position: absolute; inset: 0; background: var(--word); transform-origin: left; transform: scaleX(var(--p, 0)); }
.ed-auto.is-paused i::after { background: rgba(255, 255, 255, .35); }
.ed-app .tools { justify-items: center; }
.ed-app .goo { padding: 6px; background: rgba(255, 255, 255, .07); border-radius: 22px; }
.ed-app .goo-row { gap: 6px; }
.ed-app .goo-chip, .ed-app .goo-export { min-height: 42px; padding: 0 13px; gap: 6px; font-size: 14px; }
.ed-app .goo-export { min-width: 104px; padding: 0 18px; }
.ed-app .goo-chip .ic { width: 16px; height: 16px; }
/* the lit chip's underline is the step timer */
.ed-app .goo-chip[aria-pressed="true"]::after { left: 13px; right: 13px; width: auto; margin: 0; bottom: 6px; transform-origin: left; transform: scaleX(var(--p, 1)); }
.ed-app .tool-hint { min-height: 3em; margin: 0 4px; color: rgba(255, 255, 255, .78); text-align: left; max-width: none; }
.ed-app .tool-hint b { color: #fff; }
.ed-app > .sim { position: absolute; right: 14px; bottom: 14px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }
.ed-app .tool-hint { padding-right: 140px; }

/* captions drawn live on the finished side, sized like the app's renderer (48 px on a 720 px short side) */
.cmp-capt { position: absolute; z-index: 2; left: 50%; top: 82%; width: max-content; max-width: 88%; transform: translate(-50%, -50%); text-align: center; font: 700 6.67cqh/1.2 var(--sans); color: #fff; paint-order: stroke fill; transition: opacity .3s var(--ease), scale .45s var(--ease); }
.cmp-capt[data-preset="box"] { padding: 1.4cqh 1.9cqh; border-radius: 1.6cqh; background: rgba(0, 0, 0, .6); }
.cmp-capt[data-preset="pop"] { color: #ffe600; -webkit-text-stroke: 1.67cqh #000; }
.cmp-capt[data-preset="minimal"] { font-weight: 400; -webkit-text-stroke: .84cqh #000; }
.cmp-capt[data-preset="outline"] { -webkit-text-stroke: 2.22cqh #000; }
.ed-app[data-cap="off"] .cmp-capt { opacity: 0; scale: .9; }
.cmp-style { position: absolute; z-index: 4; left: 50%; top: 12px; transform: translateX(-50%); padding: 6px 11px; border-radius: 9999px; background: rgba(0, 0, 0, .6); color: rgba(255, 255, 255, .85); font: 600 12px/1 var(--sans); white-space: nowrap; opacity: 0; transition: opacity .3s var(--ease); }
.cmp-style b { color: var(--word); }
.ed-app[data-ed-step="captions"] .cmp-style { opacity: 1; }
.cmp-badges { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.cmp-badges .cmp-badge { position: static; display: inline-flex; align-items: center; gap: 5px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.cmp-badge .ic { width: 12px; height: 12px; }
.ed-app[data-filter="off"] [data-ed-badge="filters"], .ed-app[data-music="off"] [data-ed-badge="music"] { opacity: 0; transform: translateY(8px); }
/* crop: a ratio window over the finished side, the rest dimmed */
.cmp-crop { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 31.64%; transform: translateX(-50%); border: 2px solid #fff; border-radius: 4px; box-shadow: 0 0 0 200vmax rgba(12, 10, 22, .62); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), width .6s var(--ease); }
.cmp-crop b { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 5px 10px; border-radius: 9999px; background: #fff; color: var(--ink); font: 800 12px/1 var(--sans); }
.ed-app[data-crop] .cmp-crop { opacity: 1; }
.ed-app[data-crop="1x1"] .cmp-crop { width: 56.25%; }
.ed-app[data-crop="4x5"] .cmp-crop { width: 45%; }

/* timeline: video (filmstrip, trimmed ends hatched), caption blocks, music waveform, red playhead */
.ed-tl { --lab: 92px; position: relative; display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.tl-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; gap: 8px; }
.tl-lab { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans); color: rgba(255, 255, 255, .62); }
.tl-lab .ic { width: 14px; height: 14px; flex: none; }
.tl-track { position: relative; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.tl-clip { position: absolute; top: 0; bottom: 0; left: 9%; right: 6%; border-radius: 6px; background: url(../assets/variant-02-experimental/editing/compare-raw.webp?v=3) left center / auto 100% repeat-x, var(--purple); box-shadow: inset 0 0 0 2px var(--purple-lift); transition: left .7s var(--ease), right .7s var(--ease); }
.tl-cut { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .16) 0 4px, transparent 4px 8px); transition: opacity .5s var(--ease); }
.tl-cut--l { left: 0; width: 9%; }
.tl-cut--r { right: 0; width: 6%; }
.ed-app[data-trim="off"] .tl-clip { left: 0; right: 0; }
.ed-app[data-trim="off"] .tl-cut { opacity: 0; }
.tl-caps { display: flex; gap: 3px; padding: 4px 6% 4px 9%; }
.tl-caps i { flex: 1; border-radius: 4px; background: var(--word); transform-origin: left; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.tl-caps i:nth-child(2) { transition-delay: .06s; } .tl-caps i:nth-child(3) { transition-delay: .12s; } .tl-caps i:nth-child(4) { transition-delay: .18s; } .tl-caps i:nth-child(5) { transition-delay: .24s; } .tl-caps i:nth-child(6) { transition-delay: .3s; }
.ed-app[data-cap="off"] .tl-caps i { transform: scaleX(0); opacity: 0; transition-delay: 0s; }
.tl-wave { position: absolute; inset: 3px 4px; display: flex; align-items: center; gap: 2px; clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease); }
.tl-wave b { flex: 1; min-width: 1px; border-radius: 2px; background: #34d399; }
.ed-app[data-music="off"] .tl-wave { clip-path: inset(0 100% 0 0); }
.tl-head { position: absolute; z-index: 2; top: 6px; bottom: 6px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--rec); box-shadow: 0 0 8px rgba(239, 68, 68, .7); left: calc(12px + var(--lab) + 8px + (100% - 32px - var(--lab)) * var(--p, .1)); pointer-events: none; }
@media (max-width: 560px) {
  /* small previews: the badges move up under the Finished tag so they never sit on the caption */
  .cmp-badges { top: 38px; bottom: auto; right: 8px; flex-direction: column; align-items: flex-end; gap: 4px; }
  .ed-tl { --lab: 16px; }
  .tl-lab { font-size: 0; gap: 0; }
  .ed-app .tool-hint { padding-right: 0; }
  .ed-app > .sim { position: static; justify-self: end; }
  .ed-auto span { display: none; }
}

/* effects library card: the coach clip, a title, and the chip that is playing lit */
.fx-title { display: grid; gap: 4px; font: 800 24px/1.1 var(--display); font-stretch: 86%; }
.fx-title span { font: 500 15px/1.4 var(--sans); color: var(--body); }
.fx-prev video { transition: none; }
@media (min-width: 1100px) { .edit-grid { grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr); } }

/* below the fold: skip style, layout and paint until a section comes near the viewport
   (the browser keeps each section's real height once it has rendered) */
main > section:not(:first-child), footer.foot { content-visibility: auto; contain-intrinsic-size: auto 1100px; }

/* ======================================================================
   9b. MOBILE APP: copy and store buttons over an endless belt of phones
   ====================================================================== */
.pocket { position: relative; overflow: hidden; padding-bottom: 0; }
.pocket-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
.pocket-get { display: grid; gap: 22px; justify-items: start; }
.pocket-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.chunky.store { min-height: 64px; gap: 12px; padding: 0 22px 0 18px; text-decoration: none; }
.chunky.store:hover { background: #f1e8ff; }
.chunky.store:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.chunky.store span { display: grid; font: 800 19px/1.05 var(--sans); letter-spacing: -.01em; }
.chunky.store small { font: 600 11px/1.3 var(--sans); letter-spacing: .02em; color: var(--body); }
.pocket-qr { display: flex; align-items: center; gap: 16px; margin: 0; padding: 12px 20px 12px 12px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 0 5px 0 var(--ink); transform: rotate(-1.5deg); }
.pocket-qr img { width: 104px; height: 104px; }
.pocket-qr figcaption { max-width: 9em; font: 700 24px/1.05 var(--hand); color: var(--purple-deep); }
.pocket-belt { position: relative; margin-top: clamp(44px, 5vw, 76px); padding: clamp(40px, 4vw, 60px) 0 clamp(56px, 5vw, 80px); border-block: 2px solid var(--ink); background: #fff; overflow: hidden; }
/* the track's left padding equals the gap, so translating it by -50% lands item 6 exactly where item 1 was */
.pocket-track { display: flex; gap: clamp(32px, 3vw, 52px); width: max-content; padding-left: clamp(32px, 3vw, 52px); will-change: transform; }
.pocket-ph { position: relative; flex: none; width: clamp(200px, 16vw, 248px); margin: 0; transform: rotate(var(--r)); }
.pocket-ph img { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 26px rgba(30, 27, 46, .28)); }
.pocket-ph figcaption { position: absolute; left: 50%; bottom: -16px; translate: -50% 0; padding: 4px 16px 7px; border: 2px solid var(--ink); border-radius: 999px; background: var(--word); box-shadow: 0 3px 0 var(--ink); font: 700 23px/1 var(--hand); color: var(--ink); white-space: nowrap; transform: rotate(calc(var(--r) * -1.5)); }
@media (max-width: 899px) { .pocket-head { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* footer store buttons */
.foot-apps { display: flex; flex-wrap: wrap; gap: 10px; }
.store-mini { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px 0 12px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; transition: background-color .2s; }
.store-mini:hover { background: var(--purple-deep); }
.store-mini:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.store-mini span { display: grid; font: 700 14px/1.1 var(--sans); }
.store-mini small { font: 500 9.5px/1.3 var(--sans); color: #c9c2e3; }

/* on a phone the visitor is already on the phone: the store buttons are enough, no QR code */
@media (max-width: 700px) { .pocket-qr { display: none; } }
