/* Layout: two-column hero (story + sticky form card) with a growth-chart ruler as the signature; one stacked column on phones, form right after the intro */
:root {
  /* Toys That Teach brand: red, yellow and blue from the logo and box, on a warm cream base */
  --bg: #FFF8EC;
  --surface: #FFFDF8;
  --ink: #1B2A4A;
  --muted: #5A6580;
  --line: #EEE2CC;
  --leaf: #2563C9;
  --leaf-soft: #E5EEFC;
  --red: #D7262B;
  --red-soft: #FDE7E5;
  --accent: #FFC42E;
  --accent-hover: #F5B400;
  --accent-ink: #2A1A00;
  --danger: #C21F24;
  --shadow: 0 1px 2px rgba(27, 42, 74, .06), 0 12px 32px -12px rgba(27, 42, 74, .18);
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }

/* Header */
.top { padding-block: 18px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; background: #fff; }
.brand-name { font-family: var(--display); font-size: 1.35rem; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
  color: var(--leaf); background: var(--leaf-soft);
  padding: 6px 12px; border-radius: 999px;
}
.pill svg { width: 16px; height: 16px; }

/* Hero grid */
.hero { padding-block: 48px 72px; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "intro form" "receive form";
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 48px;
  align-items: start;
}
.intro { grid-area: intro; display: grid; gap: 20px; min-width: 0; }
.receive { grid-area: receive; min-width: 0; }
.form-col { grid-area: form; position: sticky; top: calc(20px + env(safe-area-inset-top, 0px)); min-width: 0; }

.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf);
}
.intro h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 16ch; }
.intro h1 em { font-style: normal; color: var(--red); }
.lede { font-size: 1.1875rem; max-width: 34em; }
.lede strong { font-weight: 600; }
.intro p.sub { color: var(--muted); max-width: 36em; }

/* Growth-chart ruler: signature element */
.chart {
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 14px;
}
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ruler { position: relative; padding-top: 34px; }
.marks { position: absolute; inset: 0 0 auto; height: 34px; }
.mark {
  position: absolute; bottom: 6px; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: .75rem; font-weight: 700;
  box-shadow: 0 0 0 3px var(--surface);
  transition: left .35s cubic-bezier(.2,.8,.2,1);
}
.mark::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--accent); border-bottom: 0;
}
.ticks { display: grid; grid-template-columns: repeat(17, 1fr); border-top: 2px solid var(--ink); }
.tick { position: relative; height: 26px; }
.tick::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 7px; background: var(--muted);
}
.tick.major::before { height: 12px; width: 2px; background: var(--ink); transform: translateX(-.5px); }
.tick.on::before { background: var(--accent); width: 3px; height: 14px; }
.tick span {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  font-size: .6875rem; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chart-caption { font-size: .9375rem; color: var(--muted); margin-top: 6px; }
.chart-caption strong { color: var(--ink); font-weight: 600; }

/* What you'll receive */
.receive h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.receive > p { color: var(--muted); max-width: 36em; margin-bottom: 24px; }
.areas { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.area {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start;
  padding-block: 14px; border-top: 1px solid var(--line);
}
.area:last-child { border-bottom: 1px solid var(--line); }
.area-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--leaf-soft); color: var(--leaf);
}
.area-icon svg { width: 22px; height: 22px; }
.area h3 { font-family: var(--body); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.area p { color: var(--muted); font-size: .9688rem; }
.area .eg { margin-top: 4px; font-size: .9063rem; color: var(--ink); }
.area .eg b { font-weight: 600; color: var(--leaf); }

.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.extra {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  display: grid; gap: 6px; align-content: start;
}
.extra h3 { font-family: var(--body); font-weight: 600; font-size: 1rem; }
.extra p { color: var(--muted); font-size: .9375rem; }
.box-gallery { margin: 20px 0 0; }
.box-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.box-photos img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
}
.box-gallery figcaption { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.sample-note { margin-top: 14px; font-size: .8438rem; color: var(--muted); }

/* Form card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
}
.card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.card .card-sub { color: var(--muted); font-size: .9688rem; margin-bottom: 22px; }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.hint { font-size: .8438rem; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 6px; }
input, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-height: 50px;
  transition: border-color .15s, background-color .15s;
}
input::placeholder { color: var(--muted); opacity: .8; }
input:hover, select:hover { border-color: var(--muted); }
input:focus, select:focus { outline: none; border-color: var(--leaf); background: var(--surface); box-shadow: 0 0 0 3px var(--leaf-soft); }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.phone { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.phone .cc {
  display: grid; place-items: center; padding: 0 12px; font-weight: 600; color: var(--muted);
  border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--bg);
}
.phone input { border-radius: 0 12px 12px 0; }
.ages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ages.single { grid-template-columns: minmax(0, 1fr); }
.age { display: grid; gap: 4px; }
.age label { font-size: .8125rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.age label i {
  font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: .6875rem; font-weight: 700;
}
[aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: .8438rem; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 16px 28px;
  font: 700 1.0625rem/1.25 var(--body); text-align: center; text-decoration: none;
  color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: 14px; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
  transition: background-color .15s, transform .1s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.fine { display: flex; gap: 8px; align-items: flex-start; font-size: .8438rem; color: var(--muted); }
.fine svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* Success state */
.done { display: grid; gap: 16px; }
.done-badge {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--leaf-soft); color: var(--leaf);
}
.done-badge svg { width: 26px; height: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600;
  padding: 6px 10px; border-radius: 999px; background: var(--leaf-soft); color: var(--ink);
}
.chip i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: .6875rem; font-weight: 700; }
.btn-wa { background: #25D366; color: #06210F; }
.btn-wa:hover { background: #1FBE5A; }
.number-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9063rem; color: var(--muted); }
.number-row strong { color: var(--ink); user-select: all; font-variant-numeric: tabular-nums; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--leaf); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }

/* Thank-you page */
.thanks { padding-block: 32px 72px; }
.thanks .card { max-width: 560px; margin: 0 auto; }
.thanks h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); }
.thanks .eyebrow { margin-bottom: -8px; }
.thanks .card-sub { margin: 0; }
.next-steps {
  margin: 4px 0 0; padding: 16px 0 0; list-style: none; counter-reset: step;
  border-top: 1px solid var(--line); display: grid; gap: 10px;
}
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: .9375rem; color: var(--muted); }
.next-steps li::before {
  content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700;
}
.next-steps b { color: var(--ink); font-weight: 600; }

/* Closing band */
.closing { background: var(--leaf); color: #FFFDF8; padding-block: 56px; }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closing h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 20ch; }
.closing p { opacity: .8; margin-top: 8px; max-width: 34em; }
.closing .btn { width: auto; }

footer { padding-block: 28px 36px; font-size: .875rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer strong { color: var(--ink); user-select: all; font-variant-numeric: tabular-nums; }

/* Phones: intro, then form, then the details */
@media (max-width: 880px) {
  .hero { padding-block: 36px 48px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "receive"; row-gap: 32px; }
  .form-col { position: static; }
}
@media (max-width: 520px) {
  .extras { grid-template-columns: minmax(0, 1fr); }
  .box-photos { grid-template-columns: minmax(0, 1fr); }
  .ages { grid-template-columns: minmax(0, 1fr); }
  .tick span { font-size: .625rem; }
  .closing .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Spam trap field: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
