
:root{color-scheme:light;font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;--bg:#f3f6fb;--panel:#fff;--ink:#0f1f3a;--text:#22314c;--muted:#5b6b85;--line:#e2e8f2;--primary:#1d5fd1;--primary-soft:#e9f0fd;background:var(--bg);color:var(--text)}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}
/* Marca d'água oficial: centrada na viewport, discreta e responsiva. */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:url("/assets/a39b00bfb270444afaf95072ba0258295a8b429a0422d3867500248c2fafa6d7.png");
  background-repeat:no-repeat;
  background-position:center center;
  background-size:min(80vw, 80vh, 850px) auto;
  opacity:.06;
}
body>header,body>main,body>footer{position:relative;z-index:1}
@media(max-width:720px){body::before{background-size:min(88vw, 70vh) auto}}

a{color:var(--primary)}a:focus-visible,summary:focus-visible{outline:3px solid #7aa7f0;outline-offset:3px;border-radius:6px}
header,main,footer{max-width:1160px;margin:auto;padding:0 24px}
header{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:76px}
body>header{max-width:none;background:var(--panel);border-bottom:1px solid var(--line);padding:0 max(24px,calc((100vw - 1112px)/2))}
.brand{display:inline-flex;align-items:center;min-height:44px;font-size:26px;font-weight:750;letter-spacing:-.6px;text-decoration:none}
.brand .am-logo{margin-right:10px;flex-shrink:0;width:44px;height:44px;object-fit:contain;border-radius:10px}
.brand-name{color:var(--ink)}.brand-name span{color:var(--primary)}
.entry{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:10px;background:var(--ux-action);color:#fff;text-decoration:none;font-weight:600;font-size:15px;box-shadow:0 2px 6px #1d5fd133}
.entry:hover{background:var(--ux-action-hover)}
.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:48px;align-items:center;padding:64px 0 56px}
.eyebrow{display:inline-block;margin:0;padding:5px 12px;border-radius:999px;background:var(--primary-soft);color:var(--primary);font-size:13px;font-weight:600;letter-spacing:.2px}
h1{font-size:clamp(34px,5vw,54px);line-height:1.08;letter-spacing:-1.4px;color:var(--ink);margin:18px 0 18px}
.headline-accent{color:var(--primary)}
p{line-height:1.7;color:var(--text)}
.lead{font-size:18px;max-width:560px;color:var(--muted)}
.cta{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:14px 26px;margin:14px 0 6px;border-radius:12px;background:var(--ux-action);color:#fff;text-decoration:none;font-weight:700;font-size:16px;box-shadow:0 8px 20px #1d5fd133}
.cta:hover{background:var(--ux-action-hover)}
.micro{font-size:13px;color:var(--muted)}
.demo{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:26px;box-shadow:0 20px 50px rgba(16,32,64,.10)}
.demo h2{margin:0 0 6px;font-size:18px;color:var(--ink)}
.demo dl{margin:0}.demo dt{margin-top:16px;font-weight:700;color:var(--primary)}.demo dd{margin:4px 0 0;color:var(--text);line-height:1.6}
section h2{color:var(--ink);font-size:24px;letter-spacing:-.4px}
.features-intro{max-width:700px;margin:6px 0 0;color:var(--muted)}
.features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0 56px}
.features article{padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:0 1px 2px rgba(16,32,64,.04),0 6px 18px rgba(16,32,64,.06);transition:border-color .15s,transform .15s}
.features article:hover{border-color:#b9cdf1;transform:translateY(-2px)}
.features h3{margin:14px 0 0;font-size:16px;color:var(--ink)}
.features p{margin:6px 0 0;font-size:14px;line-height:1.6;color:var(--muted)}
.feature-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:var(--primary-soft);color:var(--primary)}
.feature-icon svg{width:22px;height:22px}
.trust{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:8px 24px 16px;margin-bottom:48px}
.trust summary{cursor:pointer;padding:12px 0;min-height:44px;font-weight:600;color:var(--ink)}
.trust details{border-top:1px solid var(--line)}
footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);padding:22px 24px 32px;font-size:15px;color:var(--muted)}
footer a{padding:10px 0;display:inline-block}
@media(max-width:900px){.features{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.hero{grid-template-columns:1fr;gap:24px;padding:32px 0}.features{gap:12px}.features article{padding:16px}.features p{font-size:13px}header,main,footer{padding-left:16px;padding-right:16px}body>header{padding:0 16px;min-height:64px}.brand{font-size:22px}.brand::before{width:30px;height:30px}.entry{font-size:14px;padding:9px 14px}}
@media(max-width:420px){.features{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.features article{transition:none}.features article:hover{transform:none}}
body>header .theme-picker{margin-left:0}body>header .entry{margin-left:auto}@media(max-width:600px){body>header{flex-wrap:wrap;gap:8px;padding-top:12px;padding-bottom:12px}body>header .brand{flex:1}body>header .theme-picker{order:1;margin-left:auto}body>header .entry{font-size:13px;padding:8px 10px}}

.plans-preview{margin:12px 0 48px}.plans-preview-heading{max-width:760px;margin-bottom:18px}.plans-preview-heading h2{margin:5px 0 8px}.plans-preview-heading p{color:var(--muted)}.plans-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.preview-plan{padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--panel);min-width:0}.preview-plan h3{margin:0 0 8px}.preview-plan p{line-height:1.55}.preview-price{font-size:29px;font-weight:750;margin:8px 0 12px;letter-spacing:-.8px;color:var(--ink)}.preview-price small{font-size:14px;font-weight:500;color:var(--muted)}.preview-plan-featured{border:2px solid var(--primary)}.preview-plan-kicker{font-size:12px;font-weight:700;color:var(--primary);text-transform:uppercase;letter-spacing:.04em}.plans-preview-note{font-size:12px;color:var(--muted);margin:12px 2px 0}@media(max-width:720px){.plans-preview-grid{grid-template-columns:1fr}.preview-plan{padding:17px}.preview-price{font-size:25px}}
.preview-pay-amount{color:#16804b;font-weight:800}.preview-discount{color:#bd2034;font-weight:800}

/* Shared palette for the application and public pages. */
:root{color-scheme:light;--ux-bg:#f3f6fb;--ux-panel:#fff;--ux-ink:#0f1f3a;--ux-text:#22314c;--ux-muted:#5b6b85;--ux-line:#e2e8f2;--ux-line-strong:#cfd8e6;--ux-primary:#1d5fd1;--ux-primary-hover:#174fb0;--ux-primary-soft:#e9f0fd;--ux-action:#1d5fd1;--ux-action-hover:#174fb0;--ux-hover:#f4f7fc;--ux-soft:#f5f9ff;--ux-warn-bg:#eef4ff;--ux-warn-line:#b9cdf1;--ux-warn-text:#0f3d99;--ux-error-bg:#fdecec;--ux-error-line:#f4c2c2;--ux-error-text:#a42121;--ux-success:#13824a;--ux-placeholder:#697b95;--ux-focus:#1d5fd140;--ux-shadow:0 1px 2px #1020400a,0 6px 18px #1020400f;
 --bg:var(--ux-bg);--panel:var(--ux-panel);--ink:var(--ux-ink);--text:var(--ux-text);--muted:var(--ux-muted);--line:var(--ux-line);--primary:var(--ux-primary);--primary-soft:var(--ux-primary-soft)}
:root[data-theme="dark"]{color-scheme:dark;--ux-bg:#0b1220;--ux-panel:#141f31;--ux-ink:#edf3ff;--ux-text:#d5deee;--ux-muted:#a6b5ce;--ux-line:#2b3a50;--ux-line-strong:#536780;--ux-primary:#8bb8ff;--ux-primary-hover:#afceff;--ux-primary-soft:#213858;--ux-action:#245bc1;--ux-action-hover:#1d4fae;--ux-hover:#1d2c43;--ux-soft:#1a2c46;--ux-warn-bg:#192e4e;--ux-warn-line:#496b9a;--ux-warn-text:#bdd5ff;--ux-error-bg:#3c202b;--ux-error-line:#965165;--ux-error-text:#ffb8c2;--ux-success:#83deb0;--ux-placeholder:#a6b5ce;--ux-focus:#8bb8ff55;--ux-shadow:0 1px 2px #0003,0 6px 18px #0003}
.theme-picker{display:inline-flex;align-items:center;gap:2px;flex-shrink:0;padding:2px;border:1px solid var(--ux-line);border-radius:999px;background:var(--ux-hover)}
html:root body .theme-picker .theme-option{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ux-primary);box-shadow:none;cursor:pointer;transition:none}
.theme-swatch{display:block;width:18px;height:18px;border:1px solid #73839b;border-radius:50%}
.theme-swatch-light{background:#fff}.theme-swatch-dark{background:#141f31}
html:root body .theme-option[aria-pressed="true"] .theme-swatch{outline:2px solid var(--ux-primary);outline-offset:3px}
html:root body .theme-option:hover{background:var(--ux-primary-soft)}
html:root body .theme-option:focus-visible{outline:3px solid var(--ux-primary)!important;outline-offset:2px}
html:root body .topbar{flex-direction:column;align-items:stretch;justify-content:center;gap:6px}
html:root{--ux-top:112px}
html:root body .topbar .theme-picker{align-self:flex-end}
html:root body[data-authenticated="false"] .topbar{flex-direction:row;align-items:center;justify-content:center;gap:32px}
html:root body[data-authenticated="false"] .topbar .theme-picker{align-self:center}
html:root body .am-logo{object-fit:contain;border-radius:0!important;background:transparent}
/* Home surfaces share the same palette as consultation tools. */
html:root body :is(.home-user,.home-search-box,.home-results,.home-tile,.home-card,.home-recent){background:var(--ux-panel)}
html:root body .home-chips button{background:var(--ux-panel)!important}
html:root body .home-chips button[aria-pressed=true]{background:var(--ux-action)!important;color:#fff!important}
html:root body .sidebar .nav-plan-badge{background:var(--ux-soft);border-color:var(--ux-line);color:var(--ux-primary)}
html:root body .sidebar :is(a svg,a.nav-premium){color:var(--ux-muted)}
html:root body .sidebar a.nav-premium:hover{background:var(--ux-hover)!important}
@media(max-width:760px){
 html:root body .topbar{flex-direction:row;align-items:center;justify-content:space-between;gap:8px}
 html:root body .topbar .theme-picker{align-self:center}
 html:root body[data-authenticated="false"] .topbar{height:72px;gap:8px;justify-content:space-between;padding:0 16px}
 html:root body[data-authenticated="false"] .topbar .brand{font-size:24px}
}
@media(max-width:360px){html:root body .topbar .brand{font-size:21px;gap:8px}}
@media print{.theme-picker{display:none!important}}


/* V5: a preferência é definida em html[data-theme], como em todas as abas.
   Não usar fundo claro no modo dark, mesmo se algum estilo legado for carregado. */
html:root[data-theme="dark"] body #emergencyFlow :is(.panel,.decision,.sidepanel),
html:root[data-theme="dark"] body #emergencyFlow button.catalog-card{
 background:var(--ux-panel,#141f31)!important;
 color:var(--ux-text,#d5deee)!important;
 border-color:var(--ux-line,#2b3a50)!important;
 box-shadow:var(--ux-shadow)!important;
}
html:root[data-theme="dark"] body #emergencyFlow :is(.decision h2,.sidetitle,.question,.headrow h1,.detail-heading h2,.catalog-card .name,.timeitem strong){
 color:var(--ux-ink,#edf3ff)!important;
}
html:root[data-theme="dark"] body #emergencyFlow :is(.subtle,.step-count,.detail-path,.catalog-card .foot,.timeitem em,.catalog-info,.headrow p,.detail-heading p){
 color:var(--ux-muted,#a6b5ce)!important;
}
html:root[data-theme="dark"] body #emergencyFlow .conduct{
 background:var(--ux-soft,#1a2c46)!important;
 color:var(--ux-text,#d5deee)!important;
 border-left-color:var(--ux-primary,#8bb8ff)!important;
}
html:root[data-theme="dark"] body #emergencyFlow .conduct.critical{
 background:var(--ux-error-bg,#3c202b)!important;
 color:var(--ux-error-text,#ffb8c2)!important;
 border-left-color:var(--ux-error-text,#ffb8c2)!important;
}
html:root[data-theme="dark"] body #emergencyFlow :is(.conduct.warning,.conduct.orange){
 background:var(--ux-warn-bg,#192e4e)!important;
 color:var(--ux-warn-text,#bdd5ff)!important;
 border-left-color:var(--ux-warn-line,#496b9a)!important;
}
html:root[data-theme="dark"] body #emergencyFlow .conduct :is(p,ul,ol,li,strong,em,span){color:inherit!important}
html:root[data-theme="dark"] body #emergencyFlow .timeitem{
 background:var(--ux-soft,#1a2c46)!important;
 color:var(--ux-text,#d5deee)!important;
 border-color:var(--ux-line,#2b3a50)!important;
}
html:root[data-theme="dark"] body #emergencyFlow .timeitem.active{
 background:var(--ux-primary-soft,#213858)!important;
 border-color:var(--ux-primary,#8bb8ff)!important;
}
html:root[data-theme="dark"] body #emergencyFlow :is(button.option,button.actionbtn,button.back-to-list,button.filter){
 background:var(--ux-panel,#141f31)!important;
 color:var(--ux-ink,#edf3ff)!important;
 border-color:var(--ux-line-strong,#536780)!important;
 box-shadow:none!important;
}
html:root[data-theme="dark"] body #emergencyFlow :is(button.option,button.actionbtn,button.back-to-list,button.filter):hover{
 background:var(--ux-hover,#1d2c43)!important;
 border-color:var(--ux-primary,#8bb8ff)!important;
}
html:root[data-theme="dark"] body #emergencyFlow :is(button.primary,button.filter.on){
 background:var(--ux-action,#245bc1)!important;
 color:#fff!important;
 border-color:var(--ux-primary,#8bb8ff)!important;
}
html:root[data-theme="dark"] body #emergencyFlow .safety{
 background:var(--ux-warn-bg,#192e4e)!important;
 color:var(--ux-warn-text,#bdd5ff)!important;
 border-color:var(--ux-warn-line,#496b9a)!important;
}
html:root[data-theme="dark"] body #emergencyFlow .safety :is(p,strong,small){color:inherit!important}
html:root[data-theme="dark"] body #emergencyFlow .step.critical{
 background:var(--ux-error-bg,#3c202b)!important;color:var(--ux-error-text,#ffb8c2)!important;
}
html:root[data-theme="dark"] body #emergencyFlow :is(.step.warning,.step.orange){
 background:var(--ux-warn-bg,#192e4e)!important;color:var(--ux-warn-text,#bdd5ff)!important;
}
html:root[data-theme="dark"] body #emergencyFlow input.search{
 background:var(--ux-panel,#141f31)!important;color:var(--ux-ink,#edf3ff)!important;
 border-color:var(--ux-line-strong,#536780)!important;
}
/* Nenhum cartão deve reservar uma caixa para ícone que não aparece. */
html:root body #emergencyFlow :is(.card-icon,.detail-icon){display:none!important}
html:root body #emergencyFlow button.catalog-card{
 justify-content:center;
 align-items:flex-start;
 gap:12px;
}
