/* Superklar marketing site. Same palette as the kid app's "playful" look (web/src/index.css). */
:root {
  --bg: #fff6ec;
  --bg-2: #fff0e0;
  --surface: #fff;
  --text: #3b2a4d;
  --muted: #6b5a7b; /* 5.6:1 on --bg */
  --accent: #ff6f91;
  --accent-dark: #d9446c; /* 4.6:1 with white text */
  --accent-2: #8f6bff;
  --purple-dark: #5a3fc9;
  --ok: #1f9d5c;
  --star: #ffd23f;
  --border: rgba(143, 107, 255, 0.16);
  --shadow: 0 10px 30px rgba(143, 107, 255, 0.16);
  --radius: 24px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable", system-ui, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.55; font-size: 1.0625rem; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--purple-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 99; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.eyebrow { font-weight: 800; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .6rem; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); margin-top: .8rem; font-size: 1.1rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 246, 236, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 900; font-size: 1.35rem; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 2.2rem; height: 2.2rem; border-radius: 10px; }
.nav { display: flex; gap: 1.4rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; }
.nav a:hover { color: var(--accent-dark); }
.bar .login { font-weight: 700; color: var(--text); text-decoration: none; }
@media (max-width: 860px) { .nav { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; cursor: pointer; font: inherit; font-weight: 800; padding: .85rem 1.4rem; border-radius: 999px; background: var(--accent-dark); color: #fff; text-decoration: none; box-shadow: 0 6px 0 rgba(120, 20, 60, .25); transition: transform .12s, box-shadow .12s; }
.btn:hover { color: #fff; transform: translateY(2px); box-shadow: 0 4px 0 rgba(120, 20, 60, .25); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 rgba(120, 20, 60, .25); }
.btn.small { padding: .55rem 1.1rem; box-shadow: none; }
.btn.small:hover { transform: none; box-shadow: none; background: var(--purple-dark); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 38rem; height: 38rem; right: -12rem; top: -10rem; background: radial-gradient(circle, rgba(143, 107, 255, .22), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; gap: 3rem; grid-template-columns: 1.1fr .9fr; align-items: center; position: relative; }
.hero h1 em { font-style: normal; color: var(--accent-dark); background: linear-gradient(transparent 62%, rgba(255, 210, 63, .7) 62%); }
.hero .lead { margin: 1.3rem 0 1.8rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* waiting-list form */
.waitlist { display: grid; gap: .7rem; max-width: 30rem; }
.waitlist .row { display: flex; gap: .6rem; flex-wrap: wrap; }
.waitlist label { font-weight: 700; font-size: .95rem; display: block; margin-bottom: .25rem; }
.waitlist input, .waitlist textarea { width: 100%; font: inherit; color: var(--text); padding: .8rem 1rem; border-radius: 16px; border: 2px solid var(--border); background: #fff; }
.waitlist input:focus, .waitlist textarea:focus { border-color: var(--accent-2); outline: none; box-shadow: 0 0 0 3px rgba(143, 107, 255, .25); }
.waitlist .grow { flex: 1 1 14rem; }
.hint { font-size: .92rem; color: var(--muted); }
.msg { font-weight: 700; padding: .8rem 1rem; border-radius: 14px; }
.msg[hidden] { display: none; }
.msg.ok { background: #dff6ea; color: #14633b; }
.msg.err { background: #ffe3e8; color: #8c1d3c; }

/* mascots */
.pets { display: flex; gap: .4rem; align-items: flex-end; margin-top: 2rem; }
.pet { width: 4.4rem; height: 4.4rem; }
.pet.bob { animation: bob 3.2s ease-in-out infinite; }
.pet.bob:nth-child(2) { animation-delay: -.8s; } .pet.bob:nth-child(3) { animation-delay: -1.6s; } .pet.bob:nth-child(4) { animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-.5rem); } }

/* mockups: illustrations built from the app's own look */
.mock { background: var(--surface); border-radius: 30px; box-shadow: var(--shadow); border: 1px solid var(--border); padding: 1.2rem; max-width: 24rem; width: 100%; position: relative; }
.mock-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.mock-top .pet { width: 3.2rem; height: 3.2rem; }
.mock-top b { font-size: 1.1rem; display: block; }
.mock-top small { color: var(--muted); }
.chips { margin-left: auto; display: flex; gap: .4rem; }
.chip { background: var(--bg-2); border-radius: 999px; padding: .2rem .65rem; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.bar-xp { height: .65rem; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin-bottom: 1rem; }
.bar-xp i { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }
.block-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: .8rem 0 .4rem; }
.task { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; background: var(--bg); border-radius: 16px; margin-bottom: .4rem; font-weight: 700; }
.task .ico { font-size: 1.5rem; line-height: 1; }
.task .tick { margin-left: auto; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 3px solid #e3d9f5; background: #fff; display: grid; place-items: center; color: #fff; font-size: .95rem; }
.task.done .tick { background: var(--ok); border-color: var(--ok); }
.task.done span:nth-child(2) { text-decoration: line-through; color: var(--muted); }
.task .pts { font-size: .8rem; color: var(--muted); font-weight: 800; }
.pack { background: #f1ebff; border-radius: 16px; padding: .7rem .8rem; margin-top: .8rem; }
.pack b { display: block; margin-bottom: .3rem; }
.pack .items { display: flex; flex-wrap: wrap; gap: .35rem; }
.pack .items span { background: #fff; border-radius: 99px; padding: .15rem .6rem; font-size: .9rem; font-weight: 700; }
.pack .items .got { color: var(--ok); }
.illu { font-size: .82rem; color: var(--muted); text-align: center; margin-top: .6rem; }
.reward { display: flex; align-items: center; gap: .8rem; background: var(--bg); border-radius: 18px; padding: .8rem; margin-bottom: .55rem; }
.reward .ico { font-size: 2rem; }
.reward b { display: block; }
.reward small { color: var(--muted); }
.reward .price { margin-left: auto; background: var(--star); color: #5b4300; font-weight: 900; padding: .3rem .8rem; border-radius: 99px; white-space: nowrap; }
.reward.locked { opacity: .65; }
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem; justify-items: center; align-items: start; }
.showcase figure { margin: 0; width: 100%; display: grid; justify-items: center; }
.showcase figcaption { margin-top: 1rem; max-width: 24rem; text-align: center; color: var(--muted); }
.float-badge { position: absolute; right: -.8rem; top: -1rem; background: var(--star); color: #5b4300; font-weight: 900; padding: .45rem .9rem; border-radius: 99px; transform: rotate(6deg); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }

/* cards */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 4px 14px rgba(143, 107, 255, .07); }
.card .ico { font-size: 2.2rem; line-height: 1; margin-bottom: .8rem; display: inline-grid; place-items: center; width: 3.6rem; height: 3.6rem; background: var(--bg-2); border-radius: 18px; }
.card p { color: var(--muted); margin-top: .5rem; }
.card:nth-child(3n+2) .ico { background: #f1ebff; }
.card:nth-child(3n) .ico { background: #ffe9ef; }
.more { display: grid; gap: .9rem 2rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-top: 3rem; list-style: none; padding: 0; }
.more li { padding-left: 2.2rem; position: relative; }
.more li::before { content: attr(data-i); position: absolute; left: 0; top: -.1rem; font-size: 1.4rem; }
.more b { display: block; }
.more span { color: var(--muted); }

/* steps */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--border); position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--accent-dark); color: #fff; font-weight: 900; font-size: 1.3rem; margin-bottom: 1rem; }
.steps p { color: var(--muted); margin-top: .5rem; }

/* parents */
.two { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .8rem; }
.checks li { padding-left: 2rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .1rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ok); color: #fff; font-size: .85rem; font-weight: 900; display: grid; place-items: center; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }

/* FAQ */
.faq { max-width: 46rem; display: grid; gap: .8rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1rem 1.3rem; }
.faq summary { font-weight: 800; cursor: pointer; list-style-position: outside; }
.faq details[open] summary { color: var(--accent-dark); }
.faq details p { margin-top: .7rem; color: var(--muted); }

/* CTA */
.cta { background: linear-gradient(135deg, #8f6bff, #ff6f91); color: #fff; border-radius: 36px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .95); margin-top: .8rem; }
.cta .waitlist { background: #fff; color: var(--text); padding: 1.4rem; border-radius: 24px; max-width: none; }
.cta .hint { color: var(--muted); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* footer */
.site-footer { padding: 2.5rem 0 3rem; color: var(--muted); font-size: .95rem; }
.foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* text pages */
.prose { max-width: 44rem; padding: 3rem 0 4rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .7rem; }
.prose p, .prose li { color: #4b3b5c; }
.prose p + p, .prose ul { margin-top: .8rem; }
.prose li { margin-bottom: .4rem; }
.draft { background: #fff3c4; border: 2px dashed #c79a00; color: #4d3a00 !important; border-radius: 16px; padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; font-weight: 700; }
.notfound { text-align: center; padding: 4rem 0 5rem; display: grid; justify-items: center; gap: 1.2rem; }
.notfound .pet { width: 9rem; height: 9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pet.bob { animation: none; }
  .btn { transition: none; }
}

.hero-art { justify-self: center; width: 100%; max-width: 24rem; }
.btn-end { align-self: flex-end; }
.shop-title { font-size: 1.25rem; }
.panel-link { margin-top: 1.2rem; }
.bar .login, .brand { white-space: nowrap; }
