/* Safe Kid - safekid.tulx.app
   The app's own palette: warm cream, soft periwinkle, and no red anywhere.
   No web fonts, scripts or trackers: the page makes no third-party requests. */
:root {
  --cream: #fff9f2;
  --cream-deep: #f6ede3;
  --ink: #2e2a3b;
  --soft: #5f5a73;
  --brand: #7c86e0;
  --brand-deep: #4a54b8;
  --brand-pale: #e6e8fb;
  --gold: #f2c14e;
  --sky: #56b4e9;
  --green: #009e73;
  --orange: #e69f00;
  --plum: #cc79a7;
  --radius: 28px;
  --radius-small: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: ui-rounded, "Nunito", "Varela Round", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.logo { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo img { width: 44px; height: 44px; border-radius: 14px; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--soft); }
.top nav a:hover { background: var(--brand-pale); color: var(--brand-deep); }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 28px; border-radius: 999px; font-weight: 800; text-decoration: none; background: var(--brand); color: #fff; }
.button:hover { background: var(--brand-deep); }
.button.quiet { background: var(--brand-pale); color: var(--brand-deep); }
.button.soon { background: var(--cream-deep); color: var(--soft); cursor: default; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: 32px 64px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand-deep); }
.hero .lead { margin-top: 18px; font-size: 1.2rem; color: var(--soft); max-width: 32em; }
.hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.chips { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 0.95rem; color: var(--soft); }
.stage { position: relative; }
.stage img.scene { border-radius: var(--radius); box-shadow: 0 18px 50px rgba(76, 70, 120, 0.18); width: 100%; }
.stage .pip { position: absolute; left: -18px; bottom: -26px; width: 112px; height: 112px; border-radius: 50%; border: 6px solid var(--cream); box-shadow: 0 8px 24px rgba(76, 70, 120, 0.2); }

/* Sections */
section { padding: 56px 0; }
section.tint { background: var(--cream-deep); }
.kicker { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-deep); }
section h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin-top: 8px; }
.intro { margin-top: 12px; color: var(--soft); max-width: 40em; }

.grid { margin-top: 32px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .text { padding: 18px 20px 22px; }
.card h3 { font-size: 1.2rem; font-weight: 800; }
.card p { margin-top: 6px; color: var(--soft); font-size: 1rem; }

.promises { margin-top: 32px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.promise { background: #fff; border-radius: var(--radius-small); padding: 20px; border-top: 6px solid var(--brand); }
.promise:nth-child(2) { border-color: var(--green); }
.promise:nth-child(3) { border-color: var(--orange); }
.promise:nth-child(4) { border-color: var(--plum); }
.promise h3 { font-size: 1.1rem; font-weight: 800; }
.promise p { margin-top: 6px; color: var(--soft); font-size: 1rem; }

/* Achievement World */
.world { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.steps { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.steps .dot { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: 1.5rem; }
.steps b { display: block; }
.steps span { color: var(--soft); font-size: 1rem; }
.board { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 18px 50px rgba(76, 70, 120, 0.12); }
.board h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.board ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.board li { display: grid; grid-template-columns: 34px 40px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-small); background: var(--cream); font-weight: 700; }
.board li.you { background: var(--brand-pale); outline: 3px solid var(--brand); }
.board .rank { color: var(--soft); font-variant-numeric: tabular-nums; }
.board .face { font-size: 1.6rem; line-height: 1; }
.board .points { color: var(--brand-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.board .sample { margin-top: 12px; font-size: 0.9rem; color: var(--soft); }

/* Parents */
.facts { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.facts li { background: #fff; border-radius: var(--radius-small); padding: 16px 18px 16px 52px; position: relative; }
.facts li::before { content: "\2713"; position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 0.9rem; }

.cta { text-align: center; }
.cta .intro { margin-left: auto; margin-right: auto; }
.cta .actions { margin-top: 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Footer */
footer { padding-block: 32px 48px; color: var(--soft); font-size: 0.95rem; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Document pages: privacy, delete-data, support */
.doc { max-width: 760px; padding-top: 24px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; }
.doc .updated { margin-top: 8px; color: var(--soft); }
.doc h2 { font-size: 1.4rem; font-weight: 800; margin-top: 40px; }
.doc p, .doc ul, .doc ol { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-top: 6px; }
.doc .summary { margin-top: 24px; background: #fff; border-radius: var(--radius-small); padding: 20px 22px; border-left: 6px solid var(--brand); }
.doc table { margin-top: 16px; border-collapse: collapse; width: 100%; background: #fff; border-radius: var(--radius-small); overflow: hidden; font-size: 1rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--cream-deep); }
.doc th { color: var(--soft); font-weight: 700; }
.scroll { overflow-x: auto; }

@media (max-width: 820px) {
  .hero, .world { grid-template-columns: 1fr; }
  .hero { padding-block-start: 12px; gap: 48px; }
  .top nav a { padding: 8px 10px; }
  .stage .pip { left: 12px; width: 88px; height: 88px; }
}
@media (max-width: 480px) {
  .top nav .optional { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
