/* Math Arcade site: the app's toy-arcade palette, system rounded type, no external assets. */
:root {
  --cream: #f7faff;
  --paper: #ffffff;
  --soft: #eaf3ff;
  --navy: #10265d;
  --text: #17315e;
  --secondary: #4f6690;
  --royal: #2463d4;
  --sky: #49c6f3;
  --gold: #ffbe3b;
  --violet: #8257e5;
  --green: #168d5a;
  --orange: #ff8b38;
  --line: #d8e5f8;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(16, 38, 93, .10), 0 2px 6px rgba(16, 38, 93, .06);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 250, 255, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.bar nav { display: flex; gap: 4px; }
.bar nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.bar nav a:hover, .bar nav a[aria-current="page"] { background: var(--soft); color: var(--royal); }
@media (max-width: 560px) { .hide-sm { display: none; } .bar nav a { padding: 8px 9px; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  margin: 20px auto 0;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 38%, rgba(255, 210, 107, .35), transparent 34%),
    radial-gradient(circle at 30% 0%, #4fa8ff, transparent 60%),
    linear-gradient(160deg, #2a6fe0 0%, #1b2c8c 100%);
  box-shadow: var(--shadow);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; padding: 56px 56px 0; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .02em;
  background: rgba(255, 255, 255, .16); padding: 6px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(42px, 7vw, 72px); line-height: 1.02; margin: 16px 0 14px; font-weight: 900; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--gold); }
.lede { font-size: clamp(18px, 2.2vw, 21px); max-width: 34em; margin: 0 0 26px; color: #e9f2ff; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 52px; padding: 0 22px; border-radius: 16px;
  font-weight: 800; font-size: 17px; text-decoration: none;
}
.btn.store { background: #fff; color: var(--navy); box-shadow: 0 4px 0 rgba(10, 24, 70, .35); }
.btn.store small { display: block; font-size: 11px; font-weight: 700; color: var(--secondary); line-height: 1; }
.btn.store span { display: flex; flex-direction: column; line-height: 1.15; }
.btn.ghost { color: #fff; border: 2px solid rgba(255, 255, 255, .55); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.note { font-size: 14px; color: #cfe0ff; margin: 18px 0 0; }
.hero-art { position: relative; align-self: end; display: flex; justify-content: center; }
.hero-art .phone { width: min(300px, 70%); border-radius: 36px 36px 0 0; border: 8px solid #0d1b4a; border-bottom: 0; box-shadow: 0 -8px 40px rgba(0, 0, 0, .25); }
.hero-art .pip { position: absolute; left: -6%; bottom: 18%; width: 40%; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .3)); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 24px 0; text-align: left; }
  .hero-art .phone { width: min(260px, 66%); }
  .hero-art .pip { left: 2%; width: 34%; }
}

/* Sections */
section { padding: 72px 0 8px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin: 0 0 10px; color: var(--navy); font-weight: 900; letter-spacing: -.01em; }
.sub { color: var(--secondary); margin: 0 0 30px; max-width: 40em; font-size: 18px; }

/* Game cards */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .games { grid-template-columns: 1fr; } }
.game {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; display: grid; grid-template-columns: 1fr 150px; gap: 18px; align-items: start;
  border-top: 6px solid var(--royal);
}
.game.orbit { border-top-color: var(--violet); }
.game h3 { margin: 0 0 4px; font-size: 26px; color: var(--navy); }
.game .skill { display: inline-block; font-size: 13px; font-weight: 800; color: var(--royal); background: var(--soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.game.orbit .skill { color: var(--violet); background: #f1ebff; }
.game p { margin: 0 0 12px; }
.game ul { margin: 0; padding-left: 20px; color: var(--secondary); }
.game li { margin: 4px 0; }
.game .shot img { border-radius: 18px; border: 1px solid var(--line); }
@media (max-width: 520px) { .game { grid-template-columns: 1fr; } .game .shot { max-width: 220px; } }
.stunts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.stunt { background: var(--soft); border-radius: 14px; padding: 10px; text-align: center; }
.stunt b { display: block; font-size: 22px; color: var(--navy); }
.stunt span { font-size: 13px; color: var(--secondary); }

/* Screens strip */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shots figure { margin: 0; }
.shots img { border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.shots figcaption { font-size: 15px; color: var(--secondary); margin-top: 10px; }
.shots figcaption b { display: block; color: var(--navy); font-size: 16px; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--paper); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.feature .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--soft); margin-bottom: 10px; }
.feature h3 { margin: 0 0 4px; font-size: 19px; color: var(--navy); }
.feature p { margin: 0; color: var(--secondary); font-size: 16px; }

/* Parents band */
.parents {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center;
  background: var(--navy); color: #e6eeff; border-radius: 32px; padding: 36px;
}
.parents h2 { color: #fff; }
.parents ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.parents li { padding-left: 28px; position: relative; }
.parents li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 900; }
.parents a { color: var(--gold); }
@media (max-width: 760px) {
  .parents { grid-template-columns: 1fr; padding: 28px 22px; }
  .parents img { width: 140px; }
  .parents ul { grid-template-columns: 1fr; }
}

/* Final CTA */
.closing { text-align: center; padding: 80px 0 40px; }
.closing img { width: 120px; margin: 0 auto 14px; border-radius: 28px; box-shadow: var(--shadow); }
.closing .btn.store { box-shadow: var(--shadow); }
.closing .cta { justify-content: center; }

/* Docs (support, privacy) */
.doc { max-width: 760px; padding: 44px 0 40px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin: 0 0 8px; color: var(--navy); font-weight: 900; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc .meta { color: var(--secondary); font-size: 15px; margin: 0 0 20px; }
.summary, .contact { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; margin: 18px 0; box-shadow: var(--shadow); }
.contact { display: flex; gap: 16px; align-items: center; }
.contact img { width: 72px; flex: none; }
.contact .mail { font-weight: 800; font-size: 18px; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
th { background: var(--soft); color: var(--navy); }
tr:last-child td { border-bottom: 0; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin: 10px 0; padding: 0 18px; }
summary { cursor: pointer; font-weight: 800; color: var(--navy); padding: 15px 0; list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--line); }
details p { margin: 12px 0 16px; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 26px 0 40px; color: var(--secondary); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--secondary); }
.nowrap { white-space: nowrap; }
