/*
 * 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; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px;
  max-width: 980px; margin: 0 auto; padding: 16px 24px 40px; font-size: 14px; color: #6a6e78;
}
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { text-decoration: underline wavy #e6432e 2px; text-underline-offset: 4px; }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }

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