/* KidsDroid public site. Colours match the app icon: indigo #4C5BD4 and amber #FFB938. */
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(/fonts/figtree_400.ttf) format("truetype"); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(/fonts/figtree_700.ttf) format("truetype"); }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: url(/fonts/figtree_800.ttf) format("truetype"); }

:root {
  --bg: #f7f7fc;
  --surface: #ffffff;
  --ink: #1d2033;
  --muted: #5b6078;
  --line: #e2e3ef;
  --brand: #4c5bd4;
  --brand-ink: #3a47b8;
  --brand-soft: #eceefd;
  --amber: #ffb938;
  --amber-soft: #fff4dc;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12131c;
    --surface: #1b1d2a;
    --ink: #eceef8;
    --muted: #a7abc2;
    --line: #2d3044;
    --brand: #8c97f2;
    --brand-ink: #aab3ff;
    --brand-soft: #242845;
    --amber-soft: #3a2f17;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 Figtree, system-ui, sans-serif; color: var(--ink); background: var(--bg); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 2; }

/* Header and footer */
header.top { border-bottom: 1px solid var(--line); background: var(--surface); }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.logo img { width: 36px; height: 36px; }
.logo small { font-weight: 400; font-size: 14px; color: var(--muted); }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; font-size: 15px; }
nav.main a { color: var(--muted); text-decoration: none; padding: 4px 0; }
nav.main a[aria-current="page"], nav.main a:hover { color: var(--brand-ink); text-decoration: underline; }
footer.bottom { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface); font-size: 15px; color: var(--muted); }
footer.bottom .wrap { padding-top: 24px; padding-bottom: 32px; display: grid; gap: 8px; }
footer.bottom a { color: var(--muted); }

/* Page parts */
main { display: block; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }
.hero { display: grid; gap: 32px; padding: 40px 0 16px; align-items: center; }
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: clamp(22px, 4vw, 28px); line-height: 1.25; margin: 48px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 24px 0 6px; }
.lead { font-size: 19px; color: var(--ink); max-width: 40em; }
p, ul, ol { max-width: 44em; }
.page { padding-top: 24px; }
.page > h1 { margin-top: 12px; }
.muted { color: var(--muted); }

.badge { display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; background: var(--brand); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand-ink); border: 2px solid var(--brand-soft); }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: default; }

.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.facts h2 { margin: 0 0 8px; font-size: 20px; }
.facts dl { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; }

.shots { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 20px; }
.shots figure { margin: 0; }
.shots img { border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.shots figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.hero .phone img { width: min(300px, 80vw); margin: 0 auto; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(40, 46, 110, 0.18); }

.note { background: var(--amber-soft); border-radius: var(--radius); padding: 16px 20px; max-width: 44em; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin: 18px 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 10px 0; max-width: 48em; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.faq summary h2, .faq summary h3 { display: inline; font-size: 18px; margin: 0; }
table { border-collapse: collapse; width: 100%; max-width: 48em; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy h2 { font-size: 22px; }

.phone:empty { display: none; }

@media (max-width: 559px) {
  .facts dl { grid-template-columns: 1fr; gap: 0; }
  .facts dt { margin-top: 10px; font-size: 15px; }
}

@media (min-width: 820px) {
  .hero { grid-template-columns: 1.3fr 1fr; padding-top: 64px; }
  .hero:has(.phone:empty) { grid-template-columns: 1fr; }
}
