:root {
  color-scheme: light;
  --navy: #0a2b55;
  --navy-strong: #061e3e;
  --green: #35c83d;
  --green-dark: #1d8f2b;
  --mint: #edf9f0;
  --sky: #eaf4ff;
  --ink: #10294d;
  --muted: #60728b;
  --line: #d9e3ee;
  --white: #ffffff;
  --yellow: #ffc72c;
  --shadow: 0 12px 28px rgb(9 42 83 / 10%);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
}

a { color: inherit; }

img { max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
}

.skip-link:focus { top: 16px; }

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--mint);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.brand-mark {
  width: 43px;
  height: 52px;
  object-fit: cover;
  object-position: 50% 16%;
  border-radius: 10px;
}

.brand-green { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 750;
}

.nav-links a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible { border-color: var(--green); }

.hero {
  overflow: hidden;
  background: var(--mint);
}

.hero-grid {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 26px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; line-height: 1.08; }

h1 {
  max-width: 700px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 900;
}

.hero-copy {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 21px;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 5px 0 #cad9e8;
  font-size: 16px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 100ms ease, box-shadow 100ms ease;
}

.button.primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 5px 0 #04172f;
}

.app-store-button {
  width: 205px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 100ms ease;
}

.app-store-button img { display: block; width: 100%; height: auto; }
.app-store-button:hover { transform: translateY(1px); }
.app-store-button:active { transform: translateY(4px); }

.button:hover { transform: translateY(1px); box-shadow: 0 4px 0 #cad9e8; }
.button.primary:hover { box-shadow: 0 4px 0 #04172f; }
.button:active { transform: translateY(5px); box-shadow: none; }

.availability {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 560px;
}

.coach {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: -24px;
  width: min(430px, 92%);
  height: auto;
  filter: drop-shadow(0 18px 20px rgb(9 42 83 / 14%));
}

.letter-stack {
  position: absolute;
  z-index: 1;
  top: 80px;
  right: 0;
  width: 255px;
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 12px;
  transform: rotate(5deg);
}

.letter-tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 8px 0 #c9dce7;
  font-size: 30px;
  font-weight: 900;
}

.letter-tile.green {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 8px 0 var(--green-dark);
}

.rhythm {
  padding: 68px 0 72px;
  color: var(--white);
  background: var(--navy);
}

.section-title { font-size: clamp(32px, 4vw, 46px); font-weight: 900; }

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.rhythm-step {
  padding-top: 22px;
  border-top: 4px solid var(--green);
}

.rhythm-step h3 { margin-bottom: 8px; font-size: 23px; }
.rhythm-step p { margin: 0; color: #d7e4f3; }

.games { padding: 78px 0; background: var(--white); }

.games-intro { max-width: 700px; margin-bottom: 34px; }
.games-intro p { color: var(--muted); font-size: 19px; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.game-card {
  min-height: 250px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 210px;
  align-items: center;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.game-card h3 { margin-bottom: 10px; font-size: 30px; }
.game-card p { color: var(--muted); }
.game-card.search { background: var(--sky); }
.game-card.swap { background: #f4faef; }

.search-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 15px;
  border-radius: 8px;
  background: rgb(255 255 255 / 82%);
}

.search-board span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 850;
}

.search-board .found { color: var(--white); background: #27a7dd; }

.swap-board {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 11px;
  justify-content: center;
}

.swap-board span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 7px 0 #bfd0df;
  font-size: 23px;
  font-weight: 900;
}

.cta-band { padding: 62px 0; background: var(--mint); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta-inner h2 { margin-bottom: 9px; font-size: 38px; }
.cta-inner p { margin: 0; color: var(--muted); }

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  font-size: 14px;
}

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a:hover { color: var(--navy); }

.page-header { padding: 74px 0 58px; background: var(--mint); }
.page-header h1 { max-width: 850px; margin-bottom: 14px; font-size: clamp(42px, 5vw, 64px); }
.page-header p { max-width: 720px; margin: 0; color: var(--muted); font-size: 19px; }

.document-wrap { padding: 56px 0 86px; }
.document {
  width: min(820px, 100%);
  margin: 0 auto;
}
.document h2 { margin-top: 42px; margin-bottom: 14px; font-size: 28px; }
.document h3 { margin-top: 28px; margin-bottom: 10px; font-size: 21px; }
.document p, .document li { color: #344a66; }
.document li + li { margin-top: 8px; }
.document-meta { margin-bottom: 34px; padding: 18px 20px; border-left: 4px solid var(--green); background: var(--mint); }
.document-meta p { margin: 3px 0; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.support-card { padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.support-card h2 { margin-top: 0; font-size: 24px; }
.support-card p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 860px) {
  .nav { min-height: 72px; }
  .nav-links a:not(.support-link) { display: none; }
  .hero-grid { min-height: 780px; grid-template-columns: 1fr; padding-top: 58px; }
  .hero-art { min-height: 400px; }
  .coach { right: 12%; width: 330px; }
  .letter-stack { top: 20px; right: 4%; transform: scale(.8) rotate(5deg); transform-origin: top right; }
  .rhythm-grid, .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 230px; }
  .cta-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 32px, 1180px); }
  .brand { font-size: 25px; }
  .brand-mark { width: 36px; height: 44px; }
  .hero-grid { min-height: 760px; padding-top: 38px; }
  h1 { font-size: 48px; }
  .hero-copy { font-size: 18px; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .app-store-button { align-self: center; }
  .hero-art { min-height: 370px; }
  .coach { right: 7%; width: 290px; }
  .letter-stack { top: 15px; right: -24px; transform: scale(.65) rotate(5deg); }
  .rhythm, .games { padding: 54px 0; }
  .game-card { grid-template-columns: 1fr; }
  .search-board, .swap-board { width: min(220px, 100%); }
  .support-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 14px 18px; }
}
