/* ==========================================================================
   IA Lívia para GLPI: landing page
   Identidade extraída do site institucional ialivia.com.br:
   tema escuro azul-marinho, destaque verde-água #34D3B4, Sora (títulos) e
   Manrope (texto), botões em pílula, cartões com 20 a 24 px de raio.
   Para ajustar a marca, troque só este bloco.
   ========================================================================== */
:root {
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --bg: #0A0E17;
  --surface: #121A28;
  --surface-2: #0E1522;
  --ink: #EEF2F8;
  --muted: #B4BED0;
  --line: #24304A;
  --line-strong: #2E3A55;
  --brand: #34D3B4;       /* destaque do site */
  --brand-ink: #0A0E17;
  --brand-soft: rgba(52, 211, 180, .14);
  --bubble-user: #1E293D;
  --band: #0E1522;
  --band-ink: #EEF2F8;
  --ok: #34D3B4;
  --focus: #7AA2FF;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  --radius: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 600; line-height: 1.06; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 600; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap {
  width: 100%; max-width: 1140px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--alt { background: var(--surface-2); }
.eyebrow { font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.lead { color: var(--muted); font-size: 1.2rem; line-height: 1.55; max-width: 62ch; }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1.0625rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); font-weight: 600; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); font-weight: 600; }
.btn--outline:hover { background: var(--brand-soft); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .95rem; }
.btn--on-band { background: var(--brand); color: var(--brand-ink); }
.btn[data-pending] { cursor: help; }

/* Cabeçalho */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(10, 14, 23, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.brand__txt small { font-size: .75rem; color: var(--muted); font-weight: 500; }
.nav { display: none; gap: 22px; }
.nav a { color: #C5CEDD; text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.lang a, .lang button { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 12px; font: 700 .78rem/1 var(--font-body); color: var(--muted); }
.lang [aria-current="true"] { background: var(--brand); color: var(--brand-ink); }
.lang a:focus-visible, .lang button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.mnav { position: relative; }
.mnav summary { list-style: none; cursor: pointer; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; color: var(--muted); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav__list { position: absolute; right: 0; top: 46px; min-width: 210px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.mnav__list a { padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.mnav__list a:hover { background: var(--surface-2); }
.hdr .btn { display: none; }
@media (min-width: 560px) { .hdr .btn { display: inline-flex; } }
@media (min-width: 960px) { .nav { display: flex; } .mnav { display: none; } }

/* Hero */
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(48px, 7vw, 80px); }
.hero__grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }

/* Janela de chat */
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.chat__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: transparent; font-size: .85rem; }
.chat__bar strong { font-family: var(--font-display); font-size: 1rem; }
.chat__bar span { font-size: .75rem; color: var(--muted); }
.chat__body { display: grid; gap: 16px; padding: 20px; }
.msg { max-width: 94%; padding: 13px 16px; border-radius: 18px; font-size: .98rem; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.msg--user { justify-self: end; background: var(--bubble-user); color: var(--ink); border-bottom-right-radius: 4px; }
.msg--ai { justify-self: start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; display: grid; gap: 8px; }
.msg--ai ul, .msg--ai ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.msg--ai table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.msg--ai th, .msg--ai td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.msg--ai td:last-child, .msg--ai th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.msg--ai .src { font-size: .75rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
.tid { font-family: var(--font-mono); font-size: .85em; background: var(--brand-soft); color: var(--brand); padding: 1px 6px; border-radius: 5px; }
.tag-ex { font-size: .78rem; color: var(--muted); margin-top: 10px; }

/* Exemplos */
.qa { display: grid; gap: 24px; }
@media (min-width: 940px) { .qa { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } .qa > div:last-child { position: sticky; top: 84px; } }
.qgroup + .qgroup { margin-top: 24px; }
.qgroup h3 { font-size: .85rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.qlist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.qbtn { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 1rem; line-height: 1.4; transition: border-color .12s ease, background-color .12s ease; }
.qbtn:hover { border-color: var(--brand); }
.qbtn[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.qbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Como funciona */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.step__n { font-weight: 700; font-size: .85rem; color: var(--brand); border: 1px solid var(--brand); border-radius: 999px; width: 30px; height: 30px; display: grid; place-items: center; }
.step p { color: var(--muted); }
.note { margin-top: 20px; color: var(--muted); font-size: .92rem; max-width: 70ch; }

/* Equipe */
.team { display: grid; gap: 32px; align-items: center; }
@media (min-width: 940px) { .team { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.team__copy { display: grid; gap: 18px; justify-items: start; }
.points { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.points li, .checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.ck { width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }

/* Benefícios */
.checks { display: grid; gap: 14px 40px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Oferta: o cartão tem o formato de um ticket com picote */
.offer { display: grid; gap: 28px; }
.ticket { position: relative; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ticket__main, .ticket__stub { padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.ticket__stub { border-top: 2px dashed var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.ticket::before, .ticket::after { content: ""; display: none; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.section--alt .ticket::before, .section--alt .ticket::after { background: var(--surface-2); }
@media (min-width: 860px) {
  .ticket { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); }
  .ticket__stub { border-top: 0; border-left: 2px dashed var(--line); border-radius: 0 var(--radius) var(--radius) 0; align-content: center; }
  .ticket::before, .ticket::after { display: block; left: calc(59.5% - 13px); }
  .ticket::before { top: -14px; clip-path: inset(50% 0 0 0); } .ticket::after { bottom: -14px; clip-path: inset(0 0 50% 0); }
}
.ticket h2 { font-size: clamp(1.45rem, 2.7vw, 2rem); }
.badge { justify-self: start; font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); border: 1px solid var(--brand); padding: 3px 10px; border-radius: 999px; }
.plan { font-family: var(--font-display); font-size: 1.5rem; font-weight: 650; }
.incl { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.incl li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.price { display: grid; gap: 4px; }
.price__ref { color: var(--muted); font-size: .98rem; }
.price__ref s { text-decoration-thickness: 1.5px; }
.price__now { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.1rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price__now small { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.price__off { justify-self: start; font-weight: 600; font-size: .9rem; color: var(--ok); }
.fine { color: var(--muted); font-size: .88rem; display: grid; gap: 4px; }
body.campaign-off .if-promo { display: none; }
body:not(.campaign-off) .if-regular { display: none; }

/* Demonstração */
.band { background: linear-gradient(135deg, #0d2a2e 0%, var(--band) 60%); color: var(--band-ink); border-block: 1px solid var(--line); }
.band .eyebrow, .band p { color: color-mix(in srgb, var(--band-ink) 78%, transparent); }
.band__in { display: grid; gap: 22px; justify-items: start; }
.band__in > * { max-width: 760px; }
.band h2 { color: var(--band-ink); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.3rem; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 16px; }
.faq .ans { padding: 0 18px 18px; color: var(--muted); max-width: 68ch; }

/* CTA final e rodapé */
.final { display: grid; gap: 20px; justify-items: start; }
.final h2 { max-width: 22ch; }
.ftr { border-top: 1px solid var(--line); padding-block: 32px; font-size: .92rem; color: var(--muted); }
.ftr__in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ftr a { color: var(--muted); }
.ftr .brand { margin: 0; }
.ftr__note { flex-basis: 100%; font-size: .85rem; }

/* Avisos */
.preview-bar { background: #3a2f10; color: #f3dfa5; border-bottom: 1px solid #5b4a1a; font-size: .85rem; padding: 8px 0; }
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0, 0, 0, .1); padding: 12px 0 max(12px, env(safe-area-inset-bottom, 0px)); }
.consent__in { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: .9rem; }
.consent__btns { display: flex; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-size: .92rem; z-index: 90; max-width: calc(100vw - 32px); box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Logo (imagem) */
.brand img { display: block; height: 34px; width: auto; }
.ftr .brand img { height: 28px; }
@media (max-width: 480px) { .brand img { height: 28px; } }

/* Política de privacidade */
.prose { max-width: 780px; }
.prose h1 { margin: 6px 0 18px; font-size: clamp(2rem, 4.5vw, 3rem); }
.prose .prose__h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 6px 0 18px; }
.prose h2:not(.prose__h1) { font-size: 1.3rem; margin: 34px 0 10px; }
.prose p { color: var(--muted); margin: 0 0 12px; max-width: 70ch; }
.prose .lead { color: var(--ink); margin-bottom: 8px; }
.prose a { color: var(--brand); }
