/* The mathgobattle.com homepage (AP-10, design: "Landing" on the Math Battle UI canvas). Colours
   and type from the Visual language board. Fonts are served from this site: no font hosts. */

@font-face {
  font-family: 'Baloo 2';
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/baloo2-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/nunito-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/nunito-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/nunito-900.woff2') format('woff2');
}

:root {
  --ground: #eef0fa;
  --surface: #f4f5fc;
  --white: #ffffff;
  --line: #e1e5f7;
  --ink: #1b1a33;
  --ink2: #5e6078;
  --ink-faint: #8c8fb0;
  --blue: #1d6cf5;
  --blue-base: #1450c8;
  --sky: #dce8fe;
  --violet: #5f5aee;
  --violet-base: #3f39c9;
  --orange: #ffaa2c;
  --orange-base: #e08a00;
  --night: #16151f;
  --night-raised: #2d2c45;
  --night-muted: #c3c5dd;
  --yellow: #ffd23f;
  --mint: #ddf2da;
  --success: #1f6e33;
  --shadow: 0 14px 30px rgba(40, 44, 110, 0.07);
  --display: 'Baloo 2', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--white);
  color: var(--blue);
}

.skip:focus {
  left: 8px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  border-radius: 0 0 clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero::before {
  left: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
}

.hero::after {
  right: -160px;
  bottom: -200px;
  width: 520px;
  height: 520px;
  background: rgba(255, 255, 255, 0.07);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 20px var(--gutter) clamp(56px, 8vw, 96px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.3px;
}

.brand img {
  display: block;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: flex;
  padding: 3px;
  border-radius: 20px;
  background: rgba(22, 21, 31, 0.24);
}

.lang button {
  height: 34px;
  min-width: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  font: 900 13px var(--body);
  color: var(--white);
  cursor: pointer;
}

.lang button[aria-pressed='true'] {
  background: var(--white);
  color: var(--blue);
}

.lang-dark {
  align-self: flex-start;
  background: var(--night-raised);
}

.lang-dark button[aria-pressed='true'] {
  background: var(--blue);
  color: var(--white);
}

.soon-pill {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 900;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: clamp(24px, 4vw, 48px);
}

.hero-copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.kicker-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 14px 4px 8px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 800;
}

.kicker-pill i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(42px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -1px;
  text-shadow: 0 5px 0 var(--blue-base);
}

.hero-sub {
  max-width: 560px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.store {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 24px 0 18px;
  border-radius: 20px;
  background: var(--night);
  box-shadow: 0 6px 0 #0b0a12;
  color: var(--white);
  text-decoration: none;
}

.store small {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 15px;
  color: var(--orange);
}

.store b {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  line-height: 24px;
}

.store-dark {
  margin-top: 8px;
  background: var(--night-raised);
  box-shadow: none;
}

.btn-how {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 20px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 6px 0 var(--blue-base);
  font-family: var(--display);
  font-size: 18px;
  color: var(--blue);
  text-decoration: none;
  transition: transform 0.1s ease;
}

.btn-how:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--blue-base);
}

.hero-note {
  font-size: 14px;
  line-height: 20px;
  color: var(--sky);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chips li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
}

/* The phone mock-up beside the hero copy */

.hero-art {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.stage {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 620px;
}

.stage .deco {
  position: absolute;
}

.phone {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 290px;
  height: 590px;
  margin-left: -145px;
  padding: 10px;
  border-radius: 46px;
  background: var(--night);
  box-shadow: 0 30px 60px rgba(8, 30, 110, 0.45);
  transform: rotate(3deg);
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 34px 12px 14px;
  border-radius: 36px;
  background: var(--ground);
  color: var(--ink);
  overflow: hidden;
  font-family: var(--display);
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screen-top .quit {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--white);
}

.timer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 232deg, #dce0f5 0deg);
}

.timer span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--white);
  font-size: 11px;
}

.qno {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--white);
  font-size: 11px;
}

.fighter-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  background: var(--white);
}

.fighter-row .tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
}

.fighter-row .who {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 14px;
}

.bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
}

.fighter-row .hp {
  font-size: 16px;
}

.burst {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.burst svg {
  position: absolute;
  inset: 0;
}

.burst span {
  position: relative;
  line-height: 1;
}

.question {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 14px;
  border-radius: 22px;
  background: var(--night);
  color: var(--white);
}

.flames {
  display: flex;
  gap: 2px;
  align-self: flex-start;
}

.question .sum {
  font-size: 34px;
  line-height: 1;
}

.answer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  color: var(--ink-faint);
}

.answer b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 46px;
  border-radius: 14px;
  background: var(--white);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
}

.keys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
}

.keys span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 11px;
  background: var(--white);
  box-shadow: 0 3px 0 #d3d8f0;
  font-size: 17px;
}

.keys .del {
  background: var(--line);
  box-shadow: 0 3px 0 #c5ccea;
}

.keys .hit {
  background: var(--blue);
  box-shadow: 0 3px 0 var(--blue-base);
  font-size: 15px;
  color: var(--white);
}

.stage .app-icon {
  position: absolute;
  left: 0;
  top: 300px;
  border-radius: 22px;
  box-shadow:
    0 18px 30px rgba(8, 30, 110, 0.4),
    0 0 0 4px var(--white);
  transform: rotate(-10deg);
}

/* Facts strip, overlapping the hero */

.facts-wrap {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  padding: 0 var(--gutter);
}

.facts {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 6px;
  padding: 12px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 20px 44px rgba(40, 44, 110, 0.14);
}

.facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.fact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 16px;
}

.facts b {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  line-height: 26px;
}

.facts small {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink2);
}

/* Sections */

.section {
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}

.section-tight {
  padding-top: 0;
}

.section .wrap {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  min-height: 32px;
  padding: 4px 14px 4px 8px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.pill i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  font-style: normal;
}

.section h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 0 #c9d2fa;
}

.section h2.on-sky {
  text-shadow: 0 4px 0 var(--white);
}

.lead {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink2);
}

.lead-dark {
  color: #4f5268;
}

.body {
  font-size: 15px;
  line-height: 22px;
  color: var(--ink2);
}

/* How it works: four colour cards */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
  padding-bottom: 8px;
}

.steps li {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 30px;
}

.card-blue {
  background: var(--blue);
  box-shadow: 0 8px 0 var(--blue-base);
  color: var(--white);
}

.card-night {
  background: var(--night);
  box-shadow: 0 8px 0 #000000;
  color: var(--white);
}

.card-orange {
  background: var(--orange);
  box-shadow: 0 8px 0 var(--orange-base);
  color: var(--ink);
}

.card-violet {
  background: var(--violet);
  box-shadow: 0 8px 0 var(--violet-base);
  color: var(--white);
}

.big-no {
  position: absolute;
  right: 12px;
  top: -18px;
  font-family: var(--display);
  font-size: 120px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.14);
}

.card-night .big-no {
  color: rgba(255, 255, 255, 0.1);
}

.card-orange .big-no {
  color: rgba(27, 26, 51, 0.1);
}

.steps h3 {
  position: relative;
  font-size: 24px;
  line-height: 28px;
}

.steps p {
  position: relative;
  font-size: 15px;
  line-height: 23px;
}

.card-night p {
  color: #e1e3f2;
}

.art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 150px;
  font-family: var(--display);
}

.art-col {
  flex-direction: column;
  gap: 10px;
}

.art .face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  box-shadow: 0 0 0 4px var(--white);
}

.vs-dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 -14px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--white);
  font-size: 22px;
  color: var(--ink);
}

.art .sum {
  font-size: 36px;
  line-height: 1;
}

.art .answer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  color: var(--ink-faint);
}

.art .answer b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 48px;
  border-radius: 16px;
  background: var(--white);
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
}

.mini-keys {
  display: flex;
  gap: 6px;
}

.mini-keys span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  border-radius: 10px;
  background: var(--night-raised);
  font-size: 15px;
}

.mini-keys .go {
  width: 56px;
  background: var(--blue);
  font-size: 14px;
}

.burst {
  display: flex;
  align-items: center;
  justify-content: center;
}

.burst svg {
  position: absolute;
  inset: 0;
}

.burst span {
  position: relative;
  line-height: 1;
}

.tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.tag-night {
  background: var(--night);
  color: var(--white);
}

.tag-white {
  background: var(--white);
  color: var(--ink);
}

.ko {
  font-size: 58px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--yellow);
  text-shadow: 0 5px 0 var(--violet-base);
}

.trophy-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  background: var(--white);
  font-size: 20px;
  color: var(--ink);
}

/* Arenas, on a sky band with hills */

.arena-section {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(120px, 14vw, 180px);
  background: var(--sky);
}

.arena-section .wrap {
  position: relative;
}

.hills {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
}

.spark {
  position: absolute;
}

.arena-section .pill {
  color: var(--blue-base);
}

.arenas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 16px;
}

.arenas li {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(29, 108, 245, 0.14);
}

.arena-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
}

.arena-no {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--white);
}

.grade-badge {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 26px;
  padding: 2px 8px;
  border-radius: 13px;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.arena-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  padding: 16px;
}

.arena-info h3 {
  font-size: 22px;
  line-height: 26px;
}

.range {
  display: flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: #fff4cc;
  font-size: 12px;
  font-weight: 900;
  color: #7a4a00;
}

.math {
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  color: #4f5268;
}

.example {
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 12px;
  border-radius: 14px;
  background: var(--night);
  font-family: var(--display);
  font-size: 16px;
  line-height: 20px;
  color: var(--white);
}

/* Modes and features */

.features-section {
  padding-top: clamp(40px, 6vw, 72px);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  padding-bottom: 8px;
}

.features li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 32px;
}

.feat-big {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  /* Room under the text for the corner art. */
  padding-bottom: 76px;
}

.feat-big .glow {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.feat-big .glow-strong {
  background: rgba(255, 255, 255, 0.18);
}

.feat-deco {
  position: absolute;
}

.feat-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--white);
}

.feat-big h3 {
  position: relative;
  margin-top: 6px;
  font-size: 26px;
  line-height: 30px;
}

.feat-big p {
  position: relative;
  max-width: 240px;
  font-size: 15px;
  line-height: 22px;
}

.code-deco {
  position: absolute;
  right: 18px;
  bottom: 20px;
  display: flex;
  gap: 4px;
  transform: rotate(-6deg);
}

.code-deco span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 38px;
  border-radius: 9px;
  background: var(--white);
  font-family: var(--display);
  font-size: 20px;
  color: var(--violet-base);
}

.code-deco .hl {
  background: var(--yellow);
  color: var(--ink);
}

.offline-chip {
  position: absolute;
  right: 18px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: var(--night);
  font-size: 12px;
  font-weight: 900;
  color: var(--white);
}

.feat-small {
  background: var(--white);
  box-shadow: var(--shadow);
}

.feat-small h3 {
  margin-top: 6px;
  font-size: 22px;
  line-height: 26px;
}

.feat-art {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
}

.emote {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px 0 10px;
  border: 3px solid;
  border-radius: 20px;
  font-family: var(--display);
  font-size: 16px;
}

.podium {
  align-items: flex-end;
  gap: 4px;
}

.podium span {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 40px;
  border-radius: 10px 10px 0 0;
  font-family: var(--display);
  font-size: 15px;
}

/* Parents: one card with the unlock flow */

.parents-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 40px;
  background: var(--white);
  box-shadow: 0 20px 44px rgba(40, 44, 110, 0.08);
}

.parents-blob {
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--mint);
}

.parents-shield {
  position: absolute;
  right: 34px;
  top: 30px;
}

.parents-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}

.parents-head .pill {
  align-self: flex-start;
}

.parents-card h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  text-shadow: none;
}

.flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow h3 {
  font-size: 22px;
  line-height: 26px;
}

.flow ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}

.flow li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface);
}

.flow-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 86px;
  border-radius: 18px;
  background: var(--white);
  font-family: var(--display);
}

.flow-art .ask {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  background: var(--orange);
  box-shadow: 0 4px 0 var(--orange-base);
  font-size: 16px;
}

.flow-art.code span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 40px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px var(--blue);
  font-size: 20px;
}

.flow-art.unlocked {
  gap: 8px;
  background: var(--mint);
  font-size: 17px;
  color: var(--success);
}

.flow p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
}

.flow p b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--success);
  font-family: var(--display);
  font-size: 15px;
  color: var(--white);
}

.checks {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px 28px;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checks h3 {
  font-size: 18px;
  line-height: 22px;
}

.checks .body {
  display: block;
  margin-top: 2px;
}

.tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--mint);
  color: var(--success);
}

.link-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: 15px;
  font-weight: 800;
  /* The deeper blue: plain blue on this grey is 4.3:1. */
  color: var(--blue-base);
  text-decoration: none;
}

.link-pill:hover {
  box-shadow: inset 0 0 0 2px var(--blue);
}

/* FAQ: title and a mascot on one side, the questions on the other */

.section .wrap.faq {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 48px;
}

.faq-side {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-side .pill {
  align-self: flex-start;
}

.faq-side h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  text-shadow: none;
}

.ask-us {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.ask-us svg {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.bubble {
  min-width: 0;
}

.bubble {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 34px;
  padding: 14px 16px;
  border-radius: 20px 20px 20px 6px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(40, 44, 110, 0.08);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink2);
}

.bubble b {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  line-height: 22px;
  color: var(--ink);
}

.bubble a {
  padding: 4px 10px;
  border-radius: 10px;
  background: #fff4cc;
  font-size: 13px;
  font-weight: 800;
  color: #7a4a00;
  white-space: nowrap;
}

.faq-list {
  flex: 999 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list details {
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(40, 44, 110, 0.06);
}

.faq-list details[open] {
  box-shadow:
    0 0 0 3px var(--blue),
    0 12px 26px rgba(29, 108, 245, 0.14);
}

.faq-list summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px 12px 20px;
  border-radius: 22px;
  font-family: var(--display);
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  flex-grow: 1;
}

/* The + that turns into − when open */
.faq-list summary i {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 17px;
  background: var(--ground);
}

.faq-list summary i::before,
.faq-list summary i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 3px;
  margin: -1.5px 0 0 -7px;
  border-radius: 2px;
  background: var(--blue);
}

.faq-list summary i::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary i {
  background: var(--blue);
}

.faq-list details[open] summary i::before {
  background: var(--white);
}

.faq-list details[open] summary i::after {
  display: none;
}

.faq-list details p {
  padding: 0 20px 18px;
}

/* Closing call to action: the halves crack, both fighters, the card in the middle */

.cta {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px);
  border-radius: 40px;
  background: var(--night);
}

.cta-bg {
  position: absolute;
  left: 0;
  top: 0;
}

.cta-me {
  position: absolute;
  left: clamp(-30px, 2vw, 40px);
  bottom: -14px;
  transform: rotate(16deg);
}

.cta-rival {
  position: absolute;
  right: clamp(-30px, 2vw, 40px);
  top: -10px;
}

.cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  padding: 28px clamp(20px, 3vw, 36px);
  border-radius: 32px;
  background: var(--night);
  box-shadow:
    0 0 0 4px var(--yellow),
    0 24px 48px rgba(0, 0, 0, 0.35);
  color: var(--white);
  text-align: center;
}

.cta-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-top: -60px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px var(--night);
  font-family: var(--display);
  font-size: 28px;
  color: var(--ink);
}

.cta-card h2 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.05;
  text-shadow: none;
}

.cta-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--night-muted);
}

.cta .store {
  text-align: left;
}

/* Footer */

.footer {
  padding: clamp(40px, 6vw, 64px) var(--gutter) 32px;
  background: var(--night);
  color: var(--white);
}

.footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.foot-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.foot-about {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 22px;
  color: var(--night-muted);
}

.foot-about .brand {
  color: var(--white);
}

.foot-col {
  flex: 0 1 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.foot-col h2 {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.foot-col a {
  text-decoration: none;
}

.foot-col a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.muted {
  color: var(--night-muted);
}

.foot-col .mail {
  color: var(--orange);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--night-raised);
  font-size: 13px;
  line-height: 20px;
  color: #b8bad6;
}

@media (max-width: 520px) {
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .stage {
    height: 560px;
  }
  .phone {
    transform: rotate(3deg) scale(0.92);
    transform-origin: top center;
  }
  .stage .app-icon {
    width: 76px;
    height: 76px;
  }
}
