/* ============================================================
   HERO — three switchable variations + shared result card
   ============================================================ */

.hero-switch-bar {
  display: flex; justify-content: center;
  padding-top: 22px;
}
.hero-switch {
  display: inline-flex; gap: 4px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.hero-switch button {
  border: none; background: none;
  padding: 9px 18px; border-radius: var(--r-pill);
  font-family: var(--font-subtitle); font-weight: 600; font-size: 0.86rem;
  color: var(--ink-3); transition: color .25s, background .25s;
}
.hero-switch button:hover { color: var(--ink); }
.hero-switch button.active { background: var(--ink); color: #fff; }

/* Stage / panes */
.hero-stage { position: relative; }
.hero-pane { display: none; }
.hero-stage[data-variant="1"] .hero-pane[data-v="1"],
.hero-stage[data-variant="2"] .hero-pane[data-v="2"],
.hero-stage[data-variant="3"] .hero-pane[data-v="3"] { display: block; }

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-fine { margin-top: 22px; color: var(--ink-3); font-family: var(--font-subtitle); font-size: 0.92rem; }

/* ---------- Shared result card ---------- */
.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  width: 100%;
}
.rc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rc-head .rc-label { font-family: var(--font-subtitle); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rc-head .rc-logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; }
.rc-head .rc-logo img { width: 100%; height: 100%; object-fit: contain; }
.rc-title { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; margin-bottom: 16px; }
.rc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.rc-stat { border-radius: var(--r-sm); padding: 12px 13px; background: var(--bg-soft); }
.rc-stat .k { font-family: var(--font-subtitle); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.rc-stat .v { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; margin-top: 5px; }
.rc-stat.risk { background: #FCEEEE; }
.rc-stat.risk .v { color: #C0392B; }
.rc-stat.pot .v { color: var(--accent); }
.rc-opp {
  background: var(--dark); color: #fff;
  border-radius: var(--r-md); padding: 18px;
  margin-bottom: 14px;
}
.rc-opp .k { font-family: var(--font-subtitle); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #8FA0EE; }
.rc-opp .t { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin: 7px 0 8px; }
.rc-opp p { font-size: 0.84rem; color: var(--on-dark-2); line-height: 1.45; margin-bottom: 14px; }
.rc-opp .mini { display: inline-flex; height: 36px; padding-inline: 16px; align-items: center; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-weight: 600; font-size: 0.82rem; }
.rc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rc-list li { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 0.86rem; font-weight: 500; color: var(--ink-2); }
.rc-list li .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ============================================================
   VARIANT 1 — Calm centered (Apple)
   ============================================================ */
.heroV1 { text-align: center; padding-top: 56px; }
.heroV1 .chip { margin-bottom: 26px; }
.heroV1 .display { margin-inline: auto; max-width: 760px; }
.heroV1 .lead { margin: 24px auto 0; max-width: 760px; }
.heroV1 .hero-cta-row { justify-content: center; margin-top: 34px; }
.heroV1 .hero-fine { text-align: center; }
.heroV1 .v1-stage { position: relative; margin-top: 64px; }
.heroV1 .v1-glow {
  position: absolute; inset: -8% 8% auto; height: 78%; top: 6%;
  background-image: url('assets/hero-gradient.png');
  background-size: cover; background-position: center 40%;
  border-radius: 32px;
  filter: saturate(108%);
  z-index: 0;
}
.heroV1 .v1-glow::after { content: ''; position: absolute; inset: 0; border-radius: 32px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
.heroV1 .result-card { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }

/* ============================================================
   VARIANT 2 — Editorial split (Revolut)
   ============================================================ */
.heroV2 { padding-top: 40px; }
.heroV2 .v2-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.heroV2 .chip { margin-bottom: 26px; }
.heroV2 .display { max-width: 760px; }
.heroV2 .lead { margin-top: 24px; max-width: 680px; }
.heroV2 .hero-cta-row { margin-top: 34px; }
.heroV2 .v2-visual {
  position: relative;
  border-radius: var(--r-xl);
  background-image: url('assets/hero-gradient.png');
  background-size: cover; background-position: center;
  padding: 46px 40px;
  min-height: 520px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
}
.heroV2 .v2-visual::before { content: ''; position: absolute; inset: 0; border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
.heroV2 .result-card { max-width: 420px; }

/* ============================================================
   VARIANT 3 — Immersive full-bleed gradient
   ============================================================ */
.heroV3 { padding-top: 28px; }
.heroV3 .v3-frame {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  min-height: 740px;
  display: flex; align-items: center;
  padding: 64px clamp(28px, 5vw, 72px);
  background-image: url('assets/hero-gradient.png');
  background-size: cover; background-position: 60% 40%;
}
.heroV3 .v3-frame::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,12,30,0.55) 0%, rgba(8,12,30,0.22) 42%, rgba(8,12,30,0) 70%);
}
.heroV3 .v3-frame::after { content: ''; position: absolute; inset: 0; border-radius: 34px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); pointer-events: none; }
.heroV3 .v3-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(420px, 0.78fr);
  gap: clamp(40px, 4vw, 72px);
  align-items: center;
  width: 100%;
}
.heroV3 .chip { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.32); color: #fff; backdrop-filter: blur(8px); margin-bottom: 26px; }
.heroV3 .chip .dot { background: #fff; }
.heroV3 .display,
.heroV3 h1 {
  color: #fff;
  max-width: 840px;
  font-size: clamp(2.35rem, 4.1vw, 3.45rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.heroV3 .lead {
  color: rgba(255,255,255,0.9);
  margin-top: 32px;
  max-width: 720px;
  line-height: 1.68;
  text-shadow: 0 1px 18px rgba(8,12,30,0.18);
}
.heroV3 .hero-cta-row { margin-top: 36px; }
.heroV3 .hero-fine { color: rgba(255,255,255,0.72); }
.heroV3 .result-card { background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); border-color: rgba(255,255,255,0.5); }

@media (max-width: 1080px) {
  .heroV2 .v2-grid, .heroV3 .v3-grid { grid-template-columns: 1fr; gap: 40px; }
  .heroV2 .v2-visual { min-height: 440px; }
  .heroV3 .v3-frame { min-height: auto; padding: 48px 28px; }
  .heroV3 .v3-frame::before { background: linear-gradient(180deg, rgba(8,12,30,0.5), rgba(8,12,30,0.32)); }
}
@media (max-width: 560px) {
  .heroV1 .v1-glow { inset: -4% 0 auto; }
  .rc-stats { grid-template-columns: 1fr; }
  .heroV2 .v2-visual { padding: 24px; }
}

.result-page .result-card {
  box-sizing: border-box;
  max-width: 100%;
}
