/* ── Rhymeprint design system ──────────────────────────────────────────────
   Identity: near-black stage, Archivo grotesque, Playfair italic accents,
   the engine's own crayon palette as the only decoration. The verse is the
   hero; chrome stays quiet. */

:root {
  --bg: #232323;
  --bg-deep: #1d1d1d;
  --panel: #2a2a2a;
  --border: #3a3a3a;
  --text: #f2f2f2;
  --muted: #8f8f92;
  --faint: #6c6c70;
  --accent: #f0d048;
  --radius: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Interaction hygiene: no double-tap zoom delay on controls, intentional
   (invisible) tap highlight — the :focus-visible ring is the real feedback. */
button, a, select, summary, input, label.tempo {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { text-wrap: balance; }

/* Screen-reader-only text + the keyboard skip link (visible on focus). */
.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;
}
.skip-link {
  position: absolute; left: 14px; top: -60px; z-index: 100;
  background: var(--accent); color: #232323;
  font-weight: 800; font-size: 13px; text-decoration: none;
  padding: 10px 16px; border-radius: 0 0 8px 8px;
  transition: top 0.15s ease;
}
.skip-link:focus-visible { top: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

em.flair {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary { background: var(--accent); color: #232323; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: #5a5a5f; }
.btn.big { font-size: 16px; padding: 14px 28px; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--border);
}
.brand { font-size: 18px; font-weight: 800; letter-spacing: 0.01em; }
.brand-link { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.site-header { flex-wrap: wrap; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 720px) { .site-header nav { gap: 10px; } }
.site-header nav a.plain {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600;
}
.site-header nav a.plain:hover { color: var(--text); }
@media (max-width: 640px) { .site-header nav a.plain { display: none; } }
.beta {
  font-size: 10.5px; font-weight: 800; color: #232323;
  background: var(--accent); border-radius: 999px; padding: 2px 9px;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px;
  color: var(--faint);
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .grow { flex: 1; }

/* ── Landing ─────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic; font-weight: 600;
  font-size: 19px; color: #d08a5e;
  margin: 0 0 14px;
}
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 30px 26px;
}
.hero h1 {
  font-size: clamp(46px, 7.4vw, 88px);
  font-weight: 900;
  line-height: 0.99;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.hero p.lead { font-size: 19px; color: var(--muted); line-height: 1.65; margin: 0 0 30px; max-width: 38em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .trust { margin-top: 20px; color: var(--faint); font-size: 13px; letter-spacing: 0.01em; }
@media (max-width: 640px) { .hero { padding-top: 60px; } }

.sect { max-width: 1120px; margin: 0 auto; padding: 72px 30px; }
.sect > h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 10px; }
.sect > p.sub { color: var(--muted); margin: 0 0 38px; max-width: 46em; line-height: 1.65; font-size: 16px; }
.sect .eyebrow { font-size: 16px; margin-bottom: 8px; }

/* The lyric sheet: live engine output as the hero artifact */
.sheet-wrap { max-width: 1120px; margin: 0 auto; padding: 18px 30px 40px; }
.sheet {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 42px 26px;
  overflow-x: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.sheet .seal {
  position: absolute; top: 22px; right: 26px;
  width: 92px; height: 92px; opacity: 0.9;
}
.sheet-cap { color: var(--faint); font-size: 12.5px; margin: 18px 0 0; letter-spacing: 0.02em; }
.sheet-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: -6px 0 22px; padding-right: 106px;
}
.sheet-tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(240, 208, 72, 0.34);
  border-radius: 999px; padding: 4px 11px;
}
.demo-loading { opacity: 0.55; }
.demo-key { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.demo-key span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.demo-key i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
@media (max-width: 720px) {
  .sheet { padding: 26px 20px 20px; }
  /* The seal moves to the foot of the sheet on narrow screens: at the top it
     collided with the style switch, and there's no room for both up there. */
  .sheet .seal { position: static; display: block; width: 64px; height: 64px; margin: 0 0 4px auto; }
  .sheet-head { padding-right: 0; margin-top: 0; }
}
/* Signature: highlights paint in line by line once the engine has run */
@keyframes lineIn {
  from { opacity: 0.25; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
#demoVerse .vline.paint { animation: lineIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  #demoVerse .vline.paint { animation: none; }
}

/* The notation legend */
.legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.lg { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.lg-sample {
  font-weight: 700; font-size: 16px; margin-bottom: 18px;
  background: var(--bg-deep); border-radius: 10px; padding: 14px 12px;
  white-space: nowrap; overflow: hidden;
}
.lg h3 { margin: 0 0 8px; font-size: 16px; }
.lg p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.lg p em { font-style: normal; color: var(--text); }
.s-chip { padding: 1px 6px; border-radius: 5px; color: #151515; }
.s-chip.a { background: hsl(291 52% 64%); }
.s-chip.b { background: hsl(78 58% 56%); }
/* Segmented-bar samples: a word reads as ONE bar (rounding/full padding only
   at the outer edges) with a 2px notch between syllable segments — the
   per-syllable articulation is the product, matching the live renderer. */
.s-chip.rs { border-radius: 5px 0 0 5px; padding-right: 3px; margin-right: 2px; }
.s-chip.re { border-radius: 0 5px 5px 0; padding-left: 3px; }
.s-chip.faded { opacity: 0.65; }
.s-text { color: hsl(199 70% 58%); font-weight: 700; }
.s-wash { background: rgba(255, 255, 255, 0.13); padding: 1px 6px; border-radius: 5px; }
.s-dot { text-decoration: underline dotted rgba(242, 242, 242, 0.45); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.s-plain { color: var(--muted); font-weight: 500; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.card h3 { margin: 0 0 10px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14.5px; }
.tag-new {
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: #232323; border-radius: 999px; padding: 2px 8px;
}

/* Pricing */
.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 780px; margin: 0 auto; }
.tier { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.tier.pro { border-color: var(--accent); position: relative; }
.tier h3 { margin: 0; font-size: 16px; }
.tier .amt { font-size: 42px; font-weight: 800; margin: 6px 0 2px; }
.tier .amt small { font-size: 15px; color: var(--muted); font-weight: 600; }
.tier ul { list-style: none; padding: 0; margin: 18px 0 24px; color: var(--muted); line-height: 2.05; font-size: 14.5px; }
.tier ul li::before { content: "✓  "; color: var(--accent); font-weight: 800; }

/* FAQ */
/* How it works — a real sequence, so it earns its numbers */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.steps li { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 26px; position: relative; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: #232323;
  font-size: 15px; font-weight: 900; margin-bottom: 15px;
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin: 0 0 9px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.steps p b, .lg p b { color: var(--text); font-weight: 700; }

/* Comparison */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 860px; }
.cmp { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px; }
.cmp.lead-cmp { border-color: var(--accent); }
.cmp h3 { margin: 0 0 16px; font-size: 16px; }
.cmp-list { list-style: none; padding: 0; margin: 0; }
.cmp-list li { color: var(--muted); font-size: 14.5px; line-height: 1.55; padding: 9px 0 9px 28px; position: relative; }
.cmp-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.cmp-list li b { color: var(--text); }
.cmp-list li::before { position: absolute; left: 0; top: 9px; font-weight: 800; }
.cmp-list li.no::before { content: "—"; color: var(--faint); }
.cmp-list li.yes::before { content: "✓"; color: var(--accent); }

/* Open-beta band */
.beta-band {
  display: flex; gap: 34px; align-items: center; flex-wrap: wrap; justify-content: space-between;
  background: var(--panel); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg); padding: 34px 36px;
}
.beta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 10px; }
.beta-band .sub { margin: 0; max-width: 44em; color: var(--muted); line-height: 1.65; font-size: 15px; }
.beta-band .eyebrow { font-size: 15px; margin-bottom: 6px; }
.beta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.beta-pill {
  display: inline-block; color: var(--accent); font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px;
  border: 1px solid rgba(240, 208, 72, 0.34); border-radius: 999px; padding: 3px 9px;
}

/* Pricing extras */
.tier-line { color: var(--text); font-size: 14px; font-weight: 700; margin: 12px 0 0; }
.tier-note { color: var(--faint); font-size: 12px; margin: 14px 0 0; }
.tier-flag {
  position: absolute; top: -11px; right: 22px;
  background: var(--accent); color: #232323;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.tier ul li b { color: var(--text); }

/* Closing call */
.closer { max-width: 800px; margin: 0 auto; padding: 40px 30px 96px; text-align: center; }
.closer h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -0.025em; margin: 0 0 26px; }
.closer .ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.closer .trust { color: var(--faint); font-size: 13px; margin-top: 18px; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.7; max-width: 60em; }
.faq details p b { color: var(--text); }

/* Scroll reveal (JS adds .in; static without JS or with reduced motion) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Verse rendering (app + landing demo) ─────────────────────────────── */
.verse {
  font-size: 26px;
  font-weight: 700;
  line-height: 2.12;
  color: var(--text);
  letter-spacing: 0.005em;
}
.vline { position: relative; padding-left: 48px; min-height: 2.12em; }
.vline[data-n]::before {
  content: attr(data-n);
  position: absolute;
  left: 0; top: 0;
  width: 32px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #5a5a5f;
  line-height: 55px; /* = 26px x 2.12 — pins the number to the first text row */
}
.demo-shell .verse { font-size: 21px; }
.demo-shell .vline { min-height: 2.12em; }
.demo-shell .vline[data-n]::before { line-height: 44.5px; font-size: 12px; }

/* Karaoke sweep. !important is REQUIRED: highlighted syllables carry inline
   opacity (1 / echo 0.65) that would otherwise beat these class rules. */
.verse.playing .syl { opacity: 0.32 !important; transition: opacity 0.12s linear, transform 0.12s ease; }
.verse.playing .syl.sung { opacity: 1 !important; }
.verse.playing .syl.active {
  opacity: 1 !important;
  transform: scale(1.14);
  display: inline-block;
  text-shadow: 0 0 14px rgba(240, 208, 72, 0.55);
  outline: 2px solid rgba(240, 208, 72, 0.85);
  outline-offset: 1px;
  border-radius: 3px;
}

/* ── App layout ───────────────────────────────────────────────────────── */
.app-main {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 270px;
  gap: 18px;
  padding: 34px 40px 40px;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 1200px) {
  .app-main { grid-template-columns: 230px minmax(0, 1fr); }
  .key { grid-column: 1 / -1; }
}
@media (max-width: 900px) { .app-main { grid-template-columns: 1fr; } }

.rail { padding-top: 6px; }
.verse-label {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic; font-weight: 600; font-size: 34px;
  color: var(--accent);
  margin: 0 0 26px;
}
.stat { margin-bottom: 20px; }
.stat .k { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; margin-bottom: 2px; }
.stat .v { font-size: 34px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rail hr { border: none; border-top: 1px solid var(--border); margin: 24px 24px 20px 0; }
label.toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; user-select: none; margin-bottom: 10px;
}
label.toggle input { accent-color: var(--accent); cursor: pointer; width: 15px; height: 15px; }
label.toggle:hover { color: var(--text); }
.accent-row { margin: 4px 0 14px; }
.accent-row .k { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.accent-row select {
  width: calc(100% - 20px);
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 10px; cursor: pointer;
}
/* Visual-style switch (Type A / Type B) */
.mode-block { margin: 4px 0 16px; }
.mode-block .k { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.mode-row {
  display: inline-flex; background: var(--panel);
  border: 1px solid var(--border); border-radius: 9px; padding: 3px; gap: 3px;
}
.mode-btn {
  border: none; background: transparent; color: var(--muted);
  font: 700 12px/1 inherit; letter-spacing: 0.02em;
  padding: 8px 14px; border-radius: 6px; cursor: pointer;
  transition: color 0.14s ease, background-color 0.14s ease;
}
.mode-btn:hover { color: var(--text); }
.mode-btn.on { background: var(--accent); color: #232323; }
@media (prefers-reduced-motion: reduce) { .mode-btn { transition: none; } }

.hint { font-size: 12px; color: var(--faint); line-height: 1.6; margin-top: 22px; padding-right: 20px; }
.hint b { color: var(--muted); }
.audio-row { margin: 4px 0 16px; }
.audio-row .k { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.btn.small { font-size: 12px; padding: 7px 12px; margin: 2px 6px 4px 0; }
/* Touch devices: every control clears the 40px comfortable-tap floor. */
@media (pointer: coarse) {
  .btn, .btn.small, .accent-row select { min-height: 40px; }
  label.tempo { padding: 10px 0; }
}
.audio-status { font-size: 11.5px; color: var(--faint); line-height: 1.55; margin-top: 4px; padding-right: 20px; }
.audio-status.live { color: var(--accent); font-weight: 700; }
.pro-row { margin: 4px 0 16px; }
.pro-row .k { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.pro-input {
  width: calc(100% - 20px);
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 8px 10px; margin: 2px 0 6px;
}
.pro-input:focus { outline: none; border-color: var(--accent); }

.stage { min-width: 0; }
details.editor { margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
details.editor summary {
  cursor: pointer; padding: 10px 16px; font-size: 13px; font-weight: 700;
  color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; list-style: none;
}
details.editor summary::-webkit-details-marker { display: none; }
details.editor summary:hover { color: var(--text); }
textarea#verse {
  display: block; width: 100%;
  font-family: inherit; font-size: 17px; font-weight: 500; line-height: 1.8;
  color: var(--text); background: transparent;
  border: none; border-top: 1px solid var(--border);
  outline: none; padding: 14px 18px; resize: vertical; min-height: 200px;
}
#capture { padding: 26px 8px 30px; background: var(--bg); }
.loading-engine { color: var(--muted); font-size: 15px; padding: 30px 8px; animation: gentlePulse 1.6s ease-in-out infinite; }
@keyframes gentlePulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .loading-engine { animation: none; } }
.empty-note { color: var(--muted); font-size: 16px; line-height: 1.7; padding: 34px 10px; max-width: 460px; }
.empty-note b { color: var(--text); }

label.tempo { display: inline-flex; align-items: center; }
label.tempo input[type=range] { width: 78px; accent-color: var(--accent); cursor: pointer; }

/* Right rail: glyph + family key */
.key { position: sticky; top: 20px; align-self: start; }
.printbox { border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px 14px; background: var(--panel); margin-bottom: 16px; }
.printbox svg { display: block; width: 100%; height: auto; }
.printcap { text-align: center; color: var(--muted); font-size: 11.5px; line-height: 1.55; margin-top: 10px; letter-spacing: 0.02em; }
.printcap b { color: var(--text); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.famhead { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin: 4px 0 10px; }
.fam { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px 9px; margin-bottom: 8px; }
.fam .row { display: flex; align-items: center; gap: 8px; }
.fam .sw { width: 13px; height: 13px; border-radius: 4px; flex: none; }
.fam .ipa { font-weight: 800; font-size: 14px; }
.fam .cnt { color: var(--muted); font-size: 12px; margin-left: auto; }
.fam .words { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: 3px; overflow-wrap: anywhere; }
.legend { color: var(--faint); font-size: 11.5px; line-height: 1.7; margin-top: 14px; }

/* Glyph ring-in animation */
@keyframes ringIn {
  from { opacity: 0; transform: rotate(-16deg); }
  to { opacity: 1; transform: rotate(0deg); }
}
svg.glyph g.ring {
  transform-origin: 100px 100px;
  transform-box: view-box;
  animation: ringIn 0.5s ease both;
}
@media (prefers-reduced-motion: reduce) { svg.glyph g.ring { animation: none; } }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 30px 80px; }
.legal h1 { font-size: 32px; font-weight: 800; }
.legal h2 { font-size: 18px; margin-top: 34px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ── Video studio dialog ─────────────────────────────────────────────── */
.video-dlg {
  background: var(--panel, #2a2a2c); color: var(--text, #f2f2f2);
  border: 1px solid var(--border, #3a3a3a); border-radius: 16px;
  padding: 0; width: min(560px, calc(100vw - 32px));
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.video-dlg::backdrop { background: rgba(12,12,13,0.72); backdrop-filter: blur(3px); }
.video-dlg { overscroll-behavior: contain; max-height: calc(100dvh - 32px); overflow-y: auto; }
.vd-form { padding: 26px 26px 22px; margin: 0; }
.video-dlg h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.vd-sub { color: var(--muted, #8f8f92); font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; }
.vd-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 12.5px; font-weight: 700; color: var(--muted, #8f8f92); letter-spacing: 0.04em; text-transform: uppercase; }
.vd-row select, .vd-row input[type=text] {
  background: var(--bg, #232323); color: var(--text, #f2f2f2);
  border: 1px solid var(--border, #3a3a3a); border-radius: 8px;
  font: 600 14px Archivo, Arial, sans-serif; padding: 9px 11px; outline: none;
  text-transform: none; letter-spacing: 0;
}
.vd-row select:focus-visible, .vd-row input:focus-visible { border-color: var(--accent, #c1673a); }
.vd-row input[type=range] { accent-color: var(--accent, #c1673a); }
.vd-hint { font-weight: 500; text-transform: none; letter-spacing: 0; }
.vd-notice { background: var(--bg, #232323); border: 1px solid var(--border, #3a3a3a); border-radius: 10px; padding: 16px 18px; }
.vd-notice p { margin: 0 0 8px; color: var(--muted, #8f8f92); font-size: 13.5px; line-height: 1.6; }
.vd-notice p:last-of-type { margin-bottom: 0; }
.vd-notice b { color: var(--text, #f2f2f2); font-weight: 700; }
.vd-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.vd-stage canvas { display: block; width: 100%; height: auto; max-height: 54vh; object-fit: contain; background: #1e1e20; border-radius: 10px; margin-top: 14px; }
.vd-progress { height: 5px; background: var(--border, #3a3a3a); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.vd-progress > div { height: 100%; width: 0%; background: var(--accent, #c1673a); transition: width 0.2s linear; }
.vd-status { color: var(--muted, #8f8f92); font-size: 12.5px; margin-top: 9px; }
.vd-done video { display: block; width: 100%; max-height: 54vh; border-radius: 10px; margin-top: 14px; background: #000; }
