/* ============================================================
   Income Atlas – Diagnóstico de Monetización
   styles.css
   ============================================================ */

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

:root {
  --bg:           #0e0610;
  --bg2:          #160d1a;
  --surface:      #1c1022;
  --surface2:     #231529;
  --accent:       #E0004D;
  --accent2:      #FF2D7A;
  --accent-glow:  rgba(224, 0, 77, 0.15);
  --text:         #FFFFFF;
  --text-soft:    #ecdff0;
  --text-muted:   #9d7da8;
  --border:       rgba(255, 255, 255, 0.07);
  --border-accent:rgba(224, 0, 77, 0.3);
  --r:            18px;
  --r-sm:         12px;
  --ease:         cubic-bezier(.25, .46, .45, .94);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
}

/* ----- SCREENS ----- */
.screen {
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  min-height: 100dvh;
  position: relative;
}
.screen.active {
  display: flex;
  animation: slideUp .38s var(--ease) both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- PROGRESS BAR ----- */
.prog-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  padding: 16px 20px 0;
}
.prog-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 99px;
  transition: width .5s var(--ease);
}
.prog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.prog-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent2);
}
.prog-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* ----- HERO ----- */
.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 22px 32px;
  gap: 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 22px;
  padding: 6px 14px;
  background: rgba(224, 0, 77, 0.1);
  border: 1px solid rgba(224, 0, 77, 0.22);
  border-radius: 99px;
  width: fit-content;
}
.hero-dot {
  width: 6px;
  height: 6px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}
.hero-h1 {
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.hero-h1 span { color: var(--accent2); }
.hero-p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.trust-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-muted);
}
.trust-strip-icon {
  width: 28px;
  height: 28px;
  background: rgba(224, 0, 77, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ----- QUESTION HEADER ----- */
.q-head { padding: 28px 22px 0; }
.q-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}
.q-title {
  font-size: clamp(21px, 5.5vw, 27px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin-bottom: 8px;
}
.q-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.multi-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(224, 0, 77, 0.08);
  border: 1px solid rgba(224, 0, 77, 0.18);
  border-radius: 99px;
  padding: 5px 11px;
}

/* ----- OPTION CARDS ----- */
.cards {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 22px 0;
}
.opt-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color .18s, background .18s, transform .12s var(--ease);
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}
.opt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224, 0, 77, 0.06), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.opt-card:hover { border-color: rgba(224, 0, 77, 0.35); background: var(--surface2); }
.opt-card:hover::before { opacity: 1; }
.opt-card:active { transform: scale(0.985); }
.opt-card:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.opt-card.selected { border-color: var(--accent2); background: rgba(224, 0, 77, 0.1); }
.opt-card.selected::before { opacity: 1; }
.opt-card.selected .card-icon-wrap {
  background: rgba(224, 0, 77, 0.2);
  border-color: rgba(224, 0, 77, 0.35);
}
.opt-card.pop { animation: cardPop .25s var(--ease); }
@keyframes cardPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.975); }
  100% { transform: scale(1); }
}
.card-icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background .18s, border-color .18s;
}
.card-body { flex: 1; min-width: 0; }
.card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  padding-right: 22px;
}
.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 3px;
}
.card-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s, transform .22s var(--ease);
}
.card-check svg {
  width: 10px;
  height: 10px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.opt-card.selected .card-check { opacity: 1; transform: scale(1); }

/* ----- BUTTONS ----- */
.cta-fixed {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 22px max(20px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 65%, transparent);
  z-index: 40;
}
.btn-prime {
  width: 100%;
  padding: 17px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  letter-spacing: .01em;
  transition: opacity .18s, transform .12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn-prime:hover  { opacity: .88; }
.btn-prime:active { transform: scale(.98); }
.btn-prime:disabled { opacity: .28; cursor: default; }
.btn-prime:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ----- LOADING ----- */
#screen-loading {
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 40px 24px;
  min-height: 100dvh;
}
.loader-orbit {
  position: relative;
  width: 64px;
  height: 64px;
}
.loader-orbit::before,
.loader-orbit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}
.loader-orbit::before { border-top-color: var(--accent2); animation: spin .9s linear infinite; }
.loader-orbit::after  { inset: 10px; border-top-color: rgba(224, 0, 77, 0.3); animation: spin 1.4s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-dot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent2);
  border-radius: 50%;
}
.loader-msg {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
  animation: fadeIn .4s ease;
  max-width: 240px;
  line-height: 1.5;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.loader-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  max-width: 220px;
  line-height: 1.6;
}

/* ----- TEASER ----- */
.teaser-head { padding: 32px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.teaser-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2);
}
.teaser-title {
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.path-card {
  margin: 20px 22px 0;
  background: linear-gradient(135deg, rgba(224, 0, 77, 0.12), rgba(255, 45, 122, 0.06));
  border: 1.5px solid rgba(255, 45, 122, 0.3);
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideUp .4s .1s var(--ease) both;
}
.path-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(224, 0, 77, 0.15);
  border: 1px solid rgba(224, 0, 77, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.path-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 4px;
}
.path-name { font-size: 16px; font-weight: 800; line-height: 1.25; }
.teaser-divider { margin: 20px 22px 0; height: 1px; background: var(--border); }
.teaser-body-text {
  padding: 16px 22px 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.blur-block {
  margin: 14px 22px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  overflow: hidden;
  position: relative;
}
.blur-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.blur-rows { display: flex; flex-direction: column; gap: 7px; }
.blur-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-soft);
  filter: blur(5px);
  user-select: none;
}
.blur-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 15%, var(--surface) 78%);
}
.lock-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}
.lock-badge svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ----- FORM ----- */
.form-wrap { padding: 22px 22px 0; display: flex; flex-direction: column; gap: 14px; }
.form-row  { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-input {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 15px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .18s, background .18s;
  -webkit-appearance: none;
  width: 100%;
}
.form-input::placeholder { color: rgba(157, 125, 168, .5); }
.form-input:focus { outline: none; border-color: var(--accent2); background: var(--surface2); }
.form-err  { font-size: 12px; color: var(--accent2); min-height: 16px; }
.form-note { font-size: 12px; color: var(--text-muted); line-height: 1.6; text-align: center; padding: 0 8px; }
.form-title { font-size: 15px; font-weight: 700; color: var(--text-soft); }

/* ----- SUCCESS ----- */
.success-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 28px;
  gap: 18px;
}
.success-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  animation: popIn .4s var(--ease) both;
}
@keyframes popIn {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.success-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.success-p { font-size: 15px; color: var(--text-muted); line-height: 1.65; max-width: 340px; }
.success-hr { width: 48px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; }
.success-pitch { font-size: 13px; color: var(--text-muted); line-height: 1.65; max-width: 320px; }

/* ----- FOOTER ----- */
.app-footer {
  text-align: center;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.13);
  padding: 12px 20px 6px;
}

/* ----- DESKTOP ----- */
@media (min-width: 600px) {
  .screen { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}
