/* ═══════════════════════════════════════════════════
   FEATURES — AI Cinema (Pinned Scroll-Driven, 2 Scenes)
   Scene 1: Upload dropzone
   Scene 2: PDF + Dashboard with Google-AI conic aura
   ═══════════════════════════════════════════════════ */

/* ═══════ OUTER SECTION ═══════ */
.features {
  position: relative;
  /* No vertical padding — pinned cinema sets its own height */
}

/* ═══════ PINNED CINEMA CONTAINER ═══════
   Tall container — drives the pin via ScrollTrigger (n * 100vh).
   JS sets height to 300vh on desktop, 220vh on tablet, auto on mobile. */
.features-cinema {
  position: relative;
  height: 250vh;
}

/* ═══════ STAGE — pinned by ScrollTrigger (NOT CSS sticky) ═══════ */
.features-stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Custom property driven by JS — 0 → 1 over the pinned scroll */
  --p: 0;
  /* Per-scene props derived from --p via JS, also exposed for CSS */
  --upload-p: 0;   /* 0 → 1 within scene 1 */
  --results-p: 0;  /* 0 → 1 within scene 2 */
}

/* ═══════ AMBIENT BACKGROUND ═══════ */
.features-aurora {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(var(--neon-primary-rgb), 0.18), transparent 60%),
    radial-gradient(ellipse 50% 50% at 70% 70%, rgba(var(--neon-secondary-rgb), 0.14), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(64, 196, 255, 0.06), transparent 70%);
  filter: blur(60px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.8s var(--ease-out-quart);
}

.features-grid-fx {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ═══════ HEADER — anchored top, sticky-feeling ═══════ */
.features-header {
  position: absolute;
  top: clamp(60px, 9vh, 110px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  width: min(720px, 92vw);
  pointer-events: none;
}

.features-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(var(--neon-primary-rgb), 0.14), rgba(var(--neon-secondary-rgb), 0.14));
  border: 1px solid rgba(var(--neon-primary-rgb), 0.3);
  color: var(--neon-primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.features-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-primary);
  box-shadow: 0 0 8px var(--neon-primary);
  animation: featuresDot 1.6s ease-in-out infinite;
}

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

.features-headline {
  font-family: var(--font-ar);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  flex-wrap: wrap;
}

.features-headline-accent {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary) 60%, #40c4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Subtle pulse to draw the eye to the number */
  filter: drop-shadow(0 0 24px rgba(var(--neon-primary-rgb), 0.35));
}

.features-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  min-width: 3.2ch;
  text-align: center;
}

.features-counter-label {
  font-size: 0.85em;
}

/* ═══════ SUB-LINE SWAP — two stacked lines, only one visible per scene ═══════ */
.features-sub-swap {
  position: relative;
  height: 2.6em;
  max-width: 560px;
  margin: 0 auto;
}

.features-sub {
  position: absolute;
  inset: 0;
  font-size: clamp(0.92rem, 1.55vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease-out-quart), transform 0.55s var(--ease-out-quart);
}

.features-sub.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════ SCENE BASE — both scenes share this layout slot ═══════ */
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(180px, 26vh, 240px); /* leave room for sticky header */
  padding-bottom: 60px;
  pointer-events: none;
  z-index: 5;
}

/* ═════════ SCENE 1: UPLOAD ═════════ */
.scene--upload {
  /* Visible from --p 0 → 0.5 — opacity driven by JS via custom property
     We compute --upload-p in JS as eased(--p / 0.5) clamped */
  opacity: calc(1 - max(0, (var(--p) - 0.42) / 0.13));
  transform: scale(calc(1 - max(0, (var(--p) - 0.42) / 0.13) * 0.04));
  filter: blur(calc(max(0, (var(--p) - 0.42) / 0.13) * 6px));
}

.drop-frame {
  position: relative;
  width: min(560px, 88vw);
  height: clamp(360px, 52vh, 460px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

/* Animated dashed border — the dashes flow as upload-p increases */
.drop-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.drop-ring-rect {
  stroke: rgba(var(--neon-primary-rgb), 0.5);
  stroke-dasharray: 1.4 1;
  stroke-dashoffset: calc(var(--upload-p, 0) * -8);
  transition: stroke 0.4s, opacity 0.4s;
  filter: drop-shadow(0 0 6px rgba(var(--neon-primary-rgb), 0.4));
}

/* ── Empty state: icon + prompt — fades out as file slides in ── */
.drop-empty {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  /* Fade out as upload-p crosses 0.55 */
  opacity: calc(1 - max(0, (var(--upload-p, 0) - 0.5) / 0.2));
  transform: translateY(calc(max(0, (var(--upload-p, 0) - 0.5)) * -20px));
  transition: none;
}

.drop-icon {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(var(--neon-primary-rgb), 0.15), rgba(var(--neon-secondary-rgb), 0.15));
  border: 1px solid rgba(var(--neon-primary-rgb), 0.3);
  color: var(--neon-primary);
  box-shadow: 0 0 30px rgba(var(--neon-primary-rgb), 0.18);
  /* Bob/pulse synced with the pulse element */
  animation: dropIconBob 3s ease-in-out infinite;
}

.drop-icon svg {
  width: 38px;
  height: 38px;
}

.drop-icon-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  border: 1.5px solid rgba(var(--neon-primary-rgb), 0.4);
  animation: dropIconPulse 2.4s ease-out infinite;
}

@keyframes dropIconBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes dropIconPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.45); opacity: 0; }
}

.drop-label {
  font-family: var(--font-ar);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.drop-hint {
  font-family: var(--font-ar);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.drop-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.drop-badge {
  font-family: var(--font-ar);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* ── File card — slides up from the bottom as upload-p crosses 0.5 ── */
.drop-file {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, calc((1 - max(0, min(1, (var(--upload-p, 0) - 0.4) / 0.5))) * 60px)) scale(calc(0.92 + max(0, min(1, (var(--upload-p, 0) - 0.4) / 0.5)) * 0.08));
  width: min(440px, 80%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(var(--neon-primary-rgb), 0.25);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(var(--neon-primary-rgb), 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 3;
  opacity: max(0, min(1, (var(--upload-p, 0) - 0.4) / 0.3));
  pointer-events: none;
}

.drop-file-icon {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(var(--neon-primary-rgb), 0.4);
}

.drop-file-icon svg {
  width: 24px;
  height: 24px;
}

.drop-file-ext {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.5rem;
  font-weight: 800;
  background: #1a1520;
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  font-family: 'Courier New', monospace;
}

.drop-file-body {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.drop-file-name {
  font-family: var(--font-ar);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: right;
}

.drop-file-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ar);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 8px 0;
  justify-content: flex-end;
}

.drop-file-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.drop-file-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.drop-file-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--neon-primary), var(--neon-secondary));
  /* Width driven by JS via inline style (computed from upload-p) */
  width: calc(max(0%, min(100%, (var(--upload-p, 0) - 0.45) * 200%)));
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(var(--neon-primary-rgb), 0.6);
  transition: width 0.1s linear;
}

.drop-file-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4caf50, #81c784);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  /* Appears only when bar full */
  opacity: max(0, min(1, (var(--upload-p, 0) - 0.85) / 0.1));
  transform: scale(calc(0.5 + max(0, min(1, (var(--upload-p, 0) - 0.85) / 0.1)) * 0.5));
}

.drop-file-check svg {
  width: 16px;
  height: 16px;
}

/* ═════════ SCENE 2: RESULTS ═════════ */
.scene--results {
  /* Appear from --p 0.42 onwards. opacity scales with results-p */
  opacity: calc(max(0, min(1, (var(--p) - 0.4) / 0.18)));
  transform: scale(calc(0.96 + max(0, min(1, (var(--p) - 0.4) / 0.18)) * 0.04));
  pointer-events: none;
}

.scene--results.is-active {
  pointer-events: auto;
}

.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(20px, 3.5vw, 56px);
  width: min(1100px, 92vw);
}

/* ═══════ PANELS — equal-sized, balanced ═══════ */
.panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}

.panel--pdf {
  /* RTL: PDF on the right side (visually left in flex order) */
  position: relative;
  transform:
    rotate(calc(-1.5deg + max(0, min(1, (var(--p) - 0.55) / 0.2)) * 1.5deg))
    translateX(calc(max(0, min(1, (var(--p) - 0.4) / 0.2)) * 8px));
  transition: transform 0.05s linear;
}

/* Paper stack — three offset sheets behind the main card so it feels
   like a real document rather than a single floating chip. */
.pdf-stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pdf-sheet {
  position: absolute;
  inset: 0;
  background: #e8e6dc;
  border-radius: 16px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.pdf-sheet--1 {
  transform: translate(8px, 8px) rotate(2.2deg);
  background: #efede4;
  opacity: 0.92;
}

.pdf-sheet--2 {
  transform: translate(16px, 16px) rotate(4.5deg);
  background: #e2e0d6;
  opacity: 0.7;
}

.pdf-sheet--3 {
  transform: translate(22px, 24px) rotate(-3deg);
  background: #d8d6cc;
  opacity: 0.45;
}

/* Page indicator pill — pinned to the side of the PDF card so the
   document reads as multi-page, not a one-sheet preview. */
.pdf-pages {
  position: absolute;
  top: 50%;
  left: -14px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding: 10px 6px;
  background: rgba(10, 10, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
  font-family: var(--font-ar);
}

.pdf-page {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.pdf-page.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  box-shadow: 0 0 12px rgba(var(--neon-primary-rgb), 0.5);
}

.pdf-page-dots {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 0.5;
}

.pdf-card {
  position: relative;
  z-index: 1;
}

.panel--dash {
  transform: translateX(calc((1 - max(0, min(1, (var(--p) - 0.55) / 0.25))) * -40px));
  opacity: max(0, min(1, (var(--p) - 0.55) / 0.2));
}

/* ═══════ PDF CARD ═══════ */
.pdf-card {
  position: relative;
  background: #f5f4ee;
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  min-height: 320px;
}

.pdf-corner-tag {
  position: absolute;
  top: -8px;
  right: 16px;
  background: #1a1520;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 4;
}

.pdf-upload-badge {
  position: absolute;
  top: 12px;
  left: -6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-ar);
  box-shadow: 0 4px 14px rgba(var(--neon-primary-rgb), 0.5);
  z-index: 4;
}

.pdf-upload-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}

.pdf-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.pdf-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #1a1520;
  font-family: var(--font-ar);
}

.pdf-meta {
  font-size: 0.62rem;
  color: #888;
  font-family: var(--font-ar);
}

.pdf-q {
  margin-bottom: 14px;
}

.pdf-q:last-child {
  margin-bottom: 0;
}

/* Desktop: tighter spacing + hide 3rd question to feel less cramped */
@media (min-width: 821px) {
  .pdf-q {
    margin-bottom: 8px;
  }
  .pdf-q[data-q="2"] {
    display: none;
  }
}

.pdf-q-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2a2a3a;
  margin-bottom: 6px;
  font-family: var(--font-ar);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdf-q-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2a2a3a;
  color: #fff;
  font-size: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdf-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.pdf-opt {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #c8c6be, #d8d6ce);
}

/* ═══════ DASHBOARD CARD ═══════ */
.dash-card {
  position: relative;
  z-index: 2;
  border-radius: 22px;
  background: rgba(10, 10, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 22px 20px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5);
  min-height: 380px;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* macOS-style window-control dots (red/amber/green) — purely decorative,
   replaces a redundant header label. Keeps the topbar visually balanced. */
.dash-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dash-brand-dot:nth-child(1) { background: #ff5f57; }
.dash-brand-dot:nth-child(2) { background: #ffbd2e; }
.dash-brand-dot:nth-child(3) { background: #28c840; }

.dash-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(var(--neon-primary-rgb), 0.12);
  border: 1px solid rgba(var(--neon-primary-rgb), 0.28);
  font-family: var(--font-ar);
}

.dash-count-num {
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.dash-count-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.dash-q-item {
  padding: 12px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 9px;
  /* Stagger reveal: each item appears as results-p crosses its threshold */
  --qi-threshold: 0.6;
  opacity: max(0, min(1, (var(--p) - var(--qi-threshold)) / 0.06));
  transform: translateY(calc((1 - max(0, min(1, (var(--p) - var(--qi-threshold)) / 0.06))) * 12px));
}

.dash-q-item[data-qi="0"] { --qi-threshold: 0.62; }
.dash-q-item[data-qi="1"] { --qi-threshold: 0.7; }
.dash-q-item[data-qi="2"] { --qi-threshold: 0.78; }

.dash-q-item:last-child {
  margin-bottom: 0;
}

.dash-q-text {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 9px;
  font-family: var(--font-ar);
  direction: rtl;
  line-height: 1.5;
}

.dash-opts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.dash-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-family: var(--font-ar);
  direction: rtl;
  border: 1px solid transparent;
  color: var(--text-muted);
  transition: background 0.2s;
}

.dash-opt.is-correct {
  background: transparent;
  border-color: transparent;
  color: #81c784;
}

.dash-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.dash-opt.is-correct .dash-mark {
  background: rgba(76, 175, 80, 0.3);
  color: #a5d6a7;
}

.dash-check {
  margin-right: auto;
  font-size: 0.65rem;
  font-weight: 800;
  opacity: 0.85;
}

.dash-explain {
  font-size: 0.6rem;
  color: rgba(var(--neon-primary-rgb), 0.85);
  padding: 5px 10px;
  border-radius: 7px;
  background: transparent;
  border-right: 2px solid rgba(var(--neon-primary-rgb), 0.45);
  direction: rtl;
  font-family: var(--font-ar);
  line-height: 1.5;
}

/* ═══════ AI AURA — Google-style rotating conic gradient ═══════
   Implementation: a square inner pseudo-element rotates around its own
   center, masked by the parent's rounded rectangle. Rotating a square
   ensures symmetric coverage at every angle (rotating a non-square
   rectangle creates asymmetric corner exposure). */
.ai-aura {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  /* Reveal as results scene becomes active */
  opacity: max(0, min(1, (var(--p) - 0.58) / 0.1));
  transition: opacity 0.05s linear;
}

.ai-aura::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  /* Square sized to cover the parent at any rotation. 250% of the
     parent's longer dimension via vmax-based sizing keeps it big enough
     across all viewports without clipping at the corners. */
  width: max(250%, 600px);
  aspect-ratio: 1;
  background: conic-gradient(
    from 0deg,
    #e040fb 0deg,
    #7c4dff 60deg,
    #40c4ff 130deg,
    #64ffda 200deg,
    #ff9800 270deg,
    #e040fb 360deg
  );
  filter: saturate(1.25);
  will-change: transform;
  animation: ai-aura-rotate 3.6s linear infinite;
}

.ai-aura::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 20px;
  background: var(--bg-deep);
  z-index: 1;
}

/* Square spins about its own center; translate keeps it centered in parent. */
@keyframes ai-aura-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Outer ambient glow that bleeds beyond the dashboard */
.ai-aura-soft {
  position: absolute;
  inset: -22px;
  border-radius: 38px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: max(0, min(0.65, (var(--p) - 0.6) / 0.1));
}

.ai-aura-soft::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(220%, 600px);
  aspect-ratio: 1;
  background: conic-gradient(
    from 0deg,
    rgba(var(--neon-primary-rgb), 0.55),
    rgba(var(--neon-secondary-rgb), 0.55),
    rgba(64, 196, 255, 0.55),
    rgba(100, 255, 218, 0.55),
    rgba(255, 152, 0, 0.45),
    rgba(var(--neon-primary-rgb), 0.55)
  );
  filter: blur(26px);
  will-change: transform;
  animation: ai-aura-rotate 3.6s linear infinite;
}

/* ═══════ SCROLL HINT ═══════ */
.features-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ar);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  z-index: 10;
  pointer-events: none;
  /* Fade out after intro */
  opacity: calc(1 - max(0, min(1, var(--p) / 0.2)));
  transition: opacity 0.2s linear;
}

.features-scroll-hint-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--neon-primary), transparent);
  animation: scrollHintLine 2s ease-in-out infinite;
}

@keyframes scrollHintLine {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* ═══════ SECONDARY GRID HEADER ═══════ */
.features-secondary-container {
  padding-top: clamp(40px, 5vh, 64px);
  padding-bottom: clamp(40px, 5vh, 64px);
}

.features-secondary-header {
  text-align: center;
  margin-bottom: 28px;
}

.features-secondary-title {
  font-family: var(--font-ar);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  position: relative;
  display: inline-block;
}

.features-secondary-title::before,
.features-secondary-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38px;
  height: 1px;
}

.features-secondary-title::before {
  right: calc(100% + 14px);
  background: linear-gradient(90deg, rgba(var(--neon-primary-rgb), 0.35), transparent);
}

.features-secondary-title::after {
  left: calc(100% + 14px);
  background: linear-gradient(90deg, transparent, rgba(var(--neon-primary-rgb), 0.35));
}

/* ═══════ FEATURES GRID (compact) ═══════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out-quart);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--neon-primary-rgb), 0.14);
  background: var(--bg-glass-hover);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.18),
    0 0 16px rgba(var(--neon-primary-rgb), 0.05);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(var(--neon-primary-rgb), 0.08);
  border: 1px solid rgba(var(--neon-primary-rgb), 0.1);
  color: var(--neon-primary);
  margin-bottom: 14px;
  transition: all 0.3s var(--ease-out-quart);
}

.feature-card:hover .feature-icon {
  background: rgba(var(--neon-primary-rgb), 0.12);
  box-shadow: 0 0 14px rgba(var(--neon-primary-rgb), 0.15);
}

.feature-title {
  font-family: var(--font-ar);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .features-cinema { height: 260vh; }
  .panel { max-width: 420px; }
  .dual { gap: 28px; }
}

@media (max-width: 820px) {
  /* Tablet: stack panels vertically inside the dual layout */
  .features-cinema { height: 240vh; }

  .dual {
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(560px, 92vw);
  }

  .panel--pdf,
  .panel--dash {
    max-width: 460px;
    transform: none !important;
    opacity: 1;
  }

  .scene--results {
    padding-top: clamp(190px, 24vh, 220px);
    padding-bottom: 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
  }

  .pdf-card,
  .dash-card {
    min-height: 280px;
  }

  .features-scroll-hint { display: none; }
}

/* ═══════════════════════════════════════════════════
   MOBILE (≤ 768px) — Pinned cinema, 3 SEQUENTIAL scenes:
     Scene A (upload):    p 0.00 → 0.30  (drives counter + progress)
     Scene B (PDF only):  p 0.32 → 0.60
     Scene C (Dashboard): p 0.60 → 1.00
   Panels stack via CSS Grid `grid-area: stack`. Visibility is driven
   purely by --p so the same scrub feeds all three scenes seamlessly.
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Pinned cinema container; JS sets explicit height in vh ──
     Kept short (≈240vh) so the section doesn't dominate page scroll. */
  .features-cinema {
    height: 240vh;
  }

  /* Pinned stage: same as desktop (full viewport, hidden overflow). */
  .features-stage {
    height: 100vh;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    position: relative;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
  }

  /* Lighter ambient for mobile GPU perf */
  .features-aurora {
    inset: -4%;
    filter: blur(45px);
    opacity: 0.55;
  }

  .features-grid-fx {
    opacity: 0.18;
    background-size: 40px 40px;
  }

  /* ── Header: pinned at top, compact, always visible ── */
  .features-header {
    position: absolute;
    top: clamp(20px, 5.5vh, 50px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 28px);
    max-width: 420px;
    padding: 0 6px;
    text-align: center;
    z-index: 10;
    pointer-events: none;
  }

  .features-badge {
    font-size: 0.7rem;
    padding: 5px 13px;
    margin-bottom: 10px;
  }

  .features-badge-dot {
    width: 6px;
    height: 6px;
  }

  .features-headline {
    font-size: clamp(1.55rem, 7vw, 2rem);
    gap: 0.22em;
    margin: 0 0 8px 0;
    line-height: 1.18;
    letter-spacing: -0.015em;
    flex-wrap: wrap;
  }

  .features-counter {
    min-width: 2.8ch;
  }

  /* Two stacked subs that crossfade as scrub progresses */
  .features-sub-swap {
    height: 2.6em;
    min-height: 2.6em;
  }

  .features-sub {
    position: absolute;
    inset: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    padding: 0 4px;
    /* base rule already handles opacity transition + is-active */
  }

  .features-sub[data-sub="1"] {
    /* override the previous mobile rule that hid the second sub */
    display: block;
  }

  /* ── Scenes: stacked absolute layers — only one visible at a time ── */
  .scene {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    /* Top padding leaves room for the header (headline + sub, no badge).
       Tighter on mobile so the taller PDF card fits comfortably. */
    padding: clamp(120px, 18vh, 160px) 22px 24px;
    margin: 0;
    width: 100%;
    max-width: none;
    pointer-events: none;
  }

  /* No vertical divider in pinned mode */
  .scene--upload::after {
    display: none;
  }

  /* ─── Scene A — UPLOAD (visible p 0 → ~0.30) ─── */
  .scene--upload {
    /* Fades out faster on mobile so PDF can take over */
    opacity: calc(1 - max(0, (var(--p) - 0.27) / 0.06));
    transform: scale(calc(1 - max(0, (var(--p) - 0.27) / 0.06) * 0.05));
    filter: blur(calc(max(0, (var(--p) - 0.27) / 0.06) * 4px));
    pointer-events: auto;
  }

  .scene--upload .drop-frame {
    width: 100%;
    max-width: 360px;
    height: auto;
    min-height: 0;
    padding: 24px 20px 22px;
    border-radius: 24px;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  }

  .drop-empty {
    position: relative;
    inset: auto;
    /* Use scroll-driven fade like desktop, but with mobile-specific thresholds */
    opacity: calc(1 - max(0, (var(--upload-p, 0) - 0.45) / 0.2));
    transform: translateY(calc(max(0, (var(--upload-p, 0) - 0.45)) * -16px));
    gap: 10px;
    padding: 2px 0 0;
  }

  .drop-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .drop-icon svg {
    width: 28px;
    height: 28px;
  }

  .drop-icon-pulse {
    inset: -5px;
    border-radius: 22px;
  }

  .drop-label { font-size: 0.98rem; }
  .drop-hint { font-size: 0.76rem; }
  .drop-badges { gap: 6px; margin-top: 2px; }
  .drop-badge { font-size: 0.64rem; padding: 3px 10px; }

  /* File card slides up from the bottom of the drop-frame, scroll-driven */
  .drop-file {
    position: relative;
    inset: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    transform: translateY(calc((1 - max(0, min(1, (var(--upload-p, 0) - 0.35) / 0.45))) * 30px))
               scale(calc(0.94 + max(0, min(1, (var(--upload-p, 0) - 0.35) / 0.45)) * 0.06));
    opacity: max(0, min(1, (var(--upload-p, 0) - 0.35) / 0.25));
    padding: 11px 12px;
    gap: 11px;
    pointer-events: auto;
    border-radius: 14px;
    margin-top: 4px;
  }

  .drop-file-icon { width: 44px; height: 44px; border-radius: 11px; }
  .drop-file-icon svg { width: 20px; height: 20px; }
  .drop-file-ext { font-size: 0.45rem; bottom: 3px; right: 3px; padding: 1px 3px; }
  .drop-file-name { font-size: 0.78rem; margin-bottom: 3px; }
  .drop-file-meta { font-size: 0.66rem; gap: 6px; }
  .drop-file-bar { height: 3px; }

  /* Progress bar: scroll-driven via --upload-p (matches desktop formula) */
  .drop-file-bar-fill {
    width: calc(max(0%, min(100%, (var(--upload-p, 0) - 0.4) * 220%)));
    transition: none;
  }

  /* Check mark pops near the end of upload */
  .drop-file-check {
    width: 26px;
    height: 26px;
    opacity: max(0, min(1, (var(--upload-p, 0) - 0.85) / 0.1));
    transform: scale(calc(0.4 + max(0, min(1, (var(--upload-p, 0) - 0.85) / 0.1)) * 0.6));
  }

  .drop-file-check svg { width: 12px; height: 12px; }

  /* ─── Scene B + C — RESULTS (PDF then Dashboard, stacked) ─── */
  /* Stage's results scene is always visible after upload fades.
     Inside, the two panels share one CSS-grid cell and crossfade. */
  .scene--results {
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: none;
  }

  .scene--results.is-active {
    pointer-events: auto;
  }

  .scene--results .dual {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "stack";
    place-items: center;
    width: 100%;
    max-width: 380px;
    gap: 0;
    margin: 0 auto;
  }

  .panel {
    grid-area: stack;
    width: 100%;
    max-width: 360px;
    margin: 0;
    position: relative;
  }

  /* Scene B: PDF — visible roughly p 0.30 → 0.60 */
  .panel--pdf {
    z-index: 2;
    transform: translateY(calc((1 - max(0, min(1, (var(--p) - 0.28) / 0.06))) * 24px))
               scale(calc(0.94 + max(0, min(1, (var(--p) - 0.28) / 0.06)) * 0.06));
    opacity: calc(
      max(0, min(1, (var(--p) - 0.28) / 0.05))
      * (1 - max(0, min(1, (var(--p) - 0.56) / 0.05)))
    );
  }

  /* Scene C: Dashboard — visible roughly p 0.6 → 1.0 */
  .panel--dash {
    z-index: 1;
    transform: translateY(calc((1 - max(0, min(1, (var(--p) - 0.58) / 0.06))) * 24px))
               scale(calc(0.94 + max(0, min(1, (var(--p) - 0.58) / 0.06)) * 0.06));
    opacity: max(0, min(1, (var(--p) - 0.58) / 0.06));
  }

  /* PDF card sizing (mobile) — taller so it fills the viewport
     instead of leaving an empty stripe above. */
  .pdf-card {
    padding: 22px 18px 24px;
    min-height: clamp(420px, 58vh, 520px);
    border-radius: 16px;
  }

  .pdf-title { font-size: 0.78rem; }
  .pdf-meta { font-size: 0.62rem; }
  .pdf-q-label { font-size: 0.74rem; }
  .pdf-q-num { width: 18px; height: 18px; font-size: 0.6rem; }
  .pdf-upload-badge { font-size: 0.6rem; padding: 4px 10px; }
  .pdf-corner-tag { font-size: 0.52rem; padding: 2px 8px; }

  /* Mobile-tuned paper stack — slightly tighter offsets so the
     extra sheets stay inside the viewport. */
  .pdf-sheet--1 { transform: translate(6px, 6px) rotate(2deg); }
  .pdf-sheet--2 { transform: translate(12px, 12px) rotate(4deg); }
  .pdf-sheet--3 { transform: translate(18px, 18px) rotate(-2.5deg); }

  /* Page indicator: smaller, snug to the card on mobile */
  .pdf-pages {
    left: -10px;
    padding: 8px 4px;
    gap: 5px;
  }
  .pdf-page { width: 16px; height: 16px; font-size: 0.55rem; }
  .pdf-page-dots { font-size: 0.62rem; }

  /* Keep the third PDF question visible on mobile — fills the card
     and reads as a real exam page. */
  .pdf-q[data-q="2"] {
    display: block;
  }

  /* Dashboard card sizing (mobile) — compact so it fits in the viewport
     without overflow / inner scrolling. */
  .dash-card {
    padding: 14px 14px 16px;
    min-height: 0;
    border-radius: 18px;
  }

  .dash-topbar {
    margin-bottom: 10px;
    padding-bottom: 9px;
  }

  .dash-brand-dot { width: 8px; height: 8px; }
  .dash-count { padding: 3px 10px; }
  .dash-count-num { font-size: 0.82rem; }
  .dash-count-label { font-size: 0.6rem; }

  /* Hide the third question on mobile — keeping two keeps the card compact
     and the answers feel like a peek rather than a full transcript. */
  .dash-q-item[data-qi="2"] {
    display: none;
  }

  /* Dashboard questions — appear quickly together at the start of Scene C
     (instead of staggering across 30% of scroll) so the card never looks
     half-empty. Tight thresholds give a snappy reveal. */
  .dash-q-item {
    padding: 9px 11px;
    margin-bottom: 7px;
    opacity: max(0, min(1, (var(--p) - var(--qi-threshold)) / 0.03));
    transform: translateY(calc((1 - max(0, min(1, (var(--p) - var(--qi-threshold)) / 0.03))) * 8px));
  }

  .dash-q-item[data-qi="0"] { --qi-threshold: 0.60; }
  .dash-q-item[data-qi="1"] { --qi-threshold: 0.64; }

  .dash-q-text { font-size: 0.7rem; margin-bottom: 6px; }
  .dash-opts { gap: 4px; }
  .dash-opt { font-size: 0.66rem; padding: 4px 8px; gap: 7px; }
  .dash-mark { width: 14px; height: 14px; font-size: 0.54rem; }

  /* Compact explanation: one line, ellipsis, smaller padding */
  .dash-explain {
    font-size: 0.58rem;
    padding: 4px 8px;
    line-height: 1.45;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ── AI Aura: slower spin for mobile GPUs (visual identical) ── */
  .ai-aura::before { animation-duration: 5.5s; }
  .ai-aura-soft::before {
    animation-duration: 5.5s;
    filter: blur(20px);
  }
  .ai-aura-soft { inset: -16px; border-radius: 32px; }

  /* Scroll hint stays visible near the bottom of the pinned stage */
  .features-scroll-hint {
    display: flex;
    bottom: 16px;
    font-size: 0.66rem;
  }

  .features-scroll-hint-line {
    height: 24px;
  }

  /* Secondary grid spacing */
  .features-secondary-container {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .features-secondary-title {
    font-size: 1.05rem;
  }

  .features-secondary-title::before,
  .features-secondary-title::after {
    width: 26px;
  }
}

/* ═══════════════════════════════════════════════════
   VERY SMALL (≤ 480px) — additional tightening
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* Stage stays pinned; only tighten side padding on scenes */
  .scene {
    padding-left: 16px;
    padding-right: 16px;
  }

  .features-header {
    width: calc(100vw - 24px);
    padding: 0 4px;
  }

  .features-headline {
    font-size: clamp(1.5rem, 7.5vw, 1.85rem);
  }

  .features-sub {
    font-size: 0.78rem;
  }

  .scene--upload .drop-frame {
    padding: 22px 16px 18px;
    border-radius: 20px;
    gap: 14px;
    max-width: 320px;
  }

  .drop-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .drop-icon svg {
    width: 26px;
    height: 26px;
  }

  .drop-label {
    font-size: 0.95rem;
  }

  .drop-hint {
    font-size: 0.74rem;
  }

  .drop-badge {
    font-size: 0.62rem;
    padding: 2px 8px;
  }

  .drop-file {
    padding: 9px 10px;
    gap: 9px;
    border-radius: 12px;
  }

  .drop-file-icon {
    width: 40px;
    height: 40px;
  }

  .drop-file-name {
    font-size: 0.74rem;
  }

  .drop-file-meta {
    font-size: 0.62rem;
  }

  .scene--results .dual {
    max-width: 340px;
  }

  .panel {
    max-width: 320px;
  }

  .pdf-card {
    padding: 18px 15px 20px;
  }

  .dash-card {
    padding: 16px 14px 18px;
  }

  .dash-q-item {
    padding: 10px 11px;
  }

  .dash-q-text {
    font-size: 0.7rem;
  }

  .dash-opt {
    font-size: 0.65rem;
    padding: 5px 8px;
    gap: 6px;
  }

  .dash-explain {
    font-size: 0.58rem;
  }
}

/* ═══════ REDUCED MOTION ═══════ */
@media (prefers-reduced-motion: reduce) {
  .features-badge-dot,
  .drop-icon,
  .drop-icon-pulse,
  .features-scroll-hint-line,
  .ai-aura::before,
  .ai-aura-soft {
    animation: none !important;
  }

  /* Disable scroll-driven properties — show results scene immediately */
  .features-stage {
    --p: 0.85;
    --upload-p: 1;
  }

  .features-cinema {
    height: auto;
  }

  .features-stage {
    height: auto;
    min-height: 100vh;
  }

  .scene {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .panel--pdf,
  .panel--dash {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ═══════ MOBILE: STATIC FEATURES STAGE (no pinned cinema) ═══════
   On phones we skip the scroll-pinned counter/upload reveal entirely.
   The stage shows the final dashboard state in a single static layout,
   and we kill the floating dot + AI aura rotation animations to avoid
   continuous repaints/GPU spend. Desktop unaffected. */
@media (max-width: 767px) {
  .features-cinema { height: auto !important; }
  .features-stage.mobile-static {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    padding: 60px 16px 40px !important;
    overflow: visible !important;
  }
  .features-stage.mobile-static .features-aurora,
  .features-stage.mobile-static .features-grid-fx {
    animation: none !important;
  }
  .features-stage.mobile-static .ai-aura,
  .features-stage.mobile-static .ai-aura-soft,
  .features-stage.mobile-static .drop-icon-pulse,
  .features-stage.mobile-static .drop-ring-rect,
  .features-stage.mobile-static .features-scroll-hint,
  .features-stage.mobile-static .features-counter ~ * .scroll-hint-line,
  .features-stage.mobile-static .scene--upload {
    animation: none !important;
  }
  /* Hide the upload scene entirely on mobile — we jump straight to the
     dashboard result state since that's what conveys the value. */
  .features-stage.mobile-static .scene--upload { display: none !important; }
  .features-stage.mobile-static .features-scroll-hint { display: none !important; }
  /* Show results scene flat (no transform/scale tied to --p) */
  .features-stage.mobile-static .scene--results {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
