/* talkscrore — BEM stylesheet
   Blocks: logo, header, nav, btn, eyebrow, hero, stats, stat,
           upload-card, dropzone, divider, url-input, mic-row, mic-btn,
           waveform, section, how-grid, feature, features-row, feature-stat,
           price-card, price-table, faq, trust, footer,
           upload-screen, form-field, toggle, summary,
           processing, processing-card, progress, stages, stage, spinner,
           editor, transcript, segment, chip, search-input, sidebar-card,
           speaker-item, chapter, player, export, terminal, console-boot
   ------------------------------------------------------------------ */

/* ─── Tokens ──────────────────────────────────────────────────── */
:root {
  --bg:           oklch(0.985 0.003 270);
  --bg-card:      oklch(1 0 0);
  --bg-soft:      oklch(0.965 0.006 270);
  --bg-deep:      oklch(0.145 0.015 270);
  --ink:          oklch(0.165 0.018 270);
  --ink-2:        oklch(0.32  0.014 270);
  --ink-3:        oklch(0.5   0.012 270);
  --ink-4:        oklch(0.7   0.008 270);
  --rule:         oklch(0.92  0.005 270);
  --rule-2:       oklch(0.84  0.006 270);
  --accent:       #6E56F7;
  --accent-2:     oklch(0.62 0.22 296);
  --accent-soft:  oklch(0.96 0.035 285);
  --speaker-b:    oklch(0.7  0.16  50);
  --danger:       oklch(0.62 0.2   25);

  --font-sans:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Unbounded', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* ─── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Utilities ───────────────────────────────────────────────── */
.mono  { font-family: var(--font-mono); font-feature-settings: 'tnum'; }
.dim   { color: var(--ink-3); }
.small { font-size: 12px; }

/* ─── Keyframes ───────────────────────────────────────────────── */
@keyframes ts-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
@keyframes ts-spin {
  to { transform: rotate(360deg); }
}
@keyframes ts-blink {
  50% { opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════
   LOGO
   ══════════════════════════════════════════════════════════════ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo__mark {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  font-size: 9px;
  flex-shrink: 0;
}
.logo__name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.logo__version {
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 6px;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 50px;
  background: var(--bg);
  z-index: 50;
  backdrop-filter: blur(8px);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header__balance {
  font-size: 13px;
  color: var(--ink-3);
}
.header__balance b {
  color: var(--ink);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════ */
.nav {
  display: flex;
  gap: 28px;
}
.nav__link {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.15s;
}
.nav__link:hover { color: var(--ink); }
.nav__link--active { color: var(--ink); font-weight: 500; }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--rule-2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--bg-soft); }
.btn--primary {
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
.btn--primary:hover { transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════════
   EYEBROW
   ══════════════════════════════════════════════════════════════ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: ts-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   HERO — shared
   ══════════════════════════════════════════════════════════════ */
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 0 40px;
}

/* ── Hero: Editorial split ──────────────────────────────────── */
.hero--split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  padding: 72px 56px 100px;
  align-items: start;
}
.hero__title {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 28px 0 32px;
  text-wrap: balance;
}

/* ── Hero: Centered ─────────────────────────────────────────── */
.hero--centered {
  text-align: center;
  padding: 80px 56px 100px;
  max-width: 920px;
  margin: 0 auto;
}
.hero--centered .eyebrow { margin: 0 auto; }
.hero--centered .hero__title {
  font-family: var(--font-display);
  font-size: 92px;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 28px 0 24px;
  text-wrap: balance;
}
.hero--centered .hero__lead {
  margin: 0 auto 40px;
  font-size: 19px;
}
.hero__wave {
  max-width: 520px;
  margin: 0 auto 36px;
}
.hero__upload-area {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 60px -30px rgba(20, 20, 30, .15);
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ── Hero: Console ──────────────────────────────────────────── */
.hero--console {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 64px 56px 100px;
  align-items: start;
}

/* ══════════════════════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════════════════════ */
.stats {
  display: flex;
  gap: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.stat__label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  margin-top: 4px;
}
.stat__sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   UPLOAD CARD
   ══════════════════════════════════════════════════════════════ */
.upload-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .6) inset,
    0 30px 60px -30px rgba(20, 20, 30, .15);
}
.upload-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--ink-3);
}
.upload-card__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-soft);
  padding: 4px 8px;
  border-radius: 6px;
}

/* ══════════════════════════════════════════════════════════════
   DROPZONE
   ══════════════════════════════════════════════════════════════ */
.dropzone {
  border: 1.5px dashed var(--rule-2);
  border-radius: 14px;
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all 0.18s;
  cursor: pointer;
  background: var(--bg);
}
.dropzone:hover,
.dropzone--over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone--compact { padding: 22px 18px; }
.dropzone__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
}
.dropzone__icon svg { width: 22px; height: 22px; }
.dropzone__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.dropzone__hint {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 2px;
}
.dropzone__formats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.dropzone__format {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-soft);
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--ink-2);
}

/* ══════════════════════════════════════════════════════════════
   DIVIDER
   ══════════════════════════════════════════════════════════════ */
.divider {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin: 16px 0;
  position: relative;
}
.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--rule);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }

.divider--vertical {
  width: 1px;
  height: 20px;
  background: var(--rule);
  margin: 0 4px;
  display: inline-block;
  vertical-align: middle;
}

/* ══════════════════════════════════════════════════════════════
   URL INPUT
   ══════════════════════════════════════════════════════════════ */
.url-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
  background: var(--bg);
  transition: border-color 0.15s;
}
.url-input:focus-within { border-color: var(--ink-3); }
.url-input__icon {
  color: var(--ink-3);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.url-input__field {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 14px;
  padding: 8px 0;
  color: var(--ink);
}
.url-input__field::placeholder { color: var(--ink-4); }
.url-input__btn {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.url-input__btn:hover { opacity: 0.85; }

/* ══════════════════════════════════════════════════════════════
   MIC ROW & MIC BUTTON
   ══════════════════════════════════════════════════════════════ */
.mic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.mic-row__hint {
  font-size: 12px;
  color: var(--ink-3);
}
.mic-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.mic-btn:hover {
  background: var(--bg);
  border-color: var(--ink-3);
}
.mic-btn--active {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.mic-btn__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
  flex-shrink: 0;
}
.mic-btn--active .mic-btn__dot {
  background: white;
  animation: ts-pulse 1.2s infinite;
}

/* ══════════════════════════════════════════════════════════════
   WAVEFORM
   ══════════════════════════════════════════════════════════════ */
.waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 20px;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: 10px;
}
.waveform__bar {
  flex: 1;
  background: var(--accent);
  border-radius: 1px;
  min-height: 4px;
  opacity: 0.7;
  transition: height 0.08s linear;
}

/* ══════════════════════════════════════════════════════════════
   SECTION
   ══════════════════════════════════════════════════════════════ */
.section {
  padding: 80px 56px;
  border-top: 1px solid var(--rule);
}
.section__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
}
.section__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.section__title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
  max-width: 700px;
  text-wrap: balance;
}

/* ══════════════════════════════════════════════════════════════
   HOW-GRID + FEATURE
   ══════════════════════════════════════════════════════════════ */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.feature {
  display: flex;
  gap: 16px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.feature__num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.feature__title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}
.feature__desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════
   FEATURES ROW (4-column stats)
   ══════════════════════════════════════════════════════════════ */
.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0 56px;
  border-top: 1px solid var(--rule);
}
.feature-stat {
  padding: 48px 32px;
  border-right: 1px solid var(--rule);
}
.feature-stat:last-child { border-right: 0; }
.feature-stat__key {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.feature-stat--mono .feature-stat__key {
  font-family: var(--font-mono);
  font-size: 18px;
}
.feature-stat__val {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════
   PRICE CARD + PRICE TABLE
   ══════════════════════════════════════════════════════════════ */
.pricing__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.price-card {
  padding: 40px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-card__num {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.price-card__currency {
  font-size: 56px;
  margin-top: 12px;
  opacity: 0.6;
}
.price-card__per {
  font-size: 24px;
  opacity: 0.6;
  align-self: flex-end;
  margin-bottom: 16px;
  font-family: var(--font-sans);
}
.price-card__desc {
  font-size: 14px;
  color: oklch(0.75 0.01 80);
  line-height: 1.6;
  flex: 1;
}
.price-card .btn--primary {
  background: var(--accent);
  color: var(--ink);
  align-self: flex-start;
}

.price-table {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
}
.price-table__row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.price-table__row--head {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0;
}
.price-table__row--highlight {
  color: var(--accent);
  font-weight: 600;
}
.price-table__row:last-of-type { border-bottom: 0; }
.price-table__footer {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════════ */
.faq__item {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
  cursor: pointer;
}
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
}
.faq__toggle {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink-3);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.faq__answer {
  display: none;
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 760px;
}
.faq__item--open .faq__answer { display: block; }

/* ══════════════════════════════════════════════════════════════
   TRUST
   ══════════════════════════════════════════════════════════════ */
.trust {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-3);
}
.trust__count {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 56px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__copy { font-size: 12px; }
.footer__links {
  display: flex;
  gap: 28px;
}
.footer__link { color: var(--ink-3); }
.footer__link:hover { color: var(--ink); }

/* ══════════════════════════════════════════════════════════════
   UPLOAD SCREEN
   ══════════════════════════════════════════════════════════════ */
.upload-screen__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 56px;
  max-width: 1280px;
  margin: 0 auto;
}
.upload-screen__step {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.upload-screen__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 28px;
}

/* ── Form field ─────────────────────────────────────────────── */
.form-field { margin-bottom: 24px; }
.form-field__label {
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.form-field__select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  font: inherit;
  background: var(--bg-card);
  font-size: 14px;
  color: var(--ink);
  appearance: auto;
}
.form-field__input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  background: var(--bg-card);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.form-field__input:focus { border-color: var(--accent); }
.form-field__input::placeholder { color: var(--ink-4); }
.form-field__hint {
  font-size: 12px;
  color: var(--ink-3);
  display: block;
  margin-top: 2px;
}

/* ── Auth card ──────────────────────────────────────────────── */
.auth {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 30px 60px -30px rgba(20, 20, 30, .12);
}
.auth-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.auth-card__sub {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 32px;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 8px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.15s;
}
.auth-tab--active {
  background: var(--bg-card);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.auth-card__footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}
.auth-card__footer a { color: var(--accent); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--ink-4);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.form-field--toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.form-field--toggle .form-field__label { margin-bottom: 0; }

/* ── Toggle switch ──────────────────────────────────────────── */
.toggle {
  width: 38px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: var(--rule-2);
  position: relative;
  transition: background 0.15s;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  display: block;
}
.toggle--active { background: var(--accent); }
.toggle--active .toggle__knob { transform: translateX(16px); }

/* ══════════════════════════════════════════════════════════════
   SUMMARY
   ══════════════════════════════════════════════════════════════ */
.summary {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: 14px;
  border: 1px solid var(--rule);
}
.summary__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}
.summary__row b { font-weight: 600; }
.summary__footer {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 12px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   PROCESSING
   ══════════════════════════════════════════════════════════════ */
.processing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 40px;
}
.processing-card {
  width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 30px 60px -30px rgba(20, 20, 30, .15);
}
.processing-card__file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  padding: 6px 12px;
  background: var(--bg-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
}
.processing-card__pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: ts-pulse 1.2s infinite;
  display: inline-block;
}
.processing-card__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 20px 0 8px;
}
.processing-card__sub {
  font-size: 15px;
  color: var(--ink-3);
  margin: 0 0 32px;
}
.processing-card__wave { margin-top: 16px; }

/* ── Progress bar ───────────────────────────────────────────── */
.progress {
  position: relative;
  height: 6px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.1s linear;
  width: 0;
}
.progress__label {
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

/* ── Stages ─────────────────────────────────────────────────── */
.stages {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.stage {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.stage:last-child { border-bottom: 0; }
.stage--done { color: var(--ink-2); }
.stage--done .stage__mark { color: var(--accent); }
.stage--active { color: var(--ink); font-weight: 500; }
.stage--pending { color: var(--ink-4); }
.stage__mark {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--rule-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ts-spin 0.8s linear infinite;
  vertical-align: middle;
}

/* ── Cursor blink ───────────────────────────────────────────── */
.cursor-blink {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: ts-blink 1s step-end infinite;
}

/* ══════════════════════════════════════════════════════════════
   EDITOR
   ══════════════════════════════════════════════════════════════ */
.editor {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.editor .header { padding: 14px 32px; }
.editor__filename {
  font-size: 12px;
  color: var(--ink-3);
  padding: 6px 12px;
  background: var(--bg-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
}
.editor__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.editor__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.editor__info {
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.editor__main {
  display: grid;
  grid-template-columns: 1fr 320px;
  flex: 1;
  min-height: 0;
}

/* ── Chip ───────────────────────────────────────────────────── */
.chip {
  background: transparent;
  border: 1px solid var(--rule-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.chip--active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ── Search input ───────────────────────────────────────────── */
.search-input {
  padding: 7px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  outline: none;
  width: 220px;
  background: var(--bg);
  color: var(--ink);
}
.search-input:focus { border-color: var(--ink-3); }

/* ══════════════════════════════════════════════════════════════
   TRANSCRIPT
   ══════════════════════════════════════════════════════════════ */
.transcript {
  padding: 40px 64px 120px;
  overflow-y: auto;
  border-right: 1px solid var(--rule);
}
.transcript__footer {
  text-align: center;
  padding: 32px;
  font-size: 12px;
}
.segment {
  display: grid;
  grid-template-columns: 60px 140px 1fr;
  gap: 16px;
  padding: 16px 12px;
  margin: 0 -12px;
  border-bottom: 1px solid transparent;
  align-items: start;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px;
}
.segment:hover { background: var(--bg-soft); }
.segment--active { background: var(--accent-soft); }
.segment__time {
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 4px;
  font-family: var(--font-mono);
}
.segment__speaker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}
.segment__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.segment__speaker-name { font-size: 13px; font-weight: 500; }
.segment__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  outline: none;
  border-radius: 4px;
}
.segment__text:focus {
  background: white;
  box-shadow: 0 0 0 2px var(--accent);
  padding: 2px 4px;
  margin: -2px -4px;
}

/* ══════════════════════════════════════════════════════════════
   EDITOR SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.editor__sidebar {
  padding: 32px 24px 100px;
  background: var(--bg-soft);
  overflow-y: auto;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.sidebar-card__title {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.sidebar-card__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink-2);
}
.sidebar-card__row b { color: var(--ink); font-weight: 600; }

/* ── Speaker item ───────────────────────────────────────────── */
.speaker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.speaker-item__name {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.speaker-item__name:focus { background: var(--bg-soft); }
.speaker-item__time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* ── Chapter ────────────────────────────────────────────────── */
.chapter {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--rule);
}
.chapter:last-child { border-bottom: 0; }
.chapter__time { font-family: var(--font-mono); color: var(--ink-3); }

/* ══════════════════════════════════════════════════════════════
   PLAYER
   ══════════════════════════════════════════════════════════════ */
.player {
  display: grid;
  grid-template-columns: 44px 110px 1fr 200px;
  align-items: center;
  gap: 16px;
  padding: 14px 32px;
  background: var(--ink);
  color: var(--bg);
  position: sticky;
  bottom: 0;
}
.player__play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.player__time {
  font-size: 13px;
  font-family: var(--font-mono);
}
.player__track {
  position: relative;
  height: 4px;
  background: oklch(0.32 0.022 270);
  border-radius: 999px;
  cursor: pointer;
}
.player__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--accent);
  border-radius: 999px;
  width: 0;
}
.player__tick {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: oklch(0.5 0.012 250);
}
.player__thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}
.player__wave .waveform {
  background: oklch(0.245 0.02 270);
  padding: 8px;
  margin: 0;
}
.player__wave .waveform__bar {
  background: var(--accent);
  opacity: 0.8;
}

/* ══════════════════════════════════════════════════════════════
   EXPORT
   ══════════════════════════════════════════════════════════════ */
.export { position: relative; }
.export__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 6px;
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
  z-index: 60;
}
.export__menu--open { display: block; }
.export__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink-2);
}
.export__item:hover { background: var(--bg-soft); color: var(--ink); }
.export__item .mono { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   CONSOLE THEME  (page--console modifier overrides)
   ══════════════════════════════════════════════════════════════ */
.page--console {
  background: var(--bg-deep);
  color: oklch(0.94 0.008 270);
}
.page--console .header {
  background: var(--bg-deep);
  border-bottom-color: oklch(0.275 0.02 270);
}
.page--console .logo__mark {
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: 0;
}
.page--console .nav__link {
  color: oklch(0.7 0.008 250);
  font-family: var(--font-mono);
  font-size: 13px;
}
.page--console .nav__link:hover { color: var(--accent); }
.page--console .header__balance { color: var(--accent); }
.page--console .btn--ghost {
  border-color: oklch(0.32 0.022 270);
  color: oklch(0.86 0.008 270);
}
.page--console .btn--ghost:hover { background: oklch(0.245 0.02 270); }
.page--console .section { border-top-color: oklch(0.275 0.02 270); }
.page--console .section__title { font-family: var(--font-mono); font-size: 36px; }
.page--console .feature {
  background: oklch(0.205 0.018 270);
  border-color: oklch(0.275 0.02 270);
}
.page--console .feature__desc { color: oklch(0.72 0.008 270); }
.page--console .footer { border-top-color: oklch(0.275 0.02 270); }
.page--console .footer__link:hover { color: var(--accent); }

/* ── Console boot output ────────────────────────────────────── */
.console-boot {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: oklch(0.78 0.14 285);
  margin: 0 0 40px;
  white-space: pre-wrap;
}
.hero--console .hero__title {
  font-size: 72px;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 28px;
  line-height: 1;
  font-family: var(--font-mono);
}
.hero--console .hero__title .hero__arrow { color: var(--accent); }
.hero--console .hero__lead {
  font-family: var(--font-mono);
  font-size: 14px;
  color: oklch(0.78 0.008 270);
  max-width: 480px;
  line-height: 1.7;
}
.hero--console .hero__lead code {
  background: oklch(0.245 0.02 270);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent);
  font-size: 12px;
  margin: 0 1px;
}

/* ── Terminal widget ────────────────────────────────────────── */
.terminal {
  background: oklch(0.135 0.018 270);
  border: 1px solid oklch(0.245 0.02 270);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4);
}
.terminal__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: oklch(0.205 0.018 270);
  border-bottom: 1px solid oklch(0.245 0.02 270);
}
.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal__dot--red    { background: #ff5f56; }
.terminal__dot--yellow { background: #ffbd2e; }
.terminal__dot--green  { background: #27c93f; }
.terminal__title {
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  color: oklch(0.6 0.01 270);
  font-family: var(--font-mono);
}
.terminal__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.terminal__body .dropzone {
  background: oklch(0.18 0.018 270);
  border-color: oklch(0.32 0.022 270);
  color: oklch(0.94 0.008 270);
}
.terminal__body .dropzone:hover,
.terminal__body .dropzone--over {
  border-color: var(--accent);
  background: oklch(0.235 0.06 285);
}
.terminal__body .dropzone__icon {
  background: oklch(0.245 0.02 270);
  color: var(--accent);
}
.terminal__body .dropzone__hint { color: oklch(0.66 0.008 270); }
.terminal__body .dropzone__format {
  background: oklch(0.245 0.02 270);
  color: oklch(0.78 0.008 270);
}
.terminal__body .url-input {
  background: oklch(0.18 0.018 270);
  border-color: oklch(0.32 0.022 270);
}
.terminal__body .url-input__field { color: oklch(0.94 0.008 270); }
.terminal__body .url-input__btn { background: var(--accent); color: var(--bg-deep); }
.terminal__body .mic-btn {
  background: oklch(0.205 0.018 270);
  border-color: oklch(0.32 0.022 270);
  color: oklch(0.94 0.008 270);
}
.terminal__body .divider { color: oklch(0.5 0.01 270); }
.terminal__body .divider::before,
.terminal__body .divider::after { background: oklch(0.275 0.02 270); }
.terminal__prompt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-top: 4px;
}
.terminal__wave .waveform { background: oklch(0.18 0.018 270); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero--split,
  .hero--console,
  .upload-screen__main,
  .editor__main { grid-template-columns: 1fr; }
  .hero--split   { gap: 48px; padding: 48px 32px 72px; }
  .hero__title   { font-size: 56px; }
  .how-grid      { grid-template-columns: 1fr; }
  .features-row  { grid-template-columns: 1fr 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .header        { padding: 16px 24px; }
  .section       { padding: 56px 24px; }
  .footer        { padding: 32px 24px; flex-direction: column; gap: 24px; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hero--split   { padding: 32px 16px 48px; }
  .hero__title   { font-size: 40px; }
  .header        { padding: 14px 16px; }
  .nav           { display: none; }
  .features-row  { grid-template-columns: 1fr; }
  .segment       { grid-template-columns: 50px 1fr; }
  .segment__time { display: none; }
  .player        { grid-template-columns: 44px 1fr; }
  .player__wave  { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   REG — REGISTRATION PAGE
   ══════════════════════════════════════════════════════════════ */
.reg {
  min-height: calc(100vh - 80px - 113px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}
.reg__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 960px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .6) inset,
    0 40px 80px -40px rgba(20, 20, 30, .15);
}
.reg__promo {
  padding: 56px 48px;
  background: var(--bg-deep);
  color: oklch(0.94 0.008 270);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.reg__promo-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 24px 0 20px;
  color: oklch(0.97 0.004 270);
}
.reg__promo-lead {
  font-size: 15px;
  line-height: 1.6;
  color: oklch(0.72 0.008 270);
  margin: 0 0 36px;
  max-width: 340px;
}
.reg__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reg__perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: oklch(0.82 0.008 270);
  line-height: 1.45;
}
.reg__perk-icon {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.reg__stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid oklch(0.275 0.02 270);
  margin-top: auto;
}
.reg__stats .stat__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: oklch(0.97 0.004 270);
}
.reg__stats .stat__sub {
  font-size: 11px;
  color: oklch(0.6 0.008 270);
  margin-top: 2px;
}
.reg__form-wrap {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.reg-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.reg-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reg-form__label { font-size: 13px; font-weight: 500; color: var(--ink); }
.reg-form__required { color: var(--accent); margin-left: 2px; }
.reg-form__input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.reg-form__input::placeholder { color: var(--ink-4); }
.reg-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.reg-form__input--error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px oklch(0.96 0.04 25);
}
.reg-form__promo-wrap { position: relative; }
.reg-form__promo-wrap .reg-form__input { padding-right: 80px; }
.reg-form__promo-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.reg-form__checks { display: flex; flex-direction: column; gap: 12px; }
.reg-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.reg-form__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.reg-form__checkmark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--rule-2);
  border-radius: 5px;
  background: var(--bg);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  position: relative;
}
.reg-form__checkmark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.15s;
}
.reg-form__checkbox:checked ~ .reg-form__checkmark { background: var(--accent); border-color: var(--accent); }
.reg-form__checkbox:checked ~ .reg-form__checkmark::after { opacity: 1; }
.reg-form__checkbox:focus-visible ~ .reg-form__checkmark { box-shadow: 0 0 0 3px var(--accent-soft); }
.reg-form__check-text { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.reg-form__link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.reg-form__link:hover { opacity: 0.8; }
.reg-form__error { font-size: 12px; color: var(--danger); min-height: 16px; display: block; }
.reg-form__submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.reg-form__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.reg-form__success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: oklch(0.96 0.04 145);
  border: 1px solid oklch(0.88 0.08 145);
  border-radius: 10px;
  font-size: 14px;
  color: oklch(0.35 0.1 145);
  font-weight: 500;
}
.reg-form__success[hidden] { display: none; }
.reg-form__success-icon { font-size: 16px; flex-shrink: 0; }
.reg-form__login-hint { text-align: center; font-size: 13px; color: var(--ink-3); margin: 0; }
@media (max-width: 768px) {
  .reg__card { grid-template-columns: 1fr; border-radius: 16px; }
  .reg__promo { padding: 40px 32px 36px; }
  .reg__promo-title { font-size: 36px; margin: 18px 0 14px; }
  .reg__promo-lead { margin-bottom: 24px; }
  .reg__perks { margin-bottom: 28px; gap: 10px; }
  .reg__stats { padding-top: 24px; gap: 24px; margin-top: 0; }
  .reg__form-wrap { padding: 40px 32px; }
  .reg { padding: 32px 16px; }
}
@media (max-width: 480px) {
  .reg__promo { padding: 32px 24px; }
  .reg__form-wrap { padding: 32px 24px; }
  .reg__promo-title { font-size: 28px; }
}

/* ══════════════════════════════════════════════════════════════
   RATES PAGE
   ══════════════════════════════════════════════════════════════ */
.rates { padding: 72px 56px 100px; max-width: 1320px; margin: 0 auto; }
.rates__hero { text-align: center; margin-bottom: 56px; }
.rates__title {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 20px 0 20px;
  color: var(--ink);
}
.rates__lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0 auto; max-width: 560px; }
.rates__controls { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 48px; }
.seg-switch {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.seg-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.seg-switch__btn:hover { color: var(--ink); }
.seg-switch__btn--active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 20, 30, .08), 0 0 0 1px var(--rule);
}
.seg-switch__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: white;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.plans[hidden] { display: none !important; }
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
}
.plan {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  background: var(--bg-card);
  transition: background 0.15s;
}
.plan:last-child { border-right: 0; }
.plan--popular {
  background: var(--ink);
  color: var(--bg);
  border-right-color: transparent;
  box-shadow: 0 0 0 1px var(--ink);
  z-index: 1;
}
.plan--popular + .plan { border-left: 0; }
.plan__badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
}
.plan__head { margin-bottom: 24px; padding-top: 16px; }
.plan:not(.plan--popular) .plan__head { padding-top: 0; }
.plan__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.plan--popular .plan__name { color: oklch(0.7 0.008 270); }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan__price-val {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  transition: all 0.2s;
}
.plan--popular .plan__price-val { color: var(--bg); }
.plan__price-period { font-size: 15px; color: var(--ink-3); font-weight: 400; }
.plan--popular .plan__price-period { color: oklch(0.6 0.008 270); }
.plan__price-note { font-size: 12px; color: var(--ink-4); min-height: 18px; }
.plan--popular .plan__price-note { color: oklch(0.55 0.008 270); }
.plan__gift {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}
.plan__features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan__feature { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.plan--popular .plan__feature { color: oklch(0.82 0.008 270); }
.plan__feature--muted {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 13px;
}
.plan--popular .plan__feature--muted { border-top-color: oklch(0.28 0.02 270); color: oklch(0.6 0.008 270); }
.plan__feature--muted b { color: var(--ink); }
.plan--popular .plan__feature--muted b { color: oklch(0.92 0.008 270); }
.plan__feature-icon { color: var(--accent); font-family: var(--font-mono); font-size: 12px; flex-shrink: 0; margin-top: 1px; font-weight: 700; }
.plan__feature-icon--muted { color: var(--ink-4); font-size: 16px; line-height: 1; margin-top: 0; }
.plan__btn { width: 100%; justify-content: center; border-radius: 10px; padding: 11px 16px; font-size: 14px; font-weight: 600; }
.plan--popular .plan__btn.btn--primary { background: var(--accent); color: white; }
.plan--popular .plan__btn.btn--ghost { border-color: oklch(0.36 0.022 270); color: oklch(0.9 0.008 270); }
.plan--popular .plan__btn.btn--ghost:hover { background: oklch(0.25 0.02 270); }
.plan__price-val--changing { opacity: 0; transform: translateY(4px); }
.rates__more { text-align: center; margin-top: 32px; font-size: 15px; color: var(--ink-3); }
.rates__more-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.rates__more-link:hover { opacity: 0.8; }
.rates__common { margin-top: 80px; padding-top: 64px; border-top: 1px solid var(--rule); }
.rates__common-title { font-family: var(--font-display); font-size: 36px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 40px; color: var(--ink); }
.rates__common-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.rates__common-item { display: flex; gap: 16px; align-items: flex-start; }
.rates__common-icon { font-family: var(--font-mono); font-size: 13px; color: var(--accent); flex-shrink: 0; padding-top: 2px; letter-spacing: 0.04em; }
.rates__common-name { font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.rates__common-desc { font-size: 13px; color: var(--ink-3); line-height: 1.55; }
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); border-radius: 16px; }
  .plan:nth-child(2) { border-right: 0; }
  .plan:nth-child(3) { border-right: 1px solid var(--rule); border-top: 1px solid var(--rule); }
  .plan:nth-child(4) { border-right: 0; border-top: 1px solid var(--rule); }
  .plan--popular + .plan { border-left: 1px solid var(--rule); }
  .rates__common-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .rates { padding: 48px 24px 72px; }
  .rates__title { font-size: 48px; }
  .rates__lead { font-size: 16px; }
  .plans { grid-template-columns: 1fr; border-radius: 16px; }
  .plan { border-right: 0 !important; border-top: 1px solid var(--rule); }
  .plan:first-child { border-top: 0; }
  .plan--popular { box-shadow: none; }
  .seg-switch { width: 100%; justify-content: center; }
  .rates__controls { padding: 0 4px; }
  .rates__common-grid { grid-template-columns: 1fr; }
  .rates__common-title { font-size: 28px; }
}
@media (max-width: 480px) {
  .rates { padding: 32px 16px 56px; }
  .rates__title { font-size: 36px; }
  .seg-switch__btn { padding: 8px 14px; font-size: 13px; }
}

/* ══════════════════════════════════════════════════════════════
   CRM PAGE
   ══════════════════════════════════════════════════════════════ */
.crm-hero { text-align: center; padding: 80px 56px 64px; max-width: 860px; margin: 0 auto; }
.crm-hero .eyebrow { margin: 0 auto 24px; }
.crm-hero__title {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.97;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
.crm-hero__lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 600px; margin: 0 auto 36px; }
.crm-hero__actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.crm-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.crm-metric { padding: 36px 40px; border-right: 1px solid var(--rule); text-align: center; }
.crm-metric:last-child { border-right: 0; }
.crm-metric__val { font-family: var(--font-display); font-size: 44px; font-weight: 500; letter-spacing: -0.03em; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.crm-metric__label { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.crm-section { padding: 80px 56px; border-top: 1px solid var(--rule); }
.crm-section--soft { background: var(--bg-soft); }
.crm-section__header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 48px; }
.crm-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; }
.crm-card {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  background: var(--bg-card);
  transition: background 0.15s;
}
.crm-card:last-child { border-right: 0; }
.crm-card--featured { background: var(--ink); color: var(--bg); box-shadow: 0 0 0 1px var(--ink); z-index: 1; }
.crm-card--featured + .crm-card { border-left: 0; }
.crm-card__badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
}
.crm-card__logo { display: inline-flex; align-items: center; height: 36px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; margin-bottom: 16px; margin-top: 20px; }
.crm-card:not(.crm-card--featured):first-child .crm-card__logo,
.crm-card:not(.crm-card--featured):nth-child(3) .crm-card__logo,
.crm-card:not(.crm-card--featured):last-child .crm-card__logo { margin-top: 0; }
.crm-card__logo--amo { color: #FF5D5B; }
.crm-card__logo--amo span { color: oklch(0.55 0.12 20); }
.crm-card__logo--b24 { color: var(--accent); font-size: 22px; }
.crm-card__logo--mo { color: oklch(0.48 0.15 240); font-size: 14px; }
.crm-card__logo--api { font-family: var(--font-mono); font-size: 16px; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 8px; height: auto; }
.crm-card--featured .crm-card__logo--b24 { color: white; }
.crm-card__metric { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.crm-card--featured .crm-card__metric { color: oklch(0.78 0.14 285); }
.crm-card__name { font-size: 20px; font-weight: 600; margin: 0 0 12px; color: var(--ink); }
.crm-card--featured .crm-card__name { color: var(--bg); }
.crm-card__desc { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 0 16px; flex: 1; }
.crm-card--featured .crm-card__desc { color: oklch(0.72 0.008 270); }
.crm-card__features { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.crm-card__features li { font-size: 13px; color: var(--ink-3); padding-left: 16px; position: relative; line-height: 1.4; }
.crm-card__features li::before { content: '·'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.crm-card--featured .crm-card__features li { color: oklch(0.65 0.008 270); }
.crm-card__btn { width: 100%; justify-content: center; border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; margin-top: auto; }
.crm-card--featured .crm-card__btn.btn--primary { background: var(--accent); color: white; }
.crm-card--featured .crm-card__btn.btn--ghost { border-color: oklch(0.36 0.022 270); color: oklch(0.88 0.008 270); }
.crm-card--featured .crm-card__btn.btn--ghost:hover { background: oklch(0.25 0.02 270); }
.crm-steps { display: flex; align-items: flex-start; gap: 0; }
.crm-step { flex: 1; display: flex; gap: 16px; padding: 32px; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 16px; }
.crm-step__connector { display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 24px; color: var(--accent); padding: 0 16px; flex-shrink: 0; padding-top: 32px; }
.crm-step__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); flex-shrink: 0; letter-spacing: 0.04em; padding-top: 3px; }
.crm-step__title { font-weight: 600; font-size: 16px; margin-bottom: 8px; color: var(--ink); }
.crm-step__desc { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.crm-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.crm-benefit { padding: 28px; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 14px; }
.crm-benefit__icon { font-family: var(--font-mono); font-size: 18px; color: var(--accent); margin-bottom: 12px; }
.crm-benefit__title { font-weight: 600; font-size: 16px; margin-bottom: 8px; color: var(--ink); }
.crm-benefit__desc { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.crm-cta { text-align: center; padding: 80px 56px; border-top: 1px solid var(--rule); background: var(--bg-deep); color: oklch(0.94 0.008 270); }
.crm-cta__title { font-family: var(--font-display); font-size: 52px; font-weight: 500; letter-spacing: -0.03em; margin: 0 0 16px; color: oklch(0.97 0.004 270); }
.crm-cta__desc { font-size: 18px; color: oklch(0.72 0.008 270); margin: 0 auto 36px; max-width: 480px; line-height: 1.5; }
.crm-cta__actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.crm-cta .btn--ghost { border-color: oklch(0.36 0.022 270); color: oklch(0.9 0.008 270); }
.crm-cta .btn--ghost:hover { background: oklch(0.25 0.02 270); }
@media (max-width: 1100px) {
  .crm-list { grid-template-columns: repeat(2, 1fr); border-radius: 16px; }
  .crm-card:nth-child(2) { border-right: 0; }
  .crm-card:nth-child(3) { border-right: 1px solid var(--rule); border-top: 1px solid var(--rule); }
  .crm-card:nth-child(4) { border-right: 0; border-top: 1px solid var(--rule); }
  .crm-card--featured + .crm-card { border-left: 1px solid var(--rule); }
  .crm-metrics { grid-template-columns: repeat(2, 1fr); }
  .crm-metric:nth-child(2) { border-right: 0; }
  .crm-metric:nth-child(3) { border-top: 1px solid var(--rule); }
  .crm-metric:nth-child(4) { border-right: 0; border-top: 1px solid var(--rule); }
  .crm-benefits { grid-template-columns: repeat(2, 1fr); }
  .crm-steps { flex-direction: column; }
  .crm-step__connector { transform: rotate(90deg); padding: 8px 0; }
}
@media (max-width: 768px) {
  .crm-hero { padding: 48px 24px 40px; }
  .crm-hero__title { font-size: 48px; }
  .crm-hero__lead { font-size: 16px; }
  .crm-section { padding: 56px 24px; }
  .crm-list { grid-template-columns: 1fr; }
  .crm-card { border-right: 0 !important; border-top: 1px solid var(--rule) !important; }
  .crm-card:first-child { border-top: 0 !important; }
  .crm-card--featured { box-shadow: none; }
  .crm-benefits { grid-template-columns: 1fr; }
  .crm-cta { padding: 56px 24px; }
  .crm-cta__title { font-size: 36px; }
  .crm-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .crm-hero__title { font-size: 36px; }
  .crm-cta__title { font-size: 28px; }
  .crm-metrics { grid-template-columns: 1fr; }
  .crm-metric { border-right: 0; border-top: 1px solid var(--rule); }
  .crm-metric:first-child { border-top: 0; }
}

/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════════ */
.contact { padding: 72px 56px 100px; max-width: 1200px; margin: 0 auto; }
.contact__hero { margin-bottom: 56px; }
.contact__title { font-family: var(--font-display); font-size: 72px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin: 0 0 16px; }
.contact__lead { font-size: 18px; color: var(--ink-2); margin: 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.contact-item:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-item--static { cursor: default; }
.contact-item--static:hover { border-color: var(--rule); box-shadow: none; }
.contact-item__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ink-2); }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__icon--accent { background: var(--accent-soft); color: var(--accent); }
.contact-item__body { flex: 1; }
.contact-item__label { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.contact-item__value { font-size: 15px; font-weight: 500; color: var(--ink); }
.contact-item__arrow { font-size: 18px; color: var(--ink-4); transition: transform 0.15s, color 0.15s; }
a.contact-item:hover .contact-item__arrow { transform: translateX(3px); color: var(--accent); }
.contact__offer {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 20px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, oklch(0.97 0.015 60) 100%);
  border: 1px solid oklch(0.9 0.04 285);
  border-radius: 14px;
  margin-top: 4px;
}
.contact__offer-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.contact__offer-title { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.contact__offer-desc { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.contact__form-wrap { background: var(--bg-card); border: 1px solid var(--rule); border-radius: 20px; padding: 40px; box-shadow: 0 30px 60px -30px rgba(20, 20, 30, .10); }
.contact-form__heading { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 28px; color: var(--ink); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form__label { font-size: 13px; font-weight: 500; color: var(--ink); }
.contact-form__required { color: var(--accent); margin-left: 2px; }
.contact-form__input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  resize: none;
}
.contact-form__input::placeholder { color: var(--ink-4); }
.contact-form__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form__input--error { border-color: var(--danger); box-shadow: 0 0 0 3px oklch(0.96 0.04 25); }
.contact-form__input--textarea { min-height: 120px; line-height: 1.55; }
.contact-form__check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; }
.contact-form__checkbox { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.contact-form__checkmark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--rule-2);
  border-radius: 5px;
  background: var(--bg);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  position: relative;
}
.contact-form__checkmark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.15s;
}
.contact-form__checkbox:checked ~ .contact-form__checkmark { background: var(--accent); border-color: var(--accent); }
.contact-form__checkbox:checked ~ .contact-form__checkmark::after { opacity: 1; }
.contact-form__check-text { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.contact-form__link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.contact-form__error { font-size: 12px; color: var(--danger); min-height: 16px; display: block; }
.contact-form__submit { width: 100%; padding: 14px; font-size: 15px; font-weight: 600; border-radius: 12px; }
.contact-form__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.contact-form__success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: oklch(0.96 0.04 145);
  border: 1px solid oklch(0.88 0.08 145);
  border-radius: 10px;
  font-size: 14px;
  color: oklch(0.35 0.1 145);
  font-weight: 500;
}
.contact-form__success[hidden] { display: none; }
@media (max-width: 960px) {
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact { padding: 48px 24px 72px; }
  .contact__title { font-size: 48px; }
}
@media (max-width: 480px) {
  .contact { padding: 32px 16px 56px; }
  .contact__title { font-size: 36px; }
  .contact__form-wrap { padding: 28px 20px; }
  .contact-form__row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   CONFIDENTIALITY PAGE
   ══════════════════════════════════════════════════════════════ */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; max-width: 1200px; margin: 0 auto; padding: 0 56px; align-items: start; }
.legal-nav { position: sticky; top: calc(80px + 32px); padding: 40px 0 40px; padding-right: 40px; border-right: 1px solid var(--rule); min-height: calc(100vh - 200px); }
.legal-nav__title { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; font-weight: 600; }
.legal-nav__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.legal-nav__link { display: block; font-size: 13px; color: var(--ink-3); padding: 6px 10px; border-radius: 6px; transition: color 0.12s, background 0.12s; line-height: 1.4; }
.legal-nav__link:hover { color: var(--ink); background: var(--bg-soft); }
.legal-nav__link--active { color: var(--accent); background: var(--accent-soft); }
.legal { padding: 56px 0 100px 56px; min-width: 0; }
.legal__meta { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; letter-spacing: 0.04em; }
.legal__title { font-family: var(--font-display); font-size: 56px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin: 0 0 20px; color: var(--ink); }
.legal__lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 680px; margin-bottom: 32px; }
.legal__guarantees { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--bg-soft); border: 1px solid var(--rule); border-radius: 14px; margin-bottom: 48px; }
.legal__guarantee { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.legal__guarantee-icon { font-size: 16px; flex-shrink: 0; }
.legal__body { display: flex; flex-direction: column; gap: 0; }
.legal__section { padding: 40px 0; border-top: 1px solid var(--rule); scroll-margin-top: 100px; }
.legal__section:first-child { border-top: 0; padding-top: 0; }
.legal__section-title { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 20px; color: var(--ink); }
.legal__section-subtitle { font-size: 16px; font-weight: 600; color: var(--ink); margin: 24px 0 12px; }
.legal__section p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 0 0 16px; max-width: 700px; }
.legal__section p:last-child { margin-bottom: 0; }
.legal__list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.legal__list li { font-size: 15px; line-height: 1.6; color: var(--ink-2); padding-left: 20px; position: relative; }
.legal__list li::before { content: '—'; position: absolute; left: 0; color: var(--ink-4); }
.legal__list--check li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.legal__note { padding: 16px 20px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 16px 0; max-width: 700px; }
.legal__link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal__link:hover { opacity: 0.8; }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; padding: 0 24px; }
  .legal-nav { position: static; border-right: 0; border-bottom: 1px solid var(--rule); padding: 32px 0 24px; min-height: auto; }
  .legal-nav__list { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .legal-nav__link { white-space: nowrap; }
  .legal { padding: 40px 0 72px; }
  .legal__title { font-size: 40px; }
}
@media (max-width: 480px) {
  .legal-layout { padding: 0 16px; }
  .legal__title { font-size: 32px; }
  .legal__lead { font-size: 15px; }
  .legal-nav__list { gap: 2px; }
  .legal-nav__link { font-size: 12px; padding: 4px 8px; }
}
#bx-panel {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 99999 !important;
}