/* =========================================================
   FRS Solares — landing page · v2
   Paleta: azul-marinho #0A0A45 (principal) · verde #1B5E3F (secundária)
           amarelo #FFF44F (destaque) · roxo #7543A5 (complementar)
   Regra: amarelo é sempre FUNDO com texto azul (ou texto sobre fundo
   escuro). Nunca texto amarelo sobre fundo claro (1,09:1).
   ========================================================= */

/* ---------- Tokens: modo claro ---------- */
:root,
:root[data-theme="light"] {
  color-scheme: light;

  --navy: #0A0A45;
  --navy-2: #16166A;
  --green: #1B5E3F;
  --yellow: #FFF44F;
  --purple: #7543A5;
  --white: #FFFFFF;

  --bg: #F7F6F1;
  --bg-tint: #F1EEF8;           /* lilás muito leve: o roxo no fundo */
  --surface: #FFFFFF;
  --surface-2: #F3F2F8;
  --ink: #0A0A45;               /* títulos */
  --text: #2A2B3D;              /* corpo */
  --muted: #575A72;             /* 6,2:1 sobre --bg */
  --line: #E2E0EC;
  --line-input: #70737A;

  --accent: #FFF44F;
  --on-accent: #0A0A45;
  --btn-primary-bg: #0A0A45;
  --btn-primary-fg: #FFFFFF;

  --green-text: #1B5E3F;        /* 7,3:1 */
  --green-soft: #E5F1EA;
  --purple-text: #7543A5;       /* 6,4:1 */
  --purple-soft: #EFE7F8;
  --eyebrow: #7543A5;

  --header-bg: rgba(247, 246, 241, .82);
  --hero-veil: rgba(247, 246, 241, .92);
  --hero-veil-2: rgba(247, 246, 241, .55);
  --hero-img-filter: saturate(.8) contrast(1.02);
  --chip-bg: rgba(255, 255, 255, .82);

  --dark-bg: #0A0A45;           /* seções escuras */
  --footer-bg: #0A0A45;

  --sky-day: #E3EAFF;
  --sky-night: #0A0A45;
  --house: #FFFFFF;
  --house-line: #0A0A45;

  --stage-day: radial-gradient(120% 90% at 18% 0%, #FFFFFF 0%, #ECEEFF 45%, #DDD7F3 100%);
  --stage-night: linear-gradient(180deg, #0A0A45 0%, #1D1460 100%);
  --stage-dusk: linear-gradient(180deg, #2B1C6E 0%, #7543A5 58%, #E7B98F 100%);
  --stage-grid: rgba(10, 10, 69, .07);

  --shadow-sm: 0 1px 2px rgba(10,10,69,.06), 0 2px 8px rgba(10,10,69,.05);
  --shadow: 0 14px 34px -14px rgba(10,10,69,.22), 0 2px 6px rgba(10,10,69,.05);
  --shadow-lg: 0 34px 70px -26px rgba(10,10,69,.42);
  --glow-purple: 0 18px 40px -16px rgba(117,67,165,.45);
}

/* ---------- Tokens: modo noturno ----------
   Não é inversão: fundo azul profundo, superfícies elevadas mais claras,
   texto levemente frio, verde e roxo clareados para leitura, amarelo
   liberado como texto de destaque (16:1 sobre o fundo). */
/* ---------- Tokens: modo noturno ----------
   Composição própria, em camadas: fundo quase preto-azulado → seções em
   azul profundo → cards em azul elevado com borda e brilho no topo.
   Verde e roxo clareados para leitura; amarelo liberado como texto. */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #04041C;
  --bg-tint: #0B0B36;
  --surface: #14144F;
  --surface-2: #1D1D63;
  --ink: #F6F5FF;
  --text: #DCDCEE;
  --muted: #B2B3D2;
  --line: rgba(255, 255, 255, .14);
  --line-input: #9294BC;

  --accent: #FFF44F;
  --on-accent: #0A0A45;
  --btn-primary-bg: #F6F5FF;
  --btn-primary-fg: #0A0A45;

  --green-text: #6AD8A4;
  --green-soft: rgba(106, 216, 164, .14);
  --purple-text: #D4B8F8;
  --purple-soft: rgba(160, 110, 220, .22);
  --eyebrow: #D4B8F8;

  --header-bg: rgba(4, 4, 28, .82);
  --hero-veil: rgba(4, 4, 28, .9);
  --hero-veil-2: rgba(4, 4, 28, .45);
  --hero-img-filter: saturate(.8) brightness(.74) contrast(1.06);
  --chip-bg: rgba(20, 20, 79, .85);

  --dark-bg: #0E0E48;
  --footer-bg: #020214;

  --sky-day: #1E2070;
  --sky-night: #03031C;
  --house: #1C1C5A;
  --house-line: #C9C9F0;

  --stage-day: radial-gradient(120% 90% at 18% 0%, #2E3096 0%, #1A1A63 55%, #11114C 100%);
  --stage-night: linear-gradient(180deg, #01010F 0%, #0B0B36 100%);
  --stage-dusk: linear-gradient(180deg, #170E48 0%, #4B2B86 60%, #8E5C8C 100%);
  --stage-grid: rgba(255, 255, 255, .06);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  --shadow: 0 18px 38px -16px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.07);
  --shadow-lg: 0 34px 70px -26px rgba(0,0,0,.9);
  --glow-purple: 0 18px 44px -14px rgba(160,110,220,.6);
}
/* Detalhes que só existem no modo noturno */
:root[data-theme="dark"] .service,
:root[data-theme="dark"] .perk,
:root[data-theme="dark"] .partner,
:root[data-theme="dark"] .faq details,
:root[data-theme="dark"] .norms li,
:root[data-theme="dark"] .sim-result,
:root[data-theme="dark"] .sim-card,
:root[data-theme="dark"] .inverter-card,
:root[data-theme="dark"] .cities li,
:root[data-theme="dark"] .chip { background-image: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 60%); }
:root[data-theme="dark"] .service:hover,
:root[data-theme="dark"] .perk:hover,
:root[data-theme="dark"] .partner:hover { border-color: rgba(255,244,79,.35); }
:root[data-theme="dark"] .section-dark { border-block: 1px solid rgba(255,255,255,.08); }
:root[data-theme="dark"] .section-tint { border-block: 1px solid rgba(255,255,255,.05); }
:root[data-theme="dark"] .perk-ic,
:root[data-theme="dark"] .partner-badge,
:root[data-theme="dark"] .inverter-ic { background: #0A0A45; box-shadow: inset 0 0 0 1px rgba(255,244,79,.35); }
:root[data-theme="dark"] .service-icon { box-shadow: inset 0 0 0 1px rgba(106,216,164,.25); }
:root[data-theme="dark"] .hero-frame { box-shadow: 0 0 0 1px rgba(255,255,255,.08), var(--shadow-lg); }
:root[data-theme="dark"] .eyebrow-chip { border-color: rgba(255,255,255,.18); }

/* Fonte, espaço e forma (comuns) */
:root {
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --grad-brand: linear-gradient(135deg, #0A0A45 0%, #2B1C6E 55%, #7543A5 100%);
  --grad-accent: linear-gradient(90deg, #FFF44F, #C9A7F2 60%, #7543A5);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1, h2 { isolation: isolate; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.08; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: -0.01em; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: 92px; }

:focus-visible { outline: 3px solid var(--purple-text); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Ícones de traço */
.service-icon svg, .perk-ic svg, .callout-tag svg, .app-features svg, .ph-weather svg,
.theme-toggle svg, .daynight svg, .engineer-badge svg {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.btn svg, .link-arrow svg, .icon-btn svg, .topbar-link svg, .social svg, .cta-link svg { width: 20px; height: 20px; flex: none; display: block; }
.wa-float svg { display: block; }

/* ---------- Destaque em bloco (marca-texto amarelo) ---------- */
.hl {
  color: var(--on-accent);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 0% 100%;
  padding: 0 .16em;
  margin: 0 -.04em;
  border-radius: .14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  position: relative; z-index: -1;   /* fica atrás das letras da linha de cima */
  transition: background-size .9s var(--ease) .15s;
}
.in .hl, .hl.in, .hero .hl, .no-js .hl { background-size: 100% 100%; }
.hero .hl { animation: hl-sweep 1s var(--ease) .35s both; }
@keyframes hl-sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .96rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .25s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
  position: relative; isolation: isolate;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px rgba(255, 220, 0, .7), inset 0 -2px 0 rgba(10,10,69,.12); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(255, 220, 0, .85), inset 0 -2px 0 rgba(10,10,69,.12); }
.btn-accent svg { transition: transform .25s var(--ease); }
.btn-accent:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-purple); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: #237551; transform: translateY(-2px); }
.btn-outline { border-color: var(--line-input); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--purple-text); color: var(--purple-text); }
.btn-ghost { background: var(--chip-bg); color: var(--ink); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--green-text); color: var(--green-text); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--yellow); margin-right: -8px; transition: transform .25s var(--ease); }
.btn-dot svg { width: 14px; height: 14px; }
.btn:hover .btn-dot { transform: rotate(45deg); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-text); text-decoration: none; min-height: 44px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow.on-dark { color: var(--yellow); }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease), border-color .2s;
  text-decoration: none; padding: 0;
}
.icon-btn:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
.theme-toggle svg { transition: transform .5s var(--ease); }
.theme-toggle:hover svg { transform: rotate(-25deg); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow-chip::before, .section-app .eyebrow::before { display: none; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--yellow); color: var(--navy);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 54ch; }
.fineprint { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* =========================================================
   TOPBAR + HEADER
   ========================================================= */
.topbar { background: var(--footer-bg); color: rgba(255,255,255,.85); font-size: .84rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-chip { background: var(--yellow); color: var(--navy); font-weight: 700; font-size: .72rem; padding: 2px 8px; border-radius: 999px; margin-right: 8px; letter-spacing: .04em; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; min-height: 40px; }
.topbar-link svg { width: 16px; height: 16px; }
.topbar-link:hover { color: var(--yellow); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .35s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
:root[data-theme="dark"] .logo-light { display: none; }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a {
  position: relative; text-decoration: none; color: var(--text); font-weight: 500; font-size: .94rem;
  padding: 10px 13px; border-radius: 999px; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 3px; border-radius: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--ink); }
.nav-cta-mobile { display: none !important; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 50%; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: 12px; padding-bottom: 28px; }
.hero-frame {
  position: relative; overflow: hidden; overflow: clip;
  border-radius: var(--r-xl);
  min-height: max(780px, min(900px, calc(100svh - 130px)));
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  display: grid; grid-template-rows: 1fr auto;
}
.hero-media { position: absolute; inset: 0; container-type: size; }
/* Reproduz o "object-fit: cover" alinhado à direita, para as anotações usarem coordenadas da própria foto */
.hero-canvas {
  position: absolute; right: 0; top: 50%;
  width: max(100cqw, 100cqh * 16 / 9);
  height: max(100cqh, 100cqw * 9 / 16);
  transform: translateY(-50%);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  object-fit: cover; filter: var(--hero-img-filter);
  animation: hero-zoom 1.6s var(--ease) both;
}
@keyframes hero-zoom { from { transform: scale(1.06); opacity: .6; } to { transform: none; opacity: 1; } }
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--hero-veil) 0%, var(--hero-veil-2) 38%, transparent 62%),
    linear-gradient(0deg, rgba(10,10,69,.88) 0%, rgba(10,10,69,.5) 22%, transparent 44%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 45%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 45%);
}
.hero-swoosh { position: absolute; z-index: 2; pointer-events: none; }
.hero-swoosh path { fill: none; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.6s var(--ease) .4s forwards; }
.hero-swoosh-left { left: -40px; bottom: 150px; width: 300px; height: 400px; }
.hero-swoosh-left path { stroke: var(--purple); stroke-width: 30; opacity: .9; }
.hero-swoosh-right { right: -70px; bottom: 260px; width: 200px; height: 400px; }
.hero-swoosh-right path { stroke: var(--yellow); stroke-width: 24; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-copy { padding: clamp(28px, 4vw, 56px); padding-bottom: 16px; max-width: 660px; position: relative; z-index: 2; }
.eyebrow-chip {
  background: var(--chip-bg); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(8px);
  color: var(--ink); letter-spacing: .02em; text-transform: none; font-weight: 500; font-size: .85rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green-text); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green-text); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero-title {
  font-size: clamp(2.7rem, 6.2vw, 5.4rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.045em;
  color: var(--ink); margin-top: 6px;
  animation: rise .9s var(--ease) both;
}
.hero-title .hl { white-space: nowrap; }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text); max-width: 40ch; margin-top: 20px; animation: rise .9s var(--ease) .1s both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; animation: rise .9s var(--ease) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 26px; animation: rise .9s var(--ease) .3s both; }
.avatar-stack { display: flex; flex: none; align-items: center; }
.avatar-stack img, .avatar-badge {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg);
  margin-left: -12px; background: var(--surface-2);
}
.avatar-stack img:first-child { margin-left: 0; }
.avatar-badge { display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 .7rem var(--mono); }
.hero-proof p { font-size: .94rem; color: var(--ink); line-height: 1.4; }
.hero-proof .mono { font-size: .8rem; color: var(--purple-text); }

/* --- Anotações ---
   Cada anotação fica no ponto exato da foto (--x, --y em % da imagem).
   O rótulo sai desse ponto com uma linha em "L" (--tx, --ty em px). */
.callouts { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 3; }
.callout { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; animation: rise .8s var(--ease) both; }
.c-panel { animation-delay: .6s; } .c-inverter { animation-delay: .75s; } .c-meter { animation-delay: .9s; }
.callout::before { /* ponto */
  content: ""; position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--navy); z-index: 1;
  animation: ping 2.4s infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,244,79,.75); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255,244,79,0); } }
.callout::after { /* linha em L do ponto até o rótulo */
  content: ""; position: absolute; pointer-events: none;
  top: calc(var(--ty) + 22px); height: calc(-1 * var(--ty) - 22px);
  left: 0; width: var(--tx);
  border-left: 2px solid rgba(255,255,255,.95); border-top: 2px solid rgba(255,255,255,.95);
  border-top-left-radius: 10px;
  filter: drop-shadow(0 1px 2px rgba(10,10,69,.35));
}
.callout.to-left::after { left: auto; right: 0; width: calc(-1 * var(--tx)); border-left: 0; border-right: 2px solid rgba(255,255,255,.95); border-top-left-radius: 0; border-top-right-radius: 10px; }
.callout-tag {
  position: absolute; left: var(--tx); top: var(--ty);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 14px;
  background: #fff; color: var(--navy); font: 600 .88rem var(--font);
  box-shadow: var(--shadow); cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.callout.to-left .callout-tag { left: auto; right: calc(-1 * var(--tx)); }
.callout-tag svg { width: 18px; height: 18px; color: var(--purple); flex: none; }
.ct-num { display: none; }
.callout:hover .callout-tag, .callout-tag:focus-visible, .callout.show .callout-tag { background: var(--yellow); transform: translateY(-2px); }
.callout-tag:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
/* Legenda: abre ACIMA do rótulo e acima de tudo, nunca coberta pelos cards */
.callout-tip {
  position: absolute; left: var(--tx); top: calc(var(--ty) - 10px); transform: translateY(-100%) translateY(6px);
  width: 250px; z-index: 5;
  background: var(--navy); color: rgba(255,255,255,.92); font-size: .85rem; line-height: 1.45;
  padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.14);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  pointer-events: none;
}
.callout-tip strong { display: block; color: var(--yellow); font-size: .9rem; margin-bottom: 2px; }
.callout.to-left .callout-tip { left: auto; right: calc(-1 * var(--tx)); }
.callout:hover .callout-tip, .callout:focus-within .callout-tip, .callout.show .callout-tip { opacity: 1; visibility: visible; transform: translateY(-100%); }

/* Pontos exatos na foto (inversor e medidor estão na parede da garagem) */
.c-panel    { --x: 69%;   --y: 35%;   --tx: 46px;   --ty: -112px; }
.c-inverter { --x: 76.7%; --y: 58%;   --tx: -46px;  --ty: -126px; }
.c-meter    { --x: 82.8%; --y: 57.6%; --tx: 46px;   --ty: -76px; }
.hero-media-hint { display: none; }

/* --- Faixa inferior do hero --- */
.hero-bottom {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: minmax(0, 620px) 1fr; gap: 24px; align-items: end;
  padding: 0 clamp(20px, 4vw, 48px) clamp(20px, 3vw, 36px);
}
.sim-card {
  position: relative;
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: end;
  background: var(--surface); border-radius: var(--r-lg);
  padding: 22px 26px 22px 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  margin-top: 120px;
}
.sim-card::before { /* filete de cor no topo */
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--grad-accent);
}
.phone {
  position: relative; width: 200px; height: 330px; margin-top: -150px;
  background: #0d0d14; border-radius: 34px; padding: 8px;
  box-shadow: 0 24px 50px -16px rgba(10,10,69,.6), inset 0 0 0 2px #2a2a3a;
  transition: transform .5s var(--ease);
}
.sim-card:hover .phone { transform: translateY(-6px) rotate(-1.5deg); }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 64px; height: 18px; border-radius: 999px; background: #0d0d14; z-index: 2; }
.phone-screen {
  height: 100%; border-radius: 27px; background: #F7F6F1; overflow: hidden;
  padding: 14px 12px; font-size: 10px; line-height: 1.3; color: #0A0A45;
  display: flex; flex-direction: column; gap: 8px;
}
.ph-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 9px; }
.ph-batt { width: 16px; height: 8px; border-radius: 2px; border: 1.5px solid #0A0A45; position: relative; }
.ph-batt::after { content: ""; position: absolute; inset: 1px 3px 1px 1px; background: #1B5E3F; border-radius: 1px; }
.ph-hi { font-weight: 600; font-size: 11px; margin-top: 8px; }
.ph-hi small { font-weight: 400; color: #575A72; font-size: 9px; }
.ph-weather { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: 8px 10px; box-shadow: 0 1px 4px rgba(10,10,69,.08); }
.ph-weather strong { display: block; font-size: 10px; }
.ph-weather small { color: #575A72; font-size: 8px; }
.ph-weather svg { width: 22px; height: 22px; color: #E6B800; }
.ph-flow {
  position: relative; height: 96px; background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(10,10,69,.08);
  background-image: linear-gradient(#7543A5, #7543A5), linear-gradient(#1B5E3F, #1B5E3F);
  background-size: 2px 40%, 40% 2px; background-position: 50% 40%, 50% 62%; background-repeat: no-repeat;
}
.ph-node { position: absolute; display: grid; place-items: center; align-content: center; gap: 1px; text-align: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 2px solid #1B5E3F; font-size: 8.5px; line-height: 1.1; }
.ph-node b { font-family: var(--mono); font-size: 9px; line-height: 1; }
.ph-node small { font-size: 6.5px; color: #575A72; }
.ph-node.n1 { left: 6px; top: 6px; }
.ph-node.n2 { left: 50%; top: 22px; transform: translateX(-50%); border-color: #0A0A45; }
.ph-node.n3 { right: 6px; bottom: 6px; border-color: #7543A5; }
.ph-bar { background: #0A0A45; color: #fff; border-radius: 12px; padding: 8px 10px; }
.ph-bar-head { display: flex; justify-content: space-between; font-size: 9px; margin-bottom: 6px; }
.ph-bar-head b { font-family: var(--mono); color: #FFF44F; }
.ph-cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.ph-cells i { height: 16px; border-radius: 3px; background: rgba(255,255,255,.14); transition: background-color .3s; }
.ph-cells i.on { background: #FFF44F; }

.sim-label { display: block; font-weight: 600; color: var(--ink); font-size: 1.05rem; line-height: 1.3; margin-bottom: 12px; }
.money-input {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line-input); border-radius: 14px; padding: 0 14px;
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.money-input:focus-within { border-color: var(--purple-text); box-shadow: 0 0 0 4px var(--purple-soft); }
.money-input span { color: var(--muted); font-weight: 500; }
.money-input input {
  flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent;
  font: 700 1.35rem var(--mono); color: var(--ink); padding: 10px 0; height: 52px;
}
.money-input.lg input { font-size: 1.8rem; height: 64px; }
.sim-help { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.sim-quick-result { margin-top: 12px; color: var(--text); }
.sim-quick-result strong { color: var(--green-text); font-size: 1.35rem; }

.hero-app { color: #fff; max-width: 380px; justify-self: end; padding-bottom: 6px; }
.hero-app-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; }
.hero-app-brand img { width: 34px; height: 34px; background: #fff; border-radius: 9px; padding: 3px; }
.hero-app-text { font-size: 1.02rem; line-height: 1.5; margin-top: 8px; color: rgba(255,255,255,.92); }

/* =========================================================
   DIFERENCIAIS
   ========================================================= */
.perks { padding: 8px 0 24px; }
.perks-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.perk {
  position: relative; overflow: hidden;
  display: flex; gap: 14px; align-items: center;
  padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.perk::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad-accent); transform: scaleX(.18); transform-origin: left; transition: transform .45s var(--ease); }
.perk:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.perk:hover::after { transform: scaleX(1); }
.perk-ic { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); }
.perk-ic svg { width: 24px; height: 24px; }
.perk p strong { display: block; color: var(--ink); font-weight: 600; font-size: .98rem; line-height: 1.3; }
.perk p span { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; margin-top: 2px; }

/* =========================================================
   SEÇÕES
   ========================================================= */
.section { padding: clamp(72px, 9vw, 124px) 0; position: relative; }
.section-tint { background: var(--bg-tint); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { max-width: 20ch; margin-bottom: 16px; }
.section-head.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; }
.section-head.split h2 { margin-bottom: 0; }
.section-head.center { text-align: center; display: grid; justify-items: center; }
.section-head.center .lead { margin-inline: auto; }

/* Seções escuras: mesmas nos dois modos, com tokens locais */
.section-dark {
  --ink: #FFFFFF; --text: rgba(255,255,255,.86); --muted: rgba(255,255,255,.7);
  --line: rgba(255,255,255,.12); --surface: rgba(255,255,255,.05);
  --eyebrow: #C9A7F2; --green-text: #63CF9C; --purple-text: #C9A7F2;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(117,67,165,.5), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(27,94,63,.38), transparent 60%),
    var(--dark-bg);
  color: var(--text);
}
.curve-top { border-top-left-radius: 50% 56px; border-top-right-radius: 50% 56px; }

/* --- Serviços --- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.service::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service p { color: var(--muted); font-size: .96rem; }
.service-num { position: absolute; right: 22px; top: 20px; font-size: .8rem; color: var(--muted); opacity: .8; }
.service-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-text); margin-bottom: 8px;
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.service:hover .service-icon { background: var(--accent); color: var(--on-accent); transform: rotate(-6deg) scale(1.05); }
.service-icon svg { width: 26px; height: 26px; }
.service-feature {
  grid-row: span 2; grid-column: span 2;
  background: var(--grad-brand); border-color: transparent; color: #fff; padding: clamp(28px, 3.4vw, 44px);
}
.service-feature::after {
  content: ""; position: absolute; right: -50px; bottom: -70px; width: 300px; height: 300px;
  background: url("assets/logo/3-degrade.svg") center/contain no-repeat; opacity: .16;
  transition: transform .8s var(--ease);
}
.service-feature:hover::after { transform: rotate(-8deg) scale(1.05); }
.service-feature h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); max-width: 14ch; letter-spacing: -0.03em; }
.service-feature p { color: rgba(255,255,255,.84); font-size: 1.05rem; max-width: 44ch; }
.service-feature .service-num { color: rgba(255,255,255,.6); }
.service-feature .service-icon { background: rgba(255,244,79,.14); color: var(--yellow); }
.service-feature .btn { align-self: flex-start; margin-top: 18px; position: relative; z-index: 1; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: .96rem; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
}
.service-purple {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 24px;
  background: var(--purple-soft); border-color: transparent;
}
.service-purple .service-icon { background: var(--purple); color: #fff; margin: 0; grid-row: span 2; }
.service-purple h3 { align-self: end; }
.service-purple p { grid-column: 2; max-width: 70ch; }
.service-purple .link-arrow { grid-column: 3; grid-row: 1 / span 2; color: var(--purple-text); }

/* --- Caminho da energia (3D isométrico) --- */
.flow-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.flow-stage {
  position: relative; border-radius: var(--r-xl); padding: 18px 18px 14px; overflow: hidden; isolation: isolate;
  background: var(--stage-day); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  transition: background .8s var(--ease);
}
.flow-stage::before { /* grade de profundidade */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--stage-grid) 1px, transparent 1px), linear-gradient(90deg, var(--stage-grid) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(70% 60% at 50% 60%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 60%, #000, transparent);
}
.flow-stage[data-flow-visual="noite"] { background: var(--stage-night); }
.flow-stage[data-flow-visual="bateria"] { background: var(--stage-dusk); }
.flow-tabs { display: flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; position: relative; z-index: 2; box-shadow: var(--shadow-sm); }
.flow-tabs button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: 600 .92rem var(--font); cursor: pointer; transition: background-color .25s, color .25s; white-space: nowrap;
}
.flow-tabs button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-tabs button:hover { color: var(--ink); }
.flow-tabs button[aria-selected="true"] { background: var(--navy); color: var(--yellow); }
:root[data-theme="dark"] .flow-tabs button[aria-selected="true"] { background: var(--yellow); color: var(--navy); }

.iso { width: 100%; height: auto; display: block; margin-top: 4px; }
.iso-float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
/* céu */
.iso-sun { fill: var(--yellow); transition: opacity .6s; }
.iso-sun-halo { transition: opacity .6s; }
.iso-moon path { fill: #F5F4FF; }
.iso-moon, .iso-stars { opacity: 0; transition: opacity .6s; }
.iso-stars circle { fill: #fff; }
[data-flow-visual="noite"] .iso-sun, [data-flow-visual="noite"] .iso-sun-halo { opacity: 0; }
[data-flow-visual="noite"] .iso-moon, [data-flow-visual="noite"] .iso-stars { opacity: 1; }
[data-flow-visual="bateria"] .iso-sun { opacity: .9; }
[data-flow-visual="bateria"] .iso-stars { opacity: .5; }
/* volumes: cada face tem um tom para dar profundidade */
.iso-grass-t { fill: #2E8A5F; } .iso-grass-l { fill: #1F6B47; } .iso-grass-r { fill: #17533A; }
.iso-soil-l { fill: #6B4A3A; } .iso-soil-r { fill: #4E3529; }
.iso-path { fill: #E9E4D8; opacity: .9; }
.iso-trunk { fill: #5A3E2E; }
.iso-wall-l { fill: #FFFFFF; } .iso-wall-r { fill: #DEDBEC; }
.iso-door { fill: var(--purple); }
.iso-window { fill: #BFD0FF; transition: fill .6s; }
.iso-frame { fill: #fff; }
[data-flow-visual="noite"] .iso-window, [data-flow-visual="bateria"] .iso-window { fill: var(--yellow); filter: drop-shadow(0 0 8px rgba(255,244,79,.8)); }
.iso-roof { fill: #2A2A74; } .iso-roof-edge { fill: #15154F; } .iso-fascia { fill: #0A0A45; } .iso-ridge { fill: #3A3A8C; }
.iso-panel { stroke: #8F8FD6; stroke-width: 1; }
.iso-cell { stroke: rgba(255,255,255,.22); stroke-width: .8; }
.iso-sheen { animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 0% { transform: translateX(160px); } 60%, 100% { transform: translateX(560px); } }
[data-flow-visual="noite"] .iso-sheen { display: none; }
.iso-inv-r { fill: #F4F4F8; } .iso-inv-l { fill: #D9D8E6; } .iso-inv-t { fill: #FFFFFF; }
.iso-inv-screen { fill: #0A0A45; }
.iso-led { fill: #63CF9C; animation: blink 1.4s infinite; }
.iso-bat-r { fill: #8A57BD; } .iso-bat-l { fill: #6A3C97; } .iso-bat-t { fill: #A77BD6; }
.iso-bat-bar { fill: var(--yellow); }
.iso-battery { transition: opacity .5s; opacity: .35; }
[data-flow-visual="bateria"] .iso-battery { opacity: 1; }
.iso-post-r { fill: #C9C7D9; } .iso-post-l { fill: #ABA9C2; } .iso-post-t { fill: #E8E7F2; }
.iso-dial { fill: #fff; stroke: #0A0A45; stroke-width: 2; }
.iso-dial-arrows { fill: none; stroke: var(--purple); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iso-pole-r { fill: #6E6C86; } .iso-pole-l { fill: #55536B; } .iso-pole-t { fill: #8E8CA6; }
.iso-cross { stroke: #55536B; stroke-width: 5; stroke-linecap: round; }
.iso-wire { fill: none; stroke: #55536B; stroke-width: 1.6; opacity: .8; }
:root[data-theme="dark"] .iso-wall-l { fill: #E9E8F6; } :root[data-theme="dark"] .iso-wall-r { fill: #C6C4DE; }
/* fluxos de energia */
.flow { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 3 11; animation: flow 1s linear infinite; opacity: 0; transition: opacity .45s; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.f-sun { stroke: #FFE600; }
.f-inv, .f-house, .f-out { stroke: #3FD48C; }
.f-in { stroke: #B98AF0; }
.f-charge, .f-bat { stroke: var(--yellow); }
[data-flow-visual="dia"] .f-sun, [data-flow-visual="dia"] .f-inv, [data-flow-visual="dia"] .f-house, [data-flow-visual="dia"] .f-out { opacity: 1; }
[data-flow-visual="noite"] .f-in { opacity: 1; }
[data-flow-visual="bateria"] .f-sun, [data-flow-visual="bateria"] .f-inv, [data-flow-visual="bateria"] .f-charge, [data-flow-visual="bateria"] .f-bat { opacity: 1; }
/* rótulos dentro da ilustração */
.iso-label rect { fill: #0A0A45; stroke: rgba(255,255,255,.25); }
.iso-label text { fill: #fff; font: 600 12.5px var(--font); text-anchor: middle; }
.l-bat { transition: opacity .5s; opacity: .45; }
[data-flow-visual="bateria"] .l-bat { opacity: 1; }
[data-flow-visual="bateria"] .l-bat rect { fill: var(--purple); }
.flow-legend { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--muted); justify-content: center; }
.flow-legend li { display: inline-flex; align-items: center; gap: 7px; }
.flow-legend li::before { content: ""; width: 18px; height: 4px; border-radius: 3px; background: currentColor; }
[data-flow-visual="noite"] .flow-legend, [data-flow-visual="bateria"] .flow-legend { color: rgba(255,255,255,.86); }
.lg-sun::before { background: #E6C800 !important; } .lg-use::before { background: #2DB878 !important; } .lg-in::before { background: #9B6BD8 !important; } .lg-bat::before { background: var(--purple) !important; }

.flow-copy { display: grid; gap: 18px; }
.flow-mode[hidden] { display: none; }
.flow-mode { animation: rise .45s var(--ease) both; }
.flow-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-text); background: var(--purple-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.flow-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--text); }
.flow-steps b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--yellow); font: 700 .85rem var(--mono); }
:root[data-theme="dark"] .flow-steps b { background: var(--yellow); color: var(--navy); }
.flow-steps span { padding-top: 4px; }
.flow-steps strong { color: var(--ink); font-weight: 600; }
.flow-note { margin-top: 14px; font-size: .9rem; color: var(--text); padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--purple); }
.inverter-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.inverter-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--yellow), var(--purple)); }
.inverter-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); }
.inverter-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.inverter-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.inverter-card p { font-size: .93rem; color: var(--muted); }
.inverter-card strong { color: var(--ink); }

/* --- Simulador --- */
.sim-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sim-intro h2 { margin-bottom: 16px; }
.sim-form { margin-top: 36px; display: grid; gap: 24px; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 10px; padding: 0; }
.field input[type="text"]:not([data-sim-input]) {
  width: 100%; height: 52px; padding: 0 16px; font: 400 1rem var(--font); color: var(--text);
  border: 1.5px solid var(--line-input); border-radius: 14px; background: var(--surface);
}
.field input::placeholder { color: var(--muted); }
.field input[type="text"]:not([data-sim-input]):focus { outline: 0; border-color: var(--purple-text); box-shadow: 0 0 0 4px var(--purple-soft); }
.range { width: 100%; min-width: 0; margin-top: 16px; accent-color: var(--purple); height: 28px; cursor: pointer; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 5px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: grid; place-items: center; min-height: 44px; border-radius: 12px; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s; }
.segmented input:checked + span { background: var(--navy); color: var(--yellow); }
:root[data-theme="dark"] .segmented input:checked + span { background: var(--yellow); color: var(--navy); }
.segmented input:focus-visible + span { outline: 3px solid var(--purple-text); outline-offset: 2px; }

.sim-result {
  background: var(--surface); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--shadow); border: 1px solid var(--line); position: sticky; top: 100px;
}
.result-hero { background: var(--grad-brand); color: #fff; border-radius: var(--r-lg); padding: 28px; margin-bottom: 18px; position: relative; overflow: hidden; }
.result-hero::after { content: ""; position: absolute; right: -36px; top: -36px; width: 150px; height: 150px; border-radius: 50%; border: 24px solid var(--yellow); opacity: .95; }
.result-hero p { font-size: .9rem; color: rgba(255,255,255,.78); }
.result-hero strong { display: block; font-size: clamp(2.4rem, 4.5vw, 3.4rem); color: var(--yellow); line-height: 1.1; margin: 4px 0; position: relative; z-index: 1; }
.result-hero span { color: rgba(255,255,255,.88); font-size: .95rem; position: relative; z-index: 1; }
.result-hero b { color: #fff; }
.result-lines { margin: 0 0 22px; display: grid; }
.result-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.result-lines dt { color: var(--text); font-size: .95rem; }
.result-lines dt small { display: block; color: var(--muted); font-size: .78rem; }
.result-lines dd { margin: 0; color: var(--ink); font-size: 1.05rem; text-align: right; white-space: nowrap; }
.assumptions { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 6px; font-size: .88rem; color: var(--muted); }
.assumptions summary { cursor: pointer; font-weight: 600; color: var(--purple-text); min-height: 44px; display: flex; align-items: center; }
.assumptions ul { padding-left: 18px; margin: 8px 0 12px; display: grid; gap: 6px; }
.assumptions b { color: var(--text); font-weight: 600; }

/* --- Como funciona (escura) --- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; position: relative; }
.step {
  position: relative; padding: 22px 20px 24px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: background-color .3s, transform .35s var(--ease), border-color .3s;
}
.step::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad-accent); opacity: .7; }
.step:hover { background: rgba(255,255,255,.08); transform: translateY(-6px); border-color: rgba(255,244,79,.4); }
.step-n {
  display: block; font: 800 3.4rem/1 var(--font); letter-spacing: -0.04em; margin-bottom: 18px;
  color: transparent; -webkit-text-stroke: 1.5px var(--yellow); position: relative;
  transition: color .3s;
}
.step:hover .step-n { color: var(--yellow); }
.step h3 { margin-bottom: 8px; color: #fff; }
.step p { color: rgba(255,255,255,.74); font-size: .94rem; }

/* --- Projetos --- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: 500 .92rem var(--font); color: var(--text); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--purple-text); color: var(--purple-text); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--yellow); }
:root[data-theme="dark"] .chip.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.projects { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 16px; }
.projects.filtered { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); grid-template-rows: none; grid-auto-rows: 360px; }
.projects.filtered .project { grid-column: auto !important; grid-row: auto !important; }
.project { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.project[hidden] { display: none; }
.project-lg { grid-row: span 2; }
.project-wide { grid-column: span 2; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover img { transform: scale(1.06); }
.project figcaption {
  position: absolute; inset: auto 0 0 0; padding: 70px 20px 18px; color: #fff;
  background: linear-gradient(0deg, rgba(10,10,69,.92), rgba(10,10,69,0));
  display: grid; gap: 4px; transition: padding .4s var(--ease);
}
.project:hover figcaption { padding-bottom: 24px; }
.project figcaption strong { font-size: 1.12rem; font-weight: 600; }
.project .meta { font-size: .8rem; color: rgba(255,255,255,.82); }
.tag { justify-self: start; background: var(--yellow); color: var(--navy); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.cities { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.cities-label { font-weight: 600; color: var(--ink); }
.cities ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.cities li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; transition: border-color .2s; }
.cities li:hover { border-color: var(--purple-text); }
.cities li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--purple-text); }

/* --- Sobre --- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { position: relative; }
.about-frame { padding: 6px; border-radius: calc(var(--r-xl) + 6px); background: linear-gradient(140deg, var(--yellow), var(--purple) 55%, var(--navy)); box-shadow: var(--shadow-lg); }
.about-frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-xl); }
.about-stamp { position: absolute; left: -26px; top: -26px; width: 120px; height: 120px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow); }
.about-stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.about-stamp text { fill: var(--yellow); font: 600 9.4px var(--font); letter-spacing: .14em; }
.about-stamp span { font: 800 1.4rem var(--font); color: #fff; letter-spacing: -0.02em; }
.note { font-size: .95rem; font-style: italic; color: var(--ink); background: var(--surface); padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); max-width: 290px; border: 1px solid var(--line); }
.note-photo { position: absolute; right: -24px; bottom: 32px; display: flex; gap: 12px; align-items: center; }
.note-line { width: 32px; height: 3px; border-radius: 3px; background: var(--purple-text); flex: none; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy > p { color: var(--muted); font-size: 1.04rem; }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 78px 1fr; gap: 16px; position: relative; padding-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; left: 92px; top: 10px; bottom: -4px; width: 2px; background: linear-gradient(var(--purple-text), transparent); }
.timeline li:last-child::before { display: none; }
.timeline li > div { padding-left: 22px; position: relative; }
.timeline li > div::before { content: ""; position: absolute; left: -9px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--navy); }
:root[data-theme="dark"] .timeline li > div::before { border-color: var(--bg); }
.tl-year { color: var(--purple-text); font-weight: 700; font-size: .95rem; text-align: right; padding-top: 1px; }
.timeline strong { color: var(--ink); font-weight: 600; }
.timeline p { color: var(--muted); font-size: .93rem; }
.partners-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--purple-text); margin: 28px 0 12px; }
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.partner {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s;
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partner::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad-accent); }
.partner-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); font: 800 1rem var(--font); letter-spacing: .02em; }
.partner strong { display: block; color: var(--ink); font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.partner span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; margin-top: 4px; }
.partner .partner-role { color: var(--green-text); font-weight: 600; font-size: .84rem; margin-top: 2px; }
.partner .crea { color: var(--purple-text); }
.norms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.norms li { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.norms li:hover { border-color: var(--green-text); }
.norms b { display: block; color: var(--green-text); font-size: .95rem; }
.norms span { font-size: .84rem; color: var(--muted); line-height: 1.35; display: block; }

/* --- App --- */
.section-app { overflow: hidden; }
.app-glow { position: absolute; right: -10%; top: -20%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(255,244,79,.14), transparent); pointer-events: none; }
.app-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.app-copy h2 { margin-bottom: 18px; max-width: 16ch; }
.section-app .lead strong { color: var(--yellow); font-weight: 600; }
.app-features { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 14px; }
.app-features li { display: flex; gap: 14px; align-items: center; }
.app-features li > span { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255,244,79,.12); color: var(--yellow); }
.app-features svg { width: 20px; height: 20px; }
.app-features b { color: #fff; font-weight: 600; }
.twin {
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-xl); padding: 24px; backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); transform: perspective(900px) rotateY(-6deg); transition: transform .6s var(--ease);
}
.twin:hover { transform: perspective(900px) rotateY(0); }
.twin-head { display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 500; color: #63CF9C; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #63CF9C; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.twin-house { margin: 16px 0; }
.twin-house svg { width: 100%; height: auto; }
.th-roof, .th-wall { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 2; stroke-linejoin: round; }
.th-panels polygon { fill: var(--yellow); stroke: var(--yellow); stroke-width: 2; stroke-linejoin: round; }
.th-panels path { fill: none; stroke: var(--navy); stroke-width: 1.2; }
.th-door { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2; }
.th-dot { fill: var(--yellow); animation: blink 1.6s infinite; }
.th-dot.p { fill: #C9A7F2; }
.twin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.twin-stats div { background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px; }
.twin-stats small { display: block; font-size: .75rem; color: rgba(255,255,255,.68); }
.twin-stats b { color: #fff; font-size: 1.08rem; }
.twin-stats b.ok { color: #63CF9C; }
.twin-chart { margin-top: 14px; }
.twin-chart svg { width: 100%; height: 80px; }
.twin-chart .line { fill: none; stroke: var(--yellow); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.twin-axis { display: flex; justify-content: space-between; font-size: .72rem; color: rgba(255,255,255,.58); margin-top: 6px; }
.twin-caption { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 14px; text-align: center; }

/* --- FAQ --- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-layout .section-head { position: sticky; top: 110px; }
.faq-layout .section-head .lead { margin-bottom: 24px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .25s, box-shadow .25s; position: relative; overflow: hidden; }
.faq details::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--purple); transform: scaleY(0); transition: transform .3s var(--ease); }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq details[open]::before { transform: scaleY(1); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; color: var(--ink); font-size: 1.01rem; min-height: 56px; }
.faq summary:hover { color: var(--purple-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237543A5' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
:root[data-theme="dark"] .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A7F2' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A45' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* --- CTA --- */
.cta-section { padding-top: 0; }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center;
  background: var(--grad-brand); color: rgba(255,255,255,.86); border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px); box-shadow: var(--glow-purple);
}
.cta-rays { position: absolute; inset: -50%; z-index: -1; background: repeating-conic-gradient(from 0deg at 85% 20%, rgba(255,244,79,.09) 0deg 6deg, transparent 6deg 18deg); animation: spin 60s linear infinite; }
.cta-card .eyebrow { color: var(--yellow); }
.cta-card h2 { color: #fff; margin-bottom: 14px; max-width: 22ch; }
.cta-actions { display: grid; gap: 10px; justify-items: center; }
.cta-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; min-height: 44px; font-weight: 500; }
.cta-link:hover { color: var(--yellow); }

/* --- Footer --- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.76); padding: 64px 0 24px; font-size: .95rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--yellow), var(--purple), var(--green)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }
.social { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff !important; text-decoration: none; transition: background-color .2s, color .2s; }
.social svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--yellow), var(--purple)); color: var(--navy); }
.social:hover { background: rgba(255,255,255,.14); }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer .small { font-size: .85rem; margin-top: 8px; color: rgba(255,255,255,.62); }
.hours li { display: flex; justify-content: space-between; gap: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; font-size: .82rem; color: rgba(255,255,255,.6); }

.wa-float {
  position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; box-shadow: 0 10px 25px -6px rgba(27,94,63,.6);
  transition: transform .2s var(--ease);
}
.wa-float { animation: wa-ring 2.6s var(--ease) infinite; }
@keyframes wa-ring { 0% { box-shadow: 0 10px 25px -6px rgba(27,94,63,.6), 0 0 0 0 rgba(27,94,63,.45); } 70%, 100% { box-shadow: 0 10px 25px -6px rgba(27,94,63,.6), 0 0 0 16px rgba(27,94,63,0); } }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* --- Revelação ao rolar --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1180px) {
  .nav a { padding: 10px 9px; font-size: .9rem; }
  .nav a::after { left: 9px; right: 9px; }
  .header-cta { display: none; }
}
@media (max-width: 1100px) {
  .hero-bottom { grid-template-columns: minmax(0, 1fr); }
  .hero-app { justify-self: start; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .perks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Hero empilhado (foto interativa abaixo do texto) até notebooks pequenos,
   para as anotações nunca caírem sobre o título */
@media (max-width: 1240px) {
  .hero-frame { display: flex; flex-direction: column; min-height: 0; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
  .hero-frame > * { min-width: 0; }
  .hero-copy { order: 1; padding: 16px 0 24px; max-width: 640px; }
  /* A foto vira um quadro 16:9 interativo: números tocáveis + legenda logo abaixo */
  .hero-media { order: 2; position: relative; inset: auto; aspect-ratio: 16 / 9; border-radius: var(--r-lg); margin-bottom: 120px; }
  .hero-canvas { inset: 0; top: 0; width: 100%; height: 100%; transform: none; border-radius: var(--r-lg); overflow: visible; box-shadow: var(--shadow); }
  .hero-bg { border-radius: var(--r-lg); animation: none; }
  .hero-veil, .hero-grid-lines, .hero-swoosh { display: none; }
  .callouts { position: absolute; inset: 0; }
  .callout { position: static; width: auto; height: auto; animation: none; }
  .callout::before, .callout::after { display: none; }
  .c-inverter { --mdx: -22px; --mdy: 38px; }
  .c-meter    { --mdx: 22px;  --mdy: 38px; }
  .callouts .callout .callout-tag {
    position: absolute; left: var(--x); top: var(--y); right: auto;
    transform: translate(calc(-50% + var(--mdx, 0px)), calc(-50% + var(--mdy, 0px)));
    width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%;
    background: var(--yellow); color: var(--navy); border: 3px solid var(--navy);
    box-shadow: 0 0 0 4px rgba(255,255,255,.55), var(--shadow);
    animation: ping 2.4s infinite;
  }
  .callout-tag svg, .ct-label { display: none; }
  .ct-num { display: block; font: 800 1rem var(--mono); }
  .callouts .callout:hover .callout-tag, .callouts .callout.show .callout-tag { transform: translate(calc(-50% + var(--mdx, 0px)), calc(-50% + var(--mdy, 0px))) scale(1.08); }
  /* ponto pequeno no local exato do equipamento, quando o número fica deslocado */
  .c-inverter .callout-tag::after, .c-meter .callout-tag::after {
    content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
    left: calc(50% - var(--mdx) - 5px); top: calc(50% - var(--mdy) - 5px);
    background: var(--yellow); border: 2px solid var(--navy); box-shadow: 0 0 0 3px rgba(255,255,255,.6);
  }
  .callout.show .callout-tag { background: var(--navy); color: var(--yellow); border-color: var(--yellow); }
  .callouts .callout .callout-tip {
    left: 0; right: 0; top: calc(100% + 12px); width: auto; transform: none !important;
    background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow);
    font-size: .95rem; padding: 14px 16px 14px 58px; min-height: 96px;
  }
  .callout-tip::before {
    content: attr(data-n); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; background: var(--navy); color: var(--yellow); font: 800 .9rem var(--mono);
  }
  :root[data-theme="dark"] .callout-tip::before { background: var(--yellow); color: var(--navy); }
  .callout-tip strong { color: var(--ink); font-size: 1rem; }
  .callout:hover .callout-tip { opacity: 0; visibility: hidden; }
  .callout.show .callout-tip { opacity: 1; visibility: visible; }
  .hero-media-hint {
    display: block; position: absolute; left: 12px; top: 12px; z-index: 4; margin: 0;
    background: rgba(10,10,69,.82); color: #fff; font-size: .78rem; font-weight: 500;
    padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px);
  }
  .hero-bottom { order: 4; padding: 0; margin-top: 24px; width: 100%; }
  .sim-card { margin-top: 0; box-shadow: var(--shadow); align-items: center; }
  .phone { margin-top: 0; }
  .hero-app { background: var(--grad-brand); border-radius: var(--r-lg); padding: 24px; max-width: none; justify-self: stretch; }
  .hero-media { max-width: 1040px; margin-inline: auto; width: 100%; }
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .topbar p { font-size: .78rem; }
  .nav {
    position: fixed; inset: 116px 0 auto 0; flex-direction: column; gap: 2px;
    background: var(--bg); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .site-header.scrolled .nav { inset-block-start: 76px; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav-cta-mobile { display: inline-flex !important; margin-top: 8px; color: #fff !important; }


  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-feature { grid-row: auto; grid-column: 1 / -1; }
  .service:nth-child(6) { grid-column: 1 / -1; }
  .sim-layout, .about, .app-layout, .faq-layout, .flow-layout { grid-template-columns: minmax(0, 1fr); }
  .flow-stage { padding: 14px 12px 12px; }
  .about-photo { max-width: 560px; margin-inline: auto; width: 100%; }
  .sim-result, .faq-layout .section-head { position: static; }
  .section-head.split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 320px 240px 240px; }
  .project-lg { grid-row: auto; grid-column: span 2; }
  .project-wide { grid-column: span 2; }
  .cta-card { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { justify-items: start; }
  .note-photo { right: 12px; }
  .about-stamp { left: 10px; top: -30px; width: 100px; height: 100px; }
  .twin { transform: none; }
  .curve-top { border-top-left-radius: 50% 28px; border-top-right-radius: 50% 28px; }
}

@media (max-width: 600px) {
  .topbar p { display: none; }
  .topbar-inner { justify-content: center; }
  .header-actions .icon-btn[href] { display: none; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero-title .hl { white-space: normal; }
  .hero-ctas .btn { width: 100%; }
  .sim-card { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .phone { display: none; }
  .perks-grid { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service-purple { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .service-purple .service-icon { grid-row: auto; }
  .service-purple p, .service-purple .link-arrow { grid-column: auto; grid-row: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .projects, .projects.filtered { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: 260px; }
  .project-lg, .project-wide { grid-column: auto; }
  .norms { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: 58px 1fr; }
  .timeline li::before { left: 72px; }
  .twin-stats b { font-size: .92rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .result-lines > div { flex-wrap: wrap; gap: 4px 12px; }
  .result-lines dd { font-size: .98rem; margin-left: auto; white-space: normal; }
  .sim-result { padding: 18px; }
  .flow-tabs { width: 100%; }
  .flow-tabs button { flex: 1; justify-content: center; padding: 0 8px; font-size: .84rem; gap: 6px; }
  .flow-tabs button svg { width: 16px; height: 16px; }
  .iso-label { scale: 1.35; transform-box: fill-box; transform-origin: center; }
  .flow-legend { font-size: .76rem; gap: 6px 12px; }
  .partners { grid-template-columns: minmax(0, 1fr); }
  .hero-media { margin-bottom: 140px; }
  .hero-copy { padding-top: 8px; }
  .about-stamp { width: 88px; height: 88px; left: 8px; top: -22px; }
  .about-stamp span { font-size: 1.1rem; }
  .wa-float { width: 56px; height: 56px; right: 16px; }
  .note-photo { position: relative; right: auto; bottom: auto; margin: -28px 16px 0; }
}
