:root {
  --bg: #f5f3ee;
  --bg-tint: #ebe7de;
  --surface: #ffffff;
  --surface-alt: #f9f8f4;
  --ink: #121619;
  --muted: #4b5563;
  --border: #d8d3c8;
  --accent: #b84a27;
  --accent-hover: #993c1e;
  --ok: #0b6e4f;
  --ok-bg: #e6f4ee;
  --danger: #b42318;
  --danger-bg: #fdeceb;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(18, 22, 25, 0.22);
}

:root[data-theme="dark"] {
  --bg: #0e1113;
  --bg-tint: #14191c;
  --surface: #181e22;
  --surface-alt: #12171a;
  --ink: #f3f1ec;
  --muted: #9ca3af;
  --border: #2a3238;
  --accent: #e06238;
  --accent-hover: #f0764d;
  --ok: #34d399;
  --ok-bg: rgba(16, 185, 129, 0.14);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.14);
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.mono, code {
  font-family: "JetBrains Mono", monospace;
}

.container {
  width: min(1180px, 100% - 2.25rem);
  margin-inline: auto;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
}

.brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-name small {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--accent);
  vertical-align: top;
}

.nav-links {
  display: flex;
  gap: 1.35rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.25rem;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-accent {
  background: var(--ink);
  color: var(--bg);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
}

/* Hero */
.hero {
  padding: clamp(2.8rem, 6vw, 4.75rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-bg);
}

.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 56ch;
}

.lead strong {
  color: var(--ink);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  padding: 1.25rem 0 0;
  margin: 1.75rem 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.trust-strip strong {
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
}

/* Interactive Stage */
.stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.stage-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.stage-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.stage-tab {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.stage-tab.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.mono-badge {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--bg-tint);
  color: var(--ink);
}

.badge-copper {
  background: var(--accent);
  color: #fff;
}

.stage-panel {
  padding-top: 1rem;
}

.mono-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.voice-box {
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 0.95rem;
}

.voice-quote {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.extracted-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.metric-cell {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.metric-cell span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.metric-cell strong {
  font-size: 0.88rem;
}

.status-bar {
  margin-top: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--muted);
}

.status-ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 30%, transparent);
  font-weight: 600;
}

.status-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
  font-weight: 600;
}

.roster-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.roster-row.is-next {
  border-color: var(--ok);
}

.roster-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-neutral { background: var(--bg-tint); color: var(--muted); }

.owner-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem;
}

.owner-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.owner-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.65rem 0 0.85rem;
}

.owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Sections */
.section {
  padding: clamp(3.2rem, 6vw, 5.2rem) 0;
}

.section-tinted {
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.2rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
}

.section-sub {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.feat-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin: 0.45rem 0 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
}

.calc-controls {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.range-field {
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.range-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.calc-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.65rem;
  box-shadow: var(--shadow);
}

.calc-big-metric {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}

.calc-big-metric span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.calc-big-metric strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.75rem;
}

.text-ok {
  color: var(--ok);
}

.calc-payback {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 1rem 0 1.25rem;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.95rem;
  background: var(--surface-alt);
}

.compare-table .col-2b {
  background: color-mix(in srgb, var(--ok-bg) 55%, var(--surface));
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.plan-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.plan-top h3 {
  font-size: 1.55rem;
  margin-top: 0.65rem;
}

.plan-top p {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.plan-price {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-main {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
}

.price-main small {
  font-size: 0.95rem;
  color: var(--muted);
}

.price-setup {
  font-size: 0.82rem;
  color: var(--muted);
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.88rem;
  flex: 1;
}

.plan-list li::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 800;
}

.guarantee-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.addon-banner {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--accent);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.addon-banner h4 {
  font-size: 1.1rem;
  margin: 0.55rem 0 0.35rem;
}

.addon-banner p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 72ch;
}

.guarantee-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.guarantee-item h4 {
  font-size: 1.02rem;
  margin: 0.55rem 0 0.4rem;
}

.guarantee-item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* FAQ */
.faq-wrap {
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.96rem;
}

.faq-item p {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero-grid,
  .calc-grid,
  .pricing-grid,
  .guarantee-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

/* ===== Etapa 2/3: decisão, bônus, tour, prova real, a11y ===== */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--surface); padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.decision-box { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.decision-head h3 { font-size: 1.25rem; margin: .5rem 0 1rem; }
.decision-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1rem; }
.decision-option { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem; font-size: .88rem; }
.decision-option strong { color: var(--ink); }
.decision-option p { margin: .45rem 0 0; color: var(--muted); }
.decision-option-highlight { border-color: var(--accent); background: color-mix(in srgb, var(--ok-bg) 35%, var(--surface)); }
.decision-math { margin: .65rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; color: var(--ink); font-size: .84rem; }
.bonus-strip { margin: 1.5rem 0; background: var(--surface); border: 1px dashed var(--accent); border-radius: 18px; padding: 1.4rem; }
.bonus-strip-head h4 { margin: .5rem 0 1rem; font-size: 1.05rem; }
.bonus-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.bonus-mini { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.bonus-mini h5 { margin: .4rem 0; font-size: .95rem; }
.bonus-mini p { margin: 0; color: var(--muted); font-size: .84rem; }
.tour-showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.compare-stage, .video-stage { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.2rem; box-shadow: var(--shadow); min-width: 0; }
.room-pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.ba-viewport { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); margin-top: .9rem; }
.ba-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before-clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.ba-before-raw { filter: brightness(.68) contrast(.86) saturate(.72) sepia(.08); transform: scale(1.015) rotate(-.6deg); }
.ba-tag { position: absolute; top: .6rem; background: rgba(14,17,19,.78); color: #fff; font-size: .68rem; padding: .25rem .5rem; border-radius: 6px; }
.ba-tag-left { left: .6rem; } .ba-tag-right { right: .6rem; }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: #111; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.ba-range-overlay { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-viewport:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.ba-caption { font-size: .84rem; color: var(--muted); margin: .8rem 0 0; }
.tour-player-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #0e1113; margin-top: .9rem; }
.tour-video, .tour-fallback { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-fallback { position: relative; overflow: hidden; }
.tour-fallback[hidden], .tour-video[hidden] { display: none; }
.tour-fallback-motion { width: 100%; height: 100%; object-fit: cover; animation: kenburns 3.8s ease-in-out both; will-change: transform; }
@keyframes kenburns { from { transform: scale3d(1,1,1) translate3d(0,0,0); } to { transform: scale3d(1.09,1.09,1) translate3d(-1.5%, -1%, 0); } }
.tour-fallback-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); align-items: flex-start; }
.tour-scene-controls { display: flex; gap: .4rem; }
.tour-footer-cta { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; }
.tour-footer-cta p { margin: 0; font-size: .84rem; color: var(--muted); }
.case-zero-card { margin-top: 1.5rem; display: grid; grid-template-columns: 1.4fr .6fr; gap: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow); }
.case-zero-copy h3 { margin: .6rem 0; font-size: 1.2rem; }
.case-zero-copy p { color: var(--muted); font-size: .92rem; }
.case-zero-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.case-zero-metrics { display: grid; gap: .7rem; margin: 0; align-content: center; }
.case-zero-metrics div { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; padding: .8rem; }
.case-zero-metrics dt { font-size: .75rem; color: var(--muted); }
.case-zero-metrics dd { margin: .2rem 0 0; font-size: 1.1rem; font-weight: 700; }
.icon-btn { width: 44px; height: 44px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { min-width: 640px; }
@media (max-width: 920px), (pointer: coarse) { .btn-sm, .stage-tab { min-height: 44px; } }
@media (max-width: 920px) {
  .tour-showcase-grid, .decision-split, .bonus-cards, .case-zero-card { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .extracted-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 64px; }
  .mobile-cta { display: flex; }
}
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: .6rem .8rem; background: var(--surface); border-top: 1px solid var(--border); justify-content: center; }
.mobile-cta .btn { width: 100%; justify-content: center; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tour-fallback-motion { animation: none; } }
