/* =========================================================================
   Corporativo Premium Itapema — v5
   Estilo da seção do píer em todo o site: títulos em Bodoni Moda,
   texto em Manrope e caixas de vidro escuro sobre fotografia.
   ========================================================================= */
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda.woff2") format("woff2-variations"), url("../fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2-variations"), url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --ink: #0a1a28;
  --ink-2: #0f2436;
  --glass-c: #8fa8bc;
  --stone: #efe6d8;
  --text: #e4ebf1;
  --muted: #a9bacb;
  --soft: #d3dde6;
  --brass: #c9a267;
  --brass-2: #e7cd9b;
  --brass-ink: #1b1408;
  --line: rgba(239, 230, 216, .13);
  --line-2: rgba(239, 230, 216, .22);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gut: clamp(16px, 4vw, 40px);
  --wrap: min(1200px, calc(100% - var(--gut) * 2));
  --top: 72px;
  --r: 4px;
  --r-lg: 10px;
  /* caixa de vidro (mesma receita dos cards do píer) */
  --glass: rgba(10, 26, 40, .38);
  --glass-strong: rgba(10, 26, 40, .58);
  --glass-line: rgba(239, 230, 216, .16);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
html.modal-open { overflow: hidden; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--stone); color: var(--ink); padding: 10px 14px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- tipografia ---------- */
.kicker { display: flex; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; color: var(--brass-2); margin-bottom: 16px; }
.kicker b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--brass); line-height: 1; }
h1, h2, .section h2, .cta h2 { font-family: var(--serif); font-weight: 500; color: var(--stone); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(44px, 5vw, 78px); line-height: 1.02; }
h2, .section h2, .cta h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; }
h3 { font-family: var(--serif); font-weight: 600; color: var(--stone); font-size: 22px; line-height: 1.2; }

/* ---------- vidro ---------- */
.glass { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-lg); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }

/* ---------- botões ---------- */
.btn { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--r); font-size: 14.5px; font-weight: 700; letter-spacing: .01em; line-height: 1.2; white-space: nowrap; text-align: center; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--brass); color: var(--brass-ink); }
.btn-gold:hover { background: var(--brass-2); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--stone); background: rgba(10, 26, 40, .3); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.btn-ghost:hover { border-color: rgba(239, 230, 216, .45); background: rgba(239, 230, 216, .06); }
.btn-block { width: 100%; }
.btn .short { display: none; }
.ico { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- topo ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--top); transition: background-color .35s ease, border-color .35s ease; background: rgba(10, 26, 40, .55); border-bottom: 1px solid rgba(239, 230, 216, .08); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); }
.topbar.is-solid { background: rgba(10, 26, 40, .86); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--stone); }
.brand-mark { width: 20px; height: 29px; fill: none; stroke: var(--brass-2); stroke-width: 1.4; flex: none; }
.brand-name { white-space: nowrap; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; line-height: 1.05; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--sans); font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.menu { display: flex; gap: clamp(14px, 2vw, 28px); font-size: 14px; font-weight: 600; }
.menu a { white-space: nowrap; color: #d8e1e9; padding: 6px 0; position: relative; text-shadow: 0 1px 10px rgba(10, 26, 40, .5); }
.menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--brass-2); transition: right .25s ease; }
.menu a:hover { color: var(--stone); }
.menu a:hover::after { right: 0; }
.nav-actions { display: flex; gap: 10px; }
.nav-actions .btn { min-height: 42px; padding: 0 18px; font-size: 13.5px; }

/* =========================================================================
   PASSEIO 3D
   ========================================================================= */
.story { position: relative; background: var(--ink); }
.story-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; z-index: 0; }
@supports (height: 100lvh) { .story-stage { height: 100lvh; } }
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; }
.story.is-ready .story-canvas { opacity: 1; }
.story-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 26, 40, .6) 0%, rgba(10, 26, 40, 0) 20%),
    linear-gradient(90deg, rgba(10, 26, 40, .62) 0%, rgba(10, 26, 40, .2) 40%, rgba(10, 26, 40, 0) 60%),
    linear-gradient(0deg, rgba(10, 26, 40, .55) 0%, rgba(10, 26, 40, 0) 30%); }

.chapters { position: relative; z-index: 2; margin-top: -100vh; pointer-events: none; }
@supports (height: 100lvh) { .chapters { margin-top: -100lvh; } }
.chapter { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--top) + 40px) 0 72px; }
@supports (height: 100svh) { .chapter { min-height: 100svh; } }
.chapter--hero { align-items: flex-end; padding-bottom: clamp(48px, 10vh, 110px); }
.chapter--quote { align-items: center; }
.panel, .hero-copy, .quote { pointer-events: auto; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

.hero-copy { max-width: 700px; }
.hero-copy h1 { text-shadow: 0 2px 30px rgba(10, 26, 40, .5); }
.hero-lead { font-size: 18px; line-height: 1.6; color: #e1e9f0; max-width: 46ch; margin-top: 20px; text-shadow: 0 1px 14px rgba(10, 26, 40, .6); }
.scroll-hint { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 13px; font-weight: 600; color: rgba(239, 230, 216, .8); }
.scroll-hint i { width: 1px; height: 30px; background: linear-gradient(var(--brass-2), transparent); transform-origin: top; animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.panel { max-width: 540px; padding: clamp(24px, 3vw, 34px); background: var(--glass-strong); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); box-shadow: 0 24px 60px rgba(4, 12, 20, .28); }
.panel h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.06; }
.panel > p:not(.kicker):not(.route) { margin-top: 16px; color: #dbe3ea; font-size: 16px; line-height: 1.6; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid var(--glass-line); }
.stats > div { padding: 14px 14px 12px 0; border-bottom: 1px solid var(--glass-line); min-width: 0; }
.stats > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--glass-line); }
.stats > div:nth-last-child(-n+2) { border-bottom: 0; }
.stats dt { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); font-weight: 500; line-height: 1; color: var(--stone); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.stats dt small { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--brass-2); }
.stats .dt-word { font-size: clamp(24px, 2.4vw, 30px); }
.stats dd { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: var(--r); border: 1px solid var(--glass-line); background: rgba(10, 26, 40, .35); color: #e6edf3; }
.link-btn { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; color: var(--brass-2); padding: 11px 16px 11px 12px; border-radius: var(--r); border: 1px solid rgba(231, 205, 155, .4); background: rgba(10, 26, 40, .35); transition: background-color .2s ease, border-color .2s ease; }
.link-btn:hover { background: rgba(231, 205, 155, .12); border-color: var(--brass-2); }
.link-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.route { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 13.5px; font-weight: 600; color: var(--soft); }
.route i { flex: 1; max-width: 110px; height: 1px; background: repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 11px); }
.route b { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--brass-2); }
.panel .cta-row { margin-top: 24px; }
.quote { font-family: var(--serif); font-weight: 500; color: var(--stone); font-size: clamp(42px, 6vw, 92px); line-height: 1.02; letter-spacing: -.015em; max-width: 13ch; text-wrap: balance; text-shadow: 0 2px 40px rgba(10, 26, 40, .55); }

/* elevador */
.lift { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); display: flex; gap: 14px; align-items: stretch; z-index: 5; padding: 16px 16px 16px 18px; border-radius: var(--r-lg); background: rgba(10, 26, 40, .42); border: 1px solid rgba(239, 230, 216, .1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lift ol { list-style: none; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.lift button { display: flex; justify-content: flex-end; font-size: 13px; font-weight: 600; color: rgba(239, 230, 216, .72); padding: 2px 0; transition: color .2s ease; }
.lift button:hover { color: #fff; }
.lift button.is-active { color: var(--brass-2); }
.lift-shaft { order: 2; position: relative; width: 1px; background: rgba(239, 230, 216, .28); margin: 6px 0; }
.lift-shaft i { --p: 0; position: absolute; left: -3px; width: 7px; height: 22px; border-radius: 1px; background: var(--brass-2); top: calc((1 - var(--p)) * (100% - 22px)); box-shadow: 0 0 14px rgba(231, 205, 155, .55); }

.story-loader { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--ink); color: var(--muted); font-size: 13px; font-weight: 600; transition: opacity .7s ease, visibility .7s; z-index: 4; }
.story-loader b { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); border-top-color: var(--brass-2); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.story-loader.is-done { opacity: 0; visibility: hidden; }
.story-note { position: absolute; right: var(--gut); bottom: 14px; font-size: 11.5px; color: rgba(228, 235, 241, .6); z-index: 3; }
.story-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(239, 230, 216, .1); z-index: 3; }
.story-bar i { display: block; height: 100%; background: var(--brass); transform-origin: 0 50%; transform: scaleX(0); }

/* =========================================================================
   SEÇÕES
   ========================================================================= */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tight { padding-top: 0; }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head > p:last-child { margin-top: 18px; color: var(--soft); font-size: 17px; max-width: 60ch; }

/* píer */
.section--pier { padding-top: clamp(56px, 8vw, 104px); }
.pier { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); isolation: isolate; }
.pier-bg {
  position: absolute; inset: -6% 0; z-index: -2;
  background: #07121d url("../img/itapema-pier.jpg") center 55% / cover no-repeat;
  background-image: image-set(url("../img/itapema-pier.webp") type("image/webp"), url("../img/itapema-pier.jpg") type("image/jpeg"));
  transform: scale(1.06); will-change: transform;
}
.pier::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 18, 29, .86) 0%, rgba(7, 18, 29, .55) 42%, rgba(7, 18, 29, .25) 100%), linear-gradient(0deg, rgba(7, 18, 29, .55), rgba(7, 18, 29, 0) 50%); }
.pier-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: end; padding: clamp(32px, 5vw, 72px); min-height: 760px; }
.pier-copy { align-self: start; max-width: 460px; }
.pier-copy > p:last-child { margin-top: 18px; color: #d6dfe8; font-size: 17px; }
.pier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pier-card { padding: 22px; border-radius: var(--r-lg); background: rgba(10, 26, 40, .38); border: 1px solid rgba(239, 230, 216, .16); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.pier-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--stone); margin-bottom: 6px; }
.pier-card p { font-size: 14.5px; color: #d3dde6; line-height: 1.5; }
.pier-closer { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-radius: var(--r-lg); background: rgba(10, 26, 40, .55); border: 1px solid rgba(231, 205, 155, .28); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.pier-closer p { font-size: 14.5px; color: #dbe3ea; max-width: 44ch; }
.pier-closer strong { color: var(--brass-2); }


/* final com foto de fundo (terraço) */
.finale { position: relative; isolation: isolate; overflow: clip; }
.finale-bg { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; z-index: -1; overflow: hidden; }
.finale-bg::before { content: ""; position: absolute; inset: 0; background: #07121d url("../img/terraco.jpg") 30% 50% / cover no-repeat; background-image: image-set(url("../img/terraco.webp") type("image/webp"), url("../img/terraco.jpg") type("image/jpeg")); transform: scale(1.04); }
.finale-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 40, .97) 0%, rgba(10, 26, 40, .74) 30%, rgba(10, 26, 40, .82) 100%); }

/* tese + gráfico */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 14px; align-items: stretch; }
.chart { margin: 0; padding: clamp(24px, 3vw, 34px); display: grid; gap: 22px; align-content: start; background: var(--glass-strong); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chart-head h3 { font-size: 26px; font-weight: 500; }
.chart-head span { font-size: 13px; font-weight: 600; color: var(--brass-2); }
.bars { list-style: none; display: grid; gap: 18px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: baseline; }
.bar-name { font-size: 15px; color: var(--soft); }
.bar-val { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--stone); font-variant-numeric: lining-nums; }
.bar-track { grid-column: 1 / -1; height: 8px; border-radius: 2px; background: rgba(239, 230, 216, .08); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); background: rgba(143, 168, 188, .6); transform-origin: left; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.bar--hi .bar-fill { background: linear-gradient(90deg, #9c7a45, var(--brass-2)); }
.bar--hi .bar-name { color: var(--brass-2); font-weight: 700; }
.bar--hi .bar-val { color: var(--brass-2); }
.bars.pre .bar-fill { transform: scaleX(0); }
.chart figcaption { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--glass-line); padding-top: 14px; line-height: 1.5; }
.thesis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--soft); line-height: 1.5; }

/* cases */
.proof { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px); background: var(--glass-strong); }
.proof-num strong { display: block; font-family: var(--serif); font-size: clamp(64px, 8vw, 116px); font-weight: 600; line-height: .95; color: var(--brass-2); font-variant-numeric: lining-nums; }
.proof-num span { display: block; margin-top: 14px; color: var(--soft); font-size: 15px; max-width: 34ch; }
.proof-copy > p:last-child { margin-top: 16px; color: var(--soft); font-size: 16.5px; }

/* contato */
.lead { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lead-sub { margin-top: 16px; color: var(--soft); font-size: 17px; max-width: 48ch; }
.lead-form { padding: clamp(24px, 3.4vw, 40px); background: var(--glass-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lead-form h3 { font-size: 30px; font-weight: 500; }
.lead-form > p { color: var(--muted); margin: 4px 0 24px; font-size: 15px; }
.lead-form form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--soft); }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r); background: rgba(10, 26, 40, .6); border: 1px solid var(--line-2); color: var(--text); font-size: 16px; transition: border-color .2s ease, background-color .2s ease; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7cd9b' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field select option { background: var(--ink-2); color: var(--text); }
.field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(169, 186, 203, .65); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass-2); background: rgba(10, 26, 40, .85); }
[aria-invalid="true"] { border-color: #e59a8a !important; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #ccd7e1; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brass); }
.check a { color: var(--brass-2); text-decoration: underline; text-underline-offset: 3px; }
.form-error { color: #f1b3a5; font-size: 14px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.faq { margin-top: 30px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 0; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--stone); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--brass-2), var(--brass-2)) center / 14px 1.5px no-repeat, linear-gradient(var(--brass-2), var(--brass-2)) center / 1.5px 14px no-repeat; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 32px 20px 0; color: var(--soft); font-size: 15.5px; }

/* cta */
.section--cta { padding-top: 0; }
.cta { padding: clamp(32px, 5vw, 64px); background: var(--glass-strong); display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 20px 48px; align-items: end; }
.cta h2 { max-width: 20ch; }
.cta p { grid-column: 1; margin-top: -4px; color: var(--soft); font-size: 17px; max-width: 54ch; }
.cta .cta-row { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; }

/* rodapé */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 calc(40px + env(safe-area-inset-bottom)); background: var(--ink); }
.footer-in { display: grid; grid-template-columns: 1fr auto; gap: 10px 40px; align-items: end; }
.footer-mark { grid-column: 1 / -1; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 7vw, 92px); line-height: 1; color: var(--stone); letter-spacing: -.015em; }
.footer-place { grid-column: 1 / -1; color: var(--brass-2); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.footer-legal { color: var(--muted); font-size: 13.5px; max-width: 70ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; }
.footer-links a, .footer-links button { color: #d6dfe8; font-size: 13.5px; text-decoration: underline; text-decoration-color: rgba(239, 230, 216, .3); text-underline-offset: 4px; }
.footer-links a:hover, .footer-links button:hover { color: var(--brass-2); }

/* WhatsApp flutuante */
.float-wa { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 55; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1f9d58; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s ease, opacity .3s ease; }
.float-wa:hover { transform: translateY(-2px); }
.float-wa svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
html.in-story .float-wa, html.cookie-open .float-wa { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 120; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--stone); color: var(--ink); padding: 12px 18px; border-radius: var(--r); font-size: 14px; font-weight: 700; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); transition: opacity .3s ease, transform .3s ease; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================================
   VISTA REAL (modal)
   ========================================================================= */
.fpv { position: fixed; inset: 0; z-index: 100; background: #050d16; opacity: 0; transition: opacity .3s ease; display: grid; }
.fpv.open { opacity: 1; }
.fpv-stage { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.fpv-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.fpv-layer.is-on { opacity: 1; }
.fpv-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(28px) brightness(.45); }
.fpv-layer img { position: absolute; left: 0; right: 0; top: 64px; bottom: calc(96px + env(safe-area-inset-bottom)); width: 100%; height: calc(100% - 160px - env(safe-area-inset-bottom)); object-fit: contain; }
.fpv-top { position: absolute; left: 0; right: 0; top: 0; height: 64px; display: flex; justify-content: space-between; align-items: center; padding: env(safe-area-inset-top) var(--gut) 0; }
.fpv-tag { font-size: 14px; font-weight: 600; color: var(--stone); }
.fpv-close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(5, 13, 22, .5); color: var(--stone); }
.fpv-close svg, .fpv-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fpv-bar { position: absolute; left: 0; right: 0; bottom: calc(30px + env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 var(--gut); }
.fpv-nav { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 999px; background: rgba(5, 13, 22, .6); border: 1px solid var(--line); }
.fpv-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--stone); }
.fpv-arrow:hover { background: rgba(239, 230, 216, .1); }
.fpv-dots { display: flex; gap: 6px; }
.fpv-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: rgba(239, 230, 216, .3); position: relative; }
.fpv-dots button::before { content: ""; position: absolute; inset: -8px; }
.fpv-dots button[aria-selected="true"] { background: var(--brass-2); }
.fpv-cta { min-height: 48px; }
.fpv-note { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(8px + env(safe-area-inset-bottom)); text-align: center; font-size: 11px; color: rgba(228, 235, 241, .5); }

/* =========================================================================
   COOKIES — formato simples
   ========================================================================= */
.cookie {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  width: min(760px, calc(100% - 32px));
  display: flex; align-items: center; gap: 20px;
  padding: 16px 16px 16px 22px; border-radius: var(--r-lg);
  background: rgba(10, 26, 40, .88); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .35s ease, transform .35s ease;
}
.cookie.show { opacity: 1; transform: translate(-50%, 0); }
.cookie p { flex: 1; font-size: 14px; line-height: 1.5; color: var(--soft); }
.cookie a { color: var(--brass-2); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.cbtn { min-height: 44px; padding: 0 20px; border-radius: var(--r); font-size: 14px; font-weight: 700; transition: background-color .2s ease, color .2s ease; }
.cbtn--gold { background: var(--brass); color: var(--brass-ink); }
.cbtn--gold:hover { background: var(--brass-2); }
.cbtn--link { padding: 0 12px; color: var(--muted); font-weight: 600; }
.cbtn--link:hover { color: var(--stone); }

/* =========================================================================
   RESPONSIVO
   ========================================================================= */
@media (max-width: 1240px) { .menu { display: none; } }
@media (max-width: 1080px) {
  .pier-inner { grid-template-columns: 1fr; min-height: 0; }
  .pier-copy { max-width: 620px; }
  .split, .proof, .lead { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta .cta-row { grid-column: 1; grid-row: auto; }
}
@media (max-width: 900px) {
  :root { --top: 64px; }
  .lift { display: none; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
/* celular / retrato: foto em tela cheia, câmera percorre a foto inteira; caixas compactas presas embaixo */
@media (max-width: 820px), (orientation: portrait) and (max-width: 1024px) {
  .story-shade { background:
    linear-gradient(180deg, rgba(10, 26, 40, .55) 0%, rgba(10, 26, 40, 0) 14%),
    linear-gradient(0deg, rgba(10, 26, 40, .82) 0%, rgba(10, 26, 40, .35) 30%, rgba(10, 26, 40, 0) 48%); }
  .chapter { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-height: 170vh; min-height: 170svh; padding: 45vh 0 14px; }
  .chapter > .wrap { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-end; }
  .chapter--hero { min-height: 135vh; min-height: 135svh; padding-top: 0; }
  .panel, .hero-copy, .quote { position: sticky; bottom: max(14px, env(safe-area-inset-bottom)); transform: none; }
  .panel { max-width: 100%; padding: 18px 18px 16px; background: rgba(10, 26, 40, .62); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); }
  .panel .kicker { margin-bottom: 8px; font-size: 12.5px; }
  .panel .kicker b { font-size: 18px; }
  .panel h2 { font-size: clamp(25px, 7vw, 32px); line-height: 1.08; }
  .panel > p:not(.kicker):not(.route) { font-size: 14px; line-height: 1.5; margin-top: 8px; }
  .stats { margin-top: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats > div, .stats > div:nth-child(even) { padding: 9px 6px 2px 10px; border-left: 1px solid var(--glass-line); border-bottom: 0; }
  .stats > div:first-child { border-left: 0; padding-left: 0; }
  .stats dt { font-size: 24px; }
  .stats .dt-word { font-size: 16px; padding-top: 6px; }
  .stats dt small { font-size: 11px; }
  .stats dd { font-size: 11px; margin-top: 4px; }
  .stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { margin-top: 10px; gap: 6px; }
  .chips li { font-size: 12px; padding: 5px 9px; }
  .link-btn { margin-top: 12px; font-size: 13px; padding: 9px 12px 9px 10px; }
  .route { margin-top: 12px; font-size: 12.5px; }
  .panel .cta-row { margin-top: 12px; }
  .panel .cta-row .btn { min-height: 44px; }
  .hero-copy h1 { font-size: clamp(34px, 9.6vw, 48px); }
  .hero-lead { font-size: 15px; margin-top: 10px; }
  .hero-copy .cta-row { margin-top: 18px; }
  .scroll-hint { margin-top: 14px; }
  .chapter--quote .quote { font-size: clamp(40px, 11.5vw, 60px); bottom: 22vh; }
  .story-note { right: auto; left: var(--gut); top: calc(var(--top) + 8px); bottom: auto; font-size: 10px; color: rgba(255, 255, 255, .6); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
}
@media (max-width: 640px) {
  .nav-actions .btn-ghost { display: none; }
  .btn .long { display: none; }
  .btn .short { display: inline; }
  .nav-actions .btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 17px; height: 25px; }
  .brand-name small { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .pier-grid { grid-template-columns: 1fr; }
  .pier-closer { flex-direction: column; align-items: stretch; }
  .pier-inner { padding: 22px; }
  .thesis-grid { grid-template-columns: 1fr; }
  .lead-form form { grid-template-columns: 1fr; }
  .faq summary { font-size: 18px; }
  .fpv-layer img { bottom: calc(150px + env(safe-area-inset-bottom)); height: calc(100% - 214px - env(safe-area-inset-bottom)); }
  .fpv-cta { width: 100%; }
  .fpv-bar { bottom: calc(58px + env(safe-area-inset-bottom)); }
  .cookie { left: 10px; right: 10px; width: auto; transform: translateY(16px); flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; bottom: 10px; }
  .cookie.show { transform: none; }
  .cookie p { font-size: 13.5px; }
  .cookie-actions { justify-content: flex-end; }
  .cookie .cbtn--gold { flex: 1; }
  .float-wa { width: 52px; height: 52px; }
}
@media (max-height: 700px) and (max-width: 820px) {
  .chips li:nth-child(n+5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel, .hero-copy, .quote { transform: none !important; }
  .scroll-hint i, .story-loader b { animation: none; }
  * { transition-duration: .01ms !important; }
}
/* celular deitado: caixas compactas */
@media (orientation: landscape) and (max-height: 500px) {
  .chapter { padding: calc(var(--top) + 10px) 0 16px; }
  .panel { max-width: min(520px, 62vw); padding: 16px 18px; }
  .panel h2 { font-size: 26px; }
  .panel > p:not(.kicker):not(.route) { font-size: 13.5px; margin-top: 8px; }
  .kicker { margin-bottom: 8px; font-size: 12.5px; }
  .stats { margin-top: 12px; }
  .stats dt { font-size: 24px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats > div, .stats > div:nth-child(even) { padding: 8px 10px; border-left: 1px solid var(--glass-line); border-bottom: 0; }
  .stats > div:first-child { border-left: 0; padding-left: 0; }
  .stats dd { font-size: 11.5px; }
  .chips { margin-top: 10px; }
  .chips li { font-size: 12px; padding: 5px 9px; }
  .link-btn, .panel .cta-row { margin-top: 12px; }
  h1 { font-size: 34px; }
  .hero-lead { font-size: 14.5px; margin-top: 10px; }
  .cta-row { margin-top: 14px; }
  .scroll-hint { display: none; }
}
