:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --tint: #eef8f1;
  --text: #1d2a4d;
  --muted: #4b5877;
  --line: #e3e7ef;
  --green: #2f9e6a;
  --green-deep: #1f7a50;
  --sun: #ffc83d;
  --sky: #4f7cff;
  --berry: #e0567a;
  --focus: #4f7cff;
  --radius: 18px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --surface: #1a2336;
    --tint: #16283a;
    --text: #eef2fb;
    --muted: #b6c0d6;
    --line: #2c3850;
    --green: #4cc98e;
    --green-deep: #7ee0b0;
    --sky: #8aa8ff;
    --focus: #8aa8ff;
  }
}

*, *::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;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--green-deep); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 8px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 10px 0; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.35rem; margin-right: auto; }
.logo-mark svg { width: 40px; height: 40px; display: block; }
.logo-mark.big svg { width: 120px; height: 120px; }
.site-header nav { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.site-header nav a { color: var(--text); text-decoration: none; font-weight: 700; padding: 6px 2px; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--green-deep); text-decoration: underline; text-decoration-thickness: 3px; }
.lang { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { padding: 4px 12px; font-weight: 800; font-size: .9rem; text-decoration: none; color: var(--muted); min-width: 44px; text-align: center; }
.lang a[aria-current] { background: var(--green); color: #fff; }
@media (max-width: 560px) {
  .site-header { position: static; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; }
}

/* Buttons and badges */
.button { display: inline-block; background: var(--green); color: #fff; font-weight: 800; text-decoration: none; padding: 12px 22px; border-radius: 999px; margin: 4px 6px 4px 0; box-shadow: 0 4px 0 var(--green-deep); }
.button:hover { filter: brightness(1.05); }
.button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--green-deep); }
.button-ghost { background: transparent; color: var(--green-deep); box-shadow: inset 0 0 0 2px var(--green); }
.button-ghost:active { box-shadow: inset 0 0 0 2px var(--green); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.badge { display: inline-flex; flex-direction: column; justify-content: center; min-width: 136px; min-height: 48px; padding: 6px 16px; border-radius: 10px; background: #000; color: #fff; text-decoration: none; line-height: 1.15; }
.badge-small { font-size: .72rem; }
.badge-big { font-size: 1.05rem; font-weight: 700; }
.badge-soon { background: transparent; color: var(--muted); border: 2px dashed var(--line); }

/* Hero */
.hero { padding: 40px 0 24px; background: radial-gradient(circle at 85% 30%, color-mix(in srgb, var(--sun) 35%, transparent), transparent 45%); }
.hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .hero-grid { grid-template-columns: 1.4fr 1fr; } .hero { padding: 64px 0 40px; } }
.kicker { font-weight: 800; color: var(--berry); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: .6em; }
.hero h1 em { font-style: normal; color: var(--green-deep); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.mascot { margin: 0; text-align: center; }
.mascot svg { width: min(300px, 70vw); height: auto; }
.mascot figcaption { font-size: .8rem; color: var(--muted); }

/* Sections */
.section { padding: 48px 0; }
.section-tint { background: var(--tint); }
.section-lead { color: var(--muted); max-width: 44em; font-size: 1.1rem; }
.note { color: var(--muted); font-size: .95rem; margin-top: 1.5em; }

.app-grid { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 800px) { .app-grid { grid-template-columns: 1fr 1fr; } }
.app-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 8px 24px rgb(29 42 77 / .06); border-top: 8px solid var(--sky); }
.app-kingdom { border-top-color: var(--sun); }
.app-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 8px; }
.app-tagline { font-weight: 800; color: var(--green-deep); }
.free-note { background: var(--tint); border-radius: 12px; padding: 10px 14px; font-size: .95rem; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 1.7em; position: relative; margin-bottom: .35em; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.path { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .path { grid-template-columns: repeat(5, 1fr); } }
.path li { display: flex; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
@media (min-width: 900px) { .path li { flex-direction: column; } }
.step { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: #1d2a4d; font-weight: 900; display: grid; place-items: center; font-size: 1.1rem; }
.path h3 { font-size: 1.05rem; margin-bottom: .3em; }
.path p { margin: 0 0 .4em; font-size: .95rem; color: var(--muted); }
.path .example { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }

.trust { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.trust-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--muted); font-size: .97rem; }
.parents-links { font-weight: 700; }

/* Documents (privacy, support) */
.doc { padding: 36px 0 56px; }
.doc section { margin-top: 2.2em; scroll-margin-top: 90px; }
.doc h2 { font-size: 1.45rem; }
.doc h3 { font-size: 1.1rem; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.updated { color: var(--muted); font-size: .95rem; }
.summary { background: var(--tint); border-radius: var(--radius); padding: 18px 22px; border-left: 6px solid var(--green); }
.summary ul { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin-top: 1.5em; }
.toc ul { margin: 0; padding: 0; list-style: none; columns: 2 16em; }
.doc details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin: 10px 0; }
.doc summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style-position: outside; }
.doc details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.doc details > :last-child { margin-bottom: 16px; }
.contact-card { background: var(--surface); border: 2px solid var(--green); border-radius: var(--radius); padding: 18px 22px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; }

mark.ph { background: #ffe066; color: #1d2a4d; padding: 0 4px; border-radius: 4px; font-weight: 700; outline: 2px dashed #d9480f; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 24px 0 32px; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; }
.fine { color: var(--muted); margin: 0; }

/* Language picker and 404 */
.root-pick { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 8px; padding: 16px; }
