/* Wowse · LPs de captação (A/B)
   Reconstruído a partir do export do design system WowseDesignSystem (15/10).
   Paleta oficial: #F7A156 laranja · #B94F3E terracota · #25767C petróleo · #0C2C39 azul-noite.
   Fonte: Outfit (variável, self-hosted). */

/* ---------- Fontes ---------- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin.woff2') format('woff2');
  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: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --navy-950: #061A22;
  --navy-900: #0C2C39;
  --navy-800: #123A4A;
  --navy-700: #1A4A5D;
  --teal-600: #25767C;
  --teal-500: #2F8C93;
  --teal-300: #8CC3C6;
  --teal-100: #D9ECED;
  --orange-600: #E58A3C;
  --orange-500: #F7A156;
  --orange-400: #F9B577;
  --terra-700: #943E31;
  --terra-600: #B94F3E;
  --white: #FFFFFF;
  --sand-50: #F6F2EC;
  --slate-300: #A9BCC4;
  --slate-500: #6E8792;
  --slate-600: #617781;  /* slate-500 escurecido: texto sobre branco com contraste AA (4,7:1) */

  --text-body: #DCE6EA;
  --line-on-light: rgba(12, 44, 57, 0.14);
  --focus-ring: rgba(247, 161, 86, 0.6);
  --shadow-cta: 0 14px 30px -12px rgba(0, 0, 0, 0.55);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--navy-900); }
body { margin: 0; background: var(--navy-900); color: var(--text-body); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--white); font-weight: 800; line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--teal-300); text-decoration: none; }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }
picture { display: contents; }
::selection { background: var(--orange-500); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.page { min-height: 100vh; background: var(--navy-900); overflow-x: clip; }

/* ---------- Botões (Button do design system) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-sizing: border-box; font-family: var(--font); font-weight: 800; letter-spacing: 0.01em; line-height: 1.1;
  text-align: center; text-decoration: none; border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  transition: transform 140ms var(--ease-out), background 220ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-md { padding: 16px 28px; font-size: 17px; }
.btn-lg { padding: 20px 36px; font-size: 22px; }
.btn-block { width: 100%; }
.btn-primary, .btn-primary:hover { color: var(--navy-900); }
.btn-primary { background: var(--white); box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--sand-50); }
.btn-teal, .btn-teal:hover { color: var(--white); }
.btn-teal { background: var(--teal-600); }
.btn-teal:hover { background: var(--teal-500); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Formulário (Select / Input / PhoneField / Checkbox) ---------- */
.lead-form { background: #fff; border: 1px solid rgba(12,44,57,.1); border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); padding: clamp(20px,2.4vw,32px); display: flex; flex-direction: column; gap: 18px; color: var(--navy-900); }
.lead-form .form-title { font-weight: 600; font-size: 22px; color: var(--navy-900); letter-spacing: -.01em; }
.form-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px 18px; align-items: start; }
.form-row--end { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); align-items: center; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field .q { font-size: 15px; font-weight: 600; color: var(--navy-900); line-height: 1.3; }
@media (min-width: 921px) {
  /* alinha os 3 selects mesmo quando a 3.ª pergunta ocupa 2 linhas */
  .field .q { min-height: 2.6em; display: flex; align-items: flex-end; }
}

.ctl-select { position: relative; }
.ctl-select select,
.ctl-input {
  width: 100%; box-sizing: border-box; font-family: var(--font); font-size: 17px; font-weight: 500;
  border-radius: 8px; outline: none; background: #fff; color: var(--navy-900);
  border: 2px solid var(--line-on-light); transition: border-color 220ms var(--ease-out);
  color-scheme: light;
}
.ctl-select select { appearance: none; -webkit-appearance: none; padding: 16px 44px 16px 18px; cursor: pointer; }
.ctl-select select:invalid { color: var(--slate-600); }
.ctl-select select option { color: var(--navy-900); }
.ctl-select .caret { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 11px; color: var(--orange-500); line-height: 1; }
.ctl-input { padding: 16px 18px; }
.ctl-input::placeholder { color: var(--slate-600); opacity: 1; }
.ctl-select select:focus, .ctl-input:focus { border-color: var(--orange-500); }

.ctl-phone { display: flex; min-width: 0; border-radius: 8px; overflow: hidden; background: #fff; border: 2px solid var(--line-on-light); transition: border-color 220ms var(--ease-out); }
.ctl-phone:focus-within { border-color: var(--orange-500); }
.ctl-phone .dial { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 14px; color: var(--navy-900); font-size: 17px; font-weight: 600; border-right: 2px solid var(--line-on-light); }
.ctl-phone .dial-caret { font-size: 10px; opacity: .7; }
.ctl-phone select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; color-scheme: light; }
.ctl-phone input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--navy-900); font-family: var(--font); font-size: 17px; font-weight: 500; padding: 16px; }
.ctl-phone input::placeholder { color: var(--slate-600); opacity: 1; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.45; color: var(--navy-900); position: relative; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check .box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 4px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--slate-500); color: var(--navy-900); font-size: 14px; font-weight: 900; line-height: 1; transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out); }
.check input:checked + .box { background: var(--orange-500); border-color: var(--orange-500); }
.check input:checked + .box::after { content: '✓'; }
.check input:focus-visible + .box { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.f-err, .f-warn { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
.f-err { color: var(--terra-700); }
.f-warn { color: #9A4E12; }
.f-err[hidden], .f-warn[hidden] { display: none; }
.field.invalid select, .field.invalid .ctl-input, .field.invalid .ctl-phone { border-color: var(--terra-600); }
.field.invalid .check .box { border-color: var(--terra-600); }
.submit-wrap { display: flex; flex-direction: column; gap: 8px; }
.submit-note { text-align: center; font-size: 14px; font-weight: 500; color: var(--slate-600); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

#form button[type=submit] { white-space: nowrap; }

/* ---------- Header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6,26,34,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .inner { max-width: 1240px; margin: 0 auto; padding: 12px clamp(20px,5vw,48px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.site-header .brand img { height: 22px; width: auto; flex: 0 0 auto; }
.site-header .tagline { font-size: 13px; font-weight: 600; color: var(--teal-300); letter-spacing: .08em; text-transform: uppercase; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.18); }
.site-footer { background: var(--navy-950); text-align: center; padding: 24px 22px; font-size: 14px; color: var(--slate-300); }
.site-footer a { color: var(--teal-300); }
.site-footer a:hover { color: #fff; }

/* Recorte do Joel: proporção fixa, para o espaço ficar reservado antes de a imagem carregar
   (sem isto o formulário podia saltar ~170px em mobile no primeiro desenho). */
.b-vis img { aspect-ratio: 1 / 1; }

/* ---------- Responsivo (regras do export) ---------- */
@media (max-width: 1180px) { .a-steps { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 920px) {
  .b-hero { grid-template-columns: 1fr !important; text-align: center; gap: 20px !important; padding-top: 4px !important; }
  .b-hero > div { width: auto !important; min-width: 0; }
  /* .b-hero > div também apanha o .b-vis: com width:auto + margens auto a largura vinha da imagem
     (0 antes de carregar → o formulário saltava 170px). Largura fixa ao bloco, mais específica. */
  .b-hero > .b-vis { width: 100% !important; }
  .b-hero > div:first-child { position: relative; z-index: 2; }
  .b-hero h1 { font-size: clamp(2rem,8.5vw,2.6rem) !important; }
  .b-hero p { width: auto !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; }
  .b-vis { order: -1; position: relative !important; height: auto !important; aspect-ratio: 1 / 1; width: 100% !important; max-width: 240px !important; margin: 0 auto -70px !important; justify-content: center !important; }
  .b-vis img { width: 100% !important; max-width: 240px !important; height: auto !important; top: 0 !important; transform: none !important; margin: 0 auto !important; -webkit-mask-image: linear-gradient(180deg,#000 45%,transparent 92%) !important; mask-image: linear-gradient(180deg,#000 45%,transparent 92%) !important; }
  .b-vis > div:first-child { width: 100vw !important; height: 100% !important; left: 50% !important; transform: translateX(-50%) !important; background: radial-gradient(ellipse 60% 60% at 50% 65%,rgba(140,195,198,.26) 0%,rgba(37,118,124,.12) 50%,transparent 80%) !important; }
  .b-list { align-items: center; }
  .b-list > div { text-align: left; white-space: nowrap; font-size: min(16px,3.3vw); letter-spacing: -.01em; gap: 8px !important; }
  .b-hide-m { display: none !important; }
  .form-row, .form-row--end { grid-template-columns: 1fr; }
  .a-2col { grid-template-columns: 1fr !important; }
  .a-cmp td, .a-cmp th { padding: 12px 10px !important; font-size: 15px !important; }
  #form { padding-top: 8px !important; }
  #form .form-title { text-align: center; }
  #form button[type=submit] { white-space: nowrap !important; font-size: min(16px,4.2vw) !important; padding-left: 12px !important; padding-right: 12px !important; }
  section h2 { text-align: center !important; }
  section h2 ~ p { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
  .site-header .inner { padding: 10px 16px; }
  .site-header .brand img { height: 18px; }
  .site-header .btn { font-size: 13px; padding-left: 14px; padding-right: 14px; min-height: 40px; white-space: nowrap; }
}
@media (max-width: 560px) { .a-steps { grid-template-columns: 1fr !important; } }
@media (max-width: 360px) { .site-header .btn { font-size: 12px; padding-left: 10px; padding-right: 10px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}
