/* ═══════════════════════════════════════════════════
   FEYNLEARN EARLY ACCESS — bright & playful
   Colour tokens come from Feynlearn-Web-App/app/globals.css
   (navy / green / peach / cream) + a sunny yellow accent.
   ═══════════════════════════════════════════════════ */
:root {
  --navy:        #1a2a52;
  --navy-light:  #253570;
  --navy-pale:   #e8ecf5;
  --green:       #2d6a4f;
  --green-light: #40916c;
  --green-pale:  #d8f3e9;
  --green-border:#95d5b2;
  --light-green: #52b788;
  --peach:       #f4a58a;
  --peach-dark:  #e07b5a;
  --peach-pale:  #fdeae3;
  --peach-border:#f9c4b0;
  --cream:       #fdf6ee;
  --cream-deep:  #f5e9d8;
  --border:      #e5d9c8;
  --sun:         #ffd166;
  --sun-pale:    #fff3cc;
  --ink:         #111827;
  --text:        #374151;
  --muted:       #6b7280;

  --font-sans:  "Plus Jakarta Sans", system-ui, sans-serif;
  --font-serif: "Playfair Display", serif;
  --font-hand:  "Caveat", cursive;
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --pop:        cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter:     clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }
body {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(26,42,82,0.10) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  color: var(--navy);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
}
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-deep); }
::-webkit-scrollbar-thumb { background: #cdbfa8; border-radius: 99px; }

/* ═════════ Ambient blobs ═════════ */
.blob { position: fixed; border-radius: 50%; z-index: 0; pointer-events: none; filter: blur(70px); opacity: 0.55; }
.blob-peach { top: -140px; left: -120px; width: 520px; height: 520px; background: var(--peach); animation: drift 16s ease-in-out infinite; }
.blob-mint  { bottom: -160px; right: -120px; width: 560px; height: 560px; background: #8ee3b9; animation: drift 20s ease-in-out infinite reverse; }
.blob-sun   { top: 20%; right: 18%; width: 340px; height: 340px; background: var(--sun); opacity: 0.4; animation: drift 24s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-36px); } }

/* ═════════ Nav ═════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: rgba(253,246,238,0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--border);
}
.logo { display: inline-flex; }
.logo img { height: 52px; width: auto; }
.logo.sm img { height: 38px; }

/* ═════════ Hero ═════════ */
.hero { position: relative; z-index: 1; padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid {
  position: relative; z-index: 1; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 5vw, 72px); align-items: center;
}

.float-emoji { position: absolute; z-index: 0; font-size: 38px; pointer-events: none; user-select: none; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 6px 0 rgba(26,42,82,0.08)); }
.fe1 { top: 7%;  left: 3%;  animation-delay: -1s; transform: rotate(-14deg); }
.fe2 { top: 10%; left: 47%; animation-delay: -3s; font-size: 44px; }
.fe3 { bottom: 9%; left: 5%; animation-delay: -2s; font-size: 34px; }
.fe4 { top: 6%;  right: 4%; animation-delay: -4s; font-size: 32px; }
.fe5 { bottom: 8%; right: 3%; animation-delay: -5s; }
.fe6 { bottom: 5%; left: 46%; animation-delay: -2.5s; font-size: 34px; }
@keyframes bob { 0%,100% { translate: 0 0; rotate: -6deg; } 50% { translate: 0 -16px; rotate: 8deg; } }

/* Magic UI: Animated Shiny Text */
.shiny-text {
  --shimmer-width: 110px;
  background-color: rgba(26,42,82,0.62);
  background-image: linear-gradient(90deg, transparent, var(--navy) 50%, transparent);
  background-repeat: no-repeat; background-size: var(--shimmer-width) 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shiny-text 5s infinite;
}
.shiny-text.on-dark { background-color: rgba(255,255,255,0.6); background-image: linear-gradient(90deg, transparent, #fff 50%, transparent); }
@keyframes shiny-text {
  0%, 90%, 100% { background-position: calc(-100% - var(--shimmer-width)) 0; }
  30%, 60%      { background-position: calc(100% + var(--shimmer-width)) 0; }
}

.h1 { font-weight: 800; font-size: clamp(2.2rem, 4.3vw, 3.7rem); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 22px; }
.h1 .line { display: block; text-wrap: balance; }
.soft { color: rgba(26,42,82,0.42); }

/* emphasis word in the headline: serif italic, no highlighter */
.hl { display: inline-block; font-family: var(--font-serif); font-style: italic; font-weight: 900; color: var(--green); }

.lead { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.7; color: var(--text); max-width: 520px; margin-bottom: 36px; }
.lead b { color: var(--navy); font-weight: 800; }

/* Eddy's speech bubble */
.eddy-say { display: flex; align-items: center; gap: 16px; max-width: 520px; margin-bottom: 32px; }
.eddy-ava { flex-shrink: 0; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: #f1f1f1; border: 2.5px solid var(--navy); box-shadow: 3px 3px 0 var(--navy); animation: bob 5s ease-in-out infinite; }
.eddy-ava img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 55%; transform: scale(1.04); }
.bubble {
  position: relative; padding: 12px 18px; border-radius: 18px; background: #fff; border: 2.5px solid var(--navy); box-shadow: 4px 4px 0 var(--navy);
  font-family: var(--font-hand); font-size: 23px; font-weight: 700; line-height: 1.2; color: var(--navy); transform: rotate(-0.8deg);
}
.bubble::before { content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; background: #fff; border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: translateY(-50%) rotate(45deg); }
.bubble small { display: block; margin-top: 4px; font-family: var(--font-sans); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--peach-dark); }

.stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { padding: 10px 18px 12px; border-radius: 16px; border: 2px solid var(--navy); box-shadow: 3px 3px 0 var(--navy); transition: transform 0.25s var(--pop); }
.stat:hover { transform: rotate(0) scale(1.05) !important; }
.s1 { background: var(--peach-pale); transform: rotate(-2deg); }
.s2 { background: var(--green-pale);  transform: rotate(1.5deg); }
.s3 { background: var(--sun-pale);    transform: rotate(-1deg); }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.stat b i { font-style: normal; font-size: 14px; font-weight: 700; margin-left: 3px; opacity: 0.7; }
.stat small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Magic UI: Shimmer Button */
.shimmer-btn {
  --shimmer: rgba(255,255,255,0.9); --cut: 3px; --spread: 90deg; --bg: var(--navy);
  position: relative; isolation: isolate; z-index: 0; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 99px; border: 2.5px solid var(--navy);
  background: var(--bg); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; cursor: pointer;
  box-shadow: 0 6px 0 var(--peach-dark);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s;
}
.shimmer-btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--peach-dark); }
.shimmer-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--peach-dark); }
.shimmer-btn.alt { --bg: var(--sun); color: var(--navy); border-color: var(--navy); box-shadow: 0 6px 0 #fff; --shimmer: #fff; }
.shimmer-btn.alt:hover { box-shadow: 0 9px 0 #fff; }
.shimmer-btn.alt:active { box-shadow: 0 1px 0 #fff; }
.spark-c { position: absolute; inset: 0; z-index: -30; overflow: visible; filter: blur(2px); container-type: size; }
.spark { position: absolute; inset: 0; height: 100cqh; aspect-ratio: 1; animation: shimmer-slide 3s ease-in-out infinite alternate; }
.spark::before {
  content: ""; position: absolute; inset: -100%;
  background: conic-gradient(from calc(270deg - (var(--spread) * 0.5)), transparent 0, var(--shimmer) var(--spread), transparent var(--spread));
  animation: spin-around 6s linear infinite;
}
.shimmer-btn::after { content: ""; position: absolute; inset: var(--cut); border-radius: inherit; background: var(--bg); z-index: -20; }
@keyframes shimmer-slide { to { transform: translate(calc(100cqw - 100%), 0); } }
@keyframes spin-around { 0% { transform: rotate(0); } 15%, 35% { transform: rotate(90deg); } 65%, 85% { transform: rotate(270deg); } 100% { transform: rotate(360deg); } }

/* Magic UI: Blur Fade */
.blur-fade { opacity: 0; animation: blur-fade 0.9s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes blur-fade { from { opacity: 0; filter: blur(10px); transform: translateY(18px); } to { opacity: 1; filter: blur(0); transform: none; } }
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ═════════ Form card ═════════ */
.card-wrap { position: relative; }
.card {
  position: relative; border-radius: 28px; background: #fff;
  border: 3px solid var(--navy); box-shadow: 10px 10px 0 var(--navy);
}
.card-inner { position: relative; padding: clamp(22px, 3vw, 34px); min-height: 520px; display: flex; flex-direction: column; }

.spin-badge {
  position: absolute; z-index: 5; top: -52px; right: -30px; width: 92px; height: 92px; border-radius: 50%;
  background: var(--sun); border: 2.5px solid var(--navy); box-shadow: 3px 3px 0 var(--navy); display: grid; place-items: center;
  transform: rotate(8deg);
}
.spin-badge svg { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.spin-badge text { font-size: 11px; font-weight: 800; fill: var(--navy); }
.spin-badge span { font-size: 28px; animation: bob 3s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Magic UI: Border Beam */
.border-beam {
  --size: 220; --duration: 8s; --anchor: 90; --border-width: 3; --color-from: #f4a58a; --color-to: #52b788;
  pointer-events: none; position: absolute; inset: 0; border-radius: inherit;
  border: calc(var(--border-width) * 1px) solid transparent;
  -webkit-mask-clip: padding-box, border-box; mask-clip: padding-box, border-box;
  -webkit-mask-composite: xor; mask-composite: intersect;
  -webkit-mask-image: linear-gradient(transparent, transparent), linear-gradient(#000, #000);
          mask-image: linear-gradient(transparent, transparent), linear-gradient(#000, #000);
}
.border-beam::after {
  content: ""; position: absolute; aspect-ratio: 1; width: calc(var(--size) * 1px);
  background: linear-gradient(to left, var(--color-from), var(--color-to), transparent);
  offset-anchor: calc(var(--anchor) * 1%) 50%; offset-path: rect(0 auto auto 0 round calc(var(--size) * 1px));
  animation: border-beam var(--duration) linear infinite;
}
.border-beam.beam-2 { --color-from: #ffd166; --color-to: #f4a58a; }
.border-beam.beam-2::after { animation-delay: calc(var(--duration) / -2); }
@keyframes border-beam { 100% { offset-distance: 100%; } }

/* honeypot + Turnstile host */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
#ts-box { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 200; }

/* progress */
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.back {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; color: var(--navy);
  background: #fff; border: 2px solid var(--navy); box-shadow: 2px 2px 0 var(--navy); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.back:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--navy); }
.back:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--navy); }
.progress-wrap { flex: 1; padding-right: 56px; }   /* leaves room for the corner sticker */
.progress { height: 6px; border-radius: 99px; background: var(--cream-deep); overflow: hidden; }
.progress i { display: block; height: 100%; width: 33%; border-radius: inherit; transition: width 0.6s var(--ease-out); background: linear-gradient(90deg, var(--light-green), var(--sun)); }

/* steps */
.step { display: flex; flex-direction: column; flex: 1; animation: step-in 0.55s var(--ease-out) both; }
@keyframes step-in { from { opacity: 0; filter: blur(6px); transform: translateX(18px); } to { opacity: 1; filter: blur(0); transform: none; } }
.step.back-dir { animation-name: step-in-back; }
@keyframes step-in-back { from { opacity: 0; filter: blur(6px); transform: translateX(-18px); } to { opacity: 1; filter: blur(0); transform: none; } }
.step-title { font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 4px; }
.step-sub { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; line-height: 1.55; }

.field { display: block; margin-bottom: 15px; }
.lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.hint.center { text-align: center; }
input[type="text"], input[type="tel"] {
  width: 100%; padding: 13px 15px; border-radius: 14px; font-size: 15.5px; font-weight: 600; color: var(--navy);
  background: var(--cream); border: 2px solid var(--border); outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s, transform 0.18s;
}
input::placeholder { color: #a8a29e; font-weight: 500; }
input:focus { border-color: var(--navy); background: #fff; box-shadow: 4px 4px 0 var(--light-green); transform: translate(-1px,-1px); }
input.invalid { border-color: #ef4444; box-shadow: 4px 4px 0 #fecaca; }
.mt { margin-top: 10px; }

.phone { display: flex; border-radius: 14px; border: 2px solid var(--border); background: var(--cream); transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s; }
.phone:focus-within { border-color: var(--navy); background: #fff; box-shadow: 4px 4px 0 var(--light-green); transform: translate(-1px,-1px); }
.phone.invalid { border-color: #ef4444; box-shadow: 4px 4px 0 #fecaca; }
.phone span { display: grid; place-items: center; padding: 0 14px; font-weight: 800; font-size: 14px; border-right: 2px solid var(--border); }
.phone input { border: 0; background: transparent; box-shadow: none !important; transform: none !important; letter-spacing: 0.04em; }

/* chips */
.chips { display: flex; gap: 8px; }
.chips.wrap { flex-wrap: wrap; }
.chips button {
  flex: 1 1 0; min-width: 44px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 800; color: var(--navy);
  background: #fff; border: 2px solid var(--border); cursor: pointer; transition: all 0.16s var(--ease-out);
}
.chips.wrap button { flex: 0 0 auto; padding: 10px 16px; }
.chips button:hover { border-color: var(--navy); background: var(--sun-pale); transform: translateY(-2px); }
.chips button[aria-checked="true"] {
  color: #fff; background: var(--green); border-color: var(--navy); box-shadow: 0 4px 0 var(--navy); transform: translateY(-2px);
  animation: chip-pop 0.35s var(--pop);
}
@keyframes chip-pop { 0% { transform: scale(0.9); } 100% { transform: translateY(-2px) scale(1); } }
.chips.invalid { animation: shake 0.4s; }
.chips.invalid button { border-color: #ef4444; }

/* google */
.g-slot { display: flex; flex-direction: column; }
#gbtn { display: flex; justify-content: center; }
#gbtn:empty { display: none; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px; border-radius: 14px;
  font-size: 15px; font-weight: 800; color: var(--navy); background: #fff; border: 2px solid var(--navy); cursor: pointer;
  box-shadow: 0 4px 0 var(--navy); transition: transform 0.16s var(--ease-out), box-shadow 0.16s, background 0.16s;
}
.btn-google:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--navy); background: var(--sun-pale); }
.btn-google:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.g-note { font-size: 12.5px; font-weight: 600; color: var(--peach-dark); margin-top: 10px; line-height: 1.5; text-align: center; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--border); }

.google-hello { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 18px; border-radius: 16px; background: var(--green-pale); border: 2px solid var(--green-border); }
.google-hello img { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-pale); }
.google-hello div { flex: 1; min-width: 0; }
.google-hello b { display: block; font-size: 14px; }
.google-hello small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verified { font-size: 11.5px; font-weight: 800; color: var(--green); }

/* age wheel — scroll, swipe, tap or use the arrow keys */
.age-picker { position: relative; margin: 14px -8px 6px; }
.age-focus {
  position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; transform: translate(-50%, -50%); border-radius: 26px;
  background: var(--sun); border: 2.5px solid var(--navy); box-shadow: 0 5px 0 var(--navy);
}
.age-wheel {
  position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none;
  padding: 20px calc(50% - 36px); -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
}
.age-wheel::-webkit-scrollbar { display: none; }
.age-wheel.invalid { animation: shake 0.4s; }
.age-item {
  flex: 0 0 72px; height: 88px; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always;
  font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: rgba(26,42,82,0.32);
  background: transparent; border: 0; cursor: pointer; transition: transform 0.25s var(--pop), color 0.2s;
}
.age-item:hover { color: rgba(26,42,82,0.6); }
.age-item.sel { color: var(--navy); transform: scale(1.45); }
.age-note { text-align: center; min-height: 22px; margin: 4px 0 14px; font-size: 13.5px; font-weight: 700; color: var(--green); }
.age-note.adult { color: var(--peach-dark); }

/* beta opt-in checkbox */
.beta-opt {
  position: relative; display: flex; align-items: center; gap: 14px; margin: 2px 0 8px; padding: 12px 14px; border-radius: 16px; cursor: pointer;
  background: var(--sun-pale); border: 2px solid var(--navy); box-shadow: 0 4px 0 var(--navy);
  transition: transform 0.16s var(--ease-out), box-shadow 0.16s, background 0.2s;
}
.beta-opt:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--navy); }
.beta-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.beta-opt:has(input:checked) { background: var(--green-pale); }
.beta-input { position: absolute; opacity: 0; width: 0; height: 0; }
.beta-box {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #fff; border: 2.5px solid var(--navy);
  transition: background 0.2s, transform 0.25s var(--pop);
}
.beta-box svg { opacity: 0; transform: scale(0.4); transition: opacity 0.15s, transform 0.25s var(--pop); }
.beta-input:checked + .beta-box { background: var(--green); transform: rotate(-6deg) scale(1.08); }
.beta-input:checked + .beta-box svg { opacity: 1; transform: scale(1); }
.beta-input:focus-visible + .beta-box { box-shadow: 0 0 0 4px rgba(82,183,136,0.45); }
.beta-text b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.beta-text small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.done-beta { display: inline-block; margin-bottom: 8px; padding: 6px 14px; border-radius: 99px; font-size: 14px; font-weight: 800; background: var(--sun-pale); border: 2px solid var(--navy); transform: rotate(-1.5deg); }

/* buttons + errors */
.err { min-height: 20px; margin: 4px 0 10px; font-size: 13px; font-weight: 700; color: #dc2626; }
.step > .btn-primary { margin-top: auto; }
.btn-primary {
  width: 100%; padding: 15px; border-radius: 16px; cursor: pointer; font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -0.01em;
  background: var(--green); border: 2.5px solid var(--navy); box-shadow: 0 5px 0 var(--navy);
  transition: transform 0.16s var(--ease-out), box-shadow 0.16s, background 0.16s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--navy); background: var(--green-light); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy); }
.btn-primary:disabled { opacity: 0.8; cursor: wait; transform: translateY(2px); box-shadow: 0 3px 0 var(--navy); }
.btn-primary .spin { display: inline-block; width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 0.75s linear infinite; }
.shake { animation: shake 0.4s; }
@keyframes shake { 0%,100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* done state */
.done { align-items: center; justify-content: center; text-align: center; position: relative; padding: 14px 0 6px; }
.ripple { position: absolute; top: 50%; left: 50%; width: 0; height: 0; pointer-events: none; }
.ripple i { position: absolute; border-radius: 50%; border: 2px solid rgba(82,183,136,0.55); background: rgba(82,183,136,0.08); width: 150px; height: 150px; left: -75px; top: -215px; animation: ripple 3.2s ease-out infinite; opacity: 0; }
.ripple i:nth-child(2) { animation-delay: 0.8s; width: 230px; height: 230px; left: -115px; top: -255px; }
.ripple i:nth-child(3) { animation-delay: 1.6s; width: 320px; height: 320px; left: -160px; top: -300px; }
@keyframes ripple { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(1.12); opacity: 0; } }
.tick { position: relative; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px; background: var(--light-green); border: 3px solid var(--navy); box-shadow: 0 6px 0 var(--navy); animation: tick-pop 0.6s var(--pop) both; }
@keyframes tick-pop { 0% { transform: scale(0) rotate(-20deg); } 60% { transform: scale(1.2) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
.done-title { font-weight: 800; font-size: clamp(30px, 4vw, 38px); line-height: 1.1; letter-spacing: -0.035em; margin-bottom: 12px; }
.done-text { font-size: 17px; line-height: 1.6; color: var(--text); max-width: 340px; margin-bottom: 8px; }
.done-text b { color: var(--green); font-weight: 800; }
.done-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 99px; font-size: 15px; font-weight: 800; color: #fff; background: #25d366; border: 2.5px solid var(--navy); box-shadow: 0 5px 0 var(--navy); transition: transform 0.16s var(--ease-out), box-shadow 0.16s; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--navy); }
.btn-wa:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy); }

/* ═════════ How it works ═════════ */
.how { position: relative; z-index: 1; padding: clamp(24px, 3vw, 40px) var(--gutter) clamp(64px, 8vw, 110px); }
.how-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { display: inline-block; font-family: var(--font-hand); font-size: 28px; font-weight: 700; color: var(--peach-dark); transform: rotate(-2deg); margin-bottom: 4px; }
.section-title { font-weight: 800; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -0.035em; margin-bottom: 30px; }
.section-title em { font-family: var(--font-serif); font-style: italic; font-weight: 900; color: var(--green); }
.how-copy .section-title { margin-bottom: 14px; }
.how-copy .section-lead { margin: 0 0 28px; font-size: 17px; max-width: none; color: var(--text); }
.how-copy .section-lead b { color: var(--navy); font-weight: 800; }

/* Magic UI: Orbiting Circles */
.orbit-stage { position: relative; width: min(440px, calc(100% - 72px)); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; border: 2.5px dashed rgba(26,42,82,0.22); }
.r-out { inset: 0; } .r-in { inset: 17%; }
.arm { position: absolute; inset: calc(50% - var(--r)); animation: orbit var(--dur) linear infinite; }
.dot {
  position: absolute; top: 0; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; font-size: 27px;
  border: 2.5px solid var(--navy); box-shadow: 3px 3px 0 var(--navy); animation: counter var(--dur) linear infinite;
}
.dot.sm { width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: 21px; }
.dot-peach { background: var(--peach); } .dot-mint { background: #8ee3b9; } .dot-sun { background: var(--sun); } .dot-white { background: #fff; }
@keyframes orbit   { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) + 360deg * var(--dir))); } }
@keyframes counter { from { transform: rotate(calc(-1 * var(--a))); } to { transform: rotate(calc(-1 * var(--a) - 360deg * var(--dir))); } }
.orbit-core { position: relative; z-index: 2; width: 38%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--navy); box-shadow: 6px 6px 0 var(--navy); animation: bob 5s ease-in-out infinite; }
.orbit-core img { width: 82%; height: auto; }

.steps-list { list-style: none; display: grid; gap: 16px; }
.step-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border-radius: 20px; border: 2.5px solid var(--navy); box-shadow: 6px 6px 0 var(--navy);
  transition: transform 0.3s var(--pop), box-shadow 0.3s, opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.step-card:hover { transform: translate(-3px,-3px) rotate(-0.6deg); box-shadow: 9px 9px 0 var(--navy); }
.sc-peach { background: var(--peach-pale); } .sc-mint { background: var(--green-pale); } .sc-sun { background: var(--sun-pale); }
.sc-num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 800; background: #fff; border: 2.5px solid var(--navy); box-shadow: 2px 2px 0 var(--navy); }
.step-card h3 { font-size: 18.5px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; }
.step-card p { font-size: 14.5px; line-height: 1.6; color: var(--text); }

/* ═════════ Final CTA ═════════ */
.final { position: relative; z-index: 1; overflow: hidden; padding: clamp(72px, 10vw, 118px) var(--gutter); text-align: center; background: var(--navy); border-top: 3px solid var(--navy); }
.final::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.12) 1.3px, transparent 1.3px); background-size: 26px 26px; }
.final-inner { position: relative; max-width: 720px; margin: 0 auto; }
.final-eyebrow { display: inline-block; font-family: var(--font-hand); font-size: 30px; font-weight: 700; margin-bottom: 8px; transform: rotate(-2deg); }
.final-title { color: #fff; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 34px; }
.final-title em { font-family: var(--font-serif); font-style: italic; font-weight: 900; color: var(--sun); }
.final-sub { margin: -14px 0 0; font-size: 17px; font-weight: 600; color: rgba(255,255,255,0.72); }
.fe7 { top: 14%; left: 10%; } .fe8 { bottom: 16%; right: 12%; } .fe9 { top: 24%; right: 22%; font-size: 30px; }

.footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px var(--gutter); background: var(--cream); border-top: 3px solid var(--navy); font-size: 13px; font-weight: 600; color: var(--muted); }

/* ═════════ Responsive ═════════ */
@media (max-width: 980px) {
  .hero-grid, .how-grid { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .card-inner { min-height: 0; }
  .how-copy { order: -1; }
  .fe2, .fe6 { display: none; }
}
@media (max-width: 480px) {
  .logo img { height: 42px; }
  .nav-btn { padding: 8px 14px; font-size: 13px; }
  .card { box-shadow: 6px 6px 0 var(--navy); }
  .spin-badge { width: 72px; height: 72px; top: -46px; right: -2px; }
  .spin-badge text { font-size: 10.6px; }
  .spin-badge span { font-size: 22px; }
  .hero .float-emoji { display: none; }
  .chips:not(.wrap) button { padding: 10px 4px; }
  .float-emoji { font-size: 26px; }
  .stat b { font-size: 25px; }
}

/* ═════════ Reduced motion ═════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
  .blur-fade, .reveal { opacity: 1; filter: none; transform: none; }
}
