/* Espaço Akairos — estilo compartilhado
   Porte direto do design system do guia de boas-vindas (projeto Lovable "patient-journey-welcome"):
   mesmos tokens, mesmos utilitários (glass, text-gradient, bg-gradient-warm, aurora) e mesma composição. */

:root {
  --radius: 1rem;
  --background: oklch(0.962 0.016 75);
  --foreground: oklch(0.29 0.03 45);
  --card: oklch(0.985 0.01 80 / 70%);
  --primary: oklch(0.6 0.105 38);
  --primary-deep: oklch(0.48 0.095 36);
  --primary-foreground: oklch(0.985 0.012 80);
  --muted: oklch(0.93 0.02 75);
  --muted-foreground: oklch(0.5 0.03 45);
  --gold: oklch(0.74 0.1 85);
  --gold-soft: oklch(0.91 0.04 85);
  --border: oklch(0.87 0.03 70);
  --destructive: oklch(0.5 0.16 30);
  --gradient-warm: linear-gradient(120deg, var(--primary), var(--gold));
  --shadow-soft: 0 30px 60px -30px oklch(0.48 0.095 36 / 35%);
  --shadow-glow: 0 0 0 1px oklch(1 0 0 / 50%) inset, 0 20px 50px -25px oklch(0.48 0.095 36 / 40%);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max: 72rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.pular { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--primary); color: var(--primary-foreground); padding: 8px 16px; border-radius: 999px; }
.pular:focus { left: 8px; }

/* ---------- utilitários do design system ---------- */

.glass {
  background: var(--card);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid oklch(1 0 0 / 55%); box-shadow: var(--shadow-glow);
}
.text-gradient { background: var(--gradient-warm); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; padding-right: .06em; }
.muted { color: var(--muted-foreground); }

/* ---------- fundo vivo ---------- */

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 9999px; filter: blur(80px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -10vw; top: -12vw; background: oklch(0.8 0.08 45); }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; right: -8vw; top: 20vh; background: oklch(0.88 0.09 85); animation-duration: 28s; }
.aurora span:nth-child(3) { width: 40vw; height: 40vw; left: 25vw; bottom: -18vw; background: oklch(0.82 0.06 20); animation-duration: 34s; }
.aurora::after {
  content: ""; position: absolute; inset: 0; opacity: .18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vw, 4vh) scale(1.12); } 100% { transform: translate(-4vw, 8vh) scale(.95); } }

/* ---------- barra de progresso ---------- */

.progresso { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 4px; background: var(--gradient-warm); transform-origin: left; transform: scaleX(0); }

/* ---------- cabeçalho ---------- */

.topo { position: fixed; inset: 0 0 auto 0; z-index: 40; padding: 16px 20px 0; }
.topo__barra { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 999px; padding: 10px 10px 10px 20px; }
.marca { text-decoration: none; line-height: 1.25; }
.marca b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; }
.marca small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted-foreground); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.botao) { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted-foreground); transition: color .2s; }
.nav a:not(.botao):hover, .nav a[aria-current="page"] { color: var(--foreground); }
@media (max-width: 760px) { .nav a:not(.botao) { display: none; } }

/* ---------- botões ---------- */

.botao {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 12px 20px; border: 0; cursor: pointer;
  background: var(--primary); color: var(--primary-foreground);
  font: 500 16px/1.2 var(--sans); text-decoration: none;
  transition: background .2s, gap .3s var(--ease), transform .2s;
}
.botao:hover { background: var(--primary-deep); gap: 12px; }
.botao:active { transform: scale(.98); }
.botao svg { width: 16px; height: 16px; flex: none; }
.botao--pequeno { padding: 8px 16px; font-size: 14px; }
.botao--contorno { background: transparent; color: var(--primary-deep); box-shadow: inset 0 0 0 1.5px oklch(0.6 0.105 38 / 60%); }
.botao--contorno:hover { background: oklch(1 0 0 / 50%); }
.botao--claro { background: var(--background); color: var(--foreground); padding: 14px 24px; }
.botao--claro:hover { background: var(--background); gap: 16px; }
.botao:disabled { opacity: .55; cursor: not-allowed; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 40px; }

/* ---------- hero ---------- */

.hero { max-width: var(--max); margin: 0 auto; padding: 144px 20px 80px; }
@media (min-width: 768px) { .hero { padding-top: 176px; } }
.kicker { margin: 0 0 20px; font-size: 14px; text-transform: uppercase; letter-spacing: .25em; color: var(--primary-deep); }
.hero h1 { max-width: 15ch; font-size: clamp(44px, 7vw, 88px); line-height: 1.02; }
.hero .lede { margin-top: 32px; max-width: 42rem; font-size: 18px; line-height: 1.65; color: var(--muted-foreground); }
@media (min-width: 768px) { .hero .lede { font-size: 20px; } }
.hero__grade { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero__grade { grid-template-columns: 1.25fr .75fr; } .hero__grade h1 { font-size: clamp(44px, 5.6vw, 76px); } }
.hero__foto { position: relative; max-width: 380px; width: 100%; justify-self: center; }
.hero__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-soft); }
.hero__foto::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; z-index: -1; border-radius: 28px; background: var(--gradient-warm); opacity: .55; }
.hero__selo { margin-top: 40px; display: inline-block; border-radius: 24px; padding: 16px 24px; }
.hero__selo small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted-foreground); }
.hero__selo b { display: block; margin-top: 4px; font-family: var(--serif); font-weight: 400; font-size: 22px; }

/* título palavra por palavra */
.palavras .w { display: inline-block; margin-right: .25em; }
.js .palavras .w { opacity: 0; transform: translateY(40px) rotate(3deg); animation: palavra .9s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .08s); }
@keyframes palavra { to { opacity: 1; transform: none; } }
.js .entra { opacity: 0; animation: entra 1s ease forwards; animation-delay: var(--d, .9s); }
@keyframes entra { to { opacity: 1; } }

/* ---------- jornada ---------- */

.jornada { margin-top: 80px; }
.jornada__topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.jornada__topo p { font-size: 14px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted-foreground); }
.jornada__topo svg { width: 16px; height: 16px; color: var(--primary); animation: quica 1s infinite; }
@keyframes quica { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); } 50% { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1); } }
.jornada__trilho { margin: 0 -20px; padding: 0 20px 16px; overflow-x: auto; }
.jornada__lista { position: relative; min-width: 760px; }
.jornada ol { position: relative; display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
.jornada__linha { position: absolute; left: 20px; right: 20px; top: 20px; height: 1px; background: var(--gradient-warm); transform-origin: left; }
.js .jornada__linha { transform: scaleX(0); animation: linha 1.8s ease-in-out 1.1s forwards; }
@keyframes linha { to { transform: scaleX(1); } }
.jornada li { position: relative; width: 112px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.js .jornada li { opacity: 0; transform: translateY(16px); animation: sobe .6s ease forwards; animation-delay: calc(1.2s + var(--i) * .18s); }
@keyframes sobe { to { opacity: 1; transform: none; } }
.jornada a { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.jornada__ponto { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 14px; border: 1px solid oklch(0.6 0.105 38 / 50%); background: var(--background); color: var(--primary-deep); transition: transform .2s, background .2s, color .2s; }
.jornada a:hover .jornada__ponto { transform: scale(1.1); background: var(--primary); color: var(--primary-foreground); }
.jornada li:first-child .jornada__ponto { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.jornada li:first-child .jornada__ponto::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: oklch(0.6 0.105 38 / 40%); animation: ping 1s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.jornada__ponto span { position: relative; }
.jornada b { margin-top: 12px; font-size: 14px; font-weight: 500; line-height: 1.25; }
.jornada small { font-size: 12px; color: var(--muted-foreground); }

/* ---------- seções ---------- */

.secao { max-width: var(--max); margin: 0 auto; padding: 80px 20px; scroll-margin-top: 96px; }
@media (min-width: 768px) { .secao { padding: 112px 20px; } }
.secao > .kicker { margin-bottom: 16px; }
.secao h2 { max-width: 48rem; margin-bottom: 48px; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.1; }
.texto-lg { font-size: 18px; line-height: 1.65; }
.dois { display: grid; gap: 24px; }
@media (min-width: 768px) { .dois { grid-template-columns: 1fr 1fr; } }
.tres { display: grid; gap: 20px; }
@media (min-width: 768px) { .tres { grid-template-columns: repeat(3, 1fr); } }

/* animação de entrada (Reveal) */
.js .r { opacity: 0; transform: translateY(var(--y, 32px)); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js .r.in { opacity: 1; transform: none; filter: none; }

/* cartões */
.cartao { border-radius: 28px; padding: 32px; height: 100%; }
.cartao h3 { font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
.cartao p { color: var(--muted-foreground); }
.cartao .palavra { display: block; font-family: var(--serif); font-size: 32px; line-height: 1.1; margin-bottom: 16px; width: fit-content; }

/* fundadora (cartão horizontal) */
.perfil { display: flex; flex-direction: column; gap: 32px; border-radius: 28px; padding: 32px; }
@media (min-width: 768px) { .perfil { flex-direction: row; align-items: center; padding: 40px; } }
.perfil img { width: 100%; max-width: 240px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-soft); flex: none; }
.perfil h3 { font-size: 34px; }
.perfil .assinatura { margin: 4px 0 16px; font-size: 14px; color: var(--muted-foreground); }
.perfil p:not(.assinatura) { font-size: 18px; }

/* equipe */
.pessoa { border-radius: 28px; padding: 16px 16px 28px; height: 100%; }
.pessoa img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; margin-bottom: 20px; }
.pessoa h3 { font-size: 26px; padding: 0 8px; }
.pessoa .assinatura { padding: 0 8px; margin: 2px 0 12px; font-size: 14px; color: var(--muted-foreground); }
.pessoa p:not(.assinatura) { padding: 0 8px; color: var(--muted-foreground); }

/* linha do tempo (Processo) */
.processo { position: relative; margin: 0 0 0 20px; }
.processo__lista { list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .processo { margin-left: 32px; } }
.processo__base, .processo__fio { position: absolute; left: 0; top: 0; width: 1px; }
.processo__base { bottom: 0; background: var(--border); }
.processo__fio { height: 0; background: var(--gradient-warm); }
.processo li { position: relative; padding: 0 0 56px 40px; }
@media (min-width: 768px) { .processo li { padding-left: 56px; } }
.processo li:last-child { padding-bottom: 0; }
.processo__n { position: absolute; left: -16px; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); font-size: 14px; box-shadow: var(--shadow-soft); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.js .processo__n { transform: scale(0); }
.js .processo li.in .processo__n { transform: scale(1); }
.processo h3 { font-size: clamp(24px, 3vw, 30px); }
.processo p { margin-top: 8px; max-width: 36rem; font-size: 18px; color: var(--muted-foreground); }

/* listas */
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { position: relative; padding-left: 28px; margin-bottom: 14px; color: var(--muted-foreground); }
.lista li:last-child { margin-bottom: 0; }
.lista li svg { position: absolute; left: 0; top: 4px; width: 18px; height: 18px; color: var(--primary); }
.lista--ouro li svg { color: var(--gold); }

/* vídeos */
.reels { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 326px), 360px)); }
.reels .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; border-radius: 24px !important; overflow: hidden; }
.reel-reserva { display: flex; align-items: center; justify-content: center; aspect-ratio: 9 / 14; border-radius: 24px; text-decoration: none; font-weight: 500; }

/* acordeão */
.acordeao { display: flex; flex-direction: column; gap: 12px; max-width: 56rem; }
.acordeao details { border-radius: 24px; overflow: hidden; }
.acordeao summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-family: var(--serif); font-size: 20px; }
.acordeao summary::-webkit-details-marker { display: none; }
.acordeao summary svg { width: 20px; height: 20px; flex: none; color: var(--primary); transition: transform .3s; }
.acordeao details[open] summary svg { transform: rotate(180deg); }
.acordeao details p { padding: 0 24px 24px; color: var(--muted-foreground); }
.acordeao details[open] p { animation: abre .35s ease; }
@keyframes abre { from { opacity: 0; transform: translateY(-6px); } }

/* nota dourada */
.nota-ouro { margin-top: 32px; border-radius: 24px; border-left: 4px solid var(--gold); background: oklch(0.91 0.04 85 / 60%); padding: 24px; }
.nota-ouro b { font-weight: 500; display: block; }
.nota-ouro p { color: var(--muted-foreground); }

/* bloco final em gradiente */
.final { max-width: var(--max); margin: 0 auto; padding: 0 20px 128px; }
.final__bloco { position: relative; overflow: hidden; border-radius: 40px; padding: 40px; background: var(--gradient-warm); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
@media (min-width: 768px) { .final__bloco { padding: 64px; } }
.final__bloco .kicker { color: inherit; opacity: .8; }
.final__bloco h2 { margin-top: 12px; max-width: 42rem; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.1; }
.final__bloco p { margin-top: 16px; max-width: 36rem; font-size: 18px; opacity: .9; }
.final__bloco .acoes { margin-top: 32px; }

/* ---------- rodapé ---------- */

.rodape { max-width: var(--max); margin: 0 auto; padding: 0 20px 112px; font-size: 14px; color: var(--muted-foreground); }
.rodape__grade { display: grid; gap: 24px; border-top: 1px solid var(--border); padding-top: 32px; }
@media (min-width: 760px) { .rodape__grade { grid-template-columns: 1fr auto; } .rodape { padding-bottom: 48px; } }
.rodape p { margin-bottom: 6px; }
.rodape strong { font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--foreground); }
.rodape nav { display: flex; flex-wrap: wrap; gap: 20px; }
.rodape nav a { text-decoration: none; }
.rodape nav a:hover { color: var(--foreground); }
.rodape .emergencia { color: var(--primary-deep); font-weight: 500; }

/* ---------- celular ---------- */

.barra-celular { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 45; }
.barra-celular .botao { width: 100%; justify-content: center; padding: 14px 20px; box-shadow: var(--shadow-soft); }
@media (min-width: 760px) { .barra-celular { display: none; } }

/* ---------- cookies ---------- */

.consentimento { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); max-width: 400px; padding: 20px 22px; border-radius: 24px; font-size: 14px; }
@media (min-width: 760px) { .consentimento { left: auto; right: 20px; bottom: 20px; max-width: 360px; } }
.consentimento p { color: var(--muted-foreground); margin-bottom: 14px; }
.consentimento .acoes { margin-top: 0; gap: 8px; }
.consentimento a { color: var(--primary-deep); }

/* ---------- formulário ---------- */

.formulario { display: grid; gap: 18px; max-width: 30rem; margin-top: 40px; }
.campo label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.campo input[type="text"], .campo input[type="tel"] { width: 100%; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--border); background: oklch(0.985 0.01 80); font: 400 16px var(--sans); color: var(--foreground); transition: border-color .2s, box-shadow .2s; }
.campo input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px oklch(0.6 0.105 38 / 15%); }
.aceite { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted-foreground); }
.aceite input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.aceite a { color: var(--primary-deep); }
.erro { color: var(--destructive); font-weight: 500; font-size: 15px; }
.sucesso { margin-top: 40px; max-width: 30rem; border-radius: 28px; padding: 32px; }
.sucesso h2 { font-size: 30px; margin-bottom: 8px; }
.sucesso p { color: var(--muted-foreground); }

/* ---------- documento ---------- */

.documento { max-width: 48rem; }
.documento h2 { font-size: 26px; margin: 40px 0 12px; }
.documento p { color: var(--muted-foreground); margin-bottom: 14px; }
.documento a { color: var(--primary-deep); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span, .jornada__topo svg, .jornada__ponto::before { animation: none !important; }
  .js .r, .js .palavras .w, .js .entra, .js .jornada li, .js .jornada__linha, .js .processo__n { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
}
