/* Slidezilla landing v3 — tokens mirror the app's src/index.css */
:root {
  --green: #06D6A0;
  --green-dark: #04A97D;
  --green-soft: #EAFBF5;
  --ink: #14181F;
  --muted: #667085;
  --bg: #F6F8FB;
  --surface: #ffffff;
  --border: #E5E9F0;
  --gold: #FFB020;
  --radius: 16px;
  --shadow-lg: 0 30px 70px rgba(20, 24, 31, 0.16);
  --shadow: 0 14px 36px rgba(20, 24, 31, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand-word, .beat-step { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; }
img { display: block; max-width: 100%; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Ambient glows */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; pointer-events: none; }
.glow-hero { width: 720px; height: 520px; left: 50%; top: 240px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(6,214,160,0.35), rgba(6,214,160,0)); }
.glow-spot { width: 640px; height: 460px; right: -140px; top: 60px; background: radial-gradient(closest-side, rgba(255,176,32,0.22), rgba(255,176,32,0)); }

/* ── Nav ─────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246,248,251,0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-word { font-size: 22px; font-weight: 700; }
.brand-word em { font-style: normal; color: var(--green-dark); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }

/* ── The iPad bezel (reused everywhere) ───────────── */
.pad { position: relative; background: linear-gradient(145deg, #2a2f3a, #171b23); border-radius: 34px; padding: 16px; box-shadow: var(--shadow-lg), inset 0 1px 1px rgba(255,255,255,0.14); }
.pad::before { /* camera */ content: ''; position: absolute; top: 50%; left: 6px; width: 5px; height: 5px; border-radius: 50%; background: #0b0d11; box-shadow: 0 0 0 1.5px #3a4150; transform: translateY(-50%); }
.pad.landscape { aspect-ratio: 1194 / 834; }
.pad-screen { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: #F6F8FB; }
.pad-screen img,
.pad-screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pad.sm { border-radius: 24px; padding: 10px; }
.pad.sm::before { left: 4px; width: 4px; height: 4px; }
.pad.sm .pad-screen { border-radius: 15px; }

/* ── Hero ─────────────────────────────────────────── */
.hero { position: relative; padding: 84px 0 40px; background: linear-gradient(180deg, var(--green-soft) 0%, var(--bg) 70%); overflow: hidden; }
.hero-head { text-align: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green-dark); background: var(--surface); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.03; font-weight: 700; margin-bottom: 18px; }
.hl { color: var(--green-dark); }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin: 0 auto 26px; max-width: 560px; }
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.store-chip { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 12px; padding: 9px 16px; opacity: 0.92; }
.store-chip small { display: block; font-size: 10px; opacity: 0.75; line-height: 1.2; }
.store-chip strong { font-size: 15px; line-height: 1.2; }

.hero-stage { position: relative; margin-top: 54px; z-index: 1; }
.hero-pad { max-width: 920px; margin: 0 auto; transform: perspective(1600px) rotateX(6deg); transform-origin: 50% 100%; }
@media (prefers-reduced-motion: reduce) { .hero-pad { transform: none; } }
.float-chip { position: absolute; background: var(--surface); border: 1px solid var(--border); color: var(--ink); font-size: 13.5px; font-weight: 600; border-radius: 999px; padding: 9px 16px; box-shadow: var(--shadow); z-index: 2; }
.float-chip b { color: var(--green-dark); }
.float-chip i { font-style: normal; color: var(--green-dark); font-weight: 800; }
.chip-timer { top: -16px; left: 12%; }
.chip-mark { bottom: 18%; right: 6%; }
.chip-mark b { background: var(--ink); color: #fff; border-radius: 6px; padding: 1px 8px; font-family: 'Space Grotesk', sans-serif; font-size: 12px; margin-right: 2px; }
.chip-grade { top: 26%; left: 3%; font-size: 14px; }
.chip-grade b { font-size: 17px; }
.tablet-note { text-align: center; font-size: 13.5px; color: var(--muted); padding-top: 26px; padding-bottom: 34px; }

/* ── Boards strip ─────────────────────────────────── */
.boards-strip { padding: 34px 0 6px; text-align: center; }
.strip-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.boards-strip .exam-chips { margin-bottom: 0; }

/* ── Pinned scroll demo ───────────────────────────── */
.demo { padding: 90px 0 60px; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.demo-title { text-align: center; margin-bottom: 56px; }
.demo-title h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 8px; }
.demo-title p { color: var(--muted); font-size: 16.5px; }

.demo-grid { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: 56px; align-items: start; }
.demo-beats { display: flex; flex-direction: column; }
.beat { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.4s ease; padding-right: 8px; }
.beat.is-active { opacity: 1; }
.beat-step { font-size: 13px; font-weight: 700; color: var(--green-dark); letter-spacing: 0.16em; margin-bottom: 10px; }
.beat h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; margin-bottom: 12px; }
.beat p { color: var(--muted); font-size: 15.5px; max-width: 420px; }
.beat em { font-style: normal; color: var(--ink); font-weight: 600; }

.demo-sticky { position: sticky; top: calc(50vh - 240px); padding: 8px 0; }
.demo-screens .demo-img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease; }
.demo-screens .demo-img.is-active { opacity: 1; position: relative; }
.demo-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.demo-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d6dde6; transition: all 0.3s ease; }
.demo-dots i.is-active { background: var(--green-dark); width: 22px; border-radius: 999px; }

/* ── Annotated spotlight ──────────────────────────── */
.spotlight { position: relative; padding: 96px 0; overflow: hidden; }
.spot-stage { position: relative; max-width: 960px; margin: 0 auto; }
.spot-pad { transform: rotate(-0.6deg); }
.callout { position: absolute; display: flex; align-items: center; gap: 10px; z-index: 2; }
.co-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(6,214,160,0.25); flex: none; }
.co-label { background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow); max-width: 250px; line-height: 1.45; }
.co-label b { color: var(--green); }
.co-1 { top: 14%; left: -14px; }
.co-2 { top: 46%; right: -18px; flex-direction: row-reverse; }
.co-3 { bottom: 9%; left: 4%; }
@media (max-width: 900px) {
  .callout { position: static; margin-top: 10px; }
  .spot-stage { display: flex; flex-direction: column; }
  .co-2 { flex-direction: row; }
}

@media (prefers-reduced-motion: no-preference) {
  .spot-stage.visible .callout { opacity: 0; animation: co-pop 0.6s ease forwards; }
  .spot-stage.visible .co-1 { animation-delay: 0.5s; }
  .spot-stage.visible .co-2 { animation-delay: 1.5s; }
  .spot-stage.visible .co-3 { animation-delay: 2.5s; }
  .spot-stage.visible .co-dot { position: relative; }
  .spot-stage.visible .co-dot::after {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    border: 2px solid var(--green); opacity: 0;
    animation: co-ping 2.4s ease-out infinite; animation-delay: inherit;
  }
}
@keyframes co-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes co-ping { 0% { transform: scale(0.6); opacity: 0.9; } 70% { transform: scale(2.1); opacity: 0; } 100% { opacity: 0; } }

/* ── Stats band ───────────────────────────────────── */
.stats { background: var(--ink); color: #fff; padding: 52px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 28px; color: var(--green); }
.stat span { font-size: 13px; opacity: 0.75; }

/* ── Gallery ──────────────────────────────────────── */
.gallery { padding: 90px 0 70px; }
.gallery-track { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(24px, calc((100vw - 1160px) / 2 + 24px)) 26px; cursor: grab; scrollbar-width: thin; }
.gallery-track:active { cursor: grabbing; }
.gal-item { flex: 0 0 min(560px, 82vw); scroll-snap-align: center; }
.gal-item figcaption { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; font-weight: 500; }

/* ── Why tablet ───────────────────────────────────── */
.why-tablet { padding: 76px 0 88px; background: var(--surface); border-top: 1px solid var(--border); }
.why-tablet h2 { text-align: center; font-size: clamp(26px, 3vw, 36px); margin-bottom: 38px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.why { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; }
.why span { font-size: 30px; display: block; margin-bottom: 10px; }
.why b { font-family: 'Space Grotesk', sans-serif; font-size: 17px; }
.why p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ── Honesty ──────────────────────────────────────── */
.honesty { padding: 88px 0; text-align: center; }
.honesty h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.honesty p { max-width: 640px; margin: 0 auto 18px; color: var(--muted); font-size: 16px; }
.exam-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: 13.5px; }
.legal-note { font-size: 12.5px !important; }

/* ── CTA + footer ─────────────────────────────────── */
.cta { padding: 74px 0 86px; text-align: center; background: var(--green-soft); border-top: 1px solid var(--border); }
.cta h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta p { color: var(--muted); margin-bottom: 20px; }
.cta-button { display: inline-block; background: var(--green-dark); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 30px; border-radius: 12px; font-size: 17px; transition: background 0.15s ease; }
.cta-button:hover { background: var(--ink); }
.footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer p { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ── Legal pages (privacy.html / terms.html) ──────── */
.legal-page { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-page h1 { font-size: 32px; margin-bottom: 6px; }
.legal-page .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal-page h2 { font-size: 20px; margin: 28px 0 10px; }
.legal-page p, .legal-page li { font-size: 15px; color: #3a4150; margin-bottom: 10px; }
.legal-page ul { padding-left: 22px; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; gap: 8px; }
  .demo-sticky { position: static; order: -1; margin-bottom: 8px; }
  .beat { min-height: 0; padding: 34px 0; opacity: 1; }
  .demo-screens .demo-img { display: none; position: relative; opacity: 1; }
  .demo-screens .demo-img.is-active { display: block; }
  .chip-grade, .chip-mark { display: none; }
  .chip-timer { top: -14px; left: 6%; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .hero { padding: 52px 0 24px; }
  .hero-stage { margin-top: 36px; }
  .pad { padding: 10px; border-radius: 24px; }
  .pad-screen { border-radius: 15px; }
  .gal-item { flex-basis: 88vw; }
}
