:root {
  color-scheme: light;
  --paper: #fffaf1;
  --surface: #ffffff;
  --surface-soft: #f6efe4;
  --ink: #273238;
  --muted: #687272;
  --line: rgba(47, 61, 62, 0.14);
  --green: #327c68;
  --green-dark: #175b4a;
  --coral: #ee6f57;
  --sun: #f7bf45;
  --sky: #87bfd2;
  --shadow: 0 24px 70px rgba(40, 52, 48, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 12%, rgba(135, 191, 210, 0.3), transparent 28rem),
    radial-gradient(circle at 84% 8%, rgba(247, 191, 69, 0.26), transparent 26rem),
    linear-gradient(180deg, #fff7e8 0%, #f8efe1 44%, #eef7f2 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(39, 50, 56, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 50, 56, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.site-header.compact {
  position: relative;
}

.brand,
.nav-links,
.hero-stats,
.tool-row,
.score-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(23, 91, 74, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #d9f1e7);
  color: var(--green-dark);
  box-shadow: 0 10px 24px rgba(23, 91, 74, 0.12);
}

.nav-links {
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(47, 61, 62, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 34px rgba(47, 61, 62, 0.08);
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 13px;
  color: #405050;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover {
  background: #fff;
  color: var(--green-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 38px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 11vw, 8.75rem);
  line-height: 0.84;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

p,
li {
  color: var(--muted);
  line-height: 1.72;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 28px;
  color: #50605e;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 16px 34px rgba(23, 91, 74, 0.24);
}

.button.secondary {
  border-color: rgba(47, 61, 62, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.hero-stats {
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.hero-stats div {
  min-width: 138px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 61, 62, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.hero-stats dt {
  font-weight: 900;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-stage::before {
  position: absolute;
  width: min(460px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  background:
    conic-gradient(from 120deg, rgba(238, 111, 87, 0.35), rgba(135, 191, 210, 0.4), rgba(247, 191, 69, 0.35), rgba(238, 111, 87, 0.35));
  filter: blur(14px);
  opacity: 0.76;
}

.phone-shell {
  position: relative;
  width: min(390px, 100%);
  border: 10px solid #263233;
  border-radius: 36px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 241, 0.96)),
    linear-gradient(145deg, #eaf8ee, #fff0d0);
  box-shadow: var(--shadow);
}

.phone-shell::after {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 86px;
  height: 6px;
  border-radius: 999px;
  content: "";
  background: #263233;
  transform: translateX(-50%);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 14px;
}

.phone-top strong {
  display: block;
  font-size: 1.4rem;
}

.micro-label {
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coin-pill {
  align-self: flex-start;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff4cc;
  color: #7a5414;
  font-weight: 900;
}

.score-row {
  justify-content: space-between;
  margin-bottom: 14px;
  color: #667573;
  font-size: 0.88rem;
  font-weight: 800;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(47, 61, 62, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.tile {
  display: grid;
  min-height: 74px;
  place-items: center;
  border: 1px solid rgba(47, 61, 62, 0.12);
  border-radius: 8px;
  box-shadow: inset 0 -8px 0 rgba(47, 61, 62, 0.06), 0 8px 18px rgba(47, 61, 62, 0.08);
}

.tile img {
  width: min(58px, 78%);
  height: min(58px, 78%);
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(47, 61, 62, 0.14));
}

.cat { background: #ffe3df; }
.fox { background: #ffd9b0; }
.panda { background: #e5f0ea; }
.bird { background: #d8ecff; }
.bear { background: #efe0cd; }
.frog { background: #d9f3c7; }

.tile.matched {
  outline: 3px solid rgba(238, 111, 87, 0.4);
  transform: translateY(-2px);
}

.tool-row {
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.tool-row span {
  flex: 1;
  border-radius: 8px;
  padding: 11px 8px;
  background: #263233;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.content-band,
.split-band,
.support-band,
.legal-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-band {
  padding: 88px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.legal-card {
  border: 1px solid rgba(47, 61, 62, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 48px rgba(47, 61, 62, 0.08);
}

.feature-card {
  min-height: 280px;
  padding: 24px;
}

.feature-index {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--coral);
  font-weight: 950;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  padding: 74px 0;
}

.daily-panel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(47, 61, 62, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
}

.calendar-card {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px solid rgba(47, 61, 62, 0.1);
  border-radius: 8px;
  background: #fff;
}

.calendar-card span {
  align-self: end;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.calendar-card strong {
  align-self: start;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.calendar-card.active {
  background: linear-gradient(180deg, #347e69, #185c4a);
  color: #fff;
}

.calendar-card.active span {
  color: rgba(255, 255, 255, 0.76);
}

.split-copy {
  max-width: 590px;
}

.collection {
  padding-top: 100px;
}

.collection-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.collection-strip span {
  display: grid;
  min-height: 126px;
  place-items: center;
  border: 1px solid rgba(47, 61, 62, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.9)),
    var(--surface-soft);
  color: var(--green-dark);
  font-weight: 950;
  box-shadow: inset 0 -10px 0 rgba(47, 61, 62, 0.04);
}

.collection-strip img {
  width: min(86px, 72%);
  height: min(86px, 72%);
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(47, 61, 62, 0.16));
}

.support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 80px;
  border: 1px solid rgba(47, 61, 62, 0.1);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
  background: #263233;
  color: white;
}

.support-band h2,
.support-band .eyebrow {
  color: white;
}

.support-band h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(47, 61, 62, 0.12);
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a,
.legal-card a {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.legal-page {
  padding: 40px 0 72px;
}

.legal-hero {
  max-width: 820px;
  margin-bottom: 28px;
}

.legal-hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.94;
}

.legal-stack {
  display: grid;
  max-width: 900px;
  gap: 14px;
}

.legal-card {
  padding: clamp(20px, 4vw, 34px);
}

.legal-card h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.legal-card p:last-child,
.legal-card ul:last-child {
  margin-bottom: 0;
}

.legal-card li + li {
  margin-top: 8px;
}

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

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.has-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
  }

  .nav-links {
    max-width: 66vw;
    overflow-x: auto;
  }

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

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .phone-shell {
    width: min(420px, 100%);
  }

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

  .daily-panel {
    grid-template-columns: repeat(5, minmax(74px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  .support-band {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    max-width: 100%;
  }

  .hero-stats,
  .hero-actions {
    display: grid;
  }

  .feature-grid,
  .collection-strip {
    grid-template-columns: 1fr;
  }

  .game-board {
    gap: 8px;
    padding: 10px;
  }

  .tile {
    min-height: 62px;
    font-size: 0.72rem;
  }

  .calendar-card {
    min-height: 124px;
  }
}
