/* ============================================================
   Syncscribe — shared design system
   Extracted from index.html so the Live pages (live.html,
   join.html) stay visually consistent with the marketing site.
   index.html still ships its own inline <style> for now; the
   token values below are kept identical to it.
   ============================================================ */

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

:root {
  --bg:        #080d1a;
  --bg2:       #0d1426;
  --bg3:       #111827;
  --indigo:    #6366f1;
  --indigo-lt: #818cf8;
  --aqua:      #22d3ee;
  --white:     #f8fafc;
  --muted:     #94a3b8;
  --danger:    #f87171;
  --ok:        #34d399;
  --border:    rgba(99,102,241,0.18);
  --card-bg:   rgba(13,20,38,0.85);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--aqua); }

/* ── NAV (shared with marketing site) ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(8,13,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.25rem; letter-spacing: -0.01em; color: var(--white);
  text-decoration: none;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--indigo), var(--aqua));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer;
  padding: 14px 28px; border-radius: 10px;
  font-size: 1rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:not(:disabled):hover { background: var(--indigo-lt); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:not(:disabled):hover { border-color: rgba(255,255,255,0.4); }
.btn-danger { background: rgba(248,113,113,0.14); color: var(--danger); border: 1px solid rgba(248,113,113,0.3); }
.btn-danger:not(:disabled):hover { background: rgba(248,113,113,0.22); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; border-radius: 8px; }

/* ── CARD ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(12px);
}

/* ── FORM CONTROLS ── */
.field {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.field:focus { border-color: var(--indigo-lt); }
select.field { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 42px;
}
.field-label {
  display: block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}

/* ── BADGES / PILLS ── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.12); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px; font-size: 0.8rem;
  color: var(--indigo-lt); font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-live   { background: var(--aqua); animation: pulse 2s infinite; }
.dot-rec    { background: var(--danger); animation: pulse 1.5s infinite; }
.dot-idle   { background: var(--muted); }
.dot-ok     { background: var(--ok); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ── HEADINGS ── */
.h-eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--indigo-lt); margin-bottom: 14px;
}
.h-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
}
.h-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--indigo-lt), var(--aqua));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.text-muted { color: var(--muted); }
.text-aqua  { color: var(--aqua); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ── LAYOUT HELPERS ── */
.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.page-narrow { max-width: 460px; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 0.82rem;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--white); }

/* ── LIVE TRANSCRIPT PANEL ── */
.transcript-box {
  background: rgba(8,13,26,0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--white);
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 190px;
  min-height: 84px;
  scrollbar-width: thin;
}
.transcript-box:empty::before { content: "…"; color: var(--muted); }
.transcript-box.is-translated { color: var(--aqua); }
.transcript-cap {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--indigo-lt); margin-bottom: 8px;
}

/* ── TOAST / NOTICE ── */
.notice {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.55;
  border: 1px solid var(--border);
  background: rgba(99,102,241,0.08);
  color: var(--white);
}
.notice-warn { border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.08); }
.notice-info { border-color: rgba(34,211,238,0.25); background: rgba(34,211,238,0.07); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 18px; }
  .nav-links a.hide-mobile { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 16px; text-align: center; }
  .page { padding: 100px 20px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .dot-live, .dot-rec { animation: none; }
}
