/* ==========================================================================
   Santa HopHop — marketing site styles
   Palette mirrors the game (launch #0A1426, splash #0E162B).
   No build step: plain CSS, system font stack, fluid type.
   ========================================================================== */

:root {
  --bg: #070e1c;
  --bg-alt: #0a1426;
  --panel: #101c33;
  --panel-2: #152442;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #f2f6ff;
  --muted: #a7b7d4;
  --gold: #f5c451;
  --gold-deep: #d99e2b;
  --red: #e4574f;
  --ice: #8cd2ff;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
}

/* ---------- reset ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--gold);
  text-underline-offset: 3px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

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

/* ---------- utilities ---------- */

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

.wrap--narrow {
  max-width: 760px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: #1a1005;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 14, 28, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1005;
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, transform 0.15s;
}

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

.btn svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
}

.btn--small {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

.btn--small svg {
  width: 1rem;
  height: 1rem;
}

.btn--play {
  padding: 0.8rem 1.7rem 0.8rem 1.35rem;
}

.btn--play > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn--play small {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.btn--play strong {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(46rem 30rem at 78% 8%, rgba(140, 210, 255, 0.14), transparent 60%),
    radial-gradient(38rem 26rem at 8% 22%, rgba(228, 87, 79, 0.12), transparent 62%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 44%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 12%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 36%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 22%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 70%, rgba(255, 255, 255, 0.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 21% 78%, rgba(255, 255, 255, 0.3) 50%, transparent 51%);
  background-size: 100% 100%;
  opacity: 0.9;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.28rem 0.8rem;
  border: 1px solid rgba(245, 196, 81, 0.45);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.9rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  margin-top: 2.3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.facts strong {
  margin-right: 0.25rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------- carousel ---------- */

.carousel {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.carousel__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px);
  background: #050a14;
  touch-action: pan-y;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.6s ease;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

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

.carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(7, 14, 28, 0.7);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.15s, border-color 0.15s;
}

.carousel__nav:hover {
  background: rgba(21, 36, 66, 0.95);
  border-color: rgba(245, 196, 81, 0.6);
}

.carousel__nav--prev {
  left: 0.8rem;
}

.carousel__nav--next {
  right: 0.8rem;
}

.carousel__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
}

/* 24px hit area, 8px visual dot drawn by ::before */
.dots {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.dots button {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.dots button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.2s, background-color 0.15s;
}

.dots button:hover::before {
  background: rgba(255, 255, 255, 0.5);
}

.dots button[aria-current="true"]::before {
  width: 1.35rem;
  background: var(--gold);
}

.carousel__toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.carousel__toggle:hover {
  color: var(--ink);
  border-color: var(--gold);
}

.carousel__toggle .i-play {
  display: none;
}

.carousel__toggle[aria-pressed="true"] .i-pause {
  display: none;
}

.carousel__toggle[aria-pressed="true"] .i-play {
  display: block;
}

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

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

/* keep anchored headings clear of the sticky header */
section[id] {
  scroll-margin-top: 84px;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section__lede {
  max-width: 44rem;
  margin-bottom: 2.8rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

/* ---------- shape cards ---------- */

.shape-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.shape-card {
  position: relative;
  overflow: hidden;
  padding: 1.9rem 1.7rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}

.shape-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent, var(--gold));
}

.shape-card--slim {
  --accent: var(--ice);
}

.shape-card--normal {
  --accent: var(--gold);
}

.shape-card--chubby {
  --accent: var(--red);
}

.shape-card__tag {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shape-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.shape-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
  margin: 1.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.shape-card__meta span {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* ---------- chapters ---------- */

.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.chapters li {
  position: relative;
  padding: 1.6rem 1.5rem 1.4rem 4.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.chapters span {
  position: absolute;
  left: 1.4rem;
  top: 1.35rem;
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.85;
}

.chapters h3 {
  margin-bottom: 0.35rem;
}

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

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}

.features li {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.features svg {
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.features h3 {
  font-size: 1.03rem;
}

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

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  cursor: zoom-in;
  transition: border-color 0.15s, transform 0.2s;
}

.gallery button:hover {
  border-color: rgba(245, 196, 81, 0.55);
  transform: translateY(-2px);
}

.gallery picture,
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- promises ---------- */

.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.promises li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.4rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(16, 28, 51, 0.7);
}

.promises strong {
  font-size: 1.05rem;
}

.promises span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- faq ---------- */

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

.faq summary {
  padding: 1.15rem 2rem 1.15rem 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}

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

.faq details p {
  max-width: 60ch;
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- final cta ---------- */

.cta-final {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
  background:
    radial-gradient(40rem 22rem at 50% 0%, rgba(245, 196, 81, 0.14), transparent 65%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}

.cta-final img {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 18px;
}

.cta-final h2 {
  margin-bottom: 1.6rem;
}

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

.site-footer {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.88rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
}

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

.site-footer nav {
  display: flex;
  gap: 1.4rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ---------- lightbox ---------- */

.lightbox {
  width: min(96vw, 1120px);
  max-width: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #050a14;
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgba(3, 6, 13, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox__inner {
  position: relative;
}

.lightbox img {
  width: 100%;
  height: auto;
}

.lightbox__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.6rem;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 14, 28, 0.75);
  color: var(--ink);
  cursor: pointer;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.lightbox__bar button {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.lightbox__bar button:hover {
  border-color: var(--gold);
}

/* ---------- inner pages ---------- */

.nav a[aria-current="page"] {
  color: var(--ink);
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(42rem 24rem at 82% 0%, rgba(140, 210, 255, 0.12), transparent 62%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

.page-hero .lede {
  max-width: 42rem;
  margin-bottom: 0;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}

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

.prose p,
.prose li {
  color: var(--muted);
}

/* bulleted lists inside prose; .facts keeps its own horizontal layout */
.prose ul:not(.facts) {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1.2em;
  padding-left: 1.2rem;
  list-style: disc;
}

.prose ul:not(.facts) li::marker {
  color: var(--gold);
}

.prose .facts {
  margin-top: 2.2rem;
  margin-bottom: 0;
}

.contact-card {
  max-width: 44rem;
  margin-bottom: 3rem;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card__mail {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card__mail:hover {
  color: var(--gold);
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* inset ring instead of a border, so both buttons keep the same box */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(245, 196, 81, 0.6);
  transform: none;
}

.copy-status {
  min-height: 1.3em;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .site-header__inner {
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .brand span {
    display: none;
  }

  .btn--small {
    padding: 0.5rem 0.9rem;
  }

  .facts {
    gap: 0.4rem 1.4rem;
  }
}

/* short landscape phones: keep the copy and the carousel side by side */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 640px) {
  .hero {
    padding-block: 1.25rem 2rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 1.5rem;
  }

  h1 {
    font-size: clamp(1.55rem, 4.4vw, 2.4rem);
  }

  .eyebrow {
    margin-bottom: 0.6rem;
  }

  .lede {
    font-size: 0.9rem;
  }

  .cta-row {
    margin-top: 1rem;
  }

  .facts {
    margin-top: 1rem;
    padding-top: 0.8rem;
  }
}

/* ---------- motion ---------- */

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

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