/* Rising Maple home page (public/landing.html). Mobile first.
   The look: the app's blue sky as the base, white and cream cards with a tinted drop edge, deep navy
   words, and maple accents (red-orange #E4492B, amber #FFB21F, maple ink #A8321A for words) on
   small things only: heading strokes, number badges, icons, leaves. Sections meet at a soft hill edge
   with two or three small leaves. Motion is transform/opacity only and stops under reduced motion.
   The learn pages (public/learn/) load this file too, then /landing/learn.css. Colours mirror src/ui/theme/tokens.ts (BT, MAPLE). */
@font-face { font-family: "Fredoka"; src: url("/landing/fredoka.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/landing/nunito-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/landing/nunito-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #12224d;
  --heading: #12366e;
  --muted: #46557f;
  --sky: #eaf6ff;
  --sky-deep: #cfe9ff;
  --cream: #fffaf1;
  --paper: #ffffff;
  --line: #dfe8fb;
  --edge: #cfdcf5;
  --teal: #087268;
  --teal-top: #0b8478;
  --teal-edge: #054e47;
  --leaf: #e4492b;
  --amber: #ffb21f;
  --maple-ink: #a8321a;
  --maple-wash: #ffefe2;
  --display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(18px, 5vw, 40px);
  --card: 0 4px 0 var(--edge), 0 14px 30px rgba(18, 54, 110, 0.1);
  /* No accent stripes (owner, 2026-11-27): a card that stands out on white has a 1px outline and a stronger
     tinted drop edge; a note is a soft tint with a fainter outline. Emphasis is a small round icon badge
     beside the heading (.badge-i), never a coloured top band or left stripe. Mirrors BT.outline in tokens.ts. */
  --outline: #a9bde6;
  --outline-soft: #cfdcf5;
  --card-lift: 0 5px 0 #bccbed, 0 14px 30px rgba(18, 54, 110, 0.1);
  --badge-bg: var(--maple-wash);
  --badge-edge: #f6cdb4;
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8321a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-again: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087268' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 12a7.5 7.5 0 1 1-2.2-5.3'/%3E%3Cpath d='M19.5 4.5v4h-4'/%3E%3C/svg%3E");
  --i-bulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8321a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.7.6 1.1 1.3 1.1 2.2h5c0-.9.4-1.6 1.1-2.2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
  --i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8321a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.2-7 10-4-1.8-7-5.5-7-10V6z'/%3E%3Cpath d='M8.8 12l2.2 2.2 4.3-4.4'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 1.0625rem/1.55 var(--body);
  background: linear-gradient(180deg, var(--sky) 0, #f4f9ff 45%, var(--cream) 100%) fixed, var(--sky);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--heading); margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: #1b65b3; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.defs { position: absolute; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
:focus-visible { outline: 3px solid #1f6fd8; outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }

/* Buttons: the app's soft main button (teal, a solid drop edge, a soft glow) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  font: 600 1.125rem/1 var(--display); color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, var(--teal-top), #076a60); border-radius: 18px;
  box-shadow: 0 4px 0 var(--teal-edge), 0 12px 22px rgba(5, 78, 71, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--teal-edge), 0 14px 26px rgba(5, 78, 71, 0.26); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal-edge); }
.btn-lg { min-height: 60px; padding: 0 38px; font-size: 1.3125rem; border-radius: 20px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 1rem; border-radius: 14px; box-shadow: 0 3px 0 var(--teal-edge); }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: var(--paper); color: var(--heading); box-shadow: 0 4px 0 var(--edge), 0 10px 20px rgba(18, 54, 110, 0.1); }
.btn-ghost:hover { box-shadow: 0 5px 0 var(--edge), 0 12px 22px rgba(18, 54, 110, 0.14); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--edge); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 24px; }
.actions.center { justify-content: center; }
.quiet { display: inline-flex; align-items: center; min-height: 48px; padding: 0 6px; font-weight: 700; color: var(--heading); text-underline-offset: 4px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  /* Wide screens: the logo and the buttons stay in the page's 1240 px column instead of running to the window's edges. */
  padding: 8px max(var(--gutter), calc((100% - 1240px) / 2)); background: rgba(255, 255, 255, 0.94); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(18, 54, 110, 0.06);
}
.logo { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; text-decoration: none; font: 600 1.375rem/1 var(--display); color: var(--heading); white-space: nowrap; }
.logo b { font-weight: 600; color: var(--maple-ink); }
.nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.header .logo { min-width: 0; }
.header .btn-sm { flex: none; white-space: nowrap; }
/* Small phones (375 px): the logo, Sign in and Start free fit the header without the button running off the edge. */
@media (max-width: 400px) {
  .header { gap: 6px; }
  .logo { gap: 6px; font-size: 1.15rem; }
  .login { padding: 0 6px; }
  .header .btn-sm { padding: 0 12px; }
}
.login { display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px; font-weight: 700; color: var(--heading); text-decoration: none; white-space: nowrap; }
.login:hover { text-decoration: underline; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #bfe6ff 0, #d9f0ff 60%, #e6f4ff 100%); }
.hero-copy { position: relative; z-index: 2; padding: 30px var(--gutter) 6px; max-width: 640px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--paper); color: var(--maple-ink); font: 700 0.875rem/1.2 var(--body); letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 2px 0 var(--edge); }
.hero h1 { margin-top: 14px; font-size: clamp(2.25rem, 9.4vw, 3.75rem); letter-spacing: -0.02em; text-wrap: balance; }
.hero .lead { margin-top: 14px; font-size: clamp(1.0625rem, 4.4vw, 1.3125rem); color: var(--ink); text-wrap: pretty; }
.hero .actions { justify-content: center; }
.hero-note { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); text-wrap: pretty; }
.hero-strip { display: none; }
.hero-art { display: block; position: relative; z-index: 1; margin-top: 6px; }
.hero-art img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%); mask-image: linear-gradient(180deg, transparent 0, #000 16%); }

/* A few leaves drifting down the hero */
.drift { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.drift svg { position: absolute; top: -40px; width: 26px; height: 22px; fill: var(--leaf); stroke: var(--leaf); opacity: 0; animation: drift 13s linear infinite; }
.drift .l1 { left: 8%; animation-delay: 0s; }
.drift .l2 { left: 30%; width: 20px; height: 17px; fill: var(--amber); stroke: var(--amber); animation-delay: 3.5s; animation-duration: 16s; }
.drift .l3 { left: 58%; animation-delay: 6s; animation-duration: 14s; }
.drift .l4 { left: 78%; width: 18px; height: 15px; fill: var(--amber); stroke: var(--amber); animation-delay: 9s; animation-duration: 17s; }
.drift .l5 { left: 92%; width: 22px; height: 19px; animation-delay: 1.5s; animation-duration: 15s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.9; }
  50% { transform: translate3d(-46px, 46vh, 0) rotate(160deg); opacity: 0.9; }
  92% { opacity: 0.85; }
  100% { transform: translate3d(28px, 96vh, 0) rotate(330deg); opacity: 0; }
}

/* Sections */
/* A menu link lands with the section's small label clear of the sticky header (64 px), on phones too. */
main section[id] { scroll-margin-top: 28px; }
.band, .final { position: relative; padding: clamp(56px, 9vw, 96px) 0 clamp(64px, 10vw, 104px); }
.band.tint { background: var(--paper); }
.edge { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: clamp(28px, 5vw, 64px); transform: translateY(-100%); fill: var(--sky); display: block; }
.band.tint > .edge { fill: var(--paper); }
.band:not(.tint) > .edge { fill: #f1f8ff; }
.band:not(.tint) { background: linear-gradient(180deg, #f1f8ff 0, rgba(241, 248, 255, 0) 220px); }
.edge-leaf { position: absolute; top: 0; width: 26px; height: 22px; fill: var(--leaf); stroke: var(--leaf); transform: translateY(-135%) rotate(-18deg); }
.edge-leaf.e1 { left: 9%; }
.edge-leaf.e2 { left: 47%; width: 20px; height: 17px; fill: var(--amber); stroke: var(--amber); transform: translateY(-190%) rotate(14deg); }
.edge-leaf.e3 { left: 86%; width: 22px; height: 19px; transform: translateY(-150%) rotate(28deg); }

.kicker { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; font: 700 0.875rem/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--maple-ink); }
.kicker.left { justify-content: flex-start; }
h2 { font-size: clamp(1.875rem, 6.4vw, 2.75rem); text-align: center; text-wrap: balance; }
h2.left { text-align: left; }
/* The maple stroke under a heading */
h2::after { content: ""; display: block; width: 72px; height: 6px; margin: 16px auto 0; border-radius: 6px; background: linear-gradient(90deg, var(--leaf), var(--amber)); }
h2.left::after { margin-left: 0; }
h3 { font-size: 1.3125rem; }
.lead { margin-top: 16px; font-size: 1.125rem; color: var(--ink); max-width: 44em; text-wrap: pretty; }
.lead.center { margin-left: auto; margin-right: auto; text-align: center; }
.fine { margin-top: 22px; font-size: 0.9375rem; color: var(--muted); }
.fine.center { max-width: 46em; margin-left: auto; margin-right: auto; }

/* Grows with your child: a vertical timeline on phones (the trunk line joins the stages), a row on wide screens */
.growth { position: relative; margin-top: 36px; display: grid; gap: 18px; }
.growth::before { content: ""; position: absolute; left: 47px; top: 40px; bottom: 40px; width: 6px; border-radius: 6px; background: linear-gradient(180deg, #c98a52, #9a5b2e); }
.growth li { position: relative; display: grid; grid-template-columns: 100px 1fr; column-gap: 16px; align-items: center; padding: 14px 18px 14px 0; }
.growth img { grid-row: span 2; width: 100px; height: 100px; padding: 8px; background: var(--paper); border-radius: 50%; box-shadow: var(--card); position: relative; }
.growth h3 { align-self: end; }
.growth p { align-self: start; margin-top: 4px; color: var(--ink); }

/* Lessons */
.split { display: grid; gap: 36px; align-items: center; }
.steps { margin-top: 26px; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--maple-wash); color: var(--maple-ink); font: 600 1.25rem/1 var(--display); box-shadow: 0 3px 0 #f6cdb4; }
.steps b { font: 600 1.1875rem/1.3 var(--display); color: var(--heading); }
.steps span { color: var(--ink); }
/* A note: soft tint, faint outline, a small round icon on the left (lightbulb; .again: the comes-back arrow). */
.callout { position: relative; margin-top: 26px; padding: 18px 20px 18px 74px; display: grid; gap: 8px; background: var(--sky); border: 1px solid var(--outline-soft); border-radius: 20px; }
.callout::before { content: ""; position: absolute; left: 18px; top: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--paper) var(--i-bulb) center / 22px no-repeat; box-shadow: 0 3px 0 var(--edge); }
.callout.again::before { background-image: var(--i-again); }
@media (max-width: 559px) { .callout { padding-left: 64px; } .callout::before { left: 14px; width: 36px; height: 36px; background-size: 20px; } }
.callout b { color: var(--heading); }
/* The round icon badge beside a heading (the step badges' look) */
.badge-i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--badge-bg); box-shadow: 0 3px 0 var(--badge-edge); }
.badge-i svg { width: 24px; height: 24px; fill: none; stroke: var(--maple-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* The honest-progress promise: what "passed" and "mastered" mean (the app's own rules, src/learning/lessonStatus.ts, mastery.ts). */
.honest { margin-top: 30px; padding: 22px 24px 24px; display: grid; gap: 8px; background: var(--paper); border: 1px solid var(--outline); border-radius: 24px; box-shadow: var(--card-lift); }
.honest-head { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; margin-bottom: 4px; }
.honest h3 { font: 600 clamp(1.25rem, 3.6vw, 1.5rem)/1.25 var(--display); color: var(--maple-ink); margin: 0; }
.honest + .callout { margin-top: 18px; }
.honest b { color: var(--heading); }

/* Device frames, drawn in CSS */
.screen, .phone { margin: 0; }
.screen { background: var(--paper); border-radius: 16px; padding: 30px 8px 8px; box-shadow: var(--card); position: relative; }
.screen::before { content: ""; position: absolute; left: 14px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); box-shadow: 15px 0 0 var(--amber), 30px 0 0 #4fb36b; }
.screen img { width: 100%; border-radius: 9px; border: 1px solid var(--line); }
.screen.wide { max-width: 880px; margin: 44px auto 0; }
.screen figcaption { padding: 14px 10px 8px; text-align: center; color: var(--muted); font-size: 0.9375rem; }
.phone { background: var(--heading); border-radius: 30px; padding: 8px; box-shadow: 0 5px 0 #0b2550, 0 18px 34px rgba(18, 54, 110, 0.2); }
.phone img { width: 100%; border-radius: 23px; }

/* What's inside */
.features { margin-top: 38px; display: grid; gap: 18px; }
.features li { background: var(--paper); border-radius: 24px; padding: 24px 22px; box-shadow: var(--card); }
.features h3 { margin-top: 14px; }
.features p { margin-top: 8px; color: var(--ink); }
.icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--maple-wash); }
.icon svg, .tools svg { width: 28px; height: 28px; fill: none; stroke: var(--maple-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery { margin-top: 44px; display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 250px); gap: 20px; overflow-x: auto; padding: 6px var(--gutter) 22px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery li { scroll-snap-align: center; }
.gallery p { margin-top: 14px; text-align: center; font-weight: 700; color: var(--heading); }

/* Parents */
.promises { margin-top: 34px; display: grid; gap: 14px; }
.promises li { background: var(--paper); border: 1px solid var(--outline); border-radius: 20px; padding: 18px 20px; display: grid; align-content: start; gap: 4px; box-shadow: var(--card-lift); }
.promises li::before { content: ""; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: var(--badge-bg) var(--i-shield) center / 24px no-repeat; box-shadow: 0 3px 0 var(--badge-edge); }
.promises b { font: 600 1.25rem/1.2 var(--display); color: var(--heading); }
.tools { margin-top: 30px; display: grid; gap: 4px 28px; }
.tools li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tools svg { grid-row: span 2; width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: var(--maple-wash); }
.tools b { color: var(--heading); align-self: end; }
.tools span { align-self: start; color: var(--muted); font-size: 0.9875rem; }
.tools span span { font-size: inherit; }
.schools { position: relative; margin-top: 44px; padding: 26px 24px; display: grid; gap: 18px; align-items: center; background: linear-gradient(120deg, #fff6e4, var(--maple-wash)); border-radius: 26px; box-shadow: 0 4px 0 #f6d9bd; overflow: hidden; }
.schools h3 { font-size: 1.4375rem; }
.schools p { margin-top: 8px; color: var(--ink); }
.schools .btn { justify-self: start; white-space: normal; text-align: center; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
.schools-leaf { position: absolute; right: -18px; bottom: -22px; width: 130px; height: 111px; fill: var(--amber); stroke: var(--amber); opacity: 0.22; transform: rotate(-16deg); }

/* Plans: the app's three plans. One column on phones, three equal cards in a row from 860 px; the card the app's
   plan screen opens on (.pick) has the teal line and the filled button, like the chosen plan there. */
.plans { margin: 40px auto 0; display: grid; gap: 26px; max-width: 440px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; background: var(--paper); border-radius: 26px; box-shadow: 0 0 0 2px var(--line), var(--card); text-align: center; }
.plan[hidden] { display: none; }
.plan.pick { box-shadow: 0 0 0 3px var(--teal), 0 4px 0 3px var(--teal-edge), 0 16px 30px rgba(5, 78, 71, 0.14); }
.plan-flag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 6px 16px; border-radius: 999px; background: var(--maple-ink); color: #fff; font-weight: 700; font-size: 0.9375rem; line-height: 1.2; white-space: nowrap; }
.plan h3 { font-size: 1.5rem; }
.plan-price { margin-top: 6px; font: 600 1.125rem/1.1 var(--display); color: var(--muted); }
.plan-price b { font-weight: 600; font-size: 2.5rem; color: var(--heading); letter-spacing: -0.01em; }
.plan-tax { margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }
.plan-meta { margin-top: 8px; font-weight: 700; color: var(--ink); }
.plan-note { margin-top: 8px; font-size: 0.9875rem; color: var(--muted); text-wrap: balance; }
/* A live sale (plans.js, src/billing/sale.ts): banner, the regular price struck, the sale's line, the small print. */
.sale-banner { margin: 28px auto 0; max-width: 640px; padding: 14px 20px; border-radius: 20px; background: var(--maple-wash); color: var(--maple-ink); font-weight: 700; text-align: center; text-wrap: balance; box-shadow: 0 4px 0 var(--edge); }
.sale-banner b { color: var(--ink); font-family: var(--display); font-weight: 600; }
.plan-was { margin-right: 4px; font-size: 1.25rem; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.plan-sale { margin-top: 6px; font-weight: 700; color: var(--maple-ink); text-wrap: balance; }
.plan-fine { margin: 18px auto 0; max-width: 640px; font-size: 0.9375rem; color: var(--muted); text-align: center; text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plan-meta + .plan-note { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--line); }
.plan .ticks { margin: 16px 0 0; text-align: left; align-self: center; }
.plan .btn { margin-top: auto; }
.plan > :nth-last-child(2) { margin-bottom: 22px; }
.plan:not(.pick) .btn { background: var(--paper); color: var(--teal-edge); box-shadow: 0 0 0 2px var(--teal), 0 4px 0 2px var(--teal-edge); }
.plan:not(.pick) .btn:hover { background: #f1fbf9; }
.plan:not(.pick) .btn:active { box-shadow: 0 0 0 2px var(--teal), 0 1px 0 2px var(--teal-edge); }
/* Trust badges under the plan cards (src/billing/trustBadges.ts): small white chips with a teal line icon; they wrap on a phone. */
.trust { margin: 28px auto 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 700px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px; background: var(--paper); border: 1px solid var(--outline-soft); border-radius: 999px; box-shadow: 0 3px 0 var(--edge); font-weight: 700; color: var(--ink); }
.trust svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.includes { max-width: 440px; margin: 36px auto 0; padding: 24px 24px 26px; background: var(--cream); border-radius: 24px; box-shadow: 0 4px 0 #f1e3c8; }
.includes h3 { text-align: center; }
.includes .ticks { margin: 16px 0 0; }
.includes .ticks + .ticks { margin-top: 10px; }
/* "Free forever": what stays without a plan (the same card as "Every plan includes"). */
.free-forever { margin-top: 26px; }
.free-forever p { margin-top: 12px; color: var(--muted); }
.free-forever .free-lead { text-align: center; text-wrap: balance; }
.free-forever .free-rest { font-size: 0.9875rem; }
/* The free plan beside what a plan adds: two short lists, side by side from 760 px. */
.free-forever h4 { margin: 18px 0 0; font: 700 1.0625rem/1.3 var(--body); color: var(--ink); }
.free-forever .compare-col .ticks { margin-top: 12px; }
.free-forever .ticks.plus li::before { border: 0; width: 16px; height: 16px; top: 0.3em; left: 3px; transform: none; border-radius: 0; background: linear-gradient(var(--teal), var(--teal)) center / 100% 3px no-repeat, linear-gradient(var(--teal), var(--teal)) center / 3px 100% no-repeat; }
.ticks { margin: 20px 0 24px; display: grid; gap: 10px; }
.ticks[hidden] { display: none; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 18px; height: 10px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); border-radius: 2px; transform: rotate(-45deg) scale(0.8); transform-origin: left top; }

/* FAQ */
.faq-list { margin-top: 30px; display: grid; gap: 12px; }
.faq-list details { background: var(--sky); border-radius: 18px; padding: 0 18px; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 0; font: 600 1.125rem/1.3 var(--display); color: var(--heading); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); color: var(--maple-ink); font: 600 1.375rem/1 var(--display); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 0 18px; color: var(--ink); }

/* Final call */
.final { background: linear-gradient(180deg, #d9f0ff 0, #bfe6ff 100%); text-align: center; }
.final > .edge { fill: #d9f0ff; }
.final-tree { width: 170px; height: 170px; margin: 0 auto 8px; }
.final-login { margin-top: 18px; color: var(--ink); }
.final-login a { font-weight: 700; color: var(--heading); display: inline-block; padding: 12px 4px; }

/* Footer */
.footer { background: var(--heading); color: #e3ecfb; padding: 44px 0 110px; }
.footer-grid { display: grid; gap: 26px; }
.logo-light { color: #fff; }
.footer p { margin-top: 6px; color: #c9d8f4; }
.footer nav { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.footer nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: #fff; text-decoration: none; font-weight: 700; }
.footer nav a:hover { text-decoration: underline; }
.footer small { color: #c9d8f4; font-size: 0.9375rem; }

/* Phones: a "Start free" bar once the hero buttons have scrolled away */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); box-shadow: 0 -1px 0 var(--line), 0 -8px 20px rgba(18, 54, 110, 0.08); transform: translateY(110%); transition: transform 0.25s ease; }
.show-dock .dock { transform: none; }

/* Pictures rise in once as they scroll into view (only when the script runs) */
.js .pop { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .pop.in { opacity: 1; transform: none; }

@media (min-width: 620px) {
  .features { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: 1fr 1fr; }
  .tools { grid-template-columns: 1fr 1fr; }
  .schools { grid-template-columns: 1fr auto; padding: 30px 34px; }
  .gallery { grid-auto-columns: min(28vw, 230px); justify-content: center; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .hero-copy { padding-top: 44px; }
  .footer { padding-bottom: 48px; }
  .dock { display: none; }
}

@media (min-width: 700px) {
  /* Tablets: the words above, then the wide picture full width */
  .hero-art img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
  .hero-art { margin-top: -10px; }
}

@media (min-width: 760px) {
  /* Three across like the app's plan screen (from 760 px there too); snug cards until there is room. */
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; gap: 16px; align-items: stretch; }
  .plans[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 700px; }
  .plans[data-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .plan { padding: 26px 16px 20px; }
  .plan-price b { font-size: 2.125rem; }
  .includes { max-width: 1040px; padding: 26px 34px 30px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .includes h3 { grid-column: 1 / -1; }
  .includes .ticks { align-content: start; }
  .includes .ticks + .ticks { margin-top: 16px; }
  .free-forever .free-lead { grid-column: 1 / -1; }
  .free-forever .free-rest { margin-top: 14px; }
  .free-forever .compare-col { align-self: start; }
}
@media (min-width: 1000px) {
  .plans { gap: 24px; }
  .plan { padding: 28px 24px 24px; }
  .plan-price b { font-size: 2.5rem; }
}

@media (min-width: 900px) {
  .nav { display: flex; gap: 4px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--heading); font-weight: 700; text-decoration: none; }
  .nav a:hover { background: var(--sky); }
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .promises { grid-template-columns: repeat(4, 1fr); }
  .tools { grid-template-columns: repeat(4, 1fr); }
  .tools li { grid-template-columns: 1fr; row-gap: 4px; border-bottom: 0; align-content: start; }
  .tools svg { grid-row: auto; margin-bottom: 6px; }
  .gallery { grid-auto-columns: 250px; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1.6fr; align-items: start; }
  .footer small { grid-column: 1 / -1; }

  /* The growth row: the trunk line runs across, under the pictures */
  .growth { grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 48px; }
  .growth::before { left: 10%; right: 10%; top: 66px; bottom: auto; width: auto; height: 6px; background: linear-gradient(90deg, #c98a52, #9a5b2e); }
  .growth li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0; row-gap: 0; }
  .growth img { grid-row: auto; width: 132px; height: 132px; }
  .growth h3 { margin-top: 18px; }
  .growth p { margin-top: 8px; font-size: 1rem; }
}

@media (min-width: 1024px) {
  /* Wide screens: the picture fills the hero; the words sit on the calm sky, upper left, on a soft glow */
  /* A band of open sky above the picture gives the words room; the picture's top edge melts into it. */
  .hero { background: linear-gradient(90deg, #d8eeff 0, #8fd0fb 46%, #4dabf3 100%); }
  .hero-art { margin: 0; padding-top: clamp(96px, 9vw, 150px); }
  .hero-art img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 13%); mask-image: linear-gradient(180deg, transparent 0, #000 13%); }
  .hero::before { content: ""; position: absolute; z-index: 2; left: -14%; top: -30%; width: 78%; height: 92%; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 255, 255, 0.96) 0, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0) 100%); pointer-events: none; }
  .hero-copy { position: absolute; left: max(var(--gutter), calc((100vw - 1240px) / 2)); top: clamp(28px, 3.2vw, 56px); width: min(44vw, 600px); max-width: none; margin: 0; padding: 0; text-align: left; }
  .hero h1 { font-size: clamp(2.5rem, 3.9vw, 3.5rem); margin-top: 12px; }
  .hero .lead { font-size: clamp(1.0625rem, 1.45vw, 1.25rem); margin-top: 12px; }
  .hero .actions { justify-content: flex-start; margin-top: 18px; }
  .hero-note { display: none; }
  .hero-strip { display: block; position: relative; z-index: 2; padding: 14px var(--gutter); text-align: center; background: var(--paper); color: var(--ink); font-size: 0.9875rem; box-shadow: 0 1px 0 var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drift { display: none; }
  .btn, .dock, .js .pop { transition: none; }
  .js .pop { opacity: 1; transform: none; }
}
