/* LearnPiq marketing site
   Design tokens mirror the iOS app (docs/design.md):
   flat colors, face/side 3D depth, Montserrat everywhere, light only. */

:root {
  /* Course themes double as the brand palette */
  --orange: #FE7A3C;
  --orange-side: #D3561B;
  --blue: #179EFD;
  --blue-side: #177DC4;
  --green: #78BB4E;
  --green-side: #639B40;
  --pink: #FF6CC9;
  --pink-side: #C34896;
  --amber: #FFAD00;
  --amber-side: #CF9210;
  --gold: #FFD700;

  /* Neutrals */
  --ink: #333333;
  --muted: #9D9D9D;
  --line: #E5E5E5;
  --line-side: #B7B7B7;
  --locked-text: #A1A3A5;
  --bg: #FFFFFF;

  /* Spacing scale (4pt grid) */
  --xs: 8px;
  --sm: 12px;
  --md: 16px;
  --lg: 24px;
  --xl: 32px;
  --xxl: 48px;
  --xxxl: 64px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-btn: 14px;
  --r-lg: 16px;
  --r-xl: 24px;
  --pill: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--lg); }

section { padding: var(--xxxl) 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--sm);
}

.section-head { max-width: 640px; margin: 0 auto var(--xl); text-align: center; }
.section-head h2 { font-size: 40px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: var(--sm); }

/* ---------- 3D raised buttons (RaisedButtonStyle / PrimaryButton) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--xs);
  padding: 14px 24px;
  border-radius: var(--r-btn);
  font-size: 17px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .08s ease-in-out, box-shadow .08s ease-in-out;
  will-change: transform;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 0 var(--orange-side);
}

.btn-white {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 4px 0 var(--line);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 0 #1b1b1b;
}

.btn:active { transform: translateY(4px); box-shadow: 0 0 0 currentColor; }
.btn-primary:active { box-shadow: 0 0 0 var(--orange-side); }
.btn-white:active { box-shadow: 0 0 0 var(--line); }
.btn-dark:active { box-shadow: 0 0 0 #1b1b1b; }

.btn-lg { padding: 16px 32px; font-size: 18px; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--lg);
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }

.nav-links { display: flex; gap: var(--lg); margin-left: auto; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--ink); transition: color .15s; }
.nav-links a:hover { color: var(--orange); }
.nav .btn { padding: 10px 20px; font-size: 15px; }

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

.hero {
  position: relative;
  padding: var(--xxxl) 0 var(--xxl);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -200px -20% auto -20%;
  height: 620px;
  background: linear-gradient(180deg, rgba(254, 122, 60, .12), rgba(254, 122, 60, 0));
  border-radius: 0 0 50% 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--xxl);
  align-items: center;
}

.hero h1 { font-size: 60px; letter-spacing: -2px; }
.hero h1 .hl {
  color: #fff;
  background: var(--blue);
  border-radius: var(--r-md);
  padding: 0 10px;
  display: inline-block;
  transform: rotate(-1.5deg);
}
.hero .lede { font-size: 19px; color: var(--muted); margin-top: var(--lg); max-width: 30em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sm); margin-top: var(--xl); align-items: center; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: var(--sm); }

/* Badge row (XPBadge / GemsBadge / HeartIndicator / StreakCounter) */
.badge-row { display: flex; flex-wrap: wrap; gap: var(--sm); margin-top: var(--xl); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 14px;
}
.badge img { width: 18px; height: 18px; }
.badge-streak { background: rgba(255, 173, 0, .15); color: #C98A00; }
.badge-gems { background: rgba(23, 158, 253, .15); color: var(--blue-side); }
.badge-hearts { background: rgba(255, 108, 201, .15); color: var(--pink-side); }
.badge-xp { background: rgba(255, 215, 0, .15); color: #B89600; }

/* ---------- Phone mock (recreated home screen) ---------- */

.phone-stage { display: flex; justify-content: center; }

.phone {
  position: relative;
  width: 320px;
  padding: 10px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 46px;
  box-shadow: 0 8px 0 var(--line);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.phone-screen {
  position: relative;
  background: #fff;
  border-radius: 38px;
  height: 570px;
  overflow: hidden;
}

/* Scenes of the looping demo */
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity .32s ease, transform .32s ease;
}
.scene.on { opacity: 1; transform: none; }
.scene-center { justify-content: center; text-align: center; }
.mock-actions { margin-top: auto; padding-top: var(--sm); }

.mock-header {
  display: flex;
  align-items: center;
  gap: var(--xs);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: var(--md);
}
.mock-header img { width: 20px; height: 20px; }
.mock-stats { display: flex; gap: 14px; margin-left: auto; align-items: center; }
.mock-stat { display: flex; align-items: center; gap: 4px; }
.mock-stat img { width: 17px; height: 17px; }
.s-fire { color: var(--orange); }
.s-gem { color: var(--blue); }
.s-heart { color: var(--pink); }

.mock-banner {
  background: var(--green);
  box-shadow: 0 4px 0 var(--green-side);
  border-radius: var(--r-lg);
  padding: var(--md);
  color: #fff;
  margin-bottom: var(--xl);
}
.mock-banner h4 { font-size: 15px; line-height: 1.3; }
.mock-banner span { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .75); }

.mock-row { display: flex; align-items: center; gap: var(--sm); margin-bottom: 6px; }
.mock-row.indent { margin-left: 18px; }

.coin {
  flex: 0 0 auto;
  width: 66px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}
.coin-active { background: var(--green); box-shadow: 0 6px 0 var(--green-side); }
.coin-locked { background: var(--line); box-shadow: 0 6px 0 var(--line-side); color: var(--locked-text); }
.coin img { width: 46px; height: 46px; }

.bubble {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  background: #fff;
  flex: 1;
}
.bubble::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}
.bubble small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; margin-top: 2px; }
.bubble.dim { color: var(--muted); }

.dots { display: flex; gap: 5px; margin: 0 0 var(--md) 26px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; transition: background .3s ease; }
.dots.done i { background: var(--green); }

/* ---------- Demo: shared bits ---------- */

.mock-header { position: relative; }

.gem-pop {
  position: absolute;
  right: 46px;
  top: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  opacity: 0;
  pointer-events: none;
}
.gem-pop.go { animation: gemUp 1.5s ease forwards; }
@keyframes gemUp {
  0% { opacity: 0; transform: translateY(6px); }
  25% { opacity: 1; transform: translateY(-4px); }
  75% { opacity: 1; transform: translateY(-12px); }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* Node states driven by the script */
.coin { transition: transform .1s ease-in-out, box-shadow .1s ease-in-out, background .3s ease, color .3s ease; }
.coin.pressed { transform: translateY(6px); box-shadow: none !important; }
.coin-check { width: 26px; height: 26px; display: none; }
.coin.done img { display: none; }
.coin.done .coin-check { display: block; }
.coin.unlocked { background: var(--green); box-shadow: 0 6px 0 var(--green-side); color: #fff; }
.bubble.lit { color: var(--ink); }

.mock-topbar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.mock-progress { height: 6px; border-radius: var(--pill); background: rgba(254, 122, 60, .2); overflow: hidden; margin-bottom: var(--md); }
.mock-progress i { display: block; height: 100%; width: 8%; border-radius: var(--pill); background: var(--orange); transition: width 2.2s ease; }

.mock-btn {
  width: 100%;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border-radius: var(--r-md);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: default;
  transition: transform .1s ease-in-out, box-shadow .1s ease-in-out, opacity .25s ease;
  box-shadow: 0 3px 0 var(--orange-side);
}
.mock-btn svg { width: 15px; height: 15px; }
.mock-btn.is-off { opacity: .45; }
.mock-btn.pressed { transform: translateY(3px); box-shadow: none; }

/* ---------- Demo: lesson scene ---------- */

.line { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.line.in { opacity: 1; transform: none; }

.lesson-title { font-size: 16px; margin-bottom: var(--xs); }
.lesson-p { font-size: 12px; line-height: 1.5; color: #5a5a5a; margin-bottom: var(--sm); }

.lesson-figure {
  background: #F7F7F8;
  border-radius: var(--r-md);
  padding: var(--sm);
  margin-bottom: var(--sm);
  text-align: center;
}
.lesson-figure .bars { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 64px; }
.lesson-figure .bars span { width: 30px; border-radius: 6px 6px 2px 2px; display: block; }
.lesson-figure .bars span:nth-child(1) { background: var(--orange); }
.lesson-figure .bars span:nth-child(2) { background: var(--blue); }
.lesson-figure .bars span:nth-child(3) { background: var(--green); }
.lesson-figure small { display: block; margin-top: var(--xs); font-size: 10px; color: var(--muted); font-weight: 600; }

/* ---------- Demo: quiz scene ---------- */

.qc-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
}
.qc-label svg { width: 15px; height: 15px; }
.q-title { font-size: 14px; line-height: 1.35; margin-bottom: var(--sm); }

.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--xs);
  border: 1px solid rgba(157, 157, 157, .3);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin-bottom: var(--xs);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 500;
  color: #5a5a5a;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.opt i {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(157, 157, 157, .45);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.opt.picked { background: rgba(254, 122, 60, .08); border-color: var(--orange); color: var(--ink); }
.opt.picked i { border-color: var(--orange); background: var(--orange); box-shadow: inset 0 0 0 2px #fff; }
.opt.right { background: rgba(120, 187, 78, .08); border-color: var(--green); color: var(--ink); }
.opt.right i { display: none; }
.opt-mark { width: 18px; height: 18px; flex: 0 0 auto; display: none; }
.opt.right .opt-mark { display: block; }

.feedback {
  background: rgba(120, 187, 78, .08);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.34, 1.3, .64, 1);
}
.feedback.in { opacity: 1; transform: none; }
.feedback b { display: block; color: var(--green-side); font-size: 13px; margin-bottom: 2px; }
.feedback span { font-size: 11px; line-height: 1.4; color: #5a5a5a; }

/* ---------- Demo: result scene ---------- */

.res-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(254, 122, 60, .08);
  display: grid;
  place-items: center;
  margin: 0 auto var(--md);
  transform: scale(.5);
  opacity: 0;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
}
.res-circle svg { width: 46px; height: 46px; }
.res-title { font-size: 20px; margin-bottom: var(--md); opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.res-stats { display: flex; justify-content: center; gap: var(--lg); margin-bottom: var(--md); opacity: 0; transition: opacity .4s ease; }
.res-stats b { display: block; font-size: 19px; }
.res-stats small { font-size: 10px; color: var(--muted); font-weight: 600; }
.c-gold { color: #B89600; }
.c-green { color: var(--green-side); }
.c-blue { color: var(--blue); }
.stars { display: flex; justify-content: center; gap: var(--xs); }
.stars svg { width: 26px; height: 26px; transform: scale(0); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }

#sc-result.step1 .res-circle { transform: scale(1); opacity: 1; }
#sc-result.step2 .res-title { opacity: 1; transform: none; }
#sc-result.step3 .res-stats { opacity: 1; }
#sc-result.star1 .stars svg:nth-child(1),
#sc-result.star2 .stars svg:nth-child(2),
#sc-result.star3 .stars svg:nth-child(3) { transform: scale(1); }

/* ---------- Demo: fake touch cursor ---------- */

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(51, 51, 51, .12);
  border: 2px solid rgba(51, 51, 51, .28);
  opacity: 0;
  z-index: 6;
  pointer-events: none;
  transform: translate(calc(var(--cx, 0px) - 50%), calc(var(--cy, 0px) - 50%)) scale(1);
  transition: transform .6s cubic-bezier(.45, .05, .2, 1), opacity .3s ease;
}
.cursor.show { opacity: 1; }
.cursor.tap { transform: translate(calc(var(--cx, 0px) - 50%), calc(var(--cy, 0px) - 50%)) scale(.65); transition-duration: .12s; }
.cursor.tap::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(254, 122, 60, .55);
  animation: ripple .5s ease-out forwards;
}
@keyframes ripple {
  from { transform: scale(.7); opacity: .9; }
  to { transform: scale(1.7); opacity: 0; }
}

/* ---------- Topic marquee ---------- */

.marquee {
  padding: var(--xl) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: var(--sm); width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.chip {
  padding: 10px 20px;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  background: rgba(254, 122, 60, .08);
  color: var(--orange);
}
.chip:nth-child(3n+2) { background: rgba(23, 158, 253, .08); color: var(--blue-side); }
.chip:nth-child(3n+3) { background: rgba(120, 187, 78, .08); color: var(--green-side); }

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

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lg); }
.step { text-align: center; padding: 0 var(--xs); }
.step-coin {
  width: 72px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto var(--lg);
}
.step:nth-child(1) .step-coin { background: var(--orange); box-shadow: 0 6px 0 var(--orange-side); }
.step:nth-child(2) .step-coin { background: var(--blue); box-shadow: 0 6px 0 var(--blue-side); }
.step:nth-child(3) .step-coin { background: var(--green); box-shadow: 0 6px 0 var(--green-side); }
.step h3 { font-size: 20px; margin-bottom: var(--xs); }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Features ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--md); }
.feature {
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--lg);
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 4px 0 var(--line); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: var(--md);
  font-size: 22px;
}
.feature-icon img { width: 26px; height: 26px; }
.i-orange { background: rgba(254, 122, 60, .15); }
.i-blue { background: rgba(23, 158, 253, .15); }
.i-green { background: rgba(120, 187, 78, .15); }
.i-pink { background: rgba(255, 108, 201, .15); }
.i-amber { background: rgba(255, 173, 0, .15); }
.i-gold { background: rgba(255, 215, 0, .15); }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Screenshot gallery ---------- */

.shots { display: flex; gap: var(--md); overflow-x: auto; padding: var(--xs) var(--lg) var(--lg); scroll-snap-type: x mandatory; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--pill); }
.shot {
  flex: 0 0 260px;
  scroll-snap-align: center;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 2px solid var(--line);
}

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

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--lg); max-width: 860px; margin: 0 auto; }
.plan {
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--xl);
  background: #fff;
}
.plan-pro { border-color: var(--orange); box-shadow: 0 4px 0 var(--orange-side); position: relative; }
.plan-tag {
  position: absolute;
  top: -14px;
  right: var(--lg);
  background: var(--amber);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--pill);
  letter-spacing: .5px;
}
.plan h3 { font-size: 22px; }
.price { font-size: 44px; font-weight: 700; margin: var(--sm) 0 2px; letter-spacing: -1.5px; }
.price span { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-sub { color: var(--muted); font-size: 14px; margin-bottom: var(--lg); }
.plan ul { list-style: none; padding: 0; margin: 0 0 var(--lg); }
.plan li { display: flex; gap: 10px; font-size: 15px; padding: 7px 0; align-items: flex-start; }
.tick { color: var(--green); font-weight: 700; flex: 0 0 auto; }
.dash { color: var(--muted); font-weight: 700; flex: 0 0 auto; }
.plan li.off { color: var(--muted); }
.plan .btn { width: 100%; justify-content: center; }
.plan-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: var(--sm); }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--md) var(--lg);
  margin-bottom: var(--sm);
}
.faq details[open] { border-color: rgba(254, 122, 60, .35); background: rgba(254, 122, 60, .04); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--md);
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 24px; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--muted); font-size: 15px; margin-top: var(--sm); }

/* ---------- Final CTA ---------- */

.cta-band {
  background: linear-gradient(90deg, var(--orange), #FF9500);
  border-radius: var(--r-xl);
  padding: var(--xxl) var(--xl);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: 40px; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: var(--sm) auto var(--lg); max-width: 34em; }
.cta-deer { width: 96px; height: 96px; margin: 0 auto var(--md); animation: float 4s ease-in-out infinite; }

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

footer { border-top: 1px solid var(--line); padding: var(--xl) 0; }
.foot { display: flex; flex-wrap: wrap; gap: var(--md) var(--lg); align-items: center; }
.foot-links { display: flex; gap: var(--lg); margin-left: auto; font-size: 14px; font-weight: 600; }
.foot-links a:hover { color: var(--orange); }
.foot small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .phone, .cta-deer, .marquee-track { animation: none; }
  .cursor { display: none; }
  .line, .feedback { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--xl); }
  .hero h1 { font-size: 44px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .section-head h2, .cta-band h2 { font-size: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: var(--xxl) 0; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero .lede { font-size: 17px; }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .foot-links { margin-left: 0; flex-wrap: wrap; gap: var(--md); }
  .cta-band { padding: var(--xl) var(--lg); }
}
