/* The front door.

   The brief was: design it like the person who designs apple.com. So the
   craft here is mostly typographic, and most of it is restraint.

   Four decisions carry the whole page:

   1. SF Pro DISPLAY, not Rounded. The kid app uses ui-rounded because it is
      talking to a six-year-old; this page is talking to their parent. On an
      Apple device -apple-system resolves to the literal apple.com typeface,
      and because it is first in the stack Inter is never downloaded there.

   2. Semibold, not black. The giveaway of a page imitating Apple is weight
      900. Apple sets enormous display type at 600 with tracking pulled in
      to about -0.022em — large text needs less letter-space, not more.

   3. Space is the layout. Full-bleed bands alternating white and warm grey,
      ~120px of air between sections, prose held to a 34rem measure.

   4. Motion fades, never bounces. One exception, below.                  */

/* ---------------- tokens ---------------- */
.w-page{
  --ink:#1d1d1f;          /* Apple's near-black: softer than #000 on white */
  --dim:#6e6e73;
  --hair:rgba(0,0,0,.09);
  --paper:#ffffff;
  --band:#f7f5f2;         /* warmed, because the product is for children */
  --accent:#ff8c42;
  --radius:28px;          /* large, even radii read as considered         */

  --display:clamp(40px,8.6vw,84px);
  --h2:clamp(30px,5.4vw,52px);
  --lead:clamp(18px,2.3vw,23px);

  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:-apple-system,"SF Pro Display","SF Pro Text",
    "Inter",system-ui,"Segoe UI",Roboto,sans-serif;
  font-size:17px;
  line-height:1.47;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

/* ---------------- type ---------------- */
.w-page h1,.w-page h2,.w-page h3{
  font-weight:600;          /* the single most important line in this file */
  letter-spacing:-.022em;
  line-height:1.06;
  margin:0;
  text-wrap:balance;        /* no orphaned words in a headline            */
}
.w-display{font-size:var(--display)}
.w-h2{font-size:var(--h2); text-align:center}

.w-lead{
  font-size:var(--lead); line-height:1.38; letter-spacing:-.012em;
  color:var(--dim); font-weight:400;
  max-width:34rem; margin-inline:auto;
}
.w-eyebrow{
  font-size:clamp(15px,1.7vw,19px); font-weight:600; letter-spacing:-.01em;
  color:var(--accent); margin:0 0 14px;
}
/* margin-BLOCK, not margin. `margin:0` here beat every `margin-inline:auto`
   below it on specificity and shunted the lead and the note hard left while
   the headline and the button stayed centred. Only the vertical margins
   ever needed resetting. */
.w-page p{margin-block:0}

/* ---------------- bands ---------------- */
.w-band{padding:clamp(72px,11vw,132px) 22px}
.w-band.alt{background:var(--band)}
.w-inner{max-width:1000px; margin:0 auto}
.w-narrow{max-width:38rem; margin-inline:auto; text-align:center}

/* ---------------- hero ---------------- */
.w-hero{padding-top:clamp(40px,7vw,76px); text-align:center}

/* The cast, treated as Apple treats a product shot: one composed object,
   centred, given room. */
.w-crew{
  display:flex; justify-content:center; align-items:flex-end;
  gap:clamp(2px,1.2vw,14px); margin-bottom:clamp(26px,4vw,44px);
}
.w-ch{
  display:grid; place-items:center;
  width:clamp(50px,14.2vw,118px); aspect-ratio:1;
  border-radius:50%; background:var(--tint);
  animation:float 7s ease-in-out infinite;
  animation-delay:calc(var(--i) * -1.1s);
}
.w-ch svg{display:block; width:78%; height:auto;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.09))}
/* The one playful moment on the page, and it is slow on purpose: a gentle
   float reads as alive, a bounce reads as a cartoon. */
@keyframes float{50%{transform:translateY(-10px)}}

.w-hero .w-display{margin-bottom:20px}
.w-hero .w-lead{margin-bottom:34px}

/* ---------------- the call to action ---------------- */
.w-cta{
  display:inline-flex; align-items:center; gap:7px;
  padding:14px 26px; border-radius:980px;   /* Apple's own pill radius */
  background:var(--ink); color:#fff; text-decoration:none;
  font-size:17px; font-weight:500; letter-spacing:-.01em;
  transition:transform .25s cubic-bezier(.25,.1,.25,1), opacity .25s;
}
.w-cta:hover{opacity:.86; transform:scale(1.015)}
.w-cta:active{transform:scale(.985)}
.w-cta svg{margin-top:1px}

.w-note{
  margin-top:20px; font-size:15px; color:var(--dim);
  max-width:28rem; margin-inline:auto;
}
.w-note b{color:var(--ink); font-weight:600}

/* ---------------- figures ---------------- */
/* No card chrome. Big numerals, hairline rules, air. */
.w-counts{
  display:grid; grid-template-columns:repeat(3,1fr);
  max-width:760px; margin:clamp(56px,8vw,96px) auto 0;
}
.w-count{padding:8px 10px; text-align:center; border-left:1px solid var(--hair)}
.w-count:first-child{border-left:0}
.w-count b{
  display:block; font-size:clamp(30px,6.2vw,58px); font-weight:600;
  letter-spacing:-.028em; line-height:1.04;
  font-variant-numeric:tabular-nums;
}
.w-count span{
  display:block; margin-top:8px; font-size:14px; color:var(--dim);
  letter-spacing:-.004em;
}
/* The claim that was making one label wrap to two lines and the others
   not. It reads better as one quiet line under all three. */
.w-undercount{
  margin-top:20px; text-align:center; font-size:14px; color:var(--dim);
}

/* ---------------- steps ---------------- */
.w-steps{
  list-style:none; margin:clamp(40px,6vw,64px) 0 0; padding:0;
  display:grid; gap:clamp(14px,2vw,22px);
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  counter-reset:s;
}
.w-steps li{
  background:var(--paper); border-radius:var(--radius);
  padding:clamp(26px,3.4vw,36px);
  border:1px solid var(--hair);
}
.w-band.alt .w-steps li{box-shadow:0 1px 2px rgba(0,0,0,.03)}
.w-steps li::before{
  counter-increment:s; content:counter(s);
  display:grid; place-items:center;
  width:30px; height:30px; margin-bottom:18px;
  border-radius:50%; background:var(--ink); color:#fff;
  font-size:14px; font-weight:600;
}
.w-steps h3{font-size:21px; letter-spacing:-.016em; margin-bottom:7px}
.w-steps p{font-size:15.5px; line-height:1.5; color:var(--dim)}

/* ---------------- cards ---------------- */
.w-cards{
  display:grid; gap:clamp(14px,2vw,22px);
  grid-template-columns:repeat(auto-fit,minmax(272px,1fr));
  margin-top:clamp(40px,6vw,64px);
}
.w-pk{
  background:var(--paper); border:1px solid var(--hair);
  border-radius:var(--radius); padding:clamp(28px,3.4vw,38px);
  transition:transform .35s cubic-bezier(.25,.1,.25,1), box-shadow .35s;
}
.w-pk:hover{transform:translateY(-3px); box-shadow:0 18px 40px rgba(0,0,0,.07)}
.w-pk .ic{
  width:34px; height:34px; margin-bottom:18px; display:block;
  color:var(--a);
}
.w-pk h3{font-size:21px; letter-spacing:-.016em; margin-bottom:8px}
.w-pk p{font-size:15.5px; line-height:1.5; color:var(--dim)}

/* ---------------- the deal ---------------- */
.w-deal{
  list-style:none; margin:clamp(36px,5vw,56px) auto 0; padding:0;
  max-width:46rem; display:grid; gap:0;
}
.w-deal li{
  display:flex; align-items:flex-start; gap:13px;
  padding:19px 4px; border-top:1px solid var(--hair);
  font-size:16.5px; letter-spacing:-.008em;
}
.w-deal li:last-child{border-bottom:1px solid var(--hair)}
.w-deal svg{flex:0 0 auto; margin-top:2px; color:var(--accent)}

/* ---------------- foot ---------------- */
.w-foot{
  text-align:center; padding:clamp(64px,9vw,104px) 22px clamp(44px,6vw,64px);
  border-top:1px solid var(--hair);
}
.w-foot .w-h2{margin-bottom:28px}
.w-fine{margin-top:34px; font-size:13px; color:var(--dim)}

/* ---------------- motion ---------------- */
/* Fade and rise. No bounce, no wobble, no overshoot — the easing is
   Apple's own curve and the distance is small enough to feel like focus
   arriving rather than an object flying in. */
.w-rise{opacity:0; transform:translateY(22px)}
.w-rise.in{
  opacity:1; transform:none;
  transition:opacity .85s cubic-bezier(.25,.1,.25,1),
             transform .85s cubic-bezier(.25,.1,.25,1);
}

@media (prefers-reduced-motion:reduce){
  .w-ch{animation:none}
  .w-rise,.w-rise.in{opacity:1; transform:none; transition:none}
  .w-cta:hover,.w-pk:hover{transform:none}
}
