/* ==========================================================================
   ARF — site.css
   Marketing pages: hero, stats, games lobby, how-it-works, pillars,
   parents, community, roadmap, FAQ, CTA, legal/document pages.
   ========================================================================== */

body {
  background-image:
    radial-gradient(680px 460px at 92% -6%, rgba(255, 198, 61, 0.2), transparent 70%),
    radial-gradient(720px 520px at -8% 18%, rgba(46, 155, 240, 0.12), transparent 72%),
    radial-gradient(640px 420px at 50% 104%, rgba(31, 195, 125, 0.1), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(36px, 5vw, 64px) clamp(80px, 9vw, 124px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.55rem, 5.2vw, 4rem);
}

.hero h1 .hl {
  position: relative;
  z-index: 0;
  color: var(--sky-700);
  white-space: nowrap;
}

.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: -1.5%;
  right: -1.5%;
  bottom: 0.02em;
  height: 0.26em;
  z-index: -1;
  border-radius: var(--r-pill);
  background: var(--sun);
  transform: rotate(-0.7deg);
}

.hero .lead {
  max-width: 540px;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-2);
}

.hero-trust .icon {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: var(--leaf-100);
  color: var(--leaf-600);
  stroke-width: 3;
}

/* Hero illustration */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}

.hero-art__blob {
  position: absolute;
  inset: 3% 2% 2% 4%;
  border-radius: 48% 52% 46% 54% / 52% 44% 56% 48%;
  background:
    radial-gradient(120% 120% at 20% 0%, #ffffff 0%, transparent 45%),
    linear-gradient(155deg, #d6edff 0%, #eef9ff 48%, #fff6e0 100%);
  box-shadow:
    inset 0 -26px 50px rgba(46, 155, 240, 0.12),
    0 40px 80px -50px rgba(19, 42, 74, 0.45);
}

.hero-art__ring {
  position: absolute;
  inset: 8%;
  border: 2px dashed rgba(12, 116, 196, 0.24);
  border-radius: 50%;
  animation: spin-slow 80s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.hero-art__dot {
  position: absolute;
  border-radius: 50%;
}

.hero-art__dot--1 {
  top: 12%;
  right: 16%;
  width: 14px;
  height: 14px;
  background: var(--sun);
}

.hero-art__dot--2 {
  bottom: 14%;
  left: 12%;
  width: 10px;
  height: 10px;
  background: var(--coral);
}

.hero-art__dot--3 {
  top: 46%;
  left: 5%;
  width: 8px;
  height: 8px;
  background: var(--leaf);
}

.hero-mascot {
  position: absolute;
  inset: 8% 6% 6%;
  width: 88%;
  height: 88%;
  margin: auto;
  z-index: 2;
  animation: float-y 7s ease-in-out infinite;
  filter: drop-shadow(0 24px 30px rgba(180, 88, 130, 0.18));
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  animation: float-y-sm 6.5s ease-in-out infinite;
  white-space: nowrap;
}

.float-card__emoji {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--sun-100);
  font-size: 1rem;
  line-height: 1;
}

.float-card__text small {
  display: block;
  margin-top: 2px;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

.float-card--a {
  top: 5%;
  left: -3%;
  --rot: -4deg;
  animation-delay: 0.2s;
}

.float-card--b {
  top: 20%;
  right: -4%;
  --rot: 3deg;
  animation-delay: 1.1s;
}

.float-card--c {
  bottom: 18%;
  left: -6%;
  --rot: 2deg;
  animation-delay: 0.7s;
}

.float-card--d {
  bottom: 3%;
  right: 2%;
  --rot: -3deg;
  animation-delay: 1.6s;
}

/* ---------- Stats ---------- */
.stats-wrap {
  position: relative;
  z-index: 5;
  margin-top: calc(-1 * clamp(44px, 6vw, 62px));
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: clamp(20px, 3vw, 28px) clamp(10px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.stat {
  padding-inline: clamp(8px, 1.6vw, 18px);
  text-align: center;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--sky-700);
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 700;
  color: var(--ink-3);
}

/* ---------- Games lobby ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.game-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.game-card__media {
  position: relative;
  display: block;
  padding: clamp(20px, 2.6vw, 28px);
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 16 / 10;
}

.game-card--memory .game-card__media {
  background: linear-gradient(150deg, #d6edff, #f0f9ff 60%, #ffffff);
}

.game-card--math .game-card__media {
  background: linear-gradient(150deg, #ffe9b8, #fff7e3 60%, #ffffff);
}

.game-card--pattern .game-card__media {
  background: linear-gradient(150deg, #e5ddff, #f4f0ff 60%, #ffffff);
}

.game-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(currentColor 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.08;
  color: var(--ink);
}

.game-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-xs);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.game-card__scene {
  position: relative;
  z-index: 1;
  height: 100%;
  transition: transform 0.35s var(--ease);
}

.game-card:hover .game-card__scene {
  transform: scale(1.04) rotate(-1deg);
}

/* Memory scene */
.memory-scene {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: center;
  gap: 7px;
  height: 100%;
  transform: rotate(-2.5deg);
  transform-origin: center;
}

.memory-scene span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 3px 0 rgba(19, 42, 74, 0.09);
  font-size: clamp(0.9rem, 1.6vw, 1.3rem);
  line-height: 1;
}

.memory-scene span.is-down {
  background: linear-gradient(145deg, var(--sky), var(--sky-600));
  color: transparent;
}

.memory-scene span.is-match {
  background: var(--sun);
  border-color: var(--sun-600);
}

/* Math scene */
.math-scene {
  display: grid;
  place-items: center;
  height: 100%;
}

.math-scene__card {
  width: 100%;
  padding: 16px 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px -16px rgba(120, 78, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transform: rotate(-2deg);
}

.math-scene__sum {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  line-height: 1;
}

.math-scene__sum b {
  color: var(--sun-600);
  letter-spacing: 0.04em;
}

.math-scene__opts {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.math-scene__opts span {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--sun-100);
  color: #7a5200;
  font-size: 0.8rem;
  font-weight: 800;
}

.math-scene__opts span.is-right {
  background: var(--leaf);
  color: #ffffff;
}

/* Pattern scene */
.pattern-scene {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 9px;
  height: 100%;
  padding: 2px;
  transform: rotate(-2.5deg);
}

.pattern-scene span {
  border-radius: 14px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12);
}

.pattern-scene span:nth-child(1) { background: #ff6b6b; }
.pattern-scene span:nth-child(2) { background: var(--sun); }
.pattern-scene span:nth-child(3) { background: #3dce8c; }
.pattern-scene span:nth-child(4) { background: #4ba3f7; }

.pattern-scene span.is-lit {
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, 0.12),
    0 0 0 5px rgba(255, 255, 255, 0.85),
    0 0 30px 6px currentColor;
  animation: pad-pulse 1.8s ease-in-out infinite;
  color: #ff6b6b;
}

.pattern-scene span:nth-child(2).is-lit { color: var(--sun); }
.pattern-scene span:nth-child(3).is-lit { color: #3dce8c; }
.pattern-scene span:nth-child(4).is-lit { color: #4ba3f7; }

@keyframes pad-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Game card body */
.game-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px clamp(20px, 2.4vw, 26px) 24px;
}

.game-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-card h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.48rem);
}

.game-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  background: var(--sky-50);
  font-size: 1.1rem;
}

.game-card__body p {
  margin-top: 8px;
  font-size: 0.91rem;
  line-height: 1.62;
  color: var(--ink-2);
}

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

.chips li {
  padding: 4px 10px;
  border: 1px solid rgba(46, 155, 240, 0.18);
  border-radius: var(--r-pill);
  background: var(--sky-50);
  color: var(--sky-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.game-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--sky-700);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.game-card__link:hover {
  gap: 11px;
  color: var(--sky-700);
}

.game-card__link .icon {
  width: 17px;
  height: 17px;
}

/* ---------- How it works ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
  margin-top: 10px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 16%;
  right: 16%;
  border-top: 2px dashed var(--line-strong);
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step__num {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--sky-700);
}

.step:nth-child(2) .step__num {
  color: var(--coral-600);
  border-color: rgba(255, 116, 85, 0.4);
}

.step:nth-child(3) .step__num {
  color: var(--leaf-600);
  border-color: rgba(31, 195, 125, 0.4);
}

.step h3 {
  font-size: 1.25rem;
}

.step p {
  max-width: 310px;
  margin: 8px auto 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------- Pillars ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.pillar {
  padding: clamp(22px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.82);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    border-color 0.24s;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 155, 240, 0.3);
  box-shadow: var(--shadow-md);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 16px;
}

.pillar__icon .icon {
  width: 25px;
  height: 25px;
}

.pillar--sky .pillar__icon { background: var(--sky-100); color: var(--sky-700); }
.pillar--sun .pillar__icon { background: var(--sun-100); color: #9a6b00; }
.pillar--leaf .pillar__icon { background: var(--leaf-100); color: var(--leaf-600); }
.pillar--coral .pillar__icon { background: var(--coral-100); color: var(--coral-600); }

.pillar h3 {
  font-size: 1.14rem;
}

.pillar p {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--ink-2);
}

.pillar-note {
  max-width: 780px;
  margin: 30px auto 0;
  padding: 14px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- Parents ---------- */
.parents-copy h2 {
  margin-top: 16px;
}

.parents-copy .lead {
  margin-top: 18px;
}

.checklist {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-2);
}

.checklist .icon {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: var(--leaf-100);
  color: var(--leaf-600);
  stroke-width: 3;
}

.parents-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px;
}

/* Snapshot mock */
.snapshot {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  padding: clamp(20px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.4deg);
}

.snapshot::before {
  content: "Parent view";
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.snapshot__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.snapshot__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--sun-100);
  font-size: 1.3rem;
}

.snapshot__who {
  min-width: 0;
}

.snapshot__who strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.2;
}

.snapshot__who span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-3);
}

.snapshot__streak {
  margin-left: auto;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--coral-100);
  color: var(--coral-600);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.snapshot__chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 118px;
  margin-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line);
}

.snapshot__day {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.snapshot__bar {
  width: min(100%, 26px);
  height: var(--h);
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, var(--sky), var(--sky-600));
  opacity: 0.36;
  transition: height 0.6s var(--ease), opacity 0.2s;
}

.snapshot__day:nth-child(6) .snapshot__bar,
.snapshot__day:nth-child(7) .snapshot__bar {
  opacity: 1;
}

.snapshot__day span {
  position: absolute;
  bottom: -20px;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--ink-3);
}

.snapshot__skills {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.skill {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink-2);
}

.skill__track {
  height: 8px;
  border-radius: var(--r-pill);
  background: #eef2f7;
  overflow: hidden;
}

.skill__fill {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--sky-600);
}

.skill:nth-child(2) .skill__fill { background: var(--leaf-600); }
.skill:nth-child(3) .skill__fill { background: var(--coral-600); }
.skill:nth-child(4) .skill__fill { background: var(--berry-600); }

.skill em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ink-3);
  text-align: right;
}

.snapshot__foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-3);
}

.snapshot__foot .icon {
  width: 15px;
  height: 15px;
  color: var(--leaf-600);
}

.snapshot-note {
  max-width: 420px;
  margin: 16px auto 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- Community / dark ---------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 22px);
}

.community-card {
  padding: clamp(22px, 2.8vw, 30px);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.community-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-3px);
}

.community-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sun);
}

.community-card__icon .icon {
  width: 24px;
  height: 24px;
}

.community-card:nth-child(2) .community-card__icon { color: #7fe3b6; }
.community-card:nth-child(3) .community-card__icon { color: #9fc9ff; }

.community-card h3 {
  font-size: 1.18rem;
}

.community-card p {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.chain-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  color: #d8e6f7;
  font-size: 0.78rem;
  font-weight: 800;
}

.chain-chip .icon {
  width: 15px;
  height: 15px;
  color: var(--sun);
}

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 32px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 198, 61, 0.28);
  border-radius: var(--r-sm);
  background: rgba(255, 198, 61, 0.07);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #d7c9a8;
}

.disclaimer .icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--sun);
}

.disclaimer a {
  color: var(--sun);
}

/* ---------- Roadmap ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 26px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-xs);
}

.phase::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--line-strong);
}

.phase--live::before { background: var(--leaf); }
.phase--next::before { background: var(--sun); }
.phase--later::before { background: #c7d4e4; }

.phase__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.phase__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status--live { background: var(--leaf-100); color: #0a6a45; }
.status--next { background: var(--sun-100); color: #7a5200; }
.status--later { background: #eef3f8; color: var(--ink-3); }

.phase h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.phase ul {
  display: grid;
  gap: 7px;
}

.phase li {
  position: relative;
  padding-left: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.phase li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
  opacity: 0.55;
}

.roadmap-note {
  margin-top: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 880px;
  margin-inline: auto;
}

.faq details {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq details[open] {
  border-color: rgba(46, 155, 240, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 3vw, 24px);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq summary:hover {
  color: var(--sky-700);
}

.faq summary .icon {
  width: 22px;
  height: 22px;
  flex: none;
  padding: 4px;
  border-radius: 50%;
  background: var(--sky-50);
  color: var(--sky-700);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
  background: var(--sun-100);
  color: #9a6b00;
}

.faq__answer {
  padding: 0 clamp(18px, 3vw, 24px) 20px;
  max-width: 72ch;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.faq__answer a {
  font-weight: 700;
}

.faq-more {
  margin-top: 26px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-3);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 5vw, 58px);
  overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 260px at 85% 10%, rgba(255, 198, 61, 0.34), transparent 70%),
    linear-gradient(125deg, #075a9b 0%, #0c74c4 42%, #1ba58a 100%);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1.2px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.16;
  mask-image: linear-gradient(100deg, #000 10%, transparent 65%);
  -webkit-mask-image: linear-gradient(100deg, #000 10%, transparent 65%);
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.cta-band .eyebrow::before {
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(255, 198, 61, 0.2);
}

.cta-band h2 {
  margin-top: 14px;
  color: #ffffff;
  font-size: clamp(1.8rem, 3.4vw, 2.65rem);
}

.cta-band p {
  max-width: 46ch;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.65;
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-band .btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

.cta-band__note {
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- Document pages (privacy / terms / parents / 404) ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(36px, 5vw, 56px) clamp(30px, 4vw, 44px);
  background:
    radial-gradient(560px 260px at 88% 0%, rgba(255, 198, 61, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(227, 242, 254, 0.75), rgba(255, 251, 245, 0.2));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero .lead {
  max-width: 66ch;
  margin-top: 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-3);
}

.breadcrumbs a {
  color: var(--ink-3);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--sky-700);
  text-decoration: underline;
}

.breadcrumbs .icon {
  width: 12px;
  height: 12px;
  transform: rotate(-90deg);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.doc-meta span {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-3);
}

.doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 60px) clamp(64px, 8vw, 100px);
}

.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.72);
}

.doc-toc h2 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.doc-toc a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.doc-toc a:hover,
.doc-toc a.is-active {
  border-color: var(--sky);
  background: var(--sky-50);
  color: var(--sky-700);
}

.prose {
  max-width: 76ch;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 2.1em 0 0.65em;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h3 {
  margin: 1.7em 0 0.5em;
  font-size: 1.1rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.78;
}

.prose p {
  margin: 1em 0;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.45em;
  margin: 1em 0;
  padding-left: 1.35em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li::marker {
  color: var(--sky);
  font-weight: 800;
}

.prose a {
  font-weight: 700;
}

.prose strong {
  color: var(--ink);
}

.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose blockquote,
.callout {
  margin: 1.4em 0;
  padding: 16px 20px;
  border: 1px solid rgba(46, 155, 240, 0.28);
  border-left: 4px solid var(--sky);
  border-radius: var(--r-sm);
  background: var(--sky-50);
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.7;
}

.callout--sun {
  border-color: rgba(255, 198, 61, 0.45);
  border-left-color: var(--sun-600);
  background: var(--sun-100);
  color: #6b4a00;
}

.callout--leaf {
  border-color: rgba(31, 195, 125, 0.32);
  border-left-color: var(--leaf-600);
  background: var(--leaf-100);
  color: #0a5b3d;
}

.callout p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.callout > *:first-child { margin-top: 0; }
.callout > *:last-child { margin-bottom: 0; }

.table-wrap {
  margin: 1.4em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.prose th,
.prose td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--sky-50);
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose td {
  color: var(--ink-2);
}

.prose dl {
  display: grid;
  gap: 16px;
  margin: 1.3em 0;
}

.prose dt {
  font-weight: 800;
  color: var(--ink);
}

.prose dd {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.7;
}

.doc-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.doc-footer p {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.doc-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}

.doc-nav a:hover {
  border-color: var(--sky);
  background: var(--sky-50);
  color: var(--sky-700);
}

.doc-nav .icon {
  width: 15px;
  height: 15px;
}

/* ---------- 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 300px);
  padding-block: clamp(48px, 8vw, 90px);
  text-align: center;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--sky-700);
  letter-spacing: -0.03em;
  text-shadow: 6px 6px 0 var(--sun);
}

.error-page p.error-page__code {
  max-width: none;
  margin: 0;
  color: var(--sky-700);
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-shadow: 6px 6px 0 var(--sun);
}

.error-page h1 {
  margin-top: 20px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.error-page p {
  max-width: 46ch;
  margin: 14px auto 0;
  color: var(--ink-2);
  font-size: 1rem;
}

.error-page .hero-actions {
  justify-content: center;
}

/* ---------- Responsive section rules ---------- */
@media (max-width: 1080px) {
  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .float-card--a { left: 0; }
  .float-card--c { left: -2%; }
  .float-card--b { right: -1%; }
}

@media (max-width: 940px) {
  .hero {
    padding-block: 32px 92px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-art {
    max-width: 460px;
  }

  .float-card--c,
  .float-card--d {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card:last-child {
    grid-column: 1 / -1;
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .community-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-band {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .cta-band p {
    margin-inline: auto;
  }

  .cta-band__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-band__note {
    text-align: center;
  }

  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-toc {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .doc-toc::-webkit-scrollbar {
    display: none;
  }

  .doc-toc h2 {
    flex: 0 0 auto;
    align-self: center;
    margin: 0 4px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .doc-toc a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--paper);
    padding: 7px 12px;
    font-size: 0.76rem;
  }

  .doc-toc a:hover,
  .doc-toc a.is-active {
    border-color: var(--sky);
  }
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .steps::before {
    display: none;
  }

  .snapshot {
    transform: none;
  }

  .faq summary {
    font-size: 0.94rem;
  }
}

@media (max-width: 640px) {
  .game-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .prose table {
    min-width: 520px;
  }

  .table-wrap {
    overscroll-behavior-x: contain;
  }

  .game-card:last-child {
    max-width: none;
  }

  .pillar-grid,
  .roadmap {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    max-width: 380px;
  }

  .float-card {
    font-size: 0.7rem;
    padding: 8px 11px;
  }

  .float-card__emoji {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }

  .stats {
    padding: 20px 8px;
  }

  .stat strong {
    font-size: 1.4rem;
  }

  .cta-band {
    border-radius: var(--r-lg);
    padding: 30px 22px;
  }

  .poster-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-band__actions .btn {
    width: 100%;
  }
}
