/* AAR System - landing page. Plain CSS, palette lives in :root. */

:root {
  --blue: #1660D1;
  --blue-2: #3F9BFF;
  --navy: #0D3F8C;
  --ink: #0F2138;
  --muted: #55708F;
  --bg: #EEF4FC;
  --surface: #FFFFFF;
  --tint: #E9F1FF;
  --line: #DBE6F5;
  --ok: #0C6B39;
  --ok-bg: #E3F7EA;
  --ok-line: #BFE8CF;
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 8px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

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

:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-ghost { color: var(--navy); background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  box-shadow: 0 8px 20px rgba(22, 96, 209, .28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(22, 96, 209, .36); }
.btn-lg { padding: 15px 32px; font-size: 1.12rem; border-radius: 14px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  background: rgba(238, 244, 252, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(15, 52, 110, .06); }
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--navy); white-space: nowrap; }
.brand-sub { font-weight: 500; color: var(--blue); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--topbar-h));
  display: grid; place-items: center;
  padding: 40px 0 72px;
  text-align: center;
  background:
    radial-gradient(900px 480px at 50% -8%, rgba(63, 155, 255, .30), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(22, 96, 209, .13) 1px, transparent 0) 0 0 / 26px 26px;
}
.hero::after {   /* fade the dotted grid out into the page colour */
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.hero-logo { position: relative; width: 176px; margin-bottom: 22px; }
.hero-logo img { width: 100%; filter: drop-shadow(0 18px 36px rgba(22, 96, 209, .35)); }
.hero-logo::before, .hero-logo::after {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  border: 2px solid rgba(22, 96, 209, .4);
  animation: ring 3.4s ease-out infinite;
}
.hero-logo::after { animation-delay: 1.7s; }
@keyframes ring { from { transform: scale(.85); opacity: .85; } to { transform: scale(1.6); opacity: 0; } }

.hero-title {
  margin: 0;
  font-size: clamp(2.9rem, 8.5vw, 5.4rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -.035em;
  color: var(--navy);
}
.grad {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-kicker {
  margin: 12px 0 0;
  font-size: .8rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.hero-lede {
  max-width: 36rem; margin: 20px auto 0;
  font-size: clamp(1.05rem, 2.3vw, 1.25rem); color: var(--muted);
}

.free-pill {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 26px 0 0; padding: 7px 16px;
  border-radius: 999px; border: 1px solid var(--ok-line); background: var(--ok-bg);
  color: var(--ok); font-weight: 800; letter-spacing: .01em; max-width: 100%; text-align: center;
}
.free-note { margin: 10px 0 0; color: var(--muted); font-size: .94rem; font-weight: 600; }
.free-dot { width: 9px; height: 9px; border-radius: 50%; background: #17b05f; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.hero-cta { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-weight: 600; text-decoration: none;
}
.scroll-cue:hover { color: var(--blue); }
.scroll-cue svg { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem); line-height: 1.12; letter-spacing: -.025em; color: var(--navy);
}
.big-text { font-size: 1.2rem; color: var(--muted); margin-bottom: 0; }

/* how it works */
.steps { list-style: none; margin: 38px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.step-num {
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px;
  border-radius: 12px; color: #fff; font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.step h3 { margin: 0 0 6px; font-size: 1.25rem; color: var(--navy); }
.step p { margin: 0; color: var(--muted); }

/* features */
.cards { margin-top: 38px; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 2px 8px rgba(15, 52, 110, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #c3d7f3; box-shadow: 0 14px 30px rgba(15, 52, 110, .10); }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px; background: var(--tint); color: var(--blue); }
.card-icon svg { width: 24px; height: 24px; }
.heart-ico { display: block; flex: none; }                           /* the crystal heart that stands for the Parent Console / AAR Parents */
.card-icon .heart-ico { width: 34px; height: 34px; }
.card h3 { margin: 0 0 6px; font-size: 1.12rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }

/* unit specs */
.specs { margin: 38px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.spec { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.spec dt { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 4px 0 0; font-weight: 700; color: var(--navy); }

/* final call to action */
.cta { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta .big-text { color: rgba(255, 255, 255, .86); margin-bottom: 30px; }
.cta .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.cta .btn-primary:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, .28); }

/* footer */
.footer { padding: 26px 0; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer .brand-text { font-size: 1rem; }
.footer-note { color: var(--muted); font-size: .9rem; }

/* scroll reveal (only when JS is running, so no-JS users still see everything) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .07s; }
.js .reveal:nth-child(3) { transition-delay: .14s; }
.js .reveal:nth-child(4) { transition-delay: .07s; }
.js .reveal:nth-child(5) { transition-delay: .14s; }
.js .reveal:nth-child(6) { transition-delay: .21s; }

/* hardware photos: a big one under the hero, then two stacked in the unit section */
/* Every photo is portrait. A holder takes exactly the photo's own shape (--r is its width / height, set by the page), so nothing is
   cropped or stretched, and it is never taller than the screen: its width is the smallest of the column, --maxw and --maxvh x --r. */
.shot { --maxw: 480px; --maxvh: 82vh; --r: .75; margin: 0 auto; width: min(100%, var(--maxw)); width: min(100%, var(--maxw), calc(var(--maxvh) * var(--r)));
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 14px 40px rgba(15, 52, 110, .10); }
@supports (height: 1svh) { .shot { --maxvh: 82svh; } }
.shot img { display: block; width: 100%; height: auto; }
.shot-empty { border: 1.5px dashed #b9cdea; background: var(--tint); box-shadow: none; }
.shot-ph { aspect-ratio: 3 / 4; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; color: var(--blue); }
.shot-ph span { color: var(--muted); font-weight: 700; }
.hero-shot { position: relative; isolation: isolate; width: 100%; margin-top: 54px; }
.hero-shot .shot { --maxw: 440px; --maxvh: 78vh; }
@supports (height: 1svh) { .hero-shot .shot { --maxvh: 78svh; } }
.hero-shot::before { content: ""; position: absolute; inset: 10% 4% -6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(63, 155, 255, .38), transparent); filter: blur(26px); }
.hero-shot .shot:not(.shot-empty) { border: 0; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.hero-shot .shot:not(.shot-empty) img { border-radius: 24px; box-shadow: 0 30px 70px rgba(15, 52, 110, .30), 0 4px 14px rgba(15, 52, 110, .12); }
.hero-shot .shot-empty { background: rgba(233, 241, 255, .75); }
.unit-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 28px 64px; align-items: center; margin-top: 54px; }
.unit-row:first-child { margin-top: 0; }
.unit-copy { grid-column: 1; grid-row: 1; }
.unit-photo { grid-column: 2; grid-row: 1; }
.unit-copy .big-text { margin-top: 4px; }
.unit-h3 { margin: 16px 0 8px; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.15; letter-spacing: -.02em; color: var(--navy); }
.unit-row ~ .specs { margin-top: 64px; }
@media (max-width: 860px) {
  .unit-row { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 40px; }
  .unit-copy, .unit-photo { grid-column: auto; grid-row: auto; }
}

/* who it is for, and the "coming soon" tag beside a heading */
.what-more { margin-top: 18px; }
.soon-sm { margin-left: 6px; padding: 3px 9px; font-size: .68rem; vertical-align: middle; }

/* open hardware, closed software */
.oc { margin-top: 38px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.oc-card { padding: 30px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.oc-card h3 { margin: 16px 0 8px; font-size: 1.45rem; color: var(--navy); }
.oc-card p { margin: 0; color: var(--muted); font-size: 1.04rem; }
.oc-tag { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.oc-open { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); }
.oc-closed { background: var(--tint); border: 1px solid #c3d7f3; color: var(--navy); }

/* ---------- small screens ---------- */
@media (max-width: 520px) {
  .btn { padding: 8px 13px; font-size: .88rem; }
  .btn-lg { padding: 14px 28px; font-size: 1.05rem; }
  .topbar-actions { gap: 8px; }
  .hero-logo { width: 140px; }
  .section { padding: 68px 0; }
  .hero-shot { margin-top: 40px; }
  .shot, .hero-shot .shot:not(.shot-empty) img { border-radius: 16px; }
  .oc-card { padding: 24px 20px; }
}
@media (max-width: 480px) { .topbar .brand-sub { display: none; } }   /* header shows just "AAR" so both buttons fit */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- sign up / sign in ---------- */
.auth { padding: 40px 0 80px; min-height: calc(100svh - var(--topbar-h) - 90px);
  background: radial-gradient(800px 360px at 50% -6%, rgba(63, 155, 255, .22), transparent 70%); }
.auth-wrap { width: min(680px, 100% - 32px); }
.auth-narrow { width: min(440px, 100% - 32px); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 32px; box-shadow: 0 14px 40px rgba(15, 52, 110, .09); }
.auth-title { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.15; letter-spacing: -.025em; color: var(--navy); }
.auth-lede { margin: 0 0 22px; color: var(--muted); }

.group { border: 0; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.group legend { padding: 0 0 12px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 14px; }
.group .field { margin-bottom: 0; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field input, .field select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:hover, .field select:hover { border-color: #b9cdea; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(22, 96, 209, .14); }
.field [aria-invalid="true"] { border-color: #C23B3B; background: #FFF6F6; }
.hint { margin: 0; font-size: .85rem; color: var(--muted); }
.err { margin: 0; font-size: .85rem; font-weight: 600; color: #B32626; }
.err:empty { display: none; }

.grade-rows { display: flex; flex-direction: column; gap: 12px; }
.grade-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; padding: 14px; background: var(--tint); border: 1px solid var(--line); border-radius: 14px; }
.grade-row .field { margin: 0; }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.form-error { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #FDECEC; border: 1px solid #F3C4C4; color: #8F1F1F; font-weight: 600; }
.form-ok { color: var(--ok); font-weight: 600; }
.auth-switch { margin: 18px 0 0; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--blue); font-weight: 700; }

.notice { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.notice-ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); font-weight: 600; }
.notice-warn { background: #FFF6E0; border: 1px solid #F1D88F; color: #6B4A00; }
.link-btn { padding: 0; margin-top: 4px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--blue); text-decoration: underline; cursor: pointer; }
.link-btn[disabled] { opacity: .5; cursor: default; }

.auth-done { text-align: center; }
.auth-done .hint { margin-bottom: 20px; }
.mail-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 16px; border-radius: 20px; background: var(--tint); color: var(--blue); }
.done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.done-actions + .form-ok, .done-actions + .form-error { margin-top: 16px; }

@media (max-width: 560px) {
  .auth-card { padding: 26px 18px; border-radius: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grade-row { grid-template-columns: 1fr 96px; padding: 12px; }
}

[hidden] { display: none !important; }

/* pages whose single card sits in the middle of the screen (sign in) */
.page-center { display: flex; flex-direction: column; min-height: 100svh; }
.page-center main { flex: 1; display: flex; flex-direction: column; }
.page-center .auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0; min-height: 0; }
.page-center .auth-wrap { margin-inline: auto; }

/* ---------- download page ---------- */
.dl-hero { min-height: auto; padding: 56px 0 84px; }
.dl-meta { margin: 0; color: var(--muted); font-size: .92rem; }
.dl-hero .hero-cta { gap: 10px; }
.dl-lede { max-width: 44rem; }
.btn[aria-disabled="true"] { opacity: .65; cursor: default; }

.dl-flow { list-style: none; margin: 38px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: flow; }
.dl-flow-step { position: relative; padding: 28px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(15, 52, 110, .05); }
.dl-flow-step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -20px; width: 20px; height: 2px; background: var(--line); }
.dl-flow-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 16px; background: var(--tint); color: var(--blue); }
.dl-flow-step h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--navy); }
.dl-flow-step p { margin: 0; color: var(--muted); }
.dl-soon { margin: 26px 0 0; color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.soon-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #FFF1D6; color: #8A5A00; font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }

.dl-steps { grid-template-columns: 1fr; }
.dl-steps .step { background: var(--surface); }
code { padding: 2px 7px; border-radius: 6px; background: var(--tint); color: var(--navy); font-size: .92em; }

.faq { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq-item summary { padding: 14px 0; cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; color: var(--muted); }
.faq-item a { color: var(--blue); font-weight: 700; }

@media (max-width: 760px) { .dl-flow-step:not(:last-child)::after { display: none; } }

.auth-switch-sub { margin-top: 6px; font-size: .88rem; }

/* privacy page */
.legal { max-width: 760px; }
.legal h1 { margin: 0 0 12px; color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15; }
.legal h2 { margin: 34px 0 8px; font-size: 1.25rem; color: var(--navy); }
.legal p, .legal li { color: var(--ink); line-height: 1.7; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal code { padding: 1px 6px; border-radius: 6px; background: var(--tint); font-size: .92em; }
.legal a { color: var(--blue); }
.legal-date { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.footer-note a { color: var(--blue); }

/* ---------- popups on the public pages (the Parent Console's forgot-password, and the sign-in page's "looks like a parent") ---------- */
.pdlg { width: min(460px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: var(--surface); box-shadow: 0 30px 80px rgba(13, 31, 58, .35); }
.pdlg::backdrop { background: rgba(13, 31, 58, .55); }
.pdlg form, .pdlg .pdlg-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.pdlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pdlg-head h2 { margin: 0; font-size: 1.3rem; color: var(--navy); line-height: 1.2; }
.pdlg-x { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg); color: var(--muted); cursor: pointer; }
.pdlg-x:hover { color: var(--navy); }
.pdlg-text { margin: 0; color: var(--muted); line-height: 1.55; }
.pdlg-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--tint); color: var(--blue); }
.pdlg-num { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--line); font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.pdlg-ok { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 800; color: var(--ok); font-size: 1.1rem; }
.pdlg-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pdlg-stack { flex-direction: column; align-items: stretch; }
.pdlg-stack .btn { width: 100%; }

/* the Parent Console strip under the sign-in box, and the popup for someone who types a mobile number */
.parent-strip { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(120deg, #E9F1FF, #E3F7EA); border: 1px solid var(--line); color: var(--navy); }
.parent-strip:hover { border-color: var(--blue); }
.parent-strip-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--blue); }
.parent-strip strong { display: block; }
.parent-strip span:not(.parent-strip-ico) { color: var(--muted); font-size: .9rem; }
.parent-hint { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: .92rem; }
.parent-hint a { color: var(--blue); font-weight: 700; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.topbar-parent { font-weight: 700; color: var(--blue); text-decoration: none; padding: 8px 4px; }
.topbar-parent:hover { text-decoration: underline; }
@media (max-width: 640px) { .topbar-parent { display: none; } }

/* ---------- download page: Quick Register (a green stage on the light page, with a short looping film) ---------- */
.qreg { --qg: #2BFF88; --qg-2: #12C95C; --qg-3: #0A8C40; background: var(--bg); }
.qreg-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 44px; align-items: center; }
.qreg-copy h2 { margin-bottom: 12px; }
.new-pill { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: #DDF9E8; color: #0C6B39; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.qreg-chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qreg-chips li { padding: 7px 14px; border-radius: 999px; background: #E6F8EE; border: 1px solid #BFE8CF; color: #0C6B39; font-weight: 700; font-size: .88rem; }

.qreg-stage { position: relative; isolation: isolate; min-height: 340px; display: grid; place-items: center; padding: 28px 18px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, #0D3A1F 0%, #06180D 55%, #030D07 100%); border: 1px solid #1C6B3B;
  box-shadow: 0 0 0 1px rgba(43, 255, 136, .14), 0 0 44px rgba(43, 255, 136, .22), 0 22px 50px rgba(15, 52, 110, .22); }
.qreg-flash { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(60% 60% at 50% 40%, rgba(190, 255, 220, .85), rgba(43, 255, 136, .35) 45%, transparent 75%); animation: qregFlash 12s infinite; }
.qreg-bolt { position: absolute; z-index: 3; top: 3%; height: 90%; width: auto; fill: #EAFFF2; opacity: 0; filter: drop-shadow(0 0 6px #2BFF88) drop-shadow(0 0 18px #2BFF88); }
.qreg-bolt-a { left: 6%; animation: qregBolt 12s infinite; }
.qreg-bolt-b { right: 6%; transform: scaleX(-1); animation: qregBolt 12s .18s infinite; height: 76%; top: 8%; }

.qreg-window { position: relative; z-index: 2; width: min(340px, 100%); min-height: 236px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); overflow: hidden; color: var(--ink); }
.qreg-titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 800; font-size: .74rem; letter-spacing: .12em; color: var(--navy); border-bottom: 1px solid var(--line); }
.qreg-titlebar small { margin-left: auto; font-weight: 700; letter-spacing: .04em; text-transform: none; color: var(--muted); font-size: .72rem; }
.qreg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--tint); }

.qreg-scene { position: absolute; left: 0; right: 0; top: 44px; bottom: 0; padding: 18px 20px; text-align: center; opacity: 0; }
.qreg-sceneA { animation: qregA 12s infinite; text-align: left; }
.qreg-sceneB { animation: qregB 12s infinite; display: grid; place-content: center; gap: 4px; }
.qreg-sceneC { animation: qregC 12s infinite; display: grid; place-content: center; gap: 4px; }

.qreg-file { font-family: Consolas, "SFMono-Regular", monospace; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.qreg-stagename { position: relative; height: 22px; font-weight: 800; color: var(--navy); }
.qreg-stagename span { position: absolute; left: 0; top: 0; opacity: 0; }
.qreg-stagename .s1 { animation: qregS1 12s infinite; }
.qreg-stagename .s2 { animation: qregS2 12s infinite; }
.qreg-stagename .s3 { animation: qregS3 12s infinite; }
.qreg-bar { height: 18px; border-radius: 10px; background: #E3ECF8; border: 1px solid #C6D9F2; overflow: hidden; margin: 4px 0 12px; box-shadow: inset 0 2px 6px rgba(15, 52, 110, .16); }
.qreg-fill { height: 100%; width: 0; border-radius: 10px; background: linear-gradient(180deg, #8BFFC3, #2BFF88 40%, #12C95C 75%, #0A8C40); box-shadow: 0 0 12px rgba(43, 255, 136, .85), 0 0 24px rgba(43, 255, 136, .4); animation: qregFill 12s infinite; position: relative; }
.qreg-fill::after { content: ""; position: absolute; right: -2px; top: 0; bottom: 0; width: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #D8FFE9, #2BFF88 55%, transparent 72%); }
.qreg-cols { display: grid; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.qreg-cols span { opacity: 0; padding: 6px 10px; border-radius: 8px; background: #F2F8F4; border: 1px solid #CDEBD8; color: #0C6B39; }
.qreg-cols i { font-style: normal; margin: 0 4px; color: #12C95C; }
.qreg-cols .c1 { animation: qregC1 12s infinite; }
.qreg-cols .c2 { animation: qregC2 12s infinite; }

.qreg-pulse { position: relative; width: 84px; height: 84px; margin: 0 auto 6px; display: grid; place-items: center; color: var(--blue); }
.qreg-pulse svg { width: 40px; height: 40px; position: relative; z-index: 2; }
.qreg-pulse::before, .qreg-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #12C95C; opacity: 0; animation: qregRing 2s ease-out infinite; }
.qreg-pulse::after { animation-delay: 1s; }
.qreg-say { margin: 0; font-weight: 800; color: var(--navy); font-size: 1rem; }
.qreg-uid { margin: 0; font-family: Consolas, "SFMono-Regular", monospace; font-size: .86rem; color: #0C6B39; font-weight: 700; }
.qreg-who { margin: 0; color: var(--muted); font-size: .92rem; }
.qreg-who b { color: var(--ink); }
.qreg-tick { width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, #5BE39A, #159A52 70%); box-shadow: 0 8px 22px rgba(21, 154, 82, .4); animation: qregPop 12s infinite; }
.qreg-tick svg { width: 32px; height: 32px; }

.qreg-flow { margin-top: 44px; }
.qreg-flow .dl-flow-ico { background: #E6F8EE; color: #0C8A47; }
.dl-soon { color: var(--muted); }

/* the film: 12 s loop. A = the list is read, B = a card is tapped, C = the student is registered. */
@keyframes qregA { 0%, 2% { opacity: 0; } 5%, 34% { opacity: 1; } 37%, 100% { opacity: 0; } }
@keyframes qregB { 0%, 38% { opacity: 0; } 41%, 66% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes qregC { 0%, 70% { opacity: 0; } 73%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes qregFill { 0%, 5% { width: 0; } 34% { width: 100%; } 100% { width: 100%; } }
@keyframes qregS1 { 0%, 4% { opacity: 0; } 6%, 12% { opacity: 1; } 14%, 100% { opacity: 0; } }
@keyframes qregS2 { 0%, 14% { opacity: 0; } 16%, 23% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes qregS3 { 0%, 25% { opacity: 0; } 27%, 34% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes qregC1 { 0%, 20% { opacity: 0; transform: translateY(6px); } 24%, 36% { opacity: 1; transform: none; } 38%, 100% { opacity: 0; } }
@keyframes qregC2 { 0%, 26% { opacity: 0; transform: translateY(6px); } 30%, 36% { opacity: 1; transform: none; } 38%, 100% { opacity: 0; } }
@keyframes qregRing { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.2); opacity: 0; } }
@keyframes qregPop { 0%, 71% { transform: scale(.3); } 76% { transform: scale(1.12); } 79%, 100% { transform: scale(1); } }
@keyframes qregFlash { 0%, 0.5% { opacity: 0; } 1%, 1.6% { opacity: 1; } 2.4% { opacity: .15; } 3%, 3.6% { opacity: .7; } 6%, 100% { opacity: 0; } }
@keyframes qregBolt { 0%, 0.4% { opacity: 0; } 1%, 1.8% { opacity: 1; } 2.6% { opacity: .1; } 3.2%, 3.8% { opacity: .85; } 6%, 100% { opacity: 0; } }

@media (max-width: 860px) { .qreg-grid { grid-template-columns: 1fr; gap: 30px; } .qreg-stage { min-height: 300px; } }
@media (prefers-reduced-motion: reduce) {
  .qreg-scene, .qreg-sceneA, .qreg-sceneB { animation: none !important; opacity: 0; }
  .qreg-sceneC { animation: none !important; opacity: 1; }
  .qreg-flash, .qreg-bolt, .qreg-tick, .qreg-pulse::before, .qreg-pulse::after { animation: none !important; }
}

/* the wide "keeps working" card at the end of the features grid */
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0 24px; align-items: start; padding: 32px 34px; background: linear-gradient(135deg, var(--navy), var(--blue)); border-color: transparent; box-shadow: 0 16px 36px rgba(13, 63, 140, .26); }
.card-wide:hover { border-color: transparent; box-shadow: 0 20px 42px rgba(13, 63, 140, .34); }
.card-wide .card-icon { width: 56px; height: 56px; margin: 0; background: rgba(255, 255, 255, .16); color: #fff; }
.card-wide .card-icon svg { width: 28px; height: 28px; }
.card-wide h3 { margin-bottom: 8px; font-size: 1.4rem; color: #fff; }
.card-wide p { max-width: 46rem; color: rgba(255, 255, 255, .88); }
.card-points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card-points li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-weight: 700; font-size: .88rem; }
@media (max-width: 640px) { .card-wide { grid-template-columns: 1fr; padding: 26px 22px; } .card-wide .card-icon { margin-bottom: 14px; } }
