:root {
  --beet: #500a39; /* Beterraba, from the Alice brand guide for brokers */
  --magenta: #be0380;
  --blush: #fff0fa;
  --rose: #ffdeea;
  --sand: #f3f2f0;
  --leaf: #0f4f3a;
  --copper: #a8693f;
  --wa: #0f7f3d;
  --wa-dark: #0b6a32;
  --text: #2a0a20;
  --muted: #5c4a55;
  --bg: #ffffff;
  /* Plan scale, light to dark: tints and a shade of --magenta, then --beet and black, all colors of the Alice brand guide. --magenta itself is the first screen field. */
  --t1: #f2cde6; --t1-ink: #500a39;
  --t2: #e28ec6; --t2-ink: #500a39;
  --t3: #8c0060; --t3-ink: #ffffff;
  --t4: #500a39; --t4-ink: #ffffff;
  --t5: #000000; --t5-ink: #ffffff;
  --gutter: 16px;
  --max: 1160px;
  --bar: 68px;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; padding-bottom: var(--bar); font: 400 1.0625rem/1.5 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3.25rem, 15vw, 6.5rem); font-weight: 700; line-height: .95; letter-spacing: -.03em; }
h2 { font-size: clamp(2.5rem, 11vw, 4.5rem); font-weight: 700; line-height: 1; letter-spacing: -.025em; }
h3 { font-size: 1.5rem; line-height: 1.15; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 30; padding: 10px 14px; color: #fff; background: var(--beet); }
.skip:focus { top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 22px; height: 22px; flex: none; }
.note { font-size: .875rem; color: var(--muted); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 var(--gutter); color: #fff; background: var(--magenta); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: #fff; text-decoration: none; }
.brand img { width: auto; height: 32px; }
/* The brand guide asks broker sites to say clearly that they are a partner, next to the logo. */
.brand__badge { padding: 5px 8px; font-size: .8125rem; font-weight: 700; line-height: 1.1; color: var(--magenta); background: #fff; }
.topnav { display: none; gap: 24px; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
@media (min-width: 720px) { .topnav { display: flex; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; font: 700 1.0625rem/1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: transform .12s, background .15s; }
.btn:active { transform: scale(.97); }
.btn--wa { color: #fff; background: var(--wa); }
.btn--wa:hover { background: var(--wa-dark); }

section { padding: 64px 0; }
.intro { max-width: 46ch; font-size: 1.125rem; }

/* First screen: hospital picker and the stair */
.hero { padding: 24px 0 0; color: #fff; background: var(--magenta); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; } }
.hero .lead { max-width: 34ch; margin-top: 16px; font-size: 1.1875rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.chip { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 12px; font: 600 1rem var(--font); color: var(--beet); background: #fff; border: 0; cursor: pointer; transition: transform .12s, background .15s; }
.chip img { width: auto; max-width: 72px; height: 28px; object-fit: contain; }
.chip[aria-pressed="true"] img { padding: 2px; background: #fff; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { color: #fff; background: var(--beet); }
.chip:focus-visible { outline-color: #fff; }
.answer { min-height: 3.2em; margin: 16px 0 0; font-size: 1.125rem; font-weight: 600; }
.answer a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }
.hero__fallback { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font-weight: 700; color: #fff; }
.js .hero__fallback { display: none; }

.stair { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
@media (min-width: 1000px) { .stair { height: 260px; } }
.stair span { position: relative; flex: 1; min-width: 0; overflow: hidden; padding: 6px; font-size: .8125rem; font-weight: 700; line-height: 1.1; transition: opacity .3s var(--ease); }
/* Plan names do not fit five narrow steps on a phone; the cards right below name them. */
@media (max-width: 719px) { .stair span { font-size: 0; padding: 0; } }
.stair span:nth-child(1) { height: 20%; color: var(--t1-ink); background: var(--t1); }
.stair span:nth-child(2) { height: 40%; color: var(--t2-ink); background: var(--t2); }
.stair span:nth-child(3) { height: 60%; color: var(--t3-ink); background: var(--t3); }
.stair span:nth-child(4) { height: 80%; color: var(--t4-ink); background: var(--t4); }
.stair span:nth-child(5) { height: 100%; color: var(--t5-ink); background: var(--t5); }
.stair span.is-off { opacity: .25; }
.js .stair span { animation: rise .6s var(--ease) both; transform-origin: bottom; }
.js .stair span:nth-child(2) { animation-delay: .08s; }
.js .stair span:nth-child(3) { animation-delay: .16s; }
.js .stair span:nth-child(4) { animation-delay: .24s; }
.js .stair span:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { transform: scaleY(0); } }

/* Plans: one step per plan, cumulative network */
.planos .intro { margin: 12px 0 28px; }
/* Every card ends on the same line and starts one step above the previous one, whatever its text. */
.plans { --rise: 40px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 82%); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding: 0 var(--gutter) 8px; align-items: stretch; }
@media (min-width: 1000px) { .plans { --rise: 56px; grid-auto-columns: 1fr; max-width: var(--max); margin: 0 auto; overflow: visible; } }
.plan { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; margin-top: calc((4 - var(--i)) * var(--rise)); padding: 22px 20px 20px; transition: opacity .3s var(--ease); }
.plan:nth-child(1) { --i: 0; color: var(--t1-ink); background: var(--t1); }
.plan:nth-child(2) { --i: 1; color: var(--t2-ink); background: var(--t2); }
.plan:nth-child(3) { --i: 2; color: var(--t3-ink); background: var(--t3); }
.plan:nth-child(4) { --i: 3; color: var(--t4-ink); background: var(--t4); }
.plan:nth-child(5) { --i: 4; color: var(--t5-ink); background: var(--t5); }
.plan h3 { font-size: 2.5rem; letter-spacing: -.02em; line-height: 1; }
@media (min-width: 1000px) { .plan h3 { font-size: 2rem; } }
.plan h4 { font-size: 1.0625rem; }
.plan ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.plan li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; font-weight: 600; color: var(--beet); background: #fff; }
.plan li img { flex: none; width: 64px; height: 30px; object-fit: contain; }
.plan p { margin: 0; }
.plan__flag { padding: 8px 10px; font-weight: 700; color: var(--beet); background: #fff; }
.plan__flag[hidden] { display: none; }
.plan .btn { margin-top: auto; }
.plan .btn--wa:focus-visible { outline-color: var(--beet); }
.plan.is-off { opacity: .45; }
.planos__aviso { max-width: var(--max); margin: 16px auto 0; padding: 0 var(--gutter); }

.facts { display: grid; gap: 2px; margin: 28px 0 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts li { padding: 20px; background: var(--blush); }
.facts strong { display: block; margin-bottom: 4px; font-size: 1.25rem; line-height: 1.2; color: var(--beet); }

.viviane { color: #fff; background: var(--beet); }
.viviane .wrap { display: grid; gap: 24px; align-items: end; }
@media (min-width: 720px) { .viviane .wrap { grid-template-columns: 300px 1fr; } }
.viviane img { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; clip-path: polygon(0 25%, 25% 25%, 25% 12%, 50% 12%, 50% 0, 100% 0, 100% 100%, 0 100%); }
.viviane .intro { margin: 14px 0 24px; color: var(--t1); }

.duvidas { background: var(--sand); }
.faq { margin-top: 24px; }
.faq details { border-top: 2px solid var(--rose); }
.faq summary { display: flex; align-items: center; min-height: 60px; padding: 12px 0; font-weight: 700; font-size: 1.125rem; cursor: pointer; }
.faq details p { max-width: 62ch; }

.footer { padding: 40px var(--gutter) 28px; font-size: .9375rem; color: var(--muted); }
.footer p { margin: 2px 0; }
.footer__name { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px !important; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.75rem, 13.5vw, 7rem); font-weight: 500; line-height: 1; letter-spacing: -.01em; color: var(--leaf); }
.brand__mark { display: inline-flex; font-size: .9em; }
.brand__mark span:first-child { color: var(--copper); }
.brand__mark span:last-child { margin-left: -.26em; color: var(--leaf); }

/* Sticky WhatsApp bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: 2px; height: var(--bar); padding-bottom: env(safe-area-inset-bottom); background: var(--wa-dark); }
.bar__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); color: #fff; background: var(--wa); text-decoration: none; transition: background .15s; }
.bar__main:hover { background: var(--wa-dark); }
.bar__main img { flex: none; width: 44px; height: 44px; object-fit: cover; }
.bar__main span { min-width: 0; }
.bar__main strong { display: block; font-size: 1.0625rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__main small { display: block; font-size: .875rem; line-height: 1.2; }
.wa-float { flex: none; display: grid; place-items: center; width: 68px; color: #fff; background: var(--wa-dark); }
.wa-float .icon { width: 30px; height: 30px; }
.bar a:focus-visible { outline-color: #fff; outline-offset: -5px; }
@media (max-width: 350px) { .bar__main img { display: none; } .wa-float { width: 60px; } }
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .bar { left: auto; right: 24px; bottom: 24px; width: 420px; height: 72px; padding: 0; }
}

/* Quote form: 3 questions that only fill the WhatsApp message */
dialog { color: var(--text); border: 0; padding: 0; }
dialog::backdrop { background: rgba(64, 0, 45, .6); }
.dialog__close { flex: none; width: 44px; height: 44px; border: 0; font-size: 1.6rem; line-height: 1; color: var(--beet); background: var(--blush); cursor: pointer; }
.quote { width: 100%; max-width: 100%; height: min(94dvh, 680px); max-height: 94dvh; margin: auto 0 0; overflow: hidden; background: var(--bg); }
.quote[open] { animation: sheet-in .28s var(--ease); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 720px) { .quote { width: 560px; margin: auto; } }
.quote__form { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px var(--gutter) calc(6px + env(safe-area-inset-bottom)); }
.quote__head, .quote__progress, .quote__bar, .quote__actions, .quote__direct { flex: none; }
.quote__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.quote__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.quote h2 { font-size: 1.5rem; line-height: 1.1; }
.quote__plan { margin: 2px 0 0; font-size: .9375rem; font-weight: 600; color: var(--magenta); }
.quote__progress { margin: 0 0 -8px; font-size: .875rem; color: var(--muted); }
.quote__bar { height: 6px; overflow: hidden; background: var(--blush); }
.quote__bar span { display: block; width: 100%; height: 100%; background: var(--magenta); transform-origin: left; transition: transform .25s var(--ease); }
.quote__step { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.quote__step[hidden], .quote [hidden] { display: none; }
.quote legend { margin-bottom: 8px; padding: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.15; color: var(--beet); }
.quote input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.quote__choice { position: relative; display: block; cursor: pointer; }
.quote__choice > span { display: block; padding: 12px 14px; color: var(--beet); background: var(--blush); transition: background .15s; }
.quote__choice strong { display: block; line-height: 1.2; }
.quote__choice small { display: block; font-size: .875rem; line-height: 1.25; color: var(--muted); }
.quote input[type=radio]:checked + span { color: #fff; background: var(--magenta); }
.quote input[type=radio]:checked + span small { color: #fff; }
.quote input[type=radio]:focus-visible + span { outline: 3px solid var(--beet); outline-offset: 2px; }
.faixas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
@media (max-width: 350px) { .faixas { grid-template-columns: 1fr; } }
.faixa { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding-left: 10px; color: var(--beet); background: var(--blush); transition: background .15s; }
.faixa.is-on { background: var(--t1); }
.faixa__rotulo { font-size: .9375rem; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.faixa__controle { display: flex; align-items: center; }
.faixa button { width: 40px; height: 48px; padding: 0; border: 0; font: inherit; font-size: 1.375rem; font-weight: 700; line-height: 1; color: var(--magenta); background: none; cursor: pointer; touch-action: manipulation; }
.faixa button:disabled { color: #b9a9b3; cursor: default; }
.faixa button:focus-visible { outline-offset: -3px; }
.faixa__n { min-width: 1.3em; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.faixas__total { min-height: 2.5em; margin: -4px 0 2px; font-size: .9375rem; font-weight: 600; line-height: 1.25; color: var(--beet); }
.faixas__total.is-erro { color: #b3261e; }
.quote__field { display: grid; gap: 4px; margin-top: 2px; }
.quote__field label { font-weight: 700; color: var(--beet); }
.quote__field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--muted); border-radius: 0; font: inherit; font-size: 1.0625rem; color: var(--beet); background: #fff; }
.quote__cities { margin: 0; padding: 0; list-style: none; background: var(--blush); }
.quote__cities li { min-height: 44px; padding: 10px 12px; color: var(--beet); cursor: pointer; }
.quote__cities li:hover, .quote__cities li.is-active { background: var(--t1); }
.quote__actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 2px; }
.quote__back { min-height: 52px; padding: 0 16px; border: 0; font: inherit; font-weight: 700; color: var(--beet); background: none; cursor: pointer; }
.quote__next { flex: 1; min-width: 0; padding-inline: 12px; color: #fff; background: var(--beet); white-space: nowrap; }
.quote__next.btn--wa { background: var(--wa); }
.quote__next.btn--wa:hover { background: var(--wa-dark); }
.quote__direct { align-self: center; display: flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 600; color: var(--wa-dark); }

/* 404 page */
.guia__topo { padding: 48px 0; color: #fff; background: var(--magenta); }
.guia__topo .lead { max-width: 40ch; margin: 16px 0 24px; font-size: 1.1875rem; }
.guia__lista { margin: 16px 0 0; padding: 0; list-style: none; }
.guia__lista a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--beet); }
.guia .bar { position: static; }
.guia { padding-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
