:root {
  --ink: #161616;
  --paper: #f2eee6;
  --surface: #fffdf8;
  --muted: #6d6963;
  --line: #d4cdc2;
  --accent: #dc3a2d;
  --accent-dark: #b52a21;
  --accent-soft: #ffe5df;
  --container: 1180px;
  --header: 58px;
  --footer: 28px;
  --radius-sm: 6px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { height: 100%; }
body { height: 100%; margin: 0; overflow: hidden; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.42; -webkit-font-smoothing: antialiased; }
body.capture-sites { --accent: #e34a2e; --accent-dark: #b93620; --accent-soft: #ffe7df; }
body.capture-traffic { --accent: #d92d28; --accent-dark: #aa201c; --accent-soft: #ffe3e0; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 10px; top: 8px; z-index: 100; padding: 8px 12px; background: #fff; font-weight: 800; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.capture-page { height: 100vh; height: 100dvh; display: grid; grid-template-rows: var(--header) minmax(0, 1fr) var(--footer); overflow: hidden; }
.capture-header, .capture-footer { background: var(--ink); color: #fff; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #32312f; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--accent); font-size: 18px; }
.brand small { display: block; color: #96938e; font-size: 7px; letter-spacing: .16em; text-transform: uppercase; }
.header-label { color: #aaa7a1; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-align: right; text-transform: uppercase; }

.capture-main { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.capture-intro { position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4.4vh, 48px) max(24px, calc((100vw - var(--container)) / 2 + 16px)); padding-right: clamp(34px, 5vw, 74px); background: var(--ink); color: #fff; }
.capture-intro::after { content: ""; position: absolute; right: -110px; bottom: -150px; width: 330px; height: 330px; border: 1px solid #393835; border-radius: 50%; }
.intro-copy, .profile { position: relative; z-index: 2; }
.capture-editorial { position: absolute; inset: 0 0 0 auto; z-index: 0; width: 63%; height: 100%; object-fit: cover; object-position: center; opacity: .14; filter: saturate(.72) contrast(1.08); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 45%, #000 100%); pointer-events: none; }
.capture-sites .capture-editorial { object-position: 60% center; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #ff8175; font-size: 9px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 21px; height: 2px; background: currentColor; }
.capture-intro h1 { max-width: 650px; margin: 0; font-size: clamp(36px, min(4.7vw, 7vh), 64px); line-height: .96; letter-spacing: -.058em; }
.capture-intro h1 em { display: block; color: var(--accent); font-style: normal; }
.intro-text { max-width: 580px; margin: 15px 0 0; color: #b8b5af; font-size: clamp(12px, min(1.25vw, 2vh), 16px); }
.intro-signals { position: relative; z-index: 2; display: grid; gap: 5px; max-width: 610px; margin: clamp(12px, 2vh, 18px) 0 0; padding: 0; list-style: none; color: #d1cec8; font-size: clamp(9px, min(1vw, 1.6vh), 12px); }
.intro-signals li { display: flex; align-items: flex-start; gap: 8px; }
.intro-signals li::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; margin-top: .45em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(220,58,45,.14); }
.profile { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 14px; margin-top: clamp(16px, 3vh, 26px); padding-top: clamp(14px, 2.5vh, 22px); border-top: 1px solid #383735; }
.profile-photo { width: 72px; height: 72px; padding: 3px; border-radius: var(--radius); background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.24); }
.profile-photo img { width: 100%; height: 100%; border-radius: var(--radius-sm); object-fit: cover; object-position: center 22%; }
.profile strong { display: block; font-size: 13px; }
.profile span { display: block; margin-top: 2px; color: #8f8c86; font-size: 9px; }
.direct-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 7px; color: #fff; font-size: 10px; font-weight: 850; text-decoration: none; }

.whatsapp-logo { display: none; }
.direct-link::before,
.submit-button::before,
.floating-whatsapp::before {
  content: "";
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  background: url("/whatsapp-ios.png") center / 218% auto no-repeat;
}
.direct-link::before { width: 22px; height: 22px; }
.floating-whatsapp::before { width: 36px; height: 36px; }

.form-panel { min-width: 0; min-height: 0; display: flex; align-items: center; padding: clamp(14px, 3vh, 34px) max(22px, calc((100vw - var(--container)) / 2 + 16px)); padding-left: clamp(28px, 4.5vw, 62px); background: var(--paper); }
.lead-form { width: 100%; max-width: 610px; max-height: 100%; margin-inline: auto; padding: clamp(18px, 2.6vh, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 54px rgba(30,26,20,.11); }
.form-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: clamp(12px, 2vh, 18px); padding-bottom: clamp(10px, 1.8vh, 15px); border-bottom: 1px solid var(--line); }
.form-header h2 { margin: 0; font-size: clamp(22px, min(2.5vw, 4vh), 32px); line-height: 1; letter-spacing: -.043em; }
.form-header p { max-width: 175px; margin: 1px 0 0; color: var(--muted); font-size: 9px; text-align: right; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(7px, 1.2vh, 11px); }
.field { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.field-full { grid-column: 1 / -1; }
.field label { overflow: hidden; font-size: 9px; font-weight: 900; letter-spacing: .05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; min-height: clamp(44px, 5.5vh, 46px); padding: 8px 10px; border: 1px solid #c8c0b6; border-radius: var(--radius-sm); outline: 0; background: #fff; color: var(--ink); font-size: 12px; }
.field textarea { min-height: clamp(48px, 7vh, 62px); resize: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: #a91f19; }
.field-error { color: #9f1d17; font-size: 9px; font-weight: 750; }
.field-error:empty { display: none; }
.consent-field { display: grid; grid-template-columns: 17px 1fr; align-items: start; gap: 7px; }
.consent-field input { width: 16px; min-height: 16px; margin: 1px 0 0; accent-color: var(--accent); }
.consent-field label { overflow: visible; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 0; line-height: 1.3; text-transform: none; white-space: normal; }
.consent-field .field-error { grid-column: 2; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.submit-button { width: 100%; min-height: clamp(44px, 6vh, 51px); display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: clamp(8px, 1.5vh, 14px); padding: 7px 15px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-size: 12px; font-weight: 900; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.submit-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.submit-button:disabled { opacity: .65; cursor: wait; transform: none; }
.form-status { display: none; margin-top: 8px; padding: 8px 10px; font-size: 10px; font-weight: 750; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e2f5e6; color: #145d29; }
.form-status.is-error { background: #fbe5e3; color: #892019; }
.form-privacy { margin: 6px 0 0; color: var(--muted); font-size: 8px; text-align: center; }

.footer-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #77746f; font-size: 8px; }
.footer-inner a { color: #aaa7a1; text-decoration: none; }
.footer-actions { display: flex; align-items: center; gap: 4px; }
.cookie-settings { padding: 0; border: 0; background: transparent; color: #aaa7a1; font: inherit; cursor: pointer; }
.cookie-settings:hover { color: #fff; }
.privacy-notice { position: relative; }
.privacy-notice summary { cursor: pointer; }
.privacy-notice p { position: absolute; right: 0; bottom: 17px; z-index: 20; width: min(430px, calc(100vw - 24px)); padding: 12px; background: #2b2a28; color: #b5b2ac; box-shadow: 0 12px 30px rgba(0,0,0,.28); font-size: 9px; }
.floating-whatsapp { position: fixed; right: 10px; bottom: calc(var(--footer) + 9px); z-index: 50; display: grid; place-items: center; width: 44px; height: 44px; padding: 3px; border-radius: 11px; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .2s ease; }
.floating-whatsapp:hover { transform: translateY(-2px); }
.cookie-banner { position: fixed; right: auto; bottom: max(calc(var(--footer) + 10px), env(safe-area-inset-bottom)); left: max(12px, env(safe-area-inset-left)); z-index: 100; width: min(calc(50% - 24px), 620px); margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid #363533; border-radius: var(--radius); background: #171715; color: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; font-size: 13px; }
.cookie-banner p { max-width: 390px; margin: 3px 0 0; color: #b8b5af; font-size: 9px; line-height: 1.4; }
.cookie-banner p a { color: #fff; font-weight: 850; }
.cookie-actions { display: grid; align-items: center; justify-content: stretch; gap: 6px; }
.cookie-button { min-height: 36px; padding: 7px 10px; border: 1px solid #55524e; border-radius: var(--radius-sm); font-size: 8px; font-weight: 900; cursor: pointer; }
.cookie-button-primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.cookie-button-secondary { background: transparent; color: #fff; }
.noscript { position: fixed; inset: auto 0 0; z-index: 100; padding: 9px; background: #fff0b7; color: #5c4800; font-size: 11px; text-align: center; }
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (orientation: landscape) and (min-width: 901px) and (max-height: 560px) {
  :root { --header: 44px; --footer: 18px; }
  body { height: auto; min-height: 100%; overflow-y: auto; }
  .cookie-banner {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    border-inline: 0;
    border-radius: 0;
  }
  .capture-main { grid-template-columns: minmax(260px, .82fr) minmax(420px, 1.18fr); grid-template-rows: 1fr; }
  .capture-intro { display: flex; padding: 14px 24px; }
  .capture-intro h1 { font-size: clamp(29px, 4.5vw, 42px); }
  .intro-text { font-size: 9px; }
  .intro-signals { display: none; }
  .profile { display: grid; grid-template-columns: 48px 1fr; margin-top: 12px; padding-top: 10px; border-top: 1px solid #383735; }
  .profile-photo { width: 48px; height: 48px; }
  .profile > div:last-child { display: block; }
  .form-panel { padding: 5px 9px; }
  .lead-form { padding: 7px 12px; }
  .form-header { margin-bottom: 4px; padding-bottom: 4px; }
  .form-header h2 { font-size: 19px; }
  .field input, .field select { min-height: 30px; }
  .field textarea { min-height: 34px; }
  .consent-field label { font-size: 7px; }
  .submit-button { min-height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Celulares e tablets: fluxo natural, campos legíveis e nenhum conteúdo cortado. */
@media (max-width: 900px) {
  html { height: auto; min-height: 100%; }
  body {
    width: 100%;
    height: auto;
    min-height: 100%;
    overflow-x: visible;
    overflow-y: auto;
  }
  .container { width: min(calc(100% - 20px), var(--container)); }
  .capture-page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: block;
    overflow: visible;
  }
  .capture-header { height: 58px; }
  .header-inner { gap: 10px; }
  .brand { font-size: 10px; }
  .brand-mark { width: 28px; height: 28px; font-size: 16px; }
  .brand small { font-size: 6px; }
  .header-label { max-width: 122px; font-size: 7.5px; line-height: 1.2; }
  .capture-main { display: block; }
  .capture-intro {
    min-height: 210px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 16px;
    padding: 24px 16px;
    overflow: hidden;
  }
  .capture-intro::after { width: 190px; height: 190px; right: -85px; bottom: -110px; }
  .capture-editorial { width: 74%; opacity: .09; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 62%); mask-image: linear-gradient(90deg, transparent 0, #000 62%); }
  .eyebrow { margin-bottom: 6px; font-size: 7px; }
  .capture-intro h1 { font-size: clamp(29px, 8.4vw, 38px); line-height: .98; }
  .capture-intro h1 em { display: inline; }
  .intro-text { margin-top: 10px; font-size: 11px; line-height: 1.42; }
  .intro-signals { grid-column: 1 / -1; gap: 4px; margin-top: 10px; font-size: 9px; }
  .profile { display: block; align-self: center; margin: 0; padding: 0; border: 0; }
  .profile-photo { width: 72px; height: 72px; }
  .profile > div:last-child { display: none; }
  .form-panel { display: block; padding: 12px 10px 22px; }
  .lead-form {
    display: block;
    max-width: 560px;
    max-height: none;
    padding: 18px 14px;
    box-shadow: 0 14px 38px rgba(30,26,20,.1);
  }
  .form-header { margin-bottom: 15px; padding-bottom: 12px; }
  .form-header h2 { font-size: clamp(23px, 6.8vw, 28px); }
  .form-grid { grid-template-columns: 1fr; gap: 11px; }
  .capture-sites .field-name,
  .capture-sites .field-site-current,
  .field-full { grid-column: auto; }
  .field { gap: 5px; }
  .field label { overflow: visible; font-size: 9px; text-overflow: clip; white-space: normal; }
  .field input,
  .field select,
  .field textarea {
    min-height: 46px;
    padding: 10px 11px;
    font-size: 16px;
  }
  .field textarea { min-height: 88px; resize: vertical; }
  .consent-field { grid-template-columns: 20px 1fr; gap: 8px; }
  .consent-field input { width: 18px; min-height: 18px; margin-top: 2px; }
  .consent-field label { font-size: 10px; line-height: 1.4; }
  .submit-button { min-height: 52px; margin-top: 14px; padding: 10px 12px; font-size: 13px; }
  .form-privacy { display: block; margin-top: 8px; font-size: 9px; line-height: 1.35; }
  .capture-footer { min-height: 52px; padding-block: 10px; }
  .footer-inner { min-height: 32px; height: auto; flex-wrap: wrap; gap: 5px 12px; font-size: 8px; }
  .footer-actions { flex-wrap: wrap; }
  .footer-actions > a,
  .footer-actions > span { display: inline; }
  .privacy-notice p {
    position: fixed;
    right: 10px;
    bottom: 62px;
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 82px);
    margin: 0;
    overflow-y: auto;
  }
  .cookie-settings { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 2px; }
  .floating-whatsapp { display: none; }
  .cookie-banner {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    grid-template-columns: 1fr;
    border-inline: 0;
    border-radius: 0;
  }
  .cookie-banner p { font-size: 9px; }
  .cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-button { min-height: 44px; padding: 8px; }
}

@media (min-width: 481px) and (max-width: 900px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-full,
  .capture-sites .field-name,
  .capture-sites .field-site-current { grid-column: 1 / -1; }
  .field input,
  .field select { font-size: 15px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 20px); max-width: calc(100vw - 20px); }
  .capture-header { height: 56px; }
  .brand { gap: 7px; }
  .brand-mark { width: 27px; height: 27px; }
  .header-label { max-width: 105px; font-size: 6.8px; }
  .capture-intro { grid-template-columns: minmax(0, 1fr) 62px; min-height: 200px; padding: 20px 14px; }
  .capture-intro h1 { font-size: 28px; }
  .profile-photo { width: 62px; height: 62px; }
  .lead-form { padding-inline: 12px; }
  .submit-button { font-size: 12px; }
  .cookie-actions { grid-template-columns: 1fr; }
}
