/* Refúgio Corretora de Seguros: estilos do site (estático, mobile-first). */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-brand: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", "Segoe UI", sans-serif;

  --ink: #0d0f11;
  --graphite: #16191c;
  --graphite-2: #20252a;
  --graphite-3: #2c3238;
  --paper: #ffffff;
  --mist: #f1f2f4;
  --mist-2: #e4e7ea;
  --line: #cfd4d9;
  --text: #16191c;
  --text-muted: #4b5560;
  --on-dark: #f5f3ee;
  --on-dark-muted: rgba(245, 243, 238, 0.74);
  --line-dark: rgba(245, 243, 238, 0.14);

  --gold: #c9982f;
  --gold-light: #eacb7e;
  --gold-deep: #85610f;
  --gold-grad: linear-gradient(120deg, #f3deae 0%, #e0b556 45%, #b9861f 100%);

  --wa: #138146;
  --wa-hover: #0f6b3a;
  --wa-icon: #1c9e55;
  --danger: #b42318;
  --danger-bg: #fdf0ee;
  --success: #138146;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  --radius: 6px;
  --radius-lg: 8px;
  --header-h: 60px;
  --container: 1200px;
  --gutter: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-lg: 0 24px 60px -24px rgba(13, 15, 17, 0.45);
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 68px; --gutter: 40px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.icon-fill { fill: currentColor; stroke: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--gold-light);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--graphite); color: var(--on-dark); }
.btn--primary:hover { background: var(--graphite-3); }
.btn--primary .icon { color: var(--gold-light); }
.btn--gold { background: var(--gold-light); color: var(--ink); }
.btn--gold:hover { background: #f3d998; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--ghost-dark { border-color: rgba(245, 243, 238, 0.42); color: var(--on-dark); background: rgba(13, 15, 17, 0.28); }
.btn--ghost-dark:hover { border-color: var(--gold-light); background: rgba(13, 15, 17, 0.5); }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--paper); }
.btn--ghost:hover { border-color: var(--graphite); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.link-arrow .icon { width: 18px; height: 18px; color: var(--gold-deep); transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow span { border-bottom: 1px solid var(--gold); padding-bottom: 1px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 15, 17, 0.96);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(13, 15, 17, 0.86); backdrop-filter: blur(12px) saturate(140%); }
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-h);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  text-decoration: none;
  color: var(--on-dark);
}
.brand-link img { width: 38px; height: auto; }
.brand-link__name { font-family: var(--font-brand); font-weight: 700; font-size: 1.25rem; line-height: 1; color: var(--gold-light); }
.brand-link__sub { display: none; font-size: 0.6875rem; line-height: 1.2; color: var(--on-dark-muted); text-transform: uppercase; }
@media (min-width: 400px) {
  .brand-link__text { display: flex; flex-direction: column; gap: 3px; }
  .brand-link__sub { display: block; }
}

.site-nav { display: none; }
.site-nav ul { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--on-dark); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-wa { display: none; min-height: 40px; padding: 0 var(--space-4); font-size: 0.9375rem; }
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-dark);
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { border-top: 1px solid var(--line-dark); background: var(--ink); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { display: grid; gap: 2px; padding: var(--space-3) var(--gutter) var(--space-5); }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav .btn { margin-top: var(--space-4); width: 100%; border-bottom: 0; }

@media (min-width: 1024px) {
  .site-nav { display: block; }
  .header-wa { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .brand-link img { width: 44px; }
  .brand-link__name { font-size: 1.375rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--graphite);
  color: var(--on-dark);
}
.hero__stage {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 300px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--graphite-2); }
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  opacity: 0;
  transition: opacity 0.7s var(--ease-in-out);
}
.hero__img.is-active { opacity: 1; }
.hero__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 15, 17, 0.35) 0%, rgba(13, 15, 17, 0.1) 20%, rgba(13, 15, 17, 0.72) 46%, rgba(17, 19, 22, 0.9) 66%, rgba(22, 25, 28, 0.97) 86%, var(--graphite) 100%);
}
.hero__brand {
  padding: 92px var(--gutter) calc(var(--space-5) + 16px);
  max-width: 640px;
}
.hero-lockup { display: flex; align-items: center; gap: var(--space-3); }
.hero-lockup img { width: 54px; height: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)); }
.hero-lockup__words { display: flex; flex-direction: column; }
.hero-lockup__name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 2.625rem;
  line-height: 0.95;
  color: var(--gold-light);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-lockup__name {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.4));
  }
}
.hero-lockup__sub {
  margin-top: 6px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--on-dark);
}
.hero__call {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--on-dark);
  max-width: 30ch;
  text-wrap: balance;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}
.hero__actions { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__actions .btn { min-height: 44px; font-size: 0.9375rem; padding: 0 var(--space-4); }

.hero__panel {
  position: relative;
  z-index: 1;
  margin-top: -16px;
  background: var(--paper);
  color: var(--text);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 3px solid var(--gold);
}
.hero__panel-inner {
  max-width: 560px;
  margin-inline: auto;
  padding: var(--space-5) var(--gutter) var(--space-7);
}
@media (max-width: 639px) {
  .hero__panel-inner { padding-top: 18px; }
}

@media (min-width: 640px) {
  .hero__stage { min-height: 380px; }
  .hero__brand { padding-top: 200px; }
  .hero-lockup img { width: 80px; }
  .hero-lockup__name { font-size: 4rem; }
  .hero__call { font-size: 1.75rem; margin-top: var(--space-5); }
  .hero__actions { margin-top: var(--space-5); }
  .hero__actions .btn { min-height: 48px; font-size: 1rem; padding: 0 var(--space-5); }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero__brand { width: 100%; max-width: 560px; margin-inline: auto; }
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 34vw);
    min-height: clamp(600px, calc(100svh - var(--header-h) - 150px), 860px);
  }
  .hero__stage { min-height: 0; }
  .hero__stage::after {
    background:
      linear-gradient(180deg, rgba(13, 15, 17, 0.12) 0%, rgba(13, 15, 17, 0) 26%, rgba(13, 15, 17, 0.5) 48%, rgba(13, 15, 17, 0.84) 70%, rgba(13, 15, 17, 0.94) 100%),
      linear-gradient(90deg, rgba(13, 15, 17, 0.5) 0%, rgba(13, 15, 17, 0) 62%);
  }
  .hero__brand { padding: var(--space-8) var(--gutter) var(--space-7) max(var(--gutter), calc((100vw - var(--container)) / 2)); max-width: none; }
  .hero-lockup { gap: var(--space-4); }
  .hero-lockup img { width: 96px; }
  .hero-lockup__name { font-size: 5.5rem; }
  .hero-lockup__sub { font-size: 0.9375rem; }
  .hero__call { font-size: 2rem; margin-top: var(--space-5); }
  .hero__panel {
    margin-top: 0;
    border-radius: 0;
    border-top: 0;
    border-left: 3px solid var(--gold);
  }
  .hero__panel-inner { width: 100%; max-width: 520px; padding: var(--space-7) 44px var(--space-6); }
}
@media (min-width: 1440px) {
  .hero-lockup__name { font-size: 6.5rem; }
  .hero-lockup img { width: 112px; }
}

/* Entrada escalonada do hero (realce progressivo: o estado final é o padrão). */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.8s var(--ease-out) both; }
  .rise-1 { animation-delay: 0.05s; }
  .rise-2 { animation-delay: 0.16s; }
  .rise-3 { animation-delay: 0.27s; }
  .rise-4 { animation-delay: 0.38s; }
  .rise-panel { animation: panel-in 0.9s var(--ease-out) 0.12s both; }
  .hero__img.is-first { animation: settle 1.6s var(--ease-out) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { transform: scale(1.06); }
  to { transform: none; }
}

/* ---------- Formulário de cotação ---------- */
.qf__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.qf__title { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.15; }
@media (min-width: 640px) {
  .qf__title { font-size: 1.5rem; }
}
.qf__secure { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; }
.qf__secure .icon { width: 16px; height: 16px; color: var(--gold-deep); }

.qf-products { border: 0; padding: 0; margin: var(--space-4) 0 0; min-width: 0; }
.qf-products legend { padding: 0; margin-bottom: var(--space-2); font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.qf-products__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); }
.qf-tile { position: relative; grid-column: span 2; display: block; }
.qf-tile:nth-child(n + 4) { grid-column: span 3; }
.qf-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.qf-tile__box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  height: 100%;
  min-height: 68px;
  padding: 9px 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.qf-tile__box .icon { width: 22px; height: 22px; color: var(--gold-deep); transition: color 0.25s ease, transform 0.35s var(--ease-out); }
.qf-tile__label { font-size: 0.8125rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.qf-tile__kicker { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--text-muted); }
.qf-tile:hover .qf-tile__box { border-color: var(--graphite); }
.qf-tile input:checked + .qf-tile__box {
  background: var(--graphite);
  border-color: var(--graphite);
  color: var(--on-dark);
  box-shadow: 0 10px 24px -14px rgba(13, 15, 17, 0.7);
}
.qf-tile input:checked + .qf-tile__box .icon { color: var(--gold-light); transform: scale(1.08); }
.qf-tile input:checked + .qf-tile__box .qf-tile__kicker { color: var(--on-dark-muted); }
.qf-tile input:focus-visible + .qf-tile__box { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (min-width: 640px) {
  .qf-tile__label { font-size: 0.875rem; }
}

.qf-progress { margin-top: var(--space-4); }
.qf-progress__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); font-size: 0.8125rem; color: var(--text-muted); }
.qf-progress__name { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--text); text-align: right; }
.qf-progress__name:focus { outline: none; }
.qf-progress__name:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
@media (min-width: 640px) {
  .qf-progress { margin-top: var(--space-5); }
  .qf-tile__box { min-height: 76px; padding: 10px 10px 9px; }
}
.qf-progress__track { margin-top: 8px; height: 4px; border-radius: 4px; background: var(--mist-2); overflow: hidden; }
.qf-progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 4px;
  transition: width 0.6s var(--ease-out);
}

.qf-body { position: relative; margin-top: var(--space-4); min-height: 150px; }
.qf-step { display: grid; gap: var(--space-4); }

@media (prefers-reduced-motion: no-preference) {
  .qf-step.is-out-next { animation: step-out-next 0.18s ease-in both; }
  .qf-step.is-out-prev { animation: step-out-prev 0.18s ease-in both; }
  .qf-step.is-in-next { animation: step-in-next 0.42s var(--ease-out) both; }
  .qf-step.is-in-prev { animation: step-in-prev 0.42s var(--ease-out) both; }
  .qf-step.is-in-swap { animation: step-in-swap 0.45s var(--ease-out) both; }
  .qf-field.is-revealed { animation: field-reveal 0.4s var(--ease-out) both; }
}
@keyframes step-out-next { to { opacity: 0; transform: translateX(-24px); } }
@keyframes step-out-prev { to { opacity: 0; transform: translateX(24px); } }
@keyframes step-in-next { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes step-in-prev { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
@keyframes step-in-swap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes field-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.qf-row { display: grid; gap: var(--space-4); }
@media (min-width: 400px) {
  .qf-row--2 { grid-template-columns: 1fr 1fr; }
}

.qf-field { display: grid; gap: 6px; min-width: 0; }
.qf-field[hidden] { display: none; }
.qf-label, .qf-choice legend { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; padding: 0; }
.qf-optional { font-weight: 400; color: var(--text-muted); }
.qf-hint { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4; }
.qf-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.qf-input::placeholder { color: #7d8790; }
.qf-input:hover { border-color: #9aa3ab; }
.qf-input:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(201, 152, 47, 0.32); }
.qf-input[aria-invalid="true"] { border-color: var(--danger); }
.qf-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.22); }

.qf-choice { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.qf-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.qf-opt { position: relative; display: block; }
.qf-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.qf-opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.qf-opt:hover span { border-color: var(--graphite); }
.qf-opt input:checked + span { background: var(--graphite); border-color: var(--graphite); color: var(--on-dark); }
.qf-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.qf-choice[aria-invalid="true"] .qf-opt span { border-color: var(--danger); }
@media (min-width: 400px) {
  .qf-options--multi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.qf-options--multi .qf-opt input:checked + span::before {
  content: "";
  width: 14px;
  height: 8px;
  margin-right: 8px;
  border-left: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: translateY(-2px) rotate(-45deg);
}
.qf-notice {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: #fbf6ea;
  color: #3b3527;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.qf-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--danger);
}
.qf-error:empty { display: none; }
.qf-error .icon { width: 16px; height: 16px; margin-top: 1px; }

.qf-consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.875rem; line-height: 1.45; color: var(--text-muted); }
.qf-consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--graphite); }
.qf-consent-wrap { display: grid; gap: 6px; }

.qf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.qf-nav { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.qf-nav .btn--primary { flex: 1; }
.qf-nav[hidden],
.qf-nav .btn--ghost[hidden] { display: none; }
.qf-alt { margin-top: var(--space-4); font-size: 0.875rem; color: var(--text-muted); }
.qf-alt a { color: var(--text); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.qf-alert {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--danger-bg);
  border: 1px solid rgba(180, 35, 24, 0.25);
  color: #7a1a12;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.qf-alert[hidden] { display: none; }
.qf-alert .btn { margin-top: var(--space-3); min-height: 44px; }

.spinner { width: 18px; height: 18px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.qf-success { display: grid; gap: var(--space-3); padding-top: var(--space-2); }
.qf-success__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--gold-light);
}
.qf-success__icon .icon { width: 26px; height: 26px; }
.qf-success h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; line-height: 1.1; }
.qf-success h3:focus { outline: none; }
.qf-protocol { display: inline-flex; gap: 8px; align-items: baseline; padding: 10px 14px; border: 1px dashed var(--gold); border-radius: var(--radius); background: #fffaf0; width: fit-content; }
.qf-protocol strong { font-family: var(--font-body); font-size: 1.125rem; letter-spacing: 0; }
.qf-success__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
@media (prefers-reduced-motion: no-preference) {
  .qf-success__icon { animation: pop 0.6s var(--ease-out) both; }
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

.no-js .qf-progress,
.no-js .qf-nav,
.no-js .menu-toggle { display: none; }
.qf-noscript { margin-top: var(--space-4); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); }
.qf-noscript p { margin-bottom: var(--space-3); }

/* ---------- Seções ---------- */
.section { padding-block: var(--space-8); }
@media (min-width: 1024px) {
  .section { padding-block: var(--space-9); }
  .section.products { padding-top: var(--space-8); }
}
.kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.on-dark .kicker { color: var(--gold-light); }
.section-title {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.25rem;
  line-height: 1.05;
  text-wrap: balance;
}
.section-title strong { font-weight: 600; }
.section-lead { margin-top: var(--space-4); font-size: 1.0625rem; color: var(--text-muted); max-width: 52ch; }
.on-dark .section-lead { color: var(--on-dark-muted); }
@media (min-width: 640px) {
  .section-title { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .section-title { font-size: 3.75rem; }
  .section-lead { font-size: 1.125rem; }
}
.section-head { display: grid; gap: var(--space-2); }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: var(--space-7); }
  .section-head--split .section-lead { margin-top: 0; }
}

/* Produtos */
.products { background: var(--paper); }
.product-list { margin-top: var(--space-7); display: grid; gap: var(--space-7); }
.product { display: grid; gap: var(--space-4); align-content: start; }
.product__media { overflow: hidden; border-radius: var(--radius); background: var(--mist); aspect-ratio: 2 / 1; }
.product__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 0.9s var(--ease-out); }
.product:hover .product__media img { transform: scale(1.035); }
.product__body { display: grid; gap: var(--space-2); }
.product__title { font-family: var(--font-display); font-weight: 500; font-size: 1.625rem; line-height: 1.15; }
.product__text { color: var(--text-muted); max-width: 46ch; }
.product .link-arrow { margin-top: var(--space-1); justify-self: start; }
@media (min-width: 640px) {
  .product-list { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); }
  .product__media { aspect-ratio: 4 / 3; }
  .product:nth-child(n + 4) .product__media { aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px) {
  .product-list { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--space-6); row-gap: var(--space-8); }
  .product { grid-column: span 2; }
  .product:nth-child(n + 4) { grid-column: span 3; }
  .product:nth-child(n + 4) .product__media { aspect-ratio: 2 / 1; }
}

/* Como funciona */
.how {
  position: relative;
  color: var(--on-dark);
  background:
    repeating-linear-gradient(135deg, rgba(234, 203, 126, 0.035) 0 1px, transparent 1px 22px),
    radial-gradient(120% 80% at 0% 0%, #262b30 0%, transparent 60%),
    linear-gradient(180deg, var(--graphite) 0%, var(--ink) 100%);
}
.how-steps { margin-top: var(--space-7); display: grid; gap: var(--space-6); counter-reset: step; }
.how-step { position: relative; padding-top: var(--space-5); border-top: 1px solid rgba(234, 203, 126, 0.35); }
.how-step__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 4rem;
  line-height: 0.9;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.how-step h3 { margin-top: var(--space-4); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.how-step p { margin-top: var(--space-2); color: var(--on-dark-muted); max-width: 34ch; }
.how-note {
  margin-top: var(--space-7);
  display: grid;
  gap: var(--space-4);
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-dark);
}
.how-note p { font-size: 1.0625rem; color: var(--on-dark); max-width: 60ch; }
.how-note .btn { justify-self: start; }
@media (min-width: 900px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
  .how-step__num { font-size: 5.5rem; }
  .how-note { grid-template-columns: 1fr auto; gap: var(--space-6); }
}

/* Seguradoras */
.insurers { background: var(--mist); }
.logo-grid { margin-top: var(--space-7); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.logo-grid li {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: var(--space-3);
  background: var(--paper);
  border: 1px solid var(--mist-2);
  border-radius: var(--radius);
}
.logo-grid img { --s: 0.66; width: calc(var(--w) * var(--s) * 1px); max-width: 100%; height: auto; }
@media (min-width: 640px) {
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
  .logo-grid img { --s: 0.9; }
}
@media (min-width: 1024px) {
  .logo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .logo-grid img { --s: 1; }
}

/* Sobre */
.about { background: var(--paper); }
.about__grid { display: grid; gap: var(--space-6); align-items: center; }
.about__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--mist); }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.about__text p { margin-top: var(--space-4); color: var(--text-muted); font-size: 1.0625rem; max-width: 54ch; }
.facts { margin-top: var(--space-6); display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--mist-2); }
.facts div { padding: var(--space-4) var(--space-3) var(--space-4) 0; border-bottom: 1px solid var(--mist-2); }
.facts dt { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; color: var(--gold-deep); }
.facts dd { margin-top: 4px; font-size: 1.0625rem; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); }
  .about__media { aspect-ratio: 4 / 5; }
}

/* Chamada final */
.cta-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--graphite);
}
.cta-final__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(13, 15, 17, 0.94) 0%, rgba(13, 15, 17, 0.78) 50%, rgba(13, 15, 17, 0.25) 100%);
}
.cta-final__inner { padding-top: 220px; padding-bottom: var(--space-8); }
.cta-final .section-title { max-width: 14ch; }
.cta-final__actions { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (min-width: 1024px) {
  .cta-final::before { background: linear-gradient(90deg, rgba(13, 15, 17, 0.92) 0%, rgba(13, 15, 17, 0.7) 42%, rgba(13, 15, 17, 0.05) 75%); }
  .cta-final__inner { padding-block: var(--space-9); }
}

/* Rodapé */
.site-footer { background: var(--ink); color: var(--on-dark-muted); border-top: 1px solid rgba(234, 203, 126, 0.3); }
.site-footer__grid { display: grid; gap: var(--space-6); padding-block: var(--space-7) var(--space-6); }
.site-footer .brand-link__sub { display: block; }
.site-footer .brand-link__text { display: flex; flex-direction: column; gap: 3px; }
.footer-col h2 { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--space-3); }
.footer-col li + li { margin-top: 2px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--on-dark);
  text-decoration: none;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-col a .icon { width: 18px; height: 18px; color: var(--gold-light); }
.footer-legal { font-size: 0.9375rem; line-height: 1.7; }
.footer-legal strong { color: var(--on-dark); font-weight: 600; }
.site-footer__bottom { padding-block: var(--space-5) calc(var(--space-6) + 72px); border-top: 1px solid var(--line-dark); font-size: 0.875rem; }
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .site-footer__bottom { padding-bottom: var(--space-5); }
}

/* Botão flutuante do WhatsApp */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-icon);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(13, 15, 17, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s, background-color 0.2s ease;
}
.wa-float:hover { background: var(--wa); }
.wa-float.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.wa-float .icon { width: 28px; height: 28px; }
@media (min-width: 1024px) {
  .wa-float { right: 28px; bottom: 28px; width: 60px; height: 60px; }
}

@media (prefers-contrast: more) {
  :root { --line: #7d8790; --text-muted: #2c3238; --on-dark-muted: #f5f3ee; }
  .hero__stage::after { background: linear-gradient(180deg, rgba(13, 15, 17, 0.6), rgba(13, 15, 17, 0.97)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
