/* ==========================================================
   HookRev — Liquid Glass Design System
   ========================================================== */

:root {
  /* Deep-space surfaces */
  --surface: #131315;
  --surface-lowest: #0c0c0e;
  --surface-low: #17171a;
  --surface-container: #1c1c20;
  --surface-container-high: #22222a;
  --surface-bright: #2a2a34;

  /* Brand tones */
  --primary: #EA3838;            /* Racing red (hot) */
  --primary-soft: #FFB3AD;       /* Racing red (readable) */
  --primary-container: #FF544E;
  --secondary: #FFDB3C;          /* Tachometer yellow */
  --secondary-soft: #FFF9EF;
  --tertiary: #00DAF3;           /* Electric cyan */

  /* On-colors */
  --on-surface: #F6F5F2;
  --on-surface-muted: #B9B5AC;
  --on-surface-dim: #6F6B63;

  /* Glass edge */
  --specular: rgba(255,255,255,0.14);
  --specular-strong: rgba(255,255,255,0.22);

  /* Shadow */
  --shadow-soft: 0 30px 90px rgba(0,0,0,0.45);
  --shadow-hot: 0 20px 80px rgba(234,56,56,0.22);
  --shadow-cool: 0 20px 80px rgba(0,218,243,0.16);

  /* Radii */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Type */
  --font-display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ---------- Refractive Mesh ---------- */
.mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 80% 110%, rgba(0,218,243,0.10), transparent 60%),
    radial-gradient(900px 700px at 0% 0%, rgba(234,56,56,0.10), transparent 55%),
    radial-gradient(800px 600px at 60% 20%, rgba(255,219,60,0.05), transparent 60%),
    var(--surface);
}
.mesh::before, .mesh::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: .55;
  animation: orbFloat 22s ease-in-out infinite alternate;
}
.mesh::before {
  width: 520px; height: 520px; background: #EA3838;
  top: -140px; left: -100px;
}
.mesh::after {
  width: 620px; height: 620px; background: #00DAF3;
  bottom: -220px; right: -120px; animation-duration: 28s;
}
.mesh .orb3 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: #FFDB3C; filter: blur(140px); opacity: .15;
  top: 40%; left: 55%;
  animation: orbFloat 34s ease-in-out infinite alternate;
}
@keyframes orbFloat {
  0%   { transform: translate(0,0)   scale(1); }
  50%  { transform: translate(60px,-40px) scale(1.08); }
  100% { transform: translate(-40px,60px) scale(0.95); }
}

/* ---------- Glass surfaces ---------- */
.glass {
  background: rgba(22, 22, 26, 0.55);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--specular);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}
.glass-thin {
  background: rgba(30, 30, 36, 0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
}
.glass-deep {
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid var(--specular);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 120px rgba(0,0,0,0.55);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid var(--specular);
  border-radius: var(--r-pill);
  padding: 14px 22px;
  font-size: 14px;
  color: var(--on-surface);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn:hover { filter: saturate(180%) brightness(1.06); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 60%), var(--secondary);
  color: #1a1406;
  border: 1px solid rgba(255,255,255,0.28);
  text-transform: uppercase;
  box-shadow: 0 18px 50px rgba(255,219,60,0.25), inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-hot {
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 60%), var(--primary-container);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 18px 50px rgba(234,56,56,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-ghost { background: transparent; }
.btn-sm { padding: 9px 14px; font-size: 12px; }
.btn-icon {
  width: 42px; height: 42px; padding: 0; border-radius: 50%;
  justify-content: center;
}

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; font-family: var(--font-display);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--specular);
  color: var(--on-surface);
  backdrop-filter: blur(12px);
}
.chip-hot { background: rgba(234,56,56,0.18); color: var(--primary-soft); border-color: rgba(234,56,56,0.35); }
.chip-cyan { background: rgba(0,218,243,0.14); color: var(--tertiary); border-color: rgba(0,218,243,0.3); }
.chip-yellow { background: rgba(255,219,60,0.16); color: var(--secondary); border-color: rgba(255,219,60,0.3); }
.chip-amber { background: rgba(255, 176, 32, 0.18); color: #ffb020; }
.chip-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 10px #4ade80;
}

/* ---------- Inputs ---------- */
.field {
  display: flex; flex-direction: column; gap: 8px;
}
.field > label {
  font-family: var(--font-display);
  font-size: 10.5px; letter-spacing: 0.14em; font-weight: 700;
  color: var(--on-surface-muted); text-transform: uppercase;
}
.input, .select, .textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--on-surface);
  background: rgba(8,8,10,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-pill);
  padding: 13px 18px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.55), inset 0 -1px 0 rgba(255,255,255,0.04);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.textarea {
  border-radius: var(--r-md); resize: none; min-height: 84px;
  line-height: 1.5;
}
.input::placeholder, .textarea::placeholder { color: var(--on-surface-dim); }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(0,218,243,0.4);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.55), 0 0 0 3px rgba(0,218,243,0.15);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23B9B5AC' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 42px;
}

/* Segmented */
.seg {
  display: inline-flex; padding: 4px;
  background: rgba(8,8,10,0.6);
  border-radius: var(--r-pill);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}
.seg button {
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.04em;
  padding: 9px 18px; border-radius: var(--r-pill);
  background: transparent; color: var(--on-surface-muted);
  border: none; cursor: pointer;
  transition: all .15s ease;
}
.seg button.active {
  background: rgba(234,56,56,0.25);
  color: var(--primary-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.seg.cyan button.active { background: rgba(0,218,243,0.22); color: var(--tertiary); }
.seg.yellow button.active { background: rgba(255,219,60,0.22); color: var(--secondary); }

/* ---------- Type ---------- */
.display, h1, h2 { font-family: var(--font-display); letter-spacing: -0.02em; }
.display { font-weight: 800; font-size: 2.5rem; line-height: 1.02; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.section-label {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: 0.16em; font-weight: 800;
  text-transform: uppercase;
}
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ---------- Utility ---------- */
.row { display: flex; align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.col { display: flex; flex-direction: column; }
.spacer { flex: 1; }

.muted { color: var(--on-surface-muted); }
.dim { color: var(--on-surface-dim); }

/* Scrollbar */
.scroll::-webkit-scrollbar { width: 8px; }
.scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
.scroll::-webkit-scrollbar-track { background: transparent; }

/* Striped placeholder (for images we don't have) */
.placeholder-stripes {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 10px, rgba(255,255,255,0.01) 10px 20px),
    linear-gradient(180deg, #1c1c22, #0e0e12);
}

/* Pulsing dot */
.dot-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.7);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* Chat composer / typing dots (Listing chat step) */
.chat-textarea::placeholder { color: var(--on-surface-dim); }
.chat-textarea:focus { outline: none; }
.chat-textarea::-webkit-scrollbar { width: 6px; }
.chat-textarea::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.chat-textarea::-webkit-scrollbar-track { background: transparent; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--on-surface-muted);
  display: inline-block;
  animation: dotBounce 1.1s ease-in-out infinite;
  margin: 0 2px;
}
@keyframes dotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(6,6,10,0.55);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0 } to { transform: none; opacity: 1 } }
.modal {
  animation: slideUp .28s cubic-bezier(.2,.8,.2,1);
  max-height: 92vh; overflow: auto;
}

/* Progress ring */
.ring {
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

/* Phone card (Hook Video preview) */
.hook-card {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--specular);
  background: #0a0a0c;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hook-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}

/* Ticker scrolling */
.ticker {
  display: flex; gap: 40px;
  animation: tickerScroll 32s linear infinite;
  white-space: nowrap;
}
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* Toggle */
.toggle {
  width: 44px; height: 24px; border-radius: 999px;
  background: rgba(8,8,10,0.7);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  position: relative; cursor: pointer;
  transition: background .2s ease;
  border: 1px solid rgba(255,255,255,0.06);
}
.toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #d6d4cc; transition: all .2s ease;
}
.toggle.on { background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent), var(--secondary); border-color: rgba(255,255,255,0.3); }
.toggle.on::after { left: 22px; background: #2a1e00; }

/* Sparkline */
.spark {
  stroke: var(--tertiary); stroke-width: 2; fill: none;
  filter: drop-shadow(0 0 6px rgba(0,218,243,0.4));
}
.spark-fill { fill: url(#sparkFill); opacity: 0.5; }

/* Generation step */
.step-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}
.step-row.active { background: rgba(0,218,243,0.08); }
.step-row.done .step-bullet { background: #4ade80; color: #06240f; }
.step-bullet {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: var(--on-surface-muted);
  flex: none;
}
.step-row.active .step-bullet { background: var(--tertiary); color: #001419; }

/* Small animated loading bar */
.linebar {
  height: 3px; width: 100%; border-radius: 2px;
  background: rgba(255,255,255,0.06); overflow: hidden; position: relative;
}
.linebar::after {
  content: ''; position: absolute; left: -40%; top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--tertiary), transparent);
  animation: lineSlide 1.6s ease-in-out infinite;
}
@keyframes lineSlide { to { left: 100%; } }

/* Inline spinner — adopts currentColor so it works on yellow + dark backgrounds */
.hr-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  opacity: 0.75;
  animation: hrSpin 0.7s linear infinite;
  flex: none;
  vertical-align: -2px;
}
@keyframes hrSpin { to { transform: rotate(360deg); } }

/* ==========================================================
   Conversational Create-Hook modal — chat pane + review form
   ========================================================== */
/* Full-width chat list — wider side gutters at desktop pull bubbles toward
   center for a chat feel; gutters collapse on mobile. */
.chat-fullwidth-msgs {
  padding-left: 22% !important;
  padding-right: 22% !important;
}
@media (max-width: 1099px) {
  .chat-fullwidth-msgs { padding-left: 14% !important; padding-right: 14% !important; }
}
@media (max-width: 700px) {
  .chat-fullwidth-msgs { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Review-form grid: 2 cols at desktop, single col on phones. */
.review-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
@media (max-width: 700px) {
  .review-form-grid { grid-template-columns: 1fr; }
}

/* Tweaks */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 280px;
  padding: 16px;
}
.tweaks-panel.hidden { display: none; }

/* Form step tabs */
.steps {
  display: flex; align-items: center; gap: 6px;
}
.steps .step {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-surface-dim);
}
.steps .step.active { color: var(--on-surface); }
.steps .step.done { color: var(--primary-soft); }
.steps .step .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: grid; place-items: center;
  font-size: 11px;
}
.steps .step.active .num { background: var(--primary-container); color: #fff; }
.steps .step.done .num { background: rgba(234,56,56,0.2); color: var(--primary-soft); }
.steps .divider {
  width: 28px; height: 1px; background: rgba(255,255,255,0.08);
}

/* ==========================================================
   Explore grid — container-width aware, 5→1 columns
   ========================================================== */
.explore-grid {
  display: grid;
  gap: 28px;
  width: 100%;
  justify-content: start;
  /* Tracks grow within a min/max band to fill the row evenly, then break
     to a new column. 280–340px hits the readability/density sweet spot
     for 9:16 thumbnails and matches Reels/TikTok web feed sizing.       */
  grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
}
@media (max-width: 1099px) {
  .explore-grid { gap: 22px; grid-template-columns: repeat(auto-fill, minmax(240px, 300px)); }
}
@media (max-width: 700px) {
  .explore-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); }
}
@media (max-width: 480px) {
  .explore-grid { gap: 14px; grid-template-columns: 1fr; }
}

/* Player action stack — heart pop on favorite + center-screen heart burst on
   double-tap. The pop is keyed off `data-favorited="true"` so it replays
   whenever React toggles the attribute. */
@keyframes heartPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.player-heart-btn[data-favorited="true"] svg {
  animation: heartPop 240ms ease-out;
}

/* Owner-only download button — present at 0.6 opacity so the action stack
   stays clean, fades to full visibility on hover so the user knows it's
   live. The disabled state during a download stays at full opacity (the
   spinner is the feedback channel). */
.player-download-btn {
  opacity: 0.6;
  transition: opacity 160ms ease;
}
.player-download-btn:hover,
.player-download-btn:focus-visible,
.player-download-btn[aria-busy="true"] {
  opacity: 1;
}

@keyframes heartBurst {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  20%  { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}
.heart-burst {
  position: absolute; top: 50%; left: 50%;
  pointer-events: none;
  color: rgba(234,56,56,0.95);
  filter: drop-shadow(0 8px 24px rgba(234,56,56,0.55));
  animation: heartBurst 600ms ease-out forwards;
  z-index: 6;
  will-change: transform, opacity;
}

/* GPS-style location minimap (detail page) */
.location-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 20px;
}
.minimap {
  position: relative;
  width: 120px; height: 120px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--specular);
  box-shadow: var(--shadow-cool), inset 0 0 0 1px rgba(0,218,243,0.18);
  background: radial-gradient(circle at 50% 55%, #1a1a22 0%, #0a0a0e 70%);
}
.minimap-tile {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.08) brightness(0.92);
}
.minimap-fallback {
  position: absolute; inset: 0;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(0,218,243,0.06) 0deg 6deg, transparent 6deg 18deg),
    radial-gradient(circle at 50% 50%, rgba(0,218,243,0.18) 0%, transparent 55%),
    #0a0a0e;
}
.minimap-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.minimap-pin {
  position: absolute; top: 50%; left: 50%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(234,56,56,0.7), 0 0 12px rgba(234,56,56,0.85);
  animation: pulse 1.8s ease-out infinite;
}
.location-meta {
  display: flex; flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.location-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--tertiary);
  text-transform: uppercase;
}
.location-city {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  margin: 0;
  color: var(--on-surface);
  overflow: hidden; text-overflow: ellipsis;
}
.location-sub {
  font-size: 11.5px;
  color: var(--on-surface-dim);
  letter-spacing: 0.02em;
}

/* Phase 2 — Accessibility motion guard (UI-SPEC §Motion).
   Disable marquee, pulses, shimmers, and orb floats; keep static state. */
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; transform: none; }
  .dot-pulse { animation: none; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
  .linebar::after { animation: none; left: 0; width: 100%; opacity: 0.4; }
  .mesh::before, .mesh::after, .mesh .orb3 { animation: none; }
  .ring circle { transition: none; }
  .player-heart-btn[data-favorited="true"] svg { animation: none; }
  .heart-burst { animation: none; opacity: 0; }
  .minimap-pin { animation: none; box-shadow: 0 0 8px rgba(234,56,56,0.6); }
}

/* ---------- Landing page (web/landing.jsx, 2026-05 supersimple pivot) ----------
   Class names are kept unprefixed to match the Hormozi handoff design
   (hookrev-supersimple-Alex Hormozi-handoff/project/index.html inline styles).
   Modal scroll/centering reuses the existing .modal-backdrop class above. */
.vibe-tile {
  position: relative;
  aspect-ratio: 9 / 12;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--specular);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  background: #0a0a0c;
}
.vibe-tile:hover { transform: translateY(-2px); }
.vibe-tile.active {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(255,219,60,0.4), 0 18px 50px rgba(255,219,60,0.18);
  transform: translateY(-2px);
}
.vibe-tile.active::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(255,219,60,0.12) 100%);
  pointer-events: none;
}
.vibe-tile .vlabel {
  position: absolute; left: 10px; bottom: 8px; right: 10px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.vibe-tile .vcheck {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--secondary);
  color: #1a1406;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.6);
  transition: opacity .15s ease, transform .15s ease;
}
.vibe-tile.active .vcheck { opacity: 1; transform: scale(1); }

/* ---------- Interactive Before/After Showcase (landing) ---------- */
.showcase-stage {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 0;
}
@media (max-width: 760px) {
  .showcase-stage { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
  .showcase-stage .transform-beam { transform: rotate(90deg); width: 60%; }
  .phone-frame { max-width: 320px; }
}
.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  border: 1px solid var(--specular);
  background: #05050a;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    inset 0 0 0 6px #0b0b0f,
    inset 0 0 0 7px rgba(255,255,255,0.06);
}
.phone-frame .phone-content {
  position: absolute; inset: 12px;
  border-radius: 28px;
  overflow: hidden;
  background: #08080c;
}
.phone-frame .phone-label {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
}
.phone-frame .phone-sublabel {
  position: absolute;
  top: 44px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
}
.phone-frame.before .phone-content {
  filter: saturate(.7) brightness(.85);
}
.phone-frame.before .phone-content img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.phone-frame.after video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s ease;
}
.phone-frame .live-dot {
  position: absolute;
  bottom: 16px; right: 16px;
  z-index: 2;
  padding: 4px 9px 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.14);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--on-surface);
}
.phone-frame .live-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 1.6s infinite;
}
.phone-frame .showcase-mute {
  position: absolute;
  bottom: 10px; left: 10px;
  z-index: 2;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  padding: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  transition: background .14s ease, transform .14s ease, border-color .14s ease;
}
.phone-frame .showcase-mute:hover {
  background: rgba(0,0,0,0.78);
  border-color: rgba(255,255,255,0.32);
  transform: scale(1.06);
}
.phone-frame .showcase-mute:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
.transform-beam {
  position: relative;
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,219,60,0.55),
    rgba(255,219,60,0.95),
    rgba(255,219,60,0.55),
    transparent
  );
  box-shadow: 0 0 24px rgba(255,219,60,0.45);
  border-radius: 999px;
}
.transform-beam::before,
.transform-beam::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  transform: translateY(-50%);
  box-shadow: 0 0 14px var(--secondary);
  animation: beamDrift 2.4s linear infinite;
}
.transform-beam::after { animation-delay: 1.2s; }
@keyframes beamDrift {
  0%   { left: 0;    opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.quick-chip {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--on-surface-muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12.5px;
  cursor: pointer;
  transition: all .15s ease;
  font-weight: 500;
}
.quick-chip:hover {
  border-color: rgba(0,218,243,0.4);
  color: var(--on-surface);
  background: rgba(0,218,243,0.06);
}

.mega-btn {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 16px;
  padding: 22px 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 55%), var(--primary-container);
  color: #fff;
  box-shadow: 0 22px 60px rgba(234,56,56,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  transition: transform .15s ease, filter .15s ease;
}
.mega-btn:hover { transform: translateY(-2px); filter: brightness(1.06) saturate(1.1); }
.mega-btn:active { transform: translateY(0); }
.mega-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: grayscale(.4); }

.price-card {
  padding: 28px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--specular);
  background: rgba(22,22,26,0.6);
  backdrop-filter: blur(20px);
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
}
.price-card.featured {
  border-color: rgba(255,219,60,0.5);
  background: linear-gradient(180deg, rgba(255,219,60,0.06), rgba(22,22,26,0.7));
  box-shadow: 0 30px 80px rgba(255,219,60,0.12);
}

.check-mark {
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  background: rgba(74,222,128,0.18);
  color: #4ade80;
  display: grid; place-items: center;
}

/* ---------- New Hook Video — Typeform-style guided flow ---------- */
.nv-stage {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  display: grid; place-items: center;
  padding: 24px 32px;
  position: relative;
  z-index: 1;
}
.nv-step {
  width: 100%;
  display: grid; place-items: center;
  animation: nv-slide-up 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.nv-step-inner {
  width: 100%;
  display: flex; flex-direction: column;
  padding: 0 24px;
}
.nv-step-num {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}
.nv-question {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 6px 0 14px;
  color: var(--on-surface);
}
.nv-question em {
  font-style: italic;
  color: var(--primary-soft);
  font-weight: 800;
}
.nv-helper {
  font-size: 14.5px;
  color: var(--on-surface-muted);
  max-width: 560px;
  line-height: 1.5;
}
.nv-control { width: 100%; margin: 28px 0 18px; }

.nv-ok-row {
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.nv-ok {
  font-size: 14px;
  padding: 14px 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.nv-ok:disabled {
  opacity: 0.45; cursor: not-allowed;
  filter: grayscale(.4); transform: none;
}
.nv-enter-glyph {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0,0,0,0.18);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.nv-enter-hint {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--on-surface-dim);
  text-transform: uppercase;
}
.nv-enter-hint strong {
  color: var(--on-surface-muted);
  font-weight: 700;
}
.nv-validation-hint {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--primary-soft);
  text-transform: uppercase;
  margin-left: 6px;
}
.nv-shake { animation: nv-shake 0.42s cubic-bezier(.36,.07,.19,.97) both; }

.nv-progress {
  display: flex; gap: 7px; align-items: center;
}
.nv-progress-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: all .25s ease;
}
.nv-progress-dot.done   { background: var(--secondary); }
.nv-progress-dot.active {
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(255,219,60,0.18);
  width: 8px; height: 8px;
}
.nv-stepnav-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--specular);
  background: rgba(255,255,255,0.04);
  color: var(--on-surface-muted);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 11px;
  transition: all .15s ease;
}
.nv-stepnav-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  color: var(--on-surface);
  transform: translateY(-1px);
}
.nv-stepnav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.nv-footer {
  padding: 12px 8px 4px;
  align-items: center; gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative; z-index: 2;
}

.nv-vibe-tint {
  position: absolute; inset: 0;
  pointer-events: none;
  transition: opacity .4s ease, background .4s ease;
  z-index: 0;
}

.nv-vibe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.nv-vibe-sub {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--on-surface-dim);
  text-transform: uppercase;
  text-align: center;
}

.nv-lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.nv-lang-pill {
  padding: 16px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  align-items: center;
  transition: all .15s ease;
}
.nv-lang-pill:hover { transform: translateY(-1px); }
.nv-lang-flag { font-size: 22px; line-height: 1; }

.nv-input-big {
  font-size: 16px;
  padding: 18px 20px;
  min-height: 56px;
}
.nv-textarea-big {
  font-size: 15.5px;
  padding: 18px 20px;
}

.nv-review {
  display: flex; flex-direction: column; gap: 18px;
  padding: 20px;
  border-radius: var(--r-md);
  background: rgba(22,22,26,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
}
.nv-review-photos {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.nv-review-photo {
  width: 88px; height: 88px;
  flex: 0 0 88px;
  border-radius: 12px;
  background-size: cover; background-position: center;
  border: 1px solid var(--specular);
  position: relative;
}
.nv-hero-pip {
  position: absolute; top: 6px; left: 6px;
  padding: 2px 6px; border-radius: 999px;
  background: var(--secondary); color: #1a1406;
  font-family: var(--font-display);
  font-size: 8.5px; font-weight: 800;
  letter-spacing: 0.1em;
}
.nv-readouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 18px;
}
.nv-readout { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nv-readout .lbl {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.18em;
  color: var(--on-surface-dim);
  text-transform: uppercase;
}
.nv-readout .val {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--on-surface);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Sidebar stays at full opacity during focused steps — earlier dim suggested
   the nav was disabled and broke the "exit this flow" affordance. */
aside.glass { transition: opacity .25s ease; }

@keyframes nv-slide-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nv-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

@media (max-width: 1099px) {
  .nv-question     { font-size: 34px; }
  .nv-readouts     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .nv-stage        { padding: 16px 12px; }
  .nv-step-inner   { padding: 0 8px; }
  .nv-question     { font-size: 26px; }
  .nv-helper       { font-size: 13.5px; }
  .nv-control      { margin: 18px 0 14px; }
  .nv-vibe-grid    { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nv-lang-grid    { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .nv-lang-pill    { padding: 14px 16px; font-size: 13.5px; }
  .nv-readouts     { grid-template-columns: 1fr; }
  .nv-input-big    { font-size: 15px; padding: 14px 16px; min-height: 48px; }
  .nv-textarea-big { font-size: 14.5px; padding: 14px 16px; }
  .nv-footer       { gap: 10px; }
}

/* ---------- VIN / mileage / condition / service additions ---------- */
.nv-private-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(74,222,128,0.10);
  border: 1px solid rgba(74,222,128,0.28);
  color: #6ee7a8;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 700;
  margin: 4px 0 8px;
  width: fit-content;
}

.nv-vin-input {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nv-vin-input::placeholder {
  letter-spacing: 0.08em;
  text-transform: none;
}

.nv-input-suffix { position: relative; }
.nv-input-suffix::after {
  content: attr(data-suffix);
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-surface-dim);
  letter-spacing: 0.14em;
  pointer-events: none;
  font-weight: 700;
}
.nv-input-suffix .input { padding-right: 64px; }

.nv-skip-link {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--on-surface-dim);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none; border: none; cursor: pointer;
  margin-left: 4px;
  padding: 4px 6px;
}
.nv-skip-link:hover { color: var(--on-surface-muted); }

.nv-format-hint {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--on-surface-dim);
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .nv-input-suffix::after { right: 16px; font-size: 12px; }
  .nv-input-suffix .input { padding-right: 56px; }
}
