/* The landing page (landing.html). Same look as the kid's phone: ink outlines, hard shadows, the sunburst
   mark, and Fredoka, with the bold part kept to the top of the page. */
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Bungee"; src: url("fonts/bungee.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #1d1135;
  --paper: #fff7e6;
  --pink: #ff4fa3;
  --sky: #7cc4ff;
  --sun: #ffd23f;
  --green: #3ddc7c;
  --line: 3px solid var(--ink);
  --pop: 5px 5px 0 var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.125rem/1.6 "Fredoka", "Trebuchet MS", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* The mark: the name on the logo's sunburst */
.mark { position: relative; isolation: isolate; display: inline-grid; place-items: center; padding: 14px 18px; text-decoration: none; }
.burst { position: absolute; inset: 0; z-index: -1;
  filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)) drop-shadow(3px 3px 0 var(--ink)); }
.burst::before { content: ""; position: absolute; inset: 0; background: var(--sun);
  clip-path: polygon(50% 0%, 57.8% 10.8%, 69.1% 3.8%, 72.2% 16.7%, 85.4% 14.6%, 83.3% 27.8%, 96.2% 30.9%, 89.2% 42.2%,
    100% 50%, 89.2% 57.8%, 96.2% 69.1%, 83.3% 72.2%, 85.4% 85.4%, 72.2% 83.3%, 69.1% 96.2%, 57.8% 89.2%, 50% 100%,
    42.2% 89.2%, 30.9% 96.2%, 27.8% 83.3%, 14.6% 85.4%, 16.7% 72.2%, 3.8% 69.1%, 10.8% 57.8%, 0% 50%, 10.8% 42.2%,
    3.8% 30.9%, 16.7% 27.8%, 14.6% 14.6%, 27.8% 16.7%, 30.9% 3.8%, 42.2% 10.8%); }
.word { font-family: "Bungee", Impact, sans-serif; font-size: 1.25rem; white-space: nowrap; color: var(--pink);
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); transform: rotate(-4deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border: var(--line); border-radius: 999px;
  background: var(--pink); box-shadow: var(--pop); font-weight: 600; text-decoration: none; transition: transform 0.08s, box-shadow 0.08s; }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn.plain { background: #fff; }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 1rem; box-shadow: 3px 3px 0 var(--ink); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--sky); border-bottom: var(--line); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.top-nav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Hero: the one loud part of the page */
.hero { position: relative; padding: 56px 0 0; overflow: hidden;
  background: radial-gradient(rgba(29, 17, 53, 0.16) 1.4px, transparent 1.6px) 0 0 / 22px 22px, var(--sky); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.01em; max-width: 15ch; }
.lede { margin-top: 20px; max-width: 34em; font-size: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.note { margin-top: 18px; font-size: 1rem; }
.hero-phone { width: 100%; transform: rotate(-4deg); }
.cord { width: 100%; height: 26px; }

/* Sections */
.band { padding: 80px 0; }
.band.soft { background: var(--paper); border-block: var(--line); }
.band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.intro { margin-top: 14px; max-width: 40em; font-size: 1.2rem; }

/* Today: real screens from the phone */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.features figure { margin: 0; }
.features img { border: var(--line); border-radius: 18px; box-shadow: var(--pop); }
.features figcaption { margin-top: 22px; }
.features h3 { font-size: 1.35rem; }
.features p { margin-top: 6px; }

/* Growing up: four stages in order, each an era (on top) and what it does on the phone today (below) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 20px; margin: 44px 0 0; padding: 0; list-style: none; }
/* Each card takes two rows, so the line between era and stage lines up across the row */
.steps li { display: grid; grid-row: span 2; grid-template-rows: subgrid; margin-bottom: 20px; overflow: hidden; border: var(--line); border-radius: 18px; background: #fff; box-shadow: var(--pop); }
.then { padding: 16px 18px 18px; background: var(--tint); border-bottom: var(--line); }
.step-top { display: flex; align-items: center; gap: 8px; font-size: 1.6rem; line-height: 1; }
.step-top b { font-family: "Bungee", Impact, sans-serif; font-weight: 400; }
.step-top em { margin-left: auto; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff;
  font-size: 0.8rem; font-style: normal; font-weight: 600; }
.step-top em.now { background: var(--pink); }
.steps .years { margin-top: 14px; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.years::first-letter { text-transform: uppercase; }
.era { margin-top: 4px; font-size: 1rem; line-height: 1.4; }
.era::first-letter { text-transform: uppercase; }
.does { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.steps h3 { font-size: 1.25rem; }
.steps p { font-size: 1rem; line-height: 1.45; }
.steps .limit { margin-top: auto; padding-top: 10px; border-top: 2px dashed rgba(29, 17, 53, 0.35); font-weight: 500; }

/* For parents */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; margin: 40px 0 0; padding: 0; list-style: none; }
.trust li { position: relative; padding-left: 52px; }
.trust li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px;
  border: var(--line); border-radius: 50%; background: var(--green); font-weight: 700; }
.trust li.warn::before { content: "!"; background: var(--sun); }
.trust h3 { font-size: 1.25rem; }
.trust p { margin-top: 4px; }

/* Footer */
.foot { padding: 36px 0 44px; background: var(--ink); color: #fff; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot-row a { margin-left: auto; font-weight: 600; }
.mark.small .word { font-size: 1rem; }

/* Phones */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 760px) {
  .top-nav { display: none; }
  .top .btn.small { margin-left: auto; }
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-phone { transform: rotate(-3deg); }
  .band { padding: 56px 0; }
  .steps, .trust { grid-template-columns: 1fr; }
  .foot-row a { margin-left: 0; }
}
