/* ==========================================================================
   Quokka — landing page
   Palette + type tokens live in assets/tokens.css (sampled from the real app
   icon, AccentColor and launch gradient). This file is layout only.

   Composition follows the marketing-site patterns that work for consumer iOS
   apps: a centred hero with an accent-coloured phrase and one primary CTA
   (PayPal), a device flanked by floating UI cards lifted from the product
   (komoot), tinted section bands with white cards, and a closing gradient CTA.

   ⚠️ Cache-busting: whenever you edit this file, bump its ?v=N in every
   referencing file (index.html, 404.html) — Cloudflare serves CSS with
   max-age=14400 and will pair new HTML with a stale stylesheet.
   ========================================================================== */

* { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--body);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: inline-block; max-width: 100%; vertical-align: middle; border: 0; }

/* --- buttons --------------------------------------------------------------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(1, 98, 255, 0.28);
}
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(1, 98, 255, 0.34); }
/* notified state — the CTA confirms the mail client opened (no backend) */
.btn.is-notified { background: var(--green-deep); color: #fff; box-shadow: none; cursor: default; }
.btn.is-notified:hover { background: var(--green-deep); transform: none; }
.btn--ghost { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: #c9d8f0; background: var(--panel); }
.btn--onbrand { background: #fff; color: var(--blue-deep); box-shadow: 0 10px 26px rgba(0, 20, 60, 0.22); }
.btn--onbrand:hover { transform: translateY(-1px); color: var(--blue-deep); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* --- hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-soft);
}
/* soft brand wash behind the device, echoing the icon gradient */
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 149, 255, 0.16), rgba(1, 186, 255, 0) 66%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) 24px clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__eyebrow {
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.tag {
  background: var(--grad-brand);
  color: #fff;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.hero__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.hl {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* keeps the gradient text legible if background-clip is unsupported */
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--muted);
}
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__fineprint {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.875rem;
  color: var(--faint);
}
.hero__fineprint span { display: inline-flex; align-items: center; gap: 7px; }
.hero__fineprint span::before {
  content: "";
  width: 16px; height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* --- hero device -----------------------------------------------------------
   Real iPhone bezel (transparent screen cutout) over a CSS build of the kid
   home screen, with two floating product cards for depth.

   Screen inset percentages are measured from the bezel's alpha channel
   (source 428×875: cutout at x 23, y 22, 382×831, corner radius ≈67px), so the
   screen lines up exactly at any size. Re-measure if the asset is re-exported —
   don't eyeball these. Swap .device__screen's contents for a real screenshot
   <img> once App Store screenshots are final; the frame geometry stays valid. */
.hero__device {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
}
.device {
  position: relative;
  z-index: 1;
  width: clamp(264px, 31vw, 322px);
  aspect-ratio: 428 / 875;
  container-type: inline-size;
  filter: drop-shadow(0 30px 60px rgba(1, 73, 255, 0.24));
}
.device__screen {
  position: absolute;
  left: 5.374%;
  top: 2.514%;
  width: 89.252%;
  height: 94.971%;
  z-index: 1;
  overflow: hidden;
  background: #eaf3ff;
  border-radius: 44px; /* fallback where container queries are unsupported */
  border-radius: 15.654cqw;
}
/* The screenshot is a 1206x2622 iPhone capture and the cutout is 382x831 —
   the aspect ratios differ by 0.06%, so it maps 1:1 with no distortion and the
   screenshot's own Dynamic Island lands under the one drawn on the frame. */
.device__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.device__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
}

/* floating product cards around the device */
.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
}
.float__icon {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.float__icon--green { background: rgba(89, 172, 48, 0.15); color: var(--green-deep); }
.float__icon--star { background: rgba(255, 204, 0, 0.22); color: #b98a00; }
.float__title { display: block; font-weight: 600; color: var(--ink); }
.float__meta { display: block; font-size: 0.75rem; color: var(--muted); }
/* Anchored off the centre line rather than the container edges: the device is
   centred, so `calc(50% + 140px)` keeps each card just outside the bezel at any
   container width instead of drifting across the screen on wide viewports. */
.float--approve { top: 17%; right: calc(50% + 152px); }
.float--reward { bottom: 20%; left: calc(50% + 152px); }

/* --- sections -------------------------------------------------------------- */
.section { padding: clamp(64px, 8vw, 104px) 24px; }
.section--tint { background: var(--panel); }
.section__inner { max-width: 1080px; margin: 0 auto; }
.section__inner--narrow { max-width: 720px; }
.section__head { max-width: 640px; }
.section__head--center { margin: 0 auto; text-align: center; }
.section__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-accent);
}
.section__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--ink);
  text-wrap: balance;
}
.section__lead {
  margin: 16px 0 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
}

/* --- how it works ---------------------------------------------------------- */
.steps {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 6px 14px rgba(1, 98, 255, 0.26);
}
.step__title { margin: 18px 0 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.step__text { margin: 10px 0 0; font-size: 0.9875rem; line-height: 1.65; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .step:hover { transform: none; }
}

/* --- features -------------------------------------------------------------- */
.features {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  color: var(--blue);
}
.feature__icon--blue { background: var(--panel-2); color: var(--blue); }
.feature__icon--star { background: rgba(255, 204, 0, 0.22); color: #9a6f00; }
.feature__icon--green { background: rgba(89, 172, 48, 0.15); color: var(--green-deep); }
.feature__glyph { width: 24px; height: 24px; display: block; }
.float__icon .feature__glyph { width: 17px; height: 17px; }
.feature__title { margin: 18px 0 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.feature__text { margin: 9px 0 0; font-size: 0.9875rem; line-height: 1.65; color: var(--muted); }


/* --- pricing plans ---------------------------------------------------------
   No numbers are hard-coded here on purpose: App Store prices are localised per
   storefront, so the page describes the plan STRUCTURE and points at the store
   for the figure. Never paste a price in — it would be wrong in most countries
   and stale in the rest. */
.plans {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--grad-brand) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
}
.plan__badge {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.plan__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
}
.plan__price { margin: 6px 0 0; font-size: 1rem; font-weight: 600; color: var(--blue); }
.plan__note { margin: 12px 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.plans__disclosure {
  max-width: 74ch;
  margin: 32px auto 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}
.plans__disclosure strong { color: var(--body); }
.plans__disclosure a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.plans__actions { margin-top: 28px; display: flex; justify-content: center; }

/* pre-launch: pricing figures don't exist publicly yet */
.plans__soon {
  margin: 22px auto 0;
  max-width: 60ch;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* --- privacy strip --------------------------------------------------------- */
.strip {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.strip__item { text-align: center; }
.strip__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.strip__label { margin: 4px 0 0; font-size: 0.875rem; color: var(--muted); }

/* --- reviews (empty until real App Store reviews exist) -------------------- */
.reviews__rating { margin: 18px 0 0; font-size: 1.0625rem; color: var(--muted); }
.reviews__stars { color: var(--star); letter-spacing: 2px; }
.reviews__rating strong { color: var(--ink); }
.reviews { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.review__text { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.review__translation { margin: 10px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.review__by { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }
.review__region { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--faint); }

/* --- FAQ ------------------------------------------------------------------- */
.faq { margin: 40px 0 0; display: grid; gap: 12px; }
.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.faq__q { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.faq__a { margin: 10px 0 0; font-size: 1rem; line-height: 1.7; color: var(--muted); }
.faq__a a { color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.faq__a a:hover { color: var(--blue-deep); }

/* --- closing CTA ----------------------------------------------------------- */
.cta-band { padding: 0 24px clamp(64px, 8vw, 104px); }
.cta-band__inner {
  position: relative;
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 76px) 32px;
  background: var(--grad-brand);
  border-radius: 34px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band__inner::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 64%);
  pointer-events: none;
}
.cta-band__title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
}
.cta-band__sub {
  position: relative;
  margin: 16px auto 0;
  max-width: 48ch;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
}
.cta-band__actions { position: relative; margin-top: 30px; display: flex; justify-content: center; }
.store-link img { display: block; height: 54px; width: auto; }

/* --- footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.site-footer__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-footer__brand img { width: 32px; height: 32px; border-radius: 9px; }
.site-footer__brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; }
.site-footer__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer__link:hover { color: var(--blue); }
.site-footer__copyright { font-size: 0.8125rem; color: var(--faint); }

/* --- responsive ------------------------------------------------------------ */
@media screen and (max-width: 980px) {
  .steps, .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media screen and (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__fineprint { justify-content: center; }
  .section__head { margin-left: auto; margin-right: auto; text-align: center; }
  .reviews { grid-template-columns: 1fr; }
  /* tighter to the device on narrow screens */
  .float--approve { top: 11%; right: calc(50% + 142px); }
  .float--reward { bottom: 13%; left: calc(50% + 142px); }
}

@media screen and (max-width: 680px) {
  .steps, .features { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
  .float { display: none; }
}
