/* DeBorba Consultoria — site institucional */
:root {
  --forest: #072621;
  --forest-2: #0B332D;
  --emerald: #0E5A4F;
  --emerald-2: #138A75;
  --gold: #D4B06A;
  --gold-ink: #8A6A24;
  --paper: #F7F7F4;
  --mist: #E8EFEB;
  --ink: #17201E;
  --muted: #56625F;
  --rule: #D5DCD8;
  --rule-dark: rgba(255, 255, 255, .12);

  --serif: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 3.6vw, 2.9rem);
  --step-4: clamp(2.6rem, 5.4vw, 4.4rem);
  --step-5: clamp(3rem, 7vw, 5.9rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); line-height: 1.04; letter-spacing: -.012em; }
h3 { font-family: var(--sans); font-weight: 700; font-size: var(--step-1); line-height: 1.3; letter-spacing: -.01em; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--forest); padding: 10px 16px; border-radius: 4px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 700 .97rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 1.05em 1.6em; border-radius: 6px; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--forest); }
.btn--gold:hover { background: #E2C383; }
.btn--emerald { background: var(--emerald); color: #fff; }
.btn--emerald:hover { background: var(--forest-2); }
.btn--line { border-color: rgba(255,255,255,.3); color: #fff; }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--line-dark { border-color: var(--emerald); color: var(--emerald); }
.btn--line-dark:hover { background: var(--emerald); color: #fff; }
.btn svg { width: 18px; height: 18px; }

.link { color: var(--emerald); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--gold-ink); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--forest); color: #fff; border-bottom: 1px solid var(--rule-dark); }
.header__inner { display: flex; align-items: center; gap: 40px; height: 76px; }
.header__brand img { height: 38px; width: auto; }
.header__nav { display: flex; gap: 30px; margin-left: auto; }
.header__nav a { text-decoration: none; font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.72); padding: 6px 0; border-bottom: 1px solid transparent; }
.header__nav a:hover { color: #fff; }
.header__nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.header .btn { padding: .8em 1.2em; font-size: .9rem; }
.header__toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.header__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .25s; }
.header__toggle span:first-child { top: 17px; }
.header__toggle span:last-child { top: 25px; }
.header__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.header__mobile { padding: 8px var(--gutter) 24px; border-top: 1px solid var(--rule-dark); }
.header__mobile[hidden] { display: none; }
.header__mobile a:not(.btn) { display: block; padding: 14px 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--rule-dark); }
.header__mobile .btn { margin-top: 18px; width: 100%; }

/* Dark bands (hero + page heads) */
.dark { position: relative; overflow: hidden; background: var(--forest); color: #fff; }
.dark p { color: rgba(255,255,255,.74); }
[hidden] { display: none !important; }
.mark { position: absolute; pointer-events: none; color: rgba(212,176,106,.10); }
.mark path { fill: none; stroke: currentColor; stroke-width: 1.2; }

/* Hero */
.hero { padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 120px); }
.hero .mark { width: 900px; right: -260px; top: -120px; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: var(--step-5); margin-bottom: 28px; }
.hero__lead { font-size: var(--step-1); line-height: 1.5; max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__sign { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule-dark); font-family: var(--serif); font-size: 1.25rem; color: var(--gold) !important; max-width: 420px; }

/* Hero system mock */
.app { background: var(--paper); color: var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.08); }
.app__top { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #fff; border-bottom: 1px solid var(--rule); }
.app__top i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.app__top span { margin: 0 auto; padding: 4px 14px; border-radius: 4px; background: var(--paper); font-size: .76rem; color: var(--muted); }
.app__body { display: grid; grid-template-columns: 148px 1fr; min-height: 430px; }
.app__side { display: flex; flex-direction: column; gap: 4px; padding: 16px 10px; background: var(--forest); }
.app__side img { width: 22px; height: auto; margin: 0 0 16px 8px; }
.app__side button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  font: 600 .86rem var(--sans); color: rgba(255,255,255,.66); background: none; border: 0; border-radius: 6px; padding: 10px;
}
.app__side button:hover { color: #fff; }
.app__side button[aria-selected="true"] { background: rgba(212,176,106,.16); color: var(--gold); }
.app__side svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app__main { padding: 20px; min-width: 0; }
.view { display: grid; gap: 12px; animation: view-in .35s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
.dark .app p.view__title { margin: 0 0 4px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; color: var(--ink); }
.dark .app p.view__sub { margin: 4px 0 0; font-size: .8rem; font-weight: 700; color: var(--muted); }
.done { list-style: none; display: grid; gap: 6px; }
.done li { display: flex; align-items: center; gap: 10px; font-size: .88rem; padding: 9px 12px; background: #fff; border: 1px solid var(--rule); border-radius: 6px; }
.done li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat; }
.autos { list-style: none; display: grid; gap: 8px; }
.autos li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; background: #fff; border: 1px solid var(--rule); border-radius: 6px; }
.autos b { display: block; font-size: .9rem; }
.autos small { color: var(--muted); font-size: .78rem; }
.switch { flex: none; position: relative; width: 38px; height: 22px; border-radius: 99px; border: 0; cursor: pointer; background: var(--rule); transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--emerald); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }
.app .wa { border-radius: 6px; }
.dark .app .wa p { color: var(--ink); }

/* Sections */
.section { padding: clamp(80px, 10vw, 136px) 0; }
.section--mist { background: var(--mist); }
.section--white { background: #fff; }
.section--rule { border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.title { font-size: var(--step-4); }
.title--md { font-size: var(--step-3); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.section__intro { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__intro .title { margin-bottom: 24px; }
.sticky { position: sticky; top: 120px; }

/* Statement */
.statement { font-family: var(--serif); font-size: var(--step-3); line-height: 1.22; max-width: 24ch; }
.symptoms { list-style: none; border-top: 1px solid var(--ink); }
.symptoms li { padding: 26px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr; gap: 6px; }
.symptoms h3 { font-size: var(--step-1); }
.symptoms p { margin: 0; color: var(--muted); max-width: 58ch; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: 18px 20px; vertical-align: top; border-bottom: 1px solid var(--rule); }
.compare thead th { font-weight: 700; font-size: var(--step--1); color: var(--muted); border-bottom: 1px solid var(--ink); }
.compare thead th:last-child { color: var(--emerald); }
.compare tbody th { font-weight: 700; width: 22%; }
.compare td { color: var(--muted); }
.compare td:last-child { color: var(--ink); background: rgba(14,90,79,.06); }
.compare thead th:last-child { background: rgba(14,90,79,.06); border-top: 3px solid var(--emerald); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Capabilities index */
.index { list-style: none; border-top: 1px solid var(--ink); }
.index li { display: grid; grid-template-columns: 4fr 6fr 3fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.index h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.15; }
.index p { margin: 0; color: var(--muted); }
.index small { font-size: var(--step--1); color: var(--gold-ink); font-weight: 600; line-height: 1.5; }

/* Product feature */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.product + .product { margin-top: clamp(80px, 10vw, 128px); }
.product--flip > :first-child { order: 2; }
.product h3.product__name { font-family: var(--serif); font-size: var(--step-3); font-weight: 400; line-height: 1.05; margin-bottom: 8px; }
.product__kind { font-weight: 700; color: var(--gold-ink); margin-bottom: 18px; }
.product ul { list-style: none; margin: 24px 0 28px; border-top: 1px solid var(--rule); }
.product li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.product li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 14px; height: 1px; background: var(--emerald); }

/* UI mocks */
.screen { background: #fff; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 40px 80px -50px rgba(7,38,33,.5); overflow: hidden; font-size: .88rem; }
.screen__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--forest); color: #fff; font-weight: 700; font-size: .82rem; }
.screen__bar img { width: 18px; height: auto; }
.screen__bar span { margin-left: auto; font-weight: 600; color: var(--gold); }
.screen__body { padding: 16px; display: grid; gap: 10px; background: var(--paper); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 12px; }
.kpi small { display: block; color: var(--muted); font-size: .74rem; }
.kpi strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--emerald); }
.kpi--warn strong { color: #A2462E; }
.lines { background: #fff; border: 1px solid var(--rule); border-radius: 6px; }
.lines div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.lines div:last-child { border-bottom: 0; }
.lines small { display: block; color: var(--muted); font-size: .76rem; }
.pill { align-self: center; font-size: .72rem; font-weight: 700; padding: .3em .7em; border-radius: 4px; background: var(--mist); color: var(--emerald); white-space: nowrap; }
.pill--gold { background: #F5ECD8; color: var(--gold-ink); }
.pill--red { background: #F6E1DA; color: #A2462E; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 14px; background: #fff; border: 1px solid var(--rule); border-radius: 6px; }
.chart i { flex: 1; background: var(--emerald); border-radius: 2px 2px 0 0; opacity: .85; }
.chart i:nth-child(even) { background: var(--gold); }
.wa { display: grid; gap: 8px; padding: 16px; background: #E9E4DA; }
.wa p { margin: 0; max-width: 82%; padding: 8px 12px; border-radius: 8px; background: #fff; font-size: .86rem; line-height: 1.45; color: var(--ink); }
.wa p.me { justify-self: end; background: #D7EFE4; }
.wa b { display: block; font-size: .72rem; color: var(--emerald); }

/* Steps (true sequence) */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps > li { counter-increment: step; padding: 28px 28px 0 0; }
.steps > li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.steps > li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--gold-ink); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: .98rem; }
.steps--long { grid-template-columns: 1fr; }
.steps--long > li { display: grid; grid-template-columns: 90px 4fr 6fr; gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--rule); }
.steps--long > li + li { padding-left: 0; border-left: 0; }
.steps--long > li::before { margin: 0; }
.steps--long ul { list-style: none; display: grid; gap: 8px; align-content: start; }
.steps--long ul li { padding-left: 20px; position: relative; color: var(--muted); }
.steps--long ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--emerald); }

/* Diagnosis band */
.offer { padding: clamp(72px, 9vw, 120px) 0; }
.offer .mark { width: 640px; left: -220px; bottom: -260px; }
.offer__grid { position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.offer h2 { font-size: var(--step-4); margin-bottom: 24px; }
.offer ul { list-style: none; border-top: 1px solid var(--rule-dark); margin-bottom: 32px; }
.offer li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--rule-dark); position: relative; color: rgba(255,255,255,.86); }
.offer li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 16px; height: 1px; background: var(--gold); }
.offer__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-weight: 700; font-size: var(--step-1); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: .4em; border-right: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--muted); max-width: 64ch; padding-bottom: 24px; margin: 0; }

/* Page head (subpages) */
.pagehead { padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.pagehead .mark { width: 640px; right: -200px; top: -160px; }
.pagehead__inner { position: relative; max-width: 820px; }
.pagehead h1 { font-size: var(--step-5); margin-bottom: 24px; }
.pagehead p { font-size: var(--step-1); line-height: 1.5; max-width: 44ch; margin: 0; }
.crumb { display: inline-block; margin-bottom: 22px; color: var(--gold); text-decoration: none; font-weight: 600; font-size: .95rem; }

/* Two-col text */
.prose { max-width: 64ch; }
.prose p { color: var(--muted); }
.prose p.big { font-family: var(--serif); font-size: var(--step-2); line-height: 1.35; color: var(--ink); }
.principles { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--ink); }
.principles li { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.principles h3 { margin-bottom: 8px; }
.principles p { margin: 0; color: var(--muted); }

/* Sectors */
.sectors { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--ink); }
.sectors li { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.sectors h3 { margin-bottom: 6px; }
.sectors p { margin: 0; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.channels { list-style: none; border-top: 1px solid var(--ink); margin-top: 32px; }
.channels li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.channels small { display: block; color: var(--muted); font-weight: 600; }
.channels a { font-family: var(--serif); font-size: var(--step-2); text-decoration: none; color: var(--emerald); line-height: 1.3; word-break: break-word; }
.channels a:hover { color: var(--gold-ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: clamp(24px, 4vw, 40px); }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: 400 1rem var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 6px; padding: 13px 14px; width: 100%;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(14,90,79,.15); }
.form .is-invalid { border-color: #A2462E; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__note { margin: 0; font-size: .92rem; color: var(--emerald); font-weight: 600; }
.form__note.is-error { color: #A2462E; }

/* Closing CTA strip */
.closing { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--rule); }
.closing__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.closing h2 { font-size: var(--step-3); max-width: 20ch; }

/* Footer */
.footer { background: var(--forest); color: rgba(255,255,255,.7); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 4fr 2fr 2fr 3fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--rule-dark); }
.footer__brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-family: var(--serif); font-size: 1.35rem; color: var(--gold); margin: 0; }
.footer h4 { font-size: .92rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { text-decoration: none; font-size: .95rem; }
.footer a:hover { color: var(--gold); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .85rem; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--emerald); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(7,38,33,.6); border: 1px solid rgba(212,176,106,.5);
}
.wa-float:hover { background: var(--forest-2); }
.wa-float svg { width: 26px; height: 26px; }

/* Responsive */
@media (max-width: 1080px) {
  .header__nav { gap: 22px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps:not(.steps--long) { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .steps:not(.steps--long) > li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 920px) {
  .header__nav, .header__cta { display: none; }
  .header__toggle { display: block; }
  .hero__grid, .split, .split--even, .product, .offer__grid, .contact { grid-template-columns: 1fr; }
  .product--flip > :first-child { order: 0; }
  .sticky { position: static; }
  .index li { grid-template-columns: 1fr; gap: 8px; }
  .steps--long > li { grid-template-columns: 60px 1fr; }
  .steps--long > li > ul { grid-column: 2; }
  .principles, .sectors { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .steps > li, .steps > li + li { padding: 24px 0 0; border-left: 0; }
  .app__body { grid-template-columns: 1fr; min-height: 0; }
  .app__side { flex-direction: row; padding: 8px; overflow-x: auto; }
  .app__side img { display: none; }
  .app__side button { width: auto; flex: 1; justify-content: center; padding: 9px 6px; font-size: .8rem; }
  .app__main { padding: 16px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .compare { font-size: .9rem; min-width: 620px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.product--text { align-items: start; padding-top: 48px; border-top: 1px solid var(--ink); }
.product--text + .product--text { margin-top: 72px; }
.product--text ul { margin-top: 0; }
@media (max-width: 600px) {
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 20px 0; border-bottom: 1px solid var(--rule); }
  .compare tbody th { width: 100%; padding: 0 0 10px; border: 0; font-size: var(--step-1); }
  .compare td { padding: 10px 12px; border: 0; }
  .compare td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
  .compare td:last-child { border-left: 3px solid var(--emerald); border-radius: 0 6px 6px 0; }
  .compare td:last-child::before { color: var(--emerald); }
  .compare tbody tr:first-child { border-top: 1px solid var(--ink); }
}
@media (max-width: 600px) {
  .steps--long > li, .steps--long > li + li { padding: 28px 0; row-gap: 16px; }
}
.app .kpi strong { font-size: 1.35rem; white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form button:disabled { opacity: .6; cursor: progress; }
.turnstile:empty { display: none; }

/* Legal pages (termos, privacidade) */
.legalhead__kicker { font-weight: 700; color: var(--gold) !important; margin-bottom: 18px !important; }
.legalhead__meta { position: relative; display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--rule-dark); }
.legalhead__meta dt { font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.55); }
.legalhead__meta dd { margin: 2px 0 0; color: #fff; font-weight: 600; }
.legal__grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.legal__aside { position: sticky; top: 104px; display: grid; gap: 20px; justify-items: start; }
.legal__navtitle { font-weight: 700; margin: 0 0 12px; }
.legal__nav { list-style: none; counter-reset: sec; border-top: 1px solid var(--ink); max-height: calc(100vh - 300px); overflow-y: auto; }
.legal__nav li { counter-increment: sec; border-bottom: 1px solid var(--rule); }
.legal__nav a { display: grid; grid-template-columns: 28px 1fr; padding: 9px 0; font-size: .92rem; line-height: 1.35; text-decoration: none; color: var(--muted); }
.legal__nav a::before { content: counter(sec, decimal-leading-zero); color: var(--gold-ink); font-weight: 700; font-size: .8rem; padding-top: 1px; }
.legal__nav a:hover, .legal__nav a.is-current { color: var(--emerald); }
.legal__print { padding: .8em 1.2em; font-size: .9rem; }
.legal__body { max-width: 72ch; counter-reset: sec; }
.legal__intro p { font-size: var(--step-1); line-height: 1.6; }
.legal__section { counter-increment: sec; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--rule); scroll-margin-top: 100px; }
.legal__section h2 { font-size: var(--step-3); margin-bottom: 20px; display: flex; gap: 16px; align-items: baseline; }
.legal__section h2::before { content: counter(sec) "."; color: var(--gold-ink); }
.legal__section h3 { font-size: 1.05rem; margin: 24px 0 10px; }
.legal__section p, .legal__section li { color: #2E3A37; }
.legal__section ul { list-style: none; display: grid; gap: 10px; margin: 0 0 1em; }
.legal__section li { position: relative; padding-left: 24px; }
.legal__section li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 1px; background: var(--emerald); }
.legal__section a, .legal__intro a { color: var(--emerald); font-weight: 600; }
.legal__card { padding: 20px 22px; background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--emerald); border-radius: 6px; line-height: 1.7; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.form__legal { margin: 0; font-size: .85rem; color: var(--muted); }
.form__legal a { color: var(--emerald); font-weight: 600; }
@media (max-width: 920px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__aside { position: static; }
  .legal__nav { max-height: none; }
}
.print-only { display: none; }

/* PDF / impressão no padrão de documento contratual */
@page {
  size: A4;
  margin: 2.5cm 2.5cm 2.5cm 3cm;
  @top-right { content: "DeBorba Consultoria"; font: 8pt "Times New Roman", Times, serif; color: #555; }
  @bottom-center { content: "Página " counter(page) " de " counter(pages); font: 8pt "Times New Roman", Times, serif; color: #555; }
}
@media print {
  .header, .footer, .wa-float, .legal__aside, .skip, .legalhead, .mark { display: none !important; }
  .print-only { display: block; }
  html, body { background: #fff; }
  body { color: #000; font-variant-numeric: lining-nums; font: 12pt/1.5 "Times New Roman", Times, serif; }
  .section, .legal { padding: 0 !important; background: #fff; }
  .wrap { max-width: none; padding: 0; }
  .legal__grid { display: block; }
  .legal__body { max-width: none; counter-reset: sec; }
  a { color: #000 !important; text-decoration: none; font-weight: 400 !important; }

  .doc__head { text-align: center; margin-bottom: 1.4em; }
  .doc__title { font-size: 14pt; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
  .doc__sub { font-size: 11pt; margin: .2em 0 1.6em; }
  .doc__qual { text-align: justify; margin: 0 0 .6em; }
  .doc__version { font-style: italic; font-size: 10pt; margin: 0; }

  .legal__intro p { font-size: 11.5pt; line-height: 1.5; text-align: justify; color: #000; }

  .legal__section { counter-increment: sec; counter-reset: par item; border: 0; margin: 1.2em 0 0; padding: 0; break-inside: auto; }
  .legal__section h2 { display: block; font: 700 11.5pt/1.4 "Times New Roman", Times, serif; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .6em; break-after: avoid; }
  .legal__section h2::before { content: "CLÁUSULA " counter(sec) "ª – "; color: #000; }
  .legal__section h3 { font: italic 700 11.5pt/1.5 "Times New Roman", Times, serif; margin: .8em 0 .3em; break-after: avoid; }
  .legal__section p { counter-increment: par; text-align: justify; color: #000; margin: 0 0 .5em; orphans: 3; widows: 3; }
  .legal__section p::before { content: counter(sec) "." counter(par) ". "; font-weight: 700; }
  .legal__section ul { display: block; margin: 0 0 .6em 1.6em; counter-reset: item; }
  .legal__section li { counter-increment: item; padding-left: 0; margin: 0 0 .3em; text-align: justify; color: #000; break-inside: avoid; }
  .legal__section li::before { content: counter(item, lower-alpha) ") "; position: static; width: auto; height: auto; background: none; font-weight: 700; }
  .legal__section p.legal__card { counter-increment: none; border: 0; padding: 0 0 0 1.6em; margin: .2em 0 .6em; background: none; line-height: 1.5; text-align: left; }
  .legal__section p.legal__card::before { content: none; }

  .doc__sign { margin-top: 3em; text-align: center; break-inside: avoid; }
  .doc__sign p { margin: 0; }
  .doc__line { width: 60%; margin: 4em auto .4em; border-top: 1px solid #000; }
}
@media (max-width: 600px) { .footer { padding-bottom: 96px; } }
