/* ============================================================
   Viora Saúde — design system "clínico-botânico premium"
   Tipografia editorial (Fraunces + Hanken Grotesk), fundo
   orgânico, micro-interações e scroll reveal. Compliance-first.
   ============================================================ */

:root {
  /* Marca */
  --azul: #075EA8;
  --azul-profundo: #004A91;
  --azul-tec: #0E8ACB;
  --verde: #2BAE66;
  --verde-escuro: #16834A;
  --verde-agua: #39BFA7;
  --grafite: #2A3340;
  --cinza-texto: #5C6675;
  --ink: #0A2440;

  /* Superfícies */
  --fundo: #F4F8F5;        /* off-white levemente mentolado */
  --branco: #FFFFFF;
  --creme: #FBFDFB;
  --linha: #E2EAE6;
  --cinza-claro: #EDF3EF;

  /* Tokens */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10,36,64,.05), 0 2px 8px rgba(10,36,64,.05);
  --shadow: 0 10px 34px rgba(7,94,168,.10);
  --shadow-lg: 0 24px 60px rgba(7,94,168,.16);
  --ring: 0 0 0 3px rgba(14,138,203,.28);
  --maxw: 1160px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --grad-brand: linear-gradient(120deg, var(--azul) 0%, var(--azul-tec) 55%, var(--verde-agua) 120%);
  --grad-green: linear-gradient(120deg, var(--verde) 0%, var(--verde-agua) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grafite);
  background: var(--fundo);
  line-height: 1.62;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  /* atmosfera: dois focos de luz suaves + grão fino */
  background-image:
    radial-gradient(60% 50% at 88% -5%, rgba(57,191,167,.16), transparent 70%),
    radial-gradient(55% 45% at -8% 8%, rgba(14,138,203,.12), transparent 70%);
  background-attachment: fixed;
}
::selection { background: rgba(43,174,102,.22); }

a { color: var(--azul); text-decoration: none; transition: color .15s; }
a:hover { color: var(--azul-profundo); }
img { max-width: 100%; height: auto; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; position: relative; }
.section--tint { background:
  linear-gradient(180deg, rgba(237,243,239,.7), rgba(237,243,239,.7)),
  var(--creme); }
.narrow { max-width: 860px; }

/* Tipografia */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 500; letter-spacing: -.012em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }
p { color: var(--cinza-texto); margin: 0 0 1rem; }
.lead { font-size: 1.18rem; color: var(--grafite); line-height: 1.6; }
.muted { color: var(--cinza-texto); font-size: .9rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .72rem; color: var(--verde-escuro);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--verde); border-radius: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251,253,251,.82); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--linha); }
.site-header .container { display: flex; align-items: center; gap: 18px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.28rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand .mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-sm); }
.brand .mark svg { width: 22px; height: 22px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--grafite); font-weight: 600; font-size: .95rem; }
.nav a:not(.btn)::after { content: ""; display: block; height: 2px; width: 0; background: var(--verde); transition: width .22s ease; }
.nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* Botões */
.btn { --bg: var(--azul); display: inline-flex; align-items: center; gap: 9px; justify-content: center; padding: 13px 22px; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .22s ease, background .22s; line-height: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px rgba(7,94,168,.28); }
.btn--primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(7,94,168,.36); }
.btn--green { background: var(--grad-green); color: #fff; box-shadow: 0 8px 20px rgba(22,131,74,.26); }
.btn--green:hover { color: #fff; }
.btn--ghost { background: rgba(255,255,255,.7); color: var(--azul-profundo); border-color: var(--linha); }
.btn--ghost:hover { color: var(--azul-profundo); border-color: var(--azul-tec); background: #fff; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 84px 0 64px; position: relative; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-top: .35em; }
.hero h1 em { font-style: italic; color: var(--verde-escuro); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 13px; margin: 26px 0 14px; }
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: -1; }
.blob-1 { width: 420px; height: 420px; right: -120px; top: -120px; background: radial-gradient(circle at 30% 30%, rgba(57,191,167,.5), transparent 62%); }
.blob-2 { width: 360px; height: 360px; left: -140px; bottom: -160px; background: radial-gradient(circle at 60% 40%, rgba(14,138,203,.34), transparent 62%); }
.leaf-deco { position: absolute; right: 4%; top: 8%; width: 180px; opacity: .12; color: var(--verde-escuro); z-index: -1; transform: rotate(8deg); }

/* Painel de status do hero */
.hero-panel { background: rgba(255,255,255,.78); border: 1px solid var(--linha); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; backdrop-filter: blur(8px); }
.hero-panel .head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.hero-panel .head b { font-family: var(--font-display); color: var(--ink); }
.hero-panel .row { display: flex; align-items: center; gap: 13px; padding: 13px 16px; margin: 6px; border-radius: var(--radius-sm); background: var(--creme); border: 1px solid var(--linha); font-weight: 600; color: var(--grafite); font-size: .94rem; }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; position: relative; }
.dot--ok { background: var(--verde); }
.dot--wait { background: var(--azul-tec); box-shadow: 0 0 0 0 rgba(14,138,203,.5); animation: pulse 2.2s infinite; }
.dot--pend { background: #E0A100; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,138,203,.45); } 70% { box-shadow: 0 0 0 9px rgba(14,138,203,0); } 100% { box-shadow: 0 0 0 0 rgba(14,138,203,0); } }

/* Trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--cinza-texto); }
.trust svg { width: 17px; height: 17px; color: var(--verde-escuro); }

/* Cards & grids */
.cards { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: rgba(255,255,255,.85); border: 1px solid var(--linha); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D4E4DC; }
a.card:hover { color: inherit; }
.card h3 { display: flex; align-items: center; gap: 12px; }
.icon { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, rgba(14,138,203,.12), rgba(57,191,167,.16)); color: var(--azul); display: grid; place-items: center; flex: none; }
.icon svg { width: 22px; height: 22px; }
.icon--green { background: linear-gradient(135deg, rgba(43,174,102,.14), rgba(57,191,167,.2)); color: var(--verde-escuro); }

/* Steps */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { display: flex; gap: 16px; align-items: flex-start; background: rgba(255,255,255,.8); border: 1px solid var(--linha); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.step:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); flex: none; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff; width: 42px; height: 42px; border-radius: 12px; background: var(--grad-brand); display: grid; place-items: center; }
.step strong { color: var(--ink); }

/* Notices / alerts */
.notice { border-left: 4px solid var(--azul-tec); background: rgba(255,255,255,.85); border-radius: var(--radius-sm); padding: 15px 18px; box-shadow: var(--shadow-sm); }
.notice--warn { border-left-color: #E0A100; }
.notice strong { color: var(--ink); }
.alert { padding: 13px 17px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 600; border: 1px solid transparent; }
.alert--success { background: #E6F6EC; color: var(--verde-escuro); border-color: #C7ECD5; }
.alert--error { background: #FCEBEC; color: #B3261E; border-color: #F3CFD1; }

/* Forms */
.form-card { background: rgba(255,255,255,.9); border: 1px solid var(--linha); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.18rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--linha); width: 100%; }
.field { margin-bottom: 15px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--grafite); }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=tel], input[type=file], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--linha); border-radius: var(--radius-sm); font: inherit; font-size: .98rem; color: var(--grafite); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul-tec); box-shadow: var(--ring); }
textarea { resize: vertical; }
.check { display: flex; gap: 11px; align-items: flex-start; margin: 10px 0; padding: 11px 13px; border: 1px solid var(--linha); border-radius: var(--radius-sm); background: var(--creme); cursor: pointer; transition: border-color .15s, background .15s; }
.check:hover { border-color: var(--verde-agua); }
.check input { width: auto; margin-top: 3px; accent-color: var(--verde); }
.errorlist, .errornote { color: #B3261E; font-size: .84rem; margin: 5px 0; }
.helptext { color: var(--cinza-texto); font-size: .82rem; margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* Stepper */
.stepper { display: flex; gap: 8px; margin: 18px 0 22px; flex-wrap: wrap; }
.stepper span { font-size: .78rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--cinza-claro); color: var(--cinza-texto); }
.stepper .on { background: var(--azul-profundo); color: #fff; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge--ok { background: #E6F6EC; color: var(--verde-escuro); }
.badge--wait { background: #E4F1FB; color: var(--azul-profundo); }
.badge--pend { background: #FFF3D6; color: #946200; }
.badge--no { background: #FCEBEC; color: #B3261E; }

/* FAQ */
details.card { padding: 0; }
details.card summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--ink); }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--verde); transition: transform .2s; }
details.card[open] summary::after { transform: rotate(45deg); }
details.card > p { padding: 0 24px 20px; margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #BFD2E4; padding: 56px 0 30px; margin-top: 56px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 90% 0%, rgba(57,191,167,.18), transparent 70%); }
.site-footer .container { position: relative; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1.05rem; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 18px; font-size: .82rem; color: #8FA8C0; }

/* Age gate */
.agegate { position: fixed; inset: 0; z-index: 100; background: rgba(6,26,46,.78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .3s ease; }
.agegate[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.agegate .box { background: var(--creme); border-radius: 24px; max-width: 560px; padding: 38px; box-shadow: var(--shadow-lg); animation: rise .4s cubic-bezier(.2,.7,.2,1); position: relative; overflow: hidden; }
.agegate .box::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(57,191,167,.22), transparent 65%); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.agegate .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.agegate .deny { display: none; background: #FCEBEC; color: #B3261E; padding: 15px; border-radius: var(--radius-sm); margin-top: 18px; font-weight: 600; }

/* Bot */
.bot-launch { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; background: var(--grad-brand); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow-lg); display: grid; place-items: center; transition: transform .2s; }
.bot-launch:hover { transform: scale(1.06) rotate(-4deg); }
.bot-launch svg { width: 26px; height: 26px; }
.bot-panel { position: fixed; right: 22px; bottom: 96px; z-index: 60; width: 348px; max-width: calc(100vw - 44px); background: var(--creme); border: 1px solid var(--linha); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .25s ease; }
.bot-panel[hidden] { display: none; }
.bot-head { background: var(--grad-brand); color: #fff; padding: 16px 18px; font-family: var(--font-display); font-weight: 600; }
.bot-head small { display: block; font-family: var(--font-body); font-weight: 400; opacity: .9; font-size: .76rem; margin-top: 2px; }
.bot-log { padding: 16px; height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--fundo); }
.bot-msg { padding: 10px 13px; border-radius: 14px; font-size: .9rem; max-width: 86%; line-height: 1.45; }
.bot-msg.bot { background: #fff; border: 1px solid var(--linha); align-self: flex-start; border-bottom-left-radius: 4px; }
.bot-msg.me { background: var(--azul); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--linha); background: var(--creme); }
.bot-form input { flex: 1; }
.bot-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.bot-chip { display: inline-block; background: #fff; border: 1px solid var(--azul-tec); color: var(--azul-profundo);
  border-radius: 999px; padding: 7px 13px; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: var(--font-body); text-decoration: none; }
.bot-chip:hover { background: var(--azul); color: #fff; border-color: var(--azul); text-decoration: none; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 70; max-width: 720px; margin: 0 auto;
  background: var(--ink); color: #DCE7F2; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; color: #C7D6E6; font-size: .9rem; flex: 1 1 320px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
@media (max-width: 560px) { .cookie-banner { left: 10px; right: 10px; bottom: 10px; } }

/* Doc list */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.doc-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: rgba(255,255,255,.85); border: 1px solid var(--linha); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; color: var(--grafite); }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: .08s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: .16s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: .24s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: .32s; }
[data-reveal-stagger].is-visible > *:nth-child(n+6) { transition-delay: .4s; }

/* Hero load animation */
.hero [data-load] { opacity: 0; transform: translateY(18px); animation: heroIn .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero [data-load="1"] { animation-delay: .05s; }
.hero [data-load="2"] { animation-delay: .15s; }
.hero [data-load="3"] { animation-delay: .25s; }
.hero [data-load="4"] { animation-delay: .35s; }
.hero [data-load="5"] { animation-delay: .5s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal], [data-reveal-stagger] > *, .hero [data-load] { opacity: 1 !important; transform: none !important; }
}

/* Responsivo */
@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--creme); border-bottom: 1px solid var(--linha); padding: 8px 22px 18px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--linha); }
  .nav a.btn { margin-top: 10px; }
  .nav-toggle { display: block; margin-left: auto; }
  .section { padding: 56px 0; }
}
