/* Trading Imóveis — sistema visual inspirado no guia de referência (Refero).
   Tokens: tipografia arredondada, palco branco, ações em cápsula com gradiente quente. */
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dmsans-var.woff2') format('woff2'), url('/fonts/dmsans-var.woff') format('woff');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dmsans-ext.woff2') format('woff2');
  font-weight: 100 1000; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --sun-1: #cf3426; --sun-2: #c92a4d; --sun-3: #b0205e; /* ação: contraste ≥ 5:1 com branco */
  --ink: #222222; --muted: #6a6a6a; --rule: #dddddd; --soft: #f7f7f7; --canvas: #ffffff;
  --control: #f2f2f2; --cream: #f4f2ec; --sea: #0e6e66; --sea-soft: #e7f3f1;
  --grad: linear-gradient(to right, var(--sun-1) 0%, var(--sun-2) 50%, var(--sun-3) 100%);
  --font: 'DM Sans', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif;
  --shadow-card: 0 0 0 1px rgba(0,0,0,.04), 0 6px 16px rgba(0,0,0,.12);
  --ease: cubic-bezier(.2,0,0,1);
  --gutter: 80px; --nav: 80px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 16px); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--canvas); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Foco visível (WCAG 2.4.7) */
:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 0 4px var(--ink); border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 800px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* Tipografia */
.display { font-size: 60px; line-height: 64px; letter-spacing: -0.04em; font-weight: 600; }
.heading { font-size: 54px; line-height: 58px; letter-spacing: -0.03em; font-weight: 600; }
.proof { font-size: 36px; line-height: 44px; letter-spacing: -0.04em; font-weight: 600; }
.hero-support { font-size: 24px; line-height: 1.5; color: var(--muted); }
.section-support { font-size: 22px; line-height: 32px; color: var(--muted); }
.feature-title { font-size: 18px; line-height: 24px; font-weight: 500; }
.feature-body { font-size: 16px; line-height: 22px; color: var(--muted); }
.caption { font-size: 14px; line-height: 18px; }
.utility { font-size: 14px; line-height: 18px; font-weight: 500; }
.muted { color: var(--muted); }

/* Containers */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.chapter { padding: 120px 0 0; }
.chapter-copy { max-width: 600px; margin: 0 auto; text-align: center; }
.chapter-copy .section-support { max-width: 580px; margin: 16px auto 0; }
.lead-in { margin-top: 56px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 14px 28px; border-radius: 800px; border: none; font-size: 16px; line-height: 1.25; font-weight: 500; text-decoration: none; cursor: pointer; transition: box-shadow .2s var(--ease), transform .1s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--grad); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-soft { background: var(--control); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { height: 40px; padding: 10px 18px; font-size: 15px; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 500; }
.link:hover { text-decoration-thickness: 2px; }

/* Navegação fixa (frosted) */
.nav { position: fixed; inset: 0 0 auto; height: var(--nav); z-index: 100; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #fff; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: #ebebeb; }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 20px; }
.brand svg { width: 34px; height: 34px; }
.brand b { font-weight: 700; }
.brand span { color: var(--sun-2); }
.nav-links { display: flex; gap: 4px; margin: 0 auto 0 8px; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 800px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-links a:hover { background: var(--control); }
.nav-links a[aria-current="page"] { background: var(--control); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 18px; height: 18px; }
main { padding-top: var(--nav); }

/* Hero — dois objetos dividindo o palco */
.hero { min-height: 740px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 756px); align-items: center; gap: 24px; }
.hero-copy { max-width: 476px; margin: 0 auto; text-align: center; }
.hero-copy .hero-support { max-width: 420px; margin: 16px auto 0; }
.hero-stage { position: relative; aspect-ratio: 1 / 1; max-height: 680px; display: grid; place-items: center; }
.hero-stage::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 6%; height: 30%; background: radial-gradient(closest-side, rgba(34,34,34,.3), transparent); opacity: .15; z-index: 0; }
.vignette { position: relative; z-index: 1; width: min(380px, 62%); aspect-ratio: 1; border-radius: 40px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(34,34,34,.35); }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette-tag { position: absolute; z-index: 2; left: 50%; bottom: 13%; transform: translateX(-50%); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 800px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-card); white-space: nowrap; }
.hero-mini { position: absolute; z-index: 2; width: 96px; height: 96px; }
.hero-mini.m1 { left: 8%; top: 18%; } .hero-mini.m2 { right: 7%; top: 28%; } .hero-mini.m3 { left: 14%; bottom: 14%; }
.hero-search { margin: 32px auto 0; max-width: 420px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px; border: 1px solid var(--rule); border-radius: 800px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05); background: #fff; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; height: 44px; }
.hero-search button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.hero-search button svg { width: 18px; height: 18px; }
.hero-search:focus-within { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

/* Campo de miniaturas */
.mini { display: block; }
.capability-field { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; max-width: 1040px; margin: 56px auto 0; }
.capability { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; text-decoration: none; padding: 12px; border-radius: 20px; transition: background .2s; }
.capability:hover { background: var(--soft); }
.capability .mini { width: 96px; height: 96px; }
.capability .feature-body { margin-top: 4px; }

/* Cartões de história (triptych) */
.story-grid { display: grid; grid-template-columns: repeat(3, 300px); gap: 24px; justify-content: center; margin-top: 56px; }
.story-card { width: 300px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); text-decoration: none; background: #fff; transition: transform .2s var(--ease); }
.story-card:hover { transform: translateY(-2px); }
.story-card img { width: 300px; height: 356px; object-fit: cover; }
.story-card .caption { padding: 16px 0; max-width: 220px; margin: 0 auto; text-align: center; }

/* Prova: retratos sobrepostos + declarações empilhadas */
.cluster { display: flex; justify-content: center; align-items: center; margin: 56px auto 0; max-width: 630px; }
.cluster img { border-radius: 50%; object-fit: cover; border: 4px solid #fff; margin: 0 -14px; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.cluster .c1 { width: 132px; height: 132px; z-index: 1; }
.cluster .c2 { width: 146px; height: 146px; z-index: 2; }
.cluster .c3 { width: 194px; height: 194px; z-index: 3; }
.proofs { max-width: 600px; margin: 48px auto 0; text-align: center; }
.proofs > div { padding: 24px 0; }
.proofs > div + div { border-top: 1px solid var(--rule); }
.proofs .proof-caption { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 20px; }

/* Exposição com celular */
.feature-grid { display: grid; grid-template-columns: repeat(2, 400px); gap: 56px 48px; justify-content: center; margin-top: 56px; }
.exhibit { width: 400px; text-align: center; text-decoration: none; display: block; }
.exhibit-stage { height: 422px; border-radius: 24px; background: var(--soft); overflow: hidden; display: flex; justify-content: center; align-items: flex-end; }
.exhibit .feature-title { margin-top: 24px; }
.exhibit .feature-body { max-width: 311px; margin: 4px auto 0; }
.phone { width: 236px; height: 380px; background: #111; border-radius: 38px 38px 0 0; padding: 10px 10px 0; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.phone-screen { height: 100%; background: #fff; border-radius: 30px 30px 0 0; overflow: hidden; position: relative; font-size: 12px; text-align: left; }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 72px; height: 20px; background: #111; border-radius: 12px; z-index: 2; }
.ps-img { height: 150px; object-fit: cover; width: 100%; }
.ps-body { padding: 12px 14px; }
.ps-title { font-weight: 600; font-size: 14px; }
.ps-meta { color: var(--muted); margin-top: 2px; }
.ps-btn { margin-top: 12px; background: var(--grad); color: #fff; border-radius: 800px; text-align: center; padding: 8px; font-weight: 500; }
.wa-top { background: #075e54; color: #fff; padding: 36px 12px 10px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.wa-top i { width: 24px; height: 24px; border-radius: 50%; background: #25d366; display: inline-block; }
.wa-body { background: #ece5dd; height: 100%; padding: 12px; }
.wa-msg { background: #dcf8c6; border-radius: 10px 10px 2px 10px; padding: 8px 10px; margin-left: 24px; line-height: 1.45; white-space: pre-line; box-shadow: 0 1px 1px rgba(0,0,0,.1); font-size: 12px; }

/* Faixa de perguntas */
.questions { background: var(--soft); padding: 120px 0 0; margin-top: 120px; }
.question-column { max-width: 632px; margin: 56px auto 0; }
.qa { border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 24px; cursor: pointer; font-size: 22px; line-height: 32px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.qa[open] summary svg { transform: rotate(180deg); }
.qa .answer { padding: 0 0 24px; font-size: 16px; line-height: 24px; color: var(--ink); }
.qa .answer p + p { margin-top: 12px; }

/* Rodapé */
.footer { background: var(--soft); padding: 56px 0 32px; font-size: 14px; line-height: 18px; }
.footer.white { background: #fff; border-top: 1px solid #ebebeb; margin-top: 120px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #ebebeb; }
.footer h2 { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; border-radius: 4px; }
.footer a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 24px; color: var(--muted); }
.footer-legal button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: var(--ink); font-size: 14px; }
.footer .company { color: var(--muted); margin-top: 12px; display: grid; gap: 4px; }

/* Páginas internas: cabeçalho */
.page-head { padding: 72px 0 0; }
.page-head .chapter-copy { max-width: 720px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 24px; padding: 0; list-style: none; }
.crumbs a { color: var(--ink); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--rule); }

/* Filtros */
.filters { position: sticky; top: var(--nav); z-index: 20; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 16px 0; margin-top: 48px; border-bottom: 1px solid #ebebeb; }
.filters-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule); border-radius: 800px; padding: 0 16px; height: 48px; min-width: 260px; flex: 1 1 260px; max-width: 360px; background: #fff; }
.search:focus-within { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.search svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.search input { border: 0; outline: 0; flex: 1; height: 44px; min-width: 0; background: transparent; }
.seg { display: inline-flex; background: var(--control); border-radius: 800px; padding: 4px; gap: 2px; }
.seg button, .chip { border: 0; background: transparent; padding: 0 16px; height: 40px; border-radius: 800px; cursor: pointer; font-size: 15px; font-weight: 500; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--rule); background: #fff; height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.count { font-size: 14px; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* Grade de cartões (prateleira) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 24px; margin-top: 32px; }
.card { text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 20 / 19; border-radius: 12px; overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card-img img { transform: scale(1.03); }
.badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 800px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.badge.hot { background: var(--grad); color: #fff; }
.card h3 { font-size: 16px; line-height: 20px; font-weight: 600; margin-top: 12px; }
.card .meta { font-size: 15px; color: var(--muted); margin-top: 2px; }
.card .sum { font-size: 15px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card[hidden] { display: none; }
.empty { text-align: center; padding: 80px 0; color: var(--muted); }

/* Detalhe */
.detail-head { padding-top: 40px; }
.detail-title { font-size: 40px; line-height: 46px; letter-spacing: -0.03em; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 800px; background: var(--control); text-decoration: none; }
.tag.sea { background: var(--sea-soft); color: var(--sea); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; margin-top: 28px; border-radius: 16px; overflow: hidden; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--soft); }
.gallery figure:first-child { grid-row: 1 / span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery .more { position: absolute; right: 12px; bottom: 12px; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 440px; }
.gallery.n2 { grid-template-columns: 2fr 1fr; }
.gallery.n2 figure:nth-child(2) { grid-row: 1 / span 2; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 80px; margin-top: 48px; align-items: start; }
.prose { font-size: 17px; line-height: 1.65; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin: 0; }
.prose li + li { margin-top: 6px; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 48px; }
.fact { padding: 24px 0; border-top: 1px solid var(--rule); }
.fact h2 { font-size: 18px; line-height: 24px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.fact h2 svg { width: 22px; height: 22px; flex: none; color: var(--sea); }
.fact .body { margin-top: 10px; font-size: 16px; line-height: 1.6; color: #3d3d3d; }
.fact .body ul { padding-left: 18px; margin: 0; }
.fact .body li + li, .fact .body p + p { margin-top: 6px; }
.fact.wide { grid-column: 1 / -1; }
.aside-card { position: sticky; top: calc(var(--nav) + 24px); border: 1px solid var(--rule); border-radius: 20px; padding: 24px; box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.aside-card h2 { font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }
.aside-card .price { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.aside-card .btn { width: 100%; margin-top: 16px; }
.aside-card .note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.aside-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; font-size: 15px; }
.aside-list li { display: flex; gap: 10px; align-items: flex-start; }
.aside-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--muted); }
.notice { background: var(--cream); border-radius: 16px; padding: 16px 20px; font-size: 15px; line-height: 1.5; }
.notice strong { font-weight: 600; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(17,17,17,.94); display: none; align-items: center; justify-content: center; padding: 64px 72px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 8px; object-fit: contain; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }

/* Faixa de apoio quente */
.support-panel { background: var(--cream); border-radius: 24px; padding: 32px 40px; display: flex; gap: 28px; align-items: center; max-width: 848px; margin: 0 auto; }
.support-panel .mini { width: 88px; height: 88px; flex: none; }
.support-panel .txt { flex: 1; }
.support-panel h2 { font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }

/* Três intenções (imóveis) */
.intents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1040px; margin: 56px auto 0; text-align: center; }
.intent .mini { margin: 0 auto; }
.intent h3 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; margin-top: 16px; }
.intent p { margin-top: 8px; color: var(--muted); }
.intent .btn { margin-top: 20px; }

/* Formulários */
.form { display: grid; gap: 20px; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #b0b0b0; border-radius: 12px; padding: 14px 16px; font-size: 16px; background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field .err { font-size: 13px; color: #b42318; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #b42318; }
.field.invalid .err { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option span { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #b0b0b0; border-radius: 16px; font-weight: 500; }
.option span svg { width: 28px; height: 28px; }
.option input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--soft); }
.option input:focus-visible + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.inline-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; color: var(--ink); font-weight: 500; }

.split { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 420px); gap: 80px; justify-content: center; align-items: start; margin-top: 56px; }
.split .phone-wrap { position: sticky; top: calc(var(--nav) + 24px); }

/* Tabela (TPA) */
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 12px; }
.table th, .table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.table th { font-weight: 500; }
.table td:last-child, .table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.table thead th { font-size: 14px; color: var(--muted); font-weight: 500; }

/* Voucher */
.voucher { margin-top: 20px; border-radius: 20px; padding: 24px; color: #fff; background: var(--grad); position: relative; overflow: hidden; }
.voucher::before, .voucher::after { content: ''; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: #fff; top: 50%; transform: translateY(-50%); }
.voucher::before { left: -14px; } .voucher::after { right: -14px; }
.voucher .code { font-size: 30px; font-weight: 700; letter-spacing: 0.06em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.voucher small { display: block; font-size: 13px; opacity: .92; margin-top: 8px; }

/* Documentos legais */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 0; }
.legal h1 { font-size: 44px; line-height: 50px; letter-spacing: -0.03em; }
.legal .updated { color: var(--muted); margin-top: 12px; }
.legal h2 { font-size: 24px; line-height: 30px; letter-spacing: -0.01em; margin-top: 48px; }
.legal h3 { font-size: 18px; margin-top: 24px; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: #333; }
.legal p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal .toc { background: var(--soft); border-radius: 16px; padding: 20px 24px; margin-top: 32px; }
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal .toc li { font-size: 15px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--rule); padding: 12px 8px 12px 0; vertical-align: top; }
.fill { background: #fff3cd; padding: 0 4px; border-radius: 4px; }

/* Banner de cookies */
.consent { position: fixed; z-index: 250; left: 24px; bottom: 24px; max-width: 440px; background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.18); padding: 24px; display: none; }
.consent.show { display: block; }
.consent h2 { font-size: 18px; line-height: 24px; }
.consent p { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.consent .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.consent .actions .btn { width: 100%; padding: 10px 16px; height: 44px; font-size: 15px; }
.consent .prefs { margin-top: 16px; display: none; gap: 12px; }
.consent.expanded .prefs { display: grid; }
.pref { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; padding: 12px; border-radius: 12px; background: var(--soft); }
.pref input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #1a7f4b; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); text-decoration: none; }
.wa-float svg { width: 28px; height: 28px; }

/* 404 */
.notfound { text-align: center; padding: 120px 0 40px; }
.notfound .mini { margin: 0 auto 24px; width: 140px; height: 140px; }

/* Responsivo */
@media (max-width: 1128px) {
  :root { --gutter: 40px; }
  .nav-links a { padding: 10px 10px; font-size: 14px; }
  .display { font-size: 52px; line-height: 56px; }
  .heading { font-size: 44px; line-height: 50px; }
  .capability-field { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 950px) {
  .nav-links { display: none; position: absolute; top: var(--nav); left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px var(--gutter) 24px; border-bottom: 1px solid #ebebeb; box-shadow: 0 12px 24px rgba(0,0,0,.08); margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; padding: 14px 12px; }
  .nav-toggle { display: inline-flex; }
  .nav .nav-cta { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
  .hero-stage { max-width: 560px; width: 100%; margin: 0 auto; }
  .story-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); }
  .feature-grid { grid-template-columns: minmax(0, 400px); }
  .exhibit { width: 100%; }
  .detail-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .aside-card, .split .phone-wrap { position: static; }
  .split .phone-wrap { display: none; }
  .intents { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 744px) {
  :root { --gutter: 20px; --nav: 64px; }
  .display { font-size: 40px; line-height: 44px; }
  .heading { font-size: 34px; line-height: 40px; }
  .proof { font-size: 28px; line-height: 34px; }
  .hero-support { font-size: 19px; }
  .section-support { font-size: 18px; line-height: 27px; }
  .chapter { padding-top: 88px; }
  .questions { padding-top: 88px; margin-top: 88px; }
  .capability-field { grid-template-columns: 1fr; gap: 8px; }
  .capability { grid-template-columns: 80px 1fr; }
  .capability .mini { width: 80px; height: 80px; }
  .story-grid { grid-template-columns: 1fr; justify-items: center; }
  .cluster img { margin: 0 -18px; }
  .cluster .c1 { width: 72px; height: 72px; } .cluster .c2 { width: 88px; height: 88px; } .cluster .c3 { width: 120px; height: 120px; }
  .exhibit-stage { height: 380px; }
  .qa summary { font-size: 18px; line-height: 26px; }
  .detail-title { font-size: 30px; line-height: 36px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
  .gallery figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery figure:nth-child(n+4) { display: none; }
  .gallery.n1 { grid-template-rows: 260px; }
  .gallery.n2 figure:nth-child(2) { grid-row: auto; }
  .fact-grid { grid-template-columns: 1fr; }
  .filters { padding: 12px 0; }
  .search { max-width: none; }
  .count { margin-left: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .support-panel { flex-direction: column; text-align: center; padding: 28px 24px; }
  .options { grid-template-columns: 1fr; }
  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .legal h1 { font-size: 34px; line-height: 40px; }
  .legal .toc ol { columns: 1; }
  .lightbox { padding: 64px 8px; }
  .wa-float { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .nav, .footer, .consent, .wa-float, .filters { display: none !important; }
  main { padding-top: 0; }
}

.footer-about { margin-top: 12px; max-width: 300px; }
.consent-more { text-align: center; margin-top: 10px; }
.lead-in-sm { margin-top: 24px; }
.lead-in-xs { margin-top: 8px; }
.center { text-align: center; margin-top: 16px; }
.phone-wrap .exhibit-stage { height: 422px; }
.gallery.n4 figure:nth-child(2) { grid-row: 1 / span 2; }
@media (max-width: 744px) { .gallery.n4 figure:nth-child(2) { grid-row: auto; } }
@media (max-width: 950px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 560px; width: 100%; }
  .hero-stage { aspect-ratio: 4 / 3; }
  .vignette { width: min(300px, 64%); }
}
@media (max-width: 744px) {
  .hero-mini { width: 64px; height: 64px; }
  .hero-mini .mini { width: 64px; height: 64px; }
  .vignette-tag { font-size: 13px; bottom: 4%; }
}
/* Ajustes: cookies compactos no celular, tabelas legais, vouchers, corridas */
.v-passos { list-style: none; counter-reset: p; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 20px 0 0; font-size: 16px; color: var(--muted); }
.v-passos li { counter-increment: p; display: flex; align-items: center; gap: 8px; }
.v-passos li::before { content: counter(p); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sea-soft); color: var(--sea); font-weight: 600; font-size: 14px; }
.v-passos strong { color: var(--ink); font-weight: 600; }
.v-copiar { margin-top: 12px; width: 100%; }
.c-quando { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c-quando[hidden] { display: none; }
.c-quando > div { display: grid; gap: 6px; }
.legal table { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 744px) {
  .consent { padding: 16px; border-radius: 16px; }
  .consent h2 { font-size: 16px; line-height: 20px; }
  .consent p { font-size: 13px; margin-top: 4px; }
  .consent .actions { margin-top: 10px; }
  .consent .actions .btn { height: 40px; }
  .consent .consent-more { margin-top: 6px; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: 100%; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .legal th, .legal td { border: 0 !important; padding: 2px 0 !important; text-align: left !important; }
  .legal td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--muted); }
}
