/* ==========================================================================
   ChronoReel — Dark-Cinema Design System
   Zero dependencies • Semantic HTML5 + Modern CSS3
   ========================================================================== */

:root {
  --bg-obsidian: #090A0F;
  --bg-surface: #12141E;
  --bg-surface-elevated: #171A27;
  --bg-surface-hover: #1C2030;
  --bg-glass: rgba(9, 10, 15, 0.84);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-amber: rgba(255, 176, 32, 0.36);

  --text-primary: #F5F6FA;
  --text-secondary: #B4B8C8;
  --text-muted: #848AA1;

  --amber: #FFB020;
  --coral: #FF6B4A;
  --accent-gradient: linear-gradient(135deg, #FFB020 0%, #FF6B4A 100%);
  --emerald: #34D399;
  --emerald-bg: rgba(52, 211, 153, 0.12);
  --amber-bg: rgba(255, 176, 32, 0.12);

  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 12px 32px rgba(255, 140, 46, 0.22);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container-max: 1180px;
  --doc-max: 840px;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', 'SFMono-Regular',
    Menlo, Consolas, monospace;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-obsidian);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 176, 32, 0.11), transparent 70%),
    radial-gradient(ellipse 45% 40% at 90% 18%, rgba(255, 107, 74, 0.07), transparent 65%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--amber);
  color: #090A0F;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--accent-gradient);
  color: #090A0F;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(255, 130, 48, 0.34);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-sm {
  min-height: 38px;
  padding: 0.5rem 1.05rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  padding-block: 0.25rem;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text-primary);
}

.nav-link[aria-current="page"] {
  color: var(--amber);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--border-strong);
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-obsidian);
  padding: 1rem 1.25rem 1.35rem;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-mobile-link:hover,
.nav-mobile-link[aria-current="page"] {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.nav-mobile-cta {
  margin-top: 0.65rem;
  width: 100%;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 3rem 0 3.75rem;
}

@media (min-width: 960px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 3.25rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-amber);
  background: rgba(255, 176, 32, 0.08);
  color: #FFD27A;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  max-width: 100%;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 1.15rem;
  font-size: clamp(2.05rem, 4.4vw, 3.55rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.032em;
  color: var(--text-primary);
}

.hero-subtitle {
  margin: 0 0 1.85rem;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.hero-beta-note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 54ch;
}

.hero-beta-note strong {
  color: var(--text-secondary);
}

.hero-beta-note a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Hero Device Mockup & Stat Strip
   ========================================================================== */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.phone-frame {
  width: 100%;
  max-width: 348px;
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(160deg, #212538 0%, #10121C 55%, #090A0F 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(255, 176, 32, 0.09);
  position: relative;
}

.phone-screen {
  border-radius: 24px;
  background: #0B0D14;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  padding: 0.9rem 0.85rem 0.95rem;
  position: relative;
}

.phone-demo-video {
  width: 100%;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.phone-screen:has(> .phone-demo-video) .phone-preview-ui {
  display: none;
}

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--border-subtle);
}

.offline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--emerald-bg);
  color: var(--emerald);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.phone-app-title {
  display: flex;
  flex-direction: column;
}

.phone-app-title strong {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.phone-app-title span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.phone-lock-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.42rem;
  margin-bottom: 0.8rem;
}

.cal-cell {
  aspect-ratio: 1 / 1.1;
  border-radius: 10px;
  padding: 0.32rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.cal-cell--1 { background: linear-gradient(145deg, #2B243B, #171D2E); }
.cal-cell--2 { background: linear-gradient(145deg, #3D281D, #1B1622); }
.cal-cell--3 { background: linear-gradient(145deg, #1E3235, #121A24); }
.cal-cell--4 { background: linear-gradient(145deg, #362B22, #1D1724); }
.cal-cell--5 { background: linear-gradient(145deg, #243046, #141824); }
.cal-cell--6 { background: linear-gradient(145deg, #3C2434, #1B1523); }
.cal-cell--7 { background: linear-gradient(145deg, #20372E, #121A22); }

.cal-cell--today {
  background: linear-gradient(145deg, rgba(255, 176, 32, 0.22), rgba(255, 107, 74, 0.16));
  border-color: var(--amber);
  box-shadow: 0 0 14px rgba(255, 176, 32, 0.2);
}

.cal-day {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.cal-dur {
  align-self: flex-end;
  padding: 0.12rem 0.28rem;
  border-radius: 5px;
  background: rgba(9, 10, 15, 0.72);
  color: #FFE2A8;
  font-size: 0.58rem;
  font-weight: 700;
}

.cal-cell--today .cal-dur {
  background: var(--amber);
  color: #090A0F;
}

/* Beat-Sync Cinema Director Pill */
.cinema-pill {
  border-radius: 14px;
  padding: 0.7rem 0.75rem;
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.12), rgba(255, 107, 74, 0.08));
  border: 1px solid var(--border-amber);
}

.cinema-pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.cinema-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFE0A3;
}

.cinema-pill-bpm {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--amber);
  font-family: var(--font-mono);
}

.waveform {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  align-items: end;
  gap: 3px;
  height: 20px;
  margin-bottom: 0.5rem;
}

.waveform span {
  display: block;
  border-radius: 2px;
  background: var(--accent-gradient);
  opacity: 0.88;
}

.cinema-pill-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* Stat Strip */
.stat-strip {
  width: 100%;
  max-width: 390px;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.stat-strip-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.stat-strip-badge {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
}

.stat-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
}

.stat-bar-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  grid-column: 1 / -1;
}

.stat-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

.stat-bar-fill--native {
  width: 16%;
  background: var(--accent-gradient);
}

.stat-bar-fill--bloated {
  width: 100%;
  background: rgba(180, 184, 200, 0.25);
}

.stat-bar-label {
  color: var(--text-secondary);
}

.stat-bar-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 3.75rem 0;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.section-header {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.65rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.section-desc {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Feature Cards Grid (6 Cards)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.55rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--border-amber);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--amber-bg);
  border: 1px solid rgba(255, 176, 32, 0.24);
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.feature-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.feature-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: stretch;
}

@media (min-width: 820px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.65rem;
  }
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
}

.pricing-card--pro {
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.06) 0%, var(--bg-surface) 38%);
  border-color: var(--border-amber);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.pricing-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.pricing-tag--free {
  background: var(--emerald-bg);
  color: var(--emerald);
}

.pricing-tag--pro {
  background: var(--amber-bg);
  color: var(--amber);
}

.pricing-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-lead {
  margin: 0 0 1.4rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.pricing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing-list svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.pricing-card--free .pricing-list svg {
  color: var(--emerald);
}

.pricing-card--pro .pricing-list svg {
  color: var(--amber);
}

.pricing-note {
  margin: 1.65rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.93rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ==========================================================================
   Closed Beta Founding Tester Section
   ========================================================================== */
.beta-panel {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-amber);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .beta-panel {
    padding: 2.5rem;
  }
}

.beta-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent-gradient);
}

.beta-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (min-width: 768px) {
  .beta-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.beta-step-card {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.45rem;
}

.beta-step-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.beta-step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.placeholder-url {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 176, 32, 0.35);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #FFD27A;
  word-break: break-all;
}

.perk-banner {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 176, 32, 0.08);
  border: 1px solid rgba(255, 176, 32, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.perk-banner p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.perk-banner a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 820px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--border-amber);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--amber);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.3rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   Privacy Policy Page & Legal Document Shell
   ========================================================================== */
.doc-section {
  padding: 3rem 0 4.5rem;
}

.doc-shell {
  max-width: var(--doc-max);
  margin: 0 auto;
}

.doc-header {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-header h1 {
  margin: 0.7rem 0 0.75rem;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.doc-meta strong {
  color: var(--text-primary);
}

.data-safety-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 640px) {
  .data-safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.safety-pill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.safety-pill-card span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.safety-pill-card strong {
  font-size: 1rem;
  color: var(--emerald);
}

.policy-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 768px) {
  .policy-article {
    padding: 1.75rem 2rem;
  }
}

.policy-article h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.policy-article p {
  margin: 0 0 0.85rem;
  color: var(--text-secondary);
  font-size: 0.97rem;
}

.policy-article p:last-child {
  margin-bottom: 0;
}

.policy-article a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-article code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.14rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #FFD27A;
  word-break: break-word;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.9rem;
  text-align: left;
}

.permissions-table th,
.permissions-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.permissions-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.permissions-table tr:last-child td {
  border-bottom: none;
}

.permissions-table td {
  color: var(--text-secondary);
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */
.error-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
  padding: 3rem 0;
}

.error-card {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.error-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.error-card h1 {
  margin: 0 0 0.65rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.error-card p {
  margin: 0 0 1.65rem;
  color: var(--text-secondary);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0 2.5rem;
  background: rgba(9, 10, 15, 0.9);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--amber);
}
