/* ==================================================================
   Hero — variant system
   .hero-vis carries .vis-mode-clean | .vis-mode-dashboard | .vis-mode-typo
================================================================== */

.hero-vis .vm { display: none; position: relative; width: 100%; height: 100%; }
.vis-mode-clean    .vm-clean    { display: block; }
.vis-mode-dashboard .vm-dashboard { display: block; }
.vis-mode-typo     .vm-typo     { display: block; }

/* ------- Backdrop scale icon: only on dashboard variant ------- */
.hero-vis .vis-bg-scale { display: none; }
.vis-mode-dashboard .vis-bg-scale { display: block; }

/* ==================================================================
   Variant A — CLEAN  (matches the reference)
================================================================== */
.vm-clean { padding-top: 4px; }

/* Big translucent feature card */
.vc-feature {
  position: absolute;
  top: 8px;
  left: 0;
  width: 66%;
  height: 78%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.015) 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 28px 60px -20px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.vc-feature::before {
  /* soft inner glow — placeholder for a real photo later */
  content: "";
  position: absolute;
  inset: 18% 12% 28% 14%;
  background:
    radial-gradient(circle at 65% 45%, rgba(176,200,230,.42), transparent 55%),
    radial-gradient(circle at 32% 70%, rgba(201,162,75,.20), transparent 55%);
  filter: blur(28px);
  pointer-events: none;
}
.vc-feature::after {
  /* fine grain texture */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 50%, transparent 30%, #000 80%);
  pointer-events: none;
}

.vcf-chip {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  background: rgba(8,26,48,.55);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.vcf-text {
  position: relative;
  margin: auto 0 4px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 30px);
  color: var(--white);
  line-height: 1.18;
  max-width: 14ch;
  letter-spacing: -0.01em;
  z-index: 2;
}

/* Small white response card */
.vc-pulse {
  position: absolute;
  top: 38px;
  right: -8px;
  background: var(--white);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  width: 256px;
  box-shadow:
    0 24px 50px -12px rgba(0,0,0,.45),
    0 8px 16px -8px rgba(0,0,0,.3);
  z-index: 3;
}
.vc-pulse .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green-wa);
  box-shadow: 0 0 0 3px rgba(37,211,102,.22);
  flex-shrink: 0;
}
.vc-pulse .vcp-txt strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  color: var(--navy-800);
  line-height: 1.2;
  margin-bottom: 3px;
}
.vc-pulse .vcp-txt small {
  display: block;
  font-size: 11.5px;
  color: var(--mute);
  letter-spacing: 0.01em;
}

/* Credentials seal card */
.vc-creds {
  position: absolute;
  bottom: 12px;
  right: 24px;
  background: var(--white);
  border-radius: 14px;
  padding: 14px 22px 14px 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow:
    0 24px 50px -12px rgba(0,0,0,.45),
    0 8px 16px -8px rgba(0,0,0,.3);
  z-index: 3;
}
.vc-creds .disc {
  width: 44px; height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--navy-700), var(--navy-900) 70%);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.vc-creds .lbl {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 2px;
}
.vc-creds .val {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy-800);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .vc-feature { width: 76%; height: 76%; }
  .vc-pulse { right: 0; width: 230px; top: 26px; }
  .vc-creds { right: 0; }
}
@media (max-width: 520px) {
  .vm-clean { display: flex; flex-direction: column; gap: 14px; }
  .vc-feature, .vc-pulse, .vc-creds {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    width: 100%;
    height: auto;
  }
  .vc-feature { aspect-ratio: 1 / 1; }
}

/* ==================================================================
   Variant B — DASHBOARD (the existing "painel + parecer + selo")
   Existing CSS handles it. We just need vm-dashboard to lay them out.
================================================================== */
.vm-dashboard .vis-panel,
.vm-dashboard .vis-parecer,
.vm-dashboard .vis-seal { /* keep original absolute positions inside .hero-vis */ }
/* When dashboard mode is active, the .vis-bg-scale is shown via .vis-mode-dashboard rule above */

/* ==================================================================
   Variant C — EDITORIAL / TYPO
================================================================== */
.vm-typo {
  display: none;
  padding: 8px 8px 8px 12px;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.vis-mode-typo .vm-typo { display: flex; }

.vt-top {
  display: flex; flex-direction: column; gap: 18px;
}
.vt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.vt-kicker::before {
  content: "";
  width: 36px; height: 1px; background: var(--gold-soft);
  display: inline-block;
}

.vt-mark {
  display: flex;
  align-items: baseline;
  font-family: var(--serif);
  color: var(--white);
  line-height: 0.9;
  font-size: clamp(110px, 14vw, 200px);
  letter-spacing: -0.02em;
}
.vt-mark span:last-child {
  background: linear-gradient(180deg, var(--white) 55%, var(--gold-soft) 55%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.vt-rule {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.4), transparent);
  margin: 4px 0 0;
}

.vt-quote {
  position: relative;
  padding-left: 36px;
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.25;
  color: rgba(255,255,255,.92);
  max-width: 24ch;
  letter-spacing: -0.01em;
}
.vt-quote::before {
  content: "“";
  position: absolute;
  left: 0; top: -22px;
  font-size: 80px;
  line-height: 1;
  color: var(--gold-soft);
  font-family: var(--serif);
}

.vt-foot {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.vt-stat {
  display: flex; flex-direction: column; gap: 4px;
}
.vt-stat .n {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold-soft);
  line-height: 1;
}
.vt-stat .l {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

@media (max-width: 520px) {
  .vm-typo { height: auto; }
  .vt-mark { font-size: 84px; }
}

/* ==================================================================
   TWEAKS PANEL
================================================================== */
.tweaks-fab { display: none !important; }
  z-index: 95;
  background: var(--navy-800);
  color: var(--gold-soft);
  border: 1px solid rgba(255,255,255,.1);
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(8,26,48,.35);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.tweaks-fab:hover { transform: translateY(-2px); background: var(--navy-700); }
.tweaks-fab .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,75,.25);
}

.tweaks-panel {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 96;
  width: 320px;
  background: #0d1f37;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
  font-family: var(--sans);
  overflow: hidden;
}
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  cursor: grab;
  user-select: none;
}
.tweaks-head:active { cursor: grabbing; }
.tweaks-head .ttl {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}
.tweaks-head .x {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.7);
  display: grid; place-items: center;
  font-size: 16px;
  line-height: 1;
  border: 0;
  cursor: pointer;
}
.tweaks-head .x:hover { background: rgba(255,255,255,.1); color: #fff; }

.tweaks-body {
  padding: 18px;
  display: flex; flex-direction: column; gap: 20px;
  max-height: 70vh;
  overflow-y: auto;
}
.tw-section .lbl {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
  font-weight: 600;
}
.tw-radio {
  display: grid; gap: 6px;
}
.tw-radio button {
  text-align: left;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  display: flex; align-items: center; gap: 10px;
}
.tw-radio button:hover { background: rgba(255,255,255,.07); color: #fff; }
.tw-radio button.on {
  background: rgba(201,162,75,.12);
  border-color: var(--gold);
  color: var(--gold-soft);
}
.tw-radio button .ix {
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: .6;
}
.tw-radio button.on .ix { opacity: 1; }

.tw-row {
  display: grid; gap: 6px;
}
.tw-row input[type="text"] {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font: 400 13px var(--sans);
}
.tw-row input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.06);
}
.tw-toggle {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.tw-toggle .t-label { font-size: 13px; color: rgba(255,255,255,.85); }
.tw-toggle input { accent-color: var(--gold); width: 18px; height: 18px; }

.tw-swatches {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tw-swatch {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .15s ease;
}
.tw-swatch.on { border-color: var(--white); transform: scale(1.05); }
