/* Suns game-night spin-to-win landing page (example).
   Palette from Suns.com (2025 style guide); see README Sources. */

:root {
  --orange: #fa4b0a;
  --orange-dark: #af3407;
  --purple: #3c286e;
  --cream: #eae0cc;
  --black: #000;
  --ink: #0b0b0c;
  --gray: #63717a;
  --gray-lt: #bfc0c2;
  --yellow: #ff9e1a;
  --panel: #141416;
  --line: rgb(255 255 255 / 0.14);
  --wrap: 1200px;
  --display: "Magno Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Page state: body[data-state] is "pre" (before the game), "live" (game window) or "closed"
   (after the game). data-only-state lists the states an element shows in, space-separated. */
body[data-state="pre"] [data-only-state]:not([data-only-state~="pre"]),
body[data-state="live"] [data-only-state]:not([data-only-state~="live"]),
body[data-state="closed"] [data-only-state]:not([data-only-state~="closed"]) { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--black);
  color: #fff;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 12px; }
h1, h2, h3 { margin: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #000; padding: 8px 14px; font-weight: 700; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Headlines: Magno Sans Bold caps, live text. Its cap height is 0.7 of the font size, so font-size
   1.4286em makes the caps the container's font size and line-height 0.7 makes the line box the cap height. */
.reel {
  display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 1.4286em; line-height: 0.7; letter-spacing: -0.01em; white-space: nowrap;
}
.reel.accent { color: var(--orange); }
/* A long lead-in line set at half size so it spans about the width of the main line below it. */
.hero-title .reel-sub { font-size: 0.7em; } /* 0.49 x 1.4286: the lead-in line's caps at 0.49 of the title size */

.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }

.tbd {
  background: rgb(250 75 10 / 0.16);
  outline: 1px dashed rgb(250 75 10 / 0.75);
  outline-offset: 1px;
  padding: 0 3px;
  border-radius: 2px;
  font-style: normal;
}

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  background: var(--orange); color: #000;
  font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease;
}
.pill:hover { background: #ff6a33; }
.pill-sm { min-height: 38px; padding: 0 18px; font-size: 12.5px; }

/* ---------- Header ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgb(0 0 0 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup-suns { height: 36px; width: 36px; }
.lockup-name { font-size: 26px; color: #fff; }
/* Logo image (Suns Vacations, presented by Bookit; or the plain wordmark to switch back). */
.lockup-logo { display: block; height: 48px; width: auto; }
.lockup-logo-foot { height: 60px; }
.bar-nav { display: flex; align-items: center; gap: 26px; }
.bar-nav a:not(.pill) {
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.05em;
  text-transform: uppercase; text-decoration: none; color: rgb(255 255 255 / 0.85);
}
.bar-nav a:not(.pill):hover { color: var(--orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--black);
  padding: 64px 0 80px;
}
.hero-photo { position: absolute; inset: 0; z-index: -3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* Full-bleed Suns suite photo: a dark left-to-right fade keeps the copy legible, the right side stays visible. */
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.88) 0%, rgb(0 0 0 / 0.72) 38%, rgb(0 0 0 / 0.25) 70%, rgb(0 0 0 / 0.35) 100%),
    linear-gradient(180deg, rgb(60 40 110 / 0.35) 0%, transparent 50%);
}
.hero-glow {
  position: absolute; z-index: -2; opacity: 0.7; left: -22%; bottom: -70%;
  width: 95%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(250 75 10 / 0.8) 0%, rgb(250 75 10 / 0.4) 36%, rgb(175 52 7 / 0.16) 64%, transparent 100%);
  filter: blur(8px);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.18; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }
.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 18px;
}
.hero-title { display: grid; gap: 0.16em; font-size: clamp(54px, 7.2vw, 96px); margin-bottom: 26px; }
.lede { font-size: 19px; line-height: 1.5; max-width: 34em; color: rgb(255 255 255 / 0.9); margin-bottom: 26px; }
.lede strong { color: #fff; }
.lede-tag { margin: -12px 0 24px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange); }
.facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; max-width: 34em; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: rgb(255 255 255 / 0.88); }
.facts .icon { color: var(--orange); margin-top: 1px; }
.npn { font-size: 13.5px; color: rgb(255 255 255 / 0.7); margin: 0; }
.npn a { color: #fff; font-weight: 600; }

/* Wheel card */
.spin-card {
  background: rgb(14 14 16 / 0.92);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
}
.spin-card:focus { outline: none; }
.spin-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.spin-head-note { font-size: 13px; color: rgb(255 255 255 / 0.65); }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgb(61 220 132 / 0.2); }
body[data-state="closed"] .status-dot { background: var(--orange); box-shadow: 0 0 0 4px rgb(250 75 10 / 0.2); }
body[data-state="pre"] .status-dot { background: var(--gray-lt); box-shadow: 0 0 0 4px rgb(191 192 194 / 0.2); }

.spin-body { padding: 20px; }
/* The ViralSweep widget is its own black panel, so it fills the card body edge to edge. */
.spin-body:has(> .embed-slot) { padding: 0; background: #000; }
.embed-slot { min-height: 600px; overflow: hidden; }
/* ViralSweep's script inserts <div><iframe style="width: 900px; max-width: 100%"></div> and sets the iframe
   height itself. app.js sets --vs-scale (and the slot's height) to fit the card in the first screen:
   the iframe lays out wider by 1/scale, then scales back to the slot's width. */
.embed-slot iframe.vs_main_frame {
  display: block; border: 0;
  width: calc(100% / var(--vs-scale, 1)) !important; max-width: none !important;
  transform: scale(var(--vs-scale, 1)); transform-origin: 0 0;
}

.closed { padding: 48px 32px 52px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.closed .icon { width: 48px; height: 48px; color: var(--orange); margin-bottom: 10px; }
.closed-kicker { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin: 0; }
.closed-title { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 8px; }
.closed p:last-child { max-width: 26em; margin: 0; color: rgb(255 255 255 / 0.8); text-wrap: balance; }

/* ---------- Sections ---------- */
.section-title { font-size: clamp(40px, 5vw, 64px); margin-bottom: 36px; }
.kicker {
  font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
}

/* Prizes */
.prizes { background: #fff; color: var(--ink); padding: 88px 0; }
.prizes .tbd { background: rgb(250 75 10 / 0.14); }
.credit-row { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 14px; align-items: stretch; }
.credit-card {
  background: var(--black); color: #fff; padding: 28px 26px;
  border-top: 4px solid var(--orange);
  display: flex; flex-direction: column;
}
.credit-up { background: var(--purple); }
.credit-amount { font-size: clamp(56px, 5.6vw, 76px); color: var(--orange); margin: 6px 0 14px; }
.credit-up .credit-amount { color: #fff; }
.credit-title { font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 10px; }
.credit-card > p:not(.kicker):not(.credit-amount) { color: rgb(255 255 255 / 0.82); margin: 0; }
.credit-up .kicker { color: var(--yellow); }
.terms { margin: 0; padding: 4px 0 0 4px; list-style: none; display: grid; gap: 10px; align-content: center; font-size: 14.5px; color: #2a2a2c; }
.terms li { padding-left: 18px; position: relative; }
.terms li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--orange); }

.prizes .section-title { margin-bottom: 14px; }
.top-head { margin-bottom: 26px; }
.top-sub { margin: 0; font-size: 16px; color: #3a3a3c; max-width: 40em; }
.prize-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 56px; }
.prize { background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.prize .icon { color: var(--orange); width: 30px; height: 30px; margin-bottom: 8px; }
.prize h3 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.prize-qty { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); }
.prize-meta { margin: 6px 0 0; font-size: 14px; color: #3a3a3c; }
.prize-desc { margin: 6px 0 0; font-size: 15.5px; line-height: 1.5; }
.prize-photo { padding: 0; background: var(--black); color: #fff; gap: 0; }
.prize-photo img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.prize-photo .prize-body { padding: 18px 22px 24px; display: grid; gap: 4px; }
.prize-photo h3 { font-size: 26px; }
.prize-photo .prize-qty { color: var(--orange); }
.prize-photo .prize-meta { color: rgb(255 255 255 / 0.8); }
.prize-photo .prize-desc { color: rgb(255 255 255 / 0.92); }
.prize-photo .prize-desc + .prize-meta { font-size: 13px; color: rgb(255 255 255 / 0.65); }
.prize-photo .tbd { background: rgb(250 75 10 / 0.2); }

/* Promotion sponsor row under the prize cards: Bookit (Collage 1217275, white artwork shown
   dark grey on the white section). */
.prize-grid { margin-bottom: 0; }
.supplier-strip { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; margin: 0 0 48px; border-bottom: 1px solid rgb(0 0 0 / 0.1); }
.supplier-strip-label { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); }
.supplier-logo { width: auto; display: block; flex: none; filter: brightness(0); opacity: 0.55; }
.supplier-bookit { height: 22px; }

/* How it works */
.how { background: var(--black); padding: 88px 0; position: relative; overflow: hidden; isolation: isolate; }
.how::before {
  content: ""; position: absolute; z-index: -1; right: -18%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(60 40 110 / 0.75), transparent);
}
.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
body[data-state="live"] .steps { margin-bottom: 0; }
.steps li { position: relative; padding: 32px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num {
  position: absolute; right: 22px; top: 18px;
  font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: rgb(255 255 255 / 0.08);
}
.steps .icon { color: var(--orange); width: 34px; height: 34px; margin-bottom: 16px; }
.steps h3 { font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px; }
.steps p { color: rgb(255 255 255 / 0.78); max-width: 26em; }


/* FAQ */
.faq { background: #0d0d0f; padding: 88px 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 700; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--orange); transition: transform 180ms ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: rgb(255 255 255 / 0.78); padding: 0 40px 20px 0; margin: 0; max-width: 46em; }
.faq a { color: #fff; font-weight: 600; }

/* Footer */
.foot { background: var(--black); border-top: 4px solid var(--orange); padding: 44px 0 110px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-size: 14px; font-weight: 600; color: rgb(255 255 255 / 0.85); }
.foot-npn { font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.foot-legal { font-size: 12.5px; line-height: 1.6; color: rgb(255 255 255 / 0.6); max-width: 92em; }

/* Review-only state switcher (remove before launch) */
/* Review-only control panel (review builds; scripts/build-static.mjs) */
.review {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: flex-end; gap: 12px; padding: 12px 14px;
  background: #fff; color: #000; border-radius: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.4);
  font-family: var(--body, Inter, system-ui, sans-serif); font-size: 14px;
}
.review-field { display: flex; flex-direction: column; gap: 4px; }
.review-field label { font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #555; }
.review-field select {
  appearance: none; -webkit-appearance: none; font: inherit; font-weight: 600; color: #000;
  padding: 8px 34px 8px 12px; min-width: 190px; border: 1px solid #c8c8c8; border-radius: 8px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.review-field select:hover { border-color: #000; }
.review-field select:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 760px) {
  /* Phones: each control on its own row (label left, dropdown right). */
  .review { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
  .review-field { flex-direction: row; align-items: center; gap: 10px; }
  .review-field label { flex: 0 0 84px; }
  .review-field select { min-width: 0; flex: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { inset: 0 0 auto 0; height: 520px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); opacity: 0.6; }
  .faq-grid { grid-template-columns: 1fr; }
  .credit-row { grid-template-columns: 1fr 1fr; }
  .terms { grid-column: 1 / -1; padding: 6px 0 0; }
  .prize-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { gap: 8px; }
}
@media (max-width: 760px) {
  .bar-nav a:not(.pill) { display: none; }
  .lockup-name { font-size: 21px; }
  .lockup-logo { height: 40px; }
  .lockup-logo-foot { height: 52px; }
  .credit-row { grid-template-columns: 1fr; }
  .closed { padding: 40px 22px 44px; }
  .hero { padding: 40px 0 56px; }
  .hero-title { font-size: clamp(44px, 14vw, 72px); }
  .lede { font-size: 17px; }
  .embed-slot { min-height: 520px; }
  .prize-grid { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 26px 0 6px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .prizes, .how, .faq { padding: 64px 0; }
}

/* Legal pages (/rules, /privacy, /terms; template site/legal.html) */
.legal { padding: 64px 0 88px; background: var(--black); }
.legal-wrap { max-width: 820px; }
.legal-note { color: rgb(255 255 255 / 0.75); font-size: 17px; margin-bottom: 28px; }
.legal p, .legal li { color: rgb(255 255 255 / 0.88); }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0.01em; text-transform: uppercase; color: #fff; margin: 36px 0 10px; }
.legal p { line-height: 1.6; margin: 0 0 14px; }
.legal a { color: var(--yellow, #ff9e1a); overflow-wrap: anywhere; }
.legal-lead { font-size: 15px; letter-spacing: 0.02em; }
.legal-runs-jump { padding: 14px 18px; margin: 0 0 28px; border-left: 3px solid var(--orange); background: rgb(255 255 255 / 0.05); }
.legal-runs { margin-top: 48px; padding-top: 8px; border-top: 1px solid rgb(255 255 255 / 0.14); }
.legal .legal-runs ul { list-style: none; padding: 0; }
.legal-runs li { padding: 10px 0; border-bottom: 1px solid rgb(255 255 255 / 0.08); margin: 0; }
.legal h3 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.01em; color: #fff; margin: 26px 0 8px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 1.5em; }
.legal li { line-height: 1.6; margin-bottom: 6px; }
.legal li > p { margin-bottom: 6px; }
.legal li::marker { color: rgb(255 255 255 / 0.6); }
.legal ol.paren > li::marker { content: counter(list-item, lower-alpha) ") "; }
.legal blockquote { margin: 0 0 14px 1.5em; }
.legal-table-wrap { overflow-x: auto; margin: 18px 0 24px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; color: rgb(255 255 255 / 0.88); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.legal-table th { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 16px; line-height: 1.15; color: #fff; }
.legal-table td:first-child, .legal-table th:first-child { width: 2.5em; }
.legal-page .foot { padding-bottom: 44px; }
.legal-page .foot-links { margin-bottom: 18px; }
