/* ============================================
   WEBZEMPIC — UI Overhaul
   Dark textured, red-gradient, animated logo
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

/* ---- Shared design tokens ---- */
:root {
  --red:       #FF0000;
  --red-dark:  #7A0000;
  --red-mid:   #C00000;
  --bg:        #000000;
  --text:      #f0f0f0;
  --text-dim:  rgba(240,240,240,0.45);
  /* Target cap-height for logo letterforms */
  --logo-h:         clamp(88px, 14vw, 168px);
  /* Glyph bounds in SVG user units (path union, excluding shine) */
  --web-glyph-h:    242.026;
  --web-vb-h:       244;
  --zempic-glyph-h: 114.379;
  --zempic-vb-h:    116;
  --zempic-display-h: calc(var(--logo-h) * var(--zempic-vb-h) / var(--zempic-glyph-h));
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

/* Subtle film-grain texture via SVG noise filter */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.038;
  pointer-events: none;
  z-index: 1;
}

/* ============ LANDING PAGE ============ */

#landing {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.landing-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* spacing between tagline / logo / button / about */
  gap: clamp(14px, 2.8vh, 32px);
  padding: 20px 16px;
  text-align: center;
  max-width: 100vw;
}

/* ---- Tagline ---- */
.tagline {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(11px, 1.3vw, 15px);
  color: var(--red-mid);
  letter-spacing: 0.02em;
  opacity: 0.88;
  white-space: nowrap;
}

/* ---- Logo group: [WEB-box] [ZEMPIC] ---- */
.logo-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  width: 100%;
  max-width: min(96vw, 1100px);
}

/* ---- WEB box (dimensions refined by syncLogoSizes in index.html) ---- */
.web-box {
  position: relative;
  flex-shrink: 0;
  width:  calc(var(--zempic-display-h) * 452 / var(--web-glyph-h));
  height: calc(var(--zempic-display-h) * 393 / var(--web-glyph-h));
}

.rect-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(255,0,0,0.45));
}

.web-letters-svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* Same SVG box height as ZEMPIC; JS applies uniform scale to match ink */
  height: var(--zempic-display-h);
  width: auto;
  overflow: visible;
  transform-origin: center center;
}

/* ---- ZEMPIC (reference size for logo cap-height) ---- */
.zempic-svg {
  height: var(--zempic-display-h);
  width: auto;
  flex-shrink: 0;
  overflow: visible;
}

/* ---- START button ---- */
.btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(13px, 1.7vh, 22px) clamp(42px, 7.5vw, 88px);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.45);
  background:
    radial-gradient(
      ellipse at var(--bx, 50%) var(--by, 50%),
      rgba(255, 170, 150, 0.42) 0%,
      transparent 52%
    ),
    linear-gradient(145deg, #950000 0%, #ff0000 55%, #7a0000 100%);
  border-radius: 60px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 0;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(200, 0, 0, 0.5),
    0 6px 28px rgba(0, 0, 0, 0.55);
  transition:
    color 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

.btn-start::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, transparent 46%);
  pointer-events: none;
  z-index: -1;
}

.btn-start:hover {
  color: rgba(0, 0, 0, 0.88);
  transform: translateY(-2px);
  box-shadow:
    0 0 55px rgba(255, 0, 0, 0.65),
    0 10px 40px rgba(0, 0, 0, 0.55);
}

.btn-start:active {
  transform: translateY(0) scale(0.98);
}

/* ---- ABOUT link ---- */
.about-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size:      clamp(10px, 1.2vw, 13px);
  font-weight:    700;
  letter-spacing: 0.18em;
  color: rgba(160, 160, 155, 0.62);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(160, 160, 155, 0.3);
  cursor: pointer;
  transition: color 0.22s, text-decoration-color 0.22s;
}

.about-link:hover {
  color: rgba(220, 220, 215, 0.9);
  text-decoration-color: rgba(220, 220, 215, 0.5);
}

/* ---- Footer (above full-screen #landing so link receives clicks) ---- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 14px 20px;
  z-index: 100;
  pointer-events: auto;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
}

.site-footer a {
  display: inline-block;
  padding: 8px 12px;
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: 0.05em;
  color: rgba(130, 130, 125, 0.5);
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: rgba(210, 210, 205, 0.85);
}

/* ============ ABOUT PAGE ============ */

body.about {
  overflow-y: auto;
  text-align: left;
}

/* Disclosure news tape */
.about-disclosure-tape {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  overflow: hidden;
  background: var(--red);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 16px rgba(255, 0, 0, 0.25);
}

.about-disclosure-tape-track {
  display: flex;
  width: max-content;
  animation: aboutTapeScroll 42s linear infinite;
}

.about-disclosure-tape-track:hover {
  animation-play-state: paused;
}

.about-disclosure-tape-text {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 10px 0;
  padding-right: 64px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(10px, 1.05vw, 12px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #000;
  white-space: nowrap;
}

.about-disclosure-tape-label {
  flex-shrink: 0;
  padding: 3px 8px;
  background: #000;
  color: var(--red);
  letter-spacing: 0.14em;
}

@keyframes aboutTapeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

body.about #landing {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 44px;
  padding-bottom: 72px;
}

body.about .landing-inner {
  align-items: flex-start;
  text-align: left;
  width: 100%;
  max-width: min(92vw, 880px);
  margin: 0 auto;
  padding: clamp(32px, 5vh, 56px) clamp(20px, 4vw, 48px);
}

.about-page {
  min-height: 40vh;
}

.about-back {
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: 0.2em;
  margin-bottom: clamp(24px, 4vh, 40px);
}

.about-tagline {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(13px, 1.6vw, 18px);
  color: var(--red-mid);
  letter-spacing: 0.02em;
  opacity: 0.75;
  text-align: left;
  margin-bottom: clamp(32px, 5vh, 56px);
}

.about-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 6vh, 64px);
  text-align: left;
}

.about-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.about-section p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.75;
  color: rgba(240, 240, 240, 0.82);
  font-weight: 400;
  text-align: left;
  max-width: 72ch;
}

.about-section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(10px, 1.05vw, 12px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.85;
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 0, 0, 0.22);
  width: 100%;
  text-align: left;
}

.about-steps {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 28px);
  padding: 0;
  margin: 0;
}

.about-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  text-align: left;
}

.about-step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  opacity: 0.65;
  padding-top: 3px;
}

.about-steps p {
  margin: 0;
  max-width: none;
}

.about-artist-link {
  margin: 0;
}

.about-artist-link a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(160, 160, 155, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(160, 160, 155, 0.25);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.about-artist-link a:hover {
  color: rgba(220, 220, 215, 0.9);
  text-decoration-color: rgba(220, 220, 215, 0.45);
}

.about-em {
  font-style: italic;
  color: rgba(240, 240, 240, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .about-disclosure-tape-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }

  .about-disclosure-tape-text {
    white-space: normal;
    padding: 10px 16px;
  }

  .about-disclosure-tape-text[aria-hidden="true"] {
    display: none;
  }
}

/* ============ MOBILE ============ */

@media (max-width: 640px) {
  :root {
    --logo-h: clamp(64px, 18vw, 112px);
  }

  body {
    overflow: auto;
  }

  #landing {
    position: relative;
    min-height: 100dvh;
    min-height: 100vh;
    padding-bottom: 48px;
  }

  .landing-inner {
    gap: clamp(12px, 2.5vh, 22px);
    padding: max(24px, env(safe-area-inset-top)) 16px max(56px, env(safe-area-inset-bottom));
  }

  .tagline {
    white-space: normal;
    max-width: min(280px, 88vw);
    font-size: clamp(10px, 3.2vw, 13px);
    line-height: 1.35;
  }

  .logo-group {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 3vh, 20px);
    width: 100%;
  }

  .web-box {
    margin-left: auto;
    margin-right: auto;
    max-width: 92vw;
  }

  .zempic-svg {
    margin-left: auto;
    margin-right: auto;
    max-width: 92vw;
  }

  .btn-start {
    font-size: clamp(20px, 6.5vw, 36px);
    padding: 13px 44px;
  }
}

@media (max-width: 380px) {
  :root {
    --logo-h: clamp(56px, 16vw, 96px);
  }
}

/* ============ EXPERIENCE PAGE ============ */
#experience {
  position: fixed;
  inset: 0;
  display: none;
  background: #000;
}

#experience.active {
  display: block;
}

#camera-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

#detection-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: scaleX(-1);
}

/* Calorie counter top-left */
#calorie-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 20;
  padding: 14px 22px;
  background: rgba(5,5,7,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow:
    0 0 20px rgba(232,0,10,0.15),
    0 8px 32px rgba(0,0,0,0.5);
  min-width: 180px;
}

#calorie-counter .wz-logo-small {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.8;
}

#calorie-counter .calorie-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

#calorie-counter .calorie-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  transition: color 0.4s ease;
}

#calorie-counter .calorie-value.danger {
  color: var(--red);
  text-shadow: 0 0 20px rgba(232,0,10,0.6);
}

#calorie-counter .calorie-unit {
  font-size: 13px;
  color: var(--text-dim);
  margin-left: 4px;
  font-weight: 400;
}

#calorie-counter .calorie-bar-wrap {
  margin-top: 10px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

#calorie-counter .calorie-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: 3px;
  transition: width 0.6s ease;
  box-shadow: 0 0 8px rgba(232,0,10,0.8);
}

/* Scan status top-right */
#scan-status {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 20;
  padding: 10px 16px;
  background: rgba(5,5,7,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

#scan-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

#scan-status.scanning .status-dot {
  background: var(--red);
  animation: dotPulse 1s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(232,0,10,0.8);
}

#scan-status.detected .status-dot {
  background: #00ff88;
  box-shadow: 0 0 8px rgba(0,255,136,0.6);
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Food label popup bottom */
#food-label {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 20;
  padding: 16px 28px;
  background: rgba(5,5,7,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(232,0,10,0.3);
  border-radius: 60px;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 0 30px rgba(232,0,10,0.15), 0 8px 32px rgba(0,0,0,0.6);
}

#food-label.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#food-label .food-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

#food-label .food-calories {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Welcome intro overlay */
#welcome-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,7,0.92);
  animation: welcomeFadeOut 1s ease forwards 3s;
  pointer-events: none;
}

@keyframes welcomeFadeOut {
  to { opacity: 0; display: none; }
}

#welcome-overlay .welcome-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-align: center;
  animation: welcomeUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#welcome-overlay .welcome-sub {
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0;
  animation: welcomeUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
}

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

/* ============ COUNTDOWN OVERLAY ============ */
#countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.96);
  animation: countdownBgFlash 0.1s ease-in-out;
}

#countdown-overlay.active {
  display: flex;
}

@keyframes countdownBgFlash {
  0% { background: rgba(232,0,10,0.4); }
  100% { background: rgba(0,0,0,0.96); }
}

.countdown-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(140px, 28vw, 260px);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  text-shadow:
    0 0 60px rgba(232,0,10,0.8),
    0 0 120px rgba(232,0,10,0.4);
  animation: countdownPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes countdownPop {
  0% { transform: scale(2.5); opacity: 0; }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

.countdown-subtitle {
  position: absolute;
  bottom: 25%;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 0 20px;
}

.countdown-title-reveal {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
  text-align: center;
  padding: 0 40px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1.2;
}

.countdown-title-reveal.show {
  opacity: 1;
  transform: scale(1);
}

/* ============ DETERRENT VIDEO OVERLAY ============ */
#deterrent-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: #000;
}

#deterrent-overlay.active {
  display: block;
}

#deterrent-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Disclosure + camera permission screen */
#permission-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: clamp(16px, 4vw, 32px);
}

.disclosure-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  width: min(92vw, 720px);
  padding: clamp(20px, 3.5vw, 32px) clamp(22px, 4vw, 36px);
  border-radius: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 0, 0, 0.14) 0%, transparent 55%),
    linear-gradient(155deg, rgba(40, 0, 0, 0.92) 0%, rgba(12, 0, 0, 0.96) 100%);
  border: 2px solid var(--red);
  box-shadow:
    0 0 40px rgba(255, 0, 0, 0.22),
    0 12px 48px rgba(0, 0, 0, 0.65);
}

.disclosure-copy {
  flex: 1;
  min-width: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(11px, 1.55vw, 14px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-align: left;
}

.disclosure-agree {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.disclosure-agree:hover .disclosure-checkbox {
  box-shadow: 0 0 22px rgba(255, 0, 0, 0.55);
}

.disclosure-agree.is-loading {
  pointer-events: none;
  opacity: 0.55;
}

.disclosure-agree.is-loading .disclosure-checkbox::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(255, 0, 0, 0.25);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.disclosure-checkbox {
  position: relative;
  display: block;
  width: clamp(44px, 8vw, 56px);
  height: clamp(44px, 8vw, 56px);
  border: 3px solid var(--red);
  background: transparent;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.35);
  transition: box-shadow 0.2s ease, background 0.15s ease;
}

.disclosure-checkbox-input:focus-visible + .disclosure-checkbox {
  outline: 2px solid rgba(255, 120, 120, 0.9);
  outline-offset: 3px;
}

.disclosure-checkbox-input:checked + .disclosure-checkbox {
  background: rgba(255, 0, 0, 0.12);
}

.disclosure-checkbox-input:checked + .disclosure-checkbox::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 38%;
  height: 62%;
  border: solid var(--red);
  border-width: 0 3px 3px 0;
  transform: translate(-50%, -55%) rotate(45deg);
}

.disclosure-checkbox-input:disabled + .disclosure-checkbox {
  opacity: 0.7;
}

.disclosure-fineprint {
  margin-top: clamp(10px, 1.8vh, 16px);
  max-width: min(92vw, 720px);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(9px, 1.1vw, 11px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--red-mid);
  opacity: 0.82;
  text-align: center;
}

#permission-error {
  margin-top: clamp(14px, 2.5vh, 22px);
  max-width: min(92vw, 720px);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
  text-align: center;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#permission-error.visible {
  opacity: 1;
  pointer-events: auto;
}

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

@media (max-width: 520px) {
  .disclosure-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .disclosure-copy {
    text-align: center;
  }

  .disclosure-agree {
    align-self: center;
  }
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(232,0,10,0.3);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* WEBZEMPIC watermark */
#watermark {
  position: absolute;
  bottom: 36px;
  right: 20px;
  z-index: 15;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.12);
  pointer-events: none;
}
