/* ============================================================
   ReelLearn — shared design system
   Tokens, base, components. Used by index, pricing, signup.
   ============================================================ */

:root {
  /* Brand */
  --accent: #2563EB;
  --accent-dark: #1D4ED8;
  --accent-light: #DBEAFE;
  --accent-soft: rgba(37, 99, 235, 0.08);

  /* Surfaces */
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #0F1117;

  /* Text — all pairs meet WCAG AA on their intended surface */
  --text: #0F1117;
  --text-muted: #4B5563;
  --text-subtle: #6B7280;
  --on-ink: #FFFFFF;
  --on-ink-muted: rgba(255, 255, 255, 0.78);
  --on-ink-subtle: rgba(255, 255, 255, 0.62);

  /* Semantic */
  --success: #15803D;
  --success-bg: #DCFCE7;
  --error: #B91C1C;
  --error-bg: #FEF2F2;
  --error-border: #FECACA;
  --border: #E5E9F0;

  /* Shape & elevation */
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 17, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 17, 23, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 17, 23, 0.14);
  --shadow-accent: 0 4px 16px rgba(37, 99, 235, 0.30);

  /* Type */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Layout */
  --nav-height: 72px;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

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

img, svg { display: block; }

a { cursor: pointer; }
button { cursor: pointer; font-family: var(--font-sans); }

/* Visible keyboard focus everywhere (replaces removed outlines) */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Accessibility helpers ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  background: var(--ink);
  color: var(--on-ink);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Icon defaults — one family (Lucide), one stroke weight */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}
.icon-lg { width: 24px; height: 24px; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 247, 250, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.logo span { color: var(--accent); }

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 700; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 100px;
  font-weight: 600 !important;
  margin-left: 12px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--accent-soft); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 16px;
    padding: 14px 12px;
  }
  .nav-cta { margin-left: 0; text-align: center; margin-top: 8px; }
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}
.btn-secondary:hover { color: var(--text); background: var(--accent-soft); }

/* ---------- Sections ---------- */

main { display: block; }

.section {
  padding: 100px 48px;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section--surface { background: var(--surface); }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

h1, h2 {
  font-family: var(--font-serif);
  letter-spacing: -0.5px;
  color: var(--text);
  font-weight: 600;
}
h1 em, h2 em { font-style: italic; color: var(--accent); }

.section h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  max-width: 600px;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 56px;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  animation: fadeUp 0.6s ease both;
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.05;
  max-width: 820px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 48px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ---------- Phone mockup ---------- */

.hero-visual {
  margin-top: 72px;
  animation: fadeUp 0.8s 0.4s ease both;
  position: relative;
}
.hero-visual-wrap { position: relative; display: inline-block; }

.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--ink);
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
  margin: 0 auto;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0F1117;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 100px;
  height: 30px;
  background: var(--ink);
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.phone-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
  overflow: hidden;
}

.reel-card {
  background: linear-gradient(135deg, #1a2436, #0d1b2e);
  border-radius: 16px;
  padding: 16px;
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.reel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.7));
}

/* sliver of the next lesson peeking in, suggesting a feed */
.reel-card--next {
  flex: 0 0 44px;
  justify-content: center;
  padding: 10px 16px;
}
.reel-card--next .reel-title { margin: 0; font-size: 12px; opacity: 0.7; }

.reel-thumbnail {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-play {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.9;
}
.reel-play .icon { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 3px; }

.reel-info { position: relative; z-index: 1; }

.reel-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.3);
  color: #93B4F8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  margin-bottom: 6px;
}

.reel-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.reel-meta { color: rgba(255, 255, 255, 0.6); font-size: 12px; }

.reel-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  margin-top: 10px;
  overflow: hidden;
}
.reel-progress-bar {
  height: 100%;
  width: 40%;
  background: var(--accent);
  border-radius: 100px;
}

.float-card {
  position: absolute;
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-align: left;
}
.float-card-1 { left: -120px; top: 80px; animation: float 3s ease-in-out infinite; }
.float-card-2 { right: -110px; top: 140px; animation: float 3s 1s ease-in-out infinite; }
.float-card-3 { left: -100px; bottom: 120px; animation: float 3s 0.5s ease-in-out infinite; }

.float-label { color: var(--text-muted); font-size: 11px; margin-bottom: 2px; }
.float-value { color: var(--text); font-size: 18px; font-weight: 700; }
.float-value .unit { font-size: 13px; color: var(--text-subtle); font-weight: 500; }
.float-value.accent { color: var(--accent); }

/* ---------- Stats band ---------- */

.stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
  list-style: none;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--text);
  letter-spacing: -0.5px;
}
.stat-number span { color: var(--accent); }

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Problem section ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.split-text { padding-right: 40px; }
.split-text .section-sub { margin-bottom: 0; }

.problem-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.problem-icon.red { background: #FEF2F2; color: #B91C1C; }
.problem-icon.yellow { background: #FFFBEB; color: #A16207; }
.problem-icon.purple { background: #F5F3FF; color: #6D28D9; }

.problem-card h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 4px;
  color: var(--text);
}
.problem-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 16px;
  list-style: none;
  counter-reset: step;
}

.step { position: relative; }

.step-num {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.step-arrow {
  position: absolute;
  right: -26px;
  top: 12px;
  color: var(--text-subtle);
}

.step h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
  color: var(--text);
}
.step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Personas ---------- */

.personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.persona-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.persona-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.persona-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.persona-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text);
}

.persona-card > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.persona-wins {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.persona-wins li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.persona-wins .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
  margin-top: 2px;
}

/* ---------- Pricing teaser (homepage) ---------- */

.plans-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.plan-teaser-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.plan-teaser-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.plan-teaser-card.featured { border: 2px solid var(--accent); }

.plan-teaser-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-teaser-name .pill {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.plan-teaser-price {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--text);
  margin-bottom: 4px;
}
.plan-teaser-price .period {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
}

.plan-teaser-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.teaser-link:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------- Dark CTA ---------- */

.cta-section {
  background: var(--ink);
  padding: 96px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--on-ink);
  max-width: 600px;
  margin: 0 auto 16px;
}
.cta-section h2 em { color: #6D9BF5; }

.cta-section > p {
  color: var(--on-ink-muted);
  font-size: 17px;
  margin: 0 auto 40px;
  max-width: 440px;
  line-height: 1.6;
  position: relative;
}

.cta-note {
  color: var(--on-ink-subtle) !important;
  font-size: 13px !important;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

.cta-actions { position: relative; z-index: 1; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 48px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--on-ink);
  text-decoration: none;
}
.footer-logo span { color: #6D9BF5; }

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--on-ink-muted);
  font-size: 14px;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--on-ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--on-ink-subtle); font-size: 13px; }

/* ---------- Pricing page ---------- */

.pricing-hero {
  padding: calc(var(--nav-height) + 88px) 24px 80px;
  text-align: center;
  background: linear-gradient(to bottom, #EBF4FF 0%, var(--bg) 100%);
}
.pricing-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin-bottom: 16px;
}
.pricing-hero .hero-sub {
  font-size: 18px;
  max-width: 480px;
  margin: 0 auto 12px;
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.toggle-label { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.toggle-label.active { color: var(--text); font-weight: 700; }

.toggle-switch {
  position: relative;
  width: 52px;
  height: 30px;
  border: none;
  border-radius: 100px;
  background: #94A3B8;
  transition: background 0.2s;
  padding: 0;
}
.toggle-switch[aria-checked="true"] { background: var(--accent); }
.toggle-switch::before {
  content: '';
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.toggle-switch[aria-checked="true"]::before { transform: translateX(22px); }

.save-badge {
  background: var(--success-bg);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.pricing-wrap { max-width: 1060px; margin: 0 auto; padding: 64px 24px 100px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  transition: box-shadow 0.2s;
}
.plan-card:hover { box-shadow: var(--shadow-md); }
.plan-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.plan-price {
  font-family: var(--font-serif);
  font-size: 48px;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.plan-price sup {
  font-size: 24px;
  letter-spacing: -0.5px;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}
.plan-price .period {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.plan-annual {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 20px;
}
.plan-annual strong { color: var(--success); }

.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.plan-limits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  list-style: none;
}
.limit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.limit-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.limit-icon .icon { width: 14px; height: 14px; }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  list-style: none;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.feature-item .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--accent);
}
.feature-item.muted { color: var(--text-subtle); }
.feature-item.muted .icon { color: var(--text-subtle); }

.plan-cta {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
}
.plan-cta.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.plan-cta.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.plan-cta.outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.plan-cta.outline:hover { border-color: var(--accent); color: var(--accent); }

/* Comparison table */

.compare-wrap { max-width: 860px; margin: 0 auto; padding: 0 24px 100px; }
.compare-wrap h2 {
  font-size: 32px;
  letter-spacing: -0.8px;
  text-align: center;
  margin: 0 auto 40px;
}

.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}
.compare-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.compare-table th:not(:first-child) { text-align: center; }
.compare-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .section-row th {
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 10px 20px;
}
.cell-check { color: var(--accent-dark); display: inline-flex; }
.cell-cross { color: var(--text-subtle); display: inline-flex; }
.col-featured { background: rgba(37, 99, 235, 0.04); }

/* FAQ */

.faq-wrap { max-width: 680px; margin: 0 auto; padding: 0 24px 100px; }
.faq-wrap h2 {
  font-size: 32px;
  letter-spacing: -0.8px;
  text-align: center;
  margin: 0 auto 40px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 20px 32px 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-subtle);
  border-bottom: 2px solid var(--text-subtle);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item summary:hover { color: var(--accent-dark); }
.faq-a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 0 20px;
}

/* ---------- Signup page ---------- */

.signup-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.signup-nav {
  position: static;
  height: auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.nav-back {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--text); }

.signup-page {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.left-panel {
  background: var(--ink);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.left-panel::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.left-panel h1 {
  font-size: 36px;
  color: var(--on-ink);
  line-height: 1.1;
  margin-bottom: 12px;
  position: relative;
}
.left-panel h1 em { color: #6D9BF5; }
.left-panel > p {
  color: var(--on-ink-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 40px;
  position: relative;
}

.trial-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  list-style: none;
}
.trial-feature { display: flex; align-items: flex-start; gap: 14px; }
.trial-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(37, 99, 235, 0.18);
  color: #93B4F8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trial-feature-icon .icon { width: 18px; height: 18px; }
.trial-feature-text h2 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--on-ink);
  margin-bottom: 2px;
}
.trial-feature-text p { font-size: 13px; color: var(--on-ink-muted); margin: 0; }

.right-panel {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header { margin-bottom: 32px; }
.form-header h1 {
  font-size: 28px;
  margin-bottom: 6px;
}
.form-header p { font-size: 14px; color: var(--text-muted); }
.form-header a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.form-header a:hover { text-decoration: underline; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field label .optional { font-weight: 400; color: var(--text-subtle); }

.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.field input.error { border-color: var(--error); }
.field input.error:focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15); }

.field-hint {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 5px;
}

.field-error {
  font-size: 12px;
  font-weight: 600;
  color: var(--error);
  margin-top: 5px;
  display: none;
  align-items: center;
  gap: 5px;
}
.field-error.visible { display: flex; }
.field-error .icon { width: 13px; height: 13px; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 64px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  padding: 10px 12px;
  border-radius: 8px;
}
.password-toggle:hover { color: var(--text); background: var(--accent-soft); }

.submit-btn {
  width: 100%;
  min-height: 52px;
  padding: 15px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  box-shadow: var(--shadow-accent);
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.submit-btn:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.submit-btn.loading .spinner { display: inline-block; }

.form-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
  margin-top: 12px;
  display: none;
}
.form-error.visible { display: block; }

.form-note {
  font-size: 12px;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}
.form-note a { color: var(--text-muted); font-weight: 600; }

/* Success state */

.success-panel { display: none; text-align: center; }
.success-panel.visible { display: block; }

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-icon .icon { width: 30px; height: 30px; }

.success-panel h1 { font-size: 28px; margin-bottom: 12px; }
.success-panel > p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.invite-code-box {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  text-align: left;
}
.invite-code-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.invite-code {
  font-size: 28px;
  font-weight: 700;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--accent-dark);
  letter-spacing: 3px;
}
.invite-code-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.testflight-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-accent);
  transition: background 0.2s;
}
.testflight-btn:hover { background: var(--accent-dark); }

.success-signin-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ---------- Animations ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@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;
  }
  .spinner { animation-duration: 0.7s !important; animation-iteration-count: infinite !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .float-card-1 { left: -60px; }
  .float-card-2 { right: -50px; }
  .float-card-3 { left: -40px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 24px; }

  .hero { padding: calc(var(--nav-height) + 32px) 20px 64px; }

  .split { grid-template-columns: 1fr; }
  .split-text { padding-right: 0; }
  .split-text .section-sub { margin-bottom: 40px; }

  .personas { grid-template-columns: 1fr; }
  .plans-teaser { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .step-arrow { display: none; }

  .stats { gap: 32px; padding: 32px 24px; }
  .float-card { display: none; }

  .cta-section { padding: 72px 24px; }

  .site-footer { padding: 40px 24px 28px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card.featured { order: -1; }

  .signup-nav { padding: 16px 20px; }
  .signup-page { grid-template-columns: 1fr; }
  .left-panel { padding: 40px 24px; }
  .right-panel { padding: 40px 24px 56px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn-primary { width: 100%; }
}
