/* Fontes hospedadas no próprio sistema (licença OFL) — nada é pedido ao Google, o que preserva
   o IP do visitante (LGPD) e mantém o visual idêntico mesmo com o Google bloqueado. */
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/instrument-sans-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/instrument-sans-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/instrument-sans-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/instrument-sans-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');}

/* =====================================================================
   Atestly — landing, modal de acesso e telas públicas de conta
   Tokens e medidas do handoff de design (LANDING.md). Fonte: Instrument Sans + JetBrains Mono.
   ===================================================================== */
:root {
  --primary: #3b82f2;
  --primary-hover: #2b6fdc;
  --primary-ink: #1f55ad;
  --primary-soft: #e5edfb;
  --ink: #0e1726;
  --ink-hover: #24324a;
  --text-2: #4a5466;
  --text-3: #5b6576;
  --placeholder: #97a0ae;
  --bg: #f4f6fa;
  --surface: #fff;
  --line: #e3e7ee;
  --input-border: #d5dbe5;
  --chip: #f1f3f7;
  --success: #1f9d6b;
  --success-soft: #e3f4ec;
  --success-ink: #167a52;
  --error: #cf4436;
  --results-sub: #b9c3d3;
  --results-eyebrow: #8fb3f0;
  --cta-sub: #e3ecfb;
  --upload-border: #b9cdf3;
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-ink); }
button { font-family: var(--font); }
input::placeholder { color: var(--placeholder); }
[hidden] { display: none !important; }

@keyframes atPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes atSpin { to { transform: rotate(360deg); } }
@keyframes atIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Logo (wordmark + barra azul centralizada) ---------- */
.at-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .14em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.at-logo i {
  display: block;
  width: 1.12em;
  height: max(.12em, 2px);
  border-radius: 999px;
  background: var(--primary);
}
.at-logo--branco { color: #fff; }

/* ---------- Barra de progresso de rolagem ---------- */
.at-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--primary); z-index: 60; pointer-events: none;
}

/* ---------- Header ---------- */
.at-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 246, 250, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.at-header-in {
  max-width: 1240px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.at-header-logo { display: flex; color: var(--ink); }
.at-header-logo:hover { color: var(--ink); }
.at-nav { display: flex; gap: 28px; font-size: 15px; flex-wrap: wrap; }
.at-nav a { color: var(--text-2); }
.at-nav a:hover { color: var(--ink); }
.at-header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- Botões ---------- */
.at-btn {
  cursor: pointer; white-space: nowrap; border: 0; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, border-color .15s, color .15s;
}
.at-btn-ghost { padding: 9px 14px; border-radius: 999px; background: transparent; color: var(--primary-ink); font-size: 14.5px; gap: 7px; }
.at-btn-ghost:hover { background: var(--primary-soft); }
.at-btn-pill { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--input-border); background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.at-btn-pill:hover { border-color: var(--ink); }
.at-btn-dark { padding: 10px 17px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; }
.at-btn-dark:hover { background: var(--ink-hover); }
.at-btn-lg { padding: 15px 24px; border-radius: 14px; font-size: 16px; }
.at-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(59, 130, 242, 0.7); }
.at-btn-primary:hover { background: var(--primary-hover); }
.at-btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--input-border); }
.at-btn-outline:hover { border-color: var(--ink); }
.at-btn-branco { background: #fff; color: var(--ink); }
.at-btn-branco:hover { background: #eef3fc; }
.at-btn-vazado { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.at-btn-vazado:hover { border-color: #fff; }

/* ---------- Vídeo / cartão de apresentação ---------- */
.at-videosec { max-width: 1320px; width: 100%; margin: 0 auto; padding: 32px 24px 0; }
.at-video {
  border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg);
  box-shadow: 0 50px 100px -50px rgba(14, 23, 38, 0.35), 0 0 0 1px rgba(14, 23, 38, 0.05);
}
.at-video video { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.at-demo {
  max-width: 640px; margin: 0 auto; border-radius: 22px; background: #fff; padding: 28px;
  box-shadow: 0 40px 80px -40px rgba(14, 23, 38, 0.35), 0 0 0 1px rgba(14, 23, 38, 0.06);
  display: flex; flex-direction: column; gap: 12px;
}
.at-demo-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--primary); }
.at-demo-item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); }
.at-demo-check { width: 28px; height: 28px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.at-demo-item div { display: flex; flex-direction: column; gap: 2px; }
.at-demo-item strong { font-weight: 600; font-size: 16px; }
.at-demo-item span { font-size: 14px; color: var(--text-3); }
.at-demo-total { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 14px; background: var(--ink); color: #fff; }
.at-demo-total strong { font-weight: 600; }
.at-demo-total span { font-size: 28px; font-weight: 600; }

/* ---------- Hero ---------- */
.at-hero { max-width: 1240px; width: 100%; margin: 0 auto; padding: 56px 24px 72px; }
.at-hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.at-selo {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 9px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-ink); font-size: 13.5px; font-weight: 500;
}
.at-selo i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: atPulse 1.8s ease-in-out infinite; }
.at-h1 {
  margin: 0; font-size: clamp(42px, 6.4vw, 84px); max-width: 980px; line-height: 1;
  letter-spacing: -0.045em; font-weight: 600; text-wrap: balance;
}
.at-h1 em { font-style: normal; color: var(--primary); }
.at-lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 640px; text-wrap: pretty; }
.at-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.at-link-colab { border: 0; background: transparent; padding: 4px 8px; font-size: 15.5px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.at-link-colab:hover { color: var(--ink); }
.at-link-colab b { color: var(--primary); font-weight: 600; }
.at-bullets { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--text-2); }
.at-bullets span { display: flex; align-items: center; gap: 7px; }
.at-bullets i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* ---------- Faixa de públicos ---------- */
.at-publicos-sec { max-width: 1240px; width: 100%; margin: 0 auto; padding: 8px 24px 40px; }
.at-publicos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.at-publicos > div { background: #fff; padding: 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.at-mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-3); }
.at-publicos p { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.4; }

/* ---------- Seções ---------- */
.at-sec { max-width: 1240px; width: 100%; margin: 0 auto; padding: 80px 24px; }
.at-sec--recursos { padding: 40px 24px 90px; }
.at-sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: 44px; }
.at-eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--primary); }
.at-h2 { margin: 0; font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -0.035em; line-height: 1.05; font-weight: 600; text-wrap: balance; }

.at-passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.at-passo { background: #fff; border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 0 0 1px rgba(14, 23, 38, 0.06); }
.at-passo-n { font-family: var(--mono); font-size: 14px; color: var(--primary); }
.at-passo-t { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }
.at-passo-d { font-size: 16px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }

.at-recursos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1px;
  background: var(--line); border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
}
.at-recurso { background: #fff; padding: 30px; display: flex; flex-direction: column; gap: 10px; transition: background .15s; }
.at-recurso:hover { background: #f9fbfe; }
.at-recurso-ico {
  width: 38px; height: 38px; border-radius: 11px; background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-family: var(--mono); font-size: 14px; font-weight: 500;
}
.at-recurso-t { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin-top: 6px; }
.at-recurso-d { font-size: 15.5px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }

/* ---------- Resultados ---------- */
.at-resultados { background: var(--ink); color: #fff; }
.at-resultados-in { max-width: 1240px; margin: 0 auto; padding: 88px 24px; display: flex; flex-direction: column; gap: 48px; }
.at-resultados .at-eyebrow { color: var(--results-eyebrow); }
.at-numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.at-numero { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.at-numero-v { font-size: clamp(44px, 5vw, 64px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.at-numero-l { font-size: 16px; line-height: 1.5; color: var(--results-sub); }

/* ---------- CTA final ---------- */
.at-cta-sec { max-width: 1240px; width: 100%; margin: 0 auto; padding: 96px 24px; }
.at-cta {
  border-radius: 28px; background: var(--primary); color: #fff; padding: clamp(36px, 6vw, 72px);
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.at-cta-txt { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.at-cta h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.035em; line-height: 1.05; font-weight: 600; text-wrap: balance; }
.at-cta p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--cta-sub); }
.at-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Rodapé ---------- */
.at-footer { border-top: 1px solid var(--line); }
.at-footer-in {
  max-width: 1240px; margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--text-3);
}
.at-footer-l { display: flex; align-items: center; gap: 12px; }
.at-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.at-footer-links a { color: var(--text-3); }
.at-footer-links a:hover { color: var(--ink); }

/* ---------- Modal ---------- */
.at-overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(14, 23, 38, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; overflow-y: auto; padding: 20px;
}
.at-modal {
  margin: auto; width: 100%; max-width: 440px; background: #fff; border-radius: 24px; padding: 36px;
  box-shadow: 0 40px 100px -30px rgba(14, 23, 38, 0.5);
  display: flex; flex-direction: column; gap: 22px; animation: atIn .28s cubic-bezier(.2, .8, .2, 1);
}
.at-modal-top { display: flex; justify-content: space-between; align-items: flex-start; }
.at-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--chip); color: var(--text-2); font-size: 18px; cursor: pointer; }
.at-close:hover { background: #e5e9f0; }
.at-modal-head { display: flex; flex-direction: column; gap: 6px; }
.at-mtitle { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.at-msub { font-size: 15.5px; color: var(--text-3); }

.at-ok { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; background: var(--success-soft); color: var(--success-ink); }
.at-ok-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.at-ok div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.at-ok strong { font-weight: 600; }
.at-ok span { font-size: 14px; }
.at-stack { display: flex; flex-direction: column; gap: 14px; }

.at-form { display: flex; flex-direction: column; gap: 16px; }
.at-dois { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.at-field { display: flex; flex-direction: column; gap: 7px; }
.at-field > span, .at-field-top > span { font-size: 14px; font-weight: 500; }
.at-field-top { display: flex; justify-content: space-between; align-items: baseline; }
.at-field-top a { font-size: 13.5px; }
.at-input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--input-border);
  background: #fff; font: 400 16px var(--font); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.at-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59, 130, 242, 0.15); }
.at-input--senha { padding-right: 84px; }
.at-senha { position: relative; }
.at-mostrar {
  position: absolute; right: 8px; top: 8px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px;
  background: var(--chip); color: var(--text-2); font: 500 13px var(--font); cursor: pointer;
}
.at-iscas { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* campo-armadilha anti-robô */
.at-msg { font-size: 14px; color: var(--primary-ink); }
.at-msg.erro { color: var(--error); }
.at-submit {
  height: 52px; border-radius: 14px; border: 0; background: var(--primary); color: #fff; font: 600 16px var(--font);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 24px -12px rgba(59, 130, 242, 0.8); transition: background .15s;
}
.at-submit:hover { background: var(--primary-hover); }
.at-submit:disabled { opacity: .7; cursor: default; }
.at-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: atSpin .7s linear infinite; }
.at-switch { font-size: 14px; color: var(--text-3); text-align: center; }
.at-switch a { font-weight: 500; }
.at-btn-sec { height: 48px; border-radius: 12px; border: 1px solid var(--input-border); background: #fff; color: var(--ink); font: 600 15px var(--font); cursor: pointer; }
.at-btn-sec:hover { border-color: var(--ink); }
.at-nota { font-size: 13px; color: var(--text-3); text-align: center; }

/* ---------- Páginas simples de conta (redefinir senha etc.) ---------- */
.at-pagina { min-height: 100vh; display: flex; padding: 20px; }
.at-pagina .at-modal { animation: none; }
.at-pagina-topo { display: flex; justify-content: center; }

@media (max-width: 640px) {
  /* Cabeçalho fixo compacto no celular: uma linha só (logo + Entrar + Cadastre-se). A navegação e o
     "Enviar atestado" do cabeçalho saem daqui — as seções seguem na página e o envio do colaborador
     continua no "É colaborador? Envie seu atestado →" do topo. */
  .at-header-in { flex-wrap: nowrap; justify-content: space-between; padding: 10px 16px; gap: 10px; }
  .at-nav, .at-btn-ghost { display: none; }
  .at-header-actions { gap: 8px; flex-wrap: nowrap; }
  .at-btn-pill, .at-btn-dark { padding: 9px 14px; font-size: 14px; }
}
@media (max-width: 520px) {
  .at-modal { padding: 28px 22px; }
}
@media (max-width: 360px) {
  .at-header-in { padding: 10px 12px; gap: 8px; }
  .at-header-actions { gap: 6px; }
  .at-btn-pill, .at-btn-dark { padding: 8px 11px; font-size: 13.5px; }
  .at-header-logo .at-logo { font-size: 22px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .at-selo i { animation: none; }
}
