/* Site do Medulla (J-T-20, #557, #558, #559; #495 para privacidade e termos).
   Layout: faixas de largura total que alternam claro e escuro; conteúdo em coluna de 1160px.
   Fontes da identidade da Vertebrai (#562): Casper Bold nos títulos e PP Telegraf no texto, servidas pelo
   próprio site, para nada do visitante ir a terceiros. */
@font-face {
  font-family: "Casper"; src: url("/fonts/casper-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Telegraf"; src: url("/fonts/pp-telegraf-ultralight.woff2") format("woff2");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Telegraf"; src: url("/fonts/pp-telegraf-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Telegraf"; src: url("/fonts/pp-telegraf-ultrabold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
:root {
  --ink: #0B2A2D;        /* texto e faixas escuras (petróleo) */
  --muted: #3E5957;      /* texto secundário */
  --paper: #FBFDFC;      /* fundo principal */
  --mist: #EEF5F4;       /* faixa clara alternada */
  --mint: #DDF1EE;       /* faixa de destaque clara */
  --teal: #0A6B66;       /* links e rótulos */
  --teal-deep: #0E6E69;  /* faixa na cor da marca */
  --accent: #1DC0C4;     /* botão principal */
  --on-accent: #04211F;
  --line: #CFE0DE;
  --night: #061417;      /* rodapé */
  --on-dark: #E6F4F3;
  --on-dark-muted: #B9D6D3;
  --warn-bg: #FFF4DC;
  --warn: #7A5200;
  --font-display: "Casper", "Segoe UI", system-ui, sans-serif;
  --font-body: "PP Telegraf", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--paper);
}
img { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }
p { margin: 0; }

.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 8vw, 96px); }
.band--mist { background: var(--mist); }
.band--mint { background: var(--mint); }
.band--dark { background: var(--ink); color: var(--on-dark); }
.band--brand { background: var(--teal-deep); color: var(--on-dark); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 36px; }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; color: var(--teal);
}
.band--dark .eyebrow, .band--brand .eyebrow { color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.band--dark .lead, .band--brand .lead { color: var(--on-dark-muted); }
.small { font-size: 14px; color: var(--muted); }
.band--dark .small, .band--brand .small { color: var(--on-dark-muted); }

/* Cabeçalho */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(251, 253, 252, 0.96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
  flex-wrap: wrap; padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand strong { font-family: var(--font-display); font-size: 22px; line-height: 1; display: block; }
.brand span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 700; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 800; font-size: 16px; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: #3CD0D3; color: var(--on-accent); }
.btn--ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--ghost:hover { background: var(--mist); color: var(--ink); }
.band--dark .btn--ghost, .band--brand .btn--ghost { border-color: #5FB8B3; color: var(--on-dark); }
.band--dark .btn--ghost:hover, .band--brand .btn--ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Topo */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero > .stack { flex: 1 1 460px; min-width: 0; gap: 22px; }
.hero > .chat { flex: 1 1 380px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--teal); text-decoration: none; }
.band--dark .crumbs, .band--dark .crumbs a { color: var(--on-dark-muted); }

/* Conversa de exemplo */
.chat {
  min-width: 0; max-width: 480px; margin: 0 auto; width: 100%;
  background: var(--paper); color: var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 0 28px 70px rgba(6, 20, 23, 0.28); border: 1px solid var(--line);
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat__avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: var(--teal);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
}
.chat__head strong { font-family: var(--font-display); font-size: 15px; display: block; }
.chat__head span { font-size: 13px; color: var(--teal); }
.chat__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; overflow-wrap: anywhere; }
.msg--in { align-self: flex-end; background: var(--teal-deep); color: #F3F7F6; border-bottom-right-radius: 4px; }
.msg--out { align-self: flex-start; background: var(--mist); border-bottom-left-radius: 4px; }
.msg--team { align-self: flex-start; background: #FFF1D6; border-bottom-left-radius: 4px; }
.event {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--teal); border: 1px dashed #7FBFBA; border-radius: 999px; padding: 4px 10px;
}
.event svg { flex: none; }
.chat__foot { font-size: 12px; color: var(--muted); padding: 0 18px 14px; }

/* Grades e cartões */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.band--mist .card, .band--mint .card { border-color: transparent; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 800; text-decoration: none; padding-top: 6px; }
.tag {
  align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px; background: var(--mint); color: var(--teal);
}
.tag--strong { background: var(--accent); color: var(--on-accent); }
.pack-card { border-width: 2px; }
.pack-card:hover { border-color: var(--accent); }
.pack-card h3 { font-size: 24px; }
.pack-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--mint); color: var(--teal);
  display: grid; place-items: center;
}
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature strong { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 16px; }

/* Passos do agente */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 26px 64px; min-width: 0;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--on-dark);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
}
.steps li::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 19px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.steps p { color: var(--muted); margin-top: 6px; }
.who {
  font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.who--agent { background: var(--mint); border-color: var(--mint); color: var(--teal); }
.who--system { background: #E5ECFA; border-color: #E5ECFA; color: #2D4A8A; }
.who--team { background: #FFF1D6; border-color: #FFF1D6; color: #7A5200; }
.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-radius: 14px; padding: 16px 18px; }
.checklist svg { flex: none; color: var(--teal); margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 15px; }
.band--mist .chips li { border-color: transparent; }
.note { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

/* Planos */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.plan--featured { border: 3px solid var(--accent); box-shadow: 0 18px 40px rgba(11, 124, 118, 0.14); }
.plan__name { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan__name strong { font-family: var(--font-display); font-size: 24px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-family: var(--font-display); font-size: 40px; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); }
.plan .btn { margin-top: auto; }
.facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.fact { background: var(--paper); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.fact strong { font-family: var(--font-display); font-size: 17px; }
.fact p { color: var(--muted); font-size: 15px; }

/* Dúvidas */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 4px; font-size: 18px; font-weight: 700;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 4px 20px; color: var(--muted); max-width: 70ch; }

/* Chamada final */
.closing { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.closing .intro { flex: 1 1 420px; }

/* Rodapé */
.site-footer { background: var(--night); color: #A9C2C0; font-size: 14px; }
.site-footer .wrap { padding-block: 40px; display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand img { height: 44px; width: auto; filter: brightness(1.6); }
.footer-brand strong { color: var(--on-dark); font-size: 15px; display: block; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #CFE3E1; }
.footer-about { border-top: 1px solid #1B3135; padding-top: 18px; max-width: 80ch; }
.footer-about strong { color: var(--on-dark); }
.site-footer code { color: var(--on-dark); }

/* Privacidade e termos (#495): texto corrido numa coluna */
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); }
.legal h2 { font-size: 21px; margin-top: 18px; color: var(--teal); }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal .version { color: var(--muted); font-size: 15px; }
.legal a, .legal code { overflow-wrap: anywhere; }
.legal code { font-size: 0.92em; background: var(--mist); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
