/* kidscient.com: one stylesheet for every page. Brand tokens are locked
   (docs/launch/FOUNDER_INTENT.md §4): Paper #FFF8F0, Sun Orange #FF8C42,
   Ink #1F2937, Peach #FFE4CC; Nunito for headings, Inter for body.
   White text on Sun Orange fails contrast, so buttons use Ink on Sun. */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #fff8f0;
  --sun: #ff8c42;
  --ink: #1f2937;
  --peach: #ffe4cc;
  --ink-soft: #4b5563;
  --link: #a4461a;
  --line: #ecdccb;
  --card: #ffffff;
  --radius: 18px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3, .brand span { font-family: "Nunito", "Inter", system-ui, sans-serif; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 0 0 16px; font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 12px; font-weight: 850; }
h3 { font-size: 1.2rem; margin: 0 0 6px; font-weight: 800; }
p { margin: 0 0 14px; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 240, 0.96); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--max); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 50%; background: var(--peach); }
.brand span { font-weight: 900; font-size: 1.25rem; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--peach); }
@media (max-width: 860px) {
  .top-in { flex-wrap: wrap; row-gap: 6px; }
  .top-in .btn-sm { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: -10px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav a { white-space: nowrap; font-size: 0.9rem; padding: 6px 10px; }
}

/* buttons */
.btn {
  display: inline-block; background: var(--sun); color: var(--ink); font-weight: 800;
  text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--sun);
  font-family: "Nunito", system-ui, sans-serif; font-size: 1.05rem; line-height: 1.2; cursor: pointer;
}
.btn:hover { background: #ff7a26; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--ink); }
.btn-ghost:hover { background: var(--peach); }
.btn-sm { padding: 8px 14px; font-size: 0.95rem; }

/* layout */
main { display: block; }
.wrap, .crumbs, section { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
section { padding-top: 40px; padding-bottom: 40px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 0; margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46rem; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding-top: 48px; }
.hero img { width: 100%; max-width: 360px; justify-self: center; border-radius: 50%; background: var(--peach); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 10px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 12px; padding-top: 24px; } .hero img { max-width: 120px; order: -1; justify-self: start; } }
.band { background: var(--peach); max-width: none; }
.band > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p:last-child { margin-bottom: 0; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--peach); margin-bottom: 8px; }
.tag-soon { background: #e8eef7; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 64px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); font: 900 1.1rem/34px "Nunito", sans-serif; text-align: center; }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0 0 10px; color: var(--ink-soft); }
ul.check { padding-left: 0; list-style: none; }
ul.check li { padding-left: 28px; position: relative; margin-bottom: 8px; }
ul.check li::before { content: "✓"; position: absolute; left: 4px; font-weight: 900; color: var(--link); }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-top: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--peach); font-family: "Nunito", sans-serif; font-weight: 800; }
tbody th { font-weight: 700; }
tr:last-child td, tr:last-child th { border-bottom: 0; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.plan.featured { border: 3px solid var(--sun); }
.plan .price { font: 900 2.2rem/1.1 "Nunito", sans-serif; margin: 6px 0; }
.plan .price small { font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.plan ul { padding-left: 20px; margin: 10px 0 0; }
.founding-box { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.founding-box a { color: var(--peach); }
.founding-box .btn { color: var(--ink); }

/* faq */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; font-family: "Nunito", sans-serif; font-size: 1.08rem; }
.faq .ans { padding-bottom: 12px; color: var(--ink-soft); }

/* call to action */
.cta { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; background: var(--peach); border-radius: var(--radius); padding: 28px; margin-top: 40px; margin-bottom: 48px; max-width: calc(var(--max) - 32px); }
.cta img { border-radius: 50%; background: var(--paper); }
@media (max-width: 640px) { .cta { grid-template-columns: 1fr; text-align: center; } .cta img { margin: 0 auto; width: 120px; } }

/* form */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 640px; }
.form label, .form legend { display: block; font-weight: 700; margin: 14px 0 6px; }
.form .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; display: block; }
.form input[type="email"], .form input[type="text"], .form select, .form textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid #cdb9a5; border-radius: 10px; background: #fff; color: var(--ink);
}
.form fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin: 0; padding: 8px 12px; border: 1.5px solid #cdb9a5; border-radius: 999px; background: #fff; cursor: pointer; min-height: 44px; }
.chips input { width: 18px; height: 18px; accent-color: var(--sun); }
.form .actions { margin-top: 20px; }
.form .status { margin-top: 14px; font-weight: 600; }
.form .status.err { color: #9b1c1c; }
.form .status.ok { color: #14532d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.foot { background: var(--ink); color: #e5e7eb; margin-top: 40px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 36px 16px 28px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.foot h2 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot a { color: #ffd7b5; }
.foot .fine { font-size: 0.82rem; color: #cbd5e1; margin-top: 18px; }
