/* TrailLeaf marketing — light mode, matches app brand tokens */
@font-face {
  font-family: "Domachive";
  src: url("/assets/fonts/DOMACHIVE.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Clarity Sans";
  src: url("/assets/fonts/Clarity%20Sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --forest: #0a5c55;
  --deep-forest: #034344;
  --leaf: #6baf3a;
  --sage: #7fa87c;
  --sage-deep: #5c8a5a;
  --meadow: #ddf2cf;
  --meadow-soft: #e8f5dc;
  --moss: #e7eedb;
  --cream: #fbf7ef;
  --paper: #fffdf8;
  --ink: #1a3532;
  --muted: #6a7d7a;
  --sun: #ffb91c;
  --coral: #e8894a;
  --sky-soft: #b8dcf0;
  --stitch: rgba(61, 107, 79, 0.14);
  --shadow: rgba(10, 92, 85, 0.12);
  --radius: 1.25rem;
  --font-title: "Domachive", "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-body: "Clarity Sans", "Nunito", "Segoe UI", sans-serif;
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--deep-forest);
}

p {
  margin: 0 0 1rem;
}

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

/* ——— Nav ——— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1.1rem 1.5rem;
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--deep-forest);
}

.brand img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
}

.brand__wordmark {
  width: auto;
  height: 1.45rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(3, 67, 68, 0.45));
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links li + li::before {
  content: "";
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  background: url("/assets/brand/leaf.png") center / contain no-repeat;
}

.nav-links a {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--paper);
}

.nav-links a:hover {
  color: var(--sun);
}

.nav-links a.btn[aria-disabled="true"] {
  color: var(--paper);
}

.nav-stores {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-toggle {
  display: none;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid rgba(255, 253, 248, 0.42);
  border-radius: 999px;
  background: rgba(3, 67, 68, 0.72);
  color: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__icon {
  position: relative;
}

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

.nav-toggle__icon::before { transform: translateY(-0.38rem); }
.nav-toggle__icon::after { transform: translateY(0.38rem); }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: rotate(-45deg); }

@media (max-width: 720px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .site-header__inner {
    justify-content: flex-end;
    position: relative;
  }

  .site-header nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(19rem, calc(100vw - 2rem));
    padding: 0.75rem;
    border: 1px solid rgba(255, 253, 248, 0.24);
    border-radius: 1rem;
    background: rgba(3, 67, 68, 0.96);
    box-shadow: 0 1rem 2.5rem rgba(3, 38, 39, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-header.is-nav-open nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links li {
    display: block;
  }

  .nav-links li + li::before { display: none; }

  .nav-links a {
    display: block;
    padding: 0.72rem 0.8rem;
  }

  .nav-links .btn {
    margin-top: 0.35rem;
    padding: 0.7rem 0.95rem;
    font-size: 0.9rem;
    text-align: center;
  }

  .nav-stores {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-top: 0.35rem;
  }

  .nav-stores .store-badge {
    width: 100%;
    justify-content: center;
  }
}

/* ——— Hero (full-bleed) ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: visible;
  color: var(--paper);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 67, 68, 0.18) 0%, rgba(3, 67, 68, 0.55) 55%, rgba(3, 67, 68, 0.82) 100%),
    linear-gradient(90deg, rgba(3, 67, 68, 0.35) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7.5rem 1.5rem 6.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__brand {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
  animation: rise 0.9s ease both;
}

.hero__wordmark {
  width: clamp(20rem, 46vw, 37rem);
  height: auto;
  filter: drop-shadow(0 5px 18px rgba(0, 0, 0, 0.38));
  margin: 0;
}

.hero h1 {
  display: none; /* brand is the hero signal */
}

.hero__tagline {
  max-width: 38rem;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--paper);
  margin: 0 0 0.65rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  animation: rise 0.9s ease 0.1s both;
}

.hero__collection-count {
  max-width: 44rem;
  font-size: calc(clamp(1.2rem, 2.4vw, 1.6rem) + 3px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--paper);
  margin: 0 0 0.8rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  animation: rise 0.9s ease 0.18s both;
}

.hero__collection-count strong {
  font-size: calc(1em + 2px);
  font-weight: 900;
}

.hero__support {
  max-width: 34rem;
  font-size: 1.05rem;
  color: rgba(255, 253, 248, 0.88);
  margin: 0 0 1.75rem;
  animation: rise 0.9s ease 0.26s both;
}

.hero__snap-strip {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: clamp(0.28rem, 0.7vw, 0.7rem);
  width: 100%;
  overflow-x: auto;
  padding: 1rem 0.5rem 0.75rem;
  overscroll-behavior-x: contain;
  transform: translate(-50%, 50%);
  animation: snap-strip-rise 0.9s ease 0.34s both;
}

@keyframes snap-strip-rise {
  from {
    opacity: 0;
    transform: translate(-50%, calc(50% + 14px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, 50%);
  }
}

.hero-snap {
  --snap-tilt: -4deg;
  flex: 0 0 auto;
  width: max(6.1rem, calc(100vw / 11));
  aspect-ratio: 3 / 4;
  padding: 0.25rem 0.25rem 0.68rem;
  border: 1px solid rgba(3, 67, 68, 0.2);
  border-radius: 0.42rem;
  background: var(--paper);
  box-shadow:
    0 0.45rem 0.9rem rgba(3, 36, 35, 0.22),
    0 0.12rem 0.25rem rgba(3, 36, 35, 0.18);
  transform: rotate(var(--snap-tilt));
  transform-origin: 50% 85%;
}

.hero-snap:nth-child(6n + 1) { --snap-tilt: -4deg; }
.hero-snap:nth-child(6n + 2) { --snap-tilt: 2.8deg; }
.hero-snap:nth-child(6n + 3) { --snap-tilt: -1.8deg; }
.hero-snap:nth-child(6n + 4) { --snap-tilt: 4.2deg; }
.hero-snap:nth-child(6n + 5) { --snap-tilt: -2.6deg; }
.hero-snap:nth-child(6n) { --snap-tilt: 3.4deg; }

.hero-snap__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.24rem;
  background:
    radial-gradient(circle at 55% 32%, rgba(255, 255, 255, 0.36), transparent 24%),
    linear-gradient(145deg, rgba(184, 220, 240, 0.9), rgba(107, 175, 58, 0.72));
}

.hero-snap:nth-child(3n + 2) .hero-snap__media {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.32), transparent 22%),
    linear-gradient(145deg, rgba(255, 185, 28, 0.66), rgba(10, 92, 85, 0.88));
}

.hero-snap:nth-child(3n) .hero-snap__media {
  background:
    radial-gradient(circle at 65% 25%, rgba(255, 255, 255, 0.3), transparent 22%),
    linear-gradient(145deg, rgba(221, 242, 207, 0.9), rgba(92, 138, 90, 0.9));
}

.hero-snap__media img {
  width: 45%;
  height: auto;
  opacity: 0.6;
  filter: brightness(0) invert(1);
}

.hero-snap__media .hero-snap__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

.hero-snap__media .hero-snap__photo--left {
  object-position: left center;
}

/* App-like collection # + rarity stars (no name). */
.hero-snap__number {
  position: absolute;
  z-index: 2;
  top: 0.28rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.12rem 0.38rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 1.4vw, 0.72rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.hero-snap__stars {
  --star-on: var(--sage-deep);
  position: absolute;
  z-index: 2;
  bottom: 0.28rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.08rem;
  align-items: center;
  padding: 0.14rem 0.32rem;
  border-radius: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--stitch) 35%, transparent);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 1px 3px rgba(26, 53, 50, 0.12);
}

.hero-snap[data-rarity="uncommon"] .hero-snap__stars {
  --star-on: var(--coral);
}

.hero-snap[data-rarity="rare"] .hero-snap__stars {
  --star-on: #3478b8;
}

.hero-snap[data-rarity="epic"] .hero-snap__stars {
  --star-on: #8b5fbf;
}

.hero-snap__stars span {
  width: clamp(0.45rem, 1.1vw, 0.62rem);
  height: clamp(0.45rem, 1.1vw, 0.62rem);
  background: color-mix(in srgb, var(--muted) 35%, transparent);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.hero-snap__stars span.is-on {
  background: var(--star-on);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  animation: rise 0.9s ease 0.26s both;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.15rem;
  padding: 0.45rem 1.05rem 0.45rem 0.8rem;
  border-radius: 0.85rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(3, 38, 39, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.store-badge:hover {
  color: #fff;
  background: #1c1c1c;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(3, 38, 39, 0.34);
}

.store-badge__icon {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.store-badge__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.store-badge__eyebrow {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}

.store-badge__name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.store-badge--compact {
  min-height: 0;
  min-width: 0;
  padding: 0.42rem 0.78rem;
  gap: 0.42rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(3, 38, 39, 0.22);
}

.store-badge--compact .store-badge__icon {
  width: 0.95rem;
  height: 0.95rem;
}

.store-badge--compact span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nav-links .store-badge,
.nav-links .store-badge:hover {
  display: inline-flex;
  color: #fff;
  font-family: var(--font-body);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--leaf);
  color: var(--paper);
  box-shadow: 0 8px 24px rgba(107, 175, 58, 0.35);
}

.btn--primary:hover {
  background: #5c9a30;
  color: var(--paper);
}

.btn--ghost {
  background: rgba(255, 253, 248, 0.12);
  color: var(--paper);
  border-color: rgba(255, 253, 248, 0.45);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(255, 253, 248, 0.22);
  color: var(--paper);
}

.btn--solid {
  background: var(--forest);
  color: var(--paper);
}

.btn--solid:hover {
  background: var(--deep-forest);
  color: var(--paper);
}

.btn--sun {
  background: var(--sun);
  color: var(--deep-forest);
  box-shadow: 0 8px 24px rgba(255, 185, 28, 0.35);
}

.btn--sun:hover {
  background: #f4a900;
  color: var(--deep-forest);
}

.btn[aria-disabled="true"] {
  background: var(--sun);
  color: var(--deep-forest);
  box-shadow: 0 8px 24px rgba(255, 185, 28, 0.35);
  opacity: 0.85;
  cursor: default;
  pointer-events: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 1.5rem;
}

.section--meadow {
  padding-top: calc(clamp(9.5rem, 12vw, 11rem) + 20px);
  padding-bottom: clamp(6rem, 9vw, 8rem);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, var(--sky-soft) 0%, transparent 50%),
    linear-gradient(180deg, var(--meadow-soft) 0%, var(--cream) 100%);
}

.section--meadow .section__lead {
  margin-bottom: clamp(3.5rem, 6vw, 5rem);
}

.section--paper {
  background: var(--paper);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 0.5rem;
}

.section__title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.section__lead {
  max-width: 36rem;
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 2.25rem;
}

.mascot-slot {
  float: right;
  display: grid;
  place-items: center;
  width: 8.5rem;
  aspect-ratio: 1;
  margin: 0 0 1rem 2rem;
  border: 1.5px dashed rgba(10, 92, 85, 0.24);
  border-radius: 45% 55% 52% 48% / 58% 44% 56% 42%;
  background: rgba(255, 253, 248, 0.34);
  color: rgba(10, 92, 85, 0.48);
}

.mascot-slot span {
  max-width: 5rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.mascot-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mascot-slot--meadow {
  transform: rotate(3deg);
  border-color: transparent;
  background: transparent;
}

.mascot-slot--paper {
  transform: rotate(-3deg);
  border-color: transparent;
  background: transparent;
}

/* ——— Device mockups ——— */
.devices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: end;
  perspective: 1200px;
}

@media (max-width: 840px) {
  .devices {
    display: flex;
    gap: 1rem;
    width: calc(100% + 1.5rem);
    max-width: none;
    margin-right: -1.5rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 1.5rem 1.5rem 1.25rem 0;
    scroll-padding-inline: 0 1.5rem;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .devices::-webkit-scrollbar { display: none; }

  .phone {
    flex: 0 0 min(17rem, calc(100vw - 4.5rem));
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .phone--center { --phone-lift: 0; --phone-scale: 1; }
}

.slider-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.35rem auto 0;
}

.slider-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 92, 85, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.slider-dot.is-active {
  width: 1.45rem;
  background: var(--forest);
}

@media (max-width: 840px) {
  .devices + .slider-dots { display: flex; }
}

.phone {
  --phone-w: 100%;
  --phone-lift: 0;
  --phone-scale: 1;
  width: var(--phone-w);
  margin: 0 auto;
  animation: float-in 1s ease both;
}

.phone:nth-child(2) {
  animation-delay: 0.12s;
}

.phone:nth-child(3) {
  animation-delay: 0.22s;
}

.phone--center {
  --phone-lift: -1.25rem;
  --phone-scale: 1.06;
  z-index: 2;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(calc(var(--phone-lift) + 24px)) scale(var(--phone-scale));
  }
  to {
    opacity: 1;
    transform: translateY(var(--phone-lift)) scale(var(--phone-scale));
  }
}

.phone__bezel {
  position: relative;
  background: linear-gradient(160deg, #2a3f3c 0%, #1a2826 100%);
  border-radius: 2.1rem;
  padding: 0.55rem;
  box-shadow:
    0 28px 50px var(--shadow),
    0 2px 0 rgba(255, 255, 255, 0.08) inset;
}

.phone__notch {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 0.7rem;
  background: #111;
  border-radius: 999px;
  z-index: 2;
}

.phone__screen {
  border-radius: 1.65rem;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: var(--moss);
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone__caption {
  text-align: center;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--forest);
}

.note {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ——— How it works ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  list-style: none;
  margin: 2.75rem auto 1rem;
  padding: 0;
}

@media (max-width: 720px) {
  .steps {
    display: flex;
    gap: 1rem;
    width: calc(100% + 1.5rem);
    max-width: none;
    margin-right: -1.5rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 1.5rem 1.25rem 0;
    scroll-padding-inline: 0 1.5rem;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .steps::-webkit-scrollbar {
    display: none;
  }

  .steps + .slider-dots { display: flex; }

  .step {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

.step {
  position: relative;
  padding: 0.7rem 0.7rem 1.35rem;
  border: 1px solid rgba(61, 107, 79, 0.2);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow:
    0 1.25rem 2.5rem rgba(10, 92, 85, 0.13),
    0 0.2rem 0.5rem rgba(10, 92, 85, 0.08);
  transform: rotate(-1.5deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  filter: none;
  backdrop-filter: none;
}

.step:nth-child(2) {
  transform: translateY(1.1rem) rotate(1deg);
}

.step:nth-child(3) {
  transform: rotate(-0.6deg);
}

.step:hover {
  transform: translateY(-0.35rem) rotate(0);
  box-shadow:
    0 1.75rem 3rem rgba(10, 92, 85, 0.17),
    0 0.25rem 0.65rem rgba(10, 92, 85, 0.1);
  filter: none;
}

.step__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 0.72rem;
  background: var(--meadow);
}

.step__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(3, 67, 68, 0.13);
  border-radius: inherit;
  pointer-events: none;
}

.step__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.step:nth-child(1) .step__photo img {
  object-position: center 52%;
}

.step:nth-child(2) .step__photo img {
  object-position: center 35%;
}

.step:nth-child(3) .step__photo img {
  object-position: center 48%;
}

.step__details {
  padding: 1.1rem 0.65rem 0;
}

.step__num {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 185, 28, 0.55);
  background: rgba(255, 253, 248, 0.94);
  color: var(--forest);
  box-shadow: 0 0.25rem 0.75rem rgba(3, 67, 68, 0.16);
  font-family: var(--font-title);
  font-weight: 650;
  font-size: 1.1rem;
  backdrop-filter: none;
}

.step h3 {
  font-size: 1.45rem;
  margin: 0 0 0.45rem;
}

.step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .step,
  .step:nth-child(2),
  .step:nth-child(3),
  .step:hover {
    transform: none;
  }

  .step:nth-child(2) {
    transform: none;
  }
}

/* ——— CTA band ——— */
.cta-band {
  position: relative;
  padding: 4rem 1.5rem;
  background:
    linear-gradient(135deg, var(--forest) 0%, var(--deep-forest) 100%);
  color: var(--paper);
  text-align: center;
}

.mascot-slot--cta {
  float: none;
  width: 6.5rem;
  margin: -1rem auto 1.25rem;
  border-color: transparent;
  background: transparent;
  color: rgba(255, 253, 248, 0.58);
}

@media (max-width: 640px) {
  .mascot-slot {
    width: 5.5rem;
    margin-left: 1rem;
  }

  .hero__wordmark {
    width: min(82vw, 27rem);
  }

  .hero {
    min-height: max(100svh, 46rem);
  }

  .hero__content {
    padding-bottom: 7rem;
  }

  .hero__snap-strip {
    gap: 0.28rem;
    transform: translate(-50%, 50%);
    animation: none;
    padding-inline: 0;
  }

  .hero-snap {
    width: 5.65rem;
    padding: 0.2rem 0.2rem 0.55rem;
  }
}

.cta-band h2 {
  color: var(--paper);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.65rem;
}

.cta-band p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  color: rgba(255, 253, 248, 0.88);
}

.cta-band .cta-row {
  justify-content: center;
}

.cta-band .store-badge,
.hero .store-badge {
  border: 1px solid rgba(255, 253, 248, 0.16);
}

.cta-band .btn--ghost {
  min-height: 3.15rem;
}

/* ——— Collect & trade (onboarding rarity beat) ——— */
.section--collect {
  background:
    radial-gradient(ellipse 70% 50% at 90% 0%, var(--meadow) 0%, transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--meadow-soft) 100%);
  border-top: 1px solid var(--stitch);
}

.section--collect .section__lead {
  max-width: 38rem;
}

.rarity-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.15rem;
  margin: 0 0 1.75rem;
  padding: 0.95rem 1.1rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--forest) 12%, transparent);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  box-shadow: 0 10px 28px rgba(10, 92, 85, 0.08);
}

.rarity-legend__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-width: 4.5rem;
}

.rarity-legend__name {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.rarity-legend__cell[data-rarity="common"] { --star-on: var(--sage-deep); color: var(--sage-deep); }
.rarity-legend__cell[data-rarity="uncommon"],
.trade-snap[data-rarity="uncommon"] { --star-on: var(--coral); color: var(--coral); }
.rarity-legend__cell[data-rarity="rare"],
.trade-snap[data-rarity="rare"] { --star-on: #3478b8; color: #3478b8; }
.rarity-legend__cell[data-rarity="epic"],
.trade-snap[data-rarity="epic"] { --star-on: #8b5fbf; color: #8b5fbf; }
.rarity-legend__cell[data-rarity="common"] .rarity-stars,
.trade-snap[data-rarity="common"] { --star-on: var(--sage-deep); }

.rarity-stars {
  --star-on: var(--sage-deep);
  display: inline-flex;
  gap: 0.1rem;
  align-items: center;
}

.rarity-stars span {
  width: 0.72rem;
  height: 0.72rem;
  background: color-mix(in srgb, var(--muted) 35%, transparent);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.rarity-stars span.is-on {
  background: var(--star-on);
}

.trade-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.trade-card {
  padding: 1.1rem 1.2rem 1.35rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--forest) 12%, transparent);
  background: color-mix(in srgb, var(--meadow) 55%, var(--paper));
}

.trade-card__label {
  margin: 0 0 0.85rem;
  text-align: center;
  font-weight: 800;
  color: var(--forest);
  letter-spacing: 0.02em;
}

.trade-card__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 13.5rem;
}

.trade-snap {
  --star-on: var(--sage-deep);
  position: relative;
  width: min(13.25rem, 38%);
  aspect-ratio: 3 / 4;
  padding: 0.34rem 0.34rem 0.88rem;
  border: 1px solid rgba(3, 67, 68, 0.2);
  border-radius: 0.62rem;
  background: var(--paper);
  box-shadow: 0 0.5rem 1rem rgba(3, 36, 35, 0.16);
}

.trade-snap__media {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.22rem;
  background: linear-gradient(145deg, var(--sky-soft), var(--meadow));
}

.trade-snap__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trade-snap .rarity-stars {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0.22rem;
  transform: translateX(-50%);
  padding: 0.12rem 0.28rem;
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.trade-snap .rarity-stars span {
  width: 0.92rem;
  height: 0.92rem;
}

.trade-stack {
  position: relative;
  width: min(16rem, 46%);
  aspect-ratio: 1.24 / 1;
  height: auto;
  flex: 0 0 auto;
}

.trade-stack .trade-snap {
  position: absolute;
  top: 8%;
  width: 56%;
}

.trade-stack .trade-snap:nth-child(1) {
  left: 0;
  transform: rotate(-9deg);
}

.trade-stack .trade-snap:nth-child(2) {
  left: 22%;
  top: 3%;
  z-index: 1;
}

.trade-stack .trade-snap:nth-child(3) {
  left: 44%;
  transform: rotate(8deg);
  z-index: 2;
}

.trade-swap {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 4px 10px rgba(10, 92, 85, 0.18);
}

@media (max-width: 720px) {
  .trade-examples {
    grid-template-columns: 1fr;
  }

  .rarity-legend {
    gap: 0.65rem 0.7rem;
  }

  .trade-card__row {
    min-height: 14.5rem;
  }

  .trade-snap {
    width: min(13.25rem, 34%);
  }

  .trade-stack {
    width: min(16rem, 42%);
  }
}

@media (max-width: 480px) {
  .trade-card__row {
    gap: 0.45rem;
    min-height: 11.5rem;
  }

  .trade-snap {
    width: min(10.5rem, 36%);
  }

  .trade-stack {
    width: min(12.5rem, 44%);
  }

  .trade-swap {
    width: 2.25rem;
    height: 2.25rem;
  }

  .trade-snap .rarity-stars span {
    width: 0.78rem;
    height: 0.78rem;
  }
}

/* ——— Discord community ——— */
.discord-band {
  position: relative;
  overflow: hidden;
  padding: 5.25rem 1.5rem 5.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(88, 101, 242, 0.28), transparent 52%),
    linear-gradient(180deg, var(--meadow-soft) 0%, var(--cream) 72%);
  border-top: 1px solid var(--stitch);
}

.discord-band__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
}

.discord-band__mark {
  display: grid;
  place-items: center;
  width: 6.25rem;
  height: 6.25rem;
  margin: 0 auto 1.4rem;
  border-radius: 1.65rem;
  background: #5865f2;
  box-shadow: 0 1.1rem 2.6rem rgba(88, 101, 242, 0.38);
}

.discord-band__mark img {
  width: 3.35rem;
  height: 3.35rem;
}

.discord-band h2 {
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  margin: 0 0 0.75rem;
}

.discord-band p {
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.btn--discord {
  min-height: 3.85rem;
  padding: 1.05rem 2.4rem;
  font-size: 1.2rem;
  background: #5865f2;
  color: #fff;
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.4);
}

.btn--discord:hover {
  background: #4752c4;
  color: #fff;
}

.btn--discord img {
  width: 1.55rem;
  height: 1.55rem;
}

.page-body .store-badges {
  margin: 0.35rem 0 1.5rem;
}

/* ——— Legal / support pages ——— */
.page-hero {
  padding: 6.5rem 1.5rem 2.5rem;
  background:
    linear-gradient(180deg, var(--meadow-soft) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--stitch);
}

.page-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
}

.page-body {
  padding: 2.5rem 1.5rem 4rem;
}

.page-body__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-body h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.65rem;
}

.page-body ul {
  padding-left: 1.2rem;
  color: var(--ink);
}

.page-body li {
  margin-bottom: 0.4rem;
}

.faq details {
  border-top: 1px solid var(--stitch);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--stitch);
}

.faq summary {
  font-weight: 700;
  color: var(--deep-forest);
  cursor: pointer;
}

.faq details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.support-box {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.35rem;
  background: var(--meadow-soft);
  border: 1px solid var(--stitch);
  border-radius: var(--radius);
}

.support-box strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--deep-forest);
}

.support-badge {
  display: flex;
  justify-content: center;
  margin: 3rem 0 0;
}

.support-badge img {
  display: block;
  width: min(100%, 100px);
  height: auto;
}

.partner-banner {
  position: relative;
  min-height: 18rem;
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  border: 1px solid var(--stitch);
  border-radius: var(--radius);
  background: var(--deep-forest);
}

.partner-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 67, 68, 0.88) 0%, rgba(3, 67, 68, 0.6) 46%, transparent 76%);
}

.partner-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-banner__content {
  position: relative;
  z-index: 1;
  width: min(70%, 28rem);
  padding: 2rem;
  color: var(--paper);
}

.partner-banner__content strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 1.35rem;
}

.partner-banner__content p {
  margin: 0 0 1.15rem;
  color: rgba(255, 253, 248, 0.9);
}

@media (max-width: 560px) {
  .partner-banner {
    min-height: 24rem;
  }

  .partner-banner::after {
    background: linear-gradient(180deg, rgba(3, 67, 68, 0.82) 0%, rgba(3, 67, 68, 0.58) 72%, transparent 100%);
  }

  .partner-banner > img {
    object-position: 68% center;
  }

  .partner-banner__content {
    width: 100%;
    padding: 1.5rem;
  }
}

/* ——— Partner trail story ——— */
.partner-trail {
  position: relative;
  display: grid;
  gap: clamp(4rem, 8vw, 7rem);
  margin: clamp(3rem, 7vw, 5.5rem) 0;
  isolation: isolate;
}

.partner-trail__route {
  position: absolute;
  z-index: -1;
  inset: 3rem 3% 2rem;
  width: 94%;
  height: calc(100% - 5rem);
  overflow: visible;
  pointer-events: none;
}

.partner-trail__route path {
  fill: none;
  stroke: color-mix(in srgb, var(--coral) 76%, var(--deep-forest));
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 1 22;
  filter: drop-shadow(0 1px 1px rgba(88, 52, 20, 0.16));
}

.partner-stop {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(14rem, 0.85fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  min-height: 18rem;
}

.partner-stop--reverse .partner-stop__copy {
  grid-column: 2;
}

.partner-stop--reverse .partner-polaroid {
  grid-column: 1;
  grid-row: 1;
}

.partner-stop__copy {
  position: relative;
  z-index: 2;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 1rem;
  background: var(--paper);
}

@media (min-width: 701px) {
  .partner-stop__copy {
    width: calc(100% + 20px);
  }

  .partner-stop--reverse .partner-stop__copy {
    transform: translateX(-20px);
  }
}

.partner-stop__copy h2 {
  margin: 0 0 0.85rem;
  color: var(--forest);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.partner-stop__copy p {
  color: var(--muted);
}

.partner-stop__copy p:last-child,
.partner-stop__copy ul:last-child {
  margin-bottom: 0;
}

.partner-stop__copy ul {
  padding-left: 1.25rem;
  color: var(--muted);
}

.partner-stop__copy li::marker {
  color: var(--coral);
}

.partner-polaroid {
  position: relative;
  z-index: 1;
  width: min(100%, 19rem);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  padding: 0.7rem 0.7rem 2rem;
  border: 1px solid rgba(61, 107, 79, 0.2);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow:
    0 1.5rem 2.8rem rgba(10, 92, 85, 0.16),
    0 0.2rem 0.5rem rgba(10, 92, 85, 0.1);
}

.partner-polaroid--right {
  transform: rotate(5deg);
}

.partner-polaroid--left {
  transform: rotate(-5deg);
}

.partner-polaroid img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.7rem;
  object-fit: cover;
  object-position: center 68%;
}

@media (max-width: 700px) {
  .partner-trail {
    gap: 3.75rem;
    margin-block: 3rem;
  }

  .partner-trail::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 2rem;
    bottom: 2rem;
    left: 50%;
    width: 8px;
    transform: translateX(-50%);
    background: radial-gradient(circle, color-mix(in srgb, var(--coral) 76%, var(--deep-forest)) 0 3px, transparent 3.5px) center top / 8px 22px repeat-y;
  }

  .partner-trail__route {
    display: none;
  }

  .partner-stop,
  .partner-stop--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    min-height: 0;
  }

  .partner-stop .partner-stop__copy,
  .partner-stop--reverse .partner-stop__copy {
    grid-column: 1;
    grid-row: 1;
    padding: 1.15rem;
  }

  .partner-stop .partner-polaroid,
  .partner-stop--reverse .partner-polaroid {
    grid-column: 1;
    grid-row: 2;
    width: min(82vw, 18rem);
  }

  .partner-polaroid--right,
  .partner-polaroid--left {
    transform: rotate(0);
  }
}

/* ——— Forget me form ——— */
.forget-me-form {
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.forget-me-field {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--deep-forest);
}

.forget-me-field em {
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9em;
}

.forget-me-field input,
.forget-me-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--stitch);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.forget-me-field input:focus,
.forget-me-field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--leaf) 55%, transparent);
  outline-offset: 1px;
  border-color: var(--leaf);
}

.forget-me-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.forget-me-check input {
  margin-top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--forest);
}

.forget-me-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.forget-me-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-weight: 700;
}

.forget-me-status--ok {
  background: color-mix(in srgb, var(--leaf) 18%, var(--paper));
  color: var(--deep-forest);
}

.forget-me-status--error {
  background: color-mix(in srgb, var(--coral, #e8894a) 18%, var(--paper));
  color: var(--ink);
}

.cf-turnstile {
  margin: 0.25rem 0;
}

/* --- Countries page --- */
.countries-hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
}

.countries-hero__media,
.countries-hero__media img,
.countries-hero__veil {
  position: absolute;
  inset: 0;
}

.countries-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.countries-hero__veil {
  background:
    linear-gradient(180deg, rgba(3, 67, 68, 0.16) 0%, rgba(3, 67, 68, 0.56) 58%, rgba(3, 67, 68, 0.88) 100%),
    linear-gradient(90deg, rgba(3, 67, 68, 0.48) 0%, rgba(3, 67, 68, 0.12) 64%);
}

.countries-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
  align-items: end;
  gap: 2rem;
}

.countries-hero__copy {
  max-width: 42rem;
}

.countries-hero__wordmark {
  width: min(16rem, 70vw);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0.25rem 0.7rem rgba(3, 38, 39, 0.38));
}

.countries-hero h1 {
  margin: 0;
  font-size: clamp(4.5rem, 13vw, 9.5rem);
  color: var(--paper);
  letter-spacing: 0;
  text-shadow: 0 0.35rem 1.6rem rgba(3, 38, 39, 0.3);
}

.countries-hero__tagline {
  margin: 0.2rem 0 0;
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  font-weight: 650;
  line-height: 1.08;
}

.countries-hero__support {
  max-width: 38rem;
  margin: 1rem 0 1.35rem;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(1.03rem, 2vw, 1.22rem);
  font-weight: 650;
}

.countries-hero__sprout {
  justify-self: end;
  width: min(18rem, 32vw);
  padding: 0.8rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(255, 185, 28, 0.28), rgba(251, 247, 239, 0.1) 58%, transparent 70%);
}

.countries-hero__sprout img {
  width: 100%;
  filter: drop-shadow(0 1rem 1.6rem rgba(3, 38, 39, 0.34));
}

.countries-live {
  margin-top: -1px;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.country-card {
  position: relative;
  overflow: hidden;
  min-height: 13rem;
  padding: 1.1rem;
  border: 1.5px solid rgba(10, 92, 85, 0.14);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1rem 2.2rem rgba(10, 92, 85, 0.09);
}

.country-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/images/meadow.png") center / cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.country-card > * {
  position: relative;
  z-index: 1;
}

.country-card__eyebrow,
.countries-vote__kicker {
  margin: 0 0 0.55rem;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.country-card h3 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: 0;
}

.country-card p {
  position: relative;
}

.country-card__count {
  margin: 1.3rem 0 0.1rem;
  color: var(--forest);
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 650;
  line-height: 1;
  font-variant: small-caps;
  letter-spacing: 0.03em;
}

.country-card__meta {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.country-card__flag {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  width: 2.88rem;
  height: 2.16rem;
  border-radius: 0.3rem;
  box-shadow: 0 0.4rem 0.9rem rgba(3, 38, 39, 0.16);
}

.country-card--loading {
  grid-column: 1 / -1;
}

.countries-vote {
  padding: 5rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(251, 247, 239, 0.95), rgba(255, 253, 248, 0.98)),
    var(--cream);
}

.countries-vote__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.countries-vote h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: 0;
}

.countries-vote p {
  max-width: 32rem;
  color: var(--muted);
  font-weight: 650;
}

.country-vote-form {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem;
  border: 1.5px solid rgba(10, 92, 85, 0.16);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1rem 2.4rem rgba(10, 92, 85, 0.1);
}

.country-vote-form label {
  color: var(--deep-forest);
  font-weight: 800;
}

.country-vote-form__hint {
  margin: -0.2rem 0 0.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.country-vote-form select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.72rem 0.85rem;
  border: 1.5px solid var(--stitch);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.country-vote-form select:focus {
  outline: 2px solid color-mix(in srgb, var(--leaf) 55%, transparent);
  outline-offset: 1px;
  border-color: var(--leaf);
}

.country-vote-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.country-vote-form__status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.country-vote-form__status.is-ok {
  color: var(--forest);
}

.country-vote-form__status.is-error {
  color: color-mix(in srgb, var(--coral) 84%, var(--ink));
}

@media (max-width: 760px) {
  .countries-hero {
    min-height: 88svh;
  }

  .countries-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 6.4rem 1rem 3.4rem;
  }

  .countries-hero__sprout {
    width: min(12rem, 45vw);
    justify-self: start;
    margin-top: -1.5rem;
  }

  .countries-vote {
    padding: 3.5rem 1rem;
  }

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

/* ——— Footer ——— */
.site-footer {
  padding: 2.5rem 1.5rem 2rem;
  background: var(--deep-forest);
  color: rgba(255, 253, 248, 0.78);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.site-footer .brand {
  color: var(--paper);
}

.site-footer .brand__wordmark {
  width: 80px;
  height: auto;
  filter: none;
}

.site-footer p {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  max-width: 28rem;
}

.site-footer .site-footer__studio-link {
  color: var(--leaf);
  font-weight: 800;
}

.site-footer .site-footer__studio-link:hover {
  color: var(--sun);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: rgba(255, 253, 248, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--meadow);
}

.site-footer__meta {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 253, 248, 0.12);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

.site-footer__meta a {
  color: rgba(255, 253, 248, 0.7);
}

/* Header on legal pages needs solid contrast */
.site-header--solid {
  position: relative;
  background: var(--deep-forest);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stitch);
}

.site-header--solid .brand {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: var(--deep-forest);
}

.site-header--solid .brand__wordmark {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
