/* Owlimind site — plain CSS, no build step. Palette mirrors the app (lib/app/kid_ui). */
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --teal: #4FB3A9;
  --teal-dark: #2E8C83;
  --teal-ink: #1F6E67;
  --sun: #FFC94A;
  --sun-dark: #E5A91E;
  --coral: #FF8A65;
  --grass: #7CCB6B;
  --lilac: #B49CE0;
  --cream: #FFF8EC;

  --bg: #FFF8EC;
  --bg-alt: #FDEFD8;
  --surface: #FFFFFF;
  --ink: #2B3440;
  --ink-soft: #55606E;
  --line: #EADFCB;
  --shadow: 0 10px 24px rgba(91, 70, 40, .10), 0 2px 4px rgba(91, 70, 40, .06);
  --edge: inset 0 -5px 0 rgba(91, 70, 40, .08);
  --radius: 24px;
  --link: #1F6E67;
  --tint-teal: #E3F4F1;
  --tint-sun: #FFF1CC;
  --tint-coral: #FFE6DD;
  --tint-grass: #E7F6E2;
  --tint-lilac: #EFE8FA;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C2128;
    --bg-alt: #232A33;
    --surface: #2A323D;
    --ink: #F4EEE3;
    --ink-soft: #C3BDB2;
    --line: #3A4450;
    --shadow: 0 10px 24px rgba(0, 0, 0, .35);
    --edge: inset 0 -5px 0 rgba(0, 0, 0, .25);
    --link: #8FDCD3;
    --tint-teal: #23403E;
    --tint-sun: #43391F;
    --tint-coral: #45302A;
    --tint-grass: #2B3F28;
    --tint-lilac: #362F47;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun-dark); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 7vw, 52px); }
h2 { font-size: clamp(26px, 5vw, 38px); }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 12px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 22px; }
.brand-t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; white-space: nowrap; }
.brand-t small { display: block; font-size: 13px; font-weight: 800; color: var(--teal-ink); letter-spacing: .1px; }
@media (prefers-color-scheme: dark) { .brand-t small { color: var(--link); } }
.brand img { flex: none; width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--shadow); }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 700; padding: 8px 10px; border-radius: 12px; }
.nav a:hover { background: var(--tint-teal); }
.langs { margin-left: auto; display: flex; gap: 4px; }
.nav + .langs { margin-left: 8px; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; border-radius: 14px; text-decoration: none; font-weight: 800; color: var(--ink); border: 2px solid var(--line); background: var(--surface); }
.langs a[aria-current="true"] { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
@media (min-width: 1080px) { .nav { display: flex; } }

/* Buttons and badges */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 22px; border-radius: 18px; font-weight: 800; text-decoration: none; background: var(--teal-dark); color: #fff; box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), var(--shadow); }
.btn.alt { background: var(--surface); color: var(--ink); border: 2px solid var(--line); box-shadow: var(--edge); }
.soon { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 18px; background: #1E2228; color: #fff; box-shadow: inset 0 -5px 0 rgba(255,255,255,.08), var(--shadow); }
.soon svg { width: 30px; height: 30px; flex: none; }
.soon small { display: block; font-size: 12px; font-weight: 700; opacity: .85; line-height: 1.1; }
@media (prefers-color-scheme: dark) { .soon { background: #0F1216; border: 2px solid #3A4450; } }
.soon b { display: block; font-size: 19px; font-weight: 800; line-height: 1.15; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; list-style: none; }
.chips li { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 15px; background: var(--surface); border: 2px solid var(--line); }

/* Hero */
.hero { padding: 28px 0 40px; background:
  radial-gradient(120% 70% at 85% 0%, var(--tint-teal) 0%, transparent 60%),
  radial-gradient(90% 60% at 0% 100%, var(--tint-sun) 0%, transparent 60%); }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.kicker { display: inline-block; font-weight: 800; color: var(--teal-ink); background: var(--tint-teal); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--link); } }
.hero h1 span { color: var(--teal-dark); }
@media (prefers-color-scheme: dark) { .hero h1 span { color: var(--teal); } }
.hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 36em; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.hero-art .owl { width: 46%; max-width: 230px; margin-right: -8%; z-index: 1; filter: drop-shadow(0 12px 18px rgba(91,70,40,.18)); }
@media (min-width: 880px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
}

/* Phone frame */
.phone { position: relative; width: 100%; max-width: 270px; aspect-ratio: 9 / 16; border-radius: 34px; padding: 8px; background: #1E2228; box-shadow: var(--shadow), 0 24px 40px rgba(46,140,131,.18); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; background: #CFEAF4; }
.phone.sm { max-width: 220px; }

/* Sections */
section { padding: 56px 0; scroll-margin-top: 70px; }
section.alt { background: var(--bg-alt); }
.sec-head { max-width: 760px; margin-bottom: 28px; }
.sec-head p { color: var(--ink-soft); font-size: 18px; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } .grid.g4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow), var(--edge); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }
.glyph { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-weight: 900; font-size: 22px; color: #23303A; margin-bottom: 12px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.c-teal { background: var(--teal); } .c-sun { background: var(--sun); } .c-coral { background: var(--coral); }
.c-grass { background: var(--grass); } .c-lilac { background: var(--lilac); } .c-cream { background: #F6E3C3; }

/* Screens strip: scrolls inside itself, never the page */
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; margin: 0; list-style: none; overscroll-behavior-x: contain; }
.strip li { flex: 0 0 auto; width: 200px; scroll-snap-align: start; }
.strip img { width: 200px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); border: 6px solid #1E2228; background: #CFEAF4; }
.strip figcaption { font-weight: 700; font-size: 15px; margin-top: 8px; color: var(--ink-soft); }
.strip-hint { font-size: 14px; color: var(--ink-soft); }

/* Grows with your child */
.ages { display: grid; gap: 18px; }
@media (min-width: 820px) { .ages { grid-template-columns: 1fr 1fr; } }
.age { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 480px) { .age { grid-template-columns: 170px 1fr; } }
.age .phone { max-width: 170px; border-radius: 26px; padding: 6px; }
.age .phone video, .age .phone img { border-radius: 21px; }
.age-tag { display: inline-block; font-weight: 900; padding: 4px 14px; border-radius: 999px; margin-bottom: 8px; color: #23303A; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--grass); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.35em + 4px); width: 5px; height: 9px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.adapt { margin-top: 18px; display: grid; gap: 16px; align-items: center; }
@media (min-width: 720px) { .adapt { grid-template-columns: 120px 1fr; } }
.adapt img { width: 120px; }

/* Travel */
.travel { display: grid; gap: 28px; align-items: start; }
@media (min-width: 880px) { .travel { grid-template-columns: 300px 1fr; } }
.levels { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.levels li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; background: var(--surface); border-radius: 18px; padding: 10px 14px; box-shadow: var(--edge); border: 1px solid var(--line); }
.levels .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 20px; background: var(--sun); color: #23303A; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.levels b { display: block; }
.levels span { color: var(--ink-soft); font-size: 15px; }
.art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.art img { border-radius: 18px; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 480px) { .art { grid-template-columns: repeat(2, 1fr); } }

/* Two-column media + text */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 300px 1fr; } .split.rev { grid-template-columns: 1fr 300px; } .split.rev > .media { order: 2; } }
.media { display: flex; justify-content: center; }

/* FAQ */
.faq details { background: var(--surface); border-radius: 20px; margin-bottom: 12px; box-shadow: var(--edge); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 800; font-size: 18px; position: relative; min-height: 64px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--tint-teal); display: grid; place-items: center; font-weight: 900; color: var(--teal-ink); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 20px 18px; color: var(--ink-soft); }
.faq .a p:last-child { margin-bottom: 0; }

/* CTA */
.cta { text-align: center; }
.cta .owl { width: 160px; margin: 0 auto 10px; }

/* Footer */
footer { padding: 36px 0 48px; border-top: 1px solid var(--line); background: var(--bg-alt); font-size: 15px; }
footer .cols { display: grid; gap: 20px; }
@media (min-width: 720px) { footer .cols { grid-template-columns: 1.4fr 1fr; } }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
footer ul a { display: inline-block; padding: 6px 0; font-weight: 700; }
footer .fine { color: var(--ink-soft); margin-top: 18px; font-size: 14px; }

/* Documents (privacy, terms, support) */
.doc { padding: 36px 0 56px; }
.doc h1 { font-size: clamp(28px, 6vw, 42px); }
.doc h2 { font-size: 22px; margin-top: 1.8em; }
.doc h3 { font-size: 18px; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc .meta { color: var(--ink-soft); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--tint-teal); }
.note { background: var(--tint-sun); border-radius: 18px; padding: 14px 18px; margin: 18px 0; border: 2px dashed var(--sun-dark); }
.note.draft { background: var(--tint-coral); border-color: var(--coral); font-weight: 700; }
.box { background: var(--surface); border-radius: 20px; padding: 18px 20px; box-shadow: var(--edge); border: 1px solid var(--line); margin: 16px 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 48px; min-height: 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--teal-dark); color: #fff; font-weight: 900; display: grid; place-items: center; }
.mail { font-weight: 800; font-size: 19px; word-break: break-all; }

/* Root language chooser */
.chooser { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px 16px; }
.chooser img.owl { width: 180px; margin: 0 auto 12px; }
.chooser .langs { justify-content: center; margin: 18px 0 0; flex-wrap: wrap; gap: 10px; }
.chooser .langs a { min-width: 140px; min-height: 56px; font-size: 18px; }

/* Wide-screen side decorations (JS adds .side-deco only when viewport >= 1500px) */
.side-deco { display: none; }
@media (min-width: 1500px) {
  .side-deco { display: block; position: fixed; inset: 0; z-index: 4; pointer-events: none; }
  .side-owl, .side-globe {
    --gut: calc((100vw - 1120px) / 2 - 36px);
    position: absolute; bottom: 4vh; width: min(300px, var(--gut)); pointer-events: none;
  }
  .side-owl { left: 18px; }
  .side-owl-bob { animation: owl-bob 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
  .side-owl img { width: 100%; height: auto; pointer-events: auto; cursor: pointer; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 10px 14px rgba(40, 30, 10, .22)); }
  .side-owl.wave img { animation: owl-wave .6s ease-in-out 3; transform-origin: 50% 90%; }
  .side-owl-bob.jump { animation: owl-jump .7s cubic-bezier(.3, 1.4, .5, 1) 1; }
  .side-globe { right: 18px; aspect-ratio: 1; opacity: 0; }
  .side-globe.ready { opacity: 1; }
  .side-globe canvas { display: block; pointer-events: auto; cursor: grab; touch-action: none; border-radius: 50%; }
  .side-globe.grab canvas { cursor: grabbing; }
}
@keyframes owl-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes owl-jump { 0% { transform: translateY(0) scale(1, 1); } 20% { transform: translateY(0) scale(1.06, .92); } 55% { transform: translateY(-46px) scale(.96, 1.06); } 80% { transform: translateY(0) scale(1.05, .94); } 100% { transform: translateY(0) scale(1, 1); } }
@keyframes owl-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) {
  .side-owl-bob, .side-owl.wave img, .side-owl-bob.jump { animation: none !important; }
}
