/* AI Sidekick marketing page. Site palette is cream/orange (does not match
   the app's current blue "Explorer" theme — see handoff notes). */
:root {
    --cream: #F6F8FF;
    --paper: #FFFFFF;
    --peach: #E3E9FF;
    --ink: #1B2147;
    --rust: #2F3DB8;
    --muted: #525C86;
    --orange: #1672DE;
    --lilac: #E6DAF6;
    --mint: #DAF3DD;
    --night: #171B3D;
    --night-2: #232860;
    --moon: #F7CD45;
    --star-text: #F4EEE2;
    --night-muted: #B9B6D6;
    --line: #DCE2F7;
    --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
    --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius-device: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 72px; }
body {
    margin: 0;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--rust); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: var(--moon); }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
@media (min-width: 600px) { .wrap { padding: 0 32px; } }

.skip {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* Buttons: ink text on orange keeps 6:1 contrast */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 12px 28px;
    font-family: var(--display); font-weight: 700; font-size: 1.15rem;
    color: #FFFFFF; background: var(--orange);
    border-radius: 999px; text-decoration: none;
    box-shadow: 0 5px 0 #0F55A8;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 7px 0 #0F55A8; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #0F55A8; }
.btn-small { min-height: 42px; padding: 8px 18px; font-size: 1rem; box-shadow: 0 3px 0 #0F55A8; }

/* Header */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246, 248, 255, .92);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--display); font-weight: 800; font-size: 1.3rem;
    color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand img { border-radius: 10px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 26px; }
.nav-links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.nav-links a:hover { color: var(--rust); text-decoration: underline; }
@media (min-width: 880px) { .nav-links { display: flex; } }

/* Device frame drawn in CSS around a real screenshot */
.device {
    position: relative;
    width: 100%; max-width: 300px;
    padding: 10px;
    background: #1C2033;
    border-radius: var(--radius-device);
    box-shadow: 0 2px 0 #3A3F5C inset, 0 30px 60px -20px rgba(30, 40, 110, .35);
}
.device::before {
    /* iPhone-shaped screenshots have a Dynamic Island, not a round camera hole */
    content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
    width: 34px; height: 10px; border-radius: 999px; background: #0A0C18; z-index: 1;
}
.device img { border-radius: calc(var(--radius-device) - 10px); width: 100%; aspect-ratio: 1206 / 2622; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 72px; }
.blob { position: absolute; border-radius: 50%; z-index: 0; }
.blob-peach { width: 420px; height: 420px; background: #D6E0FF; left: -160px; top: -120px; }
.blob-lilac { width: 300px; height: 300px; background: var(--lilac); right: -110px; top: 38%; }
.blob-mint { width: 220px; height: 220px; background: var(--mint); left: 42%; bottom: -120px; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero h1 {
    font-size: clamp(2.6rem, 8.5vw, 5rem);
    font-weight: 800; color: var(--rust); letter-spacing: -0.01em;
    max-width: 12ch;
}
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 34em; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.status { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(22, 114, 222, .25); flex: none; }
.hero-phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-phone .device { max-width: 320px; transform: rotate(2deg); }
.hero-phone figcaption { font-weight: 700; color: var(--muted); }
@media (min-width: 880px) {
    .hero { padding: 72px 0 110px; }
    .hero-grid { grid-template-columns: 1.25fr 1fr; }
}

/* Vision */
.vision { padding: 72px 0; background: var(--paper); border-block: 1px solid var(--line); }
.vision h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--ink); margin-bottom: 24px; }
.vision p { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 36em; }

.section-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--rust); margin-bottom: 16px; }

/* Feature rows */
.features { padding: 88px 0 40px; }
.feature { display: grid; gap: 36px; align-items: center; padding: 48px 0; }
.feature h3 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.feature-copy { max-width: 32em; }
.feature-copy p { font-size: 1.12rem; }
.feature-shot { display: flex; justify-content: center; }
.feature-shot .device { max-width: 280px; }
.pair { position: relative; padding-right: 60px; isolation: isolate; }
.pair .device-back {
    position: absolute; right: 0; top: 40px; max-width: 220px; z-index: -1;
    transform: rotate(5deg);
}
.pair .device:first-child { transform: rotate(-3deg); }
.games { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.games li {
    background: var(--peach); color: var(--rust); font-weight: 800;
    padding: 6px 14px; border-radius: 999px;
}
@media (min-width: 880px) {
    .feature { grid-template-columns: 1.1fr 1fr; gap: 64px; }
    .feature-flip .feature-copy { order: 2; }
}

/* Night: the page turns to bedtime, like the app does */
.night {
    position: relative; overflow: hidden;
    color: var(--star-text);
    background: linear-gradient(180deg, var(--cream) 0, #C9D6FF 90px, #9FA6E8 190px, #5B4E8E 300px, var(--night-2) 400px, var(--night) 560px);
    padding: 300px 0 96px;
}
.stars {
    position: absolute; inset: 300px 0 0; pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 12% 8%, #fff 60%, transparent 61%),
        radial-gradient(1.5px 1.5px at 30% 22%, #fff 60%, transparent 61%),
        radial-gradient(2px 2px at 78% 12%, #fff 60%, transparent 61%),
        radial-gradient(1.5px 1.5px at 90% 40%, #fff 60%, transparent 61%),
        radial-gradient(2px 2px at 55% 5%, #FFE9A8 60%, transparent 61%),
        radial-gradient(1.5px 1.5px at 6% 55%, #fff 60%, transparent 61%),
        radial-gradient(2px 2px at 45% 70%, #fff 60%, transparent 61%),
        radial-gradient(1.5px 1.5px at 70% 85%, #FFE9A8 60%, transparent 61%),
        radial-gradient(2px 2px at 20% 92%, #fff 60%, transparent 61%);
    opacity: .8;
}
.night-inner { position: relative; }
.night h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--moon); margin-bottom: 18px; }
.night p { color: var(--star-text); font-size: 1.12rem; }
.moon { width: 48px; height: 48px; fill: var(--moon); margin-bottom: 12px; }
.device-night { background: #0B0E24; box-shadow: 0 0 0 1px #3A3F7A, 0 30px 80px -20px rgba(247, 205, 69, .25); }
.device-night::before { background: #000; }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
    content: ""; position: absolute; left: 2px; top: .45em;
    width: 14px; height: 14px; border-radius: 50%; background: var(--orange);
}
.checks-night li { color: var(--star-text); }
.checks-night li::before { background: var(--moon); width: 12px; height: 12px; box-shadow: 0 0 10px rgba(247, 205, 69, .7); }

/* Parents */
.parents { padding: 96px 0; }
.parents-head { display: grid; gap: 32px; align-items: center; margin-bottom: 56px; }
.parents-head .lede { color: var(--muted); }
.device-small { max-width: 220px; justify-self: center; }
@media (min-width: 880px) {
    .parents-head { grid-template-columns: 1fr auto; }
    .device-small { justify-self: end; }
}
.safety { display: grid; gap: 0 48px; }
.safety-item { padding: 22px 0; border-top: 2px dashed var(--line); }
.safety-item h3 { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.safety-item p { margin: 0; color: var(--muted); }
@media (min-width: 700px) { .safety { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .safety { grid-template-columns: 1fr 1fr 1fr; } }

/* Languages */
.languages { padding: 88px 0; background: var(--peach); }
.lang-grid { display: grid; gap: 40px; margin-top: 16px; }
.lang-grid h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }
@media (min-width: 880px) { .lang-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.pills { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li {
    background: var(--paper); border: 2px solid #F4C9A4; color: var(--ink);
    font-weight: 800; font-size: 1.1rem; padding: 6px 16px; border-radius: 14px;
}
.pills-quiet li { font-size: 1rem; font-weight: 700; border-color: transparent; background: rgba(255, 255, 255, .6); }
.note { color: var(--muted); font-size: .98rem; margin: 0; }

/* FAQ */
.faq { padding: 96px 0 72px; }
.faq details { border-bottom: 2px dashed var(--line); }
.faq details:first-of-type { border-top: 2px dashed var(--line); }
.faq summary {
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 0; font-family: var(--display); font-weight: 700; font-size: 1.3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; background: var(--peach); color: var(--rust);
    font-size: 1.4rem; line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; margin: 0; max-width: 40em; }

/* Closing */
.closing { padding: 72px 0 96px; text-align: center; }
.closing .wrap { background: var(--paper); border: 2px solid var(--line); border-radius: 32px; padding: 48px 24px; }
.closing h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; color: var(--rust); margin-bottom: 12px; }
.closing p { color: var(--muted); max-width: 30em; margin: 0 auto 28px; }

/* Footer */
.footer { background: var(--ink); color: #EBDCCD; padding: 48px 0; }
.footer a { color: #FFD3B0; }
.footer a:hover { color: #fff; }
.footer :focus-visible { outline-color: #FFD3B0; }
.footer-inner { display: grid; gap: 28px; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: #fff; margin: 0 0 4px; }
.footer-inner p { margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-copy { font-size: .95rem; color: #CDB8A6; }
@media (min-width: 880px) { .footer-inner { grid-template-columns: auto 1fr; align-items: start; } .footer-links { justify-content: flex-end; } .footer-copy { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
