/* CertMed (submarca Fluna Health) — estilo clínico: fundo claro, teal da Health sobre o escuro e o gradiente da Fluna.
   Tokens da marca em marketing/marca.md; cores das submarcas em marketing/marca/submarcas/submarcas.json. */
:root {
  --navy: #021B24;
  --navy-2: #0A2E3A;
  --brand-1: #344F9D;
  --brand-2: #3768B0;
  --brand-3: #43ABE1;
  --brand-grad: linear-gradient(120deg, var(--brand-1), var(--brand-2) 50%, var(--brand-3));
  --ink: #142B38;
  --muted: #557080;
  --line: #DCE8EC;
  --bg: #FFFFFF;
  --soft: #F2F8F8;
  --teal: #0FA39A;
  --teal-2: #0C8A82;
  --teal-soft: #DDF4F1;
  --mint: #2EE59D;
  --blue: #3DAAE1;
  --warn: #E2A33B;
  --err: #D9534F;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 42, 60, .08);
  --font-title: 'Sora', system-ui, sans-serif;
  --font: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--font); padding: 15px 22px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(15, 163, 154, .28); }
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-2); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.link { color: var(--teal-2); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* topo */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup-logo { height: 30px; width: auto; }
.lockup-rule { width: 2px; height: 24px; border-radius: 2px; background: var(--teal); }
.lockup-name { font: 600 19px var(--font-title); color: var(--teal-2); letter-spacing: -.01em; }
.footer .lockup-logo { height: 26px; }
.footer .lockup-name { color: #fff; font-size: 16px; }
.footer .lockup-rule { height: 20px; background: #36D1C4; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.topnav { display: none; gap: 26px; font-size: 14.5px; font-weight: 500; }
.topnav a { text-decoration: none; color: var(--muted); }
.topnav a:hover { color: var(--ink); }
@media (min-width: 900px) { .topnav { display: flex; } }
@media (max-width: 480px) { .topbar .btn-sm { padding: 9px 12px; font-size: 13px; } .lockup-logo { height: 24px; } .lockup-name { font-size: 16px; } .brand { gap: 8px; } }

/* hero */
.hero { background: radial-gradient(1100px 500px at 85% -10%, #E3F6F3 0, transparent 60%), radial-gradient(800px 400px at -10% 10%, #EAF4FB 0, transparent 60%); padding: 56px 0 40px; }
.hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.08fr .92fr; gap: 56px; } .hero { padding: 84px 0 48px; } }
.eyebrow { font: 600 12.5px var(--font); text-transform: uppercase; letter-spacing: .09em; color: var(--teal-2); margin-bottom: 14px; }
.eyebrow.light { color: var(--mint); }
.hero h1 { font-size: clamp(32px, 5.2vw, 52px); font-weight: 700; color: var(--navy); }
.hl { color: var(--teal); }
.lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); margin-top: 20px; max-width: 590px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.micro { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

.hero-visual { position: relative; min-height: 360px; }
.paper { position: relative; width: 74%; max-width: 330px; aspect-ratio: 3/4; background: #FBFAF6; border: 1px solid #E7E2D6; border-radius: 10px; box-shadow: var(--shadow); padding: 26px 22px; transform: rotate(-4deg); overflow: hidden; }
.paper-head { font: 700 11px var(--font-title); letter-spacing: .12em; color: #3B4A52; text-align: center; }
.paper-title { font: 700 15px var(--font-title); letter-spacing: .2em; text-align: center; margin: 18px 0 22px; color: #22313A; }
.paper-line { height: 8px; border-radius: 4px; background: #E6E2D8; margin: 12px 0; }
.w80 { width: 80%; } .w60 { width: 60%; } .w90 { width: 90%; } .w40 { width: 40%; }
.paper-stamp { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%) rotate(-3deg); border: 2px solid #2F5597; color: #2F5597; font: 600 11px var(--font); padding: 4px 8px; border-radius: 4px; }
.scan { position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, rgba(15, 163, 154, .22), transparent); animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0% { top: -60px; } 60%, 100% { top: 110%; } }
.chips { position: absolute; right: 0; top: 96px; display: grid; gap: 10px; width: min(62%, 290px); }
.chip { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); opacity: 0; transform: translateX(14px); animation: chip-in .5s ease forwards; animation-delay: calc(.6s + var(--d)); }
.chip span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.chip b { font-size: 14px; color: var(--navy); }
.chip.ok { border-left-color: var(--mint); }
.chip.go { border-left-color: var(--blue); background: #F3FAFE; }
@keyframes chip-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .scan { animation: none; display: none; } .chip { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

.stats { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { background: #fff; padding: 22px 20px; }
.stats b { display: block; font: 700 clamp(26px, 3.4vw, 34px) var(--font-title); color: var(--teal); }
.stats span { font-size: 14px; color: var(--muted); }
.stats-src { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* seções */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.soft { background: var(--soft); }
.h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--navy); margin-bottom: 14px; }
.h3 { font-size: 20px; color: var(--navy); margin-bottom: 20px; }
.sub { color: var(--muted); font-size: 17px; max-width: 640px; }
.sub.center { margin: 0 auto; }
.note { color: var(--muted); font-size: 15px; margin-top: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid4 { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.pain { border-top: 3px solid var(--warn); }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-2); font: 700 15px var(--font-title); margin-bottom: 14px; }
.steps h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* demo */
.demo { background: linear-gradient(180deg, #fff 0, var(--soft) 100%); }
.demo .h2 { margin-bottom: 12px; }
.demo-grid { display: grid; gap: 20px; margin-top: 40px; align-items: start; }
@media (min-width: 960px) { .demo-grid { grid-template-columns: .9fr 1.1fr; gap: 28px; } }
.drop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; border: 2px dashed #B9D7D6; border-radius: 14px; padding: 34px 18px; background: #FAFDFD; cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over, .drop:focus-visible { border-color: var(--teal); background: var(--teal-soft); outline: none; }
.drop.disabled { opacity: .5; pointer-events: none; }
.drop-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); position: relative; margin-bottom: 6px; }
.drop-icon::before { content: ''; position: absolute; left: 50%; top: 11px; width: 2.5px; height: 20px; margin-left: -1px; background: var(--teal); border-radius: 2px; }
.drop-icon::after { content: ''; position: absolute; left: 50%; top: 11px; width: 10px; height: 10px; margin-left: -6px; border-left: 2.5px solid var(--teal); border-top: 2.5px solid var(--teal); transform: rotate(45deg); }
.drop-title { font-weight: 600; color: var(--navy); }
.drop-sub { font-size: 13.5px; color: var(--muted); }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.samples { display: grid; gap: 12px; }
.sample { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.sample img, .sample-pdf { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.sample-pdf { display: grid; place-items: center; background: #FFF4F2; color: var(--err); font: 700 14px var(--font-title); }
.sample b { display: block; color: var(--navy); font-size: 15px; }
.sample span { display: block; font-size: 13px; color: var(--muted); }
.sample-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 14px; }
.privacy { font-size: 13px; color: var(--muted); margin-top: 18px; }
.demo-off { font-size: 13.5px; color: #8A5A10; background: #FDF4E3; border-radius: 10px; padding: 10px 12px; margin-top: 12px; }

.demo-output { min-height: 440px; display: flex; flex-direction: column; }
.empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); text-align: center; }
.empty-art { display: grid; gap: 8px; width: 220px; }
.empty-art span { height: 34px; border-radius: 10px; background: linear-gradient(90deg, var(--soft), #E8F2F3, var(--soft)); background-size: 200% 100%; animation: shimmer 1.8s linear infinite; }
.empty-art span:nth-child(2) { width: 80%; } .empty-art span:nth-child(4) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.file-name { font-weight: 600; color: var(--navy); margin-bottom: 18px; word-break: break-all; }
.stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.stages li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.stages li::before { content: ''; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.stages li.active { color: var(--navy); font-weight: 600; }
.stages li.active::before { border-color: var(--teal); border-right-color: transparent; animation: spin .8s linear infinite; }
.stages li.done { color: var(--ink); }
.stages li.done::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--teal); }
@keyframes spin { to { transform: rotate(360deg); } }
.error { color: var(--err); background: #FDEEEE; border-radius: 10px; padding: 14px; font-size: 14.5px; }

.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.badge { background: var(--teal-soft); color: var(--teal-2); font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.badge.recorded { background: #FDF4E3; color: #8A5A10; }
.result-meta { font-size: 13px; color: var(--muted); }
.fields { display: grid; gap: 18px; }
.group h4 { font: 600 12px var(--font); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; }
.group dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 520px) { .group dl { grid-template-columns: 1fr 1fr; } }
.field { background: var(--soft); border-radius: 10px; padding: 9px 12px; opacity: 0; transform: translateY(6px); animation: chip-in .35s ease forwards; }
.field.wide { grid-column: 1 / -1; }
.field dt { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.field dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); font-size: 14.5px; word-break: break-word; }
.field dd.none { color: #9AB0BB; font-weight: 500; font-style: italic; }
.conf { font-variant-numeric: tabular-nums; color: var(--teal-2); }
.tabs { display: flex; gap: 6px; margin: 22px 0 12px; border-bottom: 1px solid var(--line); }
.tabs button { font: 600 14px var(--font); background: none; border: 0; padding: 10px 12px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--teal-2); border-bottom-color: var(--teal); }
.next-title { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.next { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.next li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.next li::before { content: '→'; color: var(--teal); font-weight: 700; }
.next li.warn::before { content: '!'; color: var(--warn); }
.json { background: var(--navy); color: #CFE8F2; font: 12.5px/1.5 'SF Mono', Consolas, monospace; padding: 16px; border-radius: 12px; max-height: 320px; overflow: auto; margin: 0 0 18px; }

.integrations { margin-top: 64px; }
.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .logos { grid-template-columns: repeat(4, 1fr); } }
.logos li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.logos b { display: block; color: var(--navy); font-size: 15px; }
.logos span { font-size: 13px; color: var(--muted); }

/* regras */
.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 600px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { position: relative; padding: 12px 14px 12px 42px; background: var(--soft); border-radius: 12px; font-size: 15px; }
.checks li::before { content: ''; position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }

/* case */
.case { background: var(--navy) url('onda-fluna.jpg') center 70%/cover no-repeat; color: #fff; position: relative; }
.case::before, .contact::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 27, 36, .92) 0, rgba(2, 27, 36, .72) 55%, rgba(2, 27, 36, .45)); }
.case > .wrap, .contact > .wrap { position: relative; }
.case-in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .case-in { grid-template-columns: 1.2fr .8fr; gap: 56px; } }
.h2.light { color: #fff; }
.light-p { color: #B9CEDA; font-size: 16.5px; }
.case-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-stats li { background: rgba(10, 46, 58, .78); backdrop-filter: blur(4px); border-radius: 14px; padding: 20px; }
.case-stats b { display: block; font: 700 30px var(--font-title); color: var(--mint); }
.case-stats span { color: #B9CEDA; font-size: 14px; }

/* planos */
.plans { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 880px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.plan-tag { position: absolute; top: -12px; left: 24px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 22px; color: var(--navy); }
.plan-vol { color: var(--teal-2); font-weight: 600; margin: 6px 0 14px; }
.price { display: flex; align-items: baseline; gap: 2px; margin: 0 0 20px; color: var(--navy); }
.price b { font: 700 44px/1 var(--font-title); letter-spacing: -.02em; }
.price .cur { font: 600 18px var(--font-title); margin-right: 4px; }
.price .cents { font: 700 22px var(--font-title); }
.price .per { color: var(--muted); font-size: 15px; margin-left: 4px; }
.price-talk { font: 700 26px/44px var(--font-title); color: var(--navy); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; flex: 1; }
.plan li { font-size: 15px; color: var(--ink); padding-left: 22px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* faq */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--teal); font-size: 20px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); padding-bottom: 16px; }

/* contato */
.contact { background: var(--navy) url('onda-fluna.jpg') center 30%/cover no-repeat; position: relative; }
.contact-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .contact-in { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.light-list { color: #DDEBF1; padding-left: 18px; margin-top: 18px; display: grid; gap: 6px; }
.form { display: grid; gap: 14px; padding: 26px; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form input, .form select { font: 15px var(--font); padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 13px; }
.form .consent input { width: auto; margin-top: 3px; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-size: 14px; min-height: 20px; }
.form-msg.ok { color: var(--teal-2); }
.form-msg.err { color: var(--err); }

.footer { background: var(--navy); color: #8FA9B7; font-size: 14px; padding: 28px 0; }
.footer-in { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.footer b { color: #fff; font-family: var(--font-title); }
.footer a { color: #CFE8F2; }

/* clientes — carrossel "Confiam na Fluna" */
.clients { padding: 36px 0 8px; }
.clients-title { display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 14px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.clients-title img { height: 22px; width: auto; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; display: flex; align-items: center; height: 56px; font: 700 21px var(--font-title); color: #8BA0AC; letter-spacing: -.01em; white-space: nowrap; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.marquee-track li:hover { filter: none; opacity: 1; }
.marquee-track img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

/* agentes */
.agents { padding-top: 24px; }
.agent-grid { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 860px) { .agent-grid { grid-template-columns: repeat(3, 1fr); } }
.agent { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.agent.human { background: var(--soft); box-shadow: none; }
.agent-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.agent-ico { width: 48px; height: 48px; border-radius: 14px; flex: none; background: linear-gradient(135deg, #0B6E6A, #0FA39A 55%, #36D1C4) center/26px no-repeat; }
.ico-read { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E"), linear-gradient(135deg, #0B6E6A, #0FA39A 55%, #36D1C4); background-size: 26px, cover; }
.ico-check { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.5 8-8 9-4.5-1-8-4-8-9V7z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"), var(--brand-grad); background-size: 26px, cover; }
.ico-user { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23557080' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); background-color: #fff; border: 1px solid var(--line); background-size: 26px; }
.agent h3 { font-size: 18px; color: var(--navy); }
.agent-role { font-size: 13px; color: var(--teal-2); font-weight: 600; }
.agent.human .agent-role { color: var(--muted); }
.agent ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink); font-size: 15px; }

/* calculadora */
.calc { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.calc-form { display: grid; gap: 22px; margin-top: 28px; }
.calc-form label { display: grid; gap: 10px; font-weight: 600; color: var(--navy); font-size: 15px; }
.calc-form label { grid-template-columns: 1fr auto; }
.calc-form input { grid-column: 1 / -1; width: 100%; accent-color: var(--teal); }
.calc-form output { font: 700 18px var(--font-title); color: var(--teal-2); }
.calc-result { padding: 28px; box-shadow: var(--shadow); }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.calc-row b { color: var(--navy); font-family: var(--font-title); }
.calc-big { padding: 20px 0 8px; }
.calc-big span { display: block; color: var(--muted); font-size: 14px; }
.calc-big b { font: 700 clamp(32px, 4vw, 42px) var(--font-title); color: var(--teal); }
.calc-note { font-size: 13px; color: var(--muted); margin: 6px 0 18px; }

/* comparação */
.compare-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--ink); }
.compare thead th { font: 600 14px var(--font); color: var(--muted); background: var(--soft); }
.compare td { color: var(--muted); }
.compare .us { background: var(--teal-soft); color: var(--teal-2); font-weight: 700; }
.compare thead .us { background: var(--teal); color: #fff; }
.compare tr:last-child td { border-bottom: 0; }

/* teste grátis */
.trial { background: linear-gradient(180deg, var(--soft), #fff); }
.trial-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .trial-in { grid-template-columns: 1fr 1fr; gap: 56px; } .trial-cta { grid-column: 2; justify-self: start; } }
.trial-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trial-list li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 14px 16px; }
.trial-list b { font: 700 16px var(--font-title); color: var(--teal-2); }
.trial-list span { color: var(--ink); font-size: 15px; }

/* intenção no formulário */
.intent { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.intent legend { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.form .intent label { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14.5px; }
.form .intent input { width: auto; accent-color: var(--teal); }

/* dashboard (dados ilustrativos, estrutura do painel em produção na operadora) */
.dash-section { background: linear-gradient(180deg, #fff, var(--soft)); }
.dash { margin-top: 40px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(2, 27, 36, .10); overflow: hidden; }
.dash-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--navy); color: #B9CEDA; font-size: 13px; }
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A4652; }
.dash-bar span { margin-left: 10px; }
.dash-body { position: relative; padding: 18px; display: grid; gap: 16px; background: #F7FAFB; }
@media (min-width: 900px) { .dash-body { padding: 24px; } }
.dash-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dash-filter { font-size: 13px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.dash-filter b { color: var(--ink); font-weight: 600; margin-left: 4px; }
.dash-filter b::after { content: ' ▾'; color: var(--muted); font-weight: 400; }
.dash-export { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--teal-2); border: 1px solid var(--teal); border-radius: 8px; padding: 7px 12px; background: #fff; }
.dash-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .dash-kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpi span { display: block; font-size: 13px; color: var(--muted); }
.kpi b { display: block; font: 600 clamp(22px, 2.6vw, 30px) var(--font-title); color: var(--navy); margin: 4px 0 2px; }
.kpi small { font-size: 12.5px; color: var(--muted); }
.kpi small.up { color: var(--teal-2); }
.dash-grid { display: grid; gap: 12px; }
.dash-grid { grid-template-columns: 1fr; }
@media (min-width: 760px) { .dash-grid { grid-template-columns: repeat(6, 1fr); } .span-6 { grid-column: span 6; } .span-3 { grid-column: span 3; } .span-2 { grid-column: span 3; } }
@media (min-width: 1100px) { .span-2 { grid-column: span 2; } }
.dash-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 12px; min-width: 0; }
.dash-card figcaption { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.dash-card figcaption small { font-weight: 400; color: var(--muted); margin-left: 6px; }

/* colunas: barra ≤24px, ponta arredondada de 4px, base reta, rótulo seletivo */
.chart-cols { display: flex; align-items: flex-end; gap: 2px; height: 170px; border-bottom: 1px solid var(--line); }
.chart-cols.short { height: 130px; }
.col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: default; }
.col i { display: block; width: min(24px, 70%); background: var(--teal); border-radius: 4px 4px 0 0; transition: opacity .15s; }
.col em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.col span { position: absolute; top: 100%; margin-top: 6px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.chart-cols { margin-bottom: 26px; }
.chart-cols:hover .col i { opacity: .45; }
.chart-cols .col:hover i { opacity: 1; }
/* barras horizontais */
.chart-bars { display: grid; gap: 9px; }
.hbar { display: grid; grid-template-columns: minmax(96px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 13px; cursor: default; }
.hbar span { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar span small { color: var(--muted); }
.hbar i { display: block; height: 14px; background: var(--teal); border-radius: 0 4px 4px 0; transition: opacity .15s; }
.hbar em { font-style: normal; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.chart-bars:hover .hbar i { opacity: .45; }
.chart-bars .hbar:hover i { opacity: 1; }
.tag-f { display: inline-block; font-size: 10.5px; font-weight: 600; color: #9A3E17; background: #FCE6DC; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.dash-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--navy); color: #fff; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.18); white-space: nowrap; transform: translate(-50%, -100%); }
.dash-tip b { color: #36D1C4; }
/* tabela */
.dash-table-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.dash-table-head .muted { font-weight: 400; color: var(--muted); font-size: 13px; }
.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.dash-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #F7FAFB; }
.dash-table td { padding: 9px 10px; border-bottom: 1px solid #EEF3F5; color: var(--ink); font-variant-numeric: tabular-nums; }
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.st.ok::before { background: #1FA36B; }
.st.rev::before { background: var(--warn); }
.dash-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.dash-insights { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 860px) { .dash-insights { grid-template-columns: repeat(3, 1fr); } }
.dash-insights h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.dash-insights p { color: var(--muted); font-size: 15px; }

/* paleta categórica validada (teal, azul, laranja, violeta, amarelo, rosa) — ordem fixa */
:root { --c1: #0FA39A; --c2: #2A78D6; --c3: #EB6834; --c4: #6250D6; --c5: #EDA100; --c6: #E87BA4; }
/* área */
.chart-area svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-area .grid line { stroke: #E6EEF1; stroke-width: 1; }
.chart-area .tick { font: 11px var(--font); fill: var(--muted); }
.chart-area .line { fill: none; stroke: var(--c1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-area .dot { fill: var(--c1); stroke: #fff; stroke-width: 2; }
.chart-area .val { font: 600 11.5px var(--font); fill: var(--ink); }
.chart-area .cross { stroke: #9FB3BD; stroke-width: 1; }
.chart-area .hit { fill: transparent; cursor: default; }
/* rosca */
.donut { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.donut.small { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
.donut.small svg { width: 120px; }
.donut svg { width: 150px; height: auto; display: block; }
.donut circle.seg { fill: none; stroke-width: 20; transition: stroke-width .15s, opacity .15s; cursor: default; }
.donut svg:hover circle.seg { opacity: .5; }
.donut svg circle.seg:hover, .donut circle.seg.on { opacity: 1; stroke-width: 24; }
.donut .center b { font: 700 22px var(--font-title); fill: var(--navy); }
.donut .center span { font: 11px var(--font); fill: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; width: 100%; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; cursor: default; }
.legend li i { width: 10px; height: 10px; border-radius: 3px; }
.legend li span { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend li em { font-style: normal; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.legend li em small { font-weight: 400; color: var(--muted); margin-left: 4px; }
@media (max-width: 420px) { .donut { grid-template-columns: 1fr; justify-items: center; } }
/* barras empilhadas 100% */
.stack-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink); margin-bottom: 12px; list-style: none; padding: 0; }
.stack-legend li { display: flex; align-items: center; gap: 6px; }
.stack-legend i { width: 10px; height: 10px; border-radius: 3px; }
.stack-row { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 9px; }
.stack-row > span { color: var(--ink); }
.stack-row > em { font-style: normal; font-weight: 600; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.stack-bar { display: flex; gap: 2px; height: 20px; }
.stack-bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 600; color: #fff; min-width: 0; overflow: hidden; transition: opacity .15s; cursor: default; }
.stack-bar i:first-child { border-radius: 4px 0 0 4px; }
.stack-bar i:last-child { border-radius: 0 4px 4px 0; }
.stack:hover .stack-bar i { opacity: .55; }
.stack .stack-bar i:hover { opacity: 1; }
@media (max-width: 520px) { .stack-row { grid-template-columns: 84px 1fr 36px; } .stack-bar i { font-size: 0; } }
.donut .center { pointer-events: none; }

/* Turnstile: só ocupa espaço quando há desafio */
.ts:empty { display: none; }
.ts { margin: 4px 0; }
