@font-face { font-family: 'Fredoka'; font-weight: 500; src: url(/fonts/fredoka/fredoka-latin-500-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Fredoka'; font-weight: 600; src: url(/fonts/fredoka/fredoka-latin-600-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Fredoka'; font-weight: 700; src: url(/fonts/fredoka/fredoka-latin-700-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 400; src: url(/fonts/nunito/nunito-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 700; src: url(/fonts/nunito/nunito-latin-700-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 800; src: url(/fonts/nunito/nunito-latin-800-normal.woff2) format('woff2'); font-display: swap; }

:root {
  --ink: #1f2937; --muted: #5b6474; --paper: #FFFBF2; --line: #1f2937;
  --sun: #FFD23F; --coral: #EE4266; --mint: #0EAD69; --sky: #3B82F6; --grape: #7C3AED; --orange: #F97316;
  --sun-l: #FFF3C4; --coral-l: #FFE1E8; --mint-l: #D9F7E8; --sky-l: #DDEBFF; --grape-l: #EEE5FF;
  --radius: 18px; --shadow: 4px 4px 0 var(--line);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
body { margin: 0; font-family: Nunito, system-ui, sans-serif; color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.55; }
h1, h2, h3, h4, .fred { font-family: Fredoka, system-ui, sans-serif; line-height: 1.1; margin: 0 0 .4em; }
a { color: var(--coral); font-weight: 700; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* Logo */
.logo { font-family: Fredoka, system-ui, sans-serif; font-weight: 700; font-size: 26px; text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.logo small { font-size: 12px; letter-spacing: .25em; font-weight: 600; }
.logo .m1 { color: var(--coral); } .logo .m2 { color: #FFB400; } .logo .m3 { color: var(--mint); } .logo .m4 { color: var(--sky); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,251,242,.92); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav nav { display: flex; gap: 18px; align-items: center; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav nav a.btn { color: var(--ink); }
@media (max-width: 760px) { .nav nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: Fredoka, system-ui, sans-serif; font-weight: 600; font-size: 18px; padding: 11px 22px; border-radius: 999px; border: 2.5px solid var(--line); background: var(--sun); color: var(--ink); text-decoration: none; cursor: pointer; box-shadow: var(--shadow); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn.coral { background: var(--coral); color: #fff; } .btn.white { background: #fff; } .btn.mint { background: var(--mint); color: #fff; }
.btn.small { font-size: 15px; padding: 7px 14px; box-shadow: 3px 3px 0 var(--line); }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; text-decoration: underline; padding: 6px 8px; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* Hero */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero h1 .hl { background: linear-gradient(transparent 60%, var(--sun) 60%); }
.hero p.lead { font-size: 21px; color: var(--muted); max-width: 34em; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-weight: 800; font-size: 14px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.paper-shot { transform: rotate(2.5deg); border: 3px solid var(--line); border-radius: 12px; box-shadow: 10px 10px 0 var(--line); background: #fff; position: relative; }
.doodle { position: absolute; pointer-events: none; opacity: .9; display: none; }
/* Doodles live in the side margins, so only show them when the margins are wide enough to never touch text. */
@media (min-width: 1380px) { .doodle { display: block; } }
.hero .wrap > * { min-width: 0; }
.shot-wrap { position: relative; }
.shot-wrap::after { content: 'Hot off the printer!'; position: absolute; top: -14px; left: -10px; transform: rotate(-9deg); font-family: Fredoka, system-ui, sans-serif; font-weight: 600; background: var(--coral); color: #fff; border: 2.5px solid var(--line); border-radius: 999px; padding: 6px 14px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .shot-wrap { max-width: 480px; margin: 30px auto 0; } }
@media (max-width: 600px) { .hero { padding-top: 32px; } .hero p.lead { font-size: 18px; } .nav .btn.small { font-size: 13px; padding: 6px 10px; } .logo { font-size: 21px; } .btn { font-size: 16px; } }

/* Sections */
section.block { padding: 70px 0; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.section-title h2 { font-size: clamp(32px, 4vw, 46px); }
.section-title p { color: var(--muted); font-size: 19px; margin: 0; }
.eyebrow { display: inline-block; font-family: Fredoka, system-ui, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--sun); padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.band-sun { background: var(--sun-l); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.band-sky { background: var(--sky-l); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.band-ink { background: var(--ink); color: #fff; } .band-ink .section-title p { color: #cbd5e1; }

.card { background: #fff; border: 2.5px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ic { flex: 0 0 52px; height: 52px; border-radius: 14px; border: 2.5px solid var(--line); display: grid; place-items: center; font-size: 26px; }
.feature h3 { font-size: 20px; margin-bottom: 2px; } .feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.steps { counter-reset: s; }
.step { position: relative; padding-top: 34px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -22px; left: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--coral); color: #fff; font-family: Fredoka, system-ui, sans-serif; font-weight: 700; font-size: 24px; display: grid; place-items: center; border: 2.5px solid var(--line); }
.step h3 { font-size: 22px; } .step p { margin: 0; color: var(--muted); }

.stat { text-align: left; }
.stat .num { font-family: Fredoka, system-ui, sans-serif; font-weight: 700; font-size: 54px; line-height: 1; color: var(--coral); }
.stat p { margin: 8px 0 10px; font-weight: 700; }
.stat .src { font-size: 13px; color: var(--muted); font-style: italic; }
.stat .src a { font-weight: 700; color: var(--muted); }

.editions .card { text-align: center; }
.editions .age { font-family: Fredoka, system-ui, sans-serif; font-weight: 700; font-size: 30px; }
.editions .name { font-family: Fredoka, system-ui, sans-serif; font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.editions ul { text-align: left; padding-left: 20px; margin: 0; color: var(--muted); font-size: 15px; }

.printer-opts .card h3 { font-size: 22px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; border: 2px solid var(--line); margin-bottom: 8px; }

.faq details { background: #fff; border: 2.5px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; }
.faq summary { font-family: Fredoka, system-ui, sans-serif; font-weight: 600; font-size: 19px; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(34px, 5vw, 54px); }
footer.site { padding: 34px 0; border-top: 2px solid var(--line); font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Forms */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 18px; }
.auth .card { width: 100%; max-width: 640px; }
label { display: block; font-weight: 800; margin: 14px 0 6px; font-size: 15px; }
.hint { font-weight: 600; color: var(--muted); font-size: 13.5px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 2.5px solid var(--line); border-radius: 12px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row, .row3 { grid-template-columns: 1fr; } }
.interests { display: flex; flex-wrap: wrap; gap: 8px; }
.interests label { margin: 0; }
.interests input { position: absolute; opacity: 0; pointer-events: none; }
.interests span { display: inline-flex; align-items: center; gap: 6px; border: 2.5px solid var(--line); border-radius: 999px; padding: 6px 14px; background: #fff; cursor: pointer; font-weight: 800; user-select: none; }
.interests input:checked + span { background: var(--sun); box-shadow: 3px 3px 0 var(--line); }
.interests input:focus-visible + span { outline: 3px solid var(--sky); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.err { background: var(--coral-l); border: 2px solid var(--coral); color: #9F1239; border-radius: 12px; padding: 10px 14px; font-weight: 700; margin-top: 14px; display: none; }
.ok { background: var(--mint-l); border: 2px solid var(--mint); color: #065F46; border-radius: 12px; padding: 10px 14px; font-weight: 700; margin-top: 14px; display: none; }
.fineprint { font-size: 13px; color: var(--muted); }

/* Dashboard */
.dash { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 30px 0 60px; }
.side-nav { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 90px; align-self: start; }
.side-nav button { text-align: left; font-family: Fredoka, system-ui, sans-serif; font-weight: 600; font-size: 17px; padding: 10px 14px; border-radius: 14px; border: 2.5px solid transparent; background: transparent; cursor: pointer; color: var(--ink); }
.side-nav button.active { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } .side-nav { flex-direction: row; overflow-x: auto; position: static; } .side-nav button { white-space: nowrap; } }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-h h2 { font-size: 32px; margin: 0; }
.kid { display: flex; flex-direction: column; gap: 10px; }
.kid .top { display: flex; align-items: center; gap: 12px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid var(--line); display: grid; place-items: center; font-family: Fredoka, system-ui, sans-serif; font-weight: 700; font-size: 26px; flex: 0 0 auto; }
.kid h3 { margin: 0; font-size: 24px; } .kid .meta { color: var(--muted); font-size: 14px; font-weight: 700; }
.pill-list { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 12.5px; font-weight: 800; border: 2px solid var(--line); border-radius: 999px; padding: 1px 9px; background: var(--sun-l); }
.kid .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.preview-frame { width: 100%; height: 1150px; border: 2.5px solid var(--line); border-radius: 14px; background: #EEF2F7; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 2px dashed #d6d3c8; }
.list-row:last-child { border-bottom: 0; }
.radio-cards { display: grid; gap: 12px; }
.radio-cards label { margin: 0; display: flex; gap: 12px; align-items: flex-start; border: 2.5px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; cursor: pointer; font-weight: 600; }
.radio-cards input { margin-top: 5px; }
.radio-cards b { font-family: Fredoka, system-ui, sans-serif; font-size: 18px; font-weight: 600; }
.radio-cards label:has(input:checked) { background: var(--sun-l); box-shadow: var(--shadow); }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.hidden { display: none !important; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-weight: 800; padding: 12px 20px; border-radius: 999px; z-index: 50; }
.empty { text-align: center; padding: 30px; color: var(--muted); }
.code { font-family: ui-monospace, monospace; background: var(--sun-l); padding: 1px 6px; border-radius: 6px; font-size: 14px; }

/* Plan / pricing */
.plan-box { display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 2.5px solid var(--line); border-radius: 16px; padding: 14px 18px; background: var(--sun-l); }
.plan-box .price { white-space: nowrap; font-family: Fredoka, system-ui, sans-serif; }
.plan-box .price b { font-size: 34px; } .plan-box .price span { font-size: 16px; color: var(--muted); font-weight: 600; }
.pay-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--coral-l); margin-bottom: 14px; }
.pricing-card { max-width: 560px; margin: 0 auto; text-align: center; }
.pricing-card .big { font-family: Fredoka, system-ui, sans-serif; font-weight: 700; font-size: 64px; line-height: 1; }
.pricing-card .big small { font-size: 22px; color: var(--muted); font-weight: 600; }
.pricing-card ul { text-align: left; display: inline-block; margin: 18px 0; padding-left: 0; list-style: none; }
.pricing-card li { padding: 4px 0; font-weight: 700; }
.pricing-card li::before { content: '✓'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #fff; font-size: 13px; margin-right: 10px; }
