:root {
  --ground: #FBF6EE;
  --sunk: #F3EBDD;
  --surface: #FFFFFF;
  --ink: #1A1D29;
  --quiet: #4F5566;
  --line: #E4DACB;
  --action: #1E4ED8;
  --action-hover: #1740B5;
  --on-action: #FFFFFF;
  --success: #1F7A4D;
  --danger: #B3261E;
  --brick-red: #E4572E;
  --brick-yellow: #F4B532;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(26, 29, 41, .06), 0 6px 20px rgba(26, 29, 41, .06);
  --font-head: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--action); text-underline-offset: 2px; }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 7.4vw, 58px); }
h2 { font-size: clamp(27px, 5vw, 40px); }
h3 { font-size: 19px; font-weight: 600; line-height: 1.25; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 246, 238, .94); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.logo { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 22px/1 var(--font-head); }
.logo svg { width: 34px; height: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 12px;
  background: var(--action); color: var(--on-action);
  font: 600 17px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--action-hover); color: var(--on-action); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--action); box-shadow: inset 0 0 0 2px var(--action); }
.btn-ghost:hover { background: var(--action); color: var(--on-action); }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 28px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { font-weight: 600; font-size: 15px; color: #B53D17; margin-bottom: 12px; }
.lede { font-size: 18px; color: var(--quiet); margin: 16px 0 24px; max-width: 34em; }
.assure { font-size: 15px; color: var(--quiet); margin-top: 14px; }
.hero-art { margin: 0; background: var(--sunk); border-radius: var(--radius-lg); padding: 20px 16px 16px; }
.hero-art svg { width: 100%; max-width: 420px; margin: 0 auto; height: auto; }
.hero-art figcaption { font-size: 15px; color: var(--quiet); text-align: center; margin-top: 8px; }

/* Form */
.signup { max-width: 560px; }
.field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field-row { display: flex; flex-direction: column; gap: 10px; }
.field-row input {
  min-width: 0; width: 100%; min-height: 52px; padding: 0 16px;
  border: 1.5px solid #B9AE9C; border-radius: 12px; background: var(--surface);
  font: 400 17px/1 var(--font-body); color: var(--ink);
}
.field-row input::placeholder { color: #8A8F9C; }
.field-row input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(30, 78, 216, .2); }
.field-row input[aria-invalid="true"] { border-color: var(--danger); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--quiet); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--action); cursor: pointer; }
.consent.invalid span { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { min-height: 0; margin-top: 10px; font-size: 15px; font-weight: 500; }
.status:empty { display: none; }
.status.err { color: var(--danger); }
.done { background: #E6F3EC; border: 1px solid #BFDFCC; color: #14532F; border-radius: var(--radius); padding: 18px 18px; }
.done h3 { margin-bottom: 4px; }

/* Sections */
.section { padding: 56px 0; }
.section-sunk { background: var(--sunk); }
.section-lede { color: var(--quiet); font-size: 18px; margin-top: 12px; max-width: 40em; }
.inline-cta { margin-top: 28px; }

/* Projects */
.projects { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.projects li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.projects p { color: var(--quiet); margin-top: 4px; }
.projects .uses { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.chip-brick { flex: none; position: relative; width: 36px; height: 22px; margin-top: 8px; border-radius: 5px; background: var(--c); }
.chip-brick::before, .chip-brick::after { content: ""; position: absolute; top: -6px; width: 10px; height: 7px; border-radius: 2px; background: var(--c); }
.chip-brick::before { left: 5px; }
.b-green { --c: #2E9E6A; } .b-blue { --c: #3A6FF0; } .b-yellow { --c: #F4B532; } .b-red { --c: #E4572E; } .b-purple { --c: #7B5CD6; } .b-ink { --c: #1A1D29; }
.chip-brick::after { right: 5px; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 20px 20px 22px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--ground); font: 700 17px/1 var(--font-head); margin-bottom: 12px; }
.steps p { color: var(--quiet); margin-top: 6px; }

/* Kits */
.kits { display: grid; gap: 14px; margin-top: 28px; }
.kit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kit p { color: var(--quiet); margin-top: 6px; }
.kit-main { background: var(--ink); border-color: var(--ink); color: var(--ground); padding: 26px 22px; border-radius: var(--radius-lg); }
.kit-main h3 { font-size: 26px; }
.kit-main p { color: #D6D1C7; }
.kit-main .kit-tag { color: var(--brick-yellow); font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.kit-side { display: grid; gap: 14px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 10px; border-radius: 3px; background: var(--brick-yellow); }
.opt { display: inline-block; vertical-align: middle; font: 600 13px/1 var(--font-body); color: var(--quiet); border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; margin-left: 4px; }

/* Ages */
.ages { margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid #DCCFBB; }
.ages div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid #DCCFBB; }
.ages dt { font: 600 19px/1.25 var(--font-head); }
.ages dd { margin: 0; color: var(--quiet); }

/* FAQ */
#faq h2 { margin-bottom: 20px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
details p { color: var(--quiet); padding: 0 0 18px; max-width: 40em; }

/* Join */
.join { background: var(--ink); color: var(--ground); }
.join .section-lede { color: #D6D1C7; margin-bottom: 24px; }
.join .consent { color: #D6D1C7; }
.join .consent a, .join a { color: #A9C1FF; }
.join .field-label { color: var(--ground); }
.join .field-row input { border-color: #5A6072; }
.join .btn { background: var(--brick-yellow); color: var(--ink); }
.join .btn:hover { background: #F7C75C; color: var(--ink); }
.join :focus-visible { outline-color: var(--brick-yellow); }
.join .status.err { color: #FFB4AB; }
.join .done { background: #23402F; border-color: #2F5A40; color: #E6F3EC; }

/* Footer */
.foot { padding: 28px 0 110px; font-size: 14px; color: var(--quiet); }
.foot-row { display: grid; gap: 8px; }
.foot .tm { font-size: 13px; }
.foot-row a { display: inline-flex; align-items: center; min-height: 44px; }

/* Sticky CTA on phones */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 246, 238, .96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
.sticky-cta.show { transform: none; }

@media (max-width: 879px) {
  .top .btn-small { display: none; }
}

@media (min-width: 560px) {
  .field-row { flex-direction: row; }
  .field-row input { flex: 1; }
}

@media (min-width: 880px) {
  body { font-size: 18px; }
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .section { padding: 88px 0; }
  .projects { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .kits { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .ages { grid-template-columns: repeat(3, 1fr); column-gap: 32px; border-top: 0; }
  .ages div { border-bottom: 0; border-top: 3px solid var(--ink); padding-top: 16px; }
  .foot { padding-bottom: 40px; }
  .foot-row { grid-template-columns: 1fr auto; }
  .foot .tm { grid-column: 1 / -1; }
  .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
}

/* Text pages */
.prose h1 { font-size: clamp(32px, 6vw, 46px); }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose p { max-width: 40em; }
.prose p + p { margin-top: 12px; }
.prose .back { margin-top: 36px; }
