/* TranscribeLab website, v3 (owner 2026-09-29: "2D websites are the past", "nobody wants to read
   text poured over orange", typography too heavy).
   - Light, airy canvas with depth: ambient light blooms, a faint lab grid, a floor plane.
   - The product is shown in 3D: tilted windows, cards floating at different depths, soft
     contact shadows, a gentle tilt that follows the pointer.
   - Type: Plus Jakarta Sans 700 for headings (not 800), Inter for reading, JetBrains Mono only for
     data (time stamps, timers, sizes). Dark text on light surfaces; orange is for action and light. */

:root {
  --canvas: #fafafa;
  --surface: #ffffff;
  --ink: #0f172a;
  --text: #1e293b;
  --body: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --tile: #f8fafc;
  --slate-300: #cbd5e1;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --orange: #ea580c;
  --orange-deep: #c2410c;
  --orange-bright: #f97316;
  --orange-soft: #fb923c;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --green: #059669;
  --green-dot: #34d399;
  --green-50: #ecfdf5;
  --green-200: #a7f3d0;
  --sky: #0284c7;
  --sky-50: #f0f9ff;
  --sky-200: #bae6fd;

  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 28px -14px rgba(15, 23, 42, 0.18);
  --shadow-3d: 0 2px 4px rgba(15, 23, 42, 0.06), 0 24px 40px -18px rgba(15, 23, 42, 0.32), 0 60px 90px -40px rgba(15, 23, 42, 0.35);
  --shadow-float: 0 2px 6px rgba(15, 23, 42, 0.08), 0 28px 50px -20px rgba(15, 23, 42, 0.42);

  --container: 1280px;
  --gutter: 48px;
  --slide-ms: 7000ms;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.container { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons: tactile, lit from above ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r); text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff; font: 700 16px/24px var(--font-display); padding: 12px 22px;
  background: linear-gradient(180deg, var(--orange-bright) 0%, var(--orange) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 0 var(--orange-deep), 0 12px 24px -10px rgba(234, 88, 12, 0.65);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--orange-soft) 0%, var(--orange-bright) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 0 var(--orange-deep), 0 16px 30px -10px rgba(234, 88, 12, 0.7); }
.btn-secondary {
  color: var(--slate-700); background: var(--surface); font: 600 15px/22px var(--font-body); padding: 12px 20px;
  border: 1px solid var(--line); box-shadow: inset 0 -1px 0 var(--line-soft), 0 1px 2px rgba(15, 23, 42, 0.06);
}
.btn-secondary:hover { border-color: var(--slate-300); color: var(--ink); }
.btn-sm { font: 600 14px/20px var(--font-body); padding: 9px 16px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- header: a floating glass bar ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-pill {
  pointer-events: auto; height: 60px; display: flex; align-items: center; gap: 36px; padding: 0 10px 0 16px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.74); border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px);
  box-shadow: inset 0 1px 0 #fff, 0 16px 36px -20px rgba(15, 23, 42, 0.35);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #fff;
  font: 800 13px/1 var(--font-display); letter-spacing: -0.02em;
  background: linear-gradient(160deg, var(--orange-soft), var(--orange) 55%, var(--orange-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 12px -6px rgba(234, 88, 12, 0.7);
}
.brand-mark.sm { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }
.brand-mark.xs { width: 20px; height: 20px; border-radius: 6px; font-size: 9px; }
.brand-name { font: 700 19px/1 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.nav { display: flex; gap: 26px; }
.nav a, .link-quiet { text-decoration: none; font: 500 14.5px/20px var(--font-body); color: var(--body); transition: color .15s ease; }
.nav a:hover, .link-quiet:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 98px 0 80px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.bloom { position: absolute; border-radius: 50%; filter: blur(20px); }
.bloom-a { width: 820px; height: 820px; top: -360px; right: -220px; background: radial-gradient(circle, rgba(251, 146, 60, 0.30), rgba(251, 146, 60, 0) 62%); }
.bloom-b { width: 760px; height: 760px; top: 420px; left: -360px; background: radial-gradient(circle, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0) 62%); }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 18%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 18%, #000 25%, transparent 72%);
}
.hero-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font: 500 14px/20px var(--font-body); color: var(--slate-700);
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-dot); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
.hero h1 {
  margin-top: 0; max-width: 21ch; text-wrap: balance;
  font: 700 54px/1.04 var(--font-display); letter-spacing: -0.034em; color: var(--ink);
}
.hero h1 .soft { color: var(--muted); }
.lead { margin-top: 14px; max-width: 60ch; font-size: 17px; line-height: 27px; color: var(--body); }
.hero-cta { display: grid; gap: 16px; justify-items: start; padding-bottom: 4px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 22px; color: var(--body); }
.checks .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: var(--green); background: var(--green-50); stroke-width: 2.6; }

/* ---------- showcase ---------- */
.showcase { margin-top: 26px; }
.tabs-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
.tabs {
  display: inline-flex; gap: 4px; padding: 6px; border-radius: 18px; max-width: 100%;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px -18px rgba(15, 23, 42, 0.28);
}
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px 13px; border-radius: 13px;
  border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  font: 600 14.5px/20px var(--font-body); color: var(--muted); transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.tab .ic { width: 19px; height: 19px; color: var(--faint); transition: color .2s ease; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 8px 18px -10px rgba(15, 23, 42, 0.3); }
.tab[aria-selected="true"] .ic { color: var(--orange); }
.tab .bar { position: absolute; left: 16px; bottom: 5px; height: 2px; width: 0; border-radius: 2px; background: var(--orange); }
.tab[aria-selected="true"] .bar { animation: tabfill var(--slide-ms) linear forwards; }
.showcase.is-paused .tab[aria-selected="true"] .bar { animation-play-state: paused; }
.showcase.is-still .tab .bar { display: none; }
@keyframes tabfill { to { width: calc(100% - 32px); } }

.stage {
  position: relative; border-radius: var(--r-xl); overflow: hidden; touch-action: pan-y; perspective: 1200px;
  background:
    radial-gradient(ellipse 60% 70% at 72% 42%, rgba(255, 237, 213, 0.9), rgba(255, 237, 213, 0) 70%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(15, 23, 42, 0.04), 0 50px 90px -50px rgba(15, 23, 42, 0.45);
}
.stage-floor {
  position: absolute; left: -20%; right: -20%; bottom: -40px; height: 360px; pointer-events: none;
  background-image: linear-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: rotateX(74deg); transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 90% at 60% 100%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 50% 90% at 60% 100%, #000 10%, transparent 70%);
}
.slides { position: relative; z-index: 1; display: grid; }
.slide {
  grid-area: 1 / 1; min-width: 0; min-height: 492px;
  display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); gap: 28px; align-items: center;
  padding: 22px 76px 22px 72px;
  opacity: 0; visibility: hidden; transform: translateX(36px);
  transition: opacity .45s ease, transform .7s cubic-bezier(.2, .75, .2, 1), visibility 0s linear .7s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease .08s, transform .7s cubic-bezier(.2, .75, .2, 1), visibility 0s; }
.slide.from-left { transform: translateX(-36px); }
.slide-kicker { font: 600 14px/20px var(--font-body); color: var(--orange-deep); }
.slide-copy h2 { margin-top: 10px; font: 700 34px/1.14 var(--font-display); letter-spacing: -0.026em; color: var(--ink); text-wrap: balance; }
.slide-copy > p:not(.slide-kicker) { margin-top: 14px; max-width: 42ch; font-size: 16.5px; line-height: 27px; color: var(--body); }
.slide-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.slide-points li { display: flex; gap: 12px; align-items: flex-start; font: 500 15.5px/24px var(--font-body); color: var(--text); }
.slide-points .ic { width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; stroke-width: 2.8; color: var(--orange-deep); background: var(--orange-100); }

.arrow {
  position: absolute; top: 50%; z-index: 6; width: 46px; height: 46px; margin-top: -23px;
  display: grid; place-items: center; border-radius: 999px; cursor: pointer; color: var(--ink);
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 #fff, 0 12px 24px -12px rgba(15, 23, 42, 0.4);
  transition: transform .15s ease, background-color .15s ease;
}
.arrow:hover { transform: scale(1.06); background: #fff; }
.arrow.prev { left: 20px; }
.arrow.next { right: 20px; }
.arrow .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.dots-row { display: none; justify-content: center; gap: 8px; margin-top: 16px; }
.dots-row i { width: 8px; height: 8px; border-radius: 999px; background: var(--slate-300); transition: width .2s ease, background-color .2s ease; }
.dots-row i.on { width: 24px; background: var(--orange); }

/* ---------- 3D product scenes ---------- */
.art { position: relative; width: 620px; height: 440px; justify-self: end; perspective: 1500px; perspective-origin: 35% 45%; }
.glow {
  position: absolute; left: 50%; top: 50%; width: 560px; height: 440px; margin: -220px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.28), rgba(249, 115, 22, 0) 65%); filter: blur(12px); pointer-events: none;
}
.rig {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(9deg + var(--tilt-x))) rotateY(calc(-17deg + var(--tilt-y))) rotateZ(1deg);
  transition: transform .6s cubic-bezier(.2, .75, .2, 1);
}
.z0 { transform: translateZ(0); }
.z1 { transform: translateZ(80px); }
.z2 { transform: translateZ(140px); }

.window { position: absolute; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-3d); border: 1px solid rgba(226, 232, 240, 0.9); }
.window::after, .card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 32%);
}
.window-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: var(--tile); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-300); }
.url {
  flex: 1; min-width: 0; height: 22px; padding: 0 10px; border-radius: 6px; background: #fff; border: 1px solid var(--line);
  font: 500 11px/20px var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-float); border: 1px solid rgba(226, 232, 240, 0.9); padding: 14px 16px; }
.line { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; line-height: 18px; color: var(--text); }
.line + .line { margin-top: 9px; }
.line .t { font: 500 10.5px/18px var(--font-mono); color: var(--faint); flex: none; }
.who { font: 700 12.5px/18px var(--font-body); flex: none; }
.who-a { color: var(--orange-deep); }
.who-b { color: var(--sky); }
.who-c { color: var(--green); }
.who-d { color: var(--slate-700); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 600 10.5px/16px var(--font-mono); border: 1px solid transparent; white-space: nowrap; }
.pill-green { background: var(--green-50); border-color: var(--green-200); color: var(--green); }
.pill-orange { background: var(--orange-50); border-color: var(--orange-200); color: var(--orange-deep); }
.pill-sky { background: var(--sky-50); border-color: var(--sky-200); color: var(--sky); }
.pill-slate { background: var(--line-soft); border-color: var(--line); color: var(--slate-700); }
.mini-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--slate-700); font: 600 11.5px/1 var(--font-body); white-space: nowrap;
}
.mini-btn .ic { width: 14px; height: 14px; }
.mini-btn.primary {
  color: #fff; border-color: transparent; background: linear-gradient(180deg, var(--orange-bright), var(--orange));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 12px -6px rgba(234, 88, 12, 0.7);
  transition: transform .12s ease, filter .12s ease;
}
.mini-btn.primary.is-pressed { transform: scale(.95); filter: brightness(.92); }
.tick { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 18px; color: var(--text); }
.tick + .tick { margin-top: 7px; }
.tick .ic { width: 16px; height: 16px; color: var(--green); stroke-width: 2.4; margin-top: 1px; }

/* 1. calls */
.platforms { position: absolute; top: 0; left: 22px; display: flex; gap: 6px; }
.platforms span {
  padding: 6px 13px; border-radius: 999px; font: 600 12px/16px var(--font-body); color: var(--slate-700);
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); box-shadow: 0 8px 18px -10px rgba(15, 23, 42, 0.35);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.platforms span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.call { top: 44px; left: 0; width: 548px; }
.call-body { display: grid; grid-template-columns: 2.25fr 1fr; gap: 6px; padding: 6px; height: 268px; background: #1f2937; }
.call-side { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px; min-height: 0; }
.tile { position: relative; overflow: hidden; border-radius: 8px; background: #334155; min-height: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: 8px; border: 2px solid transparent; transition: border-color .25s ease; pointer-events: none; }
.tile.speaking::after { border-color: var(--green-dot); }
.tile-name {
  position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px; border-radius: 5px; background: rgba(15, 23, 42, 0.6); color: #fff; font: 600 10.5px/16px var(--font-body);
  backdrop-filter: blur(4px);
}
.tile-name .ic { width: 12px; height: 12px; stroke-width: 2; opacity: .85; }
.tile-main .tile-name { font-size: 12px; padding: 3px 9px; left: 10px; bottom: 10px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq i { width: 2.5px; border-radius: 2px; background: var(--green-dot); height: 4px; }
.tile.speaking .eq i { animation: eq .9s ease-in-out infinite; }
.tile.speaking .eq i:nth-child(2) { animation-delay: .15s; }
.tile.speaking .eq i:nth-child(3) { animation-delay: .3s; }
.tile:not(.speaking) .eq { opacity: .4; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.call-controls { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; background: #111827; }
.ctl { display: inline-flex; align-items: center; gap: 4px; height: 30px; min-width: 30px; padding: 0 8px; border-radius: 8px; background: #1f2937; color: #cbd5e1; font: 600 11px/1 var(--font-body); }
.ctl .ic { width: 16px; height: 16px; }
.ctl em { font-style: normal; }
.ctl-leave { background: #374151; color: #fff; padding: 0 12px; }
.tl-panel { position: absolute; right: 2px; bottom: -8px; width: 300px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-float); border: 1px solid rgba(226, 232, 240, 0.9); }
.tl-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font: 700 13px/1 var(--font-display); color: var(--ink); }
.rec { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--orange-50); border: 1px solid var(--orange-200); color: var(--orange-deep); font: 600 11px/1 var(--font-mono); }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.tl-lines { padding: 12px 14px; height: 156px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34px); mask-image: linear-gradient(to bottom, transparent 0, #000 34px); }
.tl-lines .line { flex: none; }
.tl-lines .line.enter { animation: lineIn .45s ease both; }
@keyframes lineIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.typing::after { content: ""; display: inline-block; width: 6px; height: 12px; margin-left: 2px; vertical-align: -1px; background: var(--orange); animation: pulse 1s steps(1) infinite; }
.tl-foot { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--line-soft); }
.mini-btn.stop i { width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }

/* 2. YouTube: a faithful YouTube watch page (its own fonts and red, so people recognise it at
   once; the no-red rule is for our own interface), with the TranscribeLab panel where the add-on
   really puts it: at the top of the right-hand column of YouTube. */
.ytw { top: 22px; left: -8px; width: 628px; font-family: Roboto, Arial, sans-serif; }
.yt-mast { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-bottom: 1px solid #f2f2f2; background: #fff; }
.yt-burger { display: grid; gap: 3px; width: 16px; }
.yt-burger i { height: 2px; border-radius: 1px; background: #0f0f0f; }
.yt-logo { display: inline-flex; align-items: center; gap: 3px; }
.yt-logo-mark { position: relative; width: 22px; height: 15px; border-radius: 4px; background: #ff0033; }
.yt-logo-mark::after { content: ""; position: absolute; left: 8.5px; top: 4px; border-left: 6px solid #fff; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }
.yt-logo b { font: 700 15px/1 Arial, sans-serif; letter-spacing: -0.7px; color: #0f0f0f; }
.yt-logo sup { align-self: flex-start; margin-top: 7px; font: 400 7px/1 Arial, sans-serif; color: #606060; }
.yt-search { flex: 1; display: flex; align-items: center; height: 28px; margin-left: 16px; border: 1px solid #d3d3d3; border-radius: 999px; overflow: hidden; }
.yt-search span { flex: 1; padding: 0 12px; font-size: 12px; color: #888; }
.yt-search i { display: grid; place-items: center; width: 46px; height: 100%; background: #f8f8f8; border-left: 1px solid #d3d3d3; color: #0f0f0f; }
.yt-search .ic, .yt-round .ic { width: 15px; height: 15px; }
.yt-round { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f2f2f2; color: #0f0f0f; }
.yt-mast-right { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.yt-bell { position: relative; display: grid; color: #0f0f0f; }
.yt-bell .ic { width: 18px; height: 18px; }
.yt-bell em { position: absolute; top: -5px; right: -10px; padding: 0 3px; border-radius: 8px; background: #ff0033; color: #fff; font: 700 8px/12px Arial, sans-serif; font-style: normal; }
.yt-me { width: 24px; height: 24px; border-radius: 50%; background: var(--sky); color: #fff; font: 700 11px/24px Arial, sans-serif; text-align: center; }
.yt-page { display: grid; grid-template-columns: 378px minmax(0, 1fr); gap: 14px; padding: 10px 12px 12px; background: #fff; }
.yt-player { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.yt-player img { width: 100%; height: 100%; object-fit: cover; }
.yt-cc {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); max-width: 90%; width: max-content;
  padding: 3px 8px; border-radius: 3px; background: rgba(8, 8, 8, 0.75); color: #fff; font: 400 12.5px/17px Roboto, Arial, sans-serif; text-align: center;
}
.yt-chrome { position: absolute; inset: auto 0 0 0; padding: 24px 10px 7px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); color: #fff; }
.yt-bar { position: relative; height: 3px; background: rgba(255, 255, 255, 0.3); }
.yt-buffer { position: absolute; left: 0; top: 0; bottom: 0; width: 58%; background: rgba(255, 255, 255, 0.45); }
.yt-played { position: absolute; left: 0; top: 0; bottom: 0; width: 35%; background: #ff0033; transition: width .9s linear; }
.yt-played::after { content: ""; position: absolute; right: -5px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: #ff0033; }
.yt-ctrls { display: flex; align-items: center; gap: 11px; margin-top: 8px; }
.yt-ctrls .ic { width: 15px; height: 15px; color: #fff; }
.yt-play-ic { width: 10px; height: 12px; border-left: 3.5px solid #fff; border-right: 3.5px solid #fff; }
.yt-time { font: 400 11px/1 Roboto, Arial, sans-serif; }
.yt-chap { font: 400 11px/1 Roboto, Arial, sans-serif; color: rgba(255, 255, 255, 0.85); }
.yt-chap::before { content: "\2022\00a0"; }
.yt-ctrls-right { margin-left: auto; display: flex; align-items: center; gap: 11px; }
.yt-cc-btn { position: relative; padding: 1px 3px; border: 1.5px solid #fff; border-radius: 2px; font: 700 8.5px/1.2 Arial, sans-serif; }
.yt-cc-btn::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: -5px; height: 2px; background: #ff0033; }
.yt-h1 { margin-top: 10px; font: 700 14px/19px Roboto, Arial, sans-serif; color: #0f0f0f; }
.yt-owner { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.yt-ava { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sky-50); color: var(--sky); font: 700 10px/1 Arial, sans-serif; }
.yt-chn { display: grid; }
.yt-chn b { font: 700 12px/15px Roboto, Arial, sans-serif; color: #0f0f0f; }
.yt-chn span { font: 400 10.5px/13px Roboto, Arial, sans-serif; color: #606060; }
.yt-subscribe { margin-left: 4px; padding: 7px 12px; border-radius: 999px; background: #0f0f0f; color: #fff; font: 700 11.5px/1 Roboto, Arial, sans-serif; }
.yt-like { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #f2f2f2; color: #0f0f0f; font: 700 11.5px/1 Roboto, Arial, sans-serif; }
.yt-like .ic { width: 14px; height: 14px; }
.yt-like i { width: 1px; height: 14px; background: #ccc; }
.yt-secondary { display: grid; gap: 8px; align-content: start; }
.yt-slot { height: 190px; border-radius: 12px; background: #f2f2f2; }
.yt-rec { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
.yt-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #e5e5e5; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-thumb em { position: absolute; right: 3px; bottom: 3px; padding: 1px 3px; border-radius: 3px; background: rgba(0, 0, 0, 0.8); color: #fff; font: 500 9px/12px Roboto, Arial, sans-serif; font-style: normal; }
.yt-rec-t { display: grid; align-content: start; }
.yt-rec-t b { font: 600 11px/14px Roboto, Arial, sans-serif; color: #0f0f0f; }
.yt-rec-t span { font: 400 10px/13px Roboto, Arial, sans-serif; color: #606060; }
.tl-yt {
  left: 384px; top: 104px; width: 244px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px;
  border: 1.5px solid var(--orange-200); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1), var(--shadow-float);
}
.tl-yt-head { display: flex; align-items: center; gap: 7px; font: 700 12.5px/1 var(--font-display); color: var(--ink); }
.tl-yt-head .pill { margin-left: auto; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--line-soft); }
.seg b { padding: 5px 10px; border-radius: 7px; text-align: center; font: 600 11px/14px var(--font-body); color: var(--muted); }
.seg b.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.seg-wide { display: flex; }
.seg-wide b { flex: 1; }
.yt-lines .line { padding: 4px 6px; margin: 0 -6px; border-radius: 6px; font-size: 12px; line-height: 17px; transition: background-color .3s ease; }
.yt-lines .line + .line { margin-top: 1px; }
.yt-lines .line.now { background: var(--orange-50); box-shadow: inset 2px 0 0 var(--orange); }
.yt-lines .line.now .t { color: var(--orange-deep); }
.ask { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px; padding: 0 4px 0 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--tile); font-size: 11.5px; color: var(--faint); }
.ask i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff; }
.ask .ic { width: 13px; height: 13px; }
.takeaways { left: -44px; bottom: -12px; width: 250px; padding: 12px 14px; }
.takeaways-title { display: flex; align-items: center; gap: 6px; font: 700 13px/18px var(--font-display); color: var(--ink); }
.takeaways-title .ic { width: 16px; height: 16px; color: var(--orange); }
.takeaways ol { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: k; display: grid; gap: 6px; }
.takeaways li { counter-increment: k; display: flex; gap: 8px; font-size: 12.5px; line-height: 18px; color: var(--text); }
.takeaways li::before { content: counter(k); display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--orange-100); color: var(--orange-deep); font: 700 10.5px/1 var(--font-mono); }

/* 3. files */
.files { top: 6px; left: 0; width: 470px; }
.files-body { padding: 16px; display: grid; gap: 10px; }
.drop {
  display: grid; justify-items: center; gap: 4px; padding: 22px 12px; border-radius: 12px; text-align: center;
  border: 1.5px dashed var(--slate-300); background: var(--tile); transition: border-color .25s ease, background-color .25s ease;
}
.drop .ic { width: 28px; height: 28px; color: var(--orange); }
.drop b { font: 700 13.5px/18px var(--font-display); color: var(--ink); }
.drop span { font-size: 12px; color: var(--muted); }
.drop.is-hot { border-color: var(--orange-bright); background: var(--orange-50); }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.file-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--green-50); color: var(--green); flex: none; }
.file-row.busy .file-ic { background: var(--orange-50); color: var(--orange-deep); }
.file-ic .ic { width: 18px; height: 18px; }
.file-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.file-meta b { font: 600 12.5px/16px var(--font-mono); color: var(--ink); }
.file-meta > span { font-size: 11.5px; color: var(--muted); }
.prog { display: block; height: 4px; border-radius: 4px; background: var(--line); margin-top: 4px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 68%; background: var(--orange); border-radius: 4px; transition: width .5s ease; }
.preview { right: -10px; bottom: 4px; width: 300px; }
.preview-title { font: 600 11.5px/16px var(--font-mono); color: var(--muted); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.drag-chip {
  position: absolute; top: 16px; right: 40px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px; background: #fff; color: var(--ink); font: 600 12px/1 var(--font-mono);
  box-shadow: var(--shadow-float); border: 1px solid var(--line); transform: translateZ(140px) rotate(-4deg);
}
.drag-chip .ic { width: 16px; height: 16px; color: var(--orange); }
.drag-chip.is-flying { animation: fly 1.6s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes fly {
  0% { transform: translateZ(140px) translate(0, 0) rotate(-4deg); opacity: 1; }
  80% { transform: translateZ(40px) translate(-300px, 70px) rotate(0); opacity: 1; }
  100% { transform: translateZ(20px) translate(-300px, 76px) scale(.9); opacity: 0; }
}

/* 4. summary */
.doc { top: 30px; left: 0; width: 520px; }
.doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line-soft); }
.doc-title { font: 700 17px/22px var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.doc-meta { margin-top: 3px; font: 500 11px/14px var(--font-mono); color: var(--faint); }
.doc-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.doc-sec { padding: 11px 18px; }
.doc-sec + .doc-sec { border-top: 1px solid var(--line-soft); }
.doc-sec > p:not(.doc-h):not(.tick) { font-size: 12.5px; line-height: 18px; color: var(--text); }
.doc-h { font: 700 12px/16px var(--font-display); color: var(--muted); margin-bottom: 6px; }
.task { display: grid; grid-template-columns: 22px 52px 1fr auto; align-items: center; gap: 8px; font-size: 12.5px; line-height: 18px; color: var(--text); }
.task + .task { margin-top: 7px; }
.task img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.task b { font-weight: 700; color: var(--ink); }
.task em { font: 600 10.5px/1 var(--font-mono); font-style: normal; padding: 4px 7px; border-radius: 6px; background: var(--orange-50); color: var(--orange-deep); border: 1px solid var(--orange-200); }
.doc-next { display: flex; align-items: center; justify-content: space-between; }
.doc-next .doc-h { margin: 0; }
.toast {
  position: absolute; top: 0; right: -6px; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 15px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-float); border: 1px solid var(--line);
  font: 600 13px/1 var(--font-body); color: var(--ink); transition: opacity .35s ease, transform .35s ease;
}
.toast .ic { width: 18px; height: 18px; color: #fff; background: var(--green); border-radius: 50%; padding: 3px; stroke-width: 3; }
.toast.is-hidden { opacity: 0; transform: translateZ(140px) translateY(-10px); }
.share-chip {
  position: absolute; right: -4px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12px/1 var(--font-mono); box-shadow: var(--shadow-float);
}
.share-chip .ic { width: 15px; height: 15px; color: var(--orange-200); }

/* 5. search */
.search { top: 28px; left: 0; width: 600px; }
.search-body { padding: 16px; display: grid; gap: 10px; }
.search-box {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--orange-bright); background: #fff; box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
  font: 500 15px/1 var(--font-body); color: var(--ink);
}
.search-box > .ic { color: var(--muted); }
.caret { width: 2px; height: 20px; background: var(--orange); margin-left: -8px; animation: pulse 1s steps(1) infinite; }
.count { margin-left: auto; font: 600 11px/1 var(--font-mono); color: var(--muted); padding: 5px 8px; border-radius: 6px; background: var(--line-soft); }
.result { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: opacity .3s ease, transform .3s ease; }
.result:first-of-type { border-color: var(--orange-200); background: var(--orange-50); }
.result.is-hidden { opacity: 0; transform: translateY(6px); }
.src { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--font-body); color: var(--slate-700); }
.src .ic { width: 16px; height: 16px; }
.src-call .ic { color: var(--sky); }
.src-yt .ic { color: var(--orange); }
.src-file .ic { color: var(--green); }
.res-text b { display: block; font: 700 13px/18px var(--font-display); color: var(--ink); }
.res-text p { margin-top: 3px; font-size: 12.5px; line-height: 18px; color: var(--body); }
mark { background: var(--orange-100); color: var(--orange-deep); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.ts { font: 600 11px/1 var(--font-mono); color: var(--slate-700); padding: 6px 8px; border-radius: 7px; background: var(--line-soft); border: 1px solid var(--line); }

/* 6. languages */
.lang-card { width: 290px; }
.lang-from { top: 8px; left: 0; }
.lang-to { top: 130px; right: 12px; }
.lang-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 700 12px/16px var(--font-display); color: var(--muted); }
.lang-switch {
  position: absolute; left: 44%; top: 238px; margin-left: -42px; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 12px/1 var(--font-mono); box-shadow: var(--shadow-float);
}
.lang-switch .ic { width: 16px; height: 16px; color: var(--orange-200); }
.lang-cloud { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lang-cloud span { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line); color: var(--slate-700); font: 600 12.5px/16px var(--font-body); box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.4); }
.lang-cloud span { transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease; }
.lang-cloud span.on { background: var(--orange-50); color: var(--orange-deep); border-color: var(--orange-200); transform: translateY(-2px); }

.swap { color: var(--orange-deep); display: inline-block; }
.swap, [data-say], [data-sum], [data-src-native], [data-dst-native], [data-src-code], [data-dst-code] { transition: opacity .22s ease, transform .22s ease; }
.is-out { opacity: 0; transform: translateY(-4px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- scenes v2 (2026-09-30): honest calls panel, richer files / summary / search ---------- */
.art { direction: ltr; }

/* 1. calls: the panel shows the real order of things: recording, then writing, then the text */
.tl-panel:not([data-state="rec"]) .st-rec,
.tl-panel:not([data-state="writing"]) .st-writing,
.tl-panel:not([data-state="ready"]) .st-ready { display: none; }
.tl-body { position: relative; height: 168px; }
.tl-body > .st { position: absolute; inset: 0; animation: viewIn .4s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rec-view { padding: 12px 14px; display: grid; align-content: start; gap: 8px; }
.rec-title { font: 600 12px/16px var(--font-body); color: var(--slate-700); }
.wave { display: flex; align-items: center; gap: 3px; height: 54px; padding: 0 6px; border-radius: 10px; background: var(--orange-50); border: 1px solid var(--orange-100); }
.wave i { flex: 1; min-width: 2px; height: 20%; border-radius: 2px; background: linear-gradient(180deg, var(--orange-bright), var(--orange)); transition: height .18s ease; }
.meter { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 8px; font-size: 11px; line-height: 14px; color: var(--muted); }
.meter i { display: block; height: 5px; border-radius: 5px; background: var(--line-soft); overflow: hidden; }
.meter b { display: block; height: 100%; width: 40%; border-radius: 5px; background: var(--green-dot); transition: width .18s ease; }
.writing-view { display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 0 20px; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--orange-100); border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.writing-title { margin-top: 4px; font: 700 13.5px/18px var(--font-display); color: var(--ink); }
.writing-sub { font: 500 11px/14px var(--font-mono); color: var(--muted); }
.writing-view .prog { width: 180px; margin-top: 6px; }
.writing-view .prog i { width: 0; transition: width .25s linear; }
.tl-panel .tl-lines { height: auto; padding: 12px 14px; display: block; -webkit-mask-image: none; mask-image: none; }
.tl-lines .line.enter { animation: lineIn .45s ease both; }
.tl-lines .line.wait { opacity: 0; }
.tl-foot { align-items: center; }
.foot-note { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--font-body); color: var(--muted); }
.foot-note .ic { width: 14px; height: 14px; }
.mini-btn { transition: transform .12s ease, filter .12s ease; }
.mini-btn.is-pressed { transform: scale(.94); filter: brightness(.94); }
.tile .eq { display: none; }
.tile.speaking .eq { display: inline-flex; }

/* 3. files */
.files { width: 452px; }
.drop { padding: 16px 12px 14px; }
.formats { display: flex; gap: 5px; margin-top: 8px; }
.formats i { font: 600 10px/1 var(--font-mono); font-style: normal; color: var(--slate-700); padding: 4px 6px; border-radius: 5px; background: #fff; border: 1px solid var(--line); }
.file-row { padding: 8px 10px; }
.file-thumb { position: relative; width: 46px; height: 34px; border-radius: 7px; overflow: hidden; flex: none; background: var(--slate-800); }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.file-thumb .ic { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; color: #fff; }
.editor { right: 0; bottom: -6px; width: 318px; padding: 12px 14px 14px; }
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.editor-head .preview-title { margin: 0; padding: 0; border: 0; }
.editor-wave { position: relative; display: flex; align-items: center; gap: 2px; height: 40px; }
.editor-wave > i:not(.playhead) { flex: 1; min-width: 1.5px; border-radius: 2px; background: var(--orange-200); }
.editor-wave > i.b { background: var(--sky-200); }
.editor-wave > i.played { background: var(--orange); }
.editor-wave > i.b.played { background: var(--sky); }
.playhead { position: absolute; top: -3px; bottom: -3px; left: 30%; width: 2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08); transition: left .4s linear; }
.editor-ctrl { display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; }
.editor-ctrl .play { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--ink); }
.editor-ctrl .play .ic { width: 13px; height: 13px; margin-left: 2px; }
.editor-time { font: 500 11px/1 var(--font-mono); color: var(--slate-700); }
.speed { margin-left: auto; font: 600 10.5px/1 var(--font-mono); color: var(--muted); padding: 4px 6px; border-radius: 6px; background: var(--line-soft); }
.editor-lines .line { padding: 3px 6px; margin: 0 -6px; border-radius: 6px; transition: background-color .3s ease; }
.editor-lines .line + .line { margin-top: 3px; }
.editor-lines .line.now { background: var(--orange-50); box-shadow: inset 2px 0 0 var(--orange); }
.drag-chip { top: 30px; right: 22px; }

/* 4. summary */
.doc { top: 8px; width: 474px; }
.doc-head { padding: 14px 16px 12px; }
.doc-sec { padding: 9px 16px; }
.select { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: 600 11px/1 var(--font-body); color: var(--slate-700); white-space: nowrap; }
.select .ic { width: 13px; height: 13px; color: var(--muted); }
.select .ic:last-child { width: 12px; height: 12px; }
.doc-foot { display: flex; gap: 6px; padding: 10px 16px 14px; border-top: 1px solid var(--line-soft); }
.doc-foot .mini-btn.primary { margin-left: auto; }
.mail { right: -8px; top: 104px; width: 300px; padding: 12px 14px 14px; }
.mail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 700 12.5px/1 var(--font-display); color: var(--ink); }
.mail-head b { white-space: nowrap; }
.mail-head .pill { margin-left: auto; font-family: var(--font-body); }
.mail-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--sky-50); color: var(--sky); }
.mail-ic .ic { width: 14px; height: 14px; }
.mail-row { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; line-height: 16px; }
.mail-row span { width: 50px; flex: none; color: var(--faint); }
.mail-row b { font-weight: 600; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-body { padding: 8px 0 10px; min-height: 96px; }
.mail-body p { font-size: 11.5px; line-height: 17px; color: var(--text); }
.mail-body p + p { margin-top: 5px; }
.mail-foot { display: flex; justify-content: flex-end; gap: 6px; }
.mail { transition: opacity .35s ease, transform .35s ease; }
.mail.is-hidden { opacity: 0; transform: translateZ(80px) translateY(12px); }
.toast { top: 40px; right: 0; }
.share-chip { left: 14px; right: auto; bottom: -18px; }
.share-chip em { font: 500 11px/1 var(--font-body); font-style: normal; color: var(--slate-300); padding-left: 8px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, 0.2); }

/* 5. search */
.search { top: 14px; width: 560px; }
.app-shell { display: grid; grid-template-columns: 46px minmax(0, 1fr); }
.app-side { display: grid; justify-items: center; align-content: start; gap: 12px; padding: 12px 0; background: var(--tile); border-right: 1px solid var(--line); }
.app-side i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); }
.app-side i.on { background: #fff; color: var(--orange-deep); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.app-side .ic { width: 16px; height: 16px; }
.search-body { padding: 14px; gap: 9px; }
.search-box { height: 42px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 11px/1 var(--font-body); color: var(--slate-700); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.person { padding-left: 3px; }
.chip.person img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.result { grid-template-columns: 92px 1fr auto; padding: 9px 11px; }
.jump { right: -2px; bottom: -4px; width: 282px; padding: 12px 14px 14px; display: grid; gap: 10px; transition: opacity .35s ease, transform .35s ease; }
.jump.is-hidden { opacity: 0; transform: translateZ(80px) translateY(10px); }
.jump-title { display: flex; align-items: center; gap: 7px; font-size: 12px; line-height: 16px; color: var(--ink); }
.jump-title .ic { width: 15px; height: 15px; color: var(--sky); }
.jump-title b { font: 700 12.5px/16px var(--font-display); }
.jump-title span { margin-left: auto; font: 600 10.5px/1 var(--font-mono); color: var(--orange-deep); }
.jump-bar { position: relative; height: 5px; border-radius: 5px; background: var(--line-soft); }
.jump-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; border-radius: 5px; background: var(--orange-200); }
.jump-bar b { position: absolute; left: 38%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2); }
.jump .line { padding: 4px 6px; margin: 0 -6px; border-radius: 6px; }
.jump .line.now { background: var(--orange-50); box-shadow: inset 2px 0 0 var(--orange); }
.jump .mini-btn { justify-self: start; }

/* 6. languages */
[data-heading-live] .swap { white-space: nowrap; }

/* ---------- language menu ---------- */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 10px; cursor: pointer;
  font: 600 13px/1 var(--font-body); color: var(--slate-700); border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: #fff; border-color: var(--line); }
.lang-menu summary .ic { width: 17px; height: 17px; color: var(--muted); }
.lang-menu summary .lang-caret { width: 14px; height: 14px; }
.lang-code { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }
.lang-list {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; width: 300px; padding: 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 24px 48px -20px rgba(15, 23, 42, 0.4);
}
.lang-list a { padding: 9px 12px; border-radius: 9px; text-decoration: none; font: 500 14px/18px var(--font-body); color: var(--text); }
.lang-list a:hover { background: var(--tile); color: var(--ink); }
.lang-list a[aria-current="true"] { background: var(--orange-50); color: var(--orange-deep); font-weight: 600; }

/* right-to-left pages (Arabic): the product pictures stay as they are, the text flows from the right */
[dir="rtl"] .slide-points li, [dir="rtl"] .checks li, [dir="rtl"] .faq summary { text-align: right; }
/* Inside the product pictures an Arabic page shows an Arabic app: text and punctuation run right to
   left, while the pictures themselves keep their places (their positions are physical). */
[dir="rtl"] .art :is(.card, .window, .toast, .share-chip, .tl-panel, .drag-chip, .platforms, .lang-cloud) { direction: rtl; }
/* The animated language name keeps the punctuation that follows it on the same line. */
.nw { white-space: nowrap; }
/* Devanagari needs more room between lines than Latin headings. */
:lang(hi) .hero h1, :lang(hi) .slide-copy h2, :lang(hi) .section-head h2 { line-height: 1.28; }

/* ---------- sections below ---------- */
.band { padding: 96px 0; }
.band-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { font: 700 40px/46px var(--font-display); letter-spacing: -0.028em; color: var(--ink); }
.section-head p { max-width: 42ch; font-size: 17px; line-height: 27px; color: var(--body); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.why {
  padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.why:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 22px 40px -18px rgba(15, 23, 42, 0.28); }
.why-ic, .step-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #fff;
  background: linear-gradient(160deg, var(--orange-soft), var(--orange) 60%, var(--orange-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(124, 45, 18, 0.25), 0 10px 18px -8px rgba(234, 88, 12, 0.6);
}
.why-ic .ic { width: 22px; height: 22px; stroke-width: 2; }
.why h3, .steps h3 { margin-top: 18px; font: 700 18px/24px var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.why p, .steps p { margin-top: 8px; font-size: 15.5px; line-height: 25px; color: var(--body); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { padding: 26px; border-radius: var(--r-lg); background: var(--canvas); border: 1px solid var(--line); }
.step-n { width: 40px; height: 40px; border-radius: 12px; font: 700 16px/1 var(--font-display); background: linear-gradient(160deg, #334155, var(--ink)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 18px -8px rgba(15, 23, 42, 0.55); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-card); }
.plan-best {
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, var(--orange-bright), var(--orange-200), var(--orange)) border-box;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 34px 60px -30px rgba(234, 88, 12, 0.55);
  transform: translateY(-8px);
}
.plan-badge { position: absolute; top: -13px; left: 30px; padding: 4px 12px; border-radius: 999px; color: #fff; font: 600 12px/18px var(--font-body); background: linear-gradient(180deg, var(--orange-bright), var(--orange)); box-shadow: 0 6px 12px -6px rgba(234, 88, 12, 0.7); }
.plan h3 { font: 700 19px/24px var(--font-display); color: var(--ink); }
.price { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font: 700 44px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.price span { font-size: 15px; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 15px; line-height: 22px; color: var(--text); }
.plan li .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: var(--green); background: var(--green-50); stroke-width: 2.6; }
.plan .btn { margin-top: auto; }
.faq-wrap { max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font: 600 17px/24px var(--font-display); color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 22px/24px var(--font-body); color: var(--faint); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 20px; font-size: 16px; line-height: 26px; color: var(--body); max-width: 68ch; }
.faq details p + p { margin-top: -8px; }

/* Footer (owner 2026-09-30: only what applies): the brand on the left, "Use cases" and "Company"
   grouped on the right. Every page with this footer uses these rules (landing.css adds none). */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 32px clamp(56px, 7vw, 112px); }
.footer-brand p { margin-top: 14px; font-size: 15px; line-height: 23px; color: var(--body); max-width: 34ch; }
.footer-grid > div:not(.footer-brand) { display: grid; gap: 9px; align-content: start; }
.footer-h { font: 700 14px/20px var(--font-display); color: var(--ink); margin-bottom: 4px; }
.footer-grid a, .footer-grid span { font-size: 14.5px; line-height: 21px; color: var(--body); text-decoration: none; }
.footer-grid a:hover { color: var(--orange-deep); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .hero h1 { font-size: 50px; }
  .slide { padding: 48px 80px 48px 72px; }
  .slide-copy h2 { font-size: 33px; }
}
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero-top { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 48px; max-width: 20ch; }
  .tabs-wrap { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 4px var(--gutter) 14px; }
  .tabs-wrap::-webkit-scrollbar { display: none; }
  .slide { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 44px 64px 52px; gap: 36px; }
  .art { justify-self: center; }
  .why-grid, .steps, .plans { grid-template-columns: 1fr 1fr; }
  .plan-best { transform: none; }
  /* the brand takes its own row; "Use cases" and "Company" sit side by side below it */
  .footer-grid { grid-template-columns: minmax(0, max-content) auto; justify-content: start; column-gap: 72px; }
  .footer-grid > .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .site-header { top: 10px; }
  .nav-pill { height: 54px; gap: 12px; }
  .nav, .header-actions .btn { display: none; }
  .header-actions { gap: 6px; }
  .lang-menu .lang-code, .lang-menu .lang-caret { display: none; }
  .lang-list { width: 260px; }
  .hero { padding: 112px 0 64px; }
  .hero h1 { font-size: 40px; letter-spacing: -0.03em; }
  .lead { font-size: 17px; line-height: 27px; }
  .btn-lg { font-size: 16px; padding: 14px 20px; }
  .stage { border-radius: 22px; }
  .slide { padding: 30px 20px 36px; gap: 28px; }
  .slide-copy h2 { font-size: 27px; }
  .slide-copy > p:not(.slide-kicker) { font-size: 16px; line-height: 26px; }
  .arrow { display: none; }
  .dots-row { display: flex; }
  .band { padding: 72px 0; }
  .why-grid, .steps, .plans { grid-template-columns: 1fr; }
  .site-footer { padding-top: 44px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; row-gap: 28px; }
  .footer-bottom { margin-top: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 30px; line-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide.is-active, .rig { transition: none; }
  .tab .bar { display: none; }
  .tile.speaking .eq i, .rec i, .caret, .tl-lines .line.enter, .typing::after { animation: none; }
}
