/* ==========================================================================
   Apresentação RE/MAX — sistema partilhado (vendedores + compradores)
   Alinhado com remax.pt: azul #003AA8 / #1032CF, tintas #D7E7FF, Urbanist,
   cantos arredondados e pílulas. Registo noturno com vidro sobre luz em movimento.
   ========================================================================== */

:root {
  --navy-950: #000a22;
  --navy-900: #00123a;
  --navy-800: #001b55;
  --blue-700: #003aa8;
  --blue-600: #1032cf;
  --blue-500: #2a4eef;
  --blue-300: #8fb3ff;
  --sky-200: #d7e7ff;
  --sky-100: #e8f1ff;
  --sky-50: #f4f9ff;
  --red-600: #dc1c2e;
  --red-400: #ff5a66;
  --ink: #141414;
  --ink-2: #39435a;
  --ink-3: #5b6680;
  --on-dark: #ffffff;
  --on-dark-2: #c4d4f5;
  --on-dark-3: #8ea3cf;

  --glass-bg: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.04) 60%);
  --glass-line: rgba(255,255,255,.16);
  --glass-hi: rgba(255,255,255,.24);
  --glass-shadow: 0 30px 60px -28px rgba(0, 6, 30, .75), 0 2px 6px -2px rgba(0,6,30,.4);

  --glass-l-bg: linear-gradient(160deg, rgba(255,255,255,.82), rgba(255,255,255,.55));
  --glass-l-line: rgba(16, 50, 207, .12);
  --glass-l-shadow: 0 28px 50px -30px rgba(0, 40, 140, .45), 0 1px 3px rgba(0,40,140,.08);

  --r-card: 22px;
  --r-sm: 14px;
  --r-pill: 999px;

  --font: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1200px;
  --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--on-dark);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--blue-500); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--blue-600); }

html { scrollbar-color: var(--blue-700) var(--navy-950); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb { background: var(--blue-700); border-radius: 10px; border: 2px solid var(--navy-950); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Marcadores de conteúdo a substituir */
.ph { border-bottom: 1.5px dashed currentColor; padding-bottom: 1px; opacity: .92; }
.tag-ex {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(255, 90, 102, .14); color: #ffc2c7; border: 1px solid rgba(255, 90, 102, .35);
}
.light .tag-ex { background: #ffe9eb; color: #a3121f; border-color: #ffc6cb; }

/* ---------- Barra superior ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter);
  background: rgba(0, 10, 34, .55);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .4s var(--ease-out);
}
.topbar.on-light { background: rgba(244, 249, 255, .72); color: var(--ink); border-bottom-color: rgba(0,58,168,.08); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-stripes { display: flex; gap: 2px; height: 26px; }
.brand-stripes i { width: 4px; border-radius: 2px; }
.brand-stripes i:nth-child(1) { background: var(--red-600); }
.brand-stripes i:nth-child(2) { background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.brand-stripes i:nth-child(3) { background: var(--blue-600); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text b { font-weight: 800; font-size: 15px; letter-spacing: .01em; white-space: nowrap; }
.brand-text span { font-size: 12.5px; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- Botões (pílulas RE/MAX) ---------- */
.btn {
  --bg: var(--blue-600); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 0;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(0, 6, 30, .55);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 6, 30, .6); background: var(--blue-500); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.white { --bg: #fff; --fg: var(--blue-700); box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
.btn.white:hover { background: var(--sky-100); }
.btn.ghost { --bg: rgba(255,255,255,.08); --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn.ghost:hover { background: rgba(255,255,255,.14); }
.light .btn.ghost, .topbar.on-light .btn.ghost { --fg: var(--blue-700); background: rgba(16,50,207,.06); box-shadow: inset 0 0 0 1px rgba(16,50,207,.2); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }

/* ---------- Trilho de progresso tricolor ---------- */
.rail {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; gap: 14px; align-items: stretch; height: min(56vh, 460px);
}
.rail-bar { display: flex; gap: 2px; }
.rail-bar span { width: 3px; border-radius: 3px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.rail-bar span::after {
  content: ""; position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--p, 0));
  transition: transform .2s linear;
}
.rail-bar span:nth-child(1)::after { background: var(--red-600); }
.rail-bar span:nth-child(2)::after { background: #fff; }
.rail-bar span:nth-child(3)::after { background: var(--blue-500); }
.rail.on-light .rail-bar span { background: rgba(0,58,168,.12); }
.rail.on-light .rail-bar span:nth-child(2)::after { background: var(--sky-200); }
.rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; }
.rail-list a {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--on-dark-3);
  opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease-out), color .3s;
}
.rail-list a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; opacity: .6; transition: transform .3s var(--ease-out); }
.rail:hover .rail-list a, .rail-list a.active { opacity: 1; transform: none; }
.rail-list a.active { color: #fff; }
.rail-list a.active::before { transform: scale(1.5); background: var(--red-600); opacity: 1; }
.rail.on-light .rail-list a { color: var(--ink-3); }
.rail.on-light .rail-list a.active { color: var(--blue-700); }

/* ---------- Cenas ---------- */
.scene { position: relative; isolation: isolate; padding: clamp(96px, 14vh, 150px) var(--gutter); overflow: hidden; }
.scene.tall { min-height: 100svh; display: flex; align-items: center; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; position: relative; }
.light { background: var(--sky-50); color: var(--ink); }
.light-alt { background: linear-gradient(180deg, var(--sky-50), var(--sky-100)); color: var(--ink); }
.deep { background: var(--navy-950); }
.blue { background: var(--blue-700); }

/* ---------- Fundo contínuo ----------
   As cenas não têm fundo próprio: um único fundo fixo muda de cor e de luz com o scroll
   (deck.js define --bg e --dk: 1 = escuro, 0 = claro), por isso não há limites visíveis. */
html.flow body { background: var(--bg, var(--navy-950)); }
html.flow .scene.deep, html.flow .scene.light, html.flow .scene.light-alt, html.flow .scene.blue { background: transparent; }
html.flow .scene .field { display: none; }
.canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.canvas i { position: absolute; border-radius: 50%; will-change: transform; }
.canvas .dk { opacity: var(--dk, 1); }
.canvas .lt { opacity: calc(1 - var(--dk, 1)); }
.canvas .dk.a { width: 80vmax; height: 80vmax; left: -25vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(16,50,207,.7), rgba(16,50,207,0)); animation: drift-a 30s var(--ease-io) infinite alternate; }
.canvas .dk.b { width: 70vmax; height: 70vmax; right: -30vmax; top: 15vh; background: radial-gradient(closest-side, rgba(0,58,168,.75), rgba(0,58,168,0)); animation: drift-b 36s var(--ease-io) infinite alternate; }
.canvas .dk.c { width: 40vmax; height: 40vmax; left: 35vw; bottom: -18vmax; background: radial-gradient(closest-side, rgba(220,28,46,.28), rgba(220,28,46,0)); animation: drift-c 26s var(--ease-io) infinite alternate; }
.canvas .lt.a { width: 80vmax; height: 80vmax; right: -30vmax; top: -35vmax; background: radial-gradient(closest-side, rgba(143,179,255,.45), rgba(143,179,255,0)); animation: drift-b 34s var(--ease-io) infinite alternate; }
.canvas .lt.b { width: 70vmax; height: 70vmax; left: -30vmax; bottom: -35vmax; background: radial-gradient(closest-side, rgba(42,78,239,.16), rgba(42,78,239,0)); animation: drift-a 40s var(--ease-io) infinite alternate; }

/* Campo de luz animado (fundo dos cenários escuros) */
.field { position: absolute; inset: -10%; z-index: -1; pointer-events: none; }
.field i { position: absolute; border-radius: 50%; will-change: transform; }
.field i:nth-child(1) { width: 70vmax; height: 70vmax; left: -15%; top: -25%; background: radial-gradient(closest-side, rgba(16,50,207,.75), rgba(16,50,207,0)); animation: drift-a 26s var(--ease-io) infinite alternate; }
.field i:nth-child(2) { width: 60vmax; height: 60vmax; right: -20%; top: 10%; background: radial-gradient(closest-side, rgba(0,58,168,.8), rgba(0,58,168,0)); animation: drift-b 32s var(--ease-io) infinite alternate; }
.field i:nth-child(3) { width: 34vmax; height: 34vmax; left: 40%; bottom: -12%; background: radial-gradient(closest-side, rgba(220,28,46,.38), rgba(220,28,46,0)); animation: drift-c 22s var(--ease-io) infinite alternate; }
.field.soft i:nth-child(3) { background: radial-gradient(closest-side, rgba(143,179,255,.35), rgba(143,179,255,0)); }
.light .field i:nth-child(1), .light-alt .field i:nth-child(1) { background: radial-gradient(closest-side, rgba(42,78,239,.22), rgba(42,78,239,0)); }
.light .field i:nth-child(2), .light-alt .field i:nth-child(2) { background: radial-gradient(closest-side, rgba(143,179,255,.45), rgba(143,179,255,0)); }
.light .field i:nth-child(3), .light-alt .field i:nth-child(3) { background: radial-gradient(closest-side, rgba(220,28,46,.10), rgba(220,28,46,0)); }
/* ---------- Loading com o logótipo (1.ª visita) ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--navy-950); overflow: hidden; }
.loader-glow { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 55%, rgba(16,50,207,.55), transparent 70%); opacity: 0; animation: l-fade 1.2s var(--ease-out) .1s forwards; }
.loader-logo { position: relative; width: clamp(260px, 42vw, 520px); aspect-ratio: 440 / 167; }
.loader-logo img { position: absolute; display: block; height: 100%; }
.l-balloon { left: 0; width: 20.2%; object-fit: contain; transform: translateY(70vh) rotate(-6deg); animation: l-rise 1.15s cubic-bezier(.2,.9,.25,1) .15s forwards, l-sway 2.6s ease-in-out 1.3s infinite alternate; transform-origin: 50% 90%; }
.l-word { position: absolute; left: 24.3%; top: 0; width: 75.7%; height: 100%; }
.l-word img { left: 0; top: 0; width: 100%; }
.l-grupo { clip-path: inset(0 100% 72% 0); animation: l-grupo .6s var(--ease-out) .75s forwards; }
.l-viva { clip-path: inset(33% 100% 11% 0); filter: blur(8px); animation: l-viva .85s var(--ease-out) 1.0s forwards; }
.l-swoosh { clip-path: inset(88% 2% 0 82%); opacity: 0; transform: translate(-14%, 18%) scale(.6); transform-origin: 90% 95%; animation: l-swoosh .55s cubic-bezier(.3,1.6,.5,1) 1.65s forwards; }
.loader.exit { animation: l-exit .85s cubic-bezier(.7,0,.25,1) forwards; }
.loader.exit .loader-logo { animation: l-logo-out .6s cubic-bezier(.7,0,.25,1) forwards; }
@keyframes l-fade { to { opacity: 1; } }
@keyframes l-rise { to { transform: none; } }
@keyframes l-sway { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg) translateY(-3%); } }
@keyframes l-grupo { to { clip-path: inset(0 0 72% 0); } }
@keyframes l-viva { to { clip-path: inset(33% 0 11% 0); filter: none; } }
@keyframes l-swoosh { to { opacity: 1; transform: none; } }
@keyframes l-exit {
  0%   { clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 0 100%); }
  45%  { clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% -60%, 50% 0, 0 -60%); }
}
@keyframes l-logo-out { to { transform: translateY(-30vh) scale(.9); opacity: 0; } }

/* Logótipo na barra superior, no hero e no fecho */
.brand-logo { height: 34px; width: auto; display: block; flex: none; }
.brand-logo.on-light-only { display: none; }
.topbar.on-light .brand-logo.on-dark-only { display: none; }
.topbar.on-light .brand-logo.on-light-only { display: block; }
.agent-logo { height: 40px; width: auto; margin-top: 4px; opacity: .95; }
.close-logo { height: clamp(56px, 7vw, 84px); width: auto; margin: 0 auto 40px; display: block; }

@keyframes drift-a { to { transform: translate(18%, 14%) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-22%, 12%) scale(.9); } }
@keyframes drift-c { to { transform: translate(-30%, -20%) scale(1.3); } }

/* ---------- Tipografia ---------- */
.display {
  margin: 0; text-transform: uppercase; letter-spacing: -.02em; line-height: .98;
  font-size: clamp(2.5rem, 7.2vw, 6rem); text-wrap: balance;
}
.display .thin { display: block; font-weight: 200; }
.display .bold { display: block; font-weight: 800; }
.display .red { color: var(--red-400); }
.light .display .red, .light-alt .display .red { color: var(--red-600); }
.h2 {
  margin: 0 0 .5em; text-transform: uppercase; letter-spacing: -.015em; line-height: 1.02;
  font-size: clamp(2rem, 4.6vw, 3.75rem); text-wrap: balance;
}
.h2 .thin { font-weight: 200; display: inline-block; }
.h2 .bold { font-weight: 800; display: inline-block; }
.h3 { margin: 0 0 .4em; font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.5; color: var(--on-dark-2); max-width: 60ch; margin: 0; font-weight: 500; }
.light .lead, .light-alt .lead { color: var(--ink-2); }
.muted { color: var(--on-dark-3); }
.light .muted, .light-alt .muted { color: var(--ink-3); }
p { margin: 0 0 1em; max-width: 68ch; }
.small { font-size: 14.5px; }
.note { font-size: 13.5px; color: var(--on-dark-3); max-width: 70ch; }
.light .note, .light-alt .note { color: var(--ink-3); }
.head { margin-bottom: clamp(36px, 6vw, 64px); display: grid; gap: 18px; }

/* ---------- Vidro ---------- */
.glass {
  position: relative; border-radius: var(--r-card);
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi);
}
.light .glass, .light-alt .glass {
  background: var(--glass-l-bg); border-color: var(--glass-l-line); box-shadow: var(--glass-l-shadow), inset 0 1px 0 #fff;
}
/* reflexo que segue o cursor */
.glass.sheen::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255,255,255,.14), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.glass.sheen:hover::after { opacity: 1; }
.light .glass.sheen::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(42,78,239,.10), transparent 45%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(10, 30, 90, .92); }
  .light .glass, .light-alt .glass { background: #fff; }
}
.pad { padding: clamp(22px, 3vw, 36px); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--topbar-h) + 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero .lead { margin-top: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.agent-card { padding: 22px; display: grid; gap: 18px; }
.agent-top { display: flex; gap: 16px; align-items: center; }
.agent-photo {
  width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700)); border: 2px solid rgba(255,255,255,.4);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: rgba(255,255,255,.85); text-align: center; overflow: hidden;
}
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-name { font-size: 22px; font-weight: 800; line-height: 1.1; }
.agent-role { font-size: 14px; color: var(--on-dark-2); }
.agent-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: var(--r-sm); overflow: hidden; background: rgba(255,255,255,.1); }
.agent-stats div { padding: 14px 10px; background: rgba(0, 18, 58, .55); text-align: center; }
.agent-stats b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.agent-stats span { font-size: 12px; color: var(--on-dark-3); line-height: 1.25; display: block; margin-top: 4px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); text-decoration: none; }
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--on-dark-3), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- Grelhas genéricas ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
.stack { display: grid; gap: 16px; }

/* ---------- Três apostas (dinheiro / tempo / segurança) ---------- */
.stakes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.stakes > div { padding: 28px 28px 8px 0; }
.stakes > div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.stakes b { display: block; font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 200; text-transform: uppercase; line-height: 1; letter-spacing: -.02em; margin-bottom: 18px; }
.stakes > div:nth-child(2) b { font-weight: 500; }
.stakes > div:nth-child(3) b { font-weight: 800; }
.stakes h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.stakes p { color: var(--on-dark-2); font-size: 15.5px; }
.light .stakes { border-top-color: rgba(0,58,168,.14); }
.light .stakes > div + div { border-left-color: rgba(0,58,168,.14); }
.light .stakes p { color: var(--ink-2); }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 0; overflow: hidden; }
.calc-in { padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; align-content: start; }
.calc-out { padding: clamp(22px, 3vw, 36px); background: linear-gradient(160deg, rgba(16,50,207,.55), rgba(0,27,85,.6)); border-left: 1px solid var(--glass-line); display: grid; align-content: space-between; gap: 22px; }
.light .calc-out { background: linear-gradient(160deg, var(--blue-600), var(--blue-700)); color: #fff; border-left: 0; }
.field-row { display: grid; gap: 8px; }
.field-row label, .field-row .lbl { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; }
.field-row output { font-weight: 800; color: #fff; }
.light .field-row output { color: var(--blue-700); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue-500) var(--fill, 50%), rgba(255,255,255,.16) var(--fill, 50%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,.16); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--blue-500); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(42,78,239,.35), 0 4px 10px rgba(0,0,0,.35); transition: box-shadow .2s; }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(42,78,239,.35), 0 4px 10px rgba(0,0,0,.35); }
input[type=range]:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(42,78,239,.35), 0 4px 10px rgba(0,0,0,.35); }
.light input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--blue-600) var(--fill, 50%), var(--sky-200) var(--fill, 50%)); }
.light input[type=range]::-moz-range-track { background: var(--sky-200); }
.light input[type=range]::-webkit-slider-thumb { background: #fff; box-shadow: 0 0 0 6px rgba(16,50,207,.18), 0 4px 10px rgba(0,40,140,.25); }

.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: var(--r-pill); font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--on-dark-2); transition: background .3s var(--ease-out), color .3s; }
.seg button[aria-pressed=true] { background: #fff; color: var(--blue-700); }
.light .seg { background: #fff; box-shadow: inset 0 0 0 1px var(--sky-200); }
.light .seg button { color: var(--ink-2); }
.light .seg button[aria-pressed=true] { background: var(--blue-600); color: #fff; }

.big-num { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.big-num.red { color: var(--red-400); }
.out-label { font-size: 14px; font-weight: 700; color: var(--on-dark-2); margin-bottom: 8px; }
.light .calc-out .out-label { color: var(--sky-200); }
.breakdown { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; }
.breakdown li span:first-child { color: var(--on-dark-2); }
.light .calc-out .breakdown li span:first-child { color: var(--sky-100); }
.breakdown li b { font-weight: 800; }
.breakdown li.total { border-top: 1px solid rgba(255,255,255,.4); font-size: 17px; }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; font-size: 15px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .sw { width: 46px; height: 28px; border-radius: 28px; background: rgba(255,255,255,.16); position: relative; flex: none; transition: background .3s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease-out); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.toggle input:checked + .sw { background: var(--blue-500); }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.toggle input:focus-visible + .sw { outline: 2px solid var(--blue-300); outline-offset: 3px; }
.light .toggle .sw { background: var(--sky-200); }
.light .toggle input:checked + .sw { background: var(--blue-600); }

.print-only { display: none; }

/* ---------- Filtro de portal ---------- */
.reach-box { margin-top: clamp(28px, 4vw, 40px); display: grid; gap: 16px; max-width: 480px; }
.reach-text { margin: 0; font-size: 17px; color: var(--on-dark-2); font-weight: 600; }
.reach-text b { font-size: 2.2em; font-weight: 800; color: #fff; vertical-align: -.12em; margin: 0 .1em; transition: color .3s; }
.reach-box.low .reach-text b { color: var(--red-400); }
.reach { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.reach i { height: 34px; border-radius: 8px; background: rgba(255,255,255,.1); transition: background .4s var(--ease-out), transform .4s var(--ease-out); }
.reach i.on { background: #fff; }
.reach-box.low .reach i.on { background: var(--red-400); }

.portal { padding: clamp(16px, 2.4vw, 24px); display: grid; gap: 14px; }
.portal-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(0, 10, 34, .4); border: 1px solid rgba(255,255,255,.1); }
.portal-search .tag-ex { margin-left: auto; }
.chip { padding: 7px 13px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); font-size: 14px; font-weight: 700; }
.chip.max { background: #fff; color: var(--blue-700); }
.portal-count { font-size: 14px; color: var(--on-dark-3); padding: 0 4px; }
.portal-count b { color: #fff; }
.listings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.listing { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: opacity .5s var(--ease-out), filter .5s var(--ease-out), background .4s, transform .5s var(--ease-out); }
.listing .thumb { width: 64px; height: 48px; border-radius: 10px; background: linear-gradient(140deg, rgba(143,179,255,.45), rgba(16,50,207,.35)); }
.listing b { font-weight: 800; font-size: 15.5px; white-space: nowrap; }
.listing span b { white-space: normal; }
.listing small { display: block; font-size: 13px; color: var(--on-dark-3); margin-top: 2px; }
.listing.mine { background: rgba(42, 78, 239, .3); border-color: rgba(143,179,255,.45); }
.listing.mine .thumb { background: linear-gradient(140deg, #fff, var(--blue-300)); }
.listing.mine.out { opacity: .45; filter: grayscale(1); transform: scale(.98); background: rgba(255,255,255,.03); border-style: dashed; border-color: rgba(255, 90, 102, .6); }
.listing.mine.out small { color: var(--red-400); font-weight: 700; }

.reach-static { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.reach-static > div { padding: 20px 22px; display: grid; gap: 4px; }
.reach-static span { font-size: 13px; font-weight: 700; color: var(--on-dark-3); }
.reach-static b { font-size: 26px; font-weight: 800; }
.reach-static em { font-style: normal; font-weight: 700; color: var(--on-dark-2); }

/* ---------- Dois destinos ---------- */
.fates { display: grid; gap: 12px; }
.fate-head, .fate-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.fate-col { padding: 18px 22px; border-radius: var(--r-sm); display: grid; gap: 2px; }
.fate-col small { font-size: 13.5px; font-weight: 700; }
.fate-col b { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.fate-col.good { background: linear-gradient(150deg, var(--blue-600), var(--blue-700)); color: #fff; }
.fate-col.good small { color: var(--sky-200); }
.fate-col.bad { background: #fff1f2; border: 1px solid #ffd3d7; color: #a3121f; }
.fate-col.bad b { color: var(--red-600); }
.fate-rows { display: grid; gap: 12px; }
.fate-row .when { align-self: center; font-size: 14px; font-weight: 800; color: var(--blue-600); }
.cell { padding: 16px 20px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--sky-200); font-size: 15px; color: var(--ink-3); line-height: 1.4; }
.cell b { display: block; font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.cell.good.end { background: var(--blue-600); border-color: var(--blue-600); color: var(--sky-100); }
.cell.good.end b { color: #fff; }
.cell.good.done { background: transparent; border-style: dashed; color: var(--ink-3); display: flex; align-items: center; }
.cell.bad.end { background: var(--red-600); border-color: var(--red-600); color: #ffe3e6; }
.cell.bad.end b { color: #fff; }
.fate-sum { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; padding-top: 6px; }
.fate-sum p { margin: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--ink-2); }
.fate-sum b { color: var(--red-600); font-weight: 800; }

/* ---------- Gráfico de interesse ---------- */
.chart { padding: clamp(18px, 3vw, 32px); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .axis { stroke: rgba(255,255,255,.18); stroke-width: 1; }
.chart .gridl { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.chart .lbl { fill: var(--on-dark-3); font-size: 13px; font-weight: 600; font-family: var(--font); }
.chart .curve { fill: none; stroke-width: 3.5; stroke-linecap: round; transition: opacity .5s var(--ease-out), stroke-width .4s; }
.chart .curve.a { stroke: #fff; }
.chart .curve.b { stroke: var(--red-400); }
.chart .area.a { fill: url(#gradA); transition: opacity .5s; }
.chart .pin circle { transition: opacity .5s; }
.chart .pin text { font-size: 15px; font-weight: 800; font-family: var(--font); transition: opacity .5s; }
.chart [data-s] { transition: opacity .5s var(--ease-out); }
.chart[data-iso=a] [data-s=b], .chart[data-iso=b] [data-s=a] { opacity: .12; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 18px; }

/* ---------- Lista de erros (preço) ---------- */
.errors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 960px) { .errors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.err { padding: 20px 22px; border-radius: var(--r-sm); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.err b { display: block; font-size: 16.5px; font-weight: 800; margin-bottom: 4px; }
.err span { font-size: 15px; color: var(--on-dark-2); }

/* ---------- Linha temporal do método ---------- */
.timeline { position: relative; display: grid; gap: clamp(18px, 3vw, 28px); padding-left: clamp(46px, 7vw, 92px); }
.timeline-track { position: absolute; left: clamp(14px, 2.5vw, 30px); top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: rgba(0,58,168,.12); }
.timeline-track i { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--tp, 0)); border-radius: 3px; background: linear-gradient(var(--red-600), var(--blue-600) 40%); }
.phase { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(18px, 3vw, 40px); padding: clamp(22px, 3vw, 34px); }
.phase::before {
  content: ""; position: absolute; left: calc(-1 * clamp(46px, 7vw, 92px) + clamp(14px, 2.5vw, 30px) - 7px); top: 38px;
  width: 17px; height: 17px; border-radius: 50%; background: var(--sky-50); border: 3px solid var(--sky-200);
  transition: border-color .4s, background .4s, transform .5s var(--ease-out);
}
.phase.lit::before { border-color: var(--blue-600); background: var(--blue-600); transform: scale(1.15); }
.phase-when { font-size: 14px; font-weight: 800; color: var(--blue-600); letter-spacing: .02em; }
.phase-name { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.015em; line-height: 1; margin: 6px 0 10px; }
.phase-name .n { font-weight: 200; color: var(--ink-3); margin-right: .25em; }
.phase ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.phase li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.phase li svg { width: 20px; height: 20px; margin-top: 2px; color: var(--blue-600); }
.phase li b { color: var(--ink); }

/* ---------- Relatório semanal (mock) ---------- */
.report { padding: clamp(20px, 3vw, 30px); display: grid; gap: 20px; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.kpi { padding: 16px; border-radius: var(--r-sm); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.kpi b { display: block; font-size: 28px; font-weight: 800; line-height: 1; }
.kpi span { font-size: 13px; color: var(--on-dark-3); display: block; margin-top: 6px; }
.kpi .delta { font-size: 12.5px; font-weight: 800; color: #7fe3a5; margin-top: 4px; }
.bars { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 8px; align-items: end; height: 120px; }
.bars i { display: block; border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--blue-300), var(--blue-600)); height: var(--h); transform-origin: bottom; }
.bars i.hot { background: linear-gradient(#fff, var(--blue-300)); }
.bars-x { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 8px; font-size: 11.5px; color: var(--on-dark-3); text-align: center; margin-top: -10px; }
.quote-fb { padding: 14px 16px; border-radius: var(--r-sm); background: rgba(0,10,34,.35); font-size: 15px; color: var(--on-dark-2); display: grid; gap: 4px; }
.quote-fb b { color: #fff; font-size: 13px; }

/* ---------- Casos (antes/depois) ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.case { padding: 0; overflow: hidden; display: grid; }
.case-img { aspect-ratio: 4/3; background: linear-gradient(150deg, var(--sky-200), var(--blue-300)); position: relative; display: grid; place-items: center; color: var(--blue-700); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.case-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-img .tag-ex { position: absolute; top: 12px; left: 12px; }
.case-body { padding: 20px 22px 22px; display: grid; gap: 14px; }
.case-title { font-weight: 800; font-size: 17px; }
.case-title span { display: block; font-weight: 600; font-size: 14px; color: var(--ink-3); }
.case-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.case-nums div span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.case-nums div b { font-size: 20px; font-weight: 800; }
.case-delta { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--sky-200); }
.case-delta b { font-size: 26px; font-weight: 800; color: var(--blue-600); }
.case-delta span { font-size: 13.5px; color: var(--ink-3); font-weight: 600; text-align: right; }

/* ---------- Tabela comparativa ---------- */
.compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; font-size: 15.5px; border-bottom: 1px solid rgba(255,255,255,.09); vertical-align: middle; }
.compare thead th { font-size: 14px; font-weight: 800; color: var(--on-dark-2); }
.compare tbody th { font-weight: 700; color: var(--on-dark-2); width: 34%; }
.compare td { text-align: center; }
.compare .me { background: rgba(42, 78, 239, .22); color: #fff; }
.compare thead .me { border-radius: 16px 16px 0 0; color: #fff; font-size: 16px; }
.compare tbody tr:last-child .me { border-radius: 0 0 16px 16px; }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.mark svg { width: 16px; height: 16px; }
.mark.yes { background: #fff; color: var(--blue-600); }
.mark.part { background: rgba(255,255,255,.1); color: var(--on-dark-2); }
.mark.no { background: rgba(255,90,102,.14); color: var(--red-400); }

/* ---------- Compromissos ---------- */
.clauses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.clause { padding: 26px; display: grid; gap: 10px; align-content: start; }
.clause-k { display: flex; align-items: baseline; gap: 12px; }
.clause-k b { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--blue-600); }
.clause-k span { font-weight: 800; font-size: 16px; }
.clause p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.clause.wide { grid-column: 1 / -1; background: linear-gradient(140deg, var(--blue-600), var(--blue-700)); color: #fff; border: 0; }
.clause.wide p { color: var(--sky-100); }
.clause.wide .clause-k b { color: #fff; }

/* ---------- Camadas de mercado (compradores) ---------- */
.layers { position: relative; aspect-ratio: 1; width: min(100%, 520px); margin: 0 auto; }
.layers .ring {
  position: absolute; border-radius: 50%; display: grid; justify-items: center; align-content: start; padding-top: 6%;
  border: 1px solid rgba(255,255,255,.18); background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.08), rgba(255,255,255,.015));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-weight: 800; font-size: clamp(12px, 1.6vw, 14.5px); text-align: center; color: var(--on-dark-2);
  transition: transform 1.1s var(--ease-out), opacity .8s;
}
.layers .ring small { display: block; font-weight: 600; font-size: .85em; color: var(--on-dark-3); }
.layers .r1 { inset: 0; }
.layers .r2 { inset: 13%; }
.layers .r3 { inset: 26%; }
.layers .r4 { inset: 39%; background: radial-gradient(circle at 50% 35%, var(--blue-500), var(--blue-700)); border-color: rgba(255,255,255,.4); color: #fff; align-content: center; padding: 0 6%; box-shadow: 0 24px 40px -16px rgba(0, 6, 30, .7); }
.layers .r4 small { color: var(--sky-200); }
.layers .r1 { color: var(--on-dark-3); }

/* ---------- Checklist de verificação ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; }
.check .tick { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-100); color: var(--blue-600); transition: background .45s var(--ease-out), color .45s; }
.check .tick svg { width: 20px; height: 20px; }
.check .tick path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .6s var(--ease-out) .15s; }
.check.done .tick { background: var(--blue-600); color: #fff; }
.check.done .tick path { stroke-dashoffset: 0; }
.check b { display: block; font-size: 16.5px; }
.check span { font-size: 14.5px; color: var(--ink-3); }
.check em { font-style: normal; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); opacity: 0; transition: opacity .4s .3s; }
.check.done em { opacity: 1; color: var(--blue-600); }

/* ---------- Negociação (caso) ---------- */
.nego { padding: clamp(22px, 3vw, 34px); display: grid; gap: 22px; }
.nego-line { position: relative; height: 70px; }
.nego-line .bar { position: absolute; left: 0; right: 0; top: 30px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); }
.nego-line .gap { position: absolute; top: 30px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--blue-500), #fff); left: var(--from); width: calc(var(--to) - var(--from)); transform-origin: right; }
.nego-line .pt { position: absolute; top: 0; transform: translateX(-50%); text-align: center; font-size: 12.5px; font-weight: 700; color: var(--on-dark-3); white-space: nowrap; }
.nego-line .pt::after { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; margin: 6px auto 0; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.nego-line .pt:first-of-type { transform: translateX(-14px); text-align: left; }
.nego-line .pt:first-of-type::after { margin-left: 7px; }
.nego-line .pt:last-of-type { transform: translateX(calc(-100% + 14px)); text-align: right; }
.nego-line .pt:last-of-type::after { margin-right: 7px; }
.nego-line .pt.red::after { background: var(--red-400); box-shadow: 0 0 0 4px rgba(255,90,102,.25); }
.nego-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.nego-steps div { padding: 16px; border-radius: var(--r-sm); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: 14.5px; color: var(--on-dark-2); }
.nego-steps b { display: block; color: #fff; font-size: 15.5px; margin-bottom: 4px; }

/* ---------- Etapas compra (horizontal) ---------- */
.road { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; position: relative; padding-top: 34px; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 41px; height: 3px; border-radius: 3px; background: var(--sky-200); }
.road::after { content: ""; position: absolute; left: 0; top: 41px; height: 3px; border-radius: 3px; width: 100%; background: linear-gradient(90deg, var(--red-600), var(--blue-600) 30%); transform-origin: left; transform: scaleX(var(--rp, 0)); transition: transform 1.6s var(--ease-out); }
.road-step { position: relative; padding: 0 10px; text-align: left; }
.road-step::before { content: ""; position: absolute; top: -1px; left: 10px; width: 17px; height: 17px; border-radius: 50%; background: var(--sky-50); border: 3px solid var(--sky-200); z-index: 1; transition: all .4s; }
.road.in .road-step::before { border-color: var(--blue-600); background: #fff; }
.road-step .when { display: block; margin-top: 34px; font-size: 13px; font-weight: 800; color: var(--blue-600); }
.road-step b { display: block; font-size: 16px; font-weight: 800; margin: 4px 0 4px; line-height: 1.2; }
.road-step span { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.4; }

/* ---------- Acordeão (documentos) ---------- */
.acc { border-radius: var(--r-card); overflow: hidden; }
.acc details { border-top: 1px solid rgba(255,255,255,.1); }
.acc details:first-child { border-top: 0; }
.light .acc details { border-top-color: var(--sky-200); }
.acc summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 800; font-size: 17px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); flex: none; transition: transform .45s var(--ease-out), background .3s; }
.light .acc summary .plus { background: var(--sky-100); color: var(--blue-600); }
.acc details[open] summary .plus { transform: rotate(45deg); background: var(--blue-600); color: #fff; }
.acc .acc-body { padding: 0 26px 24px; }
.acc ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.acc li { break-inside: avoid; padding: 8px 0 8px 22px; position: relative; font-size: 15.5px; color: var(--on-dark-2); }
.light .acc li { color: var(--ink-2); }
.acc li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue-500); transform: rotate(45deg); }

/* ---------- Fecho ---------- */
.close-scene { text-align: center; }
.close-scene .display { margin: 0 auto; max-width: 14ch; }
.close-scene .lead { margin: 26px auto 0; }
.contact { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 48px auto 0; max-width: 900px; text-align: left; }
.contact a { padding: 20px 22px; text-decoration: none; display: grid; gap: 4px; transition: transform .4s var(--ease-out); }
.contact a:hover { transform: translateY(-3px); }
.contact a span { font-size: 13px; font-weight: 700; color: var(--on-dark-3); }
.contact a b { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.contact a svg { width: 22px; height: 22px; margin-bottom: 8px; color: var(--blue-300); }
.legal { margin-top: 64px; font-size: 12.5px; color: var(--on-dark-3); text-align: center; max-width: none; }

/* ==========================================================================
   Movimento — só com JS ativo e sem preferência por movimento reduzido.
   O conteúdo é visível por omissão.
   ========================================================================== */
.motion [data-reveal="lines"] .thin,
.motion [data-reveal="lines"] .bold {
  clip-path: inset(0 0 100% 0); transform: translateY(.35em); filter: blur(6px);
  transition: clip-path 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
}
.motion [data-reveal="lines"] > :nth-child(2) { transition-delay: .12s; }
.motion [data-reveal="lines"] > :nth-child(3) { transition-delay: .24s; }
.motion [data-reveal="lines"].in .thin,
.motion [data-reveal="lines"].in .bold { clip-path: inset(-10% -5% -20% -5%); transform: none; filter: none; }

.motion [data-reveal="rise"] { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out); }
.motion [data-reveal="rise"].in { opacity: 1; transform: none; filter: none; }

.motion [data-reveal="stagger"] > * { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(6px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out), filter .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.motion [data-reveal="stagger"].in > * { opacity: 1; transform: none; filter: none; }

.motion [data-reveal="glass"] { opacity: 0; transform: perspective(1200px) rotateX(10deg) translateY(40px); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: opacity 1s var(--ease-out), transform 1.3s var(--ease-out), backdrop-filter 1.2s var(--ease-out), -webkit-backdrop-filter 1.2s var(--ease-out); }
.motion [data-reveal="glass"].in { opacity: 1; transform: none; -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); }

.motion .chart .curve { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 2.2s var(--ease-out), opacity .5s; }
.motion .chart .curve.b { transition-delay: .35s; }
.motion .chart.in .curve { stroke-dashoffset: 0; }
.motion .chart .area, .motion .chart .pin { opacity: 0; transition: opacity .8s var(--ease-out) 1.6s; }
.motion .chart.in .area, .motion .chart.in .pin { opacity: 1; }
.motion .chart[data-iso=b].in .area.a, .motion .chart[data-iso=b].in .pin[data-s=a] { opacity: .12; }
.motion .chart[data-iso=a].in .pin[data-s=b] { opacity: .12; }

.motion .bars i { transform: scaleY(0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + .2s); }
.motion .report.in .bars i { transform: none; }

.motion .layers .r1 { transform: scale(.6); opacity: 0; }
.motion .layers .r2 { transform: scale(.6); opacity: 0; transition-delay: .15s; }
.motion .layers .r3 { transform: scale(.6); opacity: 0; transition-delay: .3s; }
.motion .layers .r4 { transform: scale(.4); opacity: 0; transition-delay: .5s; }
.motion .layers.in .ring { transform: none; opacity: 1; }

.motion .nego-line .gap { transform: scaleX(0); transition: transform 1.6s var(--ease-out) .3s; }
.motion .nego.in .nego-line .gap { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .field i, .scroll-cue i::after, .canvas i { animation: none; }
  .road::after { transform: scaleX(1); transition: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .rail { display: none; }
  .mobile-progress { display: flex; }
}
.mobile-progress { display: none; position: fixed; left: 0; right: 0; top: var(--topbar-h); height: 3px; z-index: 49; gap: 0; }
.mobile-progress i { flex: 1; transform-origin: left; transform: scaleX(var(--p, 0)); }
.mobile-progress i:nth-child(1) { background: var(--red-600); }
.mobile-progress i:nth-child(2) { background: #fff; }
.mobile-progress i:nth-child(3) { background: var(--blue-500); }
@media (min-width: 1101px) { .mobile-progress { display: none !important; } }

@media (max-width: 960px) {
  .hero-grid, .split, .calc { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; border-top: 1px solid var(--glass-line); }
  .cases { grid-template-columns: 1fr 1fr; }
  .phase { grid-template-columns: 1fr; gap: 14px; }
  .road { grid-template-columns: 1fr; padding-top: 0; padding-left: 40px; gap: 22px; }
  .road::before, .road::after { left: 9px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; }
  .road::after { transform-origin: top; transform: scaleY(var(--rp, 0)); background: linear-gradient(var(--red-600), var(--blue-600) 30%); }
  .road-step { padding: 0; }
  .road-step::before { left: -38px; top: 2px; }
  .road-step .when { margin-top: 0; }
  .report-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .stakes { grid-template-columns: 1fr; }
  .stakes > div, .stakes > div + div { padding: 24px 0 6px; border-left: 0; }
  .stakes > div + div { border-top: 1px solid rgba(255,255,255,.14); }
  .light .stakes > div + div { border-top-color: rgba(0,58,168,.14); }
  .errors, .clauses, .cases, .contact, .nego-steps, .scen-grid { grid-template-columns: 1fr; }
  .reach-static { grid-template-columns: 1fr; }
  .fate-head, .fate-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .fate-head > span:first-child { display: none; }
  .fate-row .when { grid-column: 1 / -1; margin-top: 10px; }
  .fate-col { padding: 14px; }
  .cell { padding: 12px 14px; font-size: 13.5px; }
  .cell b { font-size: 16px; }
  .fate-sum { justify-content: flex-start; }
  .listing { grid-template-columns: 48px minmax(0, 1fr); }
  .listing .thumb { width: 48px; height: 40px; }
  .listing > b { grid-column: 2; }
  .wait-controls .seg { width: 100%; }
  .wait-controls .seg button { flex: 1 1 auto; padding: 8px 10px; font-size: 13.5px; }
  .erosion { height: 190px; }
  .ebar span { font-size: 11.5px; }
  .acc ul { columns: 1; }
  .topbar .hide-sm { display: none; }
  .brand-text span { max-width: 44vw; }
  .check { grid-template-columns: 40px minmax(0,1fr); }
  .check em { grid-column: 2; }
  .agent-stats b { font-size: 19px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .layers .ring { padding-top: 4.5%; font-size: 12.5px; }
  .layers .ring small { display: none; }
  .layers .r4 { padding: 0 10%; }
}

/* ==========================================================================
   Impressão / PDF de apoio
   ========================================================================== */
@page { size: A4 landscape; margin: 0; }
/* Ctrl+P na página web: em vez de uma impressão desformatada, indica o PDF oficial */
.print-redirect { display: none; }
@media print {
  body.has-pdf > :not(.print-redirect) { display: none !important; }
  body.has-pdf .print-redirect { display: block !important; padding: 40mm 30mm; font-family: var(--font); color: var(--ink); }
  body.has-pdf .print-redirect b { display: block; font-size: 22pt; margin-bottom: 6mm; color: var(--blue-700); }
  html, body { background: var(--navy-950) !important; }
  body.has-pdf { background: #fff !important; }
  .canvas { display: none !important; }
  html.flow .scene.deep { background: var(--navy-950) !important; }
  html.flow .scene.light, html.flow .scene.light-alt { background: var(--sky-50) !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .topbar, .rail, .mobile-progress, .scroll-cue, .no-print, .screen-only, .seg, .calc-in input[type=range] { display: none !important; }
  .print-only { display: block !important; }
  .ebar i { transform: none !important; }
  .ebar.active b { color: var(--ink-2); }
  .ebar.active i { background: linear-gradient(var(--sky-200), #bcd3fb); }
  .scene { min-height: auto !important; padding: 18mm 16mm !important; break-after: page; page-break-after: always; }
  .scene.tall, .hero { min-height: 100vh !important; }
  .field i { animation: none !important; }
  .glass { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(20, 45, 120, .55) !important; box-shadow: none !important; }
  .light .glass, .light-alt .glass { background: #fff !important; }
  .phase, .case, .clause, .check, .kpi, .err, .contact a { break-inside: avoid; }
  .acc details > :not(summary) { display: block !important; }
  .acc summary .plus { display: none; }
  .motion [data-reveal] , .motion [data-reveal] * { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .chart .curve { stroke-dashoffset: 0 !important; }
  .chart .area, .chart .pin, .layers .ring { opacity: 1 !important; transform: none !important; }
  .bars i, .nego-line .gap { transform: none !important; }
  .road::after { transform: none !important; }
  a[href^="http"]::after { content: ""; }
}
