/* =====================================================================
   flowlabs — folha de estilo compartilhada
   Tokens e regras vindos do handoff de design (hi-fi). Não alterar cores.
   ===================================================================== */

html, body { margin: 0; padding: 0; background: #F4F6F9; scroll-behavior: smooth; }
body { font-family: Inter, system-ui, sans-serif; color: #0E1726; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
img, svg { max-width: 100%; }

/* Links de corpo: cobalto -> ink + sublinhado (regra de marca) */
a { color: #1B4FE0; text-decoration: none; }
a:hover { color: #0E1726; text-decoration: underline; }

:focus-visible { outline: 3px solid #1B4FE0; outline-offset: 2px; border-radius: 3px; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* Animações do diagrama do herói */
@keyframes fl-draw { 0%,6% { stroke-dashoffset: 540; } 40%,88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 540; } }
@keyframes fl-fade { 0%,42% { opacity: 0; } 58%,88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fl-dash { to { stroke-dashoffset: -220; } }
@keyframes fl-pulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } html { scroll-behavior: auto; } }

/* ------------------------- CABEÇALHO ------------------------- */
.fl-header { position: sticky; top: 0; z-index: 30; background: rgba(244,246,249,.94); backdrop-filter: blur(10px); border-bottom: 1px solid #DFE5EE; }
.fl-header-in { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.fl-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.fl-logo:hover { text-decoration: none; }
.fl-wordmark { font-family: 'Space Grotesk', sans-serif; font-size: 19px; color: #0E1726; }
.fl-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.fl-nav-link { font-size: 14px; color: #0E1726; }
.fl-nav-link:hover { color: #1B4FE0; text-decoration: none; }
.fl-lang { display: flex; align-items: center; gap: 3px; border: 1px solid #DFE5EE; border-radius: 999px; padding: 3px; background: #fff; }
.fl-lang a { border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 600; color: #8794A8; }
.fl-lang a:hover { text-decoration: none; color: #0E1726; }
.fl-lang a.is-on { background: #0E1726; color: #fff; }
.fl-enter { border: 1px solid #1B4FE0; background: transparent; color: #1B4FE0; font-size: 14px; font-weight: 600; padding: 10px 17px; border-radius: 8px; cursor: pointer; }
.fl-enter:hover { background: #1B4FE0; color: #fff; }
.fl-cta { background: #1B4FE0; color: #fff; font-size: 14px; font-weight: 600; padding: 11px 18px; border-radius: 8px; }
.fl-cta:hover { background: #0E1726; color: #fff; text-decoration: none; }

/* ------------------------- BOTÕES ------------------------- */
.fl-btn-ink { background: #0E1726; color: #fff; font-size: 15px; font-weight: 600; padding: 15px 26px; border-radius: 10px; display: inline-block; }
.fl-btn-ink:hover { background: #1B4FE0; color: #fff; text-decoration: none; }
.fl-btn-blue { background: #1B4FE0; color: #fff; font-size: 15px; font-weight: 600; padding: 15px 26px; border-radius: 10px; display: inline-block; }
.fl-btn-blue:hover { background: #0E1726; color: #fff; text-decoration: none; }

/* --------------------- CARTÕES-PORTA (home) --------------------- */
.fl-porta { min-width: 0; display: flex; flex-direction: column; text-decoration: none; border-radius: 16px; overflow: hidden; }
.fl-porta:hover { text-decoration: none; }
.fl-porta.is-rota { background: #fff; border: 1px solid #DFE5EE; }
.fl-porta.is-rota:hover { border-color: #1B4FE0; }
.fl-porta.is-clinica { background: #fff; border: 1px solid #DFE5EE; }
.fl-porta.is-clinica:hover { border-color: #00B8B0; }
.fl-porta.is-sob { background: #0E1726; border: 1px solid #0E1726; }
.fl-porta.is-sob:hover { background: #16203A; }

/* ------------------------- RODAPÉ ------------------------- */
.fl-foot-link { font-size: 14px; color: #fff; }
.fl-foot-link:hover { color: #00B8B0; text-decoration: underline; }

/* -------------- SELETOR DE LOGIN ("Entrar") -------------- */
.fl-modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(14,23,38,.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 24px; }
.fl-modal-overlay.open { display: flex; }
.fl-modal { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 2px 4px rgba(14,23,38,.04), 0 24px 60px rgba(14,23,38,.28); }
.fl-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.fl-modal-title { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.fl-modal-sub { margin: 2px 0 20px; font-size: 14px; line-height: 1.55; color: #8794A8; }
.fl-modal-close { border: none; background: transparent; color: #8794A8; font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.fl-modal-close:hover { color: #0E1726; }
.fl-login-opt { display: flex; align-items: center; gap: 14px; text-decoration: none; border: 1px solid #DFE5EE; border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.fl-login-opt:hover { text-decoration: none; }
.fl-login-opt.is-rota:hover { border-color: #1B4FE0; }
.fl-login-opt.is-clinica:hover { border-color: #00B8B0; }
.fl-login-opt.is-flow:hover { border-color: #0E1726; }
.fl-login-opt.is-soon { opacity: .6; cursor: default; }
.fl-login-bar { width: 4px; align-self: stretch; border-radius: 999px; flex: none; }
.fl-login-name { font-family: 'Space Grotesk', sans-serif; font-size: 18px; color: #0E1726; }
.fl-login-desc { font-size: 13px; color: #8794A8; margin-top: 2px; }
.fl-login-arrow { margin-left: auto; color: #8794A8; font-size: 18px; flex: none; }
.fl-login-soon { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .1em; color: #8794A8; background: #F4F6F9; border-radius: 999px; padding: 4px 9px; flex: none; }

/* -------------- BOTÕES DAS PÁGINAS DE PRODUTO -------------- */
.fl-btn-blue-w { background: #1B4FE0; color: #fff; font-size: 15px; font-weight: 600; padding: 15px 26px; border-radius: 10px; display: inline-block; }
.fl-btn-blue-w:hover { background: #fff; color: #0E1726; text-decoration: none; }
.fl-btn-teal-w { background: #00B8B0; color: #0E1726; font-size: 15px; font-weight: 600; padding: 15px 26px; border-radius: 10px; display: inline-block; }
.fl-btn-teal-w:hover { background: #fff; color: #0E1726; text-decoration: none; }
.fl-btn-ink-teal { background: #0E1726; color: #fff; font-size: 15px; font-weight: 600; padding: 15px 26px; border-radius: 10px; display: inline-block; }
.fl-btn-ink-teal:hover { background: #00B8B0; color: #0E1726; text-decoration: none; }
.fl-back { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #8794A8; letter-spacing: .1em; }
.fl-back:hover { color: #fff; text-decoration: none; }

/* Botão do formulário de contato (Ink -> Cobalto), layout fica inline na página */
.fl-btn-form { background: #0E1726; color: #fff; font-size: 15px; font-weight: 600; border-radius: 10px; cursor: pointer; }
.fl-btn-form:hover { background: #1B4FE0; color: #fff; text-decoration: none; }

/* Cartão do herói do blog em destaque (Cobalto -> branco) */
.fl-btn-blue-w2 { background: #1B4FE0; color: #fff; font-size: 15px; font-weight: 600; padding: 14px 24px; border-radius: 10px; display: inline-block; }
.fl-btn-blue-w2:hover { background: #fff; color: #0E1726; text-decoration: none; }
