/* =========================================================
   L Fontana Contábil — estilos
   Baseado no Guia de Identidade Visual (pasta Identidade_Visual):
   verde + dourado + creme, Playfair Display / Poppins / Great Vibes,
   visual clean e sofisticado, detalhes botânicos e linhas douradas.
   Evitar cores vibrantes (vermelho, azul, roxo, rosa, laranja, neon).
   ========================================================= */
:root {
  /* Cores oficiais */
  --green: #0E3B2C;        /* Verde principal — fundos escuros, títulos */
  --green-deep: #083127;   /* Verde profundo — rodapé, contraste */
  --cream: #F5F0E4;        /* Creme — fundo principal */
  --beige: #EFE7DB;        /* Bege — fundo alternativo */
  --gold: #C9A54E;         /* Dourado principal — destaques, linhas, manuscrita */
  --gold-light: #D8C29A;   /* Dourado claro — detalhes sobre fundo escuro */
  --gold-dark: #8A6420;    /* Dourado escuro — texto pequeno em fundo claro */

  /* Derivadas */
  --card: #FBF8F1;
  --text: #24302B;
  --text-2: #4F5B55;
  --muted: #7C847F;
  --line: rgba(14, 59, 44, .16);
  --line-strong: rgba(14, 59, 44, .32);
  --on-dark: #F5F0E4;
  --on-dark-2: rgba(245, 240, 228, .74);
  --sage: #5F8A6E;         /* verde suave para estados "ok" */

  --f-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Great Vibes", "Brush Script MT", cursive;

  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 30px 60px -32px rgba(8, 49, 39, .45);
  --shadow-sm: 0 14px 30px -18px rgba(8, 49, 39, .40);
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.mono { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; letter-spacing: -.01em; }
.calc__value, .field__value, .kpi strong, .verdict--big strong, .calc__result strong, .donut__label strong, .about__facts strong, .timeline__years button { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

mark { background: linear-gradient(transparent 62%, rgba(201, 165, 78, .38) 62%, rgba(201, 165, 78, .38) 94%, transparent 94%); color: inherit; padding: 0 .06em; }
.script { font-family: var(--f-script); font-weight: 400; color: var(--gold); line-height: 1.1; }

/* Ramo botânico decorativo */
.leaf { position: absolute; pointer-events: none; color: var(--gold); opacity: .55; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid var(--green);
  font-weight: 500; font-size: 15.5px; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: none; box-shadow: none; }
.btn--primary { background: var(--green); color: var(--cream); }
.btn--primary:hover { background: var(--green-deep); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--card); }
.btn--pill { background: transparent; color: var(--green); padding: 10px 22px; font-size: 14.5px; }
.btn--pill:hover { background: var(--green); color: var(--cream); }
.btn--block { width: 100%; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__logo { width: 54px; height: 54px; flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-8deg); }
.brand__text { display: flex; flex-direction: column; align-items: center; line-height: 1; padding: 4px 0 4px 16px; border-left: 1px solid rgba(201, 165, 78, .7); }
.brand__text strong { font-family: var(--f-title); font-size: 20px; font-weight: 600; letter-spacing: .14em; margin-right: -.14em; color: var(--green); text-transform: uppercase; }
.brand__text small { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 500; letter-spacing: .42em; color: var(--gold-dark); margin-top: 6px; text-transform: uppercase; }
.brand__text small::before, .brand__text small::after { content: ""; width: 16px; height: 1px; background: var(--gold); }
.brand__text small::after { margin-left: -.42em; }
.brand--light .brand__text strong { color: var(--cream); }
.brand--light .brand__text small { color: var(--gold-light); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 228, .86);
  backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 78px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--text-2); position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover { color: var(--green); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1.5px solid var(--green); border-radius: 50%; background: transparent; cursor: pointer; padding: 0; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--green); transition: transform .25s; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__mobile { display: flex; flex-direction: column; gap: 4px; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); }
.nav__mobile a:not(.btn) { padding: 12px 0; text-decoration: none; font-family: var(--f-title); font-size: 22px; font-weight: 700; color: var(--green); border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 104px; overflow: hidden; }
.hero__arc { position: absolute; right: -180px; top: -220px; width: 760px; height: 760px; border-radius: 50%; border: 1px solid rgba(201, 165, 78, .35); pointer-events: none; }
.hero__arc::after { content: ""; position: absolute; inset: 36px; border-radius: 50%; border: 1px solid rgba(201, 165, 78, .18); }
.hero .leaf--hero { left: -30px; bottom: -10px; width: 170px; transform: rotate(-18deg); opacity: .4; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 7px 16px; border: 1px solid var(--gold); border-radius: 999px;
  background: rgba(251, 248, 241, .7); font-size: 13px; font-weight: 500; color: var(--green);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 165, 78, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(201, 165, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 165, 78, 0); } }

.hero__title {
  font-family: var(--f-title); font-weight: 800; color: var(--green);
  font-size: clamp(48px, 6.6vw, 98px); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 14px;
}
.hero__title .line2 { display: block; color: var(--gold); }
.rotator { display: inline-block; position: relative; }
.rotator::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 50 4, 120 2, 198 10' fill='none' stroke='%23C9A54E' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: left; animation: swipe .8s var(--ease) both;
}
.rotator.is-swapping::after { animation: none; transform: scaleX(0); }
.rotator__word { display: inline-block; font-style: italic; transition: opacity .35s, transform .35s var(--ease), filter .35s; }
.rotator.is-swapping .rotator__word { opacity: 0; transform: translateY(.2em); filter: blur(6px); }
@keyframes swipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__script { font-size: clamp(30px, 3vw, 40px); margin: 0 0 22px; }
.hero__lead { font-size: clamp(17px, 1.45vw, 19px); color: var(--text-2); max-width: 33em; margin: 0 0 34px; }
.hero__lead strong { color: var(--green); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13.5px; color: var(--muted); }
.hero__proof li::before { content: "✦ "; color: var(--gold); }

/* ---------- Calculadora (hero) ---------- */
.calc {
  background: var(--green); color: var(--on-dark);
  border-radius: var(--r-lg); padding: 32px; position: relative;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(201, 165, 78, .5);
}
.calc::before { content: ""; position: absolute; inset: 8px; border-radius: 18px; border: 1px solid rgba(216, 194, 154, .18); pointer-events: none; }
.calc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.calc__head h2 { font-family: var(--f-title); font-weight: 700; font-size: 28px; margin: 0; line-height: 1; color: var(--cream); }
.calc__tag { font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.calc__label { display: block; font-size: 13.5px; color: var(--on-dark-2); }
.calc__value { display: block; font-family: var(--f-title); font-size: 42px; font-weight: 700; color: var(--gold); line-height: 1.15; margin: 2px 0 12px; }
.calc__scale { display: flex; justify-content: space-between; font-size: 11px; opacity: .6; margin-top: 6px; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background-color: rgba(245, 240, 228, .16); outline: none; cursor: pointer; margin: 0; --p: 50%; background-image: linear-gradient(var(--gold), var(--gold)); background-size: var(--p) 100%; background-repeat: no-repeat; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); border: 2px solid var(--gold); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: transform .15s; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--cream); border: 2px solid var(--gold); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }

.calc__body { display: grid; grid-template-columns: 128px 1fr; gap: 22px; align-items: center; margin: 26px 0; }
.donut { position: relative; width: 128px; height: 128px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 9; }
.donut__track { stroke: rgba(245, 240, 228, .12); }
.donut__val { stroke: var(--gold); stroke-linecap: round; transition: stroke-dasharray .6s var(--ease); }
.donut__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__label strong { font-family: var(--f-title); font-size: 28px; color: var(--cream); line-height: 1; }
.donut__label small { font-size: 10px; color: var(--on-dark-2); max-width: 80px; line-height: 1.25; margin-top: 4px; }

.calc__rows { margin: 0; display: grid; gap: 6px; }
.calc__row { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.calc__row dt { color: var(--on-dark-2); }
.calc__row dd { margin: 0; font-weight: 600; color: var(--cream); }
.bar { height: 5px; border-radius: 99px; background: rgba(245, 240, 228, .1); overflow: hidden; margin-bottom: 10px; }
.bar span { display: block; height: 100%; width: 0; background: var(--gold-light); opacity: .55; border-radius: inherit; transition: width .6s var(--ease); }
.bar--alt span { background: var(--gold); opacity: 1; }

.calc__result { background: var(--cream); color: var(--green); border-radius: var(--r); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--gold); }
.calc__result small { font-size: 12.5px; font-weight: 500; max-width: 12em; line-height: 1.3; color: var(--text-2); }
.calc__result strong { font-family: var(--f-title); font-size: 28px; white-space: nowrap; color: var(--green); }
.calc__note { font-size: 11.5px; color: var(--on-dark-2); opacity: .85; margin: 14px 0 0; line-height: 1.5; }
.calc__note a { color: var(--gold); }

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; }
.marquee { background: var(--green-deep); color: var(--cream); overflow: hidden; padding: 20px 0; border-block: 1px solid rgba(201, 165, 78, .45); }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; will-change: transform; -webkit-animation: marquee 45s linear infinite; animation: marquee 45s linear infinite; font-family: var(--f-title); font-style: italic; font-size: 26px; white-space: nowrap; }
.marquee__track span:nth-child(even) { color: var(--gold); font-style: normal; font-size: 16px; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@-webkit-keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Seções ---------- */
.section { padding: 128px 0; position: relative; }
.section--green { background: var(--green); color: var(--on-dark); }
.section--deep { background: var(--green-deep); color: var(--on-dark); }
.section--beige { background: var(--beige); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow--light { color: var(--gold); }
.section__title { font-family: var(--f-title); font-weight: 700; color: var(--green); font-size: clamp(38px, 4.8vw, 64px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 20px; }
.section__title em { font-style: italic; color: var(--gold); }
.section--green .section__title, .section--deep .section__title { color: var(--cream); }
.section__lead { font-size: 18px; color: var(--text-2); margin: 0; max-width: 36em; }
.section--green .section__lead, .section--deep .section__lead { color: var(--on-dark-2); }
.divider { width: 72px; height: 2px; background: var(--gold); margin: 0 0 24px; border: 0; }

/* ---------- Dores ---------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; display: flex; flex-direction: column; gap: 14px; min-height: 230px; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s;
}
.pain::before { content: ""; position: absolute; left: 30px; top: 0; width: 40px; height: 2px; background: var(--gold); }
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201, 165, 78, .6); }
.pain__toggle { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 14px; flex: 1; border-radius: 10px; }
.pain__toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.pain__emoji { font-family: var(--f-title); font-style: italic; font-size: 15px; line-height: 1; color: var(--gold-dark); letter-spacing: .06em; }
.pain[data-open="true"] .pain__emoji { color: var(--gold); }
.pain__quote { display: block; font-family: var(--f-title); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.3; color: var(--green); }
.pain__more { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-top: auto; }
.pain__answer { display: none; }
.pain[data-open="true"] { background: var(--green); border-color: var(--green); color: var(--on-dark); transform: translateY(-4px); box-shadow: var(--shadow); }
.pain[data-open="true"] .pain__quote { color: var(--cream); }
.pain[data-open="true"] .pain__more { display: none; }
.pain[data-open="true"] .pain__answer { display: block; animation: fadeUp .4s var(--ease); }
.pain__answer p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--on-dark-2); }
.pain__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; background: var(--gold); color: var(--green-deep); padding: 10px 18px; border-radius: 999px; text-decoration: none; transition: background .2s; }
.pain__go:hover { background: var(--gold-light); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Tabs / painéis ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid rgba(201, 165, 78, .45); border-radius: 999px; margin-bottom: 28px; }
.tabs button { border: 0; background: transparent; color: var(--on-dark); padding: 11px 22px; border-radius: 999px; font-weight: 500; font-size: 14.5px; cursor: pointer; transition: background .2s, color .2s; }
.tabs button:hover { background: rgba(245, 240, 228, .07); }
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--green-deep); }
.panel { background: var(--cream); color: var(--text); border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 1px rgba(201, 165, 78, .5); padding: 44px; animation: fadeUp .45s var(--ease); }
.panel__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
.panel__intro { margin: 0 0 24px; color: var(--text-2); }
.field__label { display: block; font-weight: 500; font-size: 14.5px; margin-top: 24px; color: var(--green); }
.field__label:first-child { margin-top: 0; }
.field__value { display: block; font-family: var(--f-title); font-size: 40px; font-weight: 700; color: var(--green); line-height: 1.15; margin: 2px 0 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; padding: 5px; background: var(--beige); border-radius: 14px; }
.seg button { border: 0; background: transparent; border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--green); line-height: 1.25; font-variant-numeric: lining-nums tabular-nums; transition: background .2s, box-shadow .2s, color .2s; }
.seg button small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.seg button:hover { background: rgba(251, 248, 241, .7); }
.seg button[aria-checked="true"] { background: var(--card); box-shadow: 0 0 0 1px var(--gold), var(--shadow-sm); }
.seg button[aria-checked="true"] small { color: var(--gold-dark); }
.field__hint { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.6; }
.panel .range { background-color: var(--beige); background-image: linear-gradient(var(--green), var(--green)); }
.panel .calc__scale { opacity: .65; }
.select { width: 100%; margin-top: 8px; padding: 13px 44px 13px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230E3B2C' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; -webkit-appearance: none; appearance: none; cursor: pointer; font-size: 15.5px; transition: border-color .2s; }
.select:hover, .select:focus { border-color: var(--gold); }
.disclaimer { font-size: 12.5px; color: var(--muted); margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--line); line-height: 1.6; }

/* MEI meter — tons da marca (sem vermelho/laranja) */
.meter { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; height: 60px; }
.meter i { border-radius: 4px; background: var(--beige); border: 1px solid var(--line); transition: background .3s, transform .3s var(--ease), border-color .3s; }
.meter i.on { border-color: transparent; transform: scaleY(1.05); }
.meter i.on.ok { background: var(--sage); }
.meter i.on.warn { background: var(--gold-light); }
.meter i.on.alert { background: var(--gold); }
.meter i.on.danger { background: var(--gold-dark); }
.meter i.limit { position: relative; }
.meter i.limit::after { content: ""; position: absolute; right: -3.5px; top: -8px; bottom: -8px; width: 2px; background: var(--green); }
.meter__legend { position: relative; height: 16px; font-size: 11px; color: var(--muted); margin-top: 10px; }
.meter__legend span { position: absolute; top: 0; white-space: nowrap; }
.meter__legend span:nth-child(1) { left: 0; }
.meter__legend span:nth-child(2) { left: 83.333%; transform: translateX(-50%); color: var(--green); font-weight: 600; }
.meter__legend span:nth-child(3) { right: 0; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--card); }
.kpi small { display: block; font-size: 12px; color: var(--muted); }
.kpi strong { font-family: var(--f-title); font-size: clamp(17px, 1.8vw, 22px); color: var(--green); }

.verdict { border-radius: var(--r); padding: 18px 20px; border-left: 3px solid var(--sage); transition: background .3s, border-color .3s; }
.verdict strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; color: var(--green); }
.verdict p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.verdict[data-level="ok"] { background: #E4ECE3; border-left-color: var(--sage); }
.verdict[data-level="warn"] { background: #F3EBD9; border-left-color: var(--gold-light); }
.verdict[data-level="alert"] { background: #EEDFBC; border-left-color: var(--gold); }
.verdict[data-level="danger"] { background: #E6D3B3; border-left-color: var(--gold-dark); }
.verdict[data-level="danger"] strong { color: var(--gold-dark); }
.verdict--big small { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.verdict--big strong { font-family: var(--f-title); font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin: 4px 0 6px; }

/* Comparativo */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.compare__col { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--card); position: relative; transition: background .3s, transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.compare__col h3 { font-family: var(--f-title); font-weight: 700; font-size: 26px; margin: 6px 0 12px; line-height: 1.1; color: var(--green); }
.compare__col dl { margin: 0; display: grid; gap: 8px; }
.compare__col dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.compare__col dt { color: var(--text-2); }
.compare__col dd { margin: 0; font-weight: 500; white-space: nowrap; }
.compare__col .total { border-top: 1px solid var(--line-strong); padding-top: 10px; margin-top: 4px; font-size: 15px; }
.compare__col .total dt { color: var(--green); font-weight: 600; }
.compare__col .total dd { font-weight: 600; color: var(--green); }
.compare__col.is-best { border-color: var(--gold); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--gold); transform: translateY(-3px); }
.compare__col.is-best::after { content: "melhor opção"; position: absolute; top: -11px; right: 14px; background: var(--gold); color: var(--green-deep); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 3px 11px; border-radius: 99px; }
.chip { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }

/* Timeline Reforma */
.timeline { position: relative; margin-bottom: 28px; }
.timeline__track { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--beige); border-radius: 2px; transform: translateY(-50%); }
.timeline__fill { display: block; height: 100%; width: 0; background: var(--gold); border-radius: inherit; transition: width .5s var(--ease); }
.timeline__years { position: relative; display: flex; justify-content: space-between; gap: 6px; }
.timeline__years button { border: 1px solid var(--line-strong); background: var(--card); color: var(--green); border-radius: 999px; padding: 9px 14px; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .2s, transform .2s var(--ease), box-shadow .2s, color .2s, border-color .2s; }
.timeline__years button:hover { border-color: var(--gold); transform: translateY(-2px); }
.timeline__years button.is-past { background: var(--green); color: var(--cream); border-color: var(--green); }
.timeline__years button[aria-selected="true"] { background: var(--gold); color: var(--green-deep); border-color: var(--gold); transform: scale(1.08); box-shadow: var(--shadow-sm); }
.tl-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; background: var(--card); }
.tl-card__year { font-size: 12px; color: var(--gold-dark); font-weight: 600; margin: 0; letter-spacing: .24em; }
.tl-card h3 { font-family: var(--f-title); font-weight: 700; color: var(--green); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 8px 0 14px; }
.tl-card > p:not(.tl-card__year) { color: var(--text-2); margin: 0 0 18px; max-width: 46em; }
.tl-card__you { background: var(--beige); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 14px 18px; font-size: 15px; }
.tl-card__you strong { color: var(--green); }
.tl-card.is-anim { animation: fadeUp .4s var(--ease); }

/* ---------- Cartas (dicionário) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flip { display: block; width: 100%; font: inherit; color: inherit; perspective: 1200px; height: 240px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.flip__inner { display: block; position: relative; width: 100%; height: 100%; transition: transform .8s var(--ease); transform-style: preserve-3d; }
.flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; border-radius: var(--r-lg); padding: 24px; -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; flex-direction: column; overflow: hidden; }
.flip__front { background: var(--green); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(201, 165, 78, .45); transition: box-shadow .3s; }
.flip__front::after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(201, 165, 78, .35); }
.flip__front strong { font-family: var(--f-title); font-weight: 700; font-size: 36px; line-height: 1.05; margin-top: auto; }
.flip__front small { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.flip__front .flip__hint { font-size: 11px; color: var(--gold-light); opacity: .75; margin-top: 10px; }
.flip__back { background: var(--card); transform: rotateY(180deg); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); }
.flip__back strong { font-family: var(--f-title); font-size: 20px; color: var(--green); margin-bottom: 8px; }
.flip__def { display: block; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.flip:hover .flip__front { box-shadow: inset 0 0 0 1px var(--gold), var(--shadow-sm); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { border: 1px solid rgba(201, 165, 78, .3); border-radius: var(--r-lg); padding: 34px; transition: background .3s, border-color .3s; }
.step:hover { background: rgba(201, 165, 78, .06); border-color: var(--gold); }
.step__n { font-family: var(--f-script); font-size: 44px; color: var(--gold); line-height: 1; }
.step h3 { font-family: var(--f-title); font-weight: 700; font-size: 30px; margin: 18px 0 10px; line-height: 1.1; color: var(--cream); }
.step p { margin: 0; color: var(--on-dark-2); }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--gold); }
.service { padding: 34px 28px 34px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 30px 1fr; gap: 6px 14px; align-items: start; }
.service:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.service:not(:nth-child(3n+1)) { padding-left: 28px; }
.service__n { font-family: var(--f-title); font-style: italic; font-size: 15px; color: var(--gold-dark); grid-row: span 2; padding-top: 3px; }
.service h3 { margin: 0; font-family: var(--f-title); font-size: 21px; font-weight: 700; color: var(--green); transition: color .25s; }
.service p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.service:hover h3 { color: var(--gold-dark); }
.service:last-child:nth-child(3n+1) { grid-column: 1 / -1; border-right: 0; }

/* ---------- Sobre ---------- */
#sobre { overflow: hidden; }
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.about__photo { margin: 0; position: relative; max-width: 460px; }
.about__photo img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: var(--shadow); }
.about__photo::before { content: ""; position: absolute; inset: -16px; border-radius: 50%; border: 1px solid var(--gold); pointer-events: none; }
.about__photo .leaf { right: -40px; bottom: -30px; width: 120px; transform: rotate(28deg); opacity: .7; }
.about__badge { position: absolute; left: -6px; bottom: 34px; background: var(--green); color: var(--gold-light); border: 1px solid var(--gold); padding: 7px 16px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.about__copy p:not(.eyebrow):not(.script) { color: var(--text-2); font-size: 17px; }
.about__copy .about__script { font-size: 38px; margin: 10px 0 0; color: var(--gold); }
.about__facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about__facts li { border-top: 1px solid var(--gold); padding-top: 14px; }
.about__facts strong { display: block; font-family: var(--f-title); font-size: 21px; font-weight: 700; color: var(--green); line-height: 1.25; }
.about__facts span { display: block; margin-top: 4px; }
.about__facts span { font-size: 13.5px; color: var(--muted); }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact__script { font-size: 40px; margin: 18px 0 0; }
.contact__links { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.contact__links a { color: var(--gold-light); font-weight: 500; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; width: fit-content; border-bottom: 1px solid rgba(201, 165, 78, .45); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.contact__links a:hover { color: var(--gold); border-color: var(--gold); }
.form { background: var(--cream); color: var(--text); border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 1px rgba(201, 165, 78, .5); padding: 34px; display: grid; gap: 22px; }
.form__step { min-width: 0; }
.form__step label[for] { font-weight: 600; font-size: 16px; display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; color: var(--green); }
.form__step label[for] .mono { font-size: 12px; color: var(--gold-dark); font-weight: 500; }
.form .select { margin-top: 0; }
.form .select:invalid { color: var(--muted); }
.form .select option { color: var(--text); }
.form input[type="text"] { width: 100%; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); font-size: 15.5px; transition: border-color .2s; }
.form input[type="text"]:focus { border-color: var(--gold); }
.form__preview { background: var(--beige); border-radius: 4px 16px 16px 16px; padding: 14px 16px; border-left: 3px solid var(--gold); }
.form__preview small { font-size: 10.5px; font-weight: 600; color: var(--gold-dark); letter-spacing: .18em; text-transform: uppercase; }
.form__preview p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.6; }
.form__error { margin: 0; color: var(--gold-dark); font-weight: 600; font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer { background: var(--green-deep); color: var(--cream); padding: 88px 0 32px; overflow: hidden; position: relative; }
.footer .leaf { right: 4%; top: 40px; width: 140px; transform: rotate(20deg); opacity: .35; }
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; }
.footer__script { font-size: 32px; margin: 18px 0 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 30px; align-content: flex-start; }
.footer__nav a { text-decoration: none; color: var(--on-dark-2); font-size: 14.5px; }
.footer__nav a:hover { color: var(--gold); }
.footer__giant { font-family: var(--f-title); font-weight: 800; font-size: clamp(64px, 15vw, 220px); line-height: .95; letter-spacing: -.02em; margin: 64px 0 32px; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(201, 165, 78, .55); }
.footer__giant span { color: var(--gold); -webkit-text-stroke: 0; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: rgba(245, 240, 228, .55); border-top: 1px solid rgba(201, 165, 78, .25); padding-top: 22px; }
.footer__bottom a { color: var(--gold-light); text-decoration: none; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: var(--gold); display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(8, 49, 39, .6), 0 0 0 1px var(--gold); transition: transform .25s var(--ease), background .25s; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px); background: var(--green-deep); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav .btn--pill { display: none; }
  .nav__burger { display: block; }
  .hero__inner { grid-template-columns: 1fr; gap: 52px; }
  .calc { max-width: 560px; }
  .pains, .services { grid-template-columns: repeat(2, 1fr); }
  .service:not(:nth-child(3n)) { border-right: 0; }
  .service:not(:nth-child(3n+1)) { padding-left: 0; }
  .service:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 28px; }
  .service:nth-child(even) { padding-left: 28px; }
  .service:last-child:nth-child(3n+1) { grid-column: auto; }
  .service:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; padding-right: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .panel__grid { grid-template-columns: 1fr; gap: 36px; }
  .about, .contact { grid-template-columns: 1fr; gap: 56px; }
  .about__photo { max-width: 400px; margin: 0 auto; }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .nav__inner { height: 68px; }
  .brand { gap: 10px; }
  .brand__logo { width: 44px; height: 44px; }
  .brand__text { padding-left: 12px; }
  .brand__text strong { font-size: 16px; }
  .brand__text small { font-size: 8px; gap: 5px; margin-top: 5px; }
  .brand__text small::before, .brand__text small::after { width: 11px; }
  .hero { padding: 36px 0 76px; }
  .hero__arc { width: 420px; height: 420px; right: -200px; top: -140px; }
  .hero__title { font-size: clamp(38px, 11.4vw, 60px); }
  .hero__ctas .btn { width: 100%; }
  .badge { font-size: 12px; }
  .calc { padding: 24px 20px; }
  .calc__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .calc__body { grid-template-columns: 108px 1fr; gap: 16px; }
  .donut { width: 108px; height: 108px; }
  .calc__value { font-size: 36px; }
  .calc__result strong { font-size: 22px; }
  .marquee__track { font-size: 20px; gap: 24px; -webkit-animation-duration: 30s; animation-duration: 30s; }
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 38px; }
  .eyebrow { font-size: 11px; letter-spacing: .16em; gap: 10px; white-space: nowrap; }
  .eyebrow::before { width: 22px; flex: none; }
  .pains, .services, .steps { grid-template-columns: 1fr; }
  .pain { min-height: 0; padding: 26px 22px; }
  .pain::before { left: 22px; }
  .service, .service:nth-child(odd), .service:nth-child(even) { border-right: 0; padding: 24px 0; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flip { height: 224px; }
  .flip__face { padding: 16px; }
  .flip__front strong { font-size: 26px; }
  .flip__back strong { font-size: 16px; margin-bottom: 6px; }
  .flip__def { font-size: 12.5px; line-height: 1.45; }
  .tabs { display: flex; border-radius: 20px; }
  .tabs button { flex: 1 1 auto; padding: 10px 12px; font-size: 13.5px; }
  .panel { padding: 24px 18px; }
  .field__value { font-size: 32px; }
  .meter { gap: 2px; height: 52px; }
  .meter i { border-radius: 3px; }
  .meter__legend span:nth-child(3) { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:last-child { grid-column: span 2; }
  .compare { grid-template-columns: 1fr; gap: 20px; }
  .timeline__track { display: none; }
  .timeline__years { flex-wrap: wrap; justify-content: flex-start; }
  .timeline__years button { padding: 8px 12px; font-size: 13px; }
  .tl-card { padding: 22px; }
  .about__photo { max-width: 300px; }
  .about__photo .leaf { right: -18px; width: 90px; }
  .about__facts { grid-template-columns: 1fr; gap: 0; margin-top: 26px; }
  .about__facts li { padding: 14px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .about__facts li:last-child { border-bottom: 1px solid var(--gold); }
  .about__facts strong { font-size: 18px; }
  .about__facts span { margin-top: 0; text-align: right; flex: none; }
  .contact__script { font-size: 34px; }
  .form { padding: 24px 20px; }
  .footer .leaf { display: none; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

/* ---------- Ajustes de toque (celular e tablet) ---------- */
/* iPhone/iPad dão zoom em campos com fonte < 16px */
.select, .form input[type="text"], .form .select { font-size: 16px; }
@media (max-width: 1080px) {
  /* textos de apoio legíveis */
  .calc__tag, .flip__front small, .form__preview small, .chip, .compare__col.is-best::after, .donut__label small { font-size: 11px; }
}
@media (pointer: coarse), (max-width: 680px) {
  /* áreas de toque de no mínimo 44px */
  .contact__links { gap: 2px; }
  .contact__links a { min-height: 44px; border-bottom: 0; text-decoration: underline; text-decoration-color: rgba(201, 165, 78, .5); text-underline-offset: 5px; }
  .footer__nav { gap: 0 22px; }
  .footer__nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__bottom a { display: inline-block; padding: 12px 0; }
  .range { height: 8px; }
  .range::-webkit-slider-thumb { width: 32px; height: 32px; }
  .range::-moz-range-thumb { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  /* a faixa continua andando, só mais devagar */
  .marquee__track { animation: marquee 80s linear infinite !important; }
  .js .reveal { opacity: 1; transform: none; }
}
