/* MileSprout website. No external fonts, third-party scripts or trackers. Colours match the iOS app. */

:root {
  color-scheme: light dark;
  --bg: #F6FAF7;
  --surface: #FFFFFF;
  --surface-2: #EEF6F1;
  --border: #DCE8E1;
  --ink: #14261F;
  --text: #4A5A52;
  --brand: #0B7A55;
  --link: #0B7A55;
  --mint: #D1FAE5;
  --gold: #FACC15;
  --wm-mile: #14261F;
  --wm-sprout: #0B7A55;
  --road: #064E3B;
  --focus: #0B7A55;
  --shadow: 0 1px 2px rgba(20, 38, 31, .06), 0 8px 24px rgba(20, 38, 31, .06);
  --radius: 18px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1410;
    --surface: #111E18;
    --surface-2: #0E1A15;
    --border: #22382E;
    --ink: #EAF3EE;
    --text: #B3C4BB;
    --link: #6EE7B7;
    --wm-mile: #EAF3EE;
    --wm-sprout: #6EE7B7;
    --road: #0E9F6E;
    --focus: #6EE7B7;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px;
  border: 2px solid var(--focus);
}
.skip:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
/* Logo lockup: mark height = cap height (about .7em) x 1.6, tight gap, centred on the caps. */
.brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.5px; line-height: 1; }
.brand svg { height: 1.12em; width: 1.027em; flex: none; transform: translateY(-0.04em); }
.brand > span { display: block; line-height: 1; }
.brand .road { stroke: var(--road); }
.wm-mile { color: var(--wm-mile); }
.wm-sprout { color: var(--wm-sprout); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--link); text-decoration: underline; }
@media (max-width: 420px) { .nav { gap: 2px 14px; font-size: .9rem; } }

/* Hero on the brand gradient. A dark wash keeps white text at 4.5:1 even at the light end. */
.hero {
  position: relative;
  color: #FFFFFF;
  background:
    linear-gradient(rgba(4, 40, 30, .30), rgba(4, 40, 30, .30)),
    linear-gradient(135deg, #0E9F6E 0%, #053D2E 100%);
  overflow: hidden;
}
section.hero { padding: 0; }
.hero .wrap { position: relative; display: grid; gap: 40px; padding-top: 40px; padding-bottom: 48px; align-items: center; }
.hero h1 { color: #FFFFFF; }
.hero .lede { color: #F0FDF7; font-size: 1.15rem; max-width: 34em; }
.hero .wm-mile { color: #FFFFFF; }
.hero .wm-sprout { color: var(--mint); }
.hero .note { color: var(--mint); font-size: .95rem; margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hero a:not(.store-btn) { color: #FFFFFF; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; padding-top: 64px; padding-bottom: 72px; gap: 48px; }
}

/* Big faint sprout behind the hero (moves a little slower than the page when JS runs). */
.hero-mark {
  position: absolute; right: -6%; top: -8%; width: min(760px, 120vw); height: auto;
  fill: #FFFFFF; opacity: .06; pointer-events: none;
}
@media (max-width: 899px) { .hero-mark { right: -30%; top: 30%; } }

/* The hero phone starts turned away and straightens as you scroll (site.js sets the transform). */
.hero-phone { justify-self: center; perspective: 1400px; }
.hero-phone .phone {
  --w: clamp(220px, 62vw, 270px);
  transform: rotateY(-22deg) rotateX(8deg) rotateZ(1.5deg);
  transform-origin: 50% 50%;
}
@media (min-width: 900px) { .hero-phone .phone { --w: clamp(240px, 22vw, 300px); } }
@media (prefers-reduced-motion: reduce) { .hero-phone .phone { transform: none !important; } }

.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000000; color: #FFFFFF; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 12px;
  padding: 8px 14px; font-weight: 700; line-height: 1.2; font-size: .9rem;
}
.store-btn small { display: block; font-weight: 500; font-size: .72rem; opacity: .9; }
.store-btn[aria-disabled="true"] { cursor: default; }
.store-btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- iPhone, built in CSS. --w is the phone's outside width. ---------- */
.phone {
  --w: 280px;
  --edge: #2B312E;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * .034);
  border-radius: calc(var(--w) * .17);
  background: linear-gradient(145deg, #4A534F 0%, #1A1F1D 22%, #0D100F 60%, #2E3632 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .24),
    inset 0 0 0 calc(var(--w) * .012) #0A0C0B,
    0 2px 4px rgba(0, 0, 0, .2),
    0 calc(var(--w) * .1) calc(var(--w) * .22) rgba(3, 28, 20, .38);
  flex: none;
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; }
/* action button and volume buttons on the left, power on the right */
.phone::before {
  left: -2.5px; top: 17%; height: 27%; border-radius: 2px 0 0 2px;
  background: linear-gradient(var(--edge) 0 13%, transparent 13% 27%, var(--edge) 27% 57%, transparent 57% 67%, var(--edge) 67% 100%);
}
.phone::after { right: -2.5px; top: 28%; height: 13%; border-radius: 0 2px 2px 0; background: var(--edge); }

.screen {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--w) * .135);
  background: #FFFFFF;
  aspect-ratio: 640 / 1490;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* keeps corners clipped in 3D on Safari */
}
.screen img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; -webkit-user-drag: none; user-select: none; }
/* Dynamic Island */
.screen::before {
  content: ""; position: absolute; z-index: 2; left: 50%; top: calc(var(--w) * .026);
  width: calc(var(--w) * .29); height: calc(var(--w) * .08);
  transform: translateX(-50%); background: #000; border-radius: 999px;
}
/* Home indicator */
.screen::after {
  content: ""; position: absolute; z-index: 2; left: 50%; bottom: calc(var(--w) * .016);
  width: calc(var(--w) * .33); height: calc(var(--w) * .013);
  transform: translateX(-50%); background: #111; border-radius: 999px;
}
/* Status bar (time, signal, battery) and a soft glass reflection */
.sbar {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; color: #000;
  background: linear-gradient(120deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .05) 26%, rgba(255, 255, 255, 0) 40%);
}
.sbar b { position: absolute; top: calc(var(--w) * .043); left: calc(var(--w) * .1); font: 600 calc(var(--w) * .047)/1 var(--font); letter-spacing: 0; }
.sbar::before, .sbar::after { content: ""; position: absolute; top: calc(var(--w) * .047); height: calc(var(--w) * .03); }
.sbar::before {
  right: calc(var(--w) * .16); width: calc(var(--w) * .05);
  background: linear-gradient(90deg, currentColor 0 18%, transparent 18% 28%, currentColor 28% 46%, transparent 46% 56%, currentColor 56% 74%, transparent 74% 84%, currentColor 84%);
  -webkit-clip-path: polygon(0 70%, 18% 70%, 18% 100%, 28% 100%, 28% 48%, 46% 48%, 46% 100%, 56% 100%, 56% 24%, 74% 24%, 74% 100%, 84% 100%, 84% 0, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(0 70%, 18% 70%, 18% 100%, 28% 100%, 28% 48%, 46% 48%, 46% 100%, 56% 100%, 56% 24%, 74% 24%, 74% 100%, 84% 100%, 84% 0, 100% 0, 100% 100%, 0 100%);
}
.sbar::after {
  right: calc(var(--w) * .075); width: calc(var(--w) * .062);
  border: 1px solid currentColor; border-radius: calc(var(--w) * .01); padding: 1.5px;
  background: currentColor content-box; opacity: .9;
}
.phone[data-tone="dark"] .sbar { color: #FFFFFF; }
.phone[data-tone="dark"] .screen { background: #121212; }
.phone[data-tone="dark"] .screen::after { background: #F2F2F2; }

/* ---------- Waitlist form ---------- */
.wl-title { font-size: 1.15rem; margin: 26px 0 10px; letter-spacing: -0.01em; }
.hero .wl-title { color: #FFFFFF; }
.waitlist { max-width: 36rem; }
.wl-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.wl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input[type="email"], .waitlist select {
  font: inherit; font-size: 1rem; color: #14261F; background: #FFFFFF;
  border: 1.5px solid #9DB5A9; border-radius: 12px; padding: 11px 14px; min-height: 48px;
}
.waitlist input[type="email"] { flex: 1 1 14rem; min-width: 0; }
.waitlist select { width: 100%; padding: 8px 10px; min-height: 42px; font-size: .95rem; }
.waitlist input:focus-visible, .waitlist select:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.wl-go { position: relative; display: inline-flex; flex: 0 0 auto; }
.wl-go button {
  font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
  background: var(--gold); color: #14261F; border: 0; border-radius: 12px; padding: 0 20px; min-height: 48px;
  box-shadow: 0 6px 18px rgba(250, 204, 21, .28);
}
.wl-go button:hover { background: #FDE047; }
.wl-go button:disabled { opacity: .7; cursor: progress; }
/* form controls never pick up a heavy weight from the page */
.waitlist input, .waitlist select, .waitlist textarea { font-weight: 400; }
.wl-opts { display: grid; gap: 14px; margin-top: 14px; }
@media (max-width: 420px) { .wl-go, .wl-go button { width: 100%; } }

/* Choice chips: radio buttons styled as pills (optional; tap a chosen one again to clear it) */
.chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.chips legend small { font-weight: 400; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 15px;
  border-radius: 999px; font-size: .95rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
  background: #FFFFFF; color: #14261F; border: 1.5px solid #B9CCC2;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover > span { border-color: var(--brand); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: #14261F; padding-left: 12px; }
.chip input:checked + span::before {
  content: ""; width: 10px; height: 5px; margin: -3px 1px 0 0; flex: none;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
}
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip .flag { width: 20px; height: 14px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(20, 38, 31, .15); }
@media (prefers-color-scheme: dark) { .chip > span { border-color: transparent; } }
/* on the green hero: translucent white pills */
.on-dark .chips legend { color: #FFFFFF; }
.on-dark .chip > span { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .38); color: #FFFFFF; }
.on-dark .chip:hover > span { background: rgba(255, 255, 255, .22); border-color: #FFFFFF; }
.on-dark .chip input:checked + span { background: var(--gold); border-color: var(--gold); color: #14261F; }
.on-dark .chip input:focus-visible + span { outline-color: var(--gold); }
@media (max-width: 420px) { .chip > span { padding: 0 13px; font-size: .92rem; } }
.wl-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: .92rem; line-height: 1.45; color: var(--text); }
.wl-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.wl-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wl-status { margin: 10px 0 0; font-size: .95rem; }
.wl-status:empty { margin: 0; }
.wl-status.err { color: #B42318; font-weight: 600; }
.wl-done { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--mint); color: #14261F; font-size: 1.05rem; }
.wl-done strong { color: #064E3B; }
.wl-done:focus { outline: none; }
.waitlist.is-done .wl-fields { display: none; }
.waitlist.is-done .wl-status { display: none; }
/* on the green hero */
.on-dark .wl-label, .on-dark .wl-opts label { color: #FFFFFF; }
.on-dark .wl-consent { color: #F0FDF7; }
.on-dark .wl-consent a { color: #FFFFFF; }
.on-dark input[type="email"], .on-dark select { border-color: transparent; }
.on-dark .wl-status { color: #F0FDF7; }
.on-dark .wl-status.err { color: #FFFFFF; background: #9B1C1C; border-radius: 8px; padding: 6px 10px; display: inline-block; }
.on-dark .wl-consent input { accent-color: var(--gold); }

/* Gold glints near the button, like the app's fairy dust */
.sparkles { position: absolute; inset: -14px -16px; pointer-events: none; }
.sparkles i {
  position: absolute; width: 12px; height: 12px; background: var(--gold);
  -webkit-clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0; transform: scale(.2) rotate(0deg);
  animation: glint 3.6s ease-in-out infinite;
}
.sparkles i:nth-child(1) { left: -2px; top: 2px; animation-delay: .2s; }
.sparkles i:nth-child(2) { right: 0; top: -4px; width: 9px; height: 9px; animation-delay: 1.3s; }
.sparkles i:nth-child(3) { right: -6px; bottom: 6px; width: 14px; height: 14px; animation-delay: 2.2s; }
.sparkles i:nth-child(4) { left: 30%; bottom: -6px; width: 8px; height: 8px; animation-delay: 2.9s; }
@keyframes glint {
  0%, 62%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  72% { opacity: 1; transform: scale(1) rotate(45deg); }
  84% { opacity: 0; transform: scale(.4) rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { .sparkles { display: none; } }

.pill { display: inline-block; background: var(--gold); color: #14261F; font-weight: 700; font-size: .8rem; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--link); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.center { text-align: center; }
.intro { max-width: 40em; margin: 0 auto 32px; }

/* ---------- Feature deck: a stack of phones you flick through ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tour { overflow-x: hidden; overflow-x: clip; } /* flicked cards fly past the edge without making the page scroll sideways */
.deck-layout { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .deck-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.deck-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }

.deck {
  --cw: min(240px, calc(100vw - 32px - 64px));
  position: relative; display: grid; place-items: center;
  padding: 26px 0 30px; width: 100%;
  perspective: 1600px;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 24px;
}
@media (min-width: 900px) { .deck { --cw: min(270px, calc((100vh - 140px) / 2.24)); padding: 30px 0 34px; } }
.deck:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.deck.is-dragging { cursor: grabbing; }
/* leave room on the right for the cards that peek out behind */
.deck-cards { position: relative; width: var(--cw); height: calc(var(--cw) * 2.238); margin-right: 40px; }
@media (min-width: 900px) { .deck-cards { margin-right: 120px; } }
.dcard {
  position: absolute; left: 0; top: 0;
  transform-origin: 50% 88%;
  transition: transform .62s cubic-bezier(.3, 1.35, .5, 1), opacity .45s ease;
  will-change: transform;
}
.dcard .phone { --w: var(--cw); }
.dcard img { pointer-events: none; }

/* resting stack */
.dcard[data-depth="0"] { z-index: 6; transform: none; }
.dcard[data-depth="1"] { z-index: 5; transform: translate3d(14px, -8px, -60px) rotate(2.5deg); }
.dcard[data-depth="2"] { z-index: 4; transform: translate3d(26px, -14px, -120px) rotate(5deg); }
.dcard[data-depth="3"] { z-index: 3; transform: translate3d(34px, -18px, -180px) rotate(6.5deg); opacity: 0; }
.dcard[data-depth="far"] { z-index: 1; transform: translate3d(34px, -18px, -220px) rotate(6.5deg); opacity: 0; }
@media (min-width: 900px) {
  .dcard[data-depth="1"] { transform: translate3d(20px, -9px, -60px) rotate(3.5deg); }
  .dcard[data-depth="2"] { transform: translate3d(38px, -16px, -120px) rotate(7deg); }
  .dcard[data-depth="3"] { transform: translate3d(50px, -20px, -180px) rotate(9deg); }
  .dcard[data-depth="far"] { transform: translate3d(50px, -20px, -220px) rotate(9deg); }
}

/* hover (or keyboard focus): the deck fans out a little */
@media (hover: hover) and (pointer: fine) {
  .deck:hover .dcard[data-depth="0"], .deck:focus-visible .dcard[data-depth="0"] { transform: translate3d(-24px, 4px, 0) rotate(-4deg); }
  .deck:hover .dcard[data-depth="1"], .deck:focus-visible .dcard[data-depth="1"] { transform: translate3d(28px, -4px, -50px) rotate(4.5deg); }
  .deck:hover .dcard[data-depth="2"], .deck:focus-visible .dcard[data-depth="2"] { transform: translate3d(70px, 0, -100px) rotate(9.5deg); }
  .deck:hover .dcard[data-depth="3"], .deck:focus-visible .dcard[data-depth="3"] { transform: translate3d(108px, 8px, -150px) rotate(14deg); opacity: 1; }
}

/* flicked away: off to the side, then (when the class is removed) back to the bottom of the deck */
.deck .dcard.fly-l, .deck .dcard.fly-r { z-index: 9; opacity: 1; transition: transform .34s cubic-bezier(.25, .7, .35, 1), opacity .34s; }
.deck .dcard.fly-l { transform: translate3d(-118%, -2%, 40px) rotate(-17deg); }
.deck .dcard.fly-r { transform: translate3d(118%, -2%, 40px) rotate(17deg); }
.deck .dcard.no-anim { transition: none; }
.deck .dcard.dragging { transition: none; z-index: 9; }

/* JS adds .pre before the deck is on screen and .in when it arrives: the cards are dealt in */
.deck.pre .dcard { opacity: 0; transform: translate3d(0, 60px, -40px) rotate(-6deg); }
.deck.in .dcard[data-depth="0"] { transition-delay: .18s; }
.deck.in .dcard[data-depth="1"] { transition-delay: .09s; }

@media (prefers-reduced-motion: reduce) {
  .deck .dcard, .deck .dcard[data-depth], .deck .dcard.fly-l, .deck .dcard.fly-r, .deck.pre .dcard,
  .deck:hover .dcard[data-depth], .deck:focus-visible .dcard[data-depth] { transform: none !important; transition: opacity .35s ease !important; }
  .deck .dcard:not([data-depth="0"]) { opacity: 0 !important; }
  .deck .dcard.fly-l, .deck .dcard.fly-r { opacity: 0 !important; }
  .deck-cards { margin-right: 0; }
}

.deck-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.deck-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.deck-btn:hover { border-color: var(--brand); color: var(--brand); }
.deck-btn svg { width: 20px; height: 20px; }
.dots { display: flex; gap: 2px; }
.dots button { width: 22px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--border); transition: width .3s, background-color .3s; }
.dots button[aria-current="true"]::before { width: 18px; background: var(--brand); }
.dots button:hover::before { background: var(--link); }
.deck-hint { margin: 6px 0 0; font-size: .85rem; text-align: center; }
.deck-hint .count { font-variant-numeric: tabular-nums; color: var(--ink); margin-right: 8px; }
.deck-hint .count b { font-weight: 800; }

/* the caption: one feature at a time, crossfading in place (all of them show without JS) */
.feats { display: grid; }
.feat { grid-area: 1 / 1; transition: opacity .3s ease .18s, transform .3s ease .18s, visibility 0s linear .18s; }
.feat:not(.on) { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
@media (prefers-reduced-motion: reduce) { .feat, .feat:not(.on) { transform: none; } }
.feat h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 800; }
.feat ul { padding-left: 1.2em; margin: 0 0 1em; }
.feat li { margin-bottom: .4em; }
.feat .tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); margin-bottom: 10px; }
@media (max-width: 899px) { .feats { max-width: 36rem; margin: 0 auto; } }

/* Closing call to action */
.cta { background: linear-gradient(135deg, #E9F8F0 0%, var(--bg) 70%); border-top: 1px solid var(--border); overflow-x: hidden; overflow-x: clip; }
.cta .wrap { max-width: 44rem; }
.cta h2 { margin-bottom: .3em; }
@media (prefers-color-scheme: dark) { .cta { background: linear-gradient(135deg, #0F2A1F 0%, var(--bg) 70%); } }

/* Free vs Pro */
.plans { display: grid; gap: 20px; }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.35rem; }
.card ul { list-style: none; padding: 0; margin: 0; }
.card li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid var(--border); }
.card li:first-child { border-top: 0; }
.card li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2.5px solid var(--link); border-bottom: 2.5px solid var(--link); transform: rotate(-45deg); }
.card .sub { font-size: .95rem; }
.fine { font-size: .9rem; }

/* Value grid */
.grid3 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid3 .card { box-shadow: none; }
.grid3 h3 { margin-bottom: .3em; }
.grid3 p { margin: 0; font-size: .97rem; }

/* Long-form pages */
.page-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 40px 0 28px; }
.page-head p { max-width: 42em; }
.prose { max-width: 46em; padding-top: 40px; padding-bottom: 64px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 0 0 1.2em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid var(--border); }
.prose th { color: var(--ink); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 12px; padding: 16px 18px; margin: 0 0 1.4em; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 1.4em; font-size: .95rem; }
.toc ol { margin: 0; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 0 0 12px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ink); list-style-position: inside; }
summary::marker { color: var(--link); }
details > div { padding: 0 18px 6px; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }

.btn {
  display: inline-block; background: var(--brand); color: #FFFFFF; text-decoration: none;
  font-weight: 700; padding: 12px 20px; border-radius: 12px; border: 2px solid var(--brand);
}
.btn:hover { text-decoration: underline; }

kbd, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 36px 0 44px; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer p { margin: 0; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }

/* Waitlist page */
.waitlist-page { padding-top: 36px; padding-bottom: 64px; overflow-x: clip; }
.waitlist-page > * { max-width: 40rem; }
.waitlist-page .waitlist { margin-bottom: 24px; }
.wl-target { display: none; margin-bottom: 20px; }
.wl-target:target { display: block; }
.wl-done.wl-target:target ~ .waitlist { display: none; }
.wl-error { padding: 14px 16px; border-radius: 12px; border: 1px solid #F3B4AE; background: #FEF3F2; color: #7A1A12; }
@media (prefers-color-scheme: dark) { .wl-error { background: #3A1512; border-color: #7A2A22; color: #FECDCA; } }

/* Founding testers page */
.btn-gold {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 12px;
  background: var(--gold); color: #14261F; font-weight: 800; text-decoration: none;
  box-shadow: 0 6px 18px rgba(250, 204, 21, .28);
}
.hero a.btn-gold { color: #14261F; }
.btn-gold:hover { background: #FDE047; }
.tester-phone { justify-self: center; }
.tester-phone .phone { --w: clamp(170px, 46vw, 210px); transform: rotate(3deg); }
@media (min-width: 900px) { .tester-phone .phone { --w: 240px; } }
@media (prefers-reduced-motion: reduce) { .tester-phone .phone { transform: none; } }
.testers-deal .card h3 { font-size: 1.25rem; }
.testers-deal .card li { font-size: .97rem; }
.testers-deal .card p + p { margin-top: .8em; }
.cta .wl-target { max-width: 36rem; }
.testers-faq { max-width: 46rem; }
.testers-faq h2 { margin-bottom: .8em; }
/* "Become a founding tester" link under the waitlist forms */
.tester-link { margin: 14px 0 0; font-size: .95rem; font-weight: 600; }
.hero .tester-link a { color: #FFFFFF; }
.waitlist-page .tester-link { margin: -8px 0 20px; }

/* ---------- Home intro (site.js), once per session, never with reduced motion ---------- */
/* intro-gate.js adds .ms-intro before the first paint: a plain green cover until the animation starts.
   If site.js never runs, the cover fades out on its own after 2.5 s. */
html.ms-intro::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, #0E9F6E 0%, #0B7A55 45%, #064E3B 100%);
  animation: intro-failsafe .3s ease 2.5s forwards;
}
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
.sprout-intro { position: fixed; inset: 0; z-index: 101; transition: opacity .25s ease; }
.sprout-intro.intro-out { opacity: 0; }
.intro-bg { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, #0E9F6E 0%, #0B7A55 45%, #064E3B 100%); }
.intro-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; }
.intro-art { height: 40vh; width: auto; aspect-ratio: 77 / 84; overflow: visible; transform-origin: 50% 50%; will-change: transform; }
.intro-word { margin: 0; font-weight: 800; font-size: clamp(2rem, 6vh, 3.4rem); letter-spacing: -0.03em; line-height: 1; opacity: 0; }
.intro-word .wm-mile { color: #FFFFFF; }
.intro-word .wm-sprout { color: var(--mint); }
.intro-skip {
  position: absolute; right: 20px; bottom: 20px; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  color: #FFFFFF; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; padding: 8px 16px;
}
.intro-skip:hover { background: rgba(255, 255, 255, .24); }
@media (prefers-reduced-motion: reduce) { .sprout-intro, html.ms-intro::after { display: none; } }

/* The sprout mark in the hero, so the brand is there after the intro too */
.hero-sprout { display: block; width: 52px; height: auto; margin: 0 0 14px; filter: drop-shadow(0 4px 10px rgba(3, 28, 20, .35)); }
@media (min-width: 900px) { .hero-sprout { width: 64px; } }

/* ---------- Free & Pro: Pro is the star ---------- */
.plans { align-items: center; }
.plan-free { box-shadow: none; }
.plan-free li::before { border-color: var(--ink); }
.plan-pro {
  position: relative; overflow: hidden; isolation: isolate; color: #F0FDF7; border: 0; padding: 30px 28px 28px;
  background:
    linear-gradient(rgba(4, 40, 30, .30), rgba(4, 40, 30, .30)),
    linear-gradient(135deg, #0E9F6E 0%, #053D2E 100%);
  box-shadow: 0 2px 4px rgba(3, 28, 20, .18), 0 18px 48px rgba(11, 122, 85, .35), 0 0 0 1px rgba(110, 231, 183, .25);
}
.plan-pro .pro-mark { position: absolute; z-index: -1; right: -18%; bottom: -14%; width: 85%; height: auto; fill: #FFFFFF; opacity: .07; pointer-events: none; }
.plan-pro h3, .plan-pro h4, .plan-pro strong { color: #FFFFFF; }
.plan-pro .sub { color: var(--mint); }
.plan-pro h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); margin: 18px 0 2px; }
.plan-pro li { border-top-color: rgba(255, 255, 255, .16); }
.plan-pro li::before { border-color: var(--gold); }
.plan-pro .pro-title { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; }
.pro-badge-wrap { position: relative; display: inline-flex; }
.pro-badge { display: inline-block; background: var(--gold); color: #713F12; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; line-height: 1.2; }
.pro-badge-wrap .sparkles { inset: -12px -18px; }
.pro-ribbon {
  display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: rgba(255, 255, 255, .14); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .3);
}
.pro-cta { margin: 22px 0 0; }
@media (max-width: 799px) { .plan-pro { order: -1; } }
@media (min-width: 800px) {
  .plans { grid-template-columns: 1fr 1.08fr; gap: 28px; }
  .plan-pro { transform: scale(1.03); transform-origin: 50% 50%; }
}

/* Countries */
.grid4 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.grid4 .card { box-shadow: none; }
.grid4 p { margin: 0; font-size: .97rem; }
.country h3 { display: flex; align-items: center; gap: 12px; margin-bottom: .55em; }
.flag { display: block; }
.flag-lg { width: 40px; height: 28px; border-radius: 5px; flex: none; box-shadow: 0 0 0 1px rgba(20, 38, 31, .14), 0 2px 6px rgba(20, 38, 31, .12); }

/* Languages */
.lang-chips { list-style: none; padding: 0; margin: 8px auto 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 46rem; }
.lang-chips li {
  padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: 1.02rem; line-height: 1.3;
  background: var(--bg); color: var(--ink); border: 1px solid var(--border);
}
.langs .intro { margin-bottom: 0; }

/* Comparison table: scrolls inside its own box on small screens */
.compare-scroll { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.compare-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.compare-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .93rem; line-height: 1.45; }
.compare-checked { margin: 12px 0 0; font-weight: 600; color: var(--ink); }
.compare-table tbody th, .compare-table thead td { position: sticky; left: 0; z-index: 1; background: var(--surface); }
@media (max-width: 820px) { .compare-table tbody th { min-width: 8.5rem; box-shadow: 1px 0 0 var(--border); } }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--border); }
.compare-table thead th, .compare-table thead td { border-top: 0; font-size: 1rem; color: var(--ink); padding-top: 16px; }
.compare-table tbody th { color: var(--ink); font-weight: 600; width: 20%; }
.compare-table b { color: var(--ink); }
.compare-table .us-col { background: var(--mint); color: #14261F; }
.compare-table .us-col b, .compare-table thead .us-col, .compare-table .us-col a { color: #064E3B; }
.compare-table sup { font-size: .7em; margin-left: 1px; }
.compare-table sup a { text-decoration: none; font-weight: 700; }
.compare-notes { margin: 8px 0 0; padding-left: 1.3em; }
.compare-notes li { margin-bottom: .3em; }
.scroll-hint { display: none; margin: 0 0 8px; font-size: .85rem; text-align: right; }
@media (max-width: 820px) { .scroll-hint { display: block; } }
