@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbfaf7;
  --ink: #15172b;
  --blue: #2f45ff;
  --sun: #ffcf3f;
  --mint: #39d0a8;
  --pink: #ff6f91;
  --grey: #5f6379;
  --line: #e6e5ef;
  --card: #ffffff;
  --ok-bg: #e3f8f1;
  --err-bg: #ffe8ee;

  --display: "Unbounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.site-head { padding-block: 18px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; display: block; }
.site-head nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.site-head nav a { color: var(--grey); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding-block: 40px 72px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
.hero p { margin-top: 20px; font-size: 19px; color: var(--grey); max-width: 40ch; }
.btns { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.toy { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; justify-self: center; }
.toy canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }

/* Mission */
.mission { background: var(--ink); color: var(--paper); }
.mission .wrap { padding-block: 72px; display: grid; gap: 16px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.mission .label { color: var(--sun); }
.mission blockquote { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 44px); line-height: 1.18; max-width: 24ch; text-wrap: balance; }
.mission blockquote span { color: var(--sun); }

/* Sections */
.section .wrap { padding-block: 72px; display: grid; gap: 32px; }
.section + .section .wrap { border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; }
.sub { color: var(--grey); max-width: 58ch; margin-top: 8px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { display: grid; gap: 12px; align-content: start; }
.pillar svg { width: 48px; height: 48px; }
.pillar h3 { font-size: 18px; }
.pillar p { color: var(--grey); }

.soon { border: 2px dashed var(--line); border-radius: 20px; padding: 28px; background: var(--card); display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.soon .tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--sun); padding: 4px 10px; border-radius: 999px; }
.soon h3 { font-size: clamp(24px, 3.4vw, 34px); margin-top: 14px; }
.bars { display: grid; gap: 7px; width: 160px; }
.bars i { display: block; height: 9px; border-radius: 5px; background: var(--line); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 14px; min-width: 0; }
.panel h2, .panel h3 { font-size: 20px; }
.panel p { color: var(--grey); }

/* Form */
.cform { display: grid; gap: 12px; }
.cform label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.cform input, .cform textarea, .cform select { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%; min-width: 0; }
.cform textarea { min-height: 130px; resize: vertical; }
.cform input:focus, .cform textarea:focus, .cform select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.cform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cform button { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 15px; border-radius: 12px; padding: 11px 14px; }
.status.ok { background: var(--ok-bg); }
.status.err { background: var(--err-bg); }

/* Prose pages */
.page-head .wrap { padding-block: 40px 8px; display: grid; gap: 12px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.01em; }
.page-head p { color: var(--grey); max-width: 60ch; }
.prose { max-width: 70ch; display: grid; gap: 14px; }
.prose h2 { font-size: 20px; margin-top: 22px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose p, .prose li { color: #33364b; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--grey); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { padding-block: 26px 34px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--grey); }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

@media (max-width: 780px) {
  .wrap { padding-inline: 18px; }
  .hero .wrap, .pillars, .split, .cform .row2 { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 16px 48px; gap: 24px; }
  .toy { max-width: 300px; }
  .section .wrap, .mission .wrap { padding-block: 52px; }
  .site-head nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
