/* ─── TOKENS ────────────────────────────────────────────────── */
:root {
  --bg: #FAF7F2;
  --bg-alt: #F0EBE3;
  --fg: #1A1A1A;
  --fg-muted: #6B6560;
  --amber: #F59E0B;
  --amber-light: #FEF3C7;
  --teal: #0F4C5C;
  --teal-mid: #1B6B7A;
  --teal-light: #E0F4F6;
  --white: #FFFFFF;
  --border: rgba(26,26,26,0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-light);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ─── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(250,247,242,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--fg); }
.brand-icon { display: flex; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--fg-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 120px 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-light); color: var(--teal); font-size: 0.82rem; font-weight: 500; padding: 6px 14px; border-radius: 99px; margin-bottom: 24px; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-headline em { font-style: italic; color: var(--amber); }
.hero-sub { font-size: 1.1rem; color: var(--fg-muted); line-height: 1.75; max-width: 480px; margin-bottom: 40px; }
.hero-urgency { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--fg-muted); margin-top: 32px; }

/* Upload zone */
.hero-upload-demo { display: flex; flex-direction: column; gap: 20px; }
.upload-zone {
  background: var(--white);
  border: 2px dashed rgba(26,26,26,0.12);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 440px;
}
.upload-icon { color: var(--amber); margin-bottom: 4px; }
.upload-label { font-weight: 600; font-size: 0.95rem; color: var(--fg); }
.upload-hint { font-size: 0.8rem; color: var(--fg-muted); }
.outputs-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.output-chip { display: flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 99px; font-size: 0.8rem; font-weight: 500; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; }
.chip-dot.amber { background: var(--amber); }
.chip-dot.teal { background: var(--teal); }
.summary-chip { background: #FEF9EC; color: #92400E; }
.flashcard-chip { background: var(--teal-light); color: var(--teal); }
.quiz-chip { background: #FEF9EC; color: #92400E; }
.plan-chip { background: var(--teal-light); color: var(--teal); }
.eli12-chip { background: var(--bg-alt); color: var(--fg-muted); }

/* Hero visual */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.study-machine { display: flex; align-items: center; gap: 20px; }
.machine-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 2px 16px rgba(26,26,26,0.06);
}
.card-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 6px; }
.card-mini-text { font-size: 0.78rem; color: var(--fg-muted); }
.input-card { min-width: 160px; }
.note-line { height: 8px; background: var(--bg-alt); border-radius: 4px; margin-bottom: 5px; }
.note-line.short { width: 60%; }
.note-line.medium { width: 75%; }
.card-icon { position: absolute; top: 12px; right: 12px; }
.machine-card { position: relative; }
.output-stack { display: flex; flex-direction: column; gap: 8px; }
.machine-brain { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ai-core { position: relative; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.ai-ring { position: absolute; border-radius: 50%; border: 2px solid var(--amber); }
.ring-1 { width: 56px; height: 56px; opacity: 0.4; animation: spin 4s linear infinite; }
.ring-2 { width: 40px; height: 40px; opacity: 0.7; animation: spin 2.5s linear infinite reverse; }
.ai-center { position: relative; z-index: 1; }
.ai-label { font-size: 0.68rem; color: var(--fg-muted); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.machine-arrow { color: var(--fg-muted); }

/* ─── HOW IT WORKS ───────────────────────────────────────────── */
.how-it-works { padding: 100px 48px; background: var(--white); }
.how-header { text-align: center; margin-bottom: 64px; }
.steps-grid { display: flex; align-items: flex-start; gap: 0; max-width: 900px; margin: 0 auto; }
.step-card { flex: 1; padding: 32px 24px; }
.step-connector { display: flex; align-items: center; padding-top: 40px; }
.step-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--amber-light); line-height: 1; margin-bottom: 16px; }
.step-icon { width: 48px; height: 48px; background: var(--amber-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--amber); margin-bottom: 16px; }
.step-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; color: var(--fg); }
.step-body { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.65; }

/* ─── FEATURES ───────────────────────────────────────────────── */
.features-section { padding: 100px 48px; background: var(--bg); }
.features-header { text-align: center; margin-bottom: 64px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: 0 8px 32px rgba(26,26,26,0.08); transform: translateY(-2px); }
.feature-primary { border-left: 3px solid var(--amber); }
.feature-progress { border-left: 3px solid var(--teal); }
.feature-icon-wrap { width: 48px; height: 48px; background: var(--bg-alt); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; color: var(--fg); }
.feature-desc { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.65; }

/* ─── STUDY PLAN ─────────────────────────────────────────────── */
.studyplan-section { padding: 100px 48px; background: var(--teal); color: var(--white); }
.studyplan-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.studyplan-text .section-tag { background: rgba(255,255,255,0.15); color: var(--white); }
.studyplan-text .section-title { color: var(--white); }
.studyplan-text .section-sub { color: rgba(255,255,255,0.75); }
.plan-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.plan-step { display: flex; align-items: flex-start; gap: 16px; }
.plan-step-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); flex-shrink: 0; margin-top: 4px; }
.plan-step { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.6; }

/* Timeline */
.timeline { background: rgba(255,255,255,0.07); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.12); }
.tl-row { display: grid; grid-template-columns: 40px 1fr 1fr; padding: 10px 16px; font-size: 0.78rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.tl-row:last-child { border-bottom: none; }
.tl-header { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); }
.tl-day { font-weight: 700; color: var(--amber); }
.tl-mat { color: rgba(255,255,255,0.7); }
.tl-act { color: rgba(255,255,255,0.85); }
.tl-done { opacity: 0.5; }
.tl-today { background: rgba(245,158,11,0.15); }
.tl-today .tl-day { color: var(--amber); }
.tl-today .tl-act { color: var(--amber); font-weight: 600; }
.tl-pending { opacity: 0.5; }

/* ─── PRICING ─────────────────────────────────────────────────── */
.pricing-section { padding: 100px 48px; background: var(--white); }
.pricing-header { text-align: center; margin-bottom: 56px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 780px; margin: 0 auto 32px; }
.price-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; position: relative; }
.price-card-featured { background: var(--teal); color: var(--white); border-color: var(--teal); }
.price-card-featured .price-sub { color: rgba(255,255,255,0.7); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--amber); color: var(--white); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 14px; border-radius: 99px; }
.price-tier-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); margin-bottom: 12px; }
.price-card-featured .price-tier-label { color: rgba(255,255,255,0.6); }
.price-amount { display: flex; align-items: baseline; gap: 2px; margin-bottom: 8px; }
.price-dollar { font-size: 1.5rem; font-weight: 600; color: var(--amber); }
.price-card-featured .price-dollar { color: var(--amber); }
.price-num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; }
.price-period { font-size: 0.9rem; color: var(--fg-muted); margin-left: 4px; }
.price-card-featured .price-period { color: rgba(255,255,255,0.6); }
.price-desc { font-size: 0.85rem; color: var(--fg-muted); margin-bottom: 24px; }
.price-card-featured .price-desc { color: rgba(255,255,255,0.7); }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pf-yes { font-size: 0.88rem; color: var(--fg); display: flex; align-items: center; gap: 8px; }
.pf-yes::before { content: '✓'; color: var(--teal); font-weight: 700; }
.pf-no { font-size: 0.88rem; color: var(--fg-muted); display: flex; align-items: center; gap: 8px; }
.pf-no::before { content: '—'; color: var(--fg-muted); }
.price-card-featured .pf-yes { color: var(--white); }
.price-card-featured .pf-no { color: rgba(255,255,255,0.4); }
.pricing-note { text-align: center; font-size: 0.82rem; color: var(--fg-muted); display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ─── CLOSING ────────────────────────────────────────────────── */
.closing-section { padding: 100px 48px; background: var(--bg); }
.closing-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.closing-headline { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; line-height: 1.3; color: var(--fg); margin-bottom: 28px; }
.closing-headline em { font-style: italic; color: var(--teal); }
.closing-sub { font-size: 1rem; color: var(--fg-muted); line-height: 1.8; margin-bottom: 48px; max-width: 560px; margin-left: auto; margin-right: auto; }
.closing-coda p { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--amber); }

/* ─── FOOTER ──────────────────────────────────────────────────── */
.footer { padding: 40px 48px; background: var(--teal); color: var(--white); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-sub { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 100px 24px 60px; gap: 48px; }
  .hero-visual { display: none; }
  .how-it-works, .features-section, .studyplan-section, .pricing-section, .closing-section { padding: 64px 24px; }
  .steps-grid { flex-direction: column; gap: 0; }
  .step-connector { transform: rotate(90deg); margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .studyplan-inner { grid-template-columns: 1fr; gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr; }
}