/* =====================================================================
   Voxxpen — Design System
   Light / Dark / Auto theme. CloudConvert-inspired premium utility UI.
   ===================================================================== */

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
a { text-decoration: none; }

/* ── Server HUD ─────────────────────────────────────────────────────── */
.server-hud {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--surface-2, #F1F5F9);
  border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted, #64748B);
  border-radius: 12px 12px 0 0;
}
.hud-indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-muted, #94a3b8);
}
.hud-indicator.idle { background: var(--green, #10B981); }
.hud-indicator.warn { background: #f59e0b; }
.hud-indicator.busy { background: var(--red, #EF4444); }

/* ── Queue banner ────────────────────────────────────────────────────── */
.queue-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.25);
  color: #1d4ed8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}
.queue-banner svg { width: 18px; height: 18px; flex-shrink: 0; }
[data-theme="dark"] .queue-banner { color: #93c5fd; background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.3); }


/* ── Light theme (default) ─────────────────────────────────────────── */
:root {
  --orange:        #FF6B35;
  --orange-dark:   #E85A24;
  --orange-glow:   rgba(255,107,53,.15);

  --green:         #10B981;
  --blue:          #3B82F6;
  --purple:        #8B5CF6;
  --teal:          #06B6D4;
  --red:           #EF4444;

  /* Surfaces */
  --bg:            #F5F7FA;
  --bg-alt:        #EEF2F7;
  --surface:       #FFFFFF;
  --surface-2:     #F1F5F9;

  /* Text */
  --text:          #111827;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;

  /* Borders */
  --border:        #E5E7EB;
  --border-dark:   #D1D5DB;

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.10), 0 4px 10px rgba(0,0,0,.06);
  --shadow-tool:   0 24px 64px rgba(0,0,0,.10), 0 8px 20px rgba(0,0,0,.06);

  /* Header */
  --header-bg:     rgba(255,255,255,.70);
  --header-border: rgba(255,255,255,.65);
  --header-shadow: 0 4px 28px rgba(0,0,0,.10), 0 1px 6px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.80);
  --logo-color:    #111827;
  --nav-color:     #6B7280;
  --nav-hover:     #111827;
  --theme-btn-bg:  #F1F5F9;
  --theme-btn-color: #6B7280;
  --theme-btn-hover: #E5E7EB;

  /* Hero */
  --hero-bg:       linear-gradient(145deg, #CCDEFF 0%, #EEF4FF 35%, #FFF8F2 65%, #FFE0C8 100%);
  --hero-text:     #111827;
  --hero-sub:      #6B7280;
  --hero-eyebrow:  #FF6B35;

  /* Tool card */
  --card-bg:       #FFFFFF;
  --card-border:   rgba(0,0,0,.06);
  --card-shadow:   var(--shadow-tool);

  /* How it works */
  --how-bg:        #111827;
  --how-text:      #F9FAFB;
  --how-sub:       rgba(249,250,251,.60);
  --step-num-bg:   var(--orange);

  /* Sections */
  --feat-bg:       var(--bg);
  --feat-title:    #111827;
  --feat-sub:      var(--text-muted);
  --feat-card-bg:  var(--surface);

  --price-bg:      var(--surface);
  --price-title:   #111827;

  /* Footer */
  --footer-bg:     #0F172A;

  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     18px;
  --radius-xl:     24px;
}

/* ── Dark theme ─────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:            #0D1117;
  --bg-alt:        #161B22;
  --surface:       #1C2433;
  --surface-2:     #243048;

  --text:          #E6EDF3;
  --text-muted:    #8B949E;
  --text-light:    #6E7681;

  --border:        #2D3748;
  --border-dark:   #3D4F63;

  --shadow-sm:     0 1px 3px rgba(0,0,0,.40), 0 1px 2px rgba(0,0,0,.30);
  --shadow-md:     0 4px 16px rgba(0,0,0,.50), 0 2px 6px rgba(0,0,0,.30);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.60), 0 4px 10px rgba(0,0,0,.40);
  --shadow-tool:   0 24px 64px rgba(0,0,0,.60), 0 8px 20px rgba(0,0,0,.40);

  --header-bg:     rgba(13,17,23,.78);
  --header-border: rgba(255,255,255,.09);
  --header-shadow: 0 4px 28px rgba(0,0,0,.50), 0 1px 6px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.05);
  --logo-color:    #E6EDF3;
  --nav-color:     #8B949E;
  --nav-hover:     #E6EDF3;
  --theme-btn-bg:  #1C2433;
  --theme-btn-color: #8B949E;
  --theme-btn-hover: #243048;

  --hero-bg:       linear-gradient(145deg, #06101E 0%, #0E1930 35%, #1B0B28 65%, #090F20 100%);
  --hero-text:     #E6EDF3;
  --hero-sub:      #8B949E;
  --hero-eyebrow:  #FF8A62;

  --card-bg:       #1C2433;
  --card-border:   rgba(255,255,255,.07);
  --card-shadow:   0 24px 64px rgba(0,0,0,.70), 0 8px 20px rgba(0,0,0,.50);

  --how-bg:        #0D1117;
  --how-text:      #E6EDF3;
  --how-sub:       rgba(230,237,243,.55);

  --feat-bg:       #0D1117;
  --feat-title:    #E6EDF3;
  --feat-sub:      #8B949E;
  --feat-card-bg:  #1C2433;

  --price-bg:      #0D1117;
  --price-title:   #E6EDF3;
}

/* Auto dark — inherit dark vars when system prefers dark and no explicit choice */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0D1117;
    --bg-alt:        #161B22;
    --surface:       #1C2433;
    --surface-2:     #243048;
    --text:          #E6EDF3;
    --text-muted:    #8B949E;
    --text-light:    #6E7681;
    --border:        #2D3748;
    --border-dark:   #3D4F63;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.40), 0 1px 2px rgba(0,0,0,.30);
    --shadow-md:     0 4px 16px rgba(0,0,0,.50), 0 2px 6px rgba(0,0,0,.30);
    --shadow-lg:     0 10px 40px rgba(0,0,0,.60), 0 4px 10px rgba(0,0,0,.40);
    --shadow-tool:   0 24px 64px rgba(0,0,0,.60), 0 8px 20px rgba(0,0,0,.40);
    --header-bg:     rgba(13,17,23,.78);
    --header-border: rgba(255,255,255,.09);
    --header-shadow: 0 4px 28px rgba(0,0,0,.50), 0 1px 6px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.05);
    --logo-color:    #E6EDF3;
    --nav-color:     #8B949E;
    --nav-hover:     #E6EDF3;
    --theme-btn-bg:  #1C2433;
    --theme-btn-color: #8B949E;
    --theme-btn-hover: #243048;
    --hero-bg:       linear-gradient(145deg, #06101E 0%, #0E1930 35%, #1B0B28 65%, #090F20 100%);
    --hero-text:     #E6EDF3;
    --hero-sub:      #8B949E;
    --hero-eyebrow:  #FF8A62;
    --card-bg:       #1C2433;
    --card-border:   rgba(255,255,255,.07);
    --card-shadow:   0 24px 64px rgba(0,0,0,.70), 0 8px 20px rgba(0,0,0,.50);
    --how-bg:        #0D1117;
    --how-text:      #E6EDF3;
    --how-sub:       rgba(230,237,243,.55);
    --feat-bg:       #0D1117;
    --feat-title:    #E6EDF3;
    --feat-sub:      #8B949E;
    --feat-card-bg:  #1C2433;
    --price-bg:      #0D1117;
    --price-title:   #E6EDF3;
  }
}

/* ── Base ──────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; color-scheme: light dark; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .2s, color .2s;
}

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  pointer-events: none;
  background: transparent;
}

.header-inner {
  pointer-events: all;
  max-width: 1100px;
  width: 100%;
  padding: 0 8px 0 20px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.header-inner.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: var(--header-border);
  box-shadow: var(--header-shadow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; }

.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--logo-color);
  letter-spacing: -.4px;
  transition: color .2s;
}

.site-nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  color: var(--nav-color);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-link:hover { color: var(--nav-hover); background: var(--theme-btn-hover); }

/* Theme toggle button */
.theme-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--theme-btn-bg);
  color: var(--theme-btn-color);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.theme-btn:hover { background: var(--theme-btn-hover); color: var(--nav-hover); }

.theme-icon { width: 16px; height: 16px; flex-shrink: 0; }
/* Show only the current mode icon */
.theme-icon-auto,
.theme-icon-light,
.theme-icon-dark { display: none; }

:root:not([data-theme]) .theme-icon-auto,
[data-theme="auto"]  .theme-icon-auto  { display: block; }
[data-theme="light"] .theme-icon-light { display: block; }
[data-theme="dark"]  .theme-icon-dark  { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-icon-auto { display: block; }
}

.theme-label { font-size: 13px; }

/* ── Burger + Mobile menu ──────────────────────────────────────────── */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--nav-color);
  border-radius: 20px;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.nav-burger:hover { background: var(--theme-btn-hover); color: var(--nav-hover); }
.nav-burger .burger-close { display: none; }
.nav-burger.open .burger-open { display: none; }
.nav-burger.open .burger-close { display: block; }

.nav-mobile-menu {
  position: absolute;
  top: 70px;
  left: 20px;
  right: 20px;
  display: none;
  pointer-events: all;
  align-items: flex-end;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
  border-radius: 20px;
  padding: 8px;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile-menu.open { display: flex; }

.nav-mobile-link {
  color: var(--nav-color);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-mobile-link:hover { color: var(--nav-hover); background: var(--theme-btn-hover); }

.nav-mobile-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

/* ── Mobile breakpoint ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* At top: show burger, hide desktop nav */
  .nav-burger { display: flex; }
  .site-nav { display: none; }

  /* Scrolled: compact inline nav — no burger, no logo text, no theme btn */
  .site-header.scrolled .nav-burger { display: none; }
  .site-header.scrolled .logo-text { display: none; }
  .site-header.scrolled .site-nav { display: flex; }
  .site-header.scrolled .theme-btn { display: none; }
  .site-header.scrolled .nav-mobile-menu { display: none !important; }
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  background: var(--hero-bg);
  background-size: 350% 350%;
  margin-top: -76px;
  padding: 120px 24px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: heroBgShift 8s ease infinite;
}

/* Subtle radial accent glows */
.hero::before {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 44% 34% at 19% 19%, rgba(59,130,246,.22) 0%, transparent 65%),
    radial-gradient(ellipse 41% 32% at 81% 81%, rgba(255,107,53,.18) 0%, transparent 65%);
  pointer-events: none;
  animation: heroGlowDrift 6s ease-in-out infinite;
}

@keyframes heroBgShift {
  0%   { background-position: 0%   0%; }
  33%  { background-position: 100% 15%; }
  66%  { background-position: 40% 100%; }
  100% { background-position: 0%   0%; }
}

@keyframes heroGlowDrift {
  0%   { transform: translate(0,    0)     scale(1);    }
  50%  { transform: translate(12%, 10%)    scale(1.12); }
  100% { transform: translate(0,    0)     scale(1);    }
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.hero-text { margin-bottom: 24px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hero-eyebrow);
  margin-bottom: 16px;
  opacity: .85;
}

.hero-title {
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.8px;
  color: var(--hero-text);
  margin-bottom: 12px;
  transition: opacity 0.42s ease, transform 0.42s ease, color .2s;
}
.hero-title--out {
  opacity: 0;
  transform: translateY(-16px);
}
.hero-title--prep {
  opacity: 0;
  transform: translateY(16px);
  transition: none;
}

.hero-accent {
  background: linear-gradient(135deg, var(--orange) 0%, #FF9A6C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 15px;
  color: var(--hero-sub);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
  transition: color .2s;
}

/* ── Tool Card ─────────────────────────────────────────────────────── */
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

/* Idle state inner */
.tool-idle-inner {
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tool-lang-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tool-lang-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.lang-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236B7280'%3E%3Cpath d='M5 6l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}
.lang-select:focus { outline: none; border-color: var(--orange); }
.lang-hint {
  font-size: 11px;
  color: var(--text-3);
  margin: 0;
  line-height: 1.4;
  /* stays on same flex line on desktop; wraps below on narrow viewports */
}

.tool-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}
.tool-actions .btn { justify-content: center; }
/* "Session Ready" spans full width */
#startPaidBtn { grid-column: 1 / -1; }
/* Fallback states (no demos / no payments) */
.demos-used, .no-payments {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 500;
}

.tool-browser-note {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.tool-browser-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.browser-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.browser-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.tool-desktop-warning {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(234, 160, 0, 0.09);
  border: 1.5px solid rgba(234, 160, 0, 0.38);
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}
.tool-desktop-warning svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #c08a00;
}
.tool-desktop-warning strong {
  color: #a07000;
}
[data-theme='dark'] .tool-desktop-warning svg { color: #e0b030; }
[data-theme='dark'] .tool-desktop-warning strong { color: #e8c040; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s, opacity .15s, border-color .15s;
  line-height: 1;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-buy {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-buy:hover:not(:disabled) { background: var(--orange-dark); border-color: var(--orange-dark); }

.btn-demo {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-demo:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--border-dark); color: var(--text); }

.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline:hover:not(:disabled) { background: var(--orange-glow); }

.btn-stop {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 8px 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
  cursor: pointer;
}
.btn-stop svg { width: 15px; height: 15px; }
.btn-stop:hover { background: rgba(239,68,68,.08); }

.btn-pause {
  background: transparent;
  color: var(--text-2);
  border: 2px solid var(--border);
  padding: 8px 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.btn-pause svg { width: 15px; height: 15px; }
.btn-pause:hover { background: var(--surface-2); }
.btn-pause.paused { color: var(--orange); border-color: var(--orange); }
.btn-pause.paused:hover { background: var(--orange-glow); }
.btn-pause .hidden { display: none; }

.btn-full { width: 100%; justify-content: center; margin-top: auto; }

.pill {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,107,53,.12);
  color: var(--orange-dark);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 2px;
}

.demos-used, .no-payments {
  font-size: 14px;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}

/* ── Status bar ────────────────────────────────────────────────────── */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}

.status-left, .status-right { display: flex; align-items: center; gap: 12px; }

.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-dark);
  transition: background .3s;
  flex-shrink: 0;
}
.status-dot.live    { background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.20); animation: pulse 2s infinite; }
.status-dot.loading { background: var(--orange); }
.status-dot.done    { background: var(--blue); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,.20); }
  50%       { box-shadow: 0 0 0 6px rgba(16,185,129,.08); }
}

.status-text { font-size: 14px; font-weight: 600; color: var(--text); }

.demo-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,107,53,.10);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,107,53,.22);
}
.demo-timer svg { width: 13px; height: 13px; }
.demo-timer.urgent { background: rgba(239,68,68,.10); color: var(--red); border-color: rgba(239,68,68,.28); }

/* ── Loading card ──────────────────────────────────────────────────── */
.loading-card {
  padding: 48px 32px;
  text-align: center;
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.loading-sub  { font-size: 13px; color: var(--text-muted); }

/* ── Transcript card ───────────────────────────────────────────────── */
.transcript-card { overflow: hidden; }

.transcript-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.transcript-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
}

.transcript-actions { display: flex; gap: 6px; }

.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
  font-family: inherit;
}
.btn-tool svg { width: 13px; height: 13px; }
.btn-tool:hover { background: var(--surface); color: var(--text); border-color: var(--border-dark); }
.btn-tool.large { font-size: 14px; padding: 8px 18px; }
.btn-tool.large svg { width: 15px; height: 15px; }

.transcript-body {
  padding: 24px;
  min-height: 180px;
  max-height: 440px;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.transcript-body::-webkit-scrollbar { width: 6px; }
.transcript-body::-webkit-scrollbar-track { background: transparent; }
.transcript-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.transcript-body p { margin-bottom: .9em; }
.transcript-body p:last-child { margin-bottom: 0; }
.transcript-placeholder { color: var(--text-light); font-style: italic; }

/* ── Post-session ──────────────────────────────────────────────────── */
.post-session {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  background: var(--surface-2);
}

.post-session-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

.post-check { width: 44px; height: 44px; color: var(--green); }
.post-title { font-size: 17px; font-weight: 700; color: var(--text); }
.post-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.post-upsell { font-size: 13px; color: var(--text-muted); }
.link-btn {
  background: none; border: none; padding: 0;
  color: var(--orange); font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: underline; font-family: inherit;
}

/* ── How It Works ──────────────────────────────────────────────────── */
.section-how {
  background: var(--how-bg);
  padding: 56px 24px;
  color: var(--how-text);
  transition: background .2s;
}

.section-inner { max-width: 1120px; margin: 0 auto; }
.section-inner.narrow { max-width: 820px; }

.section-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -.4px;
  text-align: center;
  margin-bottom: 8px;
  color: inherit;
}

.section-sub {
  text-align: center;
  font-size: 14px;
  color: var(--how-sub);
  margin-bottom: 40px;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  padding: 0 24px;
}

.step-num {
  width: 38px; height: 38px;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 16px rgba(255,107,53,.35);
}

.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p  { font-size: 14px; color: var(--how-sub); line-height: 1.6; }
.step strong { color: var(--how-text); }

/* ── Session info bar ──────────────────────────────────────────────── */
.session-info-bar {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.session-info-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 90px;
  flex-shrink: 0;
}
.session-info-label svg { width: 12px; height: 12px; opacity: .7; }

.session-tab-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.session-filename-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  padding: 5px 10px;
  transition: border-color .15s;
  min-width: 0;
}
.session-filename-input:focus {
  outline: none;
  border-color: var(--orange);
}
.session-filename-input::placeholder { color: var(--text-light); }

/* ── Features ──────────────────────────────────────────────────────── */
.section-features {
  background: var(--feat-bg);
  padding: 56px 24px;
  transition: background .2s;
}

.section-features .section-title { color: var(--feat-title); }
.section-features .section-sub   { color: var(--feat-sub); margin-bottom: 32px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 0;
}

.feature-card {
  background: var(--feat-card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow .2s, transform .2s, background .2s, border-color .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin: 10px 0 6px; }
.feature-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.feature-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-icon.orange { background: rgba(255,107,53,.12); color: var(--orange); }
.feature-icon.blue   { background: rgba(59,130,246,.10);  color: var(--blue); }
.feature-icon.green  { background: rgba(16,185,129,.10);  color: var(--green); }
.feature-icon.purple { background: rgba(139,92,246,.10);  color: var(--purple); }
.feature-icon.teal   { background: rgba(6,182,212,.10);   color: var(--teal); }
.feature-icon.red    { background: rgba(239,68,68,.10);   color: var(--red); }

/* ── Pricing ───────────────────────────────────────────────────────── */
.section-pricing {
  background: var(--price-bg);
  padding: 56px 24px 72px;
  transition: background .2s;
}

.section-pricing .section-title { color: var(--price-title); }
.section-pricing .section-sub   { color: var(--text-muted); margin-bottom: 36px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 0;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: box-shadow .2s, background .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }

.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), var(--shadow-md);
}

.pricing-card.coming-soon {
  opacity: .6;
}

.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.soon-badge { background: var(--text-muted) !important; }

.pricing-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -1px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.pricing-save-inline {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0;
}

.pricing-save {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 18px;
}

.pricing-features { margin-bottom: 22px; flex: 1; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '';
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310B981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
}

.btn-coming-soon {
  background: var(--surface-2);
  color: var(--text-muted);
  border-color: var(--border);
  font-size: 13px;
}

/* For non-bundle cards, add bottom margin directly */
.pricing-card:not(.coming-soon) .pricing-price { margin-bottom: 20px; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.55);
  padding: 40px 24px 20px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo { font-size: 19px; font-weight: 800; color: #fff; display: block; margin-bottom: 8px; }
.footer-tagline { font-size: 14px; }

.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; color: rgba(255,255,255,.35); margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,.55); font-size: 14px; transition: color .15s; text-decoration: none; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1120px;
  margin: 20px auto 0;
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,.28);
}

/* ── Legal pages ───────────────────────────────────────────────────── */
.legal-page { padding: 60px 24px 80px; background: var(--bg); }

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px;
  box-shadow: var(--shadow-sm);
}

.legal-inner h1 { font-size: 30px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.legal-date { font-size: 13px; color: var(--text-muted); margin-bottom: 36px; }
.legal-inner h2 { font-size: 17px; font-weight: 700; color: var(--text); margin: 32px 0 10px; }
.legal-inner h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.legal-inner p, .legal-inner li { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 12px; }
.legal-inner ul { list-style: disc; margin-left: 20px; margin-bottom: 12px; }
.legal-inner code { font-family: 'Consolas', monospace; font-size: 13px; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.legal-inner a { color: var(--orange); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 32px 0; }
.contact-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.contact-icon { width: 40px; height: 40px; background: var(--orange-glow); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--orange); }
.contact-icon svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.contact-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.contact-link { font-size: 14px; font-weight: 600; color: var(--orange); }
.contact-note { margin-top: 36px; }
.contact-note h2 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.faq-item h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-muted); }
.contact-footer-note { margin-top: 32px; font-size: 14px; color: var(--text-muted); }

/* ── Blog index ────────────────────────────────────────────────────── */
.blog-main { background: var(--bg); min-height: 60vh; }
.blog-inner { max-width: 1080px; margin: 0 auto; padding: 56px 24px 72px; }
.blog-header { margin-bottom: 40px; text-align: center; }
.blog-title { font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: var(--text); margin-bottom: 10px; }
.blog-sub { font-size: 15px; color: var(--text-muted); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.blog-card:hover { box-shadow: var(--shadow-md); border-color: var(--orange); }
.blog-card-category { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--orange); }
.blog-card-title { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.4; }
.blog-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.blog-card-meta { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ── Article page ──────────────────────────────────────────────────── */
.article-main { background: var(--bg); }
.article-inner { max-width: 740px; margin: 0 auto; padding: 40px 24px 80px; }
.article-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }
.article-breadcrumb a { color: var(--orange); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb span { color: var(--text-light); }
.article-header { margin-bottom: 36px; }
.article-meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.article-category-badge { background: rgba(255,107,53,.12); color: var(--orange); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; padding: 3px 10px; border-radius: 20px; }
.article-date, .article-read { font-size: 13px; color: var(--text-muted); }
.article-title { font-size: clamp(22px, 4vw, 34px); font-weight: 800; color: var(--text); line-height: 1.25; margin-bottom: 16px; }
.article-lead { font-size: 16px; color: var(--text-muted); line-height: 1.7; border-left: 3px solid var(--orange); padding-left: 16px; }
.article-body { font-size: 15px; color: var(--text); line-height: 1.75; }
.article-body h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 36px 0 12px; }
.article-body h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 24px 0 8px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 16px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--orange); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 13px; }
.article-table th { background: var(--surface-2); color: var(--text); font-weight: 700; text-align: left; padding: 10px 12px; border: 1px solid var(--border); }
.article-table td { padding: 9px 12px; border: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
.article-table tr:nth-child(even) td { background: var(--surface-2); }
.article-table tr:last-child td { color: var(--text); font-weight: 600; }
.article-cta-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; margin: 48px 0 40px; text-align: center; }
.article-cta-inner h2 { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.article-cta-inner p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.article-related { padding-top: 32px; border-top: 1px solid var(--border); }
.article-related h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.article-related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.article-related-list a { font-size: 14px; color: var(--orange); text-decoration: none; }
.article-related-list a:hover { text-decoration: underline; }

/* ── Stats counter ──────────────────────────────────────────────────── */
.section-stats { background: var(--how-bg); padding: 64px 24px 72px; text-align: center; }
.section-stats .section-inner { max-width: 860px; margin: 0 auto; }
.stats-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--orange); margin-bottom: 36px; opacity: .9; }
.stats-grid { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat-item { flex: 1; min-width: 180px; padding: 12px 32px; }
.stat-number { font-size: clamp(28px, 4vw, 46px); font-weight: 900; color: var(--orange); line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .8px; margin-top: 8px; }
.stat-divider { width: 1px; height: 80px; background: rgba(255,255,255,.1); flex-shrink: 0; }
.stats-tagline { margin-top: 48px; font-size: 15px; color: rgba(255,255,255,.45); font-style: italic; }

/* ── Homepage blog preview ─────────────────────────────────────────── */
/* ── Capacity Notice ──────────────────────────────────────── */
.section-capacity { background: var(--bg); padding: 0 24px 48px; }
.capacity-notice {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  max-width: 760px;
  margin: 0 auto;
}
.capacity-icon { flex-shrink: 0; color: var(--orange); }
.capacity-icon svg { width: 28px; height: 28px; }
.capacity-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.capacity-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 8px; }
.capacity-body p:last-child { margin-bottom: 0; }
.capacity-future { font-size: 13px !important; color: var(--text-muted) !important; }

.section-blog { background: var(--feat-bg); padding: 56px 24px 64px; }
.section-blog .section-inner { max-width: 1080px; margin: 0 auto; }
.blog-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 32px; }
.blog-preview-footer { text-align: center; margin-top: 28px; }
.blog-preview-footer a { font-size: 14px; font-weight: 600; color: var(--orange); text-decoration: none; }
.blog-preview-footer a:hover { text-decoration: underline; }

/* ── Success / Cancel ──────────────────────────────────────────────── */
.result-page { padding: 80px 24px; display: flex; justify-content: center; background: var(--bg); }

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.result-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.result-icon svg { width: 40px; height: 40px; }

.success-icon { background: rgba(16,185,129,.12); color: var(--green); }
.cancel-icon  { background: rgba(239,68,68,.10);  color: var(--red); }

.result-card h1 { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.result-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.error-reason { color: var(--red); }

.token-info { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 24px; }
.token-info p { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--text-muted); margin-bottom: 8px; }
.token-display { font-family: 'Consolas', monospace; font-size: 20px; color: var(--text); letter-spacing: 2px; }

.result-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; line-height: 1.6; }
.result-note a { color: var(--orange); }

.cancel-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ── Utilities ─────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Unsupported device/browser overlay ────────────────────────────── */
.unsupported-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.unsupported-modal {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px 28px 26px;
  max-width: 430px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,.28), 0 8px 20px rgba(0,0,0,.14);
}
.unsupported-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(234,160,0,.10);
  border: 1.5px solid rgba(234,160,0,.30);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c08a00;
}
[data-theme='dark'] .unsupported-icon {
  background: rgba(224,176,48,.12);
  border-color: rgba(224,176,48,.35);
  color: #e0b030;
}
.unsupported-icon svg { width: 26px; height: 26px; }
.unsupported-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.unsupported-body {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.unsupported-body strong { color: var(--text); }
.unsupported-browsers {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.unsupported-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
}
.unsupported-note {
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.5;
}
.unsupported-dismiss { width: 100%; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 120px 20px 60px; }
  .hero-text { margin-bottom: 28px; }

  .tool-idle-inner { padding: 24px 18px 20px; }
  .tool-lang-row { gap: 8px; }
  .lang-hint { width: 100%; text-align: center; margin-top: 2px; }
  .lang-select { width: 100%; }
  .tool-actions { grid-template-columns: 1fr; }
  #startPaidBtn { grid-column: 1; }

  .steps { flex-direction: column; align-items: center; gap: 36px; }
  .stat-divider { display: none; }
  .stat-item { min-width: 140px; padding: 12px 20px; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { flex-direction: column; gap: 24px; }

  .legal-inner { padding: 28px 20px; }
  .status-bar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .transcript-toolbar { flex-wrap: wrap; gap: 8px; }
  .result-card { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .theme-label { display: none; }
}
