/* ============================================================
   misstwice.vegas — brand styles
   Matches the jumbotron asset: bold red + black on white,
   basketball-texture background, heavy condensed sans-serif.
   ============================================================ */

:root {
  --sov-red: #E4002B;
  --sov-black: #111;
  --sov-white: #FFF;
  --sov-grey: #666;
  --sov-line: #1a1a1a;
  --sov-bg: #fafafa;
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--sov-black);
  background: var(--sov-bg);
  /* Subtle basketball texture: a faint radial pattern + concentric arcs hint
     mimicking the asset background. Pure CSS, no external image required. */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.018) 0 25%, transparent 26%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.018) 0 25%, transparent 26%),
    repeating-radial-gradient(circle at 50% 50%, rgba(0,0,0,0.012) 0 1px, transparent 1px 24px);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: calc(100% - 16px);
  max-width: 720px;
  margin: 8px auto;
  padding: 24px 18px 32px;
  background: var(--sov-white);
  border: 2px solid var(--sov-line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  overflow-wrap: break-word;
}
@media (min-width: 480px) {
  .page { width: calc(100% - 48px); margin: 24px auto; padding: 32px 28px 40px; }
}

.eyebrow {
  font-family: 'Bebas Neue', 'Anton', 'Oswald', Impact, sans-serif;
  letter-spacing: 0.04em;
  color: var(--sov-red);
  font-size: clamp(18px, 4vw, 22px);
  margin: 0 0 4px;
}

/* Brand signature block at the bottom of the page card.
   The campaign HEADLINE owns the top of the page; the logo signs off
   like a branded card footer. Always visible regardless of state. */
.brand-signature {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #eaeaea;
  text-align: center;
}
.brand-signature .signature-logo {
  display: block;
  margin: 0 auto 14px;
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
}
@media (min-width: 480px) {
  .brand-signature .signature-logo { max-width: 340px; }
}
.brand-signature .footer-mark {
  margin-top: 0;
}

h1.headline {
  font-family: 'Bebas Neue', 'Anton', 'Oswald', Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
  font-size: clamp(44px, 11vw, 96px);
  margin: 4px 0 8px;
  color: var(--sov-black);
  overflow-wrap: break-word;
  hyphens: none;
}

h1.headline .accent {
  display: block;
  color: var(--sov-red);
}

.divider {
  border: 0;
  border-top: 2px solid var(--sov-black);
  margin: 16px 0 24px;
}

.subline {
  font-family: 'Bebas Neue', 'Anton', 'Oswald', Impact, sans-serif;
  letter-spacing: 0.03em;
  font-size: clamp(15px, 3.5vw, 18px);
  color: var(--sov-black);
  margin: 0 0 24px;
}

.subline .free { color: var(--sov-red); }

label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sov-black);
  margin: 16px 0 6px;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  padding: 14px 14px;
  border: 2px solid var(--sov-line);
  border-radius: var(--radius);
  font-size: 17px;
  font-family: inherit;
  background: var(--sov-white);
}
input:focus {
  outline: 3px solid var(--sov-red);
  outline-offset: 1px;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--sov-black);
}
.checkbox-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--sov-red);
  flex-shrink: 0;
  margin-top: 1px;
}

button.cta {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 18px 16px;
  background: var(--sov-red);
  color: var(--sov-white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Bebas Neue', 'Anton', 'Oswald', Impact, sans-serif;
  font-size: clamp(22px, 6.5vw, 28px);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease;
  overflow-wrap: break-word;
}
button.cta:hover { background: #c00024; }
button.cta:active { transform: translateY(1px); }
button.cta:disabled { background: var(--sov-grey); cursor: not-allowed; }

button.secondary {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 20px;
  background: var(--sov-white);
  color: var(--sov-black);
  border: 2px solid var(--sov-line);
  border-radius: var(--radius);
  font-family: 'Bebas Neue', 'Anton', 'Oswald', Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.footer-mark {
  margin: 24px 0 0;
  text-align: center;
  font-family: 'Bebas Neue', 'Anton', 'Oswald', Impact, sans-serif;
  letter-spacing: 0.05em;
  color: var(--sov-red);
  font-size: 14px;
}

.error {
  margin-top: 14px;
  padding: 12px 14px;
  background: #fff0f2;
  border: 1px solid var(--sov-red);
  color: var(--sov-red);
  border-radius: var(--radius);
  font-size: 14px;
}

.success {
  margin-top: 14px;
  padding: 16px 18px;
  background: #f3fff5;
  border: 1px solid #1a8a3a;
  color: #145a26;
  border-radius: var(--radius);
}

.muted { color: var(--sov-grey); font-size: 13px; line-height: 1.5; }

/* Redeem-page big "GET A SLICE" yes button */
.redeem-yes {
  background: var(--sov-red);
  color: var(--sov-white);
  font-size: clamp(40px, 10vw, 64px);
  padding: 28px 24px;
  margin-top: 16px;
}

.status-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-pill.pending { background: #fff7e6; color: #8a5b00; border: 1px solid #f0c06a; }
.status-pill.redeemed { background: #f3fff5; color: #145a26; border: 1px solid #1a8a3a; }
.status-pill.expired { background: #f4f4f4; color: var(--sov-grey); border: 1px solid #ccc; }

.code-display {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 22px;
  letter-spacing: 0.1em;
  background: var(--sov-black);
  color: var(--sov-white);
  padding: 10px 18px;
  border-radius: 4px;
  margin-top: 8px;
}

/* Highlighted "bonus offer" panel for the WP4L cross-opt-in on Miss Twice. */
.highlight-panel {
  margin: 20px 0;
  padding: 14px 14px;
  background: linear-gradient(180deg, #fff8f9 0%, #fff0f2 100%);
  border: 2px solid var(--sov-red);
  border-radius: var(--radius);
}
.highlight-panel .checkbox-row { margin: 0; }
.highlight-panel .bonus-eyebrow {
  display: inline-block;
  background: var(--sov-red);
  color: var(--sov-white);
  font-family: 'Bebas Neue', 'Anton', 'Oswald', Impact, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 3px 10px 2px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* Inline button spinner — shown when CTA is in loading state. */
button.cta.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}
button.cta.is-loading::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  vertical-align: -3px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--sov-white);
  border-radius: 50%;
  animation: cta-spin 0.7s linear infinite;
}
@keyframes cta-spin { to { transform: rotate(360deg); } }

/* Skeleton form — placeholder shape shown during initial campaign-status fetch.
   Quieter than a giant "LOADING" headline; sets expectation of an upcoming form. */
.skeleton-form {
  margin-top: 20px;
}
.skeleton-form .skeleton-line {
  background: linear-gradient(90deg, #f1f1f1 0%, #e6e6e6 50%, #f1f1f1 100%);
  background-size: 200% 100%;
  border-radius: var(--radius);
  margin: 12px 0;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.skeleton-form .skel-headline { height: 64px; width: 70%; }
.skeleton-form .skel-subline { height: 18px; width: 90%; }
.skeleton-form .skel-input { height: 50px; width: 100%; }
.skeleton-form .skel-button { height: 60px; width: 100%; margin-top: 24px; background: linear-gradient(90deg, #ffd5dd 0%, #ffc5cf 50%, #ffd5dd 100%); background-size: 200% 100%; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Legal footer — Privacy / Terms / Rules links below the brand signature. */
.legal-links {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--sov-grey);
  letter-spacing: 0.02em;
}
.legal-links a {
  color: var(--sov-grey);
  text-decoration: underline;
  margin: 0 6px;
}
.legal-links a:hover { color: var(--sov-red); }

/* Plain-prose pages (privacy.html, terms.html, rules.html). */
.legal-page {
  font-size: 15px;
  line-height: 1.6;
  color: var(--sov-black);
}
.legal-page h1 {
  font-family: 'Bebas Neue', 'Anton', 'Oswald', Impact, sans-serif;
  font-size: clamp(36px, 8vw, 56px);
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}
.legal-page h2 {
  font-family: 'Bebas Neue', 'Anton', 'Oswald', Impact, sans-serif;
  font-size: clamp(20px, 5vw, 26px);
  letter-spacing: 0.02em;
  margin: 28px 0 8px;
  color: var(--sov-red);
}
.legal-page p, .legal-page li { font-size: 15px; }
.legal-page .draft-banner {
  background: #fff7e6;
  border: 1px solid #f0c06a;
  color: #8a5b00;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin: 0 0 24px;
  font-size: 13px;
}
.legal-page .back-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--sov-red);
  text-decoration: none;
  font-family: 'Bebas Neue', 'Anton', 'Oswald', Impact, sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
}
