/* ============================================================
   Sparkquest — Marketing landing
   Combines design tokens + marketing site styles.
   Apercu typeface (marketing-only).
   ============================================================ */

/* --- Apercu webfont (marketing-only) ----------------------- */
@font-face {
  font-family: 'Apercu';
  src: url('fonts/Apercu-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Apercu';
  src: url('fonts/Apercu-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Apercu';
  src: url('fonts/Apercu-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Apercu';
  src: url('fonts/Apercu-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens ------------------------------------------------ */
:root {
  --brand: 250 75% 55%;
  --brand-dark: 250 75% 35%;
  --brand-light: 250 75% 95%;

  --success: 156 100% 39%;
  --success-light: 156 100% 96%;
  --warning: 45 100% 50%;
  --warning-light: 45 100% 96%;
  --danger: 0 84% 60%;
  --info: 210 100% 50%;

  --bg: 0 0% 100%;
  --bg-secondary: 250 20% 98%;

  --text: 220 20% 15%;
  --text-muted: 220 10% 45%;

  --card-border: 220 15% 90%;

  --font-sans: 'Apercu', 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-brand: 'Apercu', var(--font-sans);

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 9999px;

  --shadow-card: 0 4px 20px -4px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 8px 28px -8px rgba(0, 0, 0, 0.10);
  --shadow-brand: 0 8px 24px -8px hsl(var(--brand) / 0.25);

  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset / base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: hsl(var(--bg-secondary));
  color: hsl(var(--text));
  font-family: 'Apercu', var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.mk-page {
  --brand-h: var(--brand);
  --brand-dark-h: var(--brand-dark);
  --brand-light-h: var(--brand-light);
  background: hsl(var(--bg-secondary));
  overflow: hidden;
}

/* ───── Top nav ───── */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 56px; max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 3;
}
.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark .name {
  font: 600 20px/1 'Apercu';
  letter-spacing: -0.01em;
  color: hsl(var(--text));
}
.nav-links { display: flex; gap: 28px; font: 500 15px/1 'Apercu'; color: hsl(var(--text)); }
.nav-links a { transition: color 200ms var(--ease-soft); }
.nav-links a:hover { color: hsl(var(--brand-dark)); }
.nav-cta {
  background: hsl(var(--text)); color: white;
  padding: 10px 18px; border-radius: 9999px;
  font: 600 14px/1 'Apercu';
  transition: background 200ms var(--ease-soft);
}
.nav-cta:hover { background: hsl(var(--brand-dark)); }

/* ───── Hero shared ───── */
.hero { position: relative; padding-bottom: 120px; isolation: isolate; }
.hero-illust { background: hsl(var(--bg-secondary)); }
.hero-blobs {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; opacity: 0.7;
  pointer-events: none;
}

.eyebrow {
  font: 600 12px/1 'Apercu';
  letter-spacing: 0.12em; text-transform: uppercase;
  color: hsl(var(--brand-dark));
  margin-bottom: 18px;
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 14px;
  font: 600 15px/1 'Apercu';
  cursor: pointer; border: 0;
  transition: all 200ms var(--ease-soft);
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: hsl(var(--brand)); color: white;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: hsl(var(--brand-dark)); }
.btn-ghost {
  color: hsl(var(--text));
  border: 1.5px solid hsl(var(--card-border));
  background: hsl(var(--bg));
}
.btn-ghost:hover {
  border-color: hsl(var(--brand) / 0.5);
  color: hsl(var(--brand-dark));
}
.btn.full { width: 100%; justify-content: center; }

/* ───── Hero A ───── */
.hero-a .hero-grid {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 56px 56px 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px; align-items: center;
}
.hero-h1 {
  font: 500 84px/1.05 'Apercu';
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: hsl(var(--text));
}
.hero-h1 em { font-style: italic; color: hsl(var(--brand-dark)); }
.hero-sub {
  font: 400 19px/1.55 'Apercu';
  color: hsl(var(--text-muted));
  max-width: 520px; margin: 0 0 32px;
}
.hero-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 28px;
  font: 500 13px/1 'Apercu';
  color: hsl(var(--text-muted));
  letter-spacing: 0.02em;
}
.hero-art {
  position: relative; min-height: 720px;
  display: flex; align-items: center; justify-content: center;
}
.hero-phone-wrap { position: relative; }

/* ───── Phone mock ───── */
.phone-mock {
  width: 320px; height: 660px;
  background: hsl(var(--bg));
  border-radius: 44px;
  border: 1px solid hsl(var(--card-border));
  box-shadow: 0 32px 80px -24px rgba(45, 30, 100, 0.28),
              0 0 0 6px hsl(var(--bg)) inset;
  position: relative; overflow: hidden;
  transform-origin: center;
}
.phone-mock .notch {
  position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 24px;
  background: black; border-radius: 14px; z-index: 5;
}
.phone-inner {
  padding: 56px 18px 20px;
  display: grid; gap: 14px;
  height: 100%; position: relative;
}
.phone-top { display: flex; align-items: center; gap: 10px; }
.phone-avatar {
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: hsl(var(--brand)); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 13px/1 'Apercu';
}
.phone-name { font: 600 13px/1.1 'Apercu'; }
.phone-date {
  font: 400 11px/1.1 'Apercu';
  color: hsl(var(--text-muted));
  margin-top: 2px;
}
.phone-balance {
  margin-left: auto;
  background: hsl(var(--brand)); color: white;
  padding: 7px 12px; border-radius: 9999px;
  font: 700 13px/1 'Apercu';
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-brand);
}
.phone-balance small {
  font-size: 10px; opacity: 0.85;
  margin-left: 3px; font-weight: 500;
}
.phone-greet { font: 500 22px/1.1 'Apercu'; letter-spacing: -0.01em; }
.phone-progress {
  background: hsl(var(--bg));
  border: 1px solid hsl(var(--card-border));
  border-radius: 18px;
  padding: 12px 14px;
}
.phone-progress .row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.phone-progress .row .l {
  font: 600 10px/1 'Apercu';
  letter-spacing: 0.08em; text-transform: uppercase;
  color: hsl(var(--text-muted));
}
.phone-progress .row .v {
  font: 700 14px/1 'Apercu';
  font-variant-numeric: tabular-nums;
}
.phone-progress .bar {
  height: 6px;
  background: hsl(var(--brand-light));
  border-radius: 9999px;
  overflow: hidden;
}
.phone-progress .bar > span {
  display: block; height: 100%;
  width: 60%;
  background: hsl(var(--brand));
  border-radius: 9999px;
}
.phone-eyebrow {
  font: 600 10px/1 'Apercu';
  letter-spacing: 0.08em; text-transform: uppercase;
  color: hsl(var(--text-muted));
  margin-top: 4px;
}
.phone-tasks { display: grid; gap: 7px; }
.phone-tasks .t {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid hsl(var(--card-border));
  border-radius: 12px;
  background: hsl(var(--bg));
}
.phone-tasks .t.done {
  background: hsl(var(--success-light));
  border-color: hsl(var(--success) / 0.3);
}
.phone-tasks .cb {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 2px solid hsl(var(--card-border));
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font: 700 12px/1 'Apercu';
}
.phone-tasks .t.done .cb {
  background: hsl(var(--success));
  border-color: hsl(var(--success));
}
.phone-tasks .nm { font: 500 13px/1.2 'Apercu'; flex: 1; }
.phone-tasks .t.done .nm {
  text-decoration: line-through;
  color: hsl(var(--text-muted));
}
.phone-tasks .pt {
  font: 600 11px/1 'Apercu';
  color: hsl(var(--brand-dark));
  background: hsl(var(--brand-light));
  padding: 5px 8px;
  border-radius: 9999px;
  font-variant-numeric: tabular-nums;
}
.phone-tasks .t.done .pt { color: hsl(var(--success)); background: white; }
.phone-float {
  position: absolute; top: 200px; right: 22px;
  background: hsl(var(--success)); color: white;
  padding: 6px 12px; border-radius: 9999px;
  font: 700 13px/1 'Apercu';
  box-shadow: 0 6px 16px -4px hsl(var(--success) / 0.4);
  animation: float 3s ease-in-out infinite;
}

/* ───── Desktop mock ───── */
.desktop-mock {
  width: 880px; height: 580px;
  background: hsl(var(--bg));
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 80px -28px rgba(20, 18, 60, 0.28);
  border: 1px solid hsl(var(--card-border));
  display: grid; grid-template-rows: 36px 1fr;
  transform-origin: center;
}
.dt-bar {
  background: hsl(var(--bg-secondary));
  border-bottom: 1px solid hsl(var(--card-border));
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
}
.dt-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: hsl(var(--card-border));
}
.dt-body { display: grid; grid-template-columns: 200px 1fr; }
.dt-side {
  background: hsl(var(--bg-secondary));
  border-right: 1px solid hsl(var(--card-border));
  padding: 18px 14px;
}
.dt-brand {
  display: flex; align-items: center; gap: 8px;
  font: 600 14px/1 'Apercu';
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.dt-nav { display: grid; gap: 4px; }
.dt-nav > div {
  padding: 8px 12px;
  border-radius: 10px;
  font: 500 13px/1 'Apercu';
  color: hsl(var(--text-muted));
}
.dt-nav .active {
  background: hsl(var(--brand-light));
  color: hsl(var(--brand-dark));
  font-weight: 600;
}
.dt-main {
  padding: 22px 26px;
  display: grid; gap: 18px;
  align-content: start;
}
.dt-header {
  display: flex; justify-content: space-between; align-items: flex-end;
}
.dt-h1 { font: 500 22px/1.1 'Apercu'; letter-spacing: -0.01em; }
.dt-sub {
  font: 400 12px/1.3 'Apercu';
  color: hsl(var(--text-muted));
  margin-top: 2px;
}
.dt-cta {
  background: hsl(var(--brand)); color: white;
  padding: 9px 16px; border-radius: 10px;
  font: 600 12px/1 'Apercu';
  box-shadow: var(--shadow-brand);
  border: 0; cursor: pointer;
}
.dt-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.dt-stat {
  background: hsl(var(--bg));
  border: 1px solid hsl(var(--card-border));
  border-radius: 14px;
  padding: 12px 14px;
}
.dt-stat .l {
  font: 600 9px/1 'Apercu';
  letter-spacing: 0.08em; text-transform: uppercase;
  color: hsl(var(--text-muted));
}
.dt-stat .v {
  font: 700 22px/1 'Apercu';
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}
.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dt-panel {
  background: hsl(var(--bg));
  border: 1px solid hsl(var(--card-border));
  border-radius: 14px;
  padding: 14px;
}
.dt-pt { font: 600 12px/1 'Apercu'; margin-bottom: 10px; }
.dt-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 10px;
}
.dt-row.active { background: hsl(var(--brand-light)); }
.dt-row .av {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: hsl(var(--brand)); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 11px/1 'Apercu';
}
.dt-row .av.g { background: hsl(var(--success)); }
.dt-row .av.y { background: hsl(var(--warning)); color: #5a4400; }
.dt-row .nm { font: 600 12px/1.1 'Apercu'; }
.dt-row .ms {
  font: 400 10px/1.2 'Apercu';
  color: hsl(var(--text-muted));
  margin-top: 2px;
}
.dt-task {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  border-top: 1px solid hsl(var(--card-border));
}
.dt-task:first-of-type { border-top: 0; }
.dt-task .ic {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: hsl(var(--brand-light));
  color: hsl(var(--brand-dark));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.dt-task .nm { font: 500 12px/1.1 'Apercu'; flex: 1; }
.dt-task .pt {
  font: 600 11px/1 'Apercu';
  color: hsl(var(--brand-dark));
  background: hsl(var(--brand-light));
  padding: 4px 8px;
  border-radius: 9999px;
}

/* ───── Section primitives ───── */
.section {
  padding: 120px 56px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head.center { margin: 0 auto 56px; text-align: center; }
.h2 {
  font: 500 56px/1.1 'Apercu';
  letter-spacing: -0.02em;
  margin: 0;
  color: hsl(var(--text));
}
.h1-soft {
  font: 500 64px/1.05 'Apercu';
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.lede {
  font: 400 18px/1.55 'Apercu';
  color: hsl(var(--text-muted));
  margin-top: 18px;
  max-width: 640px;
}
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ───── How it works ───── */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-card {
  background: hsl(var(--bg));
  border: 1px solid hsl(var(--card-border));
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.how-num {
  display: inline-block;
  font: 700 14px/1 'Apercu';
  color: hsl(var(--brand-dark));
  background: hsl(var(--brand-light));
  padding: 8px 12px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.how-t {
  font: 500 24px/1.2 'Apercu';
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.how-d {
  font: 400 16px/1.5 'Apercu';
  color: hsl(var(--text-muted));
  margin: 0;
}

/* ───── For kids / parents ───── */
.for-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.for-grid.reverse { grid-template-columns: 1.1fr 1fr; }
.for-art {
  position: relative; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
}
.for-art.big { min-height: 540px; }
.ticks { display: grid; gap: 16px; margin: 28px 0 0; }
.ticks li {
  position: relative; padding-left: 32px;
  font: 400 17px/1.55 'Apercu';
  color: hsl(var(--text-muted));
}
.ticks li b { color: hsl(var(--text)); font-weight: 600; }
.ticks li::before {
  content: '✓';
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: hsl(var(--brand-light));
  color: hsl(var(--brand-dark));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}

/* Kid art stack */
.kids-phone-stack {
  position: relative;
  width: 420px; height: 600px;
  display: flex; align-items: center; justify-content: center;
}
.kp { position: absolute; }
.kp.back { transform: translate(-90px, 30px) rotate(-8deg); opacity: 0.8; }
.kp.front { transform: translate(40px, -10px) rotate(4deg); }

.float-chip {
  position: absolute;
  padding: 10px 16px;
  background: white;
  border-radius: 9999px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.18);
  font: 600 14px/1 'Apercu';
  color: hsl(var(--text));
  border: 1px solid hsl(var(--card-border));
}
.chip-k1 {
  top: 40px; right: -10px;
  color: hsl(var(--success));
  background: hsl(var(--success-light));
  border-color: hsl(var(--success) / 0.2);
  animation: float 3.6s ease-in-out infinite;
}
.chip-k2 {
  bottom: 80px; left: -30px;
  animation: float 4.2s ease-in-out infinite -1s;
}

/* Parents desktop wrap */
.parents-desk-wrap { position: relative; }

/* ───── Pricing ───── */
.price-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 880px; margin: 0 auto;
}
.price-card {
  background: hsl(var(--bg));
  border: 1px solid hsl(var(--card-border));
  border-radius: 24px;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.price-card.featured {
  border-color: hsl(var(--brand) / 0.3);
  box-shadow: 0 16px 48px -16px hsl(var(--brand) / 0.25);
}
.pc-tag {
  position: absolute; top: -12px; left: 36px;
  background: hsl(var(--brand)); color: white;
  padding: 6px 14px; border-radius: 9999px;
  font: 600 12px/1 'Apercu';
  letter-spacing: 0.04em;
}
.pc-name {
  font: 500 14px/1 'Apercu';
  letter-spacing: 0.08em; text-transform: uppercase;
  color: hsl(var(--text-muted));
}
.pc-price {
  font: 500 56px/1 'Apercu';
  letter-spacing: -0.02em;
  margin: 14px 0 24px;
}
.pc-price small {
  font: 500 16px/1 'Apercu';
  letter-spacing: 0;
  color: hsl(var(--text-muted));
  margin-left: 8px;
}
.pc-list { display: grid; gap: 12px; margin: 0 0 28px; }
.pc-list li {
  font: 400 15px/1.4 'Apercu';
  color: hsl(var(--text));
  padding-left: 26px;
  position: relative;
}
.pc-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: hsl(var(--brand-light));
  color: hsl(var(--brand-dark));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
}

/* ───── Footer CTA ───── */
.footer-cta {
  background: linear-gradient(180deg, hsl(var(--bg-secondary)) 0%, hsl(var(--brand-light)) 100%);
  padding: 120px 56px 0;
}
.fc-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.fc-sub {
  font: 400 18px/1.55 'Apercu';
  color: hsl(var(--text-muted));
  margin: 0 0 32px;
}
.fc-form {
  display: flex; gap: 12px;
  max-width: 480px; margin: 0 auto;
}
.fc-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid hsl(var(--card-border));
  background: hsl(var(--bg));
  font: 500 15px/1 'Apercu';
  outline: none;
  transition: border-color 200ms var(--ease-soft), box-shadow 200ms var(--ease-soft);
}
.fc-input:focus {
  border-color: hsl(var(--brand));
  box-shadow: 0 0 0 4px hsl(var(--brand) / 0.1);
}
.fc-meta {
  margin-top: 18px;
  font: 500 13px/1 'Apercu';
  color: hsl(var(--text-muted));
}

.footer {
  max-width: 1200px; margin: 80px auto 0;
  padding: 32px 0;
  border-top: 1px solid hsl(var(--card-border));
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.foot-links {
  display: flex; gap: 24px;
  font: 500 14px/1 'Apercu';
  color: hsl(var(--text-muted));
}
.foot-links a:hover { color: hsl(var(--brand-dark)); }
.foot-c { font: 500 13px/1 'Apercu'; color: hsl(var(--text-muted)); }

/* ───── Animations ───── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ───── Responsive (mobile-first respect, desktop-out) ───── */
@media (max-width: 960px) {
  .topnav { padding: 20px 24px; }
  .nav-links { display: none; }
  .hero-a .hero-grid {
    grid-template-columns: 1fr;
    padding: 32px 24px 0;
    gap: 40px;
  }
  .hero-h1 { font-size: 56px; }
  .hero-sub { font-size: 17px; }
  .hero-art { min-height: 560px; }
  .section { padding: 80px 24px; }
  .h2 { font-size: 40px; }
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .for-grid, .for-grid.reverse { grid-template-columns: 1fr; gap: 48px; }
  .for-grid.reverse > .for-copy { order: 2; }
  .for-grid.reverse > .for-art { order: 1; }
  .for-art, .for-art.big { min-height: 480px; }
  .kids-phone-stack { width: 320px; height: 500px; }
  .desktop-mock { width: 100%; max-width: 720px; height: auto; }
  .price-grid { grid-template-columns: 1fr; }
  .pc-price { font-size: 44px; }
  .h1-soft { font-size: 44px; }
  .footer-cta { padding: 80px 24px 0; }
  .fc-form { flex-direction: column; }
  .footer { padding: 24px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
