/* Public pages: introduction (landing.html) and parent sign-in (login.html).
   "Things" style: cool canvas, white lifted cards, tilted product illustrations,
   one blue accent for interactive moments only. System fonts, no web font.
   Light-only by design; every colour is set explicitly. */
/* Colours, radii, shadow and fonts: tokens.css (loaded first). */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; color: var(--ink); }
p { margin: 0; }
.wrap { max-width: var(--page); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: var(--r-ctl); box-shadow: var(--shadow); z-index: 10; }
.skip:focus { top: 12px; }

/* nav */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.links { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 15px; }
.links a { color: var(--ash); }
.links a:hover { color: var(--ink); }
.links a.login { color: var(--blue); }

/* app mark: rounded square, blue gradient, white shield-clock glyph */
.mark { display: inline-grid; place-items: center; border-radius: 22%; background: linear-gradient(160deg, #5c9cf5 0%, #2576eb 55%, #1f5fc4 100%); flex: none; }
.mark svg { width: 62%; height: 62%; color: #fff; }
.mark.sm { width: 26px; height: 26px; border-radius: 7px; }
.mark.md { width: 56px; height: 56px; }
.mark.lg { width: 112px; height: 112px; }

/* hero */
.hero { text-align: center; padding-block: 48px 24px; }
.hero .stack { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pill { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ash); background: var(--paper); border-radius: 999px; padding: 4px 12px; box-shadow: var(--shadow); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.hero h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.hero .lead { font-size: 18px; color: var(--fog); max-width: 560px; }
.play { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; }
.play b { width: 40px; height: 40px; border-radius: 9999px; background: var(--accent-surface); display: grid; place-items: center; color: #fff; flex: none; }
.play b svg { width: 14px; height: 14px; margin-left: 3px; }
.cta-row { display: flex; gap: 16px 24px; flex-wrap: wrap; justify-content: center; align-items: center; }
.textlink::after { content: " \203A"; }

/* tilted showcase */
.showcase { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; align-items: center; max-width: 860px; margin: 40px auto 0; padding-block: 24px; }
.card { background: var(--paper); border-radius: var(--r-card); box-shadow: var(--shadow); }
.tilt-l { transform: rotate(-3deg); z-index: 1; }
/* No horizontal overlap: the block card used to cover the minutes column of the parent card. */
.tilt-r { transform: rotate(3deg) translate(10px, 30px); z-index: 2; }
.illus-note { margin-top: 20px; font-size: 12.5px; color: var(--silver); }
@media (max-width: 720px) {
  .showcase { grid-template-columns: 1fr; gap: 20px; }
  .tilt-l { transform: rotate(-1.5deg); }
  .tilt-r { transform: rotate(1.5deg); }
}

/* illustration: parent page */
.mock { padding: 18px; font-size: 13px; text-align: left; min-width: 0; }
.mock .bar { display: flex; gap: 6px; margin-bottom: 12px; }
.mock .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline); }
.mock-grid { display: grid; grid-template-columns: 112px 1fr; gap: 14px; }
.side { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ash); }
.side span { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: var(--r-ctl); }
.side span.on { background: var(--mist); color: var(--ink); font-weight: 600; }
.side em { width: 14px; height: 14px; border-radius: var(--r-icon); display: inline-block; flex: none; }
.side .c1 { background: var(--blue); }
.side .c2 { background: #f2b233; }
.side .c3 { background: #e2557a; }
.side .c4 { background: #3aa776; }
.side .c5 { background: #2aa3b0; }
.main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.kid { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kid h3, .kid strong { font-size: 16px; font-weight: 700; }
.kid small { color: var(--fog); }
.meter { height: 8px; background: var(--mist); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 71%; background: var(--sky); border-radius: 99px; }
.nums { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--fog); font-variant-numeric: tabular-nums; }
.nums b { color: var(--ink); font-weight: 600; }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.rows div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }
.rows span:last-child { color: var(--ash); white-space: nowrap; }
.chip { font-size: 11.5px; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.chip.ok { color: var(--ok); background: var(--ok-bg); }
.chip.warn { color: var(--warn); background: var(--warn-bg); }
.chip.bad { color: var(--bad); background: var(--bad-bg); }
@media (max-width: 460px) { .mock-grid { grid-template-columns: 1fr; } .side { flex-direction: row; flex-wrap: wrap; } }

/* illustration: child's block page */
.block { padding: 26px 22px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.block .lock { width: 52px; height: 52px; border-radius: 14px; background: var(--mist); display: grid; place-items: center; color: var(--ash); }
.block .lock svg { width: 26px; height: 26px; }
.block .block-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.block p { color: var(--fog); font-size: 13.5px; max-width: 260px; }
.block .url { font-size: 12px; color: var(--ash); background: var(--mist); padding: 3px 10px; border-radius: var(--r-ctl); font-family: var(--mono); overflow-wrap: anywhere; }

/* sections */
.band { padding-block: var(--section); }
.band.white { background: var(--paper); }
@media (max-width: 720px) { .band { padding-block: 56px; } }
.sec-head { display: flex; flex-direction: column; gap: 10px; max-width: 600px; margin-bottom: 40px; }
.eyebrow { font-size: 13px; color: var(--blue); font-weight: 600; letter-spacing: .02em; }
.sec-head h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 700; line-height: 1.2; }
.sec-head p { font-size: 17px; color: var(--fog); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; gap: 32px; } }
.feat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feat .row { display: flex; align-items: center; gap: 12px; }
.feat .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; flex: none; }
.feat .ico svg { width: 17px; height: 17px; color: #fff; }
.feat h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.feat p { color: var(--fog); font-size: 16px; }
.feat ul { margin: 4px 0 0; padding-left: 18px; color: var(--ash); font-size: 14.5px; display: flex; flex-direction: column; gap: 3px; }
.fact { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

/* steps (a real sequence: numbered on purpose) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step .n { width: 30px; height: 30px; border-radius: 9999px; background: var(--mist); color: var(--blue); font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 18px; }
.step p { color: var(--fog); font-size: 15px; }
.code { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; background: var(--mist); border-radius: var(--r-ctl); padding: 6px 10px; align-self: flex-start; color: var(--ink); }

/* privacy */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } }
.list-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.list-card h3 { font-size: 18px; }
.list-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list-card li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--smoke); font-size: 15px; }
.tick, .cross { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; margin-top: 2px; }
.tick svg, .cross svg { width: 14px; height: 14px; }
.tick { background: var(--ok-bg); color: var(--ok); }
.cross { background: var(--bad-bg); color: var(--bad); }

/* faq */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.faq details { background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ash); padding-bottom: 16px; font-size: 15px; }

/* closing + footer */
.closing { text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.closing h2 { font-size: clamp(24px, 4vw, 30px); }
.closing p { color: var(--fog); font-size: 17px; max-width: 520px; }
.site-foot .wrap { padding-block: 28px 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--silver); }
.site-foot a { color: var(--fog); }

/* ===== sign-in page ===== */
.login-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center; padding-block: 32px 64px; }
@media (max-width: 820px) { .login-grid { grid-template-columns: 1fr; gap: 32px; } .login-aside { order: 2; } }
.login-aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.login-aside h1 { font-size: clamp(26px, 4.5vw, 34px); font-weight: 800; line-height: 1.2; }
.login-aside > p { color: var(--fog); font-size: 17px; max-width: 460px; }
.login-aside figure { margin: 12px 0 0; display: flex; flex-direction: column; gap: 14px; max-width: 400px; }
.login-aside .mini { transform: rotate(-2.5deg); }
.login-aside figcaption { font-size: 12.5px; color: var(--silver); }
@media (max-width: 820px) { .login-aside .mini { transform: none; } }
.form-card { padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 400px) { .form-card { padding: 24px 18px; } }
.form-card form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.form-card header { display: flex; flex-direction: column; gap: 6px; }
.form-card h2 { font-size: 24px; font-weight: 700; }
.form-card header p { color: var(--fog); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--smoke); }
.input { display: flex; align-items: center; border: 1px solid var(--hairline); border-radius: var(--r-ctl); background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,118,235,.15); }
.input.err { border-color: var(--bad); }
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 11px 12px; }
.input button { font: inherit; font-size: 13px; color: var(--blue); background: transparent; border: 0; padding: 0 12px; align-self: stretch; cursor: pointer; white-space: nowrap; border-radius: var(--r-ctl); }
.input button[hidden] { display: none; }
.hint { font-size: 13px; color: var(--fog); }
.hint[hidden] { display: none; }
.btn { font: inherit; font-size: 16px; font-weight: 600; border: 0; border-radius: var(--r-ctl); padding: 12px 16px; cursor: pointer; background: var(--ink); color: var(--paper); width: 100%; transition: background .15s; }
.btn:hover { background: #1f2124; }
.btn[disabled] { background: var(--silver); cursor: default; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.alert.bad { background: var(--bad-bg); color: #7d2a1d; }
.alert.ok { background: var(--ok-bg); color: #1f5c3a; }
.alert.info { background: var(--mist); color: var(--smoke); }
.alert.warn { background: var(--warn-bg); color: #6b4000; }
.forgot { font-size: 14px; }
.forgot summary { color: var(--blue); cursor: pointer; display: inline-block; list-style: none; border-radius: 4px; }
.forgot summary::-webkit-details-marker { display: none; }
.forgot summary:hover { color: var(--blue-deep); }
.forgot p { margin-top: 8px; color: var(--ash); background: var(--mist); border-radius: 10px; padding: 10px 12px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--silver); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.small-links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--fog); }
