/* ==========================================================================
   SNACK QUEST — style.css
   Discover Something New
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #062B59;
  --navy-dark: #041D3D;
  --navy-light: #0A3A75;
  --red: #ED1C24;
  --red-dark: #C8121A;
  --yellow: #FFC72C;
  --yellow-light: #FFD966;
  --white: #FFFFFF;
  --cream: #FFF9EE;
  --mist: #F3F6FB;
  --ink: #1C2B3A;
  --ink-soft: #4A5A6C;
  --line: #E3E9F2;

  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(6, 43, 89, 0.08);
  --shadow: 0 10px 30px rgba(6, 43, 89, 0.12);
  --shadow-lg: 0 24px 60px rgba(6, 43, 89, 0.18);
  --shadow-yellow: 0 10px 30px rgba(255, 199, 44, 0.35);
  --shadow-red: 0 12px 28px rgba(237, 28, 36, 0.32);

  --wrap: 1180px;
  --speed: 0.3s;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 800;
}

.container {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 300;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--speed) ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1;
  padding: 1rem 1.9rem;
  border-radius: var(--radius-pill);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease,
    background-color var(--speed) ease, color var(--speed) ease;
  will-change: transform;
  text-align: center;
}

.btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(237, 28, 36, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2.5px var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-secondary.on-dark {
  color: var(--white);
  box-shadow: inset 0 0 0 2.5px rgba(255, 255, 255, 0.85);
}

.btn-secondary.on-dark:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: var(--shadow-yellow);
}

.btn-yellow:hover {
  background: var(--yellow-light);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(255, 199, 44, 0.5);
}

.btn-lg {
  font-size: 1.2rem;
  padding: 1.15rem 2.4rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--speed) ease, border-color var(--speed) ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand img {
  width: 92px;
  height: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.brand-name span {
  color: var(--red);
}

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

.nav-links a:not(.btn) {
  font-weight: 700;
  color: var(--navy);
  position: relative;
  padding: 0.35rem 0;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) ease;
}

.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-links .btn {
  padding: 0.7rem 1.4rem;
  font-size: 0.98rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--navy);
  transition: transform var(--speed) ease, opacity var(--speed) ease;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(255, 199, 44, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(237, 28, 36, 0.14), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
  padding: 4.5rem 0 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--yellow);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem;
  box-shadow: var(--shadow-yellow);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.3rem);
  color: var(--white);
  letter-spacing: 0.01em;
  margin: 1.2rem 0 0.4rem;
  text-wrap: balance;
}

.hero h1 .zap {
  color: var(--yellow);
}

.hero-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--yellow);
  margin-bottom: 1rem;
}

.hero-copy {
  font-size: 1.15rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.9rem;
}

.hero-copy strong {
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  padding: 1.3rem 0 3.2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-stat b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--yellow);
}

.hero-stat small {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: auto 8% -40% 8%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(255, 199, 44, 0.35), transparent 72%);
  border-radius: 50%;
  filter: blur(6px);
}

.hero-art img {
  position: relative;
  width: min(420px, 82%);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
  animation: float 5.5s ease-in-out infinite;
}

.hero-chip {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.hero-chip.chip-xp {
  top: 12%;
  left: 2%;
  background: var(--yellow);
  animation-delay: 0.8s;
}

.hero-chip.chip-quest {
  top: 34%;
  right: 0;
  animation-delay: 1.6s;
}

.hero-chip.chip-snacks {
  bottom: 18%;
  left: 0;
  background: var(--red);
  color: var(--white);
  animation-delay: 2.4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-wave {
  display: block;
  width: 100%;
  height: 70px;
  margin-top: -1px;
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

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

.section-head {
  max-width: 46rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(237, 28, 36, 0.09);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 0.7rem;
  text-wrap: balance;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ---------- Product cards ---------- */
.boxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.box-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}

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

.box-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--mist);
}

.box-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.box-card:hover .box-card-media img {
  transform: scale(1.05);
}

.box-flag {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.box-flag.flag-hot {
  background: var(--red);
}

.box-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.8rem 1.8rem 2rem;
  flex: 1;
}

.box-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.box-card-title h3 {
  font-size: 1.65rem;
}

.box-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--red);
  line-height: 1;
}

.box-price small {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.box-desc {
  color: var(--ink-soft);
}

.box-perks {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.box-perks li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 600;
  color: var(--ink);
}

.box-perks .tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.box-card .btn {
  margin-top: auto;
}

.box-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 1.6rem;
}

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease,
    border-color var(--speed) ease;
}

.step-card:hover {
  transform: translateY(-10px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--yellow);
}

.step-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--yellow);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.step-art {
  height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.step-art img {
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 12px 18px rgba(6, 43, 89, 0.22));
  transition: transform 0.45s ease;
}

.step-card:hover .step-art img {
  transform: scale(1.08) translateY(-6px);
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.step-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- What's inside ---------- */
.inside-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.inside-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.inside-art::before {
  content: "";
  position: absolute;
  inset: 12% 6% 0;
  background: linear-gradient(160deg, rgba(255, 199, 44, 0.35), rgba(237, 28, 36, 0.12));
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
}

.inside-art img {
  position: relative;
  width: min(380px, 88%);
  filter: drop-shadow(0 18px 30px rgba(6, 43, 89, 0.28));
}

.inside-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.inside-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}

.inside-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.inside-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--mist);
}

.inside-card b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  display: block;
}

.inside-card small {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.disclaimer {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: rgba(255, 199, 44, 0.14);
  border: 1.5px dashed var(--yellow);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.disclaimer .mark {
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* ---------- Newsletter / Guild ---------- */
.guild {
  position: relative;
  background:
    radial-gradient(800px 400px at 110% -20%, rgba(255, 199, 44, 0.2), transparent 60%),
    radial-gradient(700px 400px at -10% 120%, rgba(237, 28, 36, 0.18), transparent 55%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 3.2rem clamp(1.4rem, 5vw, 4rem);
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}

.guild::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  pointer-events: none;
}

.guild-logo {
  position: relative;
  width: clamp(180px, 24vw, 280px);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.4));
  animation: float 6s ease-in-out infinite;
}

.guild-content {
  position: relative;
}

.guild h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 0.6rem;
}

.guild h2 span {
  color: var(--yellow);
}

.guild p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  margin-bottom: 1.6rem;
}

.mc-field-group {
  display: flex;
  gap: 0.8rem;
  max-width: 34rem;
}

.mc-field-group input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-weight: 600;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  outline: none;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}

.mc-field-group input[type="email"]:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 199, 44, 0.3);
}

.guild-fineprint {
  display: block;
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 46rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--speed) ease, border-color var(--speed) ease;
}

.faq-item.is-open {
  border-color: var(--yellow);
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  padding: 1.15rem 1.4rem;
}

.faq-q .faq-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  transition: transform var(--speed) ease, background-color var(--speed) ease,
    color var(--speed) ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--yellow);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a-inner {
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-soft);
}

.faq-more {
  text-align: center;
  margin-top: 2.4rem;
}

.faq-more p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.8rem 0 2rem;
  text-align: center;
}

.footer-logo {
  width: 210px;
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.8rem;
  margin-bottom: 2.2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  padding: 0.3rem 0;
  transition: color var(--speed) ease;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-news {
  max-width: 30rem;
  margin: 0 auto 2.4rem;
}

.footer-news p {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.9rem;
}

.footer-news .mc-field-group input[type="email"] {
  padding: 0.85rem 1.2rem;
}

.footer-news .btn {
  padding: 0.85rem 1.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.footer-bottom a:hover {
  color: var(--yellow);
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -30%, rgba(255, 199, 44, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0 4.6rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}

.page-hero h1 {
  position: relative;
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.12rem;
  max-width: 38rem;
  margin: 0 auto;
}

/* ---------- Contact page ---------- */
.contact-layout {
  position: relative;
}

.contact-main {
  max-width: 640px;
}

.contact-cards {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 2.6rem;
}

.contact-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.contact-card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 0.35rem;
}

.contact-card a.mail {
  font-weight: 800;
  color: var(--red);
  word-break: break-all;
}

.contact-card a.mail:hover {
  text-decoration: underline;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease,
    border-color var(--speed) ease;
}

a.social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--yellow);
}

.social-card.soon {
  opacity: 0.68;
}

.social-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--navy);
}

.social-card b {
  font-family: var(--font-display);
  color: var(--navy);
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.social-card small {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.85rem;
}

.soon-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--navy);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
}

/* Floating Queen Gaia — RIGHT side only */
.contact-gaia {
  position: absolute;
  right: -2%;
  top: 46%;
  transform: translateY(-50%);
  width: min(400px, 30vw);
  pointer-events: none;
  z-index: 1;
}

.contact-gaia img {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(6, 43, 89, 0.3));
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 46rem;
  margin-inline: auto;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.45rem;
  margin: 2.2rem 0 0.7rem;
}

.legal h3 {
  font-size: 1.12rem;
  margin: 1.5rem 0 0.4rem;
}

.legal p {
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
}

.legal ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.legal ul li {
  margin-bottom: 0.35rem;
}

.legal a {
  color: var(--red);
  font-weight: 700;
}

.legal a:hover {
  text-decoration: underline;
}

.legal .callout {
  background: var(--mist);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: 5rem 0 6rem;
}

.notfound-art {
  width: min(320px, 70%);
  margin: 0 auto 1.6rem;
  animation: float 5.5s ease-in-out infinite;
  filter: drop-shadow(0 20px 32px rgba(6, 43, 89, 0.25));
}

.notfound-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.notfound h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 0.7rem;
}

.notfound p {
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.notfound-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .contact-gaia {
    width: 30vw;
    right: -4%;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3.2rem;
  }

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

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

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

  .hero-stats {
    padding-bottom: 1rem;
  }

  .hero-art {
    order: -1;
    margin-top: 1rem;
  }

  .hero-art img {
    width: min(320px, 70%);
  }

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

  .inside-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .inside-art {
    max-width: 340px;
    margin-inline: auto;
  }

  .guild {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.6rem;
  }

  .guild-logo {
    margin-inline: auto;
  }

  .mc-field-group {
    margin-inline: auto;
  }

  .contact-main {
    max-width: none;
  }

  .contact-gaia {
    position: static;
    transform: none;
    width: min(300px, 62%);
    margin: 2.5rem 0 0 auto; /* keeps Gaia hugging the RIGHT side on mobile too */
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem 1.4rem 1.4rem;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a:not(.btn) {
    padding: 0.8rem 0.4rem;
    border-radius: var(--radius-sm);
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-links a:not(.btn):hover {
    background: var(--mist);
  }

  .nav-links .btn {
    margin-top: 0.6rem;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 3.6rem 0;
  }

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

  .step-art {
    height: 170px;
  }

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

  .mc-field-group {
    flex-direction: column;
  }

  .mc-field-group .btn {
    width: 100%;
  }

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

  .brand img {
    width: 74px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .hero-chip {
    display: none;
  }
}

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

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

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


/* Snack Quest final brand overrides */
.brand img {
  width: clamp(132px, 14vw, 190px);
  max-height: 72px;
  object-fit: contain;
}
.brand-name { display: none !important; }
.hero-eyebrow {
  padding: .25rem .7rem;
  background: rgba(255,255,255,.95);
}
.hero-wordmark {
  width: clamp(145px, 18vw, 210px);
  height: 58px;
  object-fit: contain;
}
.guild-logo {
  width: clamp(300px, 38vw, 480px);
  max-width: 46vw;
}
.guild-wordmark {
  display: inline-block;
  width: clamp(150px, 22vw, 250px);
  height: 78px;
  object-fit: contain;
  vertical-align: middle;
  margin: -18px .25rem -20px;
}
.footer-logo {
  width: clamp(250px, 32vw, 390px);
  max-height: 210px;
  object-fit: contain;
  margin-bottom: .7rem;
}
.brand-gradient {
  font-weight: 900;
  background: linear-gradient(90deg,#ed1c24 0 19%,#ff7a00 19% 39%,#ffc72c 39% 58%,#1d9a57 58% 77%,#0868c8 77% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 760px) {
  .brand img { width: 138px; max-height: 58px; }
  .guild-logo { width: min(88vw, 420px); max-width: 88vw; }
  .guild-wordmark { width: 190px; height: 64px; }
  .footer-logo { width: min(78vw, 330px); }
}


/* Mobile Guild alignment correction — final */
@media (max-width: 760px) {
  #newsletter .container {
    width: calc(100% - 1.5rem);
    max-width: 100%;
  }

  .guild {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    padding: 2.25rem 1.15rem 2.5rem;
    gap: 1.15rem;
    text-align: center;
    overflow: hidden;
  }

  .guild-logo {
    display: block;
    width: min(78vw, 330px);
    max-width: 100%;
    margin: 0 auto;
  }

  .guild-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
  }

  .guild h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    margin: 0 auto 0.9rem;
    padding: 0;
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.02;
    white-space: normal;
    text-align: center;
  }

  .guild-wordmark {
    display: block;
    flex: none;
    width: min(48vw, 175px);
    height: auto;
    max-height: 72px;
    margin: 0.08rem auto 0.02rem;
    object-fit: contain;
  }

  .guild p {
    width: 100%;
    max-width: 30rem;
    margin: 0 auto 1.5rem;
    padding: 0;
    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
  }

  .mc-field-group {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    flex-direction: column;
  }

  .mc-field-group input[type="email"],
  .mc-field-group .btn {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .guild-fineprint {
    display: block;
    width: 100%;
    max-width: 28rem;
    margin: 1rem auto 0;
    padding: 0;
    text-align: center;
  }
}

@media (max-width: 390px) {
  #newsletter .container {
    width: calc(100% - 1rem);
  }

  .guild {
    padding-inline: 0.9rem;
  }

  .guild h2 {
    font-size: 2rem;
  }

  .guild-wordmark {
    width: 160px;
  }
}

/* Explore the World — Gaia country art carousel */
.world-section{
  padding:clamp(64px,8vw,108px) 0;
  overflow:hidden;
  background:
    radial-gradient(circle at 10% 15%,rgba(255,199,44,.16),transparent 24%),
    radial-gradient(circle at 90% 20%,rgba(8,104,200,.10),transparent 22%),
    #fffdf8;
  border-top:1px solid rgba(6,43,89,.08);
  border-bottom:1px solid rgba(6,43,89,.08);
}
.world-heading{
  max-width:780px;
  margin:0 auto 38px;
  padding:0 20px;
  text-align:center;
}
.world-heading h2{
  margin:0 0 14px;
  color:#062b59;
  font-size:clamp(2.2rem,4.7vw,4.2rem);
  line-height:.98;
  letter-spacing:-.045em;
  text-transform:uppercase;
}
.world-heading p{
  margin:0;
  color:#52647a;
  font-size:1.08rem;
  line-height:1.65;
  font-weight:700;
}
.country-marquee{
  width:100%;
  overflow:hidden;
  padding:14px 0 28px;
}
.country-track{
  display:flex;
  width:max-content;
  animation:country-art-scroll 72s linear infinite;
  will-change:transform;
}
.country-marquee:hover .country-track{
  animation-play-state:paused;
}
.country-set{
  display:flex;
  gap:22px;
  padding-right:22px;
}
.country-art-card{
  position:relative;
  width:280px;
  flex:0 0 280px;
  aspect-ratio:2/3;
  overflow:hidden;
  border-radius:28px;
  background:#062b59;
  border:1px solid rgba(6,43,89,.12);
  box-shadow:0 18px 40px rgba(6,43,89,.16);
  transition:transform .25s ease, box-shadow .25s ease;
}
.country-art-card:hover{
  transform:translateY(-8px) scale(1.015);
  box-shadow:0 26px 54px rgba(6,43,89,.22);
}
.country-art-card img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
}
.country-art-card::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:28%;
  background:linear-gradient(180deg,transparent,rgba(2,20,43,.88));
  pointer-events:none;
}
.country-art-label{
  position:absolute;
  left:18px;
  right:18px;
  bottom:16px;
  z-index:2;
  color:#fff;
  font-weight:950;
  font-size:1.2rem;
  letter-spacing:.02em;
  text-shadow:0 2px 10px rgba(0,0,0,.4);
}
.country-art-label span{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(6,43,89,.78);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
@keyframes country-art-scroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
@media(max-width:760px){
  .world-section{padding:58px 0}
  .world-heading{margin-bottom:28px}
  .country-marquee{
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    padding-left:16px;
  }
  .country-marquee::-webkit-scrollbar{display:none}
  .country-track{
    animation:none;
    transform:none!important;
  }
  .country-set[aria-hidden="true"]{display:none}
  .country-set{
    gap:14px;
    padding-right:16px;
  }
  .country-art-card{
    width:235px;
    flex-basis:235px;
    border-radius:22px;
    scroll-snap-align:start;
  }
  .country-art-label{
    left:12px;
    right:12px;
    bottom:12px;
    font-size:1.05rem;
  }
}
@media(prefers-reduced-motion:reduce){
  .country-track{animation:none}
}


/* Final mobile country carousel correction */
@media (max-width: 760px) {
  .world-section {
    padding: 46px 0 52px !important;
  }

  .world-heading {
    margin-bottom: 20px !important;
    padding-inline: 18px !important;
  }

  .world-heading h2 {
    font-size: clamp(2rem, 10vw, 2.75rem) !important;
  }

  .country-marquee {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 350px !important;
    min-height: 350px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 16px 18px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
  }

  .country-marquee::-webkit-scrollbar {
    display: none !important;
  }

  .country-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    height: 320px !important;
    animation: none !important;
    transform: none !important;
  }

  .country-set {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    width: max-content !important;
    height: 320px !important;
    padding: 0 14px 0 0 !important;
  }

  .country-set[aria-hidden="true"] {
    display: none !important;
  }

  .country-art-card {
    display: block !important;
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
    height: 315px !important;
    min-height: 315px !important;
    max-height: 315px !important;
    flex: 0 0 210px !important;
    aspect-ratio: auto !important;
    scroll-snap-align: center !important;
    border-radius: 20px !important;
  }

  .country-art-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .country-art-label {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    font-size: .95rem !important;
  }

  .country-art-label span {
    min-height: 36px !important;
    padding: 8px 12px !important;
  }

  .world-section::after {
    content: "Swipe to explore →";
    display: block;
    margin-top: 2px;
    text-align: center;
    color: #52647a;
    font-size: .82rem;
    font-weight: 800;
  }
}

@media (max-width: 390px) {
  .country-marquee {
    height: 326px !important;
    min-height: 326px !important;
  }

  .country-track,
  .country-set {
    height: 296px !important;
  }

  .country-art-card {
    width: 196px !important;
    min-width: 196px !important;
    max-width: 196px !important;
    height: 290px !important;
    min-height: 290px !important;
    max-height: 290px !important;
    flex-basis: 196px !important;
  }
}
