/* KinSentinel marketing site. Shares the panel's colour roles (web/src/styles.css) so both read as one product. */
:root {
  color-scheme: light dark;
  --page: #f9f9f7;
  --surface: #ffffff;
  --surface-2: #f3f2ee;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #76746e;
  --line: #e1e0d9;
  --accent: #2a78d6;
  --accent-strong: #1c5cab;
  --accent-soft: #e8f1fc;
  --on-accent: #ffffff;
  --good: #006300;
  --c-education: #2a78d6;
  --c-game: #eb6834;
  --c-video: #1baf7a;
  --c-social: #eda100;
  --night: #121a3a;
  --night-2: #1b2550;
  --mint: #5fe0c0;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.04), 0 12px 40px rgba(11, 11, 11, 0.08);
  --radius: 18px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #232321;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #9a9891;
    --line: #2c2c2a;
    --accent: #3987e5;
    --accent-strong: #6da7ec;
    --accent-soft: #14253b;
    --good: #2fbf2f;
    --c-education: #3987e5;
    --c-game: #d95926;
    --c-video: #199e70;
    --c-social: #c98500;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 720; }
h3 { font-size: 1.12rem; font-weight: 680; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
a { color: var(--accent-strong); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.lede { color: var(--ink-2); font-size: clamp(1.05rem, 1.8vw, 1.22rem); max-width: 40em; }
.eyebrow { color: var(--accent-strong); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 1.1rem; text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { color: var(--ink-2); font-size: 0.85rem; font-weight: 650; text-decoration: none; padding: 6px 8px; border-radius: 8px; }
.lang:hover { background: var(--surface-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 0.93rem; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.06rem; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 14px 0 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fine { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
.fine span + span::before { content: '·'; margin: 0 8px; }

/* Product illustration (drawn, not a screenshot) */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.mock-head b { color: var(--ink); font-size: 0.98rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 0.78rem; font-weight: 650; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.card { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; }
.card small { color: var(--muted); font-size: 0.78rem; }
.big { font-size: 1.9rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; margin-top: 2px; }
.delta { color: var(--ink-2); font-size: 0.82rem; }
.bars { display: grid; gap: 9px; margin-top: 12px; }
.bar { display: grid; grid-template-columns: 5.2em 1fr auto; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--ink-2); }
.bar i { display: block; height: 10px; border-radius: 3px 6px 6px 3px; background: var(--c); width: var(--w); }
.bar span:last-child { min-width: 5.4em; white-space: nowrap; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.track { display: flex; gap: 2px; height: 18px; margin-top: 10px; }
.track i { display: block; border-radius: 4px; background: var(--c, var(--line)); flex: var(--f); }
.track-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.7rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.now { display: flex; align-items: center; gap: 12px; }
.now .dot { width: 36px; height: 36px; border-radius: 10px; background: var(--c-education); display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.now p { font-size: 0.9rem; line-height: 1.35; }
.now p small { display: block; }
.mock-note { color: var(--muted); font-size: 0.75rem; text-align: center; }

/* Sections */
section { padding: clamp(48px, 7vw, 88px) 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(26px, 4vw, 44px); max-width: 44em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; margin-bottom: 6px; }
.steps p, .feat p, .plain li, .faq p { color: var(--ink-2); font-size: 0.97rem; }

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.feat svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 6px; }
.feat .soon { justify-self: start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

/* Child's side */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split .sec-head { margin-bottom: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before { content: ''; position: absolute; left: 0; top: 0.42em; width: 18px; height: 10px; border-left: 3px solid var(--good); border-bottom: 3px solid var(--good); transform: rotate(-45deg) scale(0.8); transform-origin: left; }
.screen { background: linear-gradient(160deg, var(--night-2), var(--night)); color: #eef1ff; border-radius: 22px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); display: grid; gap: 14px; text-align: center; }
.screen .tag { color: var(--mint); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; }
.screen h3 { font-size: 1.5rem; color: #fff; }
.screen p { color: #c5cbea; font-size: 0.95rem; }
.screen .when { justify-self: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 10px 18px; font-size: 1.05rem; font-weight: 650; color: #fff; }
.bubble { justify-self: center; text-align: left; background: #fff; color: #10142b; border-radius: 16px 16px 16px 4px; padding: 12px 16px; font-size: 0.93rem; max-width: 22em; }
.bubble small { display: block; color: #5b6182; font-size: 0.75rem; margin-bottom: 2px; }

/* Privacy */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plain { background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plain h3 { margin-bottom: 12px; }
.plain ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }

/* Trial */
.trial { background: var(--accent); color: var(--on-accent); border-radius: 26px; padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: center; }
.trial h2 { color: #fff; }
.trial p { color: rgba(255, 255, 255, 0.9); margin-top: 12px; max-width: 36em; }
.trial .btn { background: #fff; color: #174f95; }
.trial .btn:hover { background: #eaf2fd; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 800px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { padding-bottom: 18px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero .wrap, .split, .trial { grid-template-columns: minmax(0, 1fr); }
  .steps, .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .steps, .feats, .cols { grid-template-columns: minmax(0, 1fr); }
  .top-actions .btn-ghost { display: none; }
  .cta .btn { flex: 1 1 100%; }
  .trial .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
