/* ============================================================================
 * FirstTap Launch — Dual-Theme Landing & Pricing Page (Cinema Dark + Studio Light)
 * Zero external CDN dependencies · Ready for Cloudflare Pages (launch.firsttaplab.com)
 * ============================================================================ */

@font-face {
  font-family: 'Inter Variable';
  src: url('./fonts/inter-latin-opsz-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono Variable';
  src: url('./fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-mono: 'JetBrains Mono Variable', 'SF Mono', Menlo, monospace;

  /* Cinema Dark (Default — optimal contrast for 60fps motion showcase) */
  --bg: #05060a;
  --bg-subtle: #0b0e17;
  --surface: rgba(15, 18, 29, 0.86);
  --surface-strong: #111524;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-border: rgba(129, 140, 248, 0.36);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --btn-bg: #ffffff;
  --btn-text: #05060a;
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.65);
  --grid-line: rgba(255, 255, 255, 0.03);
}

[data-theme='light'] {
  /* Studio Light (Stripe / Apple gallery crisp off-white aesthetic) */
  --bg: #fafafc;
  --bg-subtle: #f1f5f9;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.09);
  --accent-border: rgba(79, 70, 229, 0.28);
  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.1);
  --btn-bg: #0f172a;
  --btn-text: #ffffff;
  --shadow-lg: 0 28px 75px rgba(15, 23, 42, 0.12);
  --grid-line: rgba(15, 23, 42, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

.bg-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 60% 40% at 50% -10%, var(--accent-soft), transparent 70%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.brand-sub {
  font-weight: 400;
  color: var(--text-secondary);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}

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

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.22);
}

.btn-accent {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #0ea5e9 100%);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

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

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  max-width: 880px;
  margin: 0 auto 22px;
}

.hero h1 .grad {
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 52%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 34px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-ctas .btn {
  padding: 14px 26px;
  font-size: 15px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Interactive Cinema Showcase ---------- */
.showcase-section {
  padding: 20px 0 88px;
}

.showcase-shell {
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}

.showcase-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--text);
}

.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.compare-btn {
  padding: 6px 12px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.compare-btn.active {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.player-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #030408;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
}

.player-stage.portrait-mode {
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 50%, #11162a 0%, #030408 75%);
}

.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.player-stage.portrait-mode video {
  max-height: 100%;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.showcase-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.meta-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-weight: 600;
}

/* ---------- Sections & Grids ---------- */
.section {
  padding: 78px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 16.5px;
  color: var(--text-secondary);
}

/* Contrast Table */
.contrast-table-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.contrast-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.contrast-table th,
.contrast-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.contrast-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-subtle);
}

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

.contrast-table tr.highlight-row {
  background: var(--accent-soft);
}

.contrast-table tr.highlight-row td {
  color: var(--text);
  font-weight: 600;
}

/* 4-Card Craft Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Pricing Grid (Focused 2-Card Founding Offer, collapses cleanly to 1-col on mobile) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin: 0 auto;
  gap: 22px;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 24px 70px rgba(99, 102, 241, 0.22);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 45%);
}

.pop-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tier-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.tier-price {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  margin-bottom: 6px;
}

.tier-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.tier-turnaround {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--emerald);
  font-weight: 600;
  margin-bottom: 14px;
}

.tier-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 22px;
  min-height: 44px;
}

.tier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.tier-list li {
  display: flex;
  gap: 10px;
}

.tier-list li::before {
  content: '✓';
  color: var(--emerald);
  font-weight: 700;
  flex-shrink: 0;
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
  padding: 13px 18px;
}

/* Guarantee Banner */
.guarantee {
  margin-top: 32px;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--emerald-soft);
  border: 1px solid color-mix(in srgb, var(--emerald) 35%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.guarantee h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}

.guarantee p {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 720px;
}

/* Steps & FAQ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 20px;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  padding: 56px 0 68px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.footer p {
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.footer-fine {
  margin-top: 38px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .grid-2,
  .pricing-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav-actions .btn,
  .theme-btn {
    white-space: nowrap;
    padding: 8px 13px;
    font-size: 12.5px;
  }
  .contrast-table th:nth-child(3),
  .contrast-table td:nth-child(3) {
    display: none;
  }
}
