/*
 * Inanimator marketing site — "Drawn by Hand" design.
 * Marker on notebook paper: wobbly borders, margin annotations, boiling-line
 * mascot. The visibly hand-made look intentionally carries the app's
 * 100% AI-free pledge.
 *
 * Ink:    #22242a   (marker black)
 * Red:    #e6432e   (annotation / stamp red)
 * Yellow: #ffd23e   (highlighter)
 * Green:  #1d8a55   (checkmark green)
 * Blue:   #4f8ff0   (ballpoint blue)
 * Paper:  #fdfcf7 with #e8f0f7 ruled lines
 */

/* Gochi Hand ships a single 400 weight (OFL — see OFL.txt next to this file). */
@font-face {
  font-family: "Gochi Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("gochi-hand-latin.woff2") format("woff2");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: #22242a;
  font-family: "Gochi Hand", "Marker Felt", "Chalkboard SE", "Comic Sans MS", cursive;
  background:
    repeating-linear-gradient(#fdfcf7 0px, #fdfcf7 34px, #e8f0f7 35px),
    #fdfcf7;
  line-height: 1.55;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* the classic hand-drawn border trick: uneven radii, no two boxes alike */
.wob-a { border: 2.5px solid #22242a; border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; }
.wob-b { border: 2.5px solid #22242a; border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px; }
.wob-c { border: 2.5px solid #22242a; border-radius: 225px 18px 255px 12px / 12px 255px 18px 225px; }

a { color: inherit; }

/* Gochi Hand has one weight; synthetic bold smudges handwriting, so display
   text runs at 400 and leans on size/underlines for emphasis. */
h1, h2, h3, .logo, .btn, .signed .sig { font-weight: 400; }

/* ============ header ============ */
header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 980px; margin: 0 auto; padding: 22px 24px 8px;
}
.logo { font-size: 26px; text-decoration: none; letter-spacing: 0.01em; }
.logo .in { color: #e6432e; }
header nav { display: flex; gap: 22px; align-items: center; font-size: 16px; }
header nav a { text-decoration: none; }
header nav a:not(.btn):hover { text-decoration: underline wavy #e6432e 2px; text-underline-offset: 5px; }
@media (max-width: 640px) { header nav a.hide-sm { display: none; } }

.btn {
  display: inline-block; text-decoration: none; color: #22242a; background: #ffd23e;
  padding: 10px 22px; cursor: pointer; font-family: inherit; font-size: 16px;
}
.btn:hover { background: #ffdc62; }
.btn.big { font-size: 19px; padding: 14px 30px; }

/* ============ hero ============ */
.hero { padding: 54px 0 30px; position: relative; }
.hero .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; }
@media (max-width: 760px) { .hero .grid { grid-template-columns: 1fr; } }

h1 {
  font-size: clamp(38px, 6vw, 62px); line-height: 1.04; margin: 0 0 14px;
  letter-spacing: 0.005em; text-wrap: balance;
}
h1 .under {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="12" viewBox="0 0 120 12"><path d="M2 8 Q30 3 60 7 T118 6" fill="none" stroke="%23e6432e" stroke-width="4" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 11px; padding-bottom: 10px;
}
.hero .sub { font-size: 19px; color: #4c505b; margin: 0 0 26px; max-width: 44ch; }
.hero .sub b { color: #22242a; }
.cta-note { display: inline-block; margin-left: 14px; font-size: 14.5px; color: #7a7e88; transform: rotate(-1.5deg); }

/* the boiling-line mascot */
.easel { position: relative; text-align: center; }
.easel .note {
  position: absolute; right: 4%; top: -8px; color: #e6432e; font-size: 15px;
  transform: rotate(3deg); max-width: 170px; text-align: left;
}
.easel .note-b {
  position: absolute; left: 0; bottom: 6px; color: #4f8ff0; font-size: 14px;
  transform: rotate(-2deg); max-width: 150px; text-align: left;
}
#mascot .f1 { display: none; }
#mascot.tick .f0 { display: none; }
#mascot.tick .f1 { display: block; }

/* ============ hand-drawn section headers ============ */
section { padding: 44px 0 10px; }
h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 8px; }
h2 .hl { background: linear-gradient(transparent 55%, #ffd23e 55%, #ffd23e 92%, transparent 92%); padding: 0 4px; }
.kicker { color: #e6432e; font-size: 15px; margin: 0 0 2px; transform: rotate(-0.5deg); }
.section-sub { color: #4c505b; font-size: 16.5px; max-width: 58ch; margin: 4px 0 24px; }

/* ============ how it works: doodle flowchart ============ */
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; justify-content: center; margin: 10px 0 6px; }
.flow .step { text-align: center; padding: 6px 10px; width: 168px; }
.flow .step .pic { height: 92px; display: flex; align-items: center; justify-content: center; }
.flow .step h3 { margin: 6px 0 2px; font-size: 17px; }
.flow .step p { margin: 0; font-size: 13.5px; color: #6a6e78; line-height: 1.4; }
.flow .arrow { display: flex; align-items: center; padding-top: 22px; }
@media (max-width: 860px) { .flow .arrow { display: none; } .flow { gap: 14px; } }

/* ============ feature spreads ============ */
.spread { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; margin: 38px 0; }
.spread.flip .pad { order: -1; }
@media (max-width: 760px) { .spread { grid-template-columns: 1fr; } .spread.flip .pad { order: 0; } }
.spread h3 { font-size: 24px; margin: 0 0 8px; }
.spread .body { font-size: 16.5px; color: #4c505b; margin: 0 0 14px; }
.spread .body b { color: #22242a; }
.pad { background: #fff; padding: 18px 18px 12px; position: relative; }
.pad .caption { font-size: 13.5px; color: #7a7e88; margin: 8px 0 0; }
.pad .red-note { color: #e6432e; font-size: 14.5px; margin: 6px 0 0; transform: rotate(-1deg); }
.scribble-list { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.scribble-list li { margin: 0 0 10px; padding-left: 32px; position: relative; }
.scribble-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 20 20"><path d="M3 11 L8 16 L17 4" fill="none" stroke="%231d8a55" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
}
.scribble-list small { display: block; font-size: 13px; color: #7a7e88; }

/* tape strips on pads */
.tape {
  position: absolute; width: 86px; height: 22px; background: rgba(240, 225, 160, 0.6);
  top: -11px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.tape.tl { left: 12%; transform: rotate(-24deg); }
.tape.tr { left: auto; right: 6%; transform: rotate(18deg); }

/* ============ pledge ============ */
.pledge-zone { position: relative; padding-top: 10px; }
.pledge-box { background: #fff; padding: 26px 30px 22px; position: relative; }
.pledge-box .stamp {
  position: absolute; right: 22px; top: -34px; width: 128px; height: 128px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 4px solid #e6432e; border-radius: 50%; color: #e6432e;
  font-size: 15px; line-height: 1.25; text-transform: uppercase;
  letter-spacing: 0.04em; transform: rotate(9deg); padding: 12px;
  mask-image: radial-gradient(circle, black 55%, rgba(0, 0, 0, 0.8) 100%);
}
@media (max-width: 700px) { .pledge-box .stamp { position: static; transform: rotate(-4deg); margin-bottom: 10px; } }
.pledge-box ol { margin: 12px 0 0; padding: 0 0 0 6px; list-style: none; counter-reset: pledge; }
.pledge-box ol li {
  counter-increment: pledge; margin: 0 0 14px; padding-left: 40px; position: relative; font-size: 16.5px;
}
.pledge-box ol li::before {
  content: counter(pledge) "."; position: absolute; left: 4px; top: 0;
  color: #e6432e; font-size: 20px;
}
.pledge-box ol li span { color: #6a6e78; font-size: 14.5px; }
.signed { margin-top: 18px; font-size: 15px; color: #4c505b; }
.signed .sig { font-size: 22px; color: #22242a; transform: rotate(-2deg); display: inline-block; margin-left: 8px; }

/* ============ parents index card ============ */
.parent-card {
  background: #fffef5; max-width: 560px; margin: 26px auto 6px; padding: 20px 26px; position: relative;
  background-image: repeating-linear-gradient(transparent 0 26px, #f3d9dc 26px 27px);
  transform: rotate(-1deg);
}
.parent-card h3 { margin: 0 0 8px; font-size: 19px; }
.parent-card p { margin: 0 0 8px; font-size: 15px; color: #4c505b; }

/* ============ big CTA ============ */
.finale { text-align: center; padding: 56px 0 20px; }
.finale h2 { margin-bottom: 6px; }
.finale p { color: #4c505b; font-size: 17px; margin: 0 0 24px; }

/* ============ footer ============ */
footer { margin-top: 60px; position: relative; }
.footer-cast { display: flex; justify-content: center; gap: 44px; align-items: flex-end; margin-bottom: -4px; }
.footer-line { border: 0; border-top: 3px solid #22242a; margin: 0; }
/* three quiet columns + pledge reminder */
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 24px; max-width: 780px; margin: 0 auto; padding: 24px 24px 14px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 6px; }
.footer-h { color: #e6432e; font-size: 14px; margin: 0 0 2px; }
.footer-cols a { text-decoration: none; font-size: 14.5px; color: #4c505b; }
.footer-cols a:hover { text-decoration: underline wavy #e6432e 2px; text-underline-offset: 4px; color: #22242a; }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; max-width: 980px; margin: 0 auto; padding: 6px 24px 40px; font-size: 13.5px; color: #6a6e78; }
.pledge-reminder { text-decoration: none; color: #22242a; }
.pledge-reminder:hover { text-decoration: underline wavy #e6432e 2px; text-underline-offset: 4px; }
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr; gap: 14px; } }

a:focus-visible, button:focus-visible { outline: 3px solid #4f8ff0; outline-offset: 2px; }

/* ============================================================
 * Boiling-line mascot, CSS-only.
 * The original static page swapped #mascot frames with a <script> toggling
 * a .tick class every 220ms. This site ships zero JS, so the same two-frame
 * flicker is reproduced with opacity + step-end timing. The two <g> frames in
 * the SVG overlap in the viewBox, so swapping visible opacity matches the old
 * display:none/block toggle exactly. Paused for reduced-motion users (then
 * frame 0 holds, as the JS did when it returned early).
 * ============================================================ */
#mascot .f0 { animation: boil0 440ms step-end infinite; }
#mascot .f1 { display: block; animation: boil1 440ms step-end infinite; }
@keyframes boil0 { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes boil1 { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #mascot .f0, #mascot .f1 { animation: none; }
  #mascot .f1 { opacity: 0; }
}

/* ==== beta additions ==== */

/* Slim status strip under the hero headline (closed-beta note). */
.beta-status {
  display: inline-block; margin: 2px 0 18px; padding: 2px 0;
  color: #e6432e; font-size: 15px; transform: rotate(-0.8deg);
  border-bottom: 2px dashed #e6432e;
}

/* /beta + thanks + 404 hero spacing (shares .section-sub, .pad, .btn). */
.beta-hero { padding: 40px 0 10px; }
.beta-hero h1 { font-size: clamp(34px, 5.4vw, 52px); margin: 0 0 10px; line-height: 1.06; }

/* Standalone annotation note — the .note class is only styled inside .easel. */
.site-note { color: #e6432e; font-size: 15px; transform: rotate(-1deg); max-width: 44ch; margin: 22px 0 0; }
.site-note.blue { color: #4f8ff0; }

/* Waitlist form (plain POST, no client JS). */
.waitlist { background: #fff; padding: 22px 24px 18px; max-width: 560px; margin: 8px 0 0; }
.field { display: block; margin: 0 0 16px; }
.field-label { display: block; font-size: 15px; color: #4c505b; margin: 0 0 4px; }
.waitlist input[type="email"] {
  width: 100%; font-family: inherit; font-size: 17px; padding: 9px 11px; color: #22242a;
  background: #fffef5; border: 2px solid #22242a;
  border-radius: 12px 4px 16px 6px / 6px 16px 4px 12px;
}
.waitlist input[type="email"]:focus-visible { outline: 3px solid #4f8ff0; outline-offset: 2px; }
.age { border: 0; padding: 0; margin: 0 0 6px; }
.age-row { margin-top: 2px; }
.age-row input[type="radio"] { width: 18px; height: 18px; vertical-align: -3px; margin-right: 5px; accent-color: #e6432e; }
.age-row label { margin-right: 18px; font-size: 16px; }
/* Guardian note reveals via CSS only when "under 16" is checked. No JS. */
.guardian-note { display: none; }
#age-under:checked ~ .guardian-note {
  display: block; color: #e6432e; font-size: 14.5px; transform: rotate(-0.6deg);
  margin: 8px 0 0; max-width: 46ch;
}
/* Honeypot: hidden from people, present for bots. */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.waitlist .btn { font-size: 18px; padding: 12px 28px; margin-top: 6px; }

/* The beta promise card reuses .pledge-box; this is just the title. */
.promise-title { font-size: 26px; margin: 0 0 6px; }

/* FAQ grid. */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 10px; }
.faq .qa { background: #fff; padding: 16px 18px; }
.faq .qa h3 { font-size: 18px; margin: 0 0 4px; }
.faq .qa .section-sub { font-size: 15px; margin: 0; }

/* 404 links. */
.not-found-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }

/* ============================================================
 * ==== article pages ====  (pillar guide, comparisons, parents,
 * assets, press) — long-form prose column rendered by [slug].astro.
 * Plus the pillar TOC index-card, the BetaCta card, and /made.
 * ============================================================ */

.article-main { padding: 40px 0 10px; }
.article { max-width: 68ch; margin: 0 auto; }
.article-head { margin-bottom: 6px; }
.article h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08; margin: 0 0 10px; text-wrap: balance; }
.article-body { margin-top: 14px; }
.article h2 { font-size: clamp(23px, 3vw, 30px); margin: 36px 0 6px; line-height: 1.15; }
.article h3 { font-size: 19px; margin: 22px 0 4px; }
.article p { font-size: 16.5px; line-height: 1.65; color: #2b2e36; margin: 0 0 14px; }
.article ul, .article ol { margin: 4px 0 16px; padding-left: 26px; }
.article li { margin: 3px 0; }
.article li::marker { color: #e6432e; }
.article a { color: #22242a; text-decoration: underline; text-decoration-color: #e6432e; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article a:hover { background: #fff3d6; }
.article strong { font-weight: 700; }
.article code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; background: #fffef5; border: 1.5px solid #e2d9b8; border-radius: 5px; padding: 0 5px; }
.article pre { background: #fffef5; border: 2.5px solid #22242a; border-radius: 12px 3px 14px 4px / 4px 14px 3px 12px; padding: 14px 16px; overflow-x: auto; margin: 16px 0 20px; }
.article pre code { background: none; border: 0; padding: 0; font-size: 14px; color: #2b2e36; }
.article hr { border: 0; border-top: 2px dashed #cdcfd6; margin: 26px 0; }
.article table { display: block; overflow-x: auto; width: 100%; max-width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14.5px; }
.article th, .article td { border: 2px solid #22242a; padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.45; }
.article th { background: #fffef5; }
.article thead th:first-child { background: #fdfcf7; }
.article td:first-child { background: #fffef5; }

/* pillar guide: table of contents index-card (anchor links to h2s) */
.toc-card { background: #fffef5; border: 2.5px solid #22242a; border-radius: 18px 4px 20px 6px / 6px 20px 4px 18px; padding: 12px 18px 14px 20px; margin: 10px 0 28px; max-width: 420px; }
.toc-card .toc-title { color: #e6432e; font-size: 14px; margin: 0 0 4px; }
.toc-card ol { list-style: none; margin: 0; padding: 0; }
.toc-card li { margin: 1px 0; }
.toc-card a { text-decoration: none; font-size: 15px; }
.toc-card a:hover { text-decoration: underline wavy #e6432e 2px; text-underline-offset: 3px; }

/* FAQ block on article pages (reuses .faq grid from beta additions). */
.article-faq-section { margin-top: 30px; }
.article-faq-section h2 { margin-top: 0; }

/* consistent bottom CTA card on every article page */
.beta-cta { background: #fff; padding: 18px 22px; margin: 40px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.beta-cta p { margin: 0; font-size: 16.5px; color: #22242a; }
@media (max-width: 480px) { .beta-cta .btn { width: 100%; text-align: center; } }

/* /made — one centered card */
.made-main { padding: 64px 0 20px; }
.made-card { max-width: 560px; margin: 0 auto; background: #fff; padding: 34px 30px 28px; text-align: center; }
.made-card h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.1; margin: 0 0 14px; }
.made-card p { color: #4c505b; font-size: 16.5px; line-height: 1.6; margin: 0 0 14px; }
.made-card .made-tail { color: #22242a; }
.made-card .btn { margin-top: 10px; }
