/* ============================================================
   TTV - Text to Voice
   Concept: "La grille qui parle" - a spreadsheet that speaks.
   Palette: deep petrol-teal booth · warm bone ink · electric violet
            (voice) + cyan (data). Type: Syne / Hanken Grotesk / Space Mono.
   Shared by the landing (/) and the studio (/studio).
   ============================================================ */

:root {
  --bg:        #060912;
  --bg-2:      #090e1c;
  --panel:     #0d1426;
  --panel-2:   #131d36;
  --line:      rgba(226, 232, 248, .10);
  --line-2:    rgba(226, 232, 248, .18);

  --bone:      #e9edf8;
  --bone-dim:  #ccd5ea;
  --mute:      #93a0bf;
  --faint:     #59648a;

  /* Accent ramp = electric violet (the "voice" accent). The variable names
     --coral / --apricot are legacy: they now hold the violet/lavender ramp. */
  --coral:     #7c5cff;
  --coral-2:   #9a6bff;
  --apricot:   #b66bff;
  --gold:      #c9b6ff;
  --mint:      #56cdf2;
  --on-accent: #ffffff;

  --warm:      linear-gradient(100deg, #6a3cff 0%, #7647ff 52%, #7e50ff 100%);
  --warm-dim:  linear-gradient(135deg, rgba(124, 92, 255, .16), rgba(182, 107, 255, .04));

  --r-xl: 26px; --r-lg: 18px; --r-md: 13px; --r-sm: 9px; --r-pill: 999px;

  --shadow:    0 32px 80px -38px rgba(0, 0, 0, .8);
  --glow:      0 22px 58px -22px rgba(124, 92, 255, .5);

  --font-display: "Syne", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

/* visible keyboard focus everywhere (inputs keep their own ring) */
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
input:focus-visible { outline: none; }

body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-body); color: var(--bone);
  background: var(--bg); line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  animation: pagein .6s ease both;
}
body.leaving { opacity: 0; transform: translateY(-10px); transition: opacity .38s ease, transform .38s ease; }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }

::selection { background: rgba(124, 92, 255, .32); color: #fff; }

/* ---------- ambient atmosphere ---------- */
.bg-glow, .bg-grid, .bg-grain, #stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-glow {
  inset: -22%; filter: blur(44px);
  background:
    radial-gradient(36% 44% at 15% 6%,  rgba(84, 124, 255, .22), transparent 70%),
    radial-gradient(32% 40% at 88% 0%,  rgba(126, 92, 255, .15), transparent 72%),
    radial-gradient(46% 54% at 80% 98%, rgba(124, 92, 255, .12), transparent 72%);
  animation: glowdrift 26s ease-in-out infinite alternate;
}
@keyframes glowdrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(0,-3%,0) scale(1.07); } }
.bg-grid {
  opacity: .4;
  background-image:
    linear-gradient(rgba(226, 232, 248, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 248, .035) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask: linear-gradient(180deg, #000 0%, transparent 78%);
          mask: linear-gradient(180deg, #000 0%, transparent 78%);
}
.bg-grain {
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout helpers ---------- */
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; position: relative; z-index: 1; }
.section { padding: clamp(70px, 11vw, 130px) 0; position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--coral);
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--coral); }
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.04;
  letter-spacing: -.02em; margin: 0 0 16px; max-width: 18ch;
}
.section-lead { color: var(--mute); font-size: 1.05rem; max-width: 52ch; margin: 0; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-body); font-weight: 700; font-size: .98rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .14s, box-shadow .22s, background .22s, border-color .22s, color .22s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 17px; height: 17px; }
.btn-accent { position: relative; overflow: hidden; color: var(--on-accent); background: var(--warm); box-shadow: var(--glow); }
.btn-accent::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(110deg, transparent 32%, rgba(255,255,255,.55) 50%, transparent 68%);
}
.btn-accent:hover { filter: brightness(1.04); box-shadow: var(--glow), 0 0 0 1px rgba(182,107,255,.45); }
.btn-accent:hover::after { animation: sweep .9s ease; }
@keyframes sweep { to { transform: translateX(130%); } }
.btn-line { color: var(--bone); background: rgba(226, 232, 248,.03); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--coral); color: var(--coral); background: rgba(124,92,255,.06); }
.btn-line.playing { border-color: var(--coral); color: var(--coral); background: rgba(124,92,255,.08); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 0; transition: padding .25s;
}
.nav-inner {
  width: min(1180px, 100% - 48px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 14px 10px 18px; border-radius: var(--r-pill);
  border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled .nav-inner {
  background: rgba(11, 16, 33, .74); border-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 14px 40px -22px rgba(0,0,0,.7);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: var(--on-accent); background: var(--warm); box-shadow: var(--glow);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-word { font-size: 1.18rem; }
.brand-word b { color: var(--coral); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  font-size: .92rem; color: var(--mute); padding: 9px 14px; border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.nav-links a:not(.btn):hover { color: var(--bone); background: rgba(226, 232, 248,.05); }
.nav .btn { padding: 11px 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(36px, 7vw, 76px) 0 clamp(56px, 9vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(30px, 5vw, 66px); align-items: center; }
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.7rem, 6.6vw, 5.3rem); line-height: .98; letter-spacing: -.035em;
  margin: 0; text-wrap: balance;
}
.hero-title .spoke {
  background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.hero-lead { margin: 26px 0 0; font-size: 1.16rem; color: var(--bone-dim); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1; }
.hero-stat .l { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-top: 7px; }

/* the speaking spreadsheet (signature) */
.sheet {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow); position: relative;
}
.sheet::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.sheet-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .78rem; color: var(--mute);
}
.sheet-dots { display: inline-flex; gap: 6px; }
.sheet-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.sheet-dots i:nth-child(1) { background: var(--coral); }
.sheet-dots i:nth-child(2) { background: var(--apricot); }
.sheet-dots i:nth-child(3) { background: var(--mint); }
.sheet-file { color: var(--bone); }
.sheet-cols { margin-left: auto; color: var(--faint); }
.sheet-cols b { color: var(--mint); font-weight: 700; }

.srow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 15px 18px; border-top: 1px solid var(--line); cursor: pointer;
  transition: background .2s;
}
.srow:first-of-type { border-top: 0; }
.srow:hover { background: rgba(124, 92, 255, .06); }
.srow.playing { background: rgba(124, 92, 255, .1); }
.srow-main { min-width: 0; }
.srow-file { font-family: var(--font-mono); font-size: .76rem; color: var(--mint); margin-bottom: 5px; }
.srow-line { color: var(--bone); font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.srow-tone {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 9px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em;
  color: var(--apricot); background: rgba(182, 107, 255, .1);
  border: 1px solid rgba(182, 107, 255, .26); border-radius: var(--r-pill); padding: 4px 10px;
}
.srow-aside { display: flex; align-items: center; gap: 13px; }
.row-wave { display: flex; align-items: center; gap: 2.5px; height: 30px; }
.row-wave i {
  width: 3px; min-height: 4px; border-radius: 2px; background: var(--coral); opacity: .5;
  transform-origin: center; animation: bar 1s ease-in-out infinite; animation-play-state: paused;
}
.srow.playing .row-wave i { opacity: 1; animation-play-state: running; }
.srow-play {
  flex: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--coral);
  background: rgba(124, 92, 255, .1); border: 1px solid rgba(124, 92, 255, .3);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.srow-play:hover { transform: scale(1.06); }
.srow.playing .srow-play { background: var(--warm); color: var(--on-accent); border-color: transparent; }
.srow-play svg { width: 14px; height: 14px; }

/* play/stop icon swap: triangle ▶ at rest, square ■ while playing (shared
   affordance across the grid rows and the voice chips). */
.srow-play .i-stop, .vplay .i-stop { display: none; }
.srow.playing .srow-play .i-play, .vchip.playing .vplay .i-play { display: none; }
.srow.playing .srow-play .i-stop, .vchip.playing .vplay .i-stop { display: block; }

/* ambient hero waveform under the grid */
.hero-wave { display: flex; align-items: center; gap: 4px; height: 40px; margin-top: 26px; opacity: .55; }
.hero-wave i { flex: 1; min-height: 4px; border-radius: 3px; background: var(--warm); transform-origin: center; animation: bar 1.4s ease-in-out infinite; }
@keyframes bar { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); position: relative; z-index: 1;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: scroll-x 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--bone-dim); display: inline-flex; align-items: center; gap: 34px; }
.mq-item::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); opacity: .65; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   STEPS  (a real sequence: import → choose → generate)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.stepcard {
  position: relative; padding: 28px 26px 30px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--panel); overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.stepcard:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.stepcard .num { font-family: var(--font-mono); font-size: .8rem; color: var(--coral); letter-spacing: .1em; }
.stepcard h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; margin: 14px 0 9px; }
.stepcard p { margin: 0; color: var(--mute); font-size: .96rem; }
.stepcard .svisual { height: 56px; margin-top: 22px; display: flex; align-items: flex-end; gap: 4px; }
.stepcard .svisual i { flex: 1; border-radius: 3px 3px 0 0; background: var(--warm-dim); border: 1px solid var(--line); }
.stepcard .svisual.wave i { background: var(--warm); border: 0; transform-origin: bottom; animation: bar 1.5s ease-in-out infinite; }

/* ============================================================
   BENTO FEATURES
   ============================================================ */
.bento { display: grid; gap: 14px; margin-top: 52px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(168px, auto);
  grid-template-areas: "a a a a b b" "c c d d d d" "e e e f f f"; }
.cell {
  position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--panel); overflow: hidden; transition: border-color .3s, transform .3s, background .3s;
  display: flex; flex-direction: column;
}
.cell:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--panel-2); }
.cell .ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  color: var(--coral); background: rgba(124, 92, 255, .1); border: 1px solid rgba(124, 92, 255, .24);
}
.cell .ico svg { width: 20px; height: 20px; }
.cell h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -.01em; margin: 0 0 8px; }
.cell p { margin: 0; color: var(--mute); font-size: .94rem; }
.cell.lg h4 { font-size: 1.5rem; }
.b-a { grid-area: a; } .b-b { grid-area: b; } .b-c { grid-area: c; }
.b-d { grid-area: d; } .b-e { grid-area: e; } .b-f { grid-area: f; }
.cell .ico.mint { color: var(--mint); background: rgba(86, 205, 242, .1); border-color: rgba(86, 205, 242, .26); }
/* tone-meter visual for the big cell */
.tonemeter { margin-top: auto; padding-top: 22px; display: flex; align-items: flex-end; gap: 6px; height: 88px; }
.tonemeter i { flex: 1; border-radius: 4px; background: var(--warm); transform-origin: bottom; animation: bar 1.7s ease-in-out infinite; opacity: .9; }

/* ============================================================
   VOICES SHOWCASE  (interactive previews)
   ============================================================ */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 11px; margin-top: 44px; }
.vchip {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--panel-2);
  cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.vchip:hover { border-color: rgba(124, 92, 255, .4); background: #16213e; transform: translateY(-2px); }
.vchip.playing { border-color: rgba(124, 92, 255, .45); background: rgba(124, 92, 255, .1); }
.vplay {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--coral); background: rgba(124, 92, 255, .1); border: 1px solid rgba(124, 92, 255, .28);
  transition: background .2s, color .2s, border-color .2s;
}
.vplay svg { width: 13px; height: 13px; }
.vchip.playing .vplay { background: var(--warm); color: var(--on-accent); border-color: transparent; }
.vname { font-weight: 600; font-size: .96rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.veq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.vchip.playing .veq { display: flex; }
.veq i { width: 2.5px; height: 100%; border-radius: 2px; background: var(--coral); transform-origin: bottom; animation: bar .8s ease-in-out infinite; }
.veq i:nth-child(2) { animation-delay: -.3s; } .veq i:nth-child(3) { animation-delay: -.6s; } .veq i:nth-child(4) { animation-delay: -.15s; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta { text-align: center; position: relative; }
.cta-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 auto 12px; max-width: 16ch; }
.cta-sub { color: var(--mute); font-size: 1.06rem; margin: 0 auto 32px; max-width: 46ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--line); position: relative; z-index: 1; }
.foot-inner { width: min(1180px, 100% - 48px); margin-inline: auto; padding: 30px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-family: var(--font-mono); font-size: .8rem; color: var(--faint); }
.foot-inner a:hover { color: var(--coral); }

/* ============================================================
   STUDIO  (the tool, /studio)
   ============================================================ */
.studio { width: min(1180px, 100% - 48px); margin: 0 auto; padding: 36px 0 90px; position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 348px) 1fr; gap: 42px; align-items: start; }
.studio-rail { position: sticky; top: 96px; }
.studio-rail .eyebrow { margin-bottom: 16px; }
.studio-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 16px; }
.studio-lead { color: var(--mute); font-size: 1rem; margin: 0 0 26px; }
.rail-wave { display: flex; align-items: center; gap: 4px; height: 46px; margin-bottom: 26px; opacity: .8; }
.rail-wave i { flex: 1; min-height: 5px; border-radius: 3px; background: var(--warm); transform-origin: center; animation: bar 1.4s ease-in-out infinite; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; color: var(--mint); background: rgba(86, 205, 242, .08); border: 1px solid rgba(86, 205, 242, .24); padding: 7px 13px; border-radius: var(--r-pill); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px var(--mint); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.studio-flow { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 28px; box-shadow: var(--shadow); transition: border-color .3s, box-shadow .3s;
}
.card:hover { border-color: var(--line-2); }
.card-head { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.step { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--coral);
  background: rgba(124, 92, 255, .1); border: 1px solid rgba(124, 92, 255, .24); }
.card-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -.01em; }
.card-head p { margin: 3px 0 0; font-size: .82rem; color: var(--faint); }

.field { margin-bottom: 18px; } .field:last-child { margin-bottom: 0; }
.lbl { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 9px; color: var(--bone); }
.lbl .hint { font-weight: 400; color: var(--faint); }
input[type=text], input[type=password] {
  width: 100%; font: inherit; font-size: .95rem; padding: 13px 15px; color: var(--bone);
  background: rgba(0,0,0,.22); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder { color: var(--faint); }
input[type=text]:focus, input[type=password]:focus { outline: none; border-color: rgba(124,92,255,.55); box-shadow: 0 0 0 4px rgba(124,92,255,.16); background: rgba(124,92,255,.04); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* studio buttons */
.btn-primary { width: 100%; padding: 16px; border-radius: var(--r-md); font-weight: 800; color: var(--on-accent); background: var(--warm); box-shadow: var(--glow); position: relative; overflow: hidden; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.04); }
.btn-primary:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { padding: 12px 18px; border-radius: var(--r-md); color: var(--bone); background: rgba(226, 232, 248,.04); border: 1px solid var(--line-2); }
.btn-ghost:hover:not(:disabled) { border-color: rgba(124,92,255,.4); color: var(--coral); background: rgba(124,92,255,.06); }
.btn-ghost svg { width: 16px; height: 16px; color: var(--coral); }

/* voice list (rendered by app.js) */
.voice-list { display: flex; flex-direction: column; gap: 3px; max-height: 300px; overflow-y: auto; padding: 7px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(0,0,0,.22); }
.voice-list > .note { padding: 18px; text-align: center; margin: 0; }
.voice-item { display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; transition: background .18s, border-color .18s; }
.voice-item:hover { background: rgba(124,92,255,.06); }
.voice-item:has(input:checked) { background: rgba(124,92,255,.1); border-color: rgba(124,92,255,.22); }
.voice-label { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; font-weight: 500; font-size: .95rem; }
.voice-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-list input[type=checkbox], #test {
  appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; border-radius: 7px;
  border: 1.5px solid var(--line-2); background: rgba(255,255,255,.03); cursor: pointer; display: grid; place-content: center;
  transition: background .18s, border-color .18s;
}
.voice-list input[type=checkbox]:hover, #test:hover { border-color: rgba(124,92,255,.5); }
.voice-list input[type=checkbox]:checked, #test:checked { background: var(--warm); border-color: transparent; }
.voice-list input[type=checkbox]:checked::after, #test:checked::after { content: ""; width: 5px; height: 10px; border: 2px solid var(--on-accent); border-top: 0; border-left: 0; transform: rotate(43deg) translateY(-1px); }
.voice-play { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  color: var(--coral); background: rgba(124,92,255,.1); border: 1px solid rgba(124,92,255,.28); transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.voice-play:hover:not(:disabled) { background: var(--warm); color: var(--on-accent); border-color: transparent; box-shadow: 0 8px 20px -7px rgba(124,92,255,.7); }
.voice-play.playing { background: var(--warm); color: var(--on-accent); border-color: transparent; }
#preview { width: 100%; margin-top: 14px; border-radius: var(--r-sm); color-scheme: dark; }

/* dropzone */
.drop { position: relative; text-align: center; cursor: pointer; padding: 32px 22px; border-radius: var(--r-md);
  border: 1.5px dashed var(--line-2); background: rgba(0,0,0,.18); transition: border-color .2s, background .2s, transform .2s; }
.drop:hover { border-color: rgba(124,92,255,.5); background: rgba(124,92,255,.05); }
.drop.over { border-color: var(--coral); background: rgba(124,92,255,.1); transform: scale(1.01); }
.drop.has-file { border-style: solid; border-color: rgba(124,92,255,.4); background: rgba(124,92,255,.06); }
.drop input { display: none; }
.drop-ico { width: 48px; height: 48px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 14px; color: var(--coral); background: rgba(124,92,255,.1); transition: transform .25s; }
.drop:hover .drop-ico { transform: translateY(-3px); }
.drop-ico svg { width: 24px; height: 24px; }
.drop-title { font-weight: 600; }
.drop-title b { color: var(--apricot); }
.drop .hint { font-size: .82rem; color: var(--faint); margin-top: 7px; }
.drop .name { margin-top: 13px; font-family: var(--font-mono); font-size: .85rem; color: var(--apricot); word-break: break-all; }

/* test toggle */
.check { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(226, 232, 248,.025); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.check:hover { border-color: var(--line-2); background: rgba(124,92,255,.04); }
.check > span { font-weight: 500; font-size: .92rem; }
.check .sub { display: block; color: var(--faint); font-size: .8rem; font-weight: 400; }

.note { font-size: .82rem; color: var(--faint); margin-top: 12px; line-height: 1.5; }
.note.ok { color: var(--mint); }

/* progress */
#suivi { display: none; }
#suivi.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.statusbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.status-chip { font-family: var(--font-mono); font-size: .78rem; padding: 6px 13px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 8px; color: var(--apricot); background: rgba(182,107,255,.1); border: 1px solid rgba(182,107,255,.24); }
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--apricot); box-shadow: 0 0 8px var(--apricot); animation: pulse 1.4s ease-in-out infinite; }
.status-chip.done { color: var(--mint); background: rgba(86, 205, 242,.12); border-color: rgba(86, 205, 242,.3); }
.status-chip.done::before { background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: none; }
.status-chip.error { color: var(--coral); background: rgba(124,92,255,.12); border-color: rgba(124,92,255,.3); }
.status-chip.error::before { background: var(--coral); box-shadow: 0 0 8px var(--coral); animation: none; }
progress { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; background: rgba(0,0,0,.32); }
progress::-webkit-progress-bar { background: transparent; }
progress::-webkit-progress-value { border-radius: var(--r-pill); background: var(--warm); background-size: 200% 100%; animation: flow 2s linear infinite; box-shadow: 0 0 14px rgba(124,92,255,.55); }
progress::-moz-progress-bar { border-radius: var(--r-pill); background: var(--warm); }
@keyframes flow { to { background-position: -200% 0; } }
#log { margin-top: 16px; height: 240px; overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #070d1d; color: #ccd7ef; font-family: var(--font-mono); font-size: .78rem; line-height: 1.65; white-space: pre-wrap; }
.dl { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 22px; border-radius: var(--r-md); font-weight: 700; color: var(--on-accent); background: linear-gradient(135deg, #76e2ec, #48b0f2); box-shadow: 0 14px 36px -14px rgba(72,176,242,.5); transition: transform .15s, box-shadow .2s, filter .2s; }
.dl:hover { transform: translateY(-2px); filter: brightness(1.05); }
.dl svg { width: 18px; height: 18px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: var(--on-accent); display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(124,92,255,.3) transparent; }
.voice-list::-webkit-scrollbar, #log::-webkit-scrollbar { width: 10px; }
.voice-list::-webkit-scrollbar-thumb, #log::-webkit-scrollbar-thumb { background: rgba(124,92,255,.25); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.voice-list::-webkit-scrollbar-thumb:hover, #log::-webkit-scrollbar-thumb:hover { background: rgba(124,92,255,.45); background-clip: padding-box; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .sheet { order: -1; }
}
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: none; grid-auto-rows: auto; }
  .cell { grid-area: auto !important; min-height: 168px; }
  .steps { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; gap: 26px; }
  .studio-rail { position: static; top: auto; }
}
@media (max-width: 620px) {
  .nav-links a:not(.btn):not(.brand) { display: none; }
  .hero-stats { gap: 20px; }
  .card { padding: 22px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { animation: none; }
  .marquee-track { animation: none; }
}
