/* ============================================
   AI WRAPPED — main.css
   Warm editorial design system
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=DM+Serif+Display:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

/*
  Todas las variables y colores deben venir de brand-entaina/variables.css
  No se permite ninguna variable custom fuera de los tokens Entaina.
  Los themes se gestionan con [data-theme="..."] y :root, ya definidos en variables.css
*/

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: var(--surface-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 2px;
}

/* Serif accent */
.serif {
  font-family: var(--font-display);
}

/* Focus visible (keyboard navigation) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* ══════════════════════════════════════════
   ONBOARDING
   ══════════════════════════════════════════ */

#onboarding {
  position: fixed;
  inset: 0;
  background: var(--background);
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  z-index: 100;
  overflow-y: auto;
  padding: 0 0 40px;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

#onboarding.hidden {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

#onboarding::before {
  content: none;
  position: fixed;
  inset: 0;
  background: none;
  pointer-events: none;
}

.onboarding-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: auto; /* centers vertically when content is shorter than screen */
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* Header */
.onboarding-header {
  text-align: center;
}


.onboarding-brand-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.onboarding-brand-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 1;
}

.onboarding-logo {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text);
  font-family: var(--font-display);
  margin-bottom: 22px;
  opacity: 1;
  line-height: 1.5;
}

.onboarding-title {
      font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.025em;
}

/* The one serif word */
.onboarding-title .serif-word {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  color: var(--text);
  display: block;
  font-size: 1.05em;
  letter-spacing: -0.015em;
}

.onboarding-subtitle {
  font-family: 'DM Serif Display';
    font-size: 22px;
    font-style: italic;
    color: var(--text-subtle);
    font-weight: 400;
    /* line-height: 1.6; */
    letter-spacing: 0.2px;
}

/* ── Hero questions ─────────────────────────── */
.hero-qs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: 2em;
  width: 100%;
}

.hq-line {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.01em;
  text-align: left;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hq-line--visible {
  opacity: 1;
  transform: translateY(0);
}

.hq-line--cta {
  margin-top: 4px;
}

.hq-accent { color: var(--accent); font-weight: 700; }
.hq-cta    { font-weight: 800; }

/* Step labels */
.step-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  font-family: var(--font-display);
  margin-bottom: 14px;
  opacity: 1;
  line-height: 1.5;
}

.step-label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: currentColor;
}

/* Platform logos — informativo, flotando sin cajas */
.platforms-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 20px 0 4px;
}

.platforms-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px 22px;
}

.ai-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  user-select: none;
  opacity: 0.55;
}

/* Go to export button inside cards */
a.platform-export-btn {
  display: inline-block;
  text-decoration: none;
}

.platform-export-btn {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  border-radius: 999px;
  padding: 4px 12px;
  margin-top: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.platform-export-btn:hover {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}


.platform-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.platform-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text);
}

/* "o arrastra aquí" separator */
.drop-separator {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-subtle);
  text-align: center;
  margin: 16px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Unified drop zone */
.unified-drop {
  position: relative;
  margin-top: 8px;
  padding: 28px 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
  text-align: center;
  transition: all var(--transition);
}

.unified-drop.dragover {
  border-color: var(--primary);
  background: var(--surface);
}
.unified-drop.dragover {
  border-style: solid;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.unified-drop input[type="file"] {
  display: none;
}

.unified-drop-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.unified-drop-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.unified-drop-hint {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 4px;
}
.unified-drop-browse {
  margin-top: 12px;
  padding: 8px 20px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.unified-drop-browse:hover {
  background: var(--primary);
  color: var(--on-primary);
}

/* Compact variant — secondary to platform cards */
.unified-drop.unified-drop-compact {
  padding: 16px 20px;
  border-width: 1px;
  opacity: 0.7;
  transition: all var(--transition);
}
.unified-drop.unified-drop-compact:hover,
.unified-drop.unified-drop-compact.dragover {
  opacity: 1;
}
.unified-drop.unified-drop-compact .unified-drop-text {
  font-size: 13px;
  font-weight: 500;
}
.unified-drop.unified-drop-compact .unified-drop-hint {
  font-size: 11px;
}

.unified-drop-results-label {
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: 12px;
}

.unified-drop-results {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.unified-drop-file {
  font-size: 13px;
  font-family: var(--font-display);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-align: left;
}
.unified-drop-file.detecting {
  color: var(--text-subtle);
}
.unified-drop-file.success {
  color: var(--sage, var(--success, #4ade80));
  background: color-mix(in srgb, var(--sage, var(--success, #4ade80)) 10%, transparent);
}
.unified-drop-file.error {
  color: var(--coral, var(--error, #f87171));
  background: color-mix(in srgb, var(--coral, var(--error, #f87171)) 10%, transparent);
}

/* File badges (detected files in unified drop zone) */
.unified-drop-file.success {
  display: flex;
  align-items: center;
  gap: 8px;
}
.unified-drop-file.excluded {
  opacity: 0.4;
}
.file-badge-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}
.file-badge-name {
  font-weight: 600;
  color: var(--text);
}
.file-badge-filename {
  color: var(--text-subtle);
  font-size: 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-badge-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  line-height: 1;
  border-radius: 4px;
  transition: all var(--transition);
}
.file-badge-remove:hover {
  color: var(--coral, var(--error, #f87171));
  background: color-mix(in srgb, var(--coral, var(--error, #f87171)) 10%, transparent);
}


/* Direct connect (webapp-only) */
.direct-connect {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--info);
  border-radius: var(--radius-sm);
  background: var(--info-light);
}

.direct-connect-header {
  font-size: 12px;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--info-dark);
  margin-bottom: 8px;
}

.direct-connect-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.direct-connect-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface);
}

.direct-connect-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.direct-connect-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}

.direct-connect-badge {
  font-size: 10px;
  font-family: var(--font-display);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 6px;
  border-radius: 999px;
}

.direct-connect-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.direct-btn {
  flex: 1;
  border: 1px solid color-mix(in srgb, var(--text) 20%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 20%, transparent);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.direct-btn:hover {
  border-color: color-mix(in srgb, var(--text) 45%, transparent);
  background: color-mix(in srgb, var(--surface) 30%, transparent);
}

.direct-btn.primary {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  background: color-mix(in srgb, var(--primary) 22%, transparent);
}

.direct-connect-help {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.45;
}

.direct-connect-status {
  margin-top: 8px;
  font-size: 11px;
  font-family: var(--font-display);
  color: var(--sage);
}

/* Privacy note */
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 11px;
  font-family: var(--font-display);
  color: var(--text-subtle);
  line-height: 1.5;
  text-align: center;
  justify-content: center;
  margin-top: 2px;
}

.privacy-note .icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.privacy-note strong {
  color: var(--text-dim);
  font-weight: 500;
}

/* Extension auto-sync banner */
.ext-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--accent-light);
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  animation: ext-pulse 2s ease-in-out infinite;
}

.ext-banner .ext-icon {
  font-size: 18px;
  color: var(--accent-dark);
  flex-shrink: 0;
}

@keyframes ext-pulse {
  0%,
  100% {
    border-color: color-mix(in srgb, var(--accent-dark) 36%, transparent);
  }
  50% {
    border-color: color-mix(in srgb, var(--accent-dark) 70%, transparent);
  }
}

/* Buttons */
.btn-generate {
  width: auto;
  display: flex;
  align-items: center;
  padding: 20px 150px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

/*
  Corrección de accesibilidad: overlay ::after no debe tapar el texto del botón.
  Se añade transparencia al fondo para permitir legibilidad, según la skill de accesibilidad.
*/
.btn-generate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0); /* Fondo totalmente transparente por defecto */
  transition: background var(--transition);
  pointer-events: none;
}

.btn-generate:hover::after {
  background: rgba(
    0,
    0,
    0,
    0.04
  ); /* Overlay sutil solo en hover, no tapa el texto */
}
.btn-generate:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 36px var(--primary-light);
}

.btn-generate span {
  position: relative;
  z-index: 1;
}
.btn-generate-label {
  display: block;
}
.btn-generate-detail {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 2px;
  letter-spacing: 0.01em;
}
.btn-generate-detail:empty {
  display: none;
}

.btn-generate:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-demo {
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition);
  margin: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(128,128,128,.35);
}

.btn-demo:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.btn-demo-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-demo:hover .btn-demo-arrow {
  transform: translateX(4px);
}

/* Error */
.error-msg {
  padding: 11px 15px;
  background: var(--danger-light);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-family: var(--font-display);
  font-size: 13px;
  display: none;
}
.error-msg.visible {
  display: block;
}

/* Loading */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.loading-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  background: color-mix(in srgb, var(--surface) 24%, transparent);
}

.loading-brand-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.loading-brand-logo {
  height: 12px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

#loading-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.loading-ring {
  width: 48px;
  height: 48px;
  border: 2px solid var(--primary-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.loading-text {
  font-size: 14px;
  color: var(--text-subtle);
  font-family: var(--font-display);
}
.loading-progress {
  font-size: 11px;
  color: var(--text-subtle);
  font-family: var(--font-display);
}

/* Utility */
.hidden {
  display: none !important;
}
/* Monospace utility (mantener si se usa) */
.mono {
  font-family: var(--font-display);
}

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

/* ── Tablet ── */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 24px 0;
    gap: 32px;
  }
  .hero-cta-row { flex-direction: column; align-items: center; }

  .onboarding-inner {
    gap: 22px;
    padding: 16px 18px 0;
  }

  .onboarding-title {
    font-size: clamp(36px, 10vw, 54px);
  }

  .onboarding-subtitle {
    font-size: 18px;
  }

  .platforms-row {
    gap: 12px 18px;
  }

  .platform-name {
    font-size: 12px;
  }
  .platform-hint {
    display: none;
  }
  .platform-cta {
    font-size: 9px;
    padding: 2px 8px;
    margin-top: 6px;
  }

  .btn-generate {
    padding: 15px 24px;
    font-size: 16px;
  }
  .btn-demo {
    font-size: 13px;
  }
}

/* ── Pantallas cortas (laptops estándar: 700-800px de alto) ── */
@media (max-height: 800px) {
  .onboarding-inner {
    gap: 18px;
    padding-top: 14px;
  }

  .onboarding-logo {
    margin-bottom: 10px;
    font-size: 9.5px;
  }

  .onboarding-title {
    font-size: clamp(34px, 5vw, 56px);
  }

  .onboarding-subtitle {
    font-size: 16px;
    line-height: 1.45;
  }


  .privacy-note {
    padding: 10px 14px;
    font-size: 12px;
  }

  .btn-generate {
    padding: 13px 24px;
    font-size: 15px;
  }
  .btn-demo {
    font-size: 13px;
  }
}

/* ── Muy cortas (< 680px alto, como el caso reportado 702px con DPR 1.25 = ~562px css) ── */
@media (max-height: 700px) {
  .onboarding-inner {
    gap: 12px;
    padding-top: 10px;
  }

  .onboarding-logo {
    display: none;
  } /* Eliminar el logo para ganar espacio */

  .onboarding-title {
    font-size: clamp(28px, 4.5vw, 46px);
  }

  .onboarding-subtitle {
    font-size: 14px;
  }

  .step-label {
    margin-bottom: 8px;
  }

  .platform-name {
    font-size: 11px;
  }

  .privacy-note {
    padding: 8px 12px;
    font-size: 11.5px;
  }

  .btn-generate {
    padding: 12px 20px;
    font-size: 14px;
  }
  .btn-demo {
    font-size: 12px;
  }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .onboarding-inner {
    gap: 16px;
    padding: 16px 14px 0;
  }

  .onboarding-logo {
    margin-bottom: 12px;
    font-size: 9.5px;
  }

  .onboarding-title {
    font-size: clamp(32px, 11vw, 48px);
  }

  .onboarding-subtitle {
    font-size: 14px;
  }

  /* Platform grid: mobile */
  .platforms-row {
    gap: 10px 14px;
  }

  .platform-name {
    font-size: 11px;
  }

  .step-label {
    font-size: 9px;
    margin-bottom: 10px;
  }

  /* Privacy note más compacta */
  .privacy-note {
    padding: 10px 12px;
    font-size: 12px;
    gap: 8px;
  }

  /* Botones */
  .btn-generate {
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 10px;
  }
  .btn-demo {
    font-size: 13px;
  }

  .direct-connect-actions {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════
   THEME: ORIGINAL — Dark mode overrides
   Grain texture, radial glows, editorial warmth
   ══════════════════════════════════════════ */

/* Animatable gradient position properties */
@property --g1x { syntax: '<percentage>'; inherits: false; initial-value: 10%; }
@property --g1y { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@property --g2x { syntax: '<percentage>'; inherits: false; initial-value: 90%; }
@property --g2y { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --g3x { syntax: '<percentage>'; inherits: false; initial-value: 52%; }
@property --g3y { syntax: '<percentage>'; inherits: false; initial-value: 48%; }

/* Body background: animated aurora gradient + grain */
[data-theme="original"] body {
  background:
    radial-gradient(110% 80% at var(--g1x) var(--g1y), rgba(74, 222, 128, 0.22) 0%, transparent 68%),
    radial-gradient(100% 75% at var(--g2x) var(--g2y), rgba(71, 43, 251, 0.21) 0%, transparent 65%),
    radial-gradient(70% 65% at var(--g3x) var(--g3y), rgba(45, 212, 191, 0.11) 0%, transparent 58%),
    linear-gradient(145deg, #071321 0%, #0B2233 52%, #10344A 100%);
  animation: aurora-drift 28s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0%   { --g1x: 10%; --g1y: 100%; --g2x: 90%; --g2y:  0%; --g3x: 52%; --g3y: 48%; }
  25%  { --g1x: 22%; --g1y:  82%; --g2x: 72%; --g2y: 18%; --g3x: 38%; --g3y: 62%; }
  50%  { --g1x: 12%; --g1y:  72%; --g2x: 84%; --g2y:  8%; --g3x: 60%; --g3y: 38%; }
  75%  { --g1x: 28%; --g1y:  88%; --g2x: 76%; --g2y: 24%; --g3x: 44%; --g3y: 56%; }
  100% { --g1x:  6%; --g1y:  78%; --g2x: 91%; --g2y: 14%; --g3x: 56%; --g3y: 44%; }
}

/* Wrapped view is transparent — gradient shows through */
[data-theme="original"] #wrapped-view {
  background: transparent !important;
}

/* Global grain overlay */
[data-theme="original"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.065;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  background-repeat: repeat;
}

/* Onboarding: radial glow backdrop */
[data-theme="original"] #onboarding::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 64% 54% at 12% 88%, rgba(74, 222, 128, 0.24) 0%, transparent 100%),
    radial-gradient(ellipse 52% 42% at 86% 14%, rgba(71, 43, 251, 0.2) 0%, transparent 100%),
    radial-gradient(ellipse 38% 58% at 52% 45%, rgba(45, 212, 191, 0.15) 0%, transparent 100%);
}

/* Scrollbar overrides for dark theme */
[data-theme="original"] ::-webkit-scrollbar-track {
  background: #0B2233;
}
[data-theme="original"] ::-webkit-scrollbar-thumb {
  background: #CC6C07;
}


/* Upload area: dark glass */
[data-theme="original"] .unified-drop {
  border-color: rgba(255, 159, 26, 0.34);
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="original"] .unified-drop.dragover {
  border-color: rgba(255, 159, 26, 0.56);
  background: rgba(255, 159, 26, 0.09);
}

/* Generate button: indigo with glow */
[data-theme="original"] .btn-generate {
  background: var(--indigo);
  color: #F8F7FF;
}
[data-theme="original"] .btn-generate:hover {
  box-shadow: 0 10px 36px rgba(71, 43, 251, 0.42);
}

/* Demo button: dashed amber border */
[data-theme="original"] .btn-demo {
  border-color: rgba(255, 159, 26, 0.36);
  color: var(--text-subtle);
}
[data-theme="original"] .btn-demo:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255, 159, 26, 0.1);
}


/* Unified drop browse button */
[data-theme="original"] .unified-drop-browse:hover {
  background: var(--amber);
  color: #071321;
}

/* Loading overlay */
[data-theme="original"] #loading-overlay {
  background: #071321;
}

/* ChatGPT icon is black — invert to white on dark theme */
[data-theme="original"] img[src="assets/chatgpt-icon.svg"] {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ══════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════ */

.onboarding-topbar {
  position: sticky;
  top: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

.topbar-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* Logo swap por tema:
   logo-dark  → para fondos oscuros (tema "original")
   logo-light → para fondos claros (resto de temas)
   Anclado a html para evitar que :not() matchee body u otros ancestros */
html[data-theme="original"] .topbar-logo--light { display: none; }
html[data-theme="original"] .topbar-logo--dark  { display: block; }

html:not([data-theme="original"]) .topbar-logo--dark  { display: none; }
html:not([data-theme="original"]) .topbar-logo--light { display: block; }

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.topbar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.topbar-sep {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-subtle);
}

.hero-powered {
 display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-subtle);
    opacity: 0.8;
    margin-top: 8px;
    justify-content: center;
    padding: 20px 0;
}

.hero-powered-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
}

html[data-theme="original"] .hero-powered-logo--light { display: none; }
html[data-theme="original"] .hero-powered-logo--dark  { display: block; }
html:not([data-theme="original"]) .hero-powered-logo--dark  { display: none; }
html:not([data-theme="original"]) .hero-powered-logo--light { display: block; }

.section-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-subtle);
  margin: -24px 0 0 0;
  text-align: center;
}

/* ── Topbar actions group ── */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language toggle button */
.lang-toggle {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  border-radius: 999px;
  color: var(--text-subtle);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0.5;
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

.topbar-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  border-radius: 999px;
  color: var(--text-subtle);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  opacity: 0.6;
}
.topbar-auth-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.topbar-auth-btn.logged-in {
  padding: 5px 14px 5px 5px;
  gap: 8px;
}

.topbar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.topbar-username {
  font-weight: 600;
  font-size: 13px;
}

/* ══════════════════════════════════════════
   AUTH MODAL
   ══════════════════════════════════════════ */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: auth-fade-in 0.25s ease;
}
.auth-overlay.hidden {
  display: none;
}

@keyframes auth-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-subtle);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition);
}
.auth-close:hover {
  color: var(--text);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-subtle);
  cursor: pointer;
  transition: all var(--transition);
}
.auth-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-form.hidden {
  display: none;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--transition);
}
.auth-input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-error {
  padding: 8px 12px;
  background: var(--danger-light);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 12px;
  font-family: var(--font-display);
}
.auth-error.hidden {
  display: none;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 4px;
}
.auth-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ── Auth OTP: nuevos elementos ── */
div#capture-step-email {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

div#capture-step-otp {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-subtle);
  margin: 0 0 20px;
  line-height: 1.5;
}

.btn-auth-primary {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 12px;
}
.btn-auth-primary:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-auth-loading,
.btn-auth-loading:hover {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.auth-otp-input {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-align: center;
  padding: 16px 12px;
}

.auth-otp-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
}

.auth-link {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  transition: color var(--transition);
}
.auth-link:hover { color: var(--text); }

.auth-link-sep {
  color: var(--text-subtle);
  font-size: 13px;
  user-select: none;
}

/* ── Profile panel: nuevos elementos ── */

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.profile-archetype {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-raised, rgba(255,255,255,0.05));
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  min-height: 0;
}
.profile-archetype:empty { display: none; }

.profile-archetype-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.profile-archetype-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.profile-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.btn-profile-action {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-profile-action:hover { border-color: var(--accent); color: var(--accent); }

.btn-profile-action--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-profile-action--primary:hover {
  filter: brightness(1.1);
  color: var(--on-accent);
}

/* Original theme overrides for auth */
[data-theme="original"] .auth-modal {
  background: #0B2233;
  border-color: rgba(255, 159, 26, 0.2);
}
[data-theme="original"] .auth-input {
  background: #071321;
  border-color: rgba(255, 245, 216, 0.12);
}
[data-theme="original"] .auth-submit {
  background: var(--indigo);
  color: #F8F7FF;
}

/* ══════════════════════════════════════════
   PROFILE PANEL
   ══════════════════════════════════════════ */

.profile-panel {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: flex-end;
}
.profile-panel.hidden {
  display: none;
}

.profile-panel-inner {
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 28px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: profile-slide-in 0.3s ease;
}

@keyframes profile-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.profile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-panel-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.profile-panel-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.profile-panel-close:hover {
  color: var(--text);
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.profile-section:not(:first-of-type) {
  align-items: stretch;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

.profile-email {
  font-size: 13px;
  color: var(--text-subtle);
}

.profile-section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.profile-empty {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  padding: 8px 0;
}

.profile-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 4px;
}

.profile-file-platform {
  font-weight: 700;
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 60px;
}

.profile-file-name {
  flex: 1;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-file-date {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-stat-card {
  padding: 14px 12px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  text-align: center;
}

.profile-stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.profile-stat-label {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-stat-date {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
}

.profile-logout {
  margin-top: auto;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.profile-logout:hover {
  background: var(--danger);
  color: #fff;
}

/* Wrapped action buttons */
.profile-wrapped-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-replay-btn,
.profile-new-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.profile-replay-btn {
  background: var(--accent);
  border: none;
  color: #fff;
}
.profile-replay-btn:hover {
  opacity: 0.85;
}

.profile-new-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.profile-new-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Privacy transparency */
.profile-privacy-details {
  width: 100%;
}
.profile-privacy-summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-dim);
  user-select: none;
  padding: 4px 0;
}
.profile-privacy-summary:hover {
  color: var(--text);
}
.profile-privacy-body {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}
.profile-privacy-body ul {
  padding-left: 16px;
  margin: 6px 0;
}
.profile-privacy-body li {
  margin-bottom: 3px;
}
.profile-privacy-body p {
  margin: 4px 0;
}
.profile-privacy-body strong {
  color: var(--text);
}

/* Original theme overrides for profile panel */
[data-theme="original"] .profile-panel-inner {
  background: #0B2233;
  border-left-color: rgba(255, 159, 26, 0.15);
}
[data-theme="original"] .profile-file-item,
[data-theme="original"] .profile-stat-card {
  background: rgba(255, 255, 255, 0.04);
}

/* ══════════════════════════════════════════
   RESPONSIVE — Top bar & auth
   ══════════════════════════════════════════ */

@media (max-width: 480px) {
  .onboarding-topbar {
    padding: 12px 16px;
  }
  .topbar-logo {
    height: 26px;
  }
  .topbar-auth-btn {
    font-size: 12px;
    padding: 6px 14px;
  }
  .topbar-username {
    display: none;
  }
  .auth-modal {
    padding: 24px 20px 20px;
  }
  .profile-panel-inner {
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════
   EXPORT HELP BAR
   ══════════════════════════════════════════ */

.export-help-bar {
  margin-top: 10px;
  text-align: center;
}

.export-help-btn {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.export-help-btn:hover {
  opacity: 0.75;
}

/* ══════════════════════════════════════════
   ONBOARDING FOOTER
   ══════════════════════════════════════════ */

.onboarding-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.footer-link {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 2px 0;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--text-dim);
}

/* ══════════════════════════════════════════
   EXPORT GUIDE + PRIVACY MODALS
   ══════════════════════════════════════════ */

.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.guide-overlay.hidden {
  display: none;
}

.guide-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.guide-modal--narrow {
  max-width: 460px;
}

.guide-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.guide-modal-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.guide-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color var(--transition);
}

.guide-close:hover {
  color: var(--text);
}

.guide-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-dim);
}

.guide-modal-body h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 6px;
  letter-spacing: 0.02em;
}

.guide-modal-body p,
.guide-modal-body ul {
  margin: 0 0 12px;
}

.guide-modal-body ul {
  padding-left: 20px;
}

.guide-modal-body li {
  margin-bottom: 4px;
}

.guide-platform {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.guide-platform:last-child {
  border-bottom: none;
}

.guide-platform--dev .guide-platform-header strong {
  color: var(--accent);
}

.guide-platform--coming-soon {
  opacity: 0.6;
}
.guide-coming-soon-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  background: var(--surface-alt, var(--border));
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 4px;
}
.guide-coming-soon-text {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

.guide-platform-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.guide-platform-header strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.guide-platform-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.guide-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.7;
}

.guide-steps a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-steps code {
  font-family: monospace;
  background: var(--surface-alt);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text);
}

/* ══════════════════════════════════════════
   ONBOARDING FUNNEL — vertical sections
   ══════════════════════════════════════════ */

/* Hero CTA */
.btn-start {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  padding: 18px 48px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--on-accent, #fff);
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0px 0px 10px color-mix(in srgb, var(--accent) 60%, transparent);
  margin: 0;
  position: relative;
  overflow: visible;
}

/* ── Sparkles del botón ─────────────────────── */
.btn-start-spark {
  position: absolute;
  pointer-events: none;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
  animation: spark-pop 0.6s ease-out forwards;
}
@keyframes spark-pop {
  0%   { opacity: 0; transform: scale(0.4) translateY(0px); }
  25%  { opacity: 1; transform: scale(1.2) translateY(-3px); }
  100% { opacity: 0; transform: scale(0.8) translateY(-16px); }
}
.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 55%, transparent);
}

/* Section nav buttons */
.btn-funnel {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-funnel:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

/* Section title */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

/* ── Hero layout ─────────────────────────────── */
.hero-section {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(40px, 6vh, 72px);
  padding: 96px 40px 0;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 92%, transparent 100%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 700px;
  width: 100%;
}

/* Eyebrow: marca + Entaina juntos, pequeño y discreto */
.hero-eyebrow {
  margin-bottom: 20px;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  position: static !important;
}

/* H1: el titular que manda */
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 20px;
}

/* Subtitle: qué obtiene el usuario */
.hero-subtitle {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(17px, 2vw, 22px);
  font-style: italic;
  font-weight: 400;
  color: var(--text-subtle);
  line-height: 1.55;
  margin: 0 0 32px;
  text-wrap-style: balance;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Trust line */
.hero-trust {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  opacity: 0.8;
  margin: 0 0 6px;
}

/* Desktop hint — solo visible en móvil */
.hero-desktop-notice {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0.75;
  margin: 0;
}

/* ── Hero card stack ──────────────────────────
   3 tarjetas en capas. Sin navegación.
   Animación de flotación en el contenedor.
   ─────────────────────────────────────────── */
.hero-stack-wrap {
  width: 100%;
  max-width: 560px;
  /* top padding absorbs cards that peek above (max offset is 38px) */
  padding: 48px 20px 0;
  display: flex;
  justify-content: center;
  perspective: 800px;
}

.hero-stack {
  position: relative;
  width: 100%;
  /* La altura la fija la tarjeta frontal via JS (offsetHeight) */
  min-height: 200px;
  will-change: transform;
  overflow: visible;
}

/* ── Base de la tarjeta ─────────────────────── */
.hsc-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px) clamp(22px, 3.5vw, 36px);
  background:
    radial-gradient(110% 80% at 80% 15%, rgba(74,222,128,.22) 0%, transparent 68%),
    radial-gradient(100% 75% at 15% 80%, rgba(71,43,251,.21)  0%, transparent 65%),
    radial-gradient(70%  65% at 50% 50%, rgba(45,212,191,.11) 0%, transparent 58%),
    linear-gradient(145deg, #071321 0%, #0B2233 52%, #10344A 100%);
  box-shadow:
    0 0 0 1px rgba(193,152,50,.18),
    0 24px 80px rgba(0,0,0,.55),
    0 4px 16px  rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.5vh, 24px);
  transform-origin: center bottom;
  overflow: hidden;
}

/* ── Shimmer (solo tarjeta frontal, disparado por clase JS) ── */
.hsc-card--main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 38%,
    rgba(255,255,255,.07) 50%,
    rgba(255,255,255,.03) 54%,
    transparent 62%
  );
  transform: translateX(-110%);
  pointer-events: none;
  border-radius: inherit;
}
.hsc-card--main.is-shimmer::after {
  animation: card-shimmer 1s ease forwards;
}
@keyframes card-shimmer {
  from { transform: translateX(-110%); }
  to   { transform: translateX(110%); }
}

/* ── Tarjeta frontal (main) ─────────────────── */
.hsc-card--main { z-index: 3; }

.hsc-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hsc-archetype {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
  font-style: italic;
  color: #fff4dd;
  line-height: 1.15;
  margin: 0;
}

.hsc-platform {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(12px, 1.3vw, 14px);
  color: rgba(255,244,221,.55);
  letter-spacing: 0.03em;
}

.hsc-stats {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  border-top: 1px solid rgba(193,152,50,.2);
  padding-top: clamp(12px, 1.5vh, 18px);
}

.hsc-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hsc-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1;
  color: #c19832;
}

.hsc-stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(10px, 1vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,244,221,.4);
}

.hsc-footer {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(10px, 1vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,244,221,.28);
}

/* ── Tarjeta insight ────────────────────────── */
.hsc-card--insight {
  z-index: 2;
  background:
    radial-gradient(110% 80% at 10% 10%, rgba(74,222,128,.22) 0%, transparent 68%),
    radial-gradient(100% 75% at 88% 28%, rgba(71,43,251,.21)  0%, transparent 65%),
    radial-gradient(70%  65% at 42% 82%, rgba(45,212,191,.11) 0%, transparent 58%),
    linear-gradient(145deg, #071321 0%, #0B2233 52%, #10344A 100%);
}

.hsc-insight-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: #c19832;
  line-height: 1;
}

.hsc-insight-cat {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-style: italic;
  color: #fff4dd;
  line-height: 1.2;
}

.hsc-insight-label {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(12px, 1.3vw, 14px);
  color: rgba(255,244,221,.5);
}

.hsc-insight-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(10px, 1vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,244,221,.28);
  margin-top: auto;
}

/* ── Tarjeta de textura (stat grande) ────────── */
.hsc-card--stat {
  z-index: 1;
  background:
    radial-gradient(110% 80% at 92% 88%, rgba(74,222,128,.22) 0%, transparent 68%),
    radial-gradient(100% 75% at 48% 18%, rgba(71,43,251,.21)  0%, transparent 65%),
    radial-gradient(70%  65% at  8% 58%, rgba(45,212,191,.11) 0%, transparent 58%),
    linear-gradient(145deg, #071321 0%, #0B2233 52%, #10344A 100%);
  justify-content: center;
  align-items: flex-start;
}

.hsc-stat-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 700;
  color: rgba(193,152,50,.25);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hsc-stat-big-label {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(12px, 1.3vw, 15px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,244,221,.2);
}

.hsc-stat-tag {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(14px, 1.8vw, 20px);
  font-style: italic;
  color: rgba(255,244,221,.18);
  margin-top: 12px;
}

/* Bento mockup placeholders */
.bento-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.bento-mockup-img {
  width: 45%;
  height: fit-content;
  border-radius: 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  opacity: 1;
  
  align-self: center;
}

.bento-mockup-img.full {
  width: 100%;
}


/* Interactive platform cards in funnel (have data-platform attr) */
.ai-logo[data-platform] {
  pointer-events: auto;
  opacity: 0.75;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--surface);
  transition: opacity 0.15s ease-in, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ai-logo[data-platform]:hover {
  opacity: 1;
  border-color: var(--accent);
}

/* Platform card selected state */
.ai-logo.selected {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

/* Platform card disabled (coming soon) state */
.ai-logo--disabled {
  opacity: 0.45 !important;
  pointer-events: none;
  position: relative;
}
.platform-badge-soon {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  background: var(--surface-alt, var(--border));
  border-radius: 4px;
  padding: 2px 5px;
  margin-top: 4px;
  text-align: center;
}

/* Funnel instructions */
.funnel-instructions-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
}
.funnel-instructions-hint {
  font-size: 15px;
  color: var(--text-dim);
  text-align: center;
  max-width: 520px;
}
.funnel-instructions-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.funnel-instructions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 640px;
}
.funnel-instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.funnel-instruction-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}
.funnel-instruction-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.funnel-instruction-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.funnel-instruction-hint {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   PLATFORM DRAWERS (FASE 3)
   ───────────────────────────────────────── */

#platform-drawers {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.platform-drawer {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  animation: drawer-in 0.22s ease;
}

.drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.drawer-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.drawer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.drawer-export-link {
  margin-left: auto;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.drawer-export-link:hover { opacity: 1; text-decoration: underline; }

.drawer-steps {
  font-size: 0.875rem;
  color: var(--text-subtle);
  padding-left: 18px;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.55;
}
.drawer-steps li strong { color: var(--text); }
.drawer-steps li code {
  font-size: 0.82rem;
  background: var(--surface-alt);
  padding: 1px 5px;
  border-radius: 4px;
}

.drawer-warning {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--warning-dark, #ca3500);
  background: var(--warning-light, #fff7ed);
  border-left: 3px solid var(--warning, #ff8904);
  border-radius: 0 8px 8px 0;
  padding: 9px 14px;
  margin: 0 0 16px;
}

.drawer-step-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.drawer-step-link:hover { opacity: 0.8; }

.limited-data-banner {
  font-size: 0.85rem;
  color: var(--warning-dark, #ca3500);
  background: var(--warning-light, #fff7ed);
  border-bottom: 2px solid var(--warning, #ff8904);
  padding: 10px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.limited-data-link {
  margin-left: 8px;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.drawer-dropzone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.drawer-dropzone:hover,
.drawer-dropzone.dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.drawer-dropzone.has-file {
  border-style: solid;
  border-color: var(--success, #008d3d);
  background: color-mix(in srgb, var(--success, #008d3d) 5%, transparent);
}

.drawer-dropzone-label {
  font-size: 0.875rem;
  color: var(--text-subtle);
  cursor: pointer;
  pointer-events: none;
}
.drawer-dropzone-link {
  color: var(--accent);
  text-decoration: underline;
  pointer-events: auto;
  cursor: pointer;
}

.drawer-upload-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.875rem;
}

.drawer-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.drawer-status-success {
  color: var(--success, #008d3d);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-status-remove {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
}
.drawer-status-remove:hover { color: var(--text); }

.drawer-status-mismatch {
  font-size: 0.875rem;
  color: var(--warning-dark, #ca3500);
}
.drawer-status-mismatch strong { color: var(--text); }

.drawer-mismatch {
  font-size: 0.875rem;
  margin-top: 6px;
}

.drawer-dropzone-hint {
  font-size: 0.78rem;
  color: var(--text-subtle);
  opacity: 0.75;
  margin-top: 5px;
}

/* Continue button active state */
.btn-continue:not(:disabled) {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn-continue:not(:disabled):hover {
  background: var(--accent-dark, var(--accent));
  border-color: var(--accent-dark, var(--accent));
}
.btn-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* ══════════════════════════════════════════
   EMAIL CAPTURE (FASE 4)
   ══════════════════════════════════════════ */

.email-capture-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15vh 40px 60px;
}

.email-capture-inner {
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.email-capture-step {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
}

.email-capture-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  text-align: left;
  margin: 0;
  line-height: 1.15;
}

.email-capture-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-subtle);
  text-align: left;
  margin: 0;
  line-height: 1.6;
  max-width: 420px;
}

#email-capture-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.email-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm, 10px);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.email-input:focus {
  border-color: var(--accent);
}

.email-error {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--danger, #e53935);
  padding: 8px 12px;
  background: var(--danger-light, rgba(229,57,53,0.08));
  border-radius: 8px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-subtle);
  cursor: pointer;
  line-height: 1.5;
}

.consent-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-generate-email {
  width: 100%;
  padding: 16px 24px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius, 12px);
  color: var(--on-accent, #fff);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 40%, transparent);
  margin-top: 4px;
}

.btn-generate-email:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 50%, transparent);
}

.btn-skip-email {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted, #888);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
  margin-top: 4px;
  align-self: center;
}

.btn-skip-email:hover {
  color: var(--text-subtle);
  text-decoration-color: var(--text-subtle);
}

/* ══════════════════════════════════════════
   DEMO BANNER (FASE 4)
   ══════════════════════════════════════════ */

.demo-banner {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 10px 20px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 50;
}

.demo-banner-cta {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.demo-banner-cta:hover {
  opacity: 0.8;
}

/* ══════════════════════════════════════════
   FAQ CARDS ROW
   ══════════════════════════════════════════ */
.faq-cards-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.faq-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-width: 160px;
  max-width: 200px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.faq-card:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.faq-card__icon  { font-size: 18px; line-height: 1; margin-bottom: 2px; }
.faq-card__title { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; }
.faq-card__desc  { font-size: 11px; color: var(--text-subtle); line-height: 1.4; }

@media (max-width: 480px) {
  .faq-cards-row { flex-direction: column; align-items: stretch; }
  .faq-card { max-width: 100%; flex-direction: row; align-items: center; gap: 12px; }
  .faq-card__icon { flex-shrink: 0; margin-bottom: 0; }
}

/* ══════════════════════════════════════════
   HOW IT WORKS — 3-step trust strip
   ══════════════════════════════════════════ */
.how-it-works {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
  max-width: 480px;
  width: 100%;
}
.how-it-works__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}
.how-it-works__steps { list-style: none; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.how-it-works__step  { display: flex; align-items: flex-start; gap: 10px; }
.how-it-works__num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.how-it-works__text { font-size: 12px; color: var(--text-subtle); line-height: 1.45; }
