/* =====================================================================
   JOELU — marketing site design system
   Nunito display + Plus Jakarta Sans. Mint canvas, deep-teal accent,
   sunshine only where it means "play". Every colour is sampled from the logo
   artwork (Joelu-app/BRAND.md) and mirrors the app's parent theme
   (lib/theme/parent_theme.dart), so site, logo and product are one thing.
   ===================================================================== */

:root {
  /* Surfaces */
  --canvas: #f6fbf9;
  --canvas-deep: #eaf5f1;
  --surface: #ffffff;
  --mist: #e3f2ed;
  --mist-soft: #f0f9f5;
  --line: rgba(28, 45, 47, 0.10);

  /* Ink — the logo's tagline colour */
  --ink: #1c2d2f;
  --ink-soft: #5a6e6c;
  --ink-faint: #93a6a3;

  /* Brand — straight off the logo */
  --mint: #adf6d2;
  --mint-deep: #17795a;
  --aqua: #7be8e4;
  --accent: #12736f;
  --accent-deep: #0f6360;
  --accent-soft: #e1f3f1;
  --sun: #f4cc52;
  --sun-deep: #d0a43e;

  /* Meaning */
  --maths: #2e7ba0;
  --language: #c0603a;
  --discovery: #4a7a3f;
  --positive: #17795a;

  /* Elevation */
  --sh-xs: 0 1px 2px rgba(20, 40, 42, 0.05);
  --sh-sm: 0 2px 6px rgba(20, 40, 42, 0.04), 0 10px 24px -14px rgba(20, 40, 42, 0.18);
  --sh-md: 0 3px 8px rgba(20, 40, 42, 0.05), 0 26px 50px -24px rgba(20, 40, 42, 0.26);
  --sh-lg: 0 6px 16px rgba(20, 40, 42, 0.06), 0 54px 100px -36px rgba(20, 40, 42, 0.4);

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.44, 1);

  --font-display: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------------ base */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* height:auto is not optional: the width/height attributes on every <img>
   are there to reserve space, and without this they become the used size. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
::selection { background: var(--sun); color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 200; }
.skip:focus { left: 0; top: 0; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* Gradient accent inside a headline — the logo's teal into its green.
   The padding/margin pair keeps descenders inside the clipped paint box. */
.hl {
  background: linear-gradient(96deg, var(--accent-deep) 0%, var(--accent) 48%, var(--mint-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.12em; margin-bottom: -0.12em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(18, 115, 111, 0.09);
  padding: 7px 15px; border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.lead { color: var(--ink-soft); font-size: 17.5px; line-height: 1.6; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 16px; padding: 15px 26px; border-radius: var(--r-pill);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { transform: translateY(-2px); background: #2a4245; box-shadow: var(--sh-md); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-nav { padding: 10px 20px; font-size: 14.5px; }

.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.stores img { height: 50px; width: auto; border-radius: 10px; transition: transform 0.3s var(--spring); }
.stores a:hover img { transform: translateY(-3px) scale(1.02); }
.stores-sm img { height: 42px; }
.stores-center { justify-content: center; }

/* Pre-launch: the badges are inert, so they read as "not yet" — desaturated,
   dimmed, no hover lift, no pointer. */
.stores-block.is-soon .stores img { filter: grayscale(1); opacity: 0.45; }
.store-soon { display: inline-flex; cursor: default; }
.stores-note {
  margin: 12px 0 0; font-size: 14px; color: var(--ink-faint);
}
.stores-center + .stores-note { text-align: center; }

/* ---------------------------------------------------------------- header */

.header { position: sticky; top: 0; z-index: 100; padding: 14px 0; transition: padding 0.35s var(--ease); }
.header .nav {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 64px; padding: 0 12px 0 18px; border-radius: var(--r-pill);
  background: rgba(246, 251, 249, 0.62);
  border: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.header.scrolled { padding: 10px 0; }
.header.scrolled .nav {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  box-shadow: 0 14px 40px -20px rgba(20, 40, 42, 0.35);
}
/* The brand mark is the real wordmark artwork, so it is sized by width and
   lets its own aspect ratio pick the height. */
.brand { display: flex; align-items: center; flex: none; }
.brand-mark { width: 112px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  padding: 9px 14px; border-radius: var(--r-pill); transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--accent-deep); background: rgba(18, 115, 111, 0.08); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.lang { display: inline-flex; background: rgba(20, 40, 42, 0.05); border-radius: var(--r-pill); padding: 3px; }
.lang a {
  font-size: 12.5px; font-weight: 800; color: var(--ink-faint); letter-spacing: 0.03em;
  padding: 6px 11px; border-radius: var(--r-pill); transition: color 0.2s, background 0.25s, box-shadow 0.25s;
}
.lang a.active { background: #fff; color: var(--ink); box-shadow: var(--sh-xs); }

.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); align-items: center; justify-content: center; flex: none;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ''; display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.menu-btn span::before { position: absolute; top: -5.5px; }
.menu-btn span::after { position: absolute; top: 5.5px; }
.menu-btn[aria-expanded='true'] span { background: transparent; }
.menu-btn[aria-expanded='true'] span::before { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span::after { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav { padding: 10px 0 18px; }
.mobile-nav .wrap { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a { padding: 13px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-cta { margin-top: 14px; border-bottom: 0; justify-content: center; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; padding: 44px 0 64px; }
.hero-mesh { position: absolute; inset: -160px 0 -60px; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-mesh::before {
  content: ''; position: absolute; inset: 0;
  background:
    /* Mint sits under the logo and the sunshine stays low and to the right:
       a yellow wash behind the wordmark muddies the sun that is already in it. */
    radial-gradient(46% 42% at 12% 8%, rgba(173, 246, 210, 0.42), transparent 70%),
    radial-gradient(42% 46% at 88% 26%, rgba(123, 232, 228, 0.34), transparent 72%),
    radial-gradient(50% 40% at 64% 96%, rgba(244, 204, 82, 0.22), transparent 74%);
}
.hero-mesh::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: linear-gradient(180deg, transparent, var(--canvas));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.035em; }
.hero .lead { margin-top: 22px; max-width: 30ch; font-size: clamp(17px, 1.5vw, 19px); }
.hero-note { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-note li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.hero-note .icon { color: var(--positive); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 620px; }

.float-buddy {
  position: absolute; z-index: 6; width: 110px; height: auto;
  filter: drop-shadow(0 16px 26px rgba(20, 40, 42, 0.28));
  animation: bob 7s var(--ease) infinite;
}
.fb-1 { top: 6%; left: -2%; animation-delay: -0.6s; }
.fb-2 { bottom: 6%; right: -1%; width: 100px; animation-delay: -3.4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}

.float-card {
  position: absolute; z-index: 7; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 16px; padding: 11px 16px;
  box-shadow: 0 20px 44px -18px rgba(20, 40, 42, 0.4);
  animation: bob-soft 8s var(--ease) infinite;
}
@keyframes bob-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.float-card .icon { width: 20px; height: 20px; color: var(--accent); }
.fc-value { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 900; letter-spacing: -0.02em; }
.fc-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-faint); }
.fc-1 { top: 14%; right: -4%; animation-delay: -1.4s; }
.fc-2 { bottom: 18%; left: -6%; animation-delay: -3.8s; }

/* ---------------------------------------------------------------- device */

.device {
  position: relative; margin: 0; width: 292px; flex: none;
  border-radius: 46px; padding: 10px;
  background: linear-gradient(160deg, #3a3630, #17140f 62%);
  box-shadow: 0 6px 16px rgba(20, 18, 14, 0.1), 0 46px 90px -34px rgba(20, 18, 14, 0.5),
    0 0 0 1.4px rgba(255, 255, 255, 0.14) inset;
  transition: transform 0.6s var(--ease);
}
.device::before { /* dynamic island */
  content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; background: #0b0906; border-radius: 999px; z-index: 3;
}
.device-screen { border-radius: 37px; overflow: hidden; background: #f1f7f5; }
.device-screen img { width: 100%; height: auto; display: block; }
.device figcaption {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  font-size: 12.5px; font-weight: 700; color: var(--ink-faint); white-space: nowrap;
}
.device-hero { transform: rotate(-2.5deg); }
.hero-visual:hover .device-hero { transform: rotate(-1deg) translateY(-8px); }

.device-row {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2.4vw, 34px);
  margin-bottom: 62px;
}
.device-row .device { width: clamp(180px, 21vw, 258px); border-radius: clamp(28px, 3.4vw, 42px); padding: clamp(6px, 0.8vw, 9px); }
.device-row .device::before { width: 64px; height: 19px; top: 16px; }
.device-row .device-screen { border-radius: clamp(22px, 2.8vw, 34px); }
.device-row .tilt-0 { transform: rotate(-3deg) translateY(10px); }
.device-row .tilt-1 { transform: translateY(-14px) scale(1.04); z-index: 2; }
.device-row .tilt-2 { transform: rotate(3deg) translateY(10px); }
.device-row .device:hover { transform: translateY(-16px) scale(1.05); z-index: 3; }

/* -------------------------------------------------------------- sections */

.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-alt { background: var(--canvas-deep); }
.section-head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 52px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); }
.section-head p { color: var(--ink-soft); font-size: 17.5px; margin-top: 14px; }

.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 26px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps > * { min-width: 0; }
.step { transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: var(--r-pill); background: linear-gradient(150deg, var(--sun), var(--sun-deep));
  color: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: 15px; margin-bottom: 16px;
  box-shadow: 0 8px 18px -8px rgba(245, 166, 35, 0.7);
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* ------------------------------------------------------------ leerdoelen */

.tabs { display: none; gap: 4px; padding: 5px; background: rgba(20, 40, 42, 0.05); border-radius: var(--r-md); margin-bottom: 26px; }
.js .tabs { display: inline-flex; flex-wrap: wrap; }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2;
  padding: 10px 20px; border-radius: 15px; color: var(--ink-soft); font-weight: 700; font-size: 15px;
  transition: background 0.25s, color 0.2s, box-shadow 0.25s;
}
.tab .tab-ages { font-size: 11.5px; font-weight: 600; color: var(--ink-faint); }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-xs); }

.panel { margin-bottom: 30px; }
.js .panel { margin-bottom: 0; }
.js .panel:not(.is-active) { display: none; }
.panel-title { font-size: 20px; margin-bottom: 16px; }
.js .panel-title { display: none; }

.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.subject-grid > * { min-width: 0; }
.subject { padding: 22px 22px 24px; }
.subject header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.subject h3 { font-size: 19px; flex: 1; }
.subject-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); flex: none; }
.subject-count {
  font-size: 12.5px; font-weight: 800; color: var(--ink-faint);
  background: rgba(20, 40, 42, 0.05); border-radius: var(--r-pill); padding: 3px 10px;
}
.subject-maths .subject-dot { background: var(--maths); }
.subject-language .subject-dot { background: var(--language); }
.subject-discovery .subject-dot { background: var(--discovery); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li {
  background: var(--mist-soft); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 6px 13px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s;
}
.subject-maths .chips li:hover { border-color: var(--maths); color: var(--maths); }
.subject-language .chips li:hover { border-color: var(--language); color: var(--language); }
.subject-discovery .chips li:hover { border-color: var(--discovery); color: var(--discovery); }

.fineprint { color: var(--ink-faint); font-size: 13px; line-height: 1.6; margin-top: 26px; max-width: 74ch; }
.fineprint.center { max-width: none; text-align: center; margin-top: 16px; }

/* ----------------------------------------------------------------- split */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split-reverse .split-art { order: 2; }
.rounded { border-radius: var(--r-xl); box-shadow: var(--sh-md); }
.split h2 { font-size: clamp(28px, 3.8vw, 42px); }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 16px; }
.ticks .icon { margin-top: 5px; color: var(--positive); }
.ticks strong { color: var(--ink); font-weight: 700; }

/* ----------------------------------------------------------------- bento */

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento > * { min-width: 0; }
.bento-main {
  grid-column: 1 / -1; padding: 44px 24px 70px;
  background: linear-gradient(170deg, #fff, var(--mist-soft));
}
.bento-main .device-row { margin-bottom: 0; }
.device-row-sm .device { width: clamp(160px, 18vw, 224px); }
.feature { transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.feature-icon .icon { width: 21px; height: 21px; }
.feature h3 { font-size: 17.5px; margin-bottom: 5px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* ----------------------------------------------------------------- plans */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; align-items: stretch; }
.plans > * { min-width: 0; }
.plan { position: relative; text-align: center; padding: 34px 24px 30px; transition: transform 0.35s var(--spring); }
.plan:hover { transform: translateY(-4px); }
.plan h3 { font-size: 16px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0; }
/* The badge and the outline are enough to mark the recommended plan — a tinted
   background and a heavier shadow on top of those only made it glow. */
.plan-featured { box-shadow: var(--sh-sm), 0 0 0 2px var(--ink) inset; }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(150deg, var(--sun), var(--sun-deep)); color: var(--ink);
  font-size: 12.5px; font-weight: 800; padding: 6px 14px; border-radius: var(--r-pill);
  box-shadow: 0 10px 22px -10px rgba(208, 164, 62, 0.85); white-space: nowrap;
}
.price { font-family: var(--font-display); font-size: 38px; font-weight: 900; letter-spacing: -0.04em; margin-top: 12px; }
.price-per { font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.plan-detail { color: var(--ink-soft); font-size: 14.5px; margin-top: 12px; }

.includes { padding: 30px; }
.includes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.includes li { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.includes .icon { color: var(--positive); }

/* ------------------------------------------------------------------- faq */

.faq { display: grid; gap: 12px; }
.faq details { padding: 0; transition: box-shadow 0.3s var(--ease); }
.faq details[open] { box-shadow: var(--sh-md); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 26px; font-weight: 700; font-size: 16.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 9px; height: 9px; flex: none;
  border-right: 2.2px solid var(--ink-faint); border-bottom: 2.2px solid var(--ink-faint);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 26px 24px; color: var(--ink-soft); }

/* ------------------------------------------------------------- final cta */

.final-cta { padding: 0 0 clamp(56px, 8vw, 100px); }
.final-inner {
  display: grid; grid-template-columns: 1fr 0.86fr; align-items: center; gap: 24px;
  border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(135deg, #e3f5ef, #fff 60%);
  box-shadow: var(--sh-md);
}
.final-copy { padding: clamp(34px, 5vw, 60px); }
.final-copy h2 { font-size: clamp(28px, 3.6vw, 42px); }
.final-copy p { color: var(--ink-soft); margin-top: 10px; font-size: 17px; }
.final-inner > img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }

/* ---------------------------------------------------------------- footer */

.footer { background: var(--surface); border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 70px) 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 34px; }
.footer-brand .brand-mark { width: 132px; }
.footer-brand p { color: var(--ink-soft); margin-top: 12px; max-width: 32ch; }
.footer-col h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint);
  margin-bottom: 14px; font-family: var(--font); font-weight: 800;
}
.footer-col a { display: block; padding: 6px 0; color: var(--ink-soft); font-size: 15.5px; font-weight: 600; }
.footer-col a:hover { color: var(--accent-deep); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--ink-faint); font-size: 13.5px;
}

/* ----------------------------------------------------------------- legal */

.legal { padding: clamp(40px, 6vw, 76px) 0 clamp(52px, 8vw, 96px); }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 16px; }
.legal h2 { font-size: 21px; margin: 36px 0 8px; }
.legal p { color: var(--ink-soft); }
.legal .back { margin-top: 44px; }
.legal .back a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-deep); font-weight: 700; }

/* ---------------------------------------------------------------- motion */

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

/* ------------------------------------------------------------ responsive */

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .header .nav { padding-right: 10px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero .lead { max-width: none; }
  .hero-visual { min-height: 0; margin-top: 8px; }
  .fc-1 { right: 2%; }
  .fc-2 { left: 2%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .split, .final-inner { grid-template-columns: 1fr; }
  .split-reverse .split-art { order: 0; }
  .final-inner > img { order: -1; max-height: 260px; }
  .steps, .subject-grid, .plans { grid-template-columns: 1fr; }
  .includes ul { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .device-row { gap: 12px; }
  .device-row .tilt-2 { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn-nav { display: none; }
  .section { padding: 46px 0; }
  .hero { padding: 26px 0 40px; }
  .hero .device { width: 248px; }
  .fc-1 { right: 0; top: 10%; }
  .fc-2 { left: 0; bottom: 12%; }
  .fb-1 { left: -4%; }
  .fb-2 { right: -4%; }
  /* Swipe through the screenshots: three stacked phones would add 1600px of
     scrolling to every section. */
  .device-row {
    display: flex; flex-direction: row; align-items: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 16px; margin: 0 -24px 34px; padding: 4px 24px 6px;
    scrollbar-width: none;
  }
  .device-row::-webkit-scrollbar { display: none; }
  .device-row .device { width: 236px; transform: none; scroll-snap-align: center; }
  .device-row .device:hover { transform: none; }
  .device-row .tilt-2 { display: block; }
  .device figcaption { position: static; transform: none; margin-top: 12px; text-align: center; }
  .bento { grid-template-columns: 1fr; }
  .bento-main { padding: 30px 18px 56px; }
  .float-buddy { width: 78px; }
  .fb-2 { width: 70px; }
  .float-card { padding: 9px 13px; }
  .includes ul { grid-template-columns: 1fr; }
  .stores img { height: 46px; }
  .stores { gap: 10px; }
  .section-head { margin-bottom: 26px; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .faq summary { padding: 17px 20px; }
  .faq details p { padding: 0 20px 20px; }
  .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
