/* addax Planos de Saúde · site institucional
   Paleta tirada do panfleto da marca: magenta (principal), vinho (texto) e verde-água (apoio). */

:root {
  --ink: #6B0B37;          /* títulos: vinho do panfleto */
  --ink-2: #5B4450;        /* texto corrido */
  --muted: #7D6573;
  --bg: #FCF8F7;
  --surface: #FFFFFF;
  --line: #F0DDE3;
  --line-strong: #E2C2CE;

  --magenta: #C20A62;      /* bolha do título e logo */
  --magenta-600: #A2024C;
  --magenta-bright: #E40371;
  --pink-50: #FDEEF3;
  --pink-100: #FEE1E8;     /* fundo dos ícones no panfleto */
  --plum-900: #3A0620;

  --teal: #01A29B;         /* bolha verde-água do panfleto */
  --teal-700: #00756E;     /* versão com contraste para texto branco */
  --teal-50: #E3F5F3;

  --danger: #B42318;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(107, 11, 55, .06);
  --shadow: 0 1px 2px rgba(107, 11, 55, .05), 0 12px 32px -12px rgba(107, 11, 55, .2);
  --shadow-lg: 0 2px 4px rgba(107, 11, 55, .04), 0 24px 60px -20px rgba(107, 11, 55, .3);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Montserrat", var(--font);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--magenta); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 8px 20px -10px rgba(194, 10, 98, .75); }
.btn-primary:hover { background: var(--magenta-600); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: rgba(255,255,255,.7); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--magenta-600); }
.btn-light:hover { background: var(--pink-50); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 248, 247, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; flex: none; }
.brand img { height: 44px; width: auto; }

.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--magenta); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(620px 420px at 90% 6%, var(--pink-100), transparent 70%),
    radial-gradient(700px 500px at -10% 110%, var(--teal-50), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

/* "Balão" como no panfleto: cantos arredondados e um rabinho embaixo */
.pill {
  position: relative; display: inline-block; margin-bottom: 26px;
  padding: 8px 16px; border-radius: 14px;
  background: var(--magenta); color: #fff;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .01em;
}
.pill::after {
  content: ""; position: absolute; left: 18px; bottom: -7px;
  width: 14px; height: 14px; background: inherit; border-radius: 2px;
  transform: skewX(-20deg) rotate(45deg);
}.hero h1 { font-size: clamp(36px, 4.8vw, 58px); font-weight: 800; letter-spacing: -0.03em; }
/* Sublinhado como text-decoration: acompanha a quebra de linha no celular */
.hl {
  color: var(--magenta); white-space: nowrap;
  text-decoration: underline; text-decoration-color: rgba(1, 162, 155, .45);
  text-decoration-thickness: .16em; text-underline-offset: .1em; text-decoration-skip-ink: none;
}
.lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); max-width: 34em; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.checks li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.checks .icon { width: 18px; height: 18px; color: var(--teal); stroke-width: 2.8; }

/* ---------- Formulário de cotação ---------- */
.quote-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px; box-shadow: var(--shadow-lg);
  display: grid; gap: 16px;
}
.quote-head h2 { font-size: 23px; font-weight: 800; }
.quote-head p { margin-top: 4px; font-size: 15px; color: var(--muted); }

.seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend, .field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; }
.seg-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg-options label { position: relative; cursor: pointer; }
.seg-options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-options span {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; color: var(--ink-2); text-align: center;
  transition: border-color .15s, background-color .15s, color .15s;
}
.seg-options .icon { width: 22px; height: 22px; }
.seg-options label:hover span { border-color: var(--line-strong); }
.seg-options input:checked + span { border-color: var(--magenta); background: var(--pink-50); color: var(--magenta-600); }
.seg-options input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 16px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D6573' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input::placeholder { color: #B3A2AB; }
.field input:hover, .field select:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px var(--pink-50); }
.field .opt { font-weight: 500; color: var(--muted); }
.field-error { display: none; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--danger); }
.field.has-error input { border-color: var(--danger); }
.field.has-error .field-error { display: block; }
.field.is-flash select { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 20% { box-shadow: 0 0 0 5px var(--teal-50); border-color: var(--teal); } }

.fineprint { font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }

/* ---------- Carrossel de operadoras ---------- */
.brands { padding: 64px 0 72px; background: var(--surface); border-block: 1px solid var(--line); }
.brands-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.brands-head h2 { font-size: clamp(25px, 2.8vw, 34px); font-weight: 800; max-width: 18em; }
.brands-aside { display: flex; align-items: center; gap: 12px; flex: none; }
.brands-hint { font-size: 14.5px; color: var(--muted); font-weight: 600; }

.marquee {
  --card-w: 200px; --card-h: 108px; --gap: 16px; --k: 1; --dur: 45s;
  position: relative; overflow: hidden; padding: 10px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur) linear infinite; }
.marquee-track > li { margin-right: var(--gap); }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.logo-card {
  display: grid; place-items: center;
  width: var(--card-w); height: var(--card-h); padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.logo-card img { height: calc(var(--h) * var(--k)); width: auto; max-width: 100%; object-fit: contain; }
.logo-card:hover, .logo-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.marquee-toggle {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.marquee-toggle[hidden] { display: none; }
.marquee-toggle:hover { border-color: var(--magenta); color: var(--magenta); }
.marquee-toggle .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.marquee-toggle .icon-play, .marquee-toggle[aria-pressed="true"] .icon-pause { display: none; }
.marquee-toggle[aria-pressed="true"] .icon-play { display: block; }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section-alt { background: #F9EFF2; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.eyebrow { font-family: var(--font-display); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--magenta); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.3vw, 40px); font-weight: 800; letter-spacing: -0.025em; }
.section-sub { margin-top: 16px; font-size: 17px; }

/* Passos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px;
  border-radius: 14px; background: var(--magenta); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
}
.step:nth-child(2) .step-num { background: var(--ink); }
.step:nth-child(3) .step-num { background: var(--teal); }
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.step p { font-size: 15.5px; }

/* Cards "para quem" — ícone em quadradinho rosa, como no panfleto */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--pink-100); color: var(--ink); margin-bottom: 6px; }
.card-icon .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.card h3 { font-size: 20px; font-weight: 800; }
.card p { font-size: 15.5px; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; text-decoration: none; }
.card-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.card-link:hover .icon { transform: translateX(3px); }

/* Comparativo */
.compare { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.compare-col { padding: 32px; border-radius: 24px; }
.compare-col h3 { font-size: 19px; font-weight: 800; margin-bottom: 20px; }
.compare-col ul { display: grid; gap: 14px; }
.compare-col li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 600; }
.compare-col li .icon { margin-top: 2px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; stroke-width: 3; }
.compare-off { background: transparent; border: 1.5px dashed var(--line-strong); }
.compare-off h3 { color: var(--muted); }
.compare-off li { color: var(--muted); }
.compare-off li .icon { background: #F4E4EA; color: #A38E99; }
.compare-on { background: linear-gradient(135deg, var(--magenta-600), var(--magenta)); color: #FFE6F0; box-shadow: var(--shadow-lg); }
.compare-on h3 { color: #fff; }
.compare-on li .icon { background: #fff; color: var(--magenta); }
.compare-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22); color: #fff; font-weight: 700; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C20A62' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E") center / 22px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; font-size: 15.5px; }

/* CTA final: verde-água, como a bolha "Proteção, economia e valorização da equipe" */
.cta { background: linear-gradient(135deg, var(--teal-700), #008C84); color: #E3F7F5; padding: 72px 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.1vw, 38px); font-weight: 800; max-width: 17em; }
.cta p { margin-top: 10px; font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.cta .btn-light { color: var(--teal-700); }
.cta .btn-light:hover { background: var(--teal-50); }

/* Rodapé */
.site-footer { background: var(--plum-900); color: #D9B3C4; padding: 56px 0 96px; font-size: 14px; } /* fundo extra: o botão flutuante não cobre o texto legal */
.footer-inner { display: flex; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { height: 48px; width: auto; }
.footer-tag { margin-top: 12px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-title { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a, .footer-contact a { color: #F6E3EB; text-decoration: none; font-weight: 600; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--teal); }
.footer-legal { padding-top: 24px; display: grid; gap: 6px; font-size: 13px; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--teal); color: #fff; box-shadow: 0 12px 28px -8px rgba(0, 117, 110, .6);
  transition: transform .2s, background-color .2s;
}
.wa-float:hover { transform: scale(1.06); background: var(--teal-700); }
.wa-float .icon { width: 26px; height: 26px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .quote-card { max-width: 560px; }
  .nav { display: none; }
  .steps, .cards { grid-template-columns: 1fr; max-width: 620px; }
  .compare { grid-template-columns: 1fr; max-width: 620px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid .section-head { position: static; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .hero { padding: 32px 0 48px; }
  .hl { white-space: normal; }
  .hero-actions .btn { flex: 1 1 100%; }
  .quote-card { padding: 22px 18px; border-radius: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .brands { padding: 48px 0 60px; }
  .brands-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
  .marquee { --card-w: 156px; --card-h: 86px; --gap: 12px; --k: .78; --dur: 38s; }
  .logo-card { padding: 10px 14px; border-radius: 14px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .compare-col { padding: 24px 20px; }
  .faq summary { padding: 18px; font-size: 16px; }
  .faq details p { padding: 0 18px 18px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* Movimento reduzido: o carrossel vira uma faixa com rolagem manual */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; padding-inline: 20px; }
  .marquee-track { animation: none; }
  .marquee-track > li { scroll-snap-align: start; }
  .marquee-track > li[aria-hidden="true"] { display: none; }
  .logo-card, .card, .btn, .wa-float { transition: none; }
}
