/* ============================================================
   APTACLUB KIOSK — Global Styles
   Portrait 1080×1920 reference; scales via viewport units
   ============================================================ */

/* --- Fonts ------------------------------------------------ */
@font-face {
  font-family: 'AcuminVariable';
  src: url('../assets/fonts/AcuminVariableConcept.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
}

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

:root {
  --navy: #0021a1;
  --blue: #005eb8;
  --cyan:      #00BFEF;
  --bg:        #E8EDF4;
  --white:     #FFFFFF;
  --green:     #28A745;
  --red:       #DC3545;
  --text-dark: #0D1A5C;
  --placeholder-bg: #C8D0E0;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  32px;
  --radius-pill: 999px;

  --shadow: 0 4px 20px rgba(26,46,143,0.15);

  /* Typography scale (portrait kiosk — generous sizing) */
  --fs-xs:   clamp(12px, 1.4vw, 18px);
  --fs-sm:   clamp(14px, 1.7vw, 22px);
  --fs-base: clamp(16px, 2vw,   26px);
  --fs-md: clamp(18px, 2.5vw, 32px);
  --fs-lg:   clamp(28px, 3.5vw, 48px);
  --fs-xl:   clamp(36px, 5vw,   72px);
  --fs-hero: clamp(48px, 7vw,  100px);
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* --- Screen Shell ----------------------------------------- */
#app {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
}

/* --- Header (Logo Bar) ------------------------------------ */
.header {
  background: var(--white);
  width: 100%;
  padding: clamp(12px, 1.5vh, 24px) 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 10;
}

.logo-img {
  height: clamp(36px, 5vh, 60px);
  width: auto;
  display: block;
}

/* --- AI Assistant Panel ----------------------------------- */
.ai-panel {
  background: var(--navy);
  width: 100%;
  padding: clamp(14px, 2vh, 28px) clamp(16px, 3vw, 32px);
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 24px);
  flex-shrink: 0;
}

.ai-avatar {
  width: clamp(60px, 8vw, 90px);
  height: clamp(60px, 8vw, 90px);
  border-radius: 50%;
  background: var(--placeholder-bg);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  color: var(--navy);
  font-weight: 600;
}

.ai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
}

.ai-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-label {
  color: var(--cyan);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-speech {
  color: var(--white);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.btn-next {
  display: inline-block;
  padding: clamp(10px, 1.2vh, 16px) clamp(24px, 3vw, 40px);
  border: 2px solid var(--white);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
  margin-top: 4px;
}

.btn-next:hover, .btn-next:active { background: var(--white); color: var(--navy); }
.btn-next:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-next:disabled:hover { background: transparent; color: var(--white); }

/* --- Content Area ----------------------------------------- */
.content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- Generic Buttons -------------------------------------- */
.btn-primary {
  display: block;
  width: 100%;
  padding: clamp(16px, 2vh, 28px) 32px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
}

.btn-primary:hover { opacity: 0.88; }

.btn-outline {
  display: block;
  width: 100%;
  padding: clamp(16px, 2vh, 28px) 32px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-pill);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

.btn-outline:hover, .btn-outline:active { background: var(--navy); color: var(--white); }

/* --- Section Chip ----------------------------------------- */
.section-chip {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: var(--radius-sm);
}

/* --- Placeholder Image ------------------------------------ */
.img-placeholder {
  background: var(--placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8aaa;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-align: center;
  padding: 8px;
}

/* ============================================================
   SCREEN 01 — SPLASH
   ============================================================ */
#screen-splash {
  background: var(--navy);
  justify-content: flex-end;
}

.splash-hero {
  position: absolute;
  inset: 0;
  background: var(--placeholder-bg);
  overflow: hidden;
}

.splash-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.splash-overlay {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(48px, 8vh, 96px);
}

.splash-logo {
  position: absolute;
  top: clamp(20px, 3vh, 40px);
  right: clamp(20px, 3vw, 40px);
  z-index: 3;
}

.splash-headline {
  color: var(--white);
  font-family: 'AcuminVariable', 'Segoe UI', Arial, sans-serif;
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 50;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: clamp(20px, 3vh, 40px);
  text-shadow: 0 5px 20px rgba(0, 0, 0, 40);
}

.splash-hl-lg,
.splash-hl-sm {
  display: block;
}
.splash-hl-lg { font-size: clamp(72px, 10vw, 144px); }
.splash-hl-sm { font-size: var(--fs-xl); }

.splash-phone {
  position: absolute;
  right: 21px;
  bottom: -17vh;
  height: 49vh;
  width: auto;
  z-index: 3;
  pointer-events: none;
}

.splash-card {
  background: #005eb8;
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vh, 36px) clamp(20px, 3vw, 36px);
  max-width: 580px;
}

.splash-card p {
  color: var(--white);
  font-size: 17px;
  line-height: 1;
  margin-bottom: clamp(20px, 2.5vh, 32px);
  opacity: 0.9;
  max-width: 43%;
  text-align: center;
}

.btn-start {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-pill);
  padding: clamp(9px, 0vh, 24px) clamp(32px, 2vw, 56px);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.0em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-start:hover { opacity: 0.9; transform: scale(1.02); }
.btn-start:active { transform: scale(0.98); }

/* ============================================================
   SCREEN 03 — STATS
   ============================================================ */
.stats-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vh, 32px);
  padding: clamp(20px, 3vw, 40px);
  background: var(--bg);
}

.stats-chart-area {
  position: relative;
  width: clamp(240px, 50vw, 380px);
  height: clamp(240px, 50vw, 380px);
}

.donut-svg { width: 100%; height: 100%; }

.donut-label {
  position: absolute;
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.donut-label span { font-size: var(--fs-xs); font-weight: 600; color: var(--blue); }

.stats-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.legend-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stats-stat-text {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-dark);
  max-width: 480px;
  line-height: 1.5;
}

/* ============================================================
   SCREEN 04 — BENEFITS
   ============================================================ */
.benefits-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vh, 28px);
  padding: clamp(20px, 3vw, 40px);
}

.benefits-icon {
  width: clamp(60px, 8vw, 90px);
  height: clamp(60px, 8vw, 90px);
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 4vw, 48px);
}

.benefits-desc {
  font-size: var(--fs-sm);
  line-height: 1.5;
  text-align: center;
  max-width: 580px;
  color: var(--text-dark);
}

.benefits-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 680px;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(16px, 2.5vh, 28px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.benefit-card.visible { opacity: 1; transform: translateY(0); }

.benefit-card h3 {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg);
}

.benefit-card li {
  font-size: var(--fs-xs);
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 8px;
  list-style: none;
  padding-left: 16px;
  position: relative;
}

.benefit-card li::before {
  content: '•';
  color: var(--blue);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ============================================================
   SCREEN 05 — PHOTO SELECT
   ============================================================ */
.photo-select-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.toggle-bar {
  display: flex;
  background: var(--white);
  border-bottom: 2px solid var(--bg);
  flex-shrink: 0;
}

.toggle-btn {
  flex: 1;
  padding: clamp(12px, 1.5vh, 20px);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  transition: background 0.2s, color 0.2s;
}

.toggle-btn.active {
  background: var(--navy);
  color: var(--white);
}

.photo-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.2vw, 16px);
  padding: clamp(12px, 2vw, 24px);
  overflow: hidden;
}

.photo-cell {
  border: 3px solid var(--navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  background: var(--placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #7a8aaa;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.photo-cell:hover { border-color: var(--blue); transform: scale(1.02); }

.photo-cell.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan);
}

.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.photo-cell-icon { font-size: clamp(24px, 3vw, 36px); }

/* ============================================================
   SCREEN 06 — ANALYSIS RESULT
   ============================================================ */
.analysis-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.analysis-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--placeholder-bg);
  color: #7a8aaa;
  font-size: var(--fs-md);
  font-weight: 600;
}

.scan-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scan-bracket {
  width: 55%;
  aspect-ratio: 1;
  position: relative;
}

.scan-bracket::before,
.scan-bracket::after,
.scan-bracket > span::before,
.scan-bracket > span::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--white);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.3s;
}

.scan-bracket.visible::before,
.scan-bracket.visible::after,
.scan-bracket.visible > span::before,
.scan-bracket.visible > span::after { opacity: 1; }

.scan-bracket::before  { top: 0;    left: 0;  border-width: 4px 0 0 4px; }
.scan-bracket::after   { top: 0;    right: 0; border-width: 4px 4px 0 0; }
.scan-bracket > span::before { bottom: 0; left: 0;  border-width: 0 0 4px 4px; }
.scan-bracket > span::after  { bottom: 0; right: 0; border-width: 0 4px 4px 0; }

@keyframes scanPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.scan-bracket.scanning::before,
.scan-bracket.scanning::after,
.scan-bracket.scanning > span::before,
.scan-bracket.scanning > span::after {
  animation: scanPulse 1s ease-in-out infinite;
}

.callout-bubble {
  position: absolute;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(8px, 1.2vw, 14px) clamp(10px, 1.5vw, 18px);
  font-size: var(--fs-xs);
  max-width: clamp(140px, 28vw, 220px);
  border: 2px solid var(--blue);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  line-height: 1.4;
}

.callout-bubble.visible { opacity: 1; transform: scale(1); }

.callout-bubble strong {
  display: block;
  color: var(--cyan);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.callout-bubble.top-left   { top: 10%;  left: 4%; }
.callout-bubble.top-right  { top: 10%;  right: 4%; }
.callout-bubble.bottom     { bottom: 8%; left: 50%; transform: translateX(-50%) scale(0.8); }
.callout-bubble.bottom.visible { transform: translateX(-50%) scale(1); }

.tier-badge {
  position: absolute;
  top: clamp(8px, 1.2vh, 16px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.4s 1.2s;
}

.tier-badge.visible { opacity: 1; }
.tier-badge.normal  { background: var(--green); color: var(--white); }
.tier-badge.monitor { background: #F59E0B; color: var(--white); }
.tier-badge.consult { background: var(--red); color: var(--white); }

/* ============================================================
   SCREEN 07 — SLIDERS
   ============================================================ */
.sliders-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(20px, 3vw, 40px);
}

.slider-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100%;
  max-height: 520px;
}

.slider-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark);
}

.slider-track {
  position: relative;
  flex: 1;
  width: clamp(60px, 9vw, 100px);
}

.slider-gradient {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  clip-path: polygon(50% 0%, 100% 10%, 100% 90%, 50% 100%, 0% 90%, 0% 10%);
}

.slider-gradient.colour {
  background: linear-gradient(to bottom,
    #F5E6C8 0%,
    #FFE066 14%,
    #FFA040 28%,
    #8B4513 42%,
    #4A5A20 57%,
    #6B1010 71%,
    #1A0A00 100%
  );
}

.slider-gradient.consistency {
  background: linear-gradient(to bottom,
    #1A2E8F 0%,
    #2B7DE9 20%,
    #00BFEF 40%,
    #A8D8F0 70%,
    #E8F4FC 100%
  );
}

.slider-indicator {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(44px, 6vw, 64px);
  height: clamp(44px, 6vw, 64px);
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 2.5vw, 28px);
  box-shadow: var(--shadow);
  cursor: grab;
  transition: top 0.05s;
  touch-action: none;
}

.slider-indicator:active { cursor: grabbing; }

.slider-result-area {
  text-align: center;
  padding: 0 clamp(20px, 3vw, 40px);
}

.slider-result-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--bg);
  color: var(--text-dark);
  border: 2px solid var(--placeholder-bg);
  transition: background 0.4s, color 0.4s;
}

.slider-result-badge.normal  { background: var(--green); color: var(--white); border-color: var(--green); }
.slider-result-badge.monitor { background: #F59E0B; color: var(--white); border-color: #F59E0B; }
.slider-result-badge.consult { background: var(--red); color: var(--white); border-color: var(--red); }

.slider-result-text {
  font-size: var(--fs-xs);
  color: var(--text-dark);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
  min-height: 4em;
}

/* ============================================================
   SCREEN 08 — HISTORY
   ============================================================ */
.history-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.5vw, 32px);
}

.phone-frame {
  background: #f0f0f0;
  border: 8px solid #333;
  border-radius: 40px;
  padding: 12px;
  width: clamp(220px, 35vw, 320px);
  height: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phone-screen {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  flex: 1;
}

.phone-header {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  font-weight: 700;
}

.phone-close { opacity: 0.6; font-size: 18px; cursor: pointer; }

.history-chart {
  padding: 12px;
  height: clamp(240px, 40vh, 400px);
}

.chart-grid {
  display: grid;
  grid-template-columns: 36px 1fr;
  height: 100%;
  gap: 0;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  color: #999;
  padding-bottom: 20px;
}

.chart-body {
  display: flex;
  flex-direction: column;
}

.chart-inner {
  flex: 1;
  position: relative;
  border-left: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.chart-x-axis {
  display: flex;
  justify-content: space-around;
  font-size: 9px;
  color: #999;
  padding-top: 4px;
}

.history-dot {
  position: absolute;
  height: 8px;
  border-radius: 4px;
  transform: translateY(-50%);
}

/* ============================================================
   SCREENS 09 & 10 — BRAND / HCP CTA
   ============================================================ */
.brand-screen {
  background: var(--bg);
}

.gut-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.06;
  font-size: clamp(200px, 30vw, 360px);
  pointer-events: none;
  z-index: 0;
}

/* Centred content area that sits below the header */
.brand-content {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vh, 36px);
  padding: clamp(24px, 4vw, 56px);
  text-align: center;
  overflow: hidden;
}

.brand-headline {
  font-size: var(--fs-lg);
  font-weight: 900;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 680px;
}

.brand-body {
  font-size: var(--fs-base);
  color: var(--text-dark);
  line-height: 1.6;
  max-width: 640px;
}

.brand-footnote {
  font-size: var(--fs-xs);
  color: #7a8aaa;
}

.brand-cta-area {
  width: 100%;
  max-width: 480px;
}

.disclaimer-text {
  font-size: var(--fs-xs);
  color: #7a8aaa;
  line-height: 1.5;
  text-align: center;
  max-width: 580px;
}

/* ============================================================
   SCREEN 11 — HUB
   ============================================================ */
.hub-screen {
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vh, 28px);
  padding: clamp(24px, 4vw, 56px);
}

.hub-title {
  font-size: var(--fs-lg);
  font-weight: 900;
  color: var(--navy);
  text-transform: uppercase;
  text-align: center;
}

.hub-buttons {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vh, 20px);
  width: 100%;
  max-width: 520px;
}

.hub-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(8px, 1.5vh, 20px);
}

.qr-box {
  width: clamp(80px, 12vw, 120px);
  height: clamp(80px, 12vw, 120px);
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(32px, 5vw, 60px);
}

.qr-label {
  font-size: var(--fs-xs);
  color: var(--text-dark);
  text-align: center;
  max-width: 240px;
}

/* ============================================================
   SCREENS 12–19 — FAQs
   ============================================================ */
.faqs-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vh, 20px);
  padding: clamp(16px, 2.5vw, 32px);
  overflow: hidden;
  justify-content: flex-start;
}

.faq-card {
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  padding: clamp(14px, 2vh, 22px) clamp(16px, 2.5vw, 28px);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  background: var(--white);
}

.faq-card.active {
  background: var(--navy);
  border-color: var(--navy);
}

.faq-card.inactive {
  opacity: 0.45;
}

.faq-card h3 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.faq-card.active h3 {
  color: var(--white);
}

/* ============================================================
   SCREENS 20–23 — QUIZ
   ============================================================ */
.quiz-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vh, 18px);
  padding: clamp(16px, 2.5vw, 28px);
  overflow-y: auto;
}

.quiz-question-card {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: clamp(14px, 2vh, 22px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.quiz-thumbnail {
  width: clamp(56px, 8vw, 80px);
  height: clamp(56px, 8vw, 80px);
  border-radius: 50%;
  background: var(--placeholder-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(24px, 3.5vw, 40px);
  overflow: hidden;
}

.quiz-question-text {
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

.quiz-progress {
  color: var(--cyan);
  font-size: var(--fs-xs);
  font-weight: 700;
  flex-shrink: 0;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 14px);
  flex-shrink: 0;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  padding: clamp(12px, 1.6vh, 18px) clamp(14px, 2vw, 22px);
  cursor: pointer;
  background: var(--white);
  transition: background 0.15s, border-color 0.15s;
}

.quiz-option:hover { background: var(--bg); }

.quiz-option.selected-correct {
  background: #d4edda;
  border-color: var(--green);
  cursor: default;
}

.quiz-option.selected-wrong {
  background: #f8d7da;
  border-color: var(--red);
  cursor: default;
}

.quiz-option.show-correct {
  background: #d4edda;
  border-color: var(--green);
  cursor: default;
  opacity: 0.7;
}

.quiz-option.disabled { cursor: default; opacity: 0.6; }

.option-label {
  width: clamp(28px, 3.5vw, 36px);
  height: clamp(28px, 3.5vw, 36px);
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 800;
  flex-shrink: 0;
  background: var(--white);
}

.quiz-option.selected-correct .option-label,
.quiz-option.show-correct .option-label {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.quiz-option.selected-wrong .option-label {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.option-text {
  font-size: var(--fs-sm);
  color: var(--text-dark);
  line-height: 1.3;
  flex: 1;
}

.quiz-feedback {
  border-radius: var(--radius-md);
  padding: clamp(14px, 2vh, 22px);
  display: none;
  gap: 14px;
  align-items: flex-start;
  flex-shrink: 0;
}

.quiz-feedback.show { display: flex; }
.quiz-feedback.correct { border: 2px solid var(--green); background: #d4edda; }
.quiz-feedback.incorrect { border: 2px solid var(--red); background: #f8d7da; }

.feedback-icon {
  width: clamp(32px, 4vw, 44px);
  height: clamp(32px, 4vw, 44px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 2.5vw, 26px);
  flex-shrink: 0;
  color: var(--white);
}

.quiz-feedback.correct .feedback-icon { background: var(--green); }
.quiz-feedback.incorrect .feedback-icon { background: var(--red); }

.feedback-text { flex: 1; }
.feedback-verdict {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.feedback-explanation {
  font-size: var(--fs-xs);
  color: var(--text-dark);
  line-height: 1.5;
}

/* ============================================================
   INTRO SCREEN (Screen 02)
   ============================================================ */
.intro-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.5vw, 32px);
  gap: clamp(14px, 2vh, 24px);
}

.intro-phone-mock {
  max-height: 52vh;
  max-width: 100%;
  object-fit: contain;
  display: block;
  flex-shrink: 1;
}

.intro-tagline {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.5;
  max-width: 560px;
}

/* ============================================================
   INACTIVITY OVERLAY
   ============================================================ */
#inactivity-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 46, 143, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

#inactivity-overlay.show {
  opacity: 1;
  pointer-events: all;
}

#inactivity-overlay h2 {
  color: var(--white);
  font-size: var(--fs-lg);
  text-align: center;
}

#inactivity-countdown {
  color: var(--cyan);
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 900;
  line-height: 1;
}

#inactivity-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-base);
}

/* ============================================================
   SCIENCE INFOGRAPHICS (placeholder screens)
   ============================================================ */
.science-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vh, 36px);
  padding: clamp(24px, 4vw, 56px);
  background: var(--bg);
  text-align: center;
}

.science-placeholder {
  width: 100%;
  max-width: 560px;
  height: clamp(240px, 40vh, 400px);
  background: var(--placeholder-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8aaa;
  font-size: var(--fs-md);
  font-weight: 600;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.gap-sm { gap: clamp(8px, 1.2vw, 14px); }
.gap-md { gap: clamp(14px, 2vw, 24px); }
.hidden { display: none !important; }
