/* ── emmcat landing — palette matches the app theme (src/theme/colors.ts) ── */
:root {
  --background: #f4f6f2;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #23251f;
  --muted: #697067;
  --border: #d9e0d5;
  --border-strong: #aeb8a8;
  --accent: #557e65;       /* sage green */
  --accent-dark: #355642;
  --accent-light: #e4eee6;
  --correct-soft: #e3f0e6;
  --navy: #42584b;
  --navy-soft: #e9f0eb;
  --gold: #a87732;
  --gold-light: #f2e5c9;
  --clay: #a45d49;
  --clay-light: #f0dcd5;

  --r-card: 20px;
  --r-control: 12px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(31, 36, 28, 0.04), 0 6px 16px rgba(31, 36, 28, 0.06);
  --shadow-md: 0 12px 32px rgba(31, 36, 28, 0.10);
  --shadow-lg: 0 30px 70px rgba(31, 36, 28, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
h1 em { font-style: italic; color: var(--accent); }
a { color: inherit; text-decoration: none; }
section { position: relative; }

/* ── Nav ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 22px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand-name { font-family: "Fraunces", serif; font-weight: 700; font-size: 22px; }
.nav-links { display: flex; gap: 30px; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--accent-dark); }

/* ── Hero ── */
.hero {
  max-width: 1120px; margin: 0 auto; padding: 56px 24px 72px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
/* soft radial wash behind hero */
.hero::before {
  content: ""; position: absolute; inset: -120px -200px auto auto; z-index: -1;
  width: 620px; height: 620px; right: -160px; top: -160px;
  background: radial-gradient(circle at center, var(--accent-light) 0%, rgba(228,238,230,0) 68%);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--accent-dark); background: var(--accent-light);
  padding: 7px 14px 7px 12px; border-radius: var(--r-pill); margin-bottom: 22px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(85,126,101,0.18); }

.hero h1 { font-size: clamp(38px, 6vw, 62px); margin-bottom: 20px; }
.lede { font-size: 18px; color: var(--muted); max-width: 30em; margin-bottom: 30px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--background);
  padding: 11px 18px; border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.badge-link:hover .store-badge { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-glyph { width: 24px; height: 24px; fill: currentColor; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-text small { font-size: 10px; opacity: 0.8; }
.store-text strong { font-size: 16px; font-weight: 600; }
.cta-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ── Hero art: mock phone + floating cards ── */
.hero-art { position: relative; display: flex; justify-content: center; }
.phone {
  width: 300px; background: var(--surface); border-radius: 40px; padding: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.phone-screen {
  background: var(--background); border-radius: 28px; padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.screen-top { display: flex; align-items: center; justify-content: space-between; }
.screen-brand { font-family: "Fraunces", serif; font-weight: 700; font-size: 18px; }
.streak-chip { font-size: 13px; font-weight: 600; color: var(--gold); background: var(--gold-light); padding: 4px 10px; border-radius: var(--r-pill); }
.screen-progress { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 500; }
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.dot.done { background: var(--accent); }

.q-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; box-shadow: var(--shadow-sm); }
.q-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--accent-dark); background: var(--accent-light); padding: 3px 10px; border-radius: var(--r-pill); margin-bottom: 10px; }
.q-text { font-size: 14px; font-weight: 500; margin-bottom: 14px; line-height: 1.4; }
.q-opt { font-size: 13px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-control); margin-bottom: 8px; color: var(--text); background: var(--surface); }
.q-opt.correct { border-color: var(--accent); background: var(--correct-soft); font-weight: 600; color: var(--accent-dark); }
.q-submit { text-align: center; font-size: 14px; font-weight: 600; color: var(--background); background: var(--accent); padding: 12px; border-radius: var(--r-control); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 12px 14px; box-shadow: var(--shadow-md); animation: float 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 13px; }
.float-card small { display: block; font-size: 11px; color: var(--muted); }
.fc-icon { font-size: 20px; }
.float-streak { top: 30px; left: -28px; }
.float-review { bottom: 48px; right: -34px; animation-delay: 1.4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ── Stat band ── */
.stat-band {
  max-width: 760px; margin: 0 auto 8px; padding: 24px;
  display: flex; align-items: center; justify-content: center; gap: 28px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat strong { display: block; font-family: "Fraunces", serif; font-size: 34px; color: var(--accent); }
.stat span { font-size: 13px; color: var(--muted); }
.stat-divider { width: 1px; height: 38px; background: var(--border); }

/* ── Section heads ── */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }

/* ── Features ── */
.features { max-width: 1120px; margin: 0 auto; padding: 80px 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; font-size: 24px; margin-bottom: 18px;
}
.icon-sage { background: var(--accent-light); }
.icon-gold { background: var(--gold-light); }
.icon-clay { background: var(--clay-light); }
.feature-card h3 { font-size: 21px; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--muted); }

/* ── Subjects ── */
.subjects { max-width: 880px; margin: 0 auto; padding: 24px 24px 90px; text-align: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  font-size: 15px; font-weight: 500; color: var(--navy);
  background: var(--surface); border: 1px solid var(--border);
  padding: 10px 20px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-dark); }

/* ── CTA band ── */
.cta-band {
  max-width: 1120px; margin: 0 auto; padding: 80px 24px;
  background: var(--accent-dark); color: var(--background);
  border-radius: 32px; text-align: center;
  background-image: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.06), transparent 50%);
}
.cta-mascot { width: 84px; height: 84px; border-radius: 22px; margin-bottom: 22px; box-shadow: var(--shadow-md); }
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.cta-band p { font-size: 18px; color: rgba(244,246,242,0.78); margin-bottom: 30px; }
.btn-primary {
  display: inline-block; font-weight: 600; font-size: 16px;
  background: var(--background); color: var(--accent-dark);
  padding: 15px 32px; border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Footer ── */
.footer {
  max-width: 1120px; margin: 0 auto; padding: 36px 24px 56px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: "Fraunces", serif; font-weight: 700; font-size: 18px; }
.footer-mark { width: 28px; height: 28px; border-radius: 8px; }
.footer-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.footer-meta a:hover { color: var(--accent-dark); }
.footer-dot { opacity: 0.5; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; gap: 64px; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .float-streak { left: 0; }
  .float-review { right: 0; }
}
@media (max-width: 480px) {
  .phone { width: 270px; }
  .float-card { display: none; }
  .cta-band { border-radius: 24px; }
}
