/* Word Search: Offline Puzzle — website styles.
   Palette and type follow the app (app.md → Brand). The gradient is a slightly deeper cut of the
   app's sky → royal → violet so white body text on it stays above 4.5:1 contrast. */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #2a6ae0;
  --royal: #4452ee;
  --violet: #5d36ec;
  --brand: #4a63fc;
  --ink: #0a1158;
  --ink-soft: #283071;
  --muted: #535d92;
  --surface: #f5f7ff;
  --surface-2: #eceffe;
  --card: #ffffff;
  --line: #dde2fa;
  --capsule: #eafbff;
  --orange: #ff8a1f;
  --orange-top: #ffa449;
  --orange-edge: #d96a00;
  --gold: #f6b21f;
  --green: #1fbf68;
  --mint: #7cf0d9;
  --lemon: #ffe07a;
  --peach: #ffb88c;
  --bubblegum: #ff9fcf;
  --lilac: #d2b8ff;
  --lime: #c7f27f;
  --pastel-sky: #8fd8ff;
  --gradient: linear-gradient(128deg, var(--sky) 0%, var(--royal) 48%, var(--violet) 100%);
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 18px 40px -20px rgba(26, 31, 122, 0.35);
  --shadow-lg: 0 34px 70px -28px rgba(26, 31, 122, 0.55);
  --container: 1160px;
  --header-h: 68px;
  --font-display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: inherit;
}

h3 {
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--violet);
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(221, 226, 250, 0.9);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 6px 14px -6px rgba(26, 31, 122, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:not(.btn) {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-links .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px 24px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  }

  .mobile-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav a:not(.btn) {
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
  }

  .mobile-nav a:not(.btn):hover {
    background: var(--surface-2);
  }

  .mobile-nav .btn {
    margin-top: 8px;
    justify-content: center;
  }
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--orange-top) 0%, var(--orange) 100%);
  box-shadow: 0 5px 0 var(--orange-edge), 0 16px 26px -10px rgba(255, 138, 31, 0.7);
  text-shadow: 0 1px 0 rgba(160, 70, 0, 0.35);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--orange-edge), 0 8px 16px -8px rgba(255, 138, 31, 0.7);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.98rem;
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-glass:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.play-badge {
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.15s ease;
}

.play-badge:hover {
  transform: translateY(-2px);
}

.play-badge img {
  width: 196px;
  height: 58px;
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--gradient);
  padding: 72px 0 132px;
  isolation: isolate;
}

.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after,
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero::before,
.page-hero::before {
  width: 560px;
  height: 560px;
  left: -200px;
  top: -260px;
  background: rgba(140, 210, 255, 0.45);
}

.hero::after,
.page-hero::after {
  width: 620px;
  height: 620px;
  right: -220px;
  bottom: -320px;
  background: rgba(176, 96, 255, 0.5);
}

.bg-letters span {
  position: absolute;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.45rem, 5.4vw, 4.1rem);
  line-height: 1.06;
  text-shadow: 0 6px 24px rgba(10, 17, 88, 0.25);
}

.capsule {
  display: inline-block;
  padding: 0.02em 0.38em 0.08em;
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #e2f3ff 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.32), 0 0 38px rgba(190, 232, 255, 0.9);
  text-shadow: none;
  transform: rotate(-2deg);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.96);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 28px 0 24px;
}

.hero-note {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: balance;
}

.cta-band .small {
  text-wrap: balance;
}

.hero-note span,
.cta-band .small span {
  white-space: nowrap;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.36);
  font-weight: 800;
  font-size: 0.9rem;
}

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(330px, 78vw);
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1b2266 0%, #0a1158 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45), var(--shadow-lg), 0 0 80px rgba(150, 200, 255, 0.35);
  transform: rotate(3deg);
}

.phone img {
  width: 100%;
  border-radius: 35px;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.float-chip.coins {
  left: max(-10px, calc(50% - 250px));
  top: 18%;
  transform: rotate(-6deg);
}

.float-chip.words {
  right: max(-10px, calc(50% - 250px));
  bottom: 14%;
  transform: rotate(5deg);
}

.coin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe28a 0%, var(--gold) 55%, #d48f00 100%);
  box-shadow: inset 0 -2px 0 rgba(150, 90, 0, 0.35);
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
}

/* ------------------------------------------------------------------- stats */

.stats {
  position: relative;
  z-index: 2;
  margin-top: -72px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  padding: 22px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-weight: 800;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------- sections */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface-2);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-head h2,
.split h2 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
}

.section-head p {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0;
}

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

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.32rem;
  margin: 18px 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(68, 82, 238, 0.8);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

/* How to play */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}

.steps li:nth-child(1) .step-num {
  background: var(--mint);
}

.steps li:nth-child(2) .step-num {
  background: var(--lemon);
}

.steps li:nth-child(3) .step-num {
  background: var(--peach);
}

.steps h3 {
  font-size: 1.22rem;
  margin: 4px 0 4px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.shot-frame {
  justify-self: center;
  width: min(340px, 82vw);
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1b2266 0%, #0a1158 100%);
  box-shadow: var(--shadow-lg);
}

.shot-frame img {
  width: 100%;
  border-radius: 35px;
}

/* Tiers */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tier {
  padding: 0 0 22px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tier-top {
  padding: 18px 22px 16px;
  color: var(--ink);
}

.tier-top h3 {
  margin: 0;
  font-size: 1.45rem;
}

.tier-top p {
  margin: 2px 0 0;
  font-weight: 800;
  font-size: 0.92rem;
  opacity: 0.8;
}

.tier.easy .tier-top {
  background: var(--mint);
}

.tier.medium .tier-top {
  background: var(--lemon);
}

.tier.hard .tier-top {
  background: var(--peach);
}

.tier.pro .tier-top {
  background: var(--lilac);
}

.tier dl {
  margin: 0;
  padding: 6px 22px 0;
}

.tier dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.tier dt {
  color: var(--muted);
  font-weight: 700;
}

.tier dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.tier-note {
  margin: 24px auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--muted);
}

/* Gallery */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(250px, 64vw);
  gap: 22px;
  overflow-x: auto;
  padding: 8px 20px 18px;
  margin: 0 -20px;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}

.gallery img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.gallery figcaption {
  margin-top: 12px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Use cases */

.use-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.use {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.use .card-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.use .card-icon svg {
  width: 24px;
  height: 24px;
}

.use h3 {
  font-size: 1.16rem;
  margin: 16px 0 6px;
}

.use p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Guide cards */

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.guide-card .tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--brand);
}

.guide-card h2,
.guide-card h3 {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.guide-card .more {
  font-weight: 900;
  color: var(--brand);
}

.center-link {
  margin-top: 32px;
  text-align: center;
  font-weight: 800;
}

.more-link {
  margin: 24px 0 0;
  font-weight: 800;
}

/* FAQ */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-list details {
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.faq-list summary {
  position: relative;
  padding: 20px 60px 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.14rem;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--surface-2) center / 12px 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%234a63fc' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details > div {
  padding: 0 24px 20px;
  color: var(--muted);
}

.faq-list details > div p:last-child {
  margin-bottom: 0;
}

/* CTA band */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 64px 32px;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-band::before {
  width: 520px;
  height: 520px;
  right: -180px;
  top: -260px;
  background: rgba(150, 215, 255, 0.45);
}

.cta-band img.cta-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 24px;
  box-shadow: 0 16px 30px -12px rgba(10, 17, 88, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 1.12rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.cta-band .small {
  margin: 16px auto 0;
  font-size: 0.92rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  margin-top: 96px;
  padding: 64px 0 36px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  margin: 14px 0 0;
  max-width: 30em;
  font-size: 0.98rem;
}

.site-footer h2 {
  margin: 4px 0 14px;
  font-size: 1.05rem;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

/* -------------------------------------------------------------- mobile CTA */

.mobile-cta {
  display: none;
}

@media (max-width: 760px) {
  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(140%);
    transition: transform 0.25s ease;
  }

  .mobile-cta.visible {
    transform: none;
  }

  .mobile-cta img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .mobile-cta .label {
    flex: 1;
    line-height: 1.2;
  }

  .mobile-cta strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
  }

  .mobile-cta small {
    color: var(--muted);
    font-weight: 700;
  }

  body.has-mobile-cta .site-footer {
    padding-bottom: 110px;
  }
}

/* ------------------------------------------------------- article and legal */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 44px 0 56px;
  color: #fff;
  background: var(--gradient);
}

.page-hero h1 {
  max-width: 820px;
  margin: 14px 0 12px;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  text-shadow: 0 6px 24px rgba(10, 17, 88, 0.25);
}

.page-hero .lead {
  margin: 0;
}

.page-meta {
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 800;
  font-size: 0.92rem;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  opacity: 0.75;
}

.breadcrumbs a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  opacity: 0.75;
}

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
  padding-top: 48px;
}

.article {
  min-width: 0;
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article.narrow {
  max-width: 860px;
  margin: 0 auto;
}

.article h2 {
  margin-top: 1.8em;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin-top: 1.5em;
  font-size: 1.25rem;
}

.article p,
.article li {
  color: var(--ink-soft);
}

.article ul,
.article ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}

.article li {
  margin-bottom: 0.45em;
}

.article li::marker {
  color: var(--brand);
  font-weight: 800;
}

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

.article table {
  width: 100%;
  margin: 0 0 1.4em;
  border-collapse: collapse;
  font-size: 0.98rem;
}

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

.article th {
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--surface-2);
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.4em;
}

.table-scroll table {
  margin: 0;
  min-width: 520px;
}

.article figure {
  margin: 1.6em 0;
}

.article figure img {
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article figure.phone-figure img {
  width: min(320px, 100%);
  margin: 0 auto;
}

.article figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.callout {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--surface-2);
  border-left: 5px solid var(--brand);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout.tip {
  background: #effcf7;
  border-left-color: var(--green);
}

.app-cta {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  margin: 2em 0;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: var(--gradient);
  box-shadow: var(--shadow);
}

.app-cta img.icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.app-cta p {
  margin: 0 0 12px;
  color: #fff;
  font-weight: 600;
}

.app-cta strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.app-cta .play-badge img {
  width: 162px;
  height: 48px;
}

.aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 18px;
}

.aside-box {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.aside-box h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.aside-box ol,
.aside-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.aside-box a {
  font-weight: 700;
  text-decoration: none;
}

.aside-box a:hover {
  text-decoration: underline;
}

.aside-app {
  text-align: center;
}

.aside-app img.icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 20px;
}

.aside-app p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.aside-app .play-badge img {
  width: 162px;
  height: 48px;
  margin: 0 auto;
}

.related {
  margin-top: 2.2em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}

.related ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.related a {
  font-weight: 800;
}

/* Word search example boards inside guides */

.ws-example {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin: 1.6em 0;
}

.ws-grid {
  --n: 6;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  gap: 4px;
  width: min(100%, calc(var(--n) * 50px + 28px));
  padding: 14px;
  border-radius: 22px;
  background: var(--gradient);
  box-shadow: var(--shadow);
}

.ws-grid span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  color: #fff;
}

.ws-grid span.m {
  background: var(--mint);
  color: var(--ink);
}

.ws-grid span.l {
  background: var(--lemon);
  color: var(--ink);
}

.ws-grid span.p {
  background: var(--peach);
  color: var(--ink);
}

.ws-grid span.v {
  background: var(--lilac);
  color: var(--ink);
}

.ws-grid span.s {
  background: var(--capsule);
  color: var(--ink);
  box-shadow: 0 0 14px rgba(234, 251, 255, 0.9);
}

.ws-legend {
  flex: 1;
  min-width: 220px;
}

.ws-legend ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ws-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swatch {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
}

.compass {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 8px;
  justify-content: center;
  margin: 1.6em 0;
}

.compass span {
  display: grid;
  place-items: center;
  height: 64px;
  border-radius: 18px;
  background: var(--surface-2);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--brand);
}

.compass span i {
  display: inline-block;
  font-style: normal;
  transform: rotate(var(--r, 0deg));
}

.compass span.center {
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

/* Contact and support */

.contact-card {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin: 1.4em 0 2em;
  padding: 26px;
  border-radius: 24px;
  background: var(--surface-2);
}

.contact-card .email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  word-break: break-all;
}

/* 404 */

.not-found {
  padding: 80px 0 40px;
  text-align: center;
}

.not-found .board-404 {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 24px;
  background: var(--gradient);
  box-shadow: var(--shadow-lg);
}

.not-found .board-404 span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--ink);
  background: var(--capsule);
}

.not-found h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.not-found p {
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.12rem;
}

.not-found .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 24px;
  font-weight: 800;
}

/* ------------------------------------------------------------ reveal anim */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .tier-grid,
  .use-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-wrap {
    grid-template-columns: 1fr;
  }

  .aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 120px;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 40px;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .section {
    padding: 72px 0;
  }

  .card-grid,
  .tier-grid,
  .use-grid,
  .aside {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .app-cta {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .float-chip {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .float-chip.coins {
    left: 0;
  }

  .float-chip.words {
    right: 0;
  }

  .cta-band {
    padding: 48px 22px;
  }

  .site-footer {
    margin-top: 72px;
  }
}

@media (max-width: 420px) {
  .eyebrow {
    padding: 6px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }
}
