/* ── Main site styles (moved from index.html) ── */
/* ── Reset ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design tokens ──────────────────────────────────────────────── */
:root {
  --p1: #667eea;
  --p2: #764ba2;
  --grad: linear-gradient(135deg, var(--p1) 0%, var(--p2) 100%);
  --bg: #0c0c1d;
  --bg2: #11112a;
  --bg3: #17173a;
  --surf: rgba(255, 255, 255, 0.04);
  --surf2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e6e8f4;
  --muted: #8892b0;
  --muted2: #5e6988;
  --accent-dim: rgba(102, 126, 234, 0.12);
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--p1);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}




.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(102, 126, 234, 0.38);
  text-decoration: none !important;
}

.theme-btn {
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--text);
  transition: background .15s;
}

.theme-btn:hover {
  background: var(--surf);
}

.nav-balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--p1);
  background: var(--accent-dim);
  border: 1px solid rgba(102, 126, 234, 0.22);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  margin-left: 8px;
  line-height: 1;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .nav-cta {
    justify-content: space-between;
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* ── Shared components ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(102, 126, 234, 0.38);
  text-decoration: none;
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--text);
  text-decoration: none;
}

.section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p1);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 48px;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  color: var(--p1);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto 36px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.trust-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.trust-pill .check {
  color: var(--green);
  font-weight: 700;
}

/* ── Stats strip ────────────────────────────────────────────────── */
.stats-strip {
  background: var(--bg2);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  padding: 8px 40px;
}

.stat-item+.stat-item {
  border-left: 1px solid var(--border);
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* ── Upload / Auth section ──────────────────────────────────────── */
.upload-section {
  padding: 72px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.upload-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.upload-heading {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.upload-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* script.js will replace #auth-widget with the real upload+auth flow */
.upload-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
}

.upload-card-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.upload-card p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.upload-card .formats {
  font-size: 12px;
  color: var(--muted2);
  font-family: var(--font-mono);
  margin-bottom: 28px;
}

.upload-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-note {
  font-size: 12.5px;
  color: var(--muted2);
  margin-top: 4px;
}

.upload-note span {
  color: var(--green);
}

/* ── How it works ───────────────────────────────────────────────── */
.how-section {
  max-width: 960px;
  margin: 72px auto;
  padding: 0 24px;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted2);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Use cases ──────────────────────────────────────────────────── */
.usecases-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px;
}

.usecases-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.usecase-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surf);
}

.usecase-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.usecase-icon {
  font-size: 20px;
}

.usecase-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.usecase-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.usecase-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--p1);
  font-weight: 600;
  margin-top: 10px;
  text-decoration: none;
}

.usecase-link:hover {
  text-decoration: underline;
}

/* ── Features ───────────────────────────────────────────────────── */
.features-section {
  max-width: 960px;
  margin: 72px auto;
  padding: 0 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surf);
}

.feature-icon {
  font-size: 22px;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Pricing ────────────────────────────────────────────────────── */
.pricing-section {
  background: transparent;
  padding: 72px 24px;
}

.pricing-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.pkg-card {
  flex: 0 0 240px;
  /* fixed width, adjust as needed */
  max-width: 100%;
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--p1);
  background: rgba(102, 126, 234, 0.06);
}

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

.pricing-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-sub {
  font-size: 13px;
  color: var(--muted2);
  margin-bottom: 16px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.never-expires {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 10px;
}

/* ── Transcription tools ────────────────────────────────────────── */
.tools-section {
  max-width: 960px;
  margin: 72px auto;
  padding: 0 24px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surf);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.tool-card:hover {
  border-color: var(--p1);
  background: var(--accent-dim);
  text-decoration: none;
}

.tool-emoji {
  font-size: 16px;
  flex-shrink: 0;
}

.tools-more {
  text-align: center;
  margin-top: 28px;
}

.tools-more a {
  font-size: 14px;
  font-weight: 600;
  color: var(--p1);
}

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 72px 24px;
}

.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.faq-a {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── CTA Banner ─────────────────────────────────────────────────── */
.cta-banner {
  border-top: 1px solid var(--border);
  padding: 72px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}

.cta-bullets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cta-bullet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.cta-bullet::before {
  content: "✓";
  color: var(--p1);
  font-weight: 700;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted2);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted2);
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Nav extras (script.js controls visibility) ─────────────────── */
.hidden {
  display: none !important;
}



.theme-btn {
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--text);
  transition: background .15s;
}

.theme-btn:hover {
  background: var(--surf);
}

/* ── Teaser / upload widget ──────────────────────────────────────── */
/* device-wrap and device-card come from style.css; add any overrides here */
.device-wrap {
  width: 100%;
}

.teaser-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}

.teaser-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.teaser-tab {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, background .15s;
  font-family: var(--font-sans);
}

.teaser-tab:hover {
  color: var(--text);
  background: var(--surf2);
}

.teaser-tab.active {
  color: var(--p1);
  border-bottom: 2px solid var(--p1);
  margin-bottom: -1px;
}

.teaser-note {
  font-size: 12px;
  color: var(--muted2);
  text-align: center;
  padding: 10px 16px 14px;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.teaser-file-label {
  color: var(--muted2);
}

.teaser-transcribe-btn {
  background: var(--grad);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-sans);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}

.teaser-transcribe-btn:hover {
  opacity: .92;
}

.teaser-transcribe-btn:active {
  transform: scale(0.97);
}


.teaser-live-box {
  padding: 24px 24px 20px;
}

.teaser-live-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--p1);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.teaser-live-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 60px;
}

.teaser-live-text:empty::before {
  content: "Listening for audio…";
  color: var(--muted2);
  font-style: italic;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links li {
    display: list-item;
  }

  .stat-item {
    padding: 8px 20px;
  }

  .stat-item+.stat-item {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .stats-strip {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .upload-card {
    padding: 28px 20px;
  }

  .teaser-card {
    max-width: 100%;
  }
}

/* ── Auth / Modal styles ── */
/* DataTranscribe - Auth Styles */
:root {
  --p1: #667eea;
  --p2: #764ba2;
  --grad: linear-gradient(135deg, var(--p1) 0%, var(--p2) 100%);
  --bg: #0c0c1d;
  --bg2: #11112a;
  --bg3: #17173a;
  --surf: rgba(255, 255, 255, .04);
  --surf2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .09);
  --text: #e6e8f4;
  --muted: #8892b0;
  --muted2: #5e6988;
  --green: #34d399;
  --red: #f87171;
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'SF Mono', 'Cascadia Code', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--p1);
  text-decoration: none;
}

/* Loading */
#loading {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity .3s;
}

#loading.out {
  opacity: 0;
  pointer-events: none;
}

.spin {
  width: 38px;
  height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--p1);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  color: var(--text);
  transform: translateY(8px);
  opacity: 0;
  transition: all .25s;
  z-index: 200;
  pointer-events: none;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Layout */
.page-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.hero-panel {
  background: linear-gradient(160deg, #0c0c1d 0%, #13102e 60%, #1a1040 100%);
  border-right: 1px solid var(--border);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--bg2);
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
}

.auth-tab.active {
  color: var(--text);
  border-bottom-color: var(--p1);
}

/* Forms */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 11px 14px;
  font-size: .9rem;
  outline: none;
}

.field input:focus {
  border-color: var(--p1);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, .15);
}

/* Buttons */
.btn-auth {
  width: 100%;
  background: var(--grad);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 4px;
}

.btn-auth:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.btn-auth-ghost {
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
  padding: 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 10px;
}

/* Messages */
.auth-msg {
  font-size: .8rem;
  margin-top: 10px;
  text-align: center;
}

.auth-msg.ok {
  color: var(--green);
}

.auth-msg.err {
  color: var(--red);
}

/* Legal Pages */
.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(12, 12, 29, .92);
  backdrop-filter: blur(12px);
}

.legal-hero {
  text-align: center;
  padding: 48px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.legal-hero .legal-title { margin-bottom: 0; }
.legal-hero .legal-updated { margin-bottom: 0; }

.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 28px 100px;
  text-align: center;
}

.legal-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}

.legal-updated {
  font-size: .85rem;
  color: var(--muted2);
  margin-bottom: 0;
  text-align: center;
  width: 100%;
}

.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 28px 100px;
  text-align: center;
}

.legal-body {
  text-align: left;
}

.legal-body p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 10px;
}

.legal-body h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  margin: 20px 0 8px;
}

.legal-body a {
  color: var(--p1);
}


/* Responsive */
@media (max-width: 860px) {
  .page-wrap {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 36px 28px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .auth-panel {
    padding: 36px 20px;
  }
}

/* ── Panel visibility (JS-controlled, no inline style= needed) ─────────────── */
.panel-hidden {
  display: none !important;
}

/* ── Auth Modal ─────────────────────────────────────────────────────────────── */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  padding: 20px;
}

.auth-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

body.modal-open {
  overflow: hidden;
}

.auth-modal-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: auth-modal-in 0.2s ease;
}

@keyframes auth-modal-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color .15s;
}

.auth-modal-close:hover {
  color: var(--text);
}

.auth-modal-brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.auth-legal {
  font-size: 0.75rem;
  color: var(--muted2);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.confirm-icon {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
}

.confirm-text {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.confirm-sub {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 16px;
}

/* ── Pricing blurb (was inline style= on the section description) ─────────── */
.pricing-blurb {
  color: var(--muted);
  font-size: 15px;
  margin-top: -28px;
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .auth-modal-card {
    padding: 28px 18px;
  }
}

/* ── FAQ Accordion ─────────────────────────────────────────────────── */
.faq-q {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--p1);
}

.faq-a {
  padding-top: 8px;
  padding-left: 4px;
  animation: faq-slide 0.25s ease;
}

@keyframes faq-slide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── FAQ Accordion ─────────────────────────────────────────────────── */
.faq-q {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0;
  line-height: 1.4;
  padding: 8px 0;
}

.faq-q:hover {
  color: var(--p1);
}

.faq-a {
  padding: 12px 0 8px 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  animation: faq-slide 0.25s ease;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

@keyframes faq-slide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Nav right alignment fix */


.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}




/* Enhanced Pricing Card Styles */
.pkg-card {
  background: linear-gradient(180deg, var(--surf) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px 28px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45);
  border-color: var(--border2, var(--border));
}

.pkg-card.featured {
  border: 1.5px solid var(--p1);
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.1) 0%, var(--surf) 100%);
  box-shadow: 0 8px 30px -10px rgba(102, 126, 234, 0.35);
}

.pkg-card.featured:hover {
  box-shadow: 0 24px 50px -12px rgba(102, 126, 234, 0.5);
}

.pricing-badge,
.pricing-badge-free,
.pricing-badge-value {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-badge {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.pricing-badge-free {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green);
}

.pricing-badge-value {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.pricing-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 10px;
  text-align: center;
}

.pricing-price {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.pricing-sub {
  font-size: 13px;
  color: var(--muted2);
  font-weight: 500;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.pricing-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex-grow: 1;
}

.pricing-feature {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-feature::before {
  content: "✓";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dim);
  color: var(--green);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.pricing-btn {
  display: block;
  text-align: center;
  background: var(--grad) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  margin-top: auto;
}

.pricing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  color: #fff;
}

.pricing-btn:active {
  transform: translateY(0);
}

.pricing-btn.featured-btn {
  background: var(--grad);
  color: #fff;
  border: none;
}

.pricing-btn.featured-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
  .pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-top: 40px;
  }

  .pkg-card {
    flex: 0 0 280px;
    max-width: 100%;
    background: linear-gradient(180deg, var(--surf) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px 24px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
  }
}

/* ── Reviews Section ─────────────────────────────────────────────────────── */
.reviews-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px;
  text-align: center;
}

.reviews-inner {
  max-width: 960px;
  margin: 0 auto;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.review-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.3);
  border-color: var(--p1);
}

.review-stars {
  color: #fbbf24;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-card blockquote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 20px;
  quotes: none;
  font-style: normal;
}

.review-card cite {
  font-size: 13px;
  color: var(--p1);
  font-weight: 600;
  font-style: normal;
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 48px auto 0;
  }
}



.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid var(--border);
  cursor: pointer;
  min-width: 220px;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: var(--surf2);
  border-color: var(--p1);
  text-decoration: none;
  color: var(--text);
}

.btn-primary {
  min-width: 220px;
  justify-content: center;
}


/* ===== HERO BUTTONS - FORCED STYLES ===== */
.hero-btn-primary,
.hero-btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 28px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  min-width: 280px !important;
  text-align: center !important;
  font-family: inherit !important;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
}

.hero-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(102, 126, 234, 0.4) !important;
  text-decoration: none !important;
  color: white !important;
}

.hero-btn-secondary {
  background: transparent !important;
  color: #e6e8f4 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.hero-btn-secondary:hover {
  transform: translateY(-2px) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: #667eea !important;
  text-decoration: none !important;
  color: #e6e8f4 !important;
}

.hero-cta-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-bottom: 36px !important;
}

@media (max-width: 640px) {

  .hero-btn-primary,
  .hero-btn-secondary {
    min-width: 240px !important;
    width: 100% !important;
    max-width: 300px !important;
  }
}


/* Reviews Carousel */
.reviews-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 48px auto 0;
  overflow: hidden;
  padding: 0 50px;
  text-align: left;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform .5s ease;
}

.reviews-track .review-card {
  min-width: calc(33.333% - 16px);
  flex: 0 0 calc(33.333% - 16px);
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
}

.review-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-arrow-left {
  left: 0;
}

.review-arrow-right {
  right: 0;
}

@media(max-width:1024px) {
  .reviews-track .review-card {
    min-width: calc(50% - 12px);
    flex: 0 0 calc(50% - 12px);
  }
}

@media(max-width:768px) {
  .reviews-track .review-card {
    min-width: calc(100% - 10px);
    flex: 0 0 calc(100% - 10px);
  }

  .reviews-carousel-wrapper {
    padding: 0 40px;
  }

  .review-arrow {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

/* Nav buttons for legal pages */
.nav-btn {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none !important;
  margin-left: 10px;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(102, 126, 234, 0.38);
  color: #fff !important;
}


/* Nav buttons for legal pages */
.nav-btn {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none !important;
  margin-left: 10px;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(102, 126, 234, .38);
  color: #fff !important;
}

/* Dark theme */


[data-theme="dark"] .hero-badge,
[data-theme="dark"] .section-label {
  color: #667eea;
}

[data-theme="dark"] .stats-strip {
  background: #f5f5f5;
}

[data-theme="dark"] .pricing-section,
[data-theme="dark"] .reviews-section,
[data-theme="dark"] .usecases-section,
[data-theme="dark"] .faq-section {
  background: #f5f5f5;
}

[data-theme="dark"] .footer {
  background: #f5f5f5;
}


[data-theme="dark"] .auth-modal-card {
  background: #ffffff;
}

[data-theme="dark"] .teaser-card {
  background: rgba(0, 0, 0, 0.04);
}

/* Dashboard centering */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card+.card {
  margin-top: 20px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  color: var(--text);
}

.card-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 10px;
}

.balance-big {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.balance-unit {
  font-size: .95rem;
  color: var(--muted);
  margin-top: 4px;
}

.never-expires {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-dim);
  color: var(--green);
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 10px;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.pkg-card {
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  position: relative;
}

.pkg-card.featured {
  border-color: var(--p1);
  background: rgba(102, 126, 234, .07);
}

.pkg-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.pkg-name {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted2);
}

.pkg-price {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 4px 0 2px;
}

.pkg-mins {
  font-size: .75rem;
  color: var(--muted2);
  margin-bottom: 14px;
}

.pkg-btn {
  width: 100%;
  background: var(--grad);
  border: none;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity .15s;
}

.pkg-btn:hover {
  opacity: .85;
}

.pkg-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .pkg-grid {
    grid-template-columns: 1fr;
  }
}

/* ── LIGHT MODE FIXES ── */


:root:not([data-theme="dark"]) .pkg-card {
  background: #f5f5f5 !important;
  border-color: #ddd !important;
}

:root:not([data-theme="dark"]) .pkg-card .pricing-price {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

:root:not([data-theme="dark"]) .pkg-card .pricing-label,
:root:not([data-theme="dark"]) .pkg-card .pricing-sub,
:root:not([data-theme="dark"]) .pkg-card .pricing-desc,
:root:not([data-theme="dark"]) .pkg-card .pricing-feature {
  color: #222 !important;
}

:root:not([data-theme="dark"]) .pkg-card .pricing-badge-free {
  background: #34d399 !important;
  color: #000 !important;
}

:root:not([data-theme="dark"]) .pkg-card .pricing-badge {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: #fff !important;
}

:root:not([data-theme="dark"]) .pkg-card .pricing-badge-value {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
}

:root:not([data-theme="dark"]) .hero-btn-secondary {
  color: #1a1a1a !important;
  background: #f0f0f0 !important;
  border: 1px solid #999 !important;
}

[data-theme="dark"] .hero-btn-secondary {
  color: #e6e8f4 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ── Bigger upload box ── */
.device-wrap {
  max-width: 680px !important;
  margin: 0 auto !important;
}

.teaser-card {
  max-width: 640px !important;
  padding: 0 !important;
}

.teaser-drop {
  padding: 60px 32px !important;
  margin: 20px !important;
}

.teaser-drop .drop-icon {
  font-size: 56px !important;
  margin-bottom: 16px !important;
}

.teaser-drop p {
  font-size: 18px !important;
  margin-bottom: 8px !important;
}

.teaser-drop .fmt {
  font-size: 14px !important;
  color: var(--muted2) !important;
}

.teaser-tab {
  font-size: 15px !important;
  padding: 16px 20px !important;
}

.teaser-note {
  font-size: 14px !important;
  padding: 14px 20px !important;
}

.upload-section {
  padding: 4px 24px 32px !important;
}

.upload-heading {
  font-size: clamp(32px, 4.5vw, 42px) !important;
}

.upload-sub {
  font-size: 18px !important;
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ── Light theme (triggered by data-theme="light") ── */
[data-theme="light"] {
  --bg: #ffffff !important;
  --bg2: #f5f5f5 !important;
  --bg3: #eeeeee !important;
  --surf: rgba(0, 0, 0, 0.04) !important;
  --surf2: rgba(0, 0, 0, 0.08) !important;
  --border: rgba(0, 0, 0, 0.1) !important;
  --text: #1a1a1a !important;
  --muted: #555555 !important;
  --muted2: #888888 !important;
}

[data-theme="light"] .pkg-card {
  background: #f5f5f5 !important;
  border-color: #ddd !important;
}

[data-theme="light"] .pkg-card .pricing-price {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

[data-theme="light"] .pkg-card .pricing-label,
[data-theme="light"] .pkg-card .pricing-sub,
[data-theme="light"] .pkg-card .pricing-desc,
[data-theme="light"] .pkg-card .pricing-feature {
  color: #222 !important;
}

[data-theme="light"] .pkg-card .pricing-badge-free {
  background: #34d399 !important;
  color: #000 !important;
}

[data-theme="light"] .pkg-card .pricing-badge {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: #fff !important;
}

[data-theme="light"] .pkg-card .pricing-badge-value {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
}

[data-theme="light"] .hero-btn-secondary {
  color: #1a1a1a !important;
  background: #f0f0f0 !important;
  border: 1px solid #999 !important;
}

[data-theme="dark"] .hero-btn-secondary {
  color: #e6e8f4 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="light"] {
  --bg: #ffffff !important;
  --bg2: #f5f5f5 !important;
  --bg3: #eeeeee !important;
  --surf: rgba(0, 0, 0, 0.04) !important;
  --surf2: rgba(0, 0, 0, 0.08) !important;
  --border: rgba(0, 0, 0, 0.1) !important;
  --text: #1a1a1a !important;
  --muted: #555555 !important;
  --muted2: #888888 !important;
}

[data-theme="light"] .pkg-card {
  background: #f5f5f5 !important;
  border-color: #ddd !important;
}

[data-theme="light"] .pkg-card .pricing-price {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

[data-theme="light"] .pkg-card .pricing-label,
[data-theme="light"] .pkg-card .pricing-sub,
[data-theme="light"] .pkg-card .pricing-desc,
[data-theme="light"] .pkg-card .pricing-feature {
  color: #222 !important;
}

[data-theme="light"] .pkg-card .pricing-badge-free {
  background: #34d399 !important;
  color: #000 !important;
}

[data-theme="light"] .pkg-card .pricing-badge {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: #fff !important;
}

[data-theme="light"] .pkg-card .pricing-badge-value {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
}

[data-theme="light"] .hero-btn-secondary {
  color: #1a1a1a !important;
  background: #f0f0f0 !important;
  border: 1px solid #999 !important;
}

[data-theme="dark"] .hero-btn-secondary {
  color: #e6e8f4 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="light"] .pricing-btn {
  display: block;
  text-align: center;
  background: var(--grad) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pricing-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  text-decoration: none;
}

[data-theme="light"] .pricing-btn:hover {
  opacity: 0.9 !important;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3) !important;
}

[data-theme="light"] .pricing-btn.featured-btn {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: #fff !important;
}

[data-theme="light"] .pkg-card .pricing-btn {
  display: block;
  text-align: center;
  background: var(--grad) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pricing-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  text-decoration: none;
}

[data-theme="light"] .pkg-card .pricing-btn:hover {
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3) !important;
}

.device-wrap {
  max-width: 680px !important;
  margin: 0 auto !important;
}

.teaser-card {
  max-width: 640px !important;
  padding: 0 !important;
}

.teaser-drop {
  padding: 60px 32px !important;
  margin: 20px !important;
}

.teaser-drop .drop-icon {
  font-size: 56px !important;
  margin-bottom: 16px !important;
}

.teaser-drop p {
  font-size: 18px !important;
  margin-bottom: 8px !important;
}

.teaser-drop .fmt {
  font-size: 14px !important;
  color: var(--muted2) !important;
}

.teaser-tab {
  font-size: 15px !important;
  padding: 16px 20px !important;
}

.teaser-note {
  font-size: 14px !important;
  padding: 14px 20px !important;
}

.upload-section {
  padding: 4px 24px 32px !important;
}

.upload-heading {
  font-size: clamp(32px, 4.5vw, 42px) !important;
}

.upload-sub {
  font-size: 18px !important;
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Center nav links */
.nav .nav-links a:hover {
  color: var(--p1);
}





/* ── Nav fixes ── */
.nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 56px !important;
  padding: 0 24px !important;
  flex-direction: row !important;
  background: var(--bg) !important;
  list-style: none !important;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  margin-right: auto !important;
  padding: 0 !important;
  flex: 0 1 auto !important;
  justify-content: flex-start !important;
}

.nav-links a {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.nav-links a:hover {
  color: #667eea !important;
}

[data-theme="light"] .nav-links a {
  color: #1a1a1a !important;
}

[data-theme="light"] .nav-links a:hover {
  color: #667eea !important;
}

/* ═══════════════════════════════════════════════════════
   GUEST FREE TRANSCRIPTION UI
═══════════════════════════════════════════════════════ */

/* Live transcript box shared styles */
.teaser-live-box {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}

.guest-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.teaser-live-status {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted2, #aaa);
  letter-spacing: .02em;
}

.guest-live-timer {
  font-size: .78rem;
  font-weight: 700;
  color: var(--p1, #667eea);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* Progress bar */
.guest-timer-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, .08);
  border-radius: 100px;
  overflow: hidden;
}

.guest-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--p1, #667eea), var(--p2, #764ba2));
  border-radius: 100px;
  transition: width .5s linear;
}

/* Live transcript text area */
.teaser-live-text {
  flex: 1;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--fg, #e8e8e8);
  white-space: pre-wrap;
  min-height: 80px;
  max-height: 220px;
  overflow-y: auto;
  padding: 10px 12px;
  background: rgba(0, 0, 0, .18);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .06);
}

.teaser-live-text:empty::before {
  content: attr(placeholder);
  color: var(--muted2, #666);
  font-style: italic;
}

/* ── Limit-reached CTA (inline in the live box) ── */
.guest-limit-cta {
  margin-top: 8px;
  padding: 16px;
  background: rgba(102, 126, 234, .08);
  border: 1px solid rgba(102, 126, 234, .22);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guest-limit-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.guest-limit-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.guest-limit-msg strong {
  display: block;
  font-size: .96rem;
  font-weight: 700;
  color: var(--fg, #e8e8e8);
  margin-bottom: 3px;
}

.guest-limit-msg p {
  font-size: .8rem;
  color: var(--muted2, #aaa);
  margin: 0;
  line-height: 1.5;
}

/* Package buttons row */
.guest-limit-packages {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.guest-pkg-btn {
  flex: 1;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, .04);
  border: 1.5px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  color: var(--fg, #e8e8e8);
  text-align: center;
}

.guest-pkg-btn:hover {
  border-color: var(--p1, #667eea);
  background: rgba(102, 126, 234, .1);
  transform: translateY(-1px);
}

.guest-pkg-btn.guest-pkg-featured {
  border-color: var(--p1, #667eea);
  background: linear-gradient(135deg, rgba(102, 126, 234, .15), rgba(118, 75, 162, .15));
}

.guest-pkg-btn.guest-pkg-selected {
  border-color: var(--p1, #667eea);
  background: linear-gradient(135deg, rgba(102, 126, 234, .25), rgba(118, 75, 162, .25));
  box-shadow: 0 0 0 2px rgba(102, 126, 234, .35);
}

.guest-pkg-badge {
  font-size: .62rem;
  font-weight: 700;
  color: var(--p1, #667eea);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.guest-pkg-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--fg, #e8e8e8);
}

.guest-pkg-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--p1, #667eea);
  line-height: 1;
}

.guest-pkg-mins {
  font-size: .7rem;
  color: var(--muted2, #aaa);
}

/* Light mode overrides */
[data-theme="light"] .teaser-live-text {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .08);
  color: var(--fg-light, #1a1a1a);
}

[data-theme="light"] .guest-limit-cta {
  background: rgba(102, 126, 234, .06);
  border-color: rgba(102, 126, 234, .2);
}

[data-theme="light"] .guest-pkg-btn {
  background: rgba(0, 0, 0, .03);
  border-color: rgba(0, 0, 0, .12);
  color: #1a1a1a;
}

[data-theme="light"] .guest-pkg-btn:hover {
  background: rgba(102, 126, 234, .08);
}

[data-theme="light"] .guest-limit-msg strong {
  color: #1a1a1a;
}

/* Logo theme swap */
.logo-light {
  display: none;
}

[data-theme="light"] .logo-dark {
  display: none;
}

[data-theme="light"] .logo-light {
  display: inline;
}

/* Nav links as pill buttons */
.nav-links a {
  padding: 8px 18px !important;
  border-radius: 999px !important;
  border: 1px solid var(--border) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

.nav-links a:hover {
  background: var(--accent-dim) !important;
  border-color: var(--p1) !important;
  color: var(--p1) !important;
}

[data-theme="light"] .nav-links a {
  border-color: rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .nav-links a:hover {
  background: rgba(102, 126, 234, 0.1) !important;
  border-color: #667eea !important;
}

/* Centered DataTranscribe wordmark in nav */
.nav-center-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-sans);
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

.nav {
  position: relative;
}

.auth-modal-brand {
  position: relative;
}

.auth-modal-brand .nav-center-brand {
  position: static;
  transform: none;
  display: block;
  text-align: center;
  margin-bottom: 8px;
  font-size: 18px;
}

.nav-center-brand-link {
  display: none;
}

.nav-center-brand-link .nav-center-brand {
  position: static;
  transform: none;
}

/* Hero logo sizing — matches h1 headline scale */
.hero-logo {
  height: 192px;
  margin-bottom: 24px;
}

.hero-logo.logo-dark {
  display: block;
}

.hero-logo.logo-light {
  display: none;
}

[data-theme="light"] .hero-logo.logo-dark {
  display: none;
}

[data-theme="light"] .hero-logo.logo-light {
  display: block;
}

.hero-logo-link {
  display: flex !important;
  justify-content: center !important;
}

.hero-logo-link {
  display: inline-block;
  text-decoration: none;
}

/* Nav links moved to left (logo removed from nav) */
.nav-links-left {
  margin: 0 !important;
  margin-right: auto !important;
}

/* Auth modal brand — logo only, centered */
.auth-modal-brand {
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 640px) {
  .nav-links {
    gap: 4px !important;
  }
  .nav-links a {
    font-size: 12px !important;
    padding: 4px 6px;
  }
}


@media (max-width: 640px) {
  .nav-links li { display: list-item !important; }
}

@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: list-item !important; }
}

/* ── Mobile nav hamburger (authoritative) ────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-right: 8px;
  flex-shrink: 0;
  list-style: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger-open span:nth-child(2) { opacity: 0; }
.nav-hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none !important;
    position: absolute !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    flex-direction: column !important;
    background: var(--bg) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 12px 0 !important;
    gap: 0 !important;
    z-index: 99 !important;
  }
  .nav-links.nav-links-open { display: flex !important; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
  }
}

/* ── Mobile nav hamburger (authoritative) ────────────────────────── */
/* ══ FINAL OVERRIDES — keep at end of file ══ */
.nav {
  position: static !important;
}

.nav-links {
  gap: 4px !important;
}

.nav-links a {
  position: relative !important;
  padding: 8px 16px !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.01em !important;
  color: var(--muted) !important;
  transition: color 0.2s ease, background 0.2s ease !important;
}
.nav-links a:hover {
  color: var(--text) !important;
  background: var(--surf2) !important;
  border-color: transparent !important;
}
.nav-links a::after {
  content: "" !important;
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 2px !important;
  height: 2px !important;
  border-radius: 2px !important;
  background: var(--grad) !important;
  transform: scaleX(0) !important;
  transition: transform 0.25s ease !important;
}
.nav-links a:hover::after {
  transform: scaleX(1) !important;
}
[data-theme="light"] .nav-links a { color: #555 !important; }
[data-theme="light"] .nav-links a:hover {
  color: #1a1a1a !important;
  background: rgba(0,0,0,.05) !important;
}

/* ── Portal-matching header widgets (balance chip + primary button) ── */
.topbar-balance {
  font-size: .78rem;
  font-weight: 700;
  color: var(--p1);
  background: var(--accent-dim);
  border: 1px solid rgba(102,126,234,.22);
  border-radius: 100px;
  padding: 3px 12px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(102,126,234,.35); color: #fff; }
.btn-sm { padding: 6px 13px; font-size: .78rem; }

/* ── Force-correct sizing for the nav "+ New Job" button (portal parity) ── */
#navDashboardBtn.btn-primary {
  min-width: auto !important;
  padding: 6px 13px !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: none !important;
}

/* ── Force nav-cta (Log in / Sign up) to exact fixed size ── */
.nav-cta {
  padding: 8px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  border-radius: 8px !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* ── LEGIBLE FONT OVERRIDE (injected) ── */
:root {
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}
html, body {
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  -webkit-font-smoothing: antialiased;
}
body, p, div, span, li, td, th, label, input, textarea, select, button, a {
  font-family: var(--font-body) !important;
}
p, li, td, th, label {
  font-size: 1rem !important;
  line-height: 1.65 !important;
}
.muted, .muted2, .small, small, .job-meta, .int-desc, .teaser-note {
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
}
h1 { font-size: 2.1rem !important; line-height: 1.3 !important; }
h2 { font-size: 1.7rem !important; line-height: 1.35 !important; }
h3 { font-size: 1.35rem !important; line-height: 1.4 !important; }
h4, h5, h6 { font-size: 1.1rem !important; line-height: 1.4 !important; }
button, .btn, input, textarea, select {
  font-size: 1rem !important;
}

/* ── USECASE TITLE CENTERING (injected) ── */
.usecase-header {
  justify-content: center !important;
  text-align: center !important;
}
.usecase-header h3 {
  width: 100%;
  text-align: center !important;
}

/* ══════════════ Claude-style sidebar (injected) ══════════════ */
.site-sidebar {
  background: #faf9f6 !important;
  border-right: 1px solid #e8e4da !important;
  color: #1a1a1a !important;
}
.cs-top { padding: 16px 14px 10px; border-bottom: 1px solid #e8e4da; }
.cs-logo { display:flex; align-items:center; gap:8px; text-decoration:none; margin-bottom:12px; }
.cs-logo img { height:24px; width:auto; }
.cs-logo span { font-weight:800; font-size:14.5px; color:#1a1a1a; letter-spacing:-.01em; }
.cs-new-btn {
  width:100%; display:flex; align-items:center; justify-content:center; gap:7px;
  background:#c96442; color:#fff; border:none; border-radius:8px;
  padding:9px 12px; font-size:13px; font-weight:600; cursor:pointer;
  transition: background .15s;
}
.cs-new-btn:hover { background:#b5583a; }

.cs-nav { padding:10px 8px; display:flex; flex-direction:column; gap:1px; }
.cs-item {
  display:flex; align-items:center; gap:9px; width:100%;
  padding:8px 10px; font-size:13px; font-weight:500; color:#57534e;
  background:none; border:none; border-radius:7px; text-align:left; cursor:pointer;
  transition: background .12s, color .12s;
}
.cs-item:hover { background:#efece4; color:#1a1a1a; }
.cs-icon { width:15px; height:15px; flex-shrink:0; opacity:.75; }
.cs-item:hover .cs-icon { opacity:1; }
.cs-item.cs-sub { padding-left:12px; font-size:12.5px; color:#78746a; }

.cs-sep { height:1px; background:#e8e4da; margin:10px 8px; }
.cs-section-label {
  font-size:11px; font-weight:700; letter-spacing:.04em;
  color:#a39d8f; text-transform:uppercase; padding:8px 10px 4px;
}

.cs-bottom { margin-top:auto; padding:12px 10px; border-top:1px solid #e8e4da; position:relative; }
.cs-login-btn {
  width:100%; background:#c96442; color:#fff; border:none; border-radius:8px;
  padding:9px 12px; font-size:13px; font-weight:600; cursor:pointer;
}
.cs-profile {
  display:flex; align-items:center; gap:8px; cursor:pointer;
  padding:6px; border-radius:8px; transition: background .12s;
}
.cs-profile:hover { background:#efece4; }
.cs-avatar {
  width:26px; height:26px; border-radius:50%; background:#c96442; color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700;
  flex-shrink:0; text-transform:uppercase;
}
.cs-profile-info { flex:1; min-width:0; }
.cs-profile-name { font-size:12.5px; font-weight:600; color:#1a1a1a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cs-profile-plan { font-size:11px; color:#a39d8f; }
.cs-icon-btn {
  background:none; border:none; color:#78746a; padding:4px; border-radius:6px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.cs-icon-btn:hover { background:#e8e4da; color:#1a1a1a; }

.cs-popup {
  display:none; position:absolute; bottom:64px; left:10px; right:10px;
  background:#fff; border:1px solid #e0dcd0; border-radius:12px;
  box-shadow:0 12px 32px rgba(0,0,0,.16); padding:8px; z-index:60;
}
.cs-popup.open { display:block; }
.cs-popup-email { font-size:11.5px; color:#a39d8f; padding:6px 10px 8px; word-break:break-all; }
.cs-popup-item {
  width:100%; display:flex; align-items:center; gap:8px; text-align:left;
  background:none; border:none; padding:8px 10px; font-size:13px; color:#1a1a1a;
  border-radius:7px; cursor:pointer;
}
.cs-popup-item:hover { background:#f3f1ea; }
.cs-popup-sep { height:1px; background:#eee; margin:6px 4px; }
.cs-popup-item.cs-logout { color:#b5583a; }
.cs-pill {
  margin-left:auto; background:#eef2ff; color:#4f46e5; font-size:10px; font-weight:700;
  padding:1px 7px; border-radius:100px;
}

/* ── Forced login gate ── */
#loginGateOverlay {
  position:fixed; inset:0; background:#0c0c1d; z-index:9999;
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:14px;
}
#loginGateOverlay .lg-logo { display:flex; align-items:center; gap:10px; opacity:0; animation: lg-fade-in .5s ease forwards; }
#loginGateOverlay .lg-logo img { height:42px; }
#loginGateOverlay .lg-logo span { font-size:22px; font-weight:800; color:#fff; letter-spacing:-.02em; }
@keyframes lg-fade-in { to { opacity:1; } }

/* ══════════════ Sidebar fix pass 2 (injected) ══════════════ */
html, body {
  overflow-x: hidden !important;
}

/* Force every icon in the new sidebar to its intended size no matter what */
.site-sidebar svg,
.cs-icon,
.cs-icon-btn svg,
.cs-avatar svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  flex: 0 0 auto !important;
  display: inline-block !important;
}
.cs-logo img { height: 24px !important; width: auto !important; max-width: 24px !important; }

/* Prevent the nav list from ever growing unbounded — scroll internally only if needed */
.cs-nav {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

/* Sidebar must stay fixed width + fixed position, never push page content down */
.site-sidebar {
  width: var(--sidebar-w) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Main content: locked to viewport height, centered, no forced scroll */
body {
  min-height: 100vh;
}
.hero, .upload-inner {
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ══════════════ Sidebar color revert — use site palette, not Claude's (injected pass 3) ══════════════ */
.site-sidebar { background: var(--bg2) !important; border-right: 1px solid var(--border) !important; color: var(--text) !important; }
.cs-top { border-bottom: 1px solid var(--border) !important; }
.cs-logo span { color: var(--text) !important; }
.cs-new-btn { background: var(--grad) !important; color: #fff !important; }
.cs-new-btn:hover { opacity: .92; }
.cs-item { color: var(--muted) !important; }
.cs-item:hover { background: var(--surf2) !important; color: var(--text) !important; }
.cs-item.cs-sub { color: var(--muted2) !important; }
.cs-sep { background: var(--border) !important; }
.cs-section-label { color: var(--muted2) !important; }
.cs-bottom { border-top: 1px solid var(--border) !important; }
.cs-login-btn { background: var(--grad) !important; color: #fff !important; }
.cs-profile:hover { background: var(--surf2) !important; }
.cs-avatar { background: var(--grad) !important; color: #fff !important; }
.cs-profile-name { color: var(--text) !important; }
.cs-profile-plan { color: var(--muted2) !important; }
.cs-icon-btn { color: var(--muted) !important; }
.cs-icon-btn:hover { background: var(--surf2) !important; color: var(--text) !important; }
.cs-popup { background: var(--bg2) !important; border: 1px solid var(--border2, var(--border)) !important; }
.cs-popup-email { color: var(--muted2) !important; }
.cs-popup-item { color: var(--text) !important; }
.cs-popup-item:hover { background: var(--surf2) !important; }
.cs-popup-sep { background: var(--border) !important; }
.cs-popup-item.cs-logout { color: #f87171 !important; }
.cs-pill { background: var(--accent-dim) !important; color: var(--p1) !important; }

/* ══════════════ Home page = upload box ONLY, centered, no scroll ══════════════ */
body.page-home,
html.page-home {
  overflow: hidden !important;
  height: 100vh !important;
}
body.page-home .main-content {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
body.page-home .upload-section {
  padding: 0 !important;
  background: none !important;
}
body.page-home .upload-inner { margin: 0 auto; }

/* Standalone marketing pages get normal scroll + top padding since nav is in normal flow */
.standalone-page-wrap { padding-top: 8px; }

/* ══════════════ Fix: home content collapsing to min-content width (pass 4) ══════════════ */
body.page-home .main-content {
  width: 100%;
}
body.page-home .main-content > .upload-section {
  width: 100%;
  flex: 1 1 auto;
}

/* ══════════════ Fix: home content collapsing to min-content width (pass 4) ══════════════ */
body.page-home .main-content {
  width: 100%;
}
body.page-home .main-content > .upload-section {
  width: 100%;
  flex: 1 1 auto;
}

/* pass 5 -- final layout fix, loads last so it wins */
body { margin-left: var(--sidebar-w); }
@media (max-width: 900px) { body { margin-left: 0 !important; } }

body.page-home .main-content {
  display: block;
  width: 100%;
  padding: 48px 24px;
  box-sizing: border-box;
}
body.page-home .upload-section {
  padding: 0;
  background: none;
}
body.page-home .upload-inner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* ══════════════ pass 6: sidebar flush-left + vertical centering (final, wins all ties) ══════════════ */
.site-sidebar {
  left: 0 !important;
  right: auto !important;
}

body.page-home .main-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  width: 100% !important;
  padding: 24px !important;
  box-sizing: border-box !important;
}
body.page-home .main-content > .upload-section {
  width: 100%;
  flex: 0 0 auto;
  padding: 0 !important;
  background: none !important;
}

/* ══════════════ pass 7: restore sidebar position:fixed (lost when legacy inline block was neutralized) ══════════════ */
.site-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
}

/* ══════════════ pass 8: center sidebar logo (image-only now, no wordmark) ══════════════ */
.cs-logo {
  justify-content: center !important;
}

/* ─── App-shell dashboard stat cards (ported from dashboard/css/portal.css) ─── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 6px;
}
.stat-val {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-sub {
  font-size: .72rem;
  color: var(--muted2);
  margin-top: 5px;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* ─── Marketing shell vs App shell toggle (was missing — both rendered at once) ─── */
#marketingShell { display: block; }
#marketingShell.hidden { display: none !important; }
#appShell { display: none; }
#appShell.visible { display: block; }

/* ── App pages (dashboard/jobs/projects/etc as real separate views) ── */
.app-page { display: none; }
.app-page.active { display: block; }
.main-content { padding: 32px 28px 60px; }
body.page-home .main-content { padding: 0; }
.app-page-header { max-width: 900px; margin: 0 auto 20px; }
.app-page-header h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.app-page-sub { color: var(--muted); margin-top: 4px; font-size: 14px; }
.app-card { max-width: 900px; margin: 0 auto; background: var(--surf); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.app-empty { color: var(--muted); font-size: 14px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { text-align: left; padding: 10px 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted2); border-bottom: 1px solid var(--border); }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
.data-table tbody tr:last-child td { border-bottom: none; }
.link-btn { background: none; border: none; color: var(--p1); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.app-badge { display: inline-flex; padding: 2px 9px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.app-badge-ok { background: var(--green-dim); color: var(--green); }
.app-badge-info { background: var(--accent-dim); color: var(--p1); }
.app-badge-err { background: rgba(248,113,113,.12); color: #f87171; }
#app-page-billing .pricing-grid { max-width: 900px; margin: 20px auto 0; }


/* ═════════════ Sidebar rework v2: username/initials, history list (injected) ══════════════ */
.cs-logo { justify-content: flex-start !important; }
.cs-logo-text {
  font-weight: 800;
  font-size: 17px;
  font-family: var(--font-sans);
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.cs-nav { flex: 1 1 auto; }
.cs-section-label { padding: 10px 10px 4px; }
.cs-history-list { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; }
.cs-history-empty { padding: 10px 10px; font-size: 12px; color: var(--muted2); }
.cs-history-item {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 8px 7px 10px; border-radius: 7px;
  transition: background .12s;
}
.cs-history-item:hover { background: var(--surf2); }
.cs-history-name {
  flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cs-history-dl {
  flex-shrink: 0; margin-left: auto; background: none; border: none;
  color: var(--muted2); padding: 4px; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cs-history-dl:hover { background: var(--surf2); color: var(--text); }
.cs-history-dl:disabled { opacity: .35; cursor: not-allowed; }
.cs-profile-row { display: flex; align-items: center; gap: 6px; }
.cs-profile-row .cs-profile { flex: 1 1 auto; min-width: 0; }

/* ══════════════ App shell rebuild: search bar, transcript viewer, integrations (injected) ══════════════ */
.app-page-header { text-align: center; }

.cs-search-bar {
  display: flex; align-items: center; gap: 6px;
  background: var(--surf2); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 10px; margin-bottom: 10px; color: var(--muted2);
}
.cs-search-bar input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 12.5px; }
.cs-search-bar input::placeholder { color: var(--muted2); }

textarea.transcript {
  width: 100%; min-height: 260px; max-height: 480px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
  font-size: .85rem; line-height: 1.7; padding: 14px; resize: vertical; font-family: var(--font-mono);
  outline: none; margin-top: 10px;
}
textarea.transcript:focus { border-color: var(--p1); }
.job-file-link { color: var(--p1); font-weight: 600; text-decoration: none; }
.job-file-link:hover { text-decoration: underline; }

.card-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.dl-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link-btn { background: none; border: none; color: var(--p1); font-size: .8rem; font-weight: 500; cursor: pointer; padding: 0; text-decoration: none; }
.link-btn:hover { opacity: .75; text-decoration: underline; }

.msg { font-size: .78rem; margin-top: 8px; min-height: 1.2em; }
.msg.ok { color: var(--green); }
.msg.err { color: #f87171; }
.btn-outline { background: none; border: 1px solid var(--border); color: var(--muted); }
.btn-outline:hover:not(:disabled) { border-color: var(--muted); color: var(--text); }
.btn-danger { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.3); color: #f87171; }
.btn-danger:hover:not(:disabled) { background: rgba(248,113,113,.22); }

.integration-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.integration-card { flex: 0 1 150px; background: var(--surf2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.int-icon { font-size: 1.5rem; }
.int-name { font-size: .82rem; font-weight: 600; }
.int-status { font-size: .7rem; color: var(--muted2); }
.int-desc { font-size: .74rem; color: var(--muted); line-height: 1.5; }

.api-key-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.api-key-display { flex: 1; min-width: 180px; font-size: .78rem; color: var(--muted); word-break: break-all; }
.check-group { display: flex; flex-direction: column; gap: 8px; }
.check-label { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); cursor: pointer; }
.check-label input[type="checkbox"] { accent-color: var(--p1); cursor: pointer; }

/* ── USECASE ICON: stack above title instead of beside it (injected) ── */
.usecase-header {
  flex-direction: column !important;
  gap: 8px !important;
}
.usecase-icon {
  display: block !important;
  margin: 0 auto !important;
}

/* ── TRANSLATE BAR: modernized pill control (injected) ── */
.teaser-translate-bar {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 10px 12px;
  border-radius: 999px; flex-wrap: wrap;
}
.teaser-translate-bar label { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; padding-left: 6px; }
.teaser-translate-bar select#teaserTranslateLangSelect {
  flex: 1; min-width: 120px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 999px; color: var(--text); font-size: 13px; padding: 8px 30px 8px 14px;
  outline: none; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color .15s ease;
}
.teaser-translate-bar select#teaserTranslateLangSelect:hover,
.teaser-translate-bar select#teaserTranslateLangSelect:focus { border-color: var(--p1); }
.teaser-translate-bar button#teaserTranslateBtn {
  background: var(--grad); color: #fff; border: none; border-radius: 999px;
  font-size: 13px; font-weight: 700; padding: 9px 18px; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.teaser-translate-bar button#teaserTranslateBtn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(102,126,234,.35); }

/* ── STATUS ICONS: OK.png / remove.png (injected) ── */
.status-icon { display: inline-flex; align-items: center; gap: 6px; }
.status-icon img { width: 14px; height: 14px; flex-shrink: 0; }

/* ── POPUP FOOTER LINKS (injected) ── */
.cs-popup-footer-links { display: flex; flex-direction: column; padding: 4px 0 2px; }
.cs-popup-link { padding: 8px 10px; font-size: 13px; color: var(--muted); text-decoration: none; border-radius: 7px; transition: background .15s ease, color .15s ease; }
.cs-popup-link:hover { background: var(--surf2); color: var(--text); }


.btn-active { border-color: var(--p1); color: var(--p1); }

.data-table th,
.data-table td {
  vertical-align: middle;
  padding: 10px 12px;
}
.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
}
.data-table th:not(:first-child),
.data-table td:not(:first-child) {
  text-align: center;
}

.transcript-body {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* ── Related tools section (SEO pages) ── */
.related-section {
  max-width: 960px;
  margin: 72px auto;
  padding: 0 24px;
  text-align: center;
}

.related-inner {
  max-width: 960px;
  margin: 0 auto;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surf);
  color: var(--text);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--p1);
  background: var(--accent-dim);
  text-decoration: none;
}

.related-arrow {
  font-size: 16px;
  color: var(--p1);
  flex-shrink: 0;
}

.related-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.related-section {
  max-width: 960px;
  margin: 72px auto;
  padding: 0 24px;
  text-align: center;
}
.related-inner {
  max-width: 960px;
  margin: 0 auto;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surf);
  color: var(--text);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--p1);
  background: var(--accent-dim);
  text-decoration: none;
}
.related-arrow {
  font-size: 16px;
  color: var(--p1);
  flex-shrink: 0;
}
.related-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}





#app-page-billing .pricing-section {
  padding-top: 48px;
  padding-bottom: 16px;
}

body.page-billing-noscroll, html.page-billing-noscroll {
  overflow: hidden;
  height: 100vh;
}
body.page-billing-noscroll .main-content {
  height: 100vh;
  overflow: hidden;
}

/* ── Transcript-viewer translate button, matched to dashboard's teaser translate style ── */
.btn-translate-match {
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-translate-match:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(102,126,234,.35);
}
.btn-translate-match:disabled { opacity: .5; cursor: not-allowed; }

/* ── Hub pages: multi-section topic grid (transcribe-audio-in-any-language,
   convert-audio-video-to-text, transcribe-long-recordings, audio-translation) ── */
.hub-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
  text-align: left;
}
.hub-subsection {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surf);
}
.hub-subsection h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  scroll-margin-top: 80px;
}

.app-share-menu {
  z-index: 99999;
  min-width: 220px;
  background: var(--bg2, #1a1d2e);
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  padding: 6px;
  font-size: 13.5px;
}
.app-share-menu-item {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text, #fff);
}
.app-share-menu-item:hover {
  background: var(--surf2, rgba(255,255,255,.08));
}


/* ══════════════ FORCE-FIX: jobs page visibility (appended, wins all cascade) ══════════════ */
#app-page-jobs:not(.active) {
  display: none !important;
}
#app-page-dashboard:not(.active) {
  display: none !important;
}
#app-page-projects:not(.active) {
  display: none !important;
}
#app-page-review:not(.active) {
  display: none !important;
}
#app-page-exports:not(.active) {
  display: none !important;
}
#app-page-billing:not(.active) {
  display: none !important;
}
#app-page-integrations:not(.active) {
  display: none !important;
}
#app-page-account:not(.active) {
  display: none !important;
}

/* fix: unconditional body margin-left from 'pass 5' was pushing marketing pages right by sidebar width */
body:not(.app-active) { margin-left: 0 !important; }


/* ══════════════ HARDENED RESPONSIVE SAFETY NET (forced, wins all cascade) ══════════════ */

/* 1) Absolutely no horizontal scroll/overflow anywhere, on any element, at any width */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
* {
  box-sizing: border-box !important;
}

/* 2) Reviews carousel: force single full-width card the instant the wrapper itself
   is narrow, using a container-relative rule instead of relying on window-width
   media queries matching a separate JS breakpoint. This cannot drift out of sync
   with anything else because it's the only rule that matters at this width. */
@media (max-width: 900px) {
  .reviews-carousel-wrapper {
    padding: 0 32px !important;
    max-width: 100% !important;
  }
  .reviews-track {
    gap: 12px !important;
  }
  .reviews-track .review-card {
    min-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
  }
  .review-arrow {
    width: 32px !important;
    height: 32px !important;
    font-size: 20px !important;
  }
}

/* 3) Belt-and-suspenders: no matter what JS computes for visibleCount(),
   never allow more than one card's worth of width to render at narrow sizes */
@media (max-width: 900px) {
  .reviews-track {
    width: 100% !important;
  }
}

/* force-full-width-marketing-shell: override any inherited width/margin constraint */
html body #marketingShell.marketing-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: 0 !important;
  position: static !important;
  transform: none !important;
}
