/* =============================================================================
   Fôlego · sistema de design
   Direção: "editorial calmo". Papel quente, tinta verde-escura, uma cor de ação, muito respiro.
   Tipografia: Fraunces (títulos, calorosa) + Figtree (texto, legível). Fontes hospedadas por nós.
   Contraste verificado em scripts/contrast.mjs (WCAG AA). Tokens abaixo devem refletir aquele script.
   ============================================================================= */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;

  --paper: #F6F3EC;
  --surface: #FFFFFF;
  --sunken: #EDE8DD;
  --ink: #13231D;
  --ink-2: #3F514A;
  --muted: #586761;
  --line: #DDD6C8;
  --field: #78867F;
  --primary: #0E5B49;
  --primary-ink: #FFFFFF;
  --primary-hover: #0A4739;
  --mint: #D9EFE5;
  --mint-ink: #0B4A3B;
  --amber-bg: #FBEBCB;
  --amber-ink: #6E4100;
  --tight-bg: #FBE0D0;
  --tight-ink: #7A2A08;
  --danger-bg: #F8DDD6;
  --danger-ink: #8F2A17;
  --ok-bg: #DDF1E5;
  --ok-ink: #0F5A37;

  --tone-ok: #0E5B49;
  --tone-attention: #A55F00;
  --tone-tight: #B8420F;
  --tone-critical: #B3261E;

  --seg-a: #6F7F78;
  --seg-b: #A55F00;
  --seg-c: #0E5B49;
  --seg-d: #4E9E82;

  --cta-bg: #0E5B49;
  --cta-ink: #F6F3EC;
  --focus: #0E5B49;
  --shadow: 0 1px 0 rgba(19, 35, 29, 0.03), 0 24px 48px -36px rgba(19, 35, 29, 0.18); /* cartão leve: quase só a borda fina, com um sopro de sombra */

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-brand: "Fraunces", Georgia, serif; /* só a palavra "fôlego" do logo: é a tipografia da marca aprovada */
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1714;
    --surface: #15221E;
    --sunken: #1B2B26;
    --ink: #EAF1EC;
    --ink-2: #C3D2CB;
    --muted: #9DB0A8;
    --line: #2A3C35;
    --field: #6A8479;
    --primary: #5FD6AB;
    --primary-ink: #062319;
    --primary-hover: #7BE2BD;
    --mint: #17322A;
    --mint-ink: #A8EBD2;
    --amber-bg: #3A2A0C;
    --amber-ink: #F3C97A;
    --tight-bg: #3F2013;
    --tight-ink: #F7BFA0;
    --danger-bg: #3D1C15;
    --danger-ink: #F5B3A5;
    --ok-bg: #143325;
    --ok-ink: #9BE3B9;
    --tone-ok: #5FD6AB;
    --tone-attention: #F0B44C;
    --tone-tight: #F08C5A;
    --tone-critical: #F27B72;
    --seg-a: #7E918A;
    --seg-b: #F0B44C;
    --seg-c: #5FD6AB;
    --seg-d: #3E8F73;
    --cta-bg: #16342B;
    --cta-ink: #EAF1EC;
    --focus: #5FD6AB;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 24px 48px -36px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 560; letter-spacing: -0.015em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.2rem + 5vw, 4.4rem); letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--primary-hover); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: color-mix(in srgb, var(--primary) 28%, transparent); }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 16px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.center { text-align: center; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 32px; height: 32px; stroke-width: 1.75; }

.eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.micro { font-size: 0.9375rem; color: var(--muted); }
.section-sub { color: var(--ink-2); margin-top: var(--s3); max-width: 40em; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.12s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-ink); box-shadow: 0 8px 20px -10px var(--primary); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--field); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--sunken); color: var(--ink); }
.btn-danger { background: var(--danger-ink); color: var(--danger-bg); }
.btn-danger:hover { filter: brightness(1.08); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn-icon { min-width: 48px; padding: 0; }
.btn .icon { transition: transform 0.2s var(--ease); }
.btn-primary:hover .icon { transform: translateX(3px); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--primary-hover); }

/* ---------- cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--primary); }
.brand-dot { fill: var(--tone-ok); opacity: 0.9; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.03em; }
.header-nav { display: none; gap: var(--s5); }
.header-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 10px 2px; }
.header-nav a:hover { color: var(--primary); }
.header-actions { display: flex; gap: var(--s2); }
@media (min-width: 860px) { .header-nav { display: flex; } }

/* ---------- pílulas, notas, cartões ---------- */
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 0.9375rem; }
.pill.tone-ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.tone-attention { background: var(--amber-bg); color: var(--amber-ink); }
.pill.tone-tight { background: var(--tight-bg); color: var(--tight-ink); }
.pill.tone-critical { background: var(--danger-bg); color: var(--danger-ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); }
.card-eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); font-family: var(--font-body); }

.note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink-2); background: var(--mint); color: var(--mint-ink); padding: 12px 14px; border-radius: var(--radius-sm); }
.note .icon { margin-top: 2px; }
.note-amber { background: var(--amber-bg); color: var(--amber-ink); }
.notice { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); }
.notice-amber { background: var(--amber-bg); color: var(--amber-ink); border-color: transparent; box-shadow: none; }
.notice .icon { margin-top: 3px; width: 1.4em; height: 1.4em; }
.notice-title { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 800; letter-spacing: 0; margin-bottom: 4px; }
.notice ul { padding-left: 1.2em; margin: 8px 0; }

/* ---------- seções da landing ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tint { background: color-mix(in srgb, var(--sunken) 65%, var(--paper)); }
.section-head { margin-bottom: var(--s6); }
.prose { display: grid; gap: var(--s4); color: var(--ink-2); }
.prose h3 { color: var(--ink); margin-top: var(--s3); }

.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero-rings { position: absolute; inset: -20% -12% auto auto; width: min(820px, 120vw); aspect-ratio: 1; pointer-events: none; z-index: 0;
  background: repeating-radial-gradient(circle at center, transparent 0 54px, color-mix(in srgb, var(--primary) 12%, transparent) 55px 56px);
  -webkit-mask-image: radial-gradient(circle, #000 0 30%, transparent 68%); mask-image: radial-gradient(circle, #000 0 30%, transparent 68%);
  animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-grid { position: relative; z-index: 1; display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: var(--s8); } }
.hero h1 em { font-style: italic; color: var(--primary); font-weight: 500; }
.hero-copy { display: grid; gap: var(--s5); justify-items: start; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); }
.chips .icon { color: var(--primary); width: 1.1em; height: 1.1em; }

.example { margin: 0; }
.example-tag { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); text-align: center; }
.example-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: var(--s5); box-shadow: var(--shadow); display: grid; gap: var(--s4); transform: rotate(-1.2deg); }
.example-top { display: flex; align-items: center; gap: var(--s4); }
.example-head { margin-top: 8px; font-size: 1.0625rem; line-height: 1.4; }
.example-first { display: grid; gap: 2px; padding: 14px; background: var(--paper); border-radius: var(--radius-sm); }
.example-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.skeleton-list { list-style: none; display: grid; gap: 10px; }
.skeleton-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.bar { display: block; height: 10px; border-radius: 999px; background: var(--line); }
.w55 { width: 55%; } .w70 { width: 70%; } .w80 { width: 80%; }

/* gauge */
.gauge { width: 100%; max-width: 250px; overflow: visible; }
.gauge-sm { max-width: 138px; flex: none; }
.gauge-track, .gauge-value { fill: none; stroke-width: 9; stroke-linecap: round; }
.gauge-track { stroke: var(--line); }
.gauge-value { transition: stroke-dasharray 1.1s var(--ease); }
.gauge-value.tone-ok { stroke: var(--tone-ok); } .gauge-value.tone-attention { stroke: var(--tone-attention); }
.gauge-value.tone-tight { stroke: var(--tone-tight); } .gauge-value.tone-critical { stroke: var(--tone-critical); }
.gauge-num { font-family: var(--font-display); font-weight: 600; font-size: 34px; fill: var(--ink); }

.steps3 { list-style: none; display: grid; gap: var(--s5); counter-reset: none; }
@media (min-width: 820px) { .steps3 { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.steps3 li { display: grid; gap: var(--s3); align-content: start; padding-top: var(--s4); border-top: 2px solid var(--ink); }
.step-num { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--primary); font-weight: 500; }
.steps3 p { color: var(--ink-2); }

.features { list-style: none; display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); display: grid; gap: var(--s3); align-content: start; }
.feature .icon-lg { color: var(--primary); background: var(--mint); padding: 12px; width: 56px; height: 56px; border-radius: 14px; }
.feature p { color: var(--ink-2); }

.split { display: grid; gap: var(--s5); }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.1fr; gap: var(--s8); align-items: start; } }

.trust-list { list-style: none; display: grid; gap: var(--s5); }
@media (min-width: 900px) { .trust-list { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.trust-list li { display: flex; gap: var(--s3); }
.trust-list .icon { width: 28px; height: 28px; color: var(--primary); margin-top: 2px; }
.trust-list h3 { margin-bottom: 6px; font-size: 1.15rem; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
.trust-list p { color: var(--ink-2); }
.disclaimer { margin-top: var(--s6); padding: var(--s4) var(--s5); border-left: 4px solid var(--primary); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }

.price-wrap { max-width: 640px; }
.price-card { text-align: center; display: grid; gap: var(--s4); padding: var(--s6) var(--s5); }
.price { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 6rem); line-height: 1; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); }
.price-cur { font-size: 0.32em; vertical-align: 0.9em; margin-right: 4px; letter-spacing: 0; color: var(--muted); }
.price-cents { font-size: 0.4em; color: var(--muted); letter-spacing: 0; }
.price-sm { font-size: 3.2rem; }
.price-sub { color: var(--ink-2); }
.tick-list { list-style: none; display: grid; gap: 10px; text-align: left; margin-inline: auto; width: fit-content; max-width: 100%; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.tick-list .icon { color: var(--primary); margin-top: 3px; }

.faq-wrap { max-width: 820px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 64px; padding: 14px 4px; font-weight: 700; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink-2), var(--ink-2)) center/100% 2px no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) center/2px 100% no-repeat; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 4px 20px; color: var(--ink-2); max-width: 46em; }

.final-cta { background: var(--cta-bg); color: var(--cta-ink); }
.final-inner { display: grid; gap: var(--s4); justify-items: center; text-align: center; }
.final-cta h2 { color: var(--cta-ink); }
.final-cta .btn { background: var(--cta-ink); color: var(--cta-bg); }
.final-cta .btn:hover { background: var(--cta-ink); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }

.site-footer { border-top: 1px solid var(--line); padding-block: var(--s7); }
.footer-inner { display: grid; gap: var(--s4); }
.footer-brand { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.footer-links { display: flex; gap: var(--s5); flex-wrap: wrap; }
.footer-legal { color: var(--muted); font-size: 0.9375rem; max-width: 60em; }

/* movimento de entrada */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- telas do fluxo ---------- */
.view-head { padding-top: clamp(28px, 5vw, 56px); margin-bottom: var(--s6); }
.view-head h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.2rem); }
.back-link { margin-left: -12px; margin-bottom: var(--s3); }

/* campos */
.field { display: grid; gap: 6px; align-content: start; }
.field + .field { margin-top: 0; } /* o espaço entre campos vem do gap do contêiner (grid); margem extra desalinhava colunas */
.field-row { display: grid; gap: var(--s4); }
.field-row .field + .field { margin-top: 0; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.label { font-weight: 700; }
.hint { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.error { display: flex; gap: 6px; align-items: flex-start; color: var(--danger-ink); background: var(--danger-bg); border-radius: 10px; padding: 8px 12px; font-size: 0.9375rem; font-weight: 600; }
.error .icon { margin-top: 2px; }
.input, .select {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input::placeholder { color: var(--muted); opacity: 0.85; }
.input:hover, .select:hover { border-color: var(--primary); }
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); outline: none; }
[aria-invalid="true"] { border-color: var(--danger-ink); }
.select { appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.money { position: relative; }
.money-prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); pointer-events: none; }
.money .input { padding-left: 46px; font-variant-numeric: tabular-nums; font-weight: 600; }

.choices { display: grid; gap: 10px; }
.choices-inline { grid-auto-flow: column; grid-auto-columns: 1fr; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 60px; background: var(--surface); border: 1.5px solid var(--field); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease); }
.choice:hover { border-color: var(--primary); }
.choice input { width: 22px; height: 22px; flex: none; accent-color: var(--primary); margin: 0; cursor: pointer; }
.choice-body { display: grid; line-height: 1.3; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--mint); box-shadow: inset 0 0 0 1px var(--primary); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.choice-sm { min-height: 52px; padding: 10px 14px; }
[aria-invalid="true"].choices { padding: 6px; border-radius: 14px; outline: 2px solid var(--danger-ink); }

.check { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.check input { width: 24px; height: 24px; accent-color: var(--primary); margin: 0; flex: none; }
.check label { cursor: pointer; }
.consent { margin-top: var(--s5); padding: var(--s4); background: var(--paper); border-radius: var(--radius-sm); }
.consent .hint { flex-basis: 100%; }

.debts { display: grid; gap: var(--s5); margin: var(--s4) 0; }
.debt { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius); padding: var(--s5) var(--s5) var(--s5); margin: 0; min-width: 0; background: var(--paper); display: grid; gap: var(--s4); }
.debt .field + .field { margin-top: 0; }
.debt-legend { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; padding: 0 8px; }
.debt-remove { position: absolute; top: -18px; right: 12px; background: var(--paper); }
.more { border: 1px dashed var(--field); border-radius: var(--radius-sm); padding: 0 var(--s4); }
.more summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; color: var(--primary); }
.more-body { display: grid; gap: var(--s4); padding-bottom: var(--s4); }
.more-body .field + .field { margin-top: 0; }

.review { display: grid; gap: 2px; margin: 0 0 var(--s4); }
.review-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.review-row dt { color: var(--muted); font-size: 0.9375rem; }
.review-row dd { margin: 0; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* formulário: linha do tempo (desktop) e passo a passo (celular) */
.intake-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-bottom: var(--s8); }
.progress-mobile { margin-bottom: var(--s4); }
.progress-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width 0.4s var(--ease); }
.progress-label { margin-top: 8px; font-weight: 700; font-size: 0.9375rem; color: var(--ink-2); }

.timeline { list-style: none; }
.step { display: block; }
.step-rail { display: none; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); }
.step-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); }
.step-title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.9rem); scroll-margin-top: 96px; }
.step-done-summary { display: none; }
.step-body { margin-top: var(--s5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.step-body > .hint { margin-top: -6px; }
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s4); }
.step-actions .btn-primary { flex: 1; max-width: 320px; margin-left: auto; }
.step-edit { display: none; }
.summary { display: none; }

@media (max-width: 1023.98px) {
  .step:not([data-state="active"]) { display: none; }
  .step-actions { position: sticky; bottom: 0; z-index: 5; background: linear-gradient(to top, var(--surface) 78%, transparent); padding: 14px 0 max(14px, env(safe-area-inset-bottom)); margin-inline: calc(-1 * var(--s5)); padding-inline: var(--s5); }
  .step-actions .btn-primary { max-width: none; }
}

@media (min-width: 1024px) {
  .progress-mobile { display: none; }
  .intake-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s8); align-items: start; }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s4); scroll-margin-top: 92px; }
  .step-rail { display: flex; justify-content: center; position: relative; }
  .step-rail::before { content: ""; position: absolute; top: 46px; bottom: -6px; width: 2px; background: var(--line); transition: background-color 0.5s var(--ease); }
  .step:last-child .step-rail::before { display: none; }
  .step[data-state="done"] .step-rail::before { background: var(--primary); }
  .step-node { width: 32px; height: 32px; margin-top: 16px; border-radius: 50%; border: 2px solid var(--field); background: var(--paper); display: grid; place-items: center; transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
  .step-node .icon { width: 16px; height: 16px; stroke: var(--primary-ink); stroke-width: 3; opacity: 0; transform: scale(0.5); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
  .step[data-state="active"] .step-node { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 0 34%, var(--paper) 38%); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 16%, transparent); }
  .step[data-state="done"] .step-node { background: var(--primary); border-color: var(--primary); }
  .step[data-state="done"] .step-node .icon { opacity: 1; transform: none; }
  .step-card { background: transparent; border-color: transparent; box-shadow: none; padding: 16px 0 26px; transition: opacity 0.4s var(--ease); }
  .step[data-state="future"] .step-card { opacity: 0.42; }
  .step[data-state="future"] .step-title { font-size: 1.3rem; }
  .step[data-state="done"] .step-title { font-size: 1.15rem; color: var(--ink-2); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
  .step[data-state="done"] .step-done-summary { display: block; color: var(--ink); font-weight: 700; margin-top: 2px; }
  .step[data-state="done"] .step-edit { display: inline-flex; }
  .step[data-state="active"] .step-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: var(--s6); margin-bottom: var(--s5); animation: rise 0.45s var(--ease); }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  .summary { display: block; position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); }
  .summary-title { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
  .summary-list { margin: 0; display: grid; }
  .summary-row { display: flex; justify-content: space-between; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); }
  .summary-row dt { color: var(--muted); }
  .summary-row dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
  .summary-note { display: block; margin-top: var(--s3); color: var(--muted); font-size: 0.9375rem; }
  .summary-surplus { margin-top: var(--s4); padding: 14px; border-radius: var(--radius-sm); background: var(--ok-bg); color: var(--ok-ink); display: grid; gap: 2px; }
  .summary-surplus strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; }
  .summary-surplus.is-negative { background: var(--danger-bg); color: var(--danger-ink); }
  .summary-surplus .summary-note { color: inherit; margin-top: 4px; }
}

/* processando */
.processing { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: var(--s5); text-align: center; padding-block: var(--s8); }
.breath { position: relative; width: 120px; height: 120px; }
.breath::before, .breath::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); animation: ring 2.4s var(--ease) infinite; }
.breath::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(0.35); opacity: 0.9; } to { transform: scale(1.1); opacity: 0; } }
.processing h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); }

/* preview */
.preview-layout { display: grid; gap: var(--s5); padding-bottom: var(--s8); }
.preview-main { display: grid; gap: var(--s4); align-content: start; }
.score-body { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.score-body .gauge { flex: none; width: 210px; max-width: 100%; }
.score-body > div { flex: 1 1 240px; min-width: 0; }
.score-text { margin-top: 8px; color: var(--ink-2); max-width: 26em; }
.headline { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.18; letter-spacing: -0.015em; margin-bottom: 8px; font-weight: 560; }
.first-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 560; line-height: 1.15; }
.first-card { border-left: 5px solid var(--primary); }
.locked-card h2 { font-size: 1.5rem; margin-bottom: var(--s4); }
.locked-list { list-style: none; display: grid; gap: var(--s4); }
.locked-list li { display: flex; gap: 14px; }
.locked-list li > div { display: grid; gap: 2px; flex: 1; }
.icon-lock { color: var(--muted); margin-top: 2px; }
.skeleton { display: grid; gap: 6px; margin-top: 8px; }
.skeleton .bar { height: 9px; background: var(--sunken); }

.decision { display: grid; gap: var(--s3); align-content: start; }
.decision h2 { font-size: 1.7rem; }
.decision .price-sm { margin: 4px 0; }
.decision .tick-list { margin: var(--s2) 0; width: auto; }
.buy-bar { display: none; }
@media (max-width: 1023.98px) {
  #view-preview { padding-bottom: 92px; }
  .buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: var(--s3); padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, 0.35); }
  .buy-bar > div { display: grid; line-height: 1.25; font-size: 0.9375rem; }
  .buy-bar .btn { white-space: nowrap; flex: none; }
  .buy-bar > div strong { font-size: 1.15rem; }
  body[data-route="preview"] .toast { bottom: 96px; }
}
@media (min-width: 1024px) {
  .preview-layout { grid-template-columns: minmax(0, 1fr) 390px; gap: var(--s7); align-items: start; }
  .decision { position: sticky; top: 96px; }
}

/* pagamento */
.checkout-layout { display: grid; gap: var(--s5); padding-bottom: var(--s8); }
@media (min-width: 900px) { .checkout-layout { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--s6); } }
.checkout-summary, .checkout-pay { display: grid; gap: var(--s4); align-content: start; }
.co-lines { list-style: none; display: grid; }
.co-line { display: flex; justify-content: space-between; gap: var(--s4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.15rem; }
.co-total strong { font-family: var(--font-display); font-size: 2rem; font-weight: 560; font-variant-numeric: tabular-nums; }
.bump { border: 1.5px dashed var(--field); border-radius: var(--radius-sm); padding: var(--s4); background: var(--paper); }
.bump .check { align-items: flex-start; flex-wrap: nowrap; }
.bump .check input { margin-top: 2px; }
.bump label { display: grid; gap: 2px; }
.demo-notice { display: flex; gap: 10px; background: var(--amber-bg); color: var(--amber-ink); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.9375rem; }
.demo-notice .icon { margin-top: 3px; }
.qr { width: min(240px, 70%); margin-inline: auto; padding: 14px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.pix-code-row { display: grid; gap: var(--s2); }
@media (min-width: 520px) { .pix-code-row { grid-template-columns: 1fr auto; } }
.pix-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; text-overflow: ellipsis; }
.pix-steps { padding-left: 1.3em; color: var(--ink-2); display: grid; gap: 4px; }
.pix-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.pix-status { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pix-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }

/* entrega */
.delivery-wrap { display: grid; gap: var(--s5); padding-block: clamp(28px, 5vw, 56px) var(--s8); }
.d-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); flex-wrap: wrap; }
.d-head h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.2rem); }
.d-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.d-nav { position: sticky; top: 68px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; margin-inline: 0; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); scrollbar-width: none; }
.d-nav::-webkit-scrollbar { display: none; }
.d-nav a { flex: none; padding: 8px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 0.9375rem; }
.d-nav a:hover { border-color: var(--primary); color: var(--primary); }
.d-section { display: grid; gap: var(--s4); align-content: start; scroll-margin-top: 130px; }
.d-section h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin: 0; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 2px; }
.stat dt { color: var(--muted); font-size: 0.875rem; }
.stat dd { margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 560; font-variant-numeric: tabular-nums; }
.order-list { list-style: none; display: grid; gap: var(--s3); }
.order-item { display: flex; gap: var(--s4); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.rank { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-weight: 800; }
.order-body { display: grid; gap: 4px; min-width: 0; }
.order-name { overflow-wrap: anywhere; }
.budget-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: var(--line); gap: 2px; }
.budget-bar span { display: block; min-width: 4px; }
.seg-a { background: var(--seg-a); } .seg-b { background: var(--seg-b); } .seg-c { background: var(--seg-c); } .seg-d { background: var(--seg-d); }
.legend { list-style: none; display: grid; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.gantt { list-style: none; display: grid; gap: var(--s3); }
.gantt li { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; gap: var(--s3); align-items: center; }
.gantt-name { font-weight: 700; overflow-wrap: anywhere; }
.gantt-track { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.gantt-track i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.gantt-val { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 0.9375rem; white-space: nowrap; }
@media (max-width: 520px) { .gantt li { grid-template-columns: 1fr auto; } .gantt-track { grid-column: 1 / -1; grid-row: 2; } }
.pending { display: flex; gap: 12px; padding: var(--s4); border: 1px dashed var(--field); border-radius: var(--radius-sm); background: var(--paper); }
.pending .icon { margin-top: 3px; color: var(--muted); }
.guide { padding-left: 1.3em; display: grid; gap: 10px; color: var(--ink-2); }

/* diálogo */
.dialog { width: min(680px, calc(100% - 32px)); max-height: min(86vh, 760px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5); }
.dialog-sm { width: min(460px, calc(100% - 32px)); }
.dialog::backdrop { background: rgba(8, 16, 12, 0.6); backdrop-filter: blur(3px); }
.dialog[open] { animation: pop 0.25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.dialog-inner { display: flex; flex-direction: column; max-height: inherit; margin: 0; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s5) var(--s5) var(--s3); }
.dialog-head h2 { font-size: 1.5rem; }
.dialog-body { padding: 0 var(--s5) var(--s4); overflow-y: auto; }
.dialog-foot { display: flex; justify-content: flex-end; gap: var(--s3); padding: var(--s4) var(--s5) var(--s5); border-top: 1px solid var(--line); }
/* Rodapé com várias ações de texto longo (ex.: convite por WhatsApp): empilha, a principal em cima, cada uma na largura toda. */
.dialog-foot.dialog-foot-stack { flex-direction: column-reverse; align-items: stretch; }
.dialog-foot.dialog-foot-stack .btn { justify-content: center; width: 100%; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 120; max-width: min(520px, calc(100% - 32px)); background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5); animation: toast-in 0.3s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- acessibilidade e impressão ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .btn, .choice, .input, .select { border: 2px solid ButtonText; }
  .gauge-value { stroke: Highlight; }
}
@media print {
  .site-header, .site-footer, .d-nav, .no-print, .toast, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main [data-view]:not([data-view="delivery"]) { display: none !important; }
  .card { box-shadow: none; border: 1px solid #bbb; break-inside: avoid; }
  .delivery-wrap { padding: 0; gap: 12px; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* ---------- roteiros e cartas ---------- */
.bullets { padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); }
.script { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); background: var(--paper); display: grid; gap: var(--s4); }
.script h3 { font-size: 1.35rem; }
.script-block { display: grid; gap: var(--s2); justify-items: start; }
.script-block h4 { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.script-block > p, .script-block > .bullets { justify-self: stretch; }
.quote { margin: 0; padding: 12px 16px; border-left: 4px solid var(--primary); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); justify-self: stretch; }
.message, .letter { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-body); font-size: 0.975rem; line-height: 1.55; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; justify-self: stretch; color: var(--ink); }
.letter { font-size: 0.95rem; }
.offer { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; justify-self: stretch; }
.offer > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; display: grid; gap: 2px; }
.offer dt { color: var(--muted); font-size: 0.8125rem; }
.offer dd { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 560; font-variant-numeric: tabular-nums; }
.button-row { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: flex-end; }
.button-row:has(.input) .btn { min-height: 52px; } /* botão ao lado de campo tem a mesma altura do campo */
.button-row:has(.input) > .input { flex: 1 1 160px; min-width: 0; }
.button-row > .field { flex: 1 1 200px; min-width: 0; }
@media print { .script { break-inside: avoid; } .no-print { display: none !important; } }

/* ---------- cartão "tem mais no seu diagnóstico" ---------- */
.discover { background: var(--mint); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); color: var(--mint-ink); display: grid; gap: var(--s3); }
.discover .card-eyebrow, .discover .muted { color: var(--mint-ink); opacity: 0.85; }
.discover h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem); color: var(--ink); }
.discover-list { list-style: none; display: grid; gap: 10px; margin: var(--s2) 0; }
.discover-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: var(--radius-sm); padding: 10px 12px; }
.discover-list .icon-lock { color: var(--primary); margin-top: 3px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 48px; }
.pw-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--ink); }
.pw-eye:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.price-pix { margin-left: 10px; font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.decision-lead { margin: var(--s3) 0 var(--s2); padding: 8px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); font-weight: 700; }
.worth { margin: var(--s3) 0; padding: var(--s3) var(--s4); border-left: 3px solid var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.worth-t { margin: 0 0 var(--s2); font-size: 1.05rem; }
.worth-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.worth-list li { display: flex; gap: 10px; align-items: flex-start; }
.worth-list .icon { color: var(--primary); margin-top: 3px; flex: none; }
.discover .fine { color: var(--mint-ink); }

/* ---------- formulário das cartas ---------- */
.fill-form { display: grid; gap: var(--s3); padding: var(--s4); border: 1px dashed var(--field); border-radius: var(--radius); background: var(--paper); }
.fill-form h3 { font-size: 1.15rem; }
.letter-status { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: 0.9375rem; margin: 0; }
.letter-status.is-ready { color: var(--ok-ink); }
.letter-status.is-missing { color: var(--amber-ink); }
.letter-status .icon { margin-top: 3px; }

/* ---------- link de acesso, complementos, calendário, renda extra, ferramentas ---------- */
.access-out { display: grid; gap: var(--s3); margin-top: var(--s3); }
.addons { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.addon { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); background: var(--paper); display: grid; gap: var(--s2); align-content: start; justify-items: start; }
.addon h3 { font-size: 1.2rem; }
.agenda { list-style: none; display: grid; gap: var(--s3); margin: var(--s4) 0 0; padding: 0; }
.agenda-item { display: grid; grid-template-columns: 84px 1fr; gap: var(--s4); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.agenda-date { display: grid; gap: 2px; align-content: start; }
.agenda-date span { font-size: 0.8125rem; text-transform: capitalize; }
.agenda-body { display: grid; gap: 6px; justify-items: start; }
.agenda-body h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
.agenda-item.kind-essencial, .agenda-item.kind-prescricao { border-color: color-mix(in srgb, var(--amber-ink) 45%, var(--line)); }
.ideas { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.weeks { display: grid; gap: var(--s3); padding-left: 1.2em; margin-bottom: var(--s5); }
.checklist { list-style: none; display: grid; gap: 6px; padding-left: 0; margin-top: 6px; }
.checklist .check { flex-wrap: nowrap; align-items: flex-start; }
.checklist .check input { margin-top: 2px; }
.tools-layout { display: grid; gap: var(--s5); padding-bottom: var(--s7); }
.tool-form { display: grid; gap: var(--s4); justify-items: start; }
.tool-form .field, .tool-form .fieldset { justify-self: stretch; }
.tool-form .check { margin: 0; }
.tool-out { display: grid; gap: var(--s3); margin-top: var(--s3); }
.fieldset { border: 0; padding: 0; margin: 0; }
.resume-banner { background: var(--mint); color: var(--mint-ink); }
.resume-inner { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 10px; }
@media (max-width: 480px) { .agenda-item { grid-template-columns: 1fr; gap: var(--s2); } }
@media print { .agenda-item, .addon { break-inside: avoid; } }
.co-discount strong { color: var(--ok-ink); }
.bump + .bump { margin-top: var(--s3); }

/* ---------- conta / assinatura ---------- */
.plans { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-price { margin: 4px 0; }
.card-price strong { font-family: var(--font-display); font-size: 1.6rem; }
.entry-form { align-items: end; }
.entries { list-style: none; display: grid; gap: 8px; margin: var(--s3) 0 0; padding: 0; }
.entry-row { display: grid; grid-template-columns: 90px 1fr auto auto auto; gap: var(--s3); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.entry-row strong.neg { color: var(--danger-ink, #b3261e); }
.entry-row strong.pos { color: var(--ok-ink); }
.legend strong.over { color: var(--danger-ink, #b3261e); }
.goal { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.input-sm { padding: 6px 10px; font-size: 0.875rem; }

/* Prumo no celular: instalar como app e receber lembretes (aba Perfil e convite no topo de Coach/Visão geral) */
.stack { display: grid; gap: var(--s4); }
.app-steps ol { margin: 6px 0 0; padding-left: 1.25rem; display: grid; gap: 4px; }
.app-card h3 { margin: var(--s2) 0 0; font-size: 1.0625rem; }
.app-card .row-actions, .app-invite .row-actions, .assistant-card .row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.app-invite { background: var(--mint); border-color: transparent; box-shadow: none; }
.app-invite p { margin: 0; }

/* Ritmo do mês e mapa de calor (Visão geral) */
.pace-chart { width: 100%; height: auto; max-height: 160px; display: block; }
.pace-axis { stroke: var(--line); stroke-width: 1; }
.pace-now { stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pace-prev { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.pace-dot { fill: var(--primary); }
.pace-label { fill: var(--muted); font-size: 10px; font-family: var(--font-body); }
.pace-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.pace-key { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--primary); vertical-align: middle; margin-left: 6px; }
.pace-key-prev { border-top: 3px dashed var(--muted); }
.pace-card h3 { margin: var(--s2) 0 0; font-size: 1.0625rem; }
.heatmap { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 420px; }
.hm-head { text-align: center; font-size: 0.75rem; color: var(--muted); }
.hm-cell { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; font-size: 0.7rem; color: var(--ink-2); background: var(--sunken); }
.hm-blank { background: transparent; }
.hm-future { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.hm-1 { background: color-mix(in srgb, var(--primary) 22%, var(--sunken)); }
.hm-2 { background: color-mix(in srgb, var(--primary) 42%, var(--sunken)); }
.hm-3 { background: color-mix(in srgb, var(--primary) 76%, var(--sunken)); color: var(--primary-ink); }
.hm-4 { background: var(--primary); color: var(--primary-ink); }

/* Lançar rápido */
.quick-form { display: grid; gap: 10px; }
.quick-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.quick-row .input { flex: 1 1 240px; }
.quick-out:empty { display: none; }
.quick-draft { border-top: 1px solid var(--line); padding-top: var(--s4); }
.quick-card .row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 620px) { .entry-row { grid-template-columns: 1fr; gap: 4px; } }

/* =============================================================================
   Assinatura (#/conta): barra da conta, abas, visão geral, lançamentos, metas.
   Só usa os tokens do sistema (claro e escuro). Alvos de toque de 44px.
   ============================================================================= */
.pos { color: var(--ok-ink); }
.neg { color: var(--danger-ink); }
.acc-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.acc-bar .acc-mail { margin-top: 6px; overflow-wrap: anywhere; }
.acc-until { font-weight: 700; }
/* Os dados do plano (pílula, nome, e-mail, valor e renovação) ficam só na aba "Plano e dados", no celular e no computador.
   O cabeçalho só aparece se tiver aviso (conta de teste ou compartilhada). */
.acc-bar:not([data-keep]) { display: none; }
.acc-bar[data-keep] .acc-hide-mobile { display: none; }

/* Topo do Prumo: marca à esquerda e ícone de perfil à direita, na mesma linha (rolam juntos com a página). */
.acc-head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.acc-brand h1 { margin: 0; }
.acc-tagline { margin: 4px 0 0; }
.acc-avatar { flex: none; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 2px solid var(--line); background: var(--sunken); display: grid; place-items: center; overflow: hidden; cursor: pointer; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.acc-avatar[hidden] { display: none; }
.acc-avatar:hover { border-color: var(--primary); }
.acc-avatar:active { transform: scale(0.96); }
.acc-avatar[data-active] { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.acc-avatar:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-initial { display: grid; place-items: center; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--primary-ink); background: var(--primary); }
.avatar-row { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.avatar-big { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line); display: block; flex: none; }
.avatar-big .avatar-initial { font-size: 2.25rem; }
.avatar-card .row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .acc-avatar { transition: none; } }
.warn-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; flex: 1; }
.acc-tabs { position: sticky; top: 68px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; margin-inline: -2px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); scrollbar-width: none; }
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-weight: 700; font-size: 0.9375rem; cursor: pointer; transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease); }
.acc-tab:hover { border-color: var(--primary); color: var(--primary); }
.acc-tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.acc-tab .icon { width: 14px; height: 14px; margin: 0; color: currentColor; opacity: 0.75; }
.acc-panel { outline: none; }
.acc-stack { display: grid; gap: var(--s4); }
.acc-loading { padding: var(--s5) 0; }

.month-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.month-label { font-family: var(--font-display); font-size: 1.25rem; font-weight: 560; }
.icon-btn { min-width: 44px; padding: 0; justify-content: center; }
.icon-btn .icon { margin: 0; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

.balance { display: grid; gap: 2px; }
.balance-num { font-family: var(--font-display); font-size: clamp(2.2rem, 1.4rem + 4vw, 3.4rem); line-height: 1.05; font-weight: 560; font-variant-numeric: tabular-nums; }
.stats.stats-2 { grid-template-columns: repeat(2, 1fr); }
.stat dd.pos { color: var(--ok-ink); }

.progress { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--primary); min-width: 2px; transition: width 0.5s var(--ease); }
.progress.is-over i { background: var(--tone-critical); }
.progress.is-done i { background: var(--seg-d); }
@media (prefers-reduced-motion: reduce) { .progress i { transition: none; } }

.cat-list { list-style: none; display: grid; gap: var(--s4); margin: 0; padding: 0; }
.cat-list li, .goal-mini { display: grid; gap: 6px; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.cat-head strong { font-variant-numeric: tabular-nums; }

.empty { display: grid; gap: var(--s2); justify-items: start; padding: var(--s4); border: 1px dashed var(--field); border-radius: var(--radius-sm); background: var(--paper); }
.locked-box { display: flex; gap: 12px; padding: var(--s4); border: 1px dashed var(--field); border-radius: var(--radius-sm); background: var(--paper); }
.tick-list.left { margin-inline: 0; width: auto; }

.entry-form { display: grid; gap: var(--s4); grid-template-columns: 1fr; align-items: end; }
@media (min-width: 640px) { .entry-form { grid-template-columns: 1fr 1fr; } .entry-form .field-wide { grid-column: 1 / -1; } }
.entry-form .btn[type="submit"] { justify-self: start; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.seg-btn { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 700; cursor: pointer; transition: background 0.18s var(--ease), color 0.18s var(--ease); }
.seg-btn[aria-checked="true"] { background: var(--primary); color: var(--primary-ink); }
.import-box { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.entry-row .entry-note { overflow-wrap: anywhere; }
.entry-amount { font-variant-numeric: tabular-nums; text-align: right; }
.money { font-variant-numeric: tabular-nums; }

.budget-list { list-style: none; display: grid; gap: var(--s4); margin: 0; padding: 0; }
.budget-row { display: grid; gap: 8px; padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.budget-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.budget-top .label { margin: 0; }
.budget-top .input { max-width: 150px; text-align: right; }
.budget-bottom { display: grid; gap: 4px; }

.goal-list { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.goal-card { display: grid; gap: var(--s3); align-content: start; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.goal-card.is-done { background: var(--ok-bg); border-color: transparent; color: var(--ok-ink); }
.goal-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); flex-wrap: wrap; }
.goal-top h3 { font-size: 1.25rem; }
.goal-nums { margin: 0; font-variant-numeric: tabular-nums; }
.goal-nums strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 560; }
.contrib-form { display: flex; gap: var(--s2); flex-wrap: wrap; }
.contrib-form .input { flex: 1 1 130px; min-width: 0; }
.goal-history summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.goal-history ul { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.goal-history li { display: grid; grid-template-columns: 56px 1fr auto auto; gap: var(--s2); align-items: center; }
.new-goal > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 560; }
.new-goal[open] > summary { margin-bottom: var(--s3); }
.goal-form { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .goal-form { grid-template-columns: 1fr 1fr; } .goal-form .field-wide { grid-column: 1 / -1; } }
.goal-form .btn { justify-self: start; }

.insight-list { display: grid; gap: var(--s3); }
.insight { padding: var(--s4); border-radius: var(--radius-sm); background: var(--paper); border-left: 4px solid var(--primary); }
.insight h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; }
.plan-line { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin: 0; }
.plan-opt { display: grid; gap: var(--s3); align-content: start; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
@media (max-width: 620px) {
  .entry-row { grid-template-columns: 1fr auto; grid-template-areas: "note amount" "date del" "cat cat"; }
  .entry-row .entry-note { grid-area: note; } .entry-row .entry-amount { grid-area: amount; }
  .entry-row .entry-date { grid-area: date; } .entry-row .btn { grid-area: del; justify-self: end; } .entry-row select { grid-area: cat; }
}
/* Categorias próprias: o campo de nome entra no lugar do seletor e a lista de categorias fica recolhida abaixo do formulário. */
.cat-new { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cat-new .input { flex: 1 1 auto; min-width: 0; }
.cat-new .btn { flex: none; }
@media (max-width: 620px) { .entry-row .cat-new { grid-area: cat; } }
.cat-manage { margin-top: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s3); }
.cat-manage summary { cursor: pointer; font-weight: 700; }
.cat-manage .fine { margin: var(--s2) 0; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: var(--s3) 0; }
.cat-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface, #fff); }
.cat-chip-x { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.cat-chip-x:hover { background: var(--line); color: var(--ink); }
.cat-add { display: flex; gap: 8px; align-items: center; max-width: 420px; }
.cat-add .input { flex: 1 1 auto; min-width: 0; }
/* Desktop: colunas de largura fixa. Com colunas "auto" cada linha calculava as suas e a categoria, o valor e a lixeira
   ficavam em posições diferentes de uma linha para outra. Só vale acima de 620 px: o mobile não muda. */
@media (min-width: 621px) {
  .entry-row { grid-template-columns: 84px minmax(0, 1fr) 190px 124px 36px; column-gap: var(--s4); }
  .entry-row .entry-note { min-width: 0; }
  .entry-row select { width: 100%; min-width: 0; }
  .entry-row .entry-amount { white-space: nowrap; }
  .entry-row .btn { justify-self: end; }
  /* conferência do PDF: a primeira coluna é a caixa de seleção */
  .entry-row:has(> input[type="checkbox"]) { grid-template-columns: 24px 84px minmax(0, 1fr) 124px; }
}
#account-root { grid-template-columns: minmax(0, 1fr); } /* a barra de abas rola por dentro; sem isso o grid cresce até o tamanho das abas e corta a página no celular */
#account-root > * { min-width: 0; }
.acc-stack { grid-template-columns: minmax(0, 1fr); }
.acc-stack > * { min-width: 0; }
.stats.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats.stats-2 .stat dd { font-size: clamp(1.05rem, 0.6rem + 3.4vw, 1.5rem); overflow-wrap: anywhere; }
.goal-nums span { display: block; }

/* Aviso do site (editado no backoffice em Configurações). */
.announce { padding: 10px var(--gutter); text-align: center; font-weight: 700; font-size: 0.9375rem; }
.announce-info { background: var(--mint); color: var(--mint-ink); }
.announce-warn { background: var(--amber-bg); color: var(--amber-ink); }
.week-goal { margin: 4px 0 0; font-size: 0.9375rem; }

/* Estratégias do Mapa e calendário do plano */
.strat-verdict { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }
.strat-block { display: grid; gap: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line); min-width: 0; }
.strat-block h3 { font-size: 1.25rem; }
.strat-pill { margin-left: 8px; font-size: 0.75rem; padding: 2px 8px; }
.strat-desc { display: block; font-weight: 400; margin-top: 2px; }
.table-wrap { overflow-x: auto; margin-inline: calc(var(--s5) * -1); padding-inline: var(--s5); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 460px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.data-table tbody th { font-weight: 400; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tr.is-highlight th, .data-table tr.is-highlight td { background: var(--mint); color: var(--mint-ink); }
.data-table tr.is-highlight th { padding-left: 10px; border-radius: 10px 0 0 10px; }
.data-table tr.is-highlight td:last-child { padding-right: 10px; border-radius: 0 10px 10px 0; }
.data-table tr.is-highlight .fine { color: inherit; }
.month-plan { list-style: none; display: grid; gap: var(--s3); margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.month-plan > li { display: grid; gap: 8px; align-content: start; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.month-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.month-pay { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.month-pay li { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; }
.month-pay strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.milestones { list-style: none; display: grid; gap: 0; margin: 0; padding: 0; }
.milestone { display: grid; grid-template-columns: 84px 1fr; gap: var(--s3); padding: 10px 0 10px var(--s3); border-left: 3px solid var(--line); }
.milestone p { margin: 2px 0 0; }
.ms-when { font-weight: 800; font-size: 0.875rem; color: var(--muted); }
.ms-payoff { border-left-color: var(--seg-d); }
.ms-debt_free { border-left-color: var(--primary); }
.strat-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 var(--s4); background: var(--paper); }
.strat-item[open] { padding-bottom: var(--s4); }
.strat-item summary { display: flex; align-items: center; gap: var(--s3); min-height: 56px; cursor: pointer; list-style: none; }
.strat-item summary::-webkit-details-marker { display: none; }
.strat-item > p { margin: 0 0 var(--s3); }
.strat-steps { display: grid; gap: 6px; padding-left: 1.3em; margin: 0 0 var(--s3); }
.cal-how { padding: var(--s4); border-radius: var(--radius-sm); background: var(--mint); color: var(--mint-ink); display: grid; gap: var(--s2); }
.cal-how h3 { font-size: 1.1rem; }
.cal-how .strat-steps { margin: 0; }
.agenda-item.kind-marco { border-color: var(--primary); }
.agenda-item.kind-estrategia { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
@media print { .strat-item:not([open]) > * { display: block; } }

/* Assinatura: carteiras e lembretes */
.wallet-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s3); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wallet-row.is-done strong, .wallet-row.is-done .muted { text-decoration: line-through; opacity: .7; }
.wallet-row .check { display: flex; gap: var(--s3); align-items: flex-start; }
.wallet-row .neg { color: var(--danger-ink, #b3261e); }
.entry-note .wallet-tag { color: var(--muted, #5b6470); font-size: .85em; }
.debt-row { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.debt-top { display: flex; gap: var(--s3); align-items: center; }
.debt-top .icon-btn { margin-left: auto; }
.debt-row.is-done strong { text-decoration: line-through; opacity: .7; }
.payoff-order { margin: var(--s3) 0 0; padding-left: 1.2em; color: var(--muted, #5b6470); }

/* Coach e Mercado */
.health { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.health-score { display: inline-flex; align-items: baseline; justify-content: center; gap: 2px; min-width: 112px; padding: 18px 16px; border-radius: 999px; border: 4px solid currentColor; }
.health-score strong { font-size: 2.6rem; line-height: 1; }
.health-score.tone-bad { color: var(--danger-ink, #b3261e); }
.health-score.tone-warn { color: #8a5a00; }
.health-score.tone-ok { color: var(--ok-ink); }
.health-parts { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.health-part-top { display: flex; justify-content: space-between; gap: var(--s3); }
.journeys { display: grid; gap: var(--s3); }
.journey, .method { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); background: var(--paper); }
.journey summary, .method summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); cursor: pointer; font-weight: 600; }
.journey-title { display: inline-flex; gap: 8px; align-items: center; }
.journey.is-locked, .method.is-locked, .insight.is-locked, .indicator.is-locked { opacity: .78; }
.missions { list-style: none; margin: var(--s3) 0; padding: 0; display: grid; gap: var(--s3); }
.missions li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s2); align-items: start; }
.missions li.is-done strong { text-decoration: line-through; opacity: .7; }
.mission-mark { color: var(--ok-ink); font-weight: 700; }
.indicators { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.indicator { display: grid; gap: 4px; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); align-content: start; }
.indicator-value { font-size: 1.7rem; line-height: 1.1; }
.spark { width: 100%; height: 64px; color: var(--primary); }
.insights { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.insight { padding: var(--s3) var(--s4); border-left: 4px solid var(--line); background: var(--paper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.insight.tone-good { border-left-color: var(--ok-ink); }
.insight.tone-warn { border-left-color: #b8860b; }
.insight p { margin: 4px 0 0; }
.streak { font-size: 1.05rem; margin: 0 0 var(--s3); }
.streak strong { font-size: 1.8rem; color: var(--primary); }
.challenges, .compare-list { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: var(--s3); }
.challenges li { display: grid; grid-template-columns: 24px 1fr auto; gap: var(--s2); align-items: center; }
.challenges li.is-done span:nth-child(2) { text-decoration: line-through; opacity: .7; }
.compare-list li { display: flex; justify-content: space-between; gap: var(--s3); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.compare-list .neg { color: var(--danger-ink, #b3261e); }
.compare-list .pos { color: var(--ok-ink); }
.objectives { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.objective { display: grid; gap: 6px; text-align: left; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); cursor: pointer; font: inherit; color: inherit; }
.objective:hover, .objective:focus-visible { border-color: var(--primary); }
.goal-templates { margin-bottom: var(--s3); }

/* ===== Prumo: navegação agrupada e polimento ===== */
.acc-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; margin-top: var(--s3); }
.acc-shell > * { min-width: 0; }
.acc-tabs { margin-inline: 0; padding-inline: 0; position: sticky; top: 64px; mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.acc-group { display: contents; }
.acc-group-label { display: none; }
@media (min-width: 960px) {
  .acc-shell { grid-template-columns: 232px minmax(0, 1fr); gap: var(--s5); }
  .acc-tabs { top: 88px; flex-direction: column; gap: 2px; overflow: visible; padding: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); mask-image: none; -webkit-mask-image: none; backdrop-filter: none; max-height: calc(100vh - 110px); overflow-y: auto; }
  .acc-group { display: grid; gap: 2px; margin-bottom: var(--s3); }
  .acc-group:last-child { margin-bottom: 0; }
  .acc-group-label { display: block; padding: 6px 12px 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .acc-tab { border-radius: var(--radius-sm); border-color: transparent; background: transparent; justify-content: flex-start; width: 100%; min-height: 40px; }
  .acc-tab:hover { background: var(--sunken); }
}
.acc-bar { padding-bottom: var(--s2); }
.journey > :not(summary), .method > :not(summary) { margin-top: var(--s3); margin-bottom: 0; }
.method ol { padding-left: 1.4em; }
.method summary, .journey summary { min-height: 44px; }
.prumo .lead { max-width: 60ch; color: var(--ink-2); }
.plan-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; margin-top: var(--s5); }
.plan-card { display: grid; gap: var(--s3); align-content: start; position: relative; }
.plan-card h3 { margin: 0; }
.plan-tag { color: var(--muted); margin: 0; }
@media (min-width: 900px) { .plan-tag { min-height: 3em; } }
.header-cta, .header-login { white-space: nowrap; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.plan-price span { color: var(--muted); }
.plan-card .tick-list { margin: 0; }
.plan-card .btn { align-self: end; margin-top: auto; }
.plan-featured { border: 2px solid var(--primary); }
.plan-flag { position: absolute; top: -14px; left: var(--s4); margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: 0.8125rem; font-weight: 700; }
.center { text-align: center; }

.header-nav a { white-space: nowrap; }
.header-nav { gap: var(--s4); }
.prumo .section-head .lead { margin-top: var(--s3); }
.prumo .micro { margin-top: var(--s5); }
.objectives { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
/* Em larguras médias o menu perde primeiro o que é secundário; o Tradutor de cobrança fica visível. */
@media (max-width: 1139px) { .header-nav a[data-nav="tools"], .header-nav a[href="#duvidas"] { display: none; } }
@media (max-width: 1019px) { .header-nav a[href="#o-que-recebe"] { display: none; } }
.partner-cta { margin-top: var(--s2); }

/* Indicações */
.ref-stats { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: var(--s4); }
.ref-stats > div { display: grid; gap: 2px; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.ref-stats strong { font-size: 1.6rem; line-height: 1.1; color: var(--primary); }
.note-green { background: color-mix(in srgb, var(--ok-ink) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ok-ink) 35%, var(--line)); }

.prumo-perks { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: var(--s5); }
.perk { padding: var(--s5); border-radius: var(--radius); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line)); }
.perk h3 { margin: 0 0 var(--s2); }
.perk p { margin: 0; }

/* Cards de plano: mesma altura, botão sempre no pé do cartão e do mesmo tamanho */
.plans { align-items: stretch; }
.script, .plan-opt { display: flex; flex-direction: column; gap: var(--s3); }
.script .bullets, .plan-opt .bullets { flex: 0 0 auto; }
.script > .btn, .plan-opt > .btn { width: 100%; min-height: 52px; justify-content: center; margin-top: auto; flex: 0 0 auto; transform: none; padding-inline: 14px; gap: 8px; white-space: nowrap; font-size: 0.95rem; }
.script > .btn:hover, .plan-opt > .btn:hover { transform: none; }
.tick-list li > span { display: block; min-width: 0; }

/* Landing: cards de plano com o botão sempre no pé, todos do mesmo tamanho */
.plan-card { display: flex; flex-direction: column; gap: var(--s3); }
.plan-card .tick-list { flex: 1 1 auto; }
.plan-card > .btn { margin-top: auto; width: 100%; min-height: 52px; justify-content: center; }

/* Cobranças recorrentes e E se...? */
.rec-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(120px, 150px); gap: var(--s3); align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rec-row.is-cancel .rec-main strong { text-decoration: line-through; opacity: .7; }
.rec-main p { margin: 2px 0 0; }
.rec-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rec-money { display: grid; text-align: right; }
@media (max-width: 640px) { .rec-row { grid-template-columns: 1fr auto; } .rec-row select { grid-column: 1 / -1; } }
.scn-form { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.scn-pair { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--s2); }
.scn-base { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); margin: 0 0 var(--s3); }
.scn-base dt { font-size: .8125rem; color: var(--muted); }
.scn-base dd { margin: 0 0 var(--s2); font-weight: 700; font-size: 1.1rem; }
.scn-out { display: grid; gap: var(--s4); }
.scn-verdict { margin: 0; font-size: 1.1rem; }
.scn-chart { width: 100%; height: auto; max-height: 240px; color: var(--ink); }
.scn-legend { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.scn-key { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--primary); vertical-align: middle; }
.scn-key-now { border-top: 2px dashed #8a948f; }

/* Caixa do Turnstile (só aparece quando o Cloudflare pede interação) */
.ts-box { position: fixed; inset: auto 0 16px 0; display: flex; justify-content: center; z-index: 9999; pointer-events: none; }
.ts-box > * { pointer-events: auto; }

/* QA F-04: valores grandes não podem estourar o cartão em telas estreitas */
.ref-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.ref-stats > div { min-width: 0; }
.ref-stats strong { font-size: clamp(1.1rem, 0.7rem + 2.6vw, 1.6rem); overflow-wrap: anywhere; }
@media (max-width: 480px) { .ref-stats { grid-template-columns: 1fr; } }

.intake-layout > * { min-width: 0; }

/* QA F-16: botões do topo do Mapa alinhados no celular */
@media (max-width: 480px) { .d-actions { flex-direction: column; align-items: stretch; } .d-actions .btn { width: 100%; justify-content: center; } }
.step-body > * { min-width: 0; }

/* Cheque especial (LIS) na carteira */
.lis-block { display: grid; gap: 6px; margin-top: 6px; }
.lis-meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.lis-meter > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.lis-meter.lis-high > span { background: #b7791f; }
.lis-meter.lis-over > span { background: #b42318; }
.lis-note { margin: 0; }
.lis-edit { margin-top: 6px; }
.lis-edit > summary { cursor: pointer; font-weight: 700; font-size: .875rem; color: var(--primary); min-height: 32px; display: flex; align-items: center; }
.lis-fields { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: var(--s3) 0; }
.lis-fields .field { min-width: 0; }
.lis-fields .check { flex-wrap: nowrap; align-items: flex-start; margin-top: 6px; }
.lis-fields .check input { margin-top: 2px; }

/* Identidade definitiva: o "ar" que sai do anel do Fôlego e o gancho do fio de prumo usam o âmbar da marca */
.brand-puff { fill: #A55F00; }
.prumo-mark { width: 0.8em; height: 0.8em; color: var(--primary); margin-right: 0.35em; vertical-align: -0.05em; }
.prumo-groove { stroke: var(--paper); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-puff { fill: #F2B24A; } }
:root[data-theme="dark"] .brand-puff { fill: #F2B24A; }

/* Guias sob medida */
.form-grid { display: grid; gap: var(--s3) var(--s4); align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-grid .field { min-width: 0; }
.offers { display: grid; gap: var(--s4); margin: 0; }
.offer-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s4); margin: 0; display: grid; gap: var(--s3); min-width: 0; }
.offer-box legend { font-weight: 800; padding: 0 var(--s2); }
.objection { border-left: 3px solid var(--primary); padding: 4px 0 4px var(--s3); margin: var(--s3) 0; }
.objection p { margin: 2px 0; }
.script li { margin-bottom: 6px; }
.resume-sheet { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 8px; padding: 32px 36px; margin: var(--s4) 0; font-family: Georgia, 'Times New Roman', serif; line-height: 1.45; font-size: 0.95rem; max-width: 820px; }
.resume-sheet h1 { font-size: 1.6rem; margin: 0; color: #111; }
.resume-sheet h2 { font-size: 0.8rem; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid #bbb; padding-bottom: 2px; margin: 18px 0 8px; color: #111; }
.resume-sheet h3 { font-size: 1rem; margin: 10px 0 4px; color: #111; }
.resume-sheet p, .resume-sheet li { color: #222; margin: 3px 0; }
.resume-sheet ul { margin: 4px 0 4px 18px; padding: 0; }
.resume-contact { color: #444 !important; margin-bottom: 6px; }
.resume-headline { font-weight: 700; margin: 4px 0 0; }
@media (max-width: 640px) { .resume-sheet { padding: 20px 16px; font-size: 0.9rem; } }
@media print {
  body[data-route="guided"] #guided-root > .card:not(:has(.resume-sheet)) { display: none !important; }
  body[data-route="guided"] .card { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  body[data-route="guided"] .resume-sheet { border: 0; padding: 0; max-width: none; }
}

.guide-cards { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: var(--s5); }
.guide-card { display: grid; gap: 6px; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), border-color .2s var(--ease); }
.guide-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.guide-card strong { font-family: var(--font-display); font-size: 1.15rem; }
.guide-card span { color: var(--muted); font-size: .95rem; }
.guide-card[hidden] { display: none; }

#guided-root { grid-template-columns: minmax(0, 1fr); }
#guided-root > * { min-width: 0; }
fieldset.offer-box { min-inline-size: 0; }
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { min-width: 0; }
.stat dd { overflow-wrap: anywhere; font-size: clamp(1rem, 0.7rem + 1.8vw, 1.35rem); }

/* Textos de apoio ocupam a largura do quadro (antes quebravam cedo por causa de um limite de 40em) */
.card .section-sub, .d-section .section-sub, .card > p { max-width: none; }
/* Nova carteira (conta bancária): colunas alinhadas pelo topo, aviso do negativo em linha própria */
.lis-wrap { display: grid; gap: var(--s3); }
.lis-fields { align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.lis-fields .field { display: grid; grid-template-rows: auto auto auto; align-content: start; gap: 6px; }
.lis-fields .label { min-height: 2.6em; display: flex; align-items: flex-end; }
@media (max-width: 640px) { .lis-fields .label { min-height: 0; } }
.lis-neg { margin: 0; }

/* Prumo v2 (cores da marca por classe, com versão escura) */
.prumo-mark { height: 1em; width: 0.9em; vertical-align: -0.1em; margin-right: 0.3em; }

/* Conta bancária: os 3 campos usam as mesmas linhas (rótulo, campo, ajuda), então ficam alinhados qualquer que seja o texto. */
.lis-fields { align-items: stretch; }
.lis-fields .field, .lis-fields .field + .field { margin-top: 0; }
.lis-fields .field { display: grid; grid-template-rows: auto auto auto; align-content: start; gap: 6px; }
.lis-fields .label { min-height: 0; display: block; align-self: end; }
.lis-fields .fine { margin: 0; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 641px) {
    .lis-fields .field { grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; }
  }
}
.lis-fields .input { width: 100%; }

.guide-card .guide-price { font-style: normal; font-size: .875rem; color: var(--ink-2); margin-top: 4px; }
.guide-card .guide-price b { color: var(--primary); font-size: 1rem; }

.lis-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); }
.lis-fields .label { align-self: start; }

.scn-base { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--s3); }
.scn-tile { display: grid; gap: 4px; align-content: start; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; }
.scn-tile dt { margin: 0; }
.scn-tile dd { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }

/* Guias sob medida: o formulário ocupa toda a largura do cartão e os campos de uma fileira alinham rótulo, campo e ajuda. */
.tool-form > .form-grid, .tool-form > .offers, .tool-form > .note, .tool-form > .field, .tool-form > .fine { justify-self: stretch; }
.tool-form > .btn, .tool-form > button { justify-self: start; }
.form-grid > .field { align-content: start; }
@supports (grid-template-rows: subgrid) {
  .form-grid > .field { grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; }
}
.field .hint { margin: 0; }
.tool-form h3 { margin: var(--s2) 0 0; }
.tool-form { grid-template-columns: minmax(0, 1fr); }
.tool-form > .tool-form { justify-self: stretch; }

/* Contagem regressiva do acesso de 30 dias (Mapa, tradutor e guias). */
.access-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3) var(--s5); align-items: center; padding: var(--s4) var(--s5); border: 1px solid var(--line); border-left-width: 6px; border-radius: var(--radius); background: var(--surface); margin: 0 0 var(--s4); }
.access-banner.tone-ok { border-left-color: var(--primary); }
.access-banner.tone-attention { border-left-color: var(--amber, #a55f00); background: var(--amber-bg); }
.access-banner.tone-critical { border-left-color: var(--danger-ink); background: var(--danger-bg); }
.ab-count { display: grid; justify-items: center; line-height: 1; min-width: 5.5rem; }
.ab-count strong { font-family: var(--font-display); font-size: 2.75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--primary); }
.tone-attention .ab-count strong { color: var(--amber-ink); }
.tone-critical .ab-count strong { color: var(--danger-ink); }
.ab-count span { font-size: .8125rem; color: var(--muted); margin-top: 6px; text-align: center; }
.ab-body { display: grid; gap: 6px; min-width: 0; }
.ab-title { margin: 0; font-weight: 700; }
.ab-body .fine { margin: 0; }
.ab-meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ab-meter > span { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width .6s var(--ease); }
.tone-attention .ab-meter > span { background: var(--amber, #a55f00); }
.tone-critical .ab-meter > span { background: var(--danger-ink); }
.access-banner > .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 720px) { .access-banner > .btn { grid-column: auto; grid-row: 1; grid-column: 3; } .access-banner { grid-template-columns: auto minmax(0, 1fr) auto; } }
@media (prefers-reduced-motion: reduce) { .ab-meter > span { transition: none; } }

/* Tela de Pix: de quem é o Pix, em letra pequena e discreta. */
.pix-trust { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--mint); color: var(--mint-ink); font-size: 0.8125rem; line-height: 1.45; }
.pix-trust .icon { flex: none; margin-top: 2px; width: 1.1em; height: 1.1em; }
.pix-trust strong { font-weight: 700; }

/* Prumo v4 (monograma P): cores por classe, com versão escura. */
.pm-ink { stroke: #0E5B49; } .pm-bob { fill: #0E5B49; } .pm-accent { fill: #A55F00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pm-ink { stroke: #F6F3EC; } :root:not([data-theme="light"]) .pm-bob { fill: #8FE0BE; } :root:not([data-theme="light"]) .pm-accent { fill: #F2B24A; } }
:root[data-theme="dark"] .pm-ink { stroke: #F6F3EC; } :root[data-theme="dark"] .pm-bob { fill: #8FE0BE; } :root[data-theme="dark"] .pm-accent { fill: #F2B24A; }
.prumo-badge { display: block; width: 64px; height: 64px; margin-bottom: var(--s3); border-radius: 16px; }

/* Landing: Tradutor de cobrança (texto à esquerda, exemplo antes e depois à direita). */
.tr-grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .tr-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s7, 56px); } }
.tr-copy { display: grid; gap: var(--s4); align-content: start; }
.tr-copy h2, .tr-copy p { margin: 0; }
.tr-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.tr-points li { position: relative; padding-left: 28px; color: var(--ink-2); }
.tr-points li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.tr-cta { margin-top: var(--s2) !important; }
.tr-demo { display: grid; gap: var(--s3); min-width: 0; }
.tr-demo p { margin: 0; }
.tr-msg { margin: 0; padding: var(--s4) var(--s5); border-radius: var(--radius); border: 1px dashed var(--field); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.tr-msg figcaption { font-size: 0.8125rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.tr-msg blockquote { margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; color: var(--ink); }
.tr-read { display: grid; gap: var(--s3); padding: var(--s5); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-left: var(--s5); }
.tr-read-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); }
.tr-read-do { padding-top: var(--s3); border-top: 1px solid var(--line); }
@media (max-width: 560px) { .tr-read { margin-left: 0; } }

/* Prumo > Dívidas: aviso do Mapa da Virada (preço de assinante / incluso no plano / Mapa ativo). Compacto no desktop, empilhado no celular. */
.map-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3) var(--s4); align-items: center; padding: var(--s4) var(--s5); background: var(--mint); color: var(--mint-ink); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line)); border-left: 5px solid var(--primary); }
.map-banner-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--surface); color: var(--primary); }
.map-banner-ico .icon { width: 24px; height: 24px; }
.map-banner-text { min-width: 0; display: grid; gap: 4px; }
.map-banner h2 { margin: 0; font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.25; color: var(--ink); }
.map-banner p { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--mint-ink); max-width: 62ch; }
.map-banner .fine { font-size: 0.8125rem; }
.map-banner-buy { display: grid; justify-items: end; gap: 6px; }
.map-banner-buy .fine { margin: 0; text-align: right; }
.map-price { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 4px var(--s2); margin: 0; }
.map-was { text-decoration: line-through; color: var(--ink-2); font-size: 0.9375rem; }
.map-now { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; font-weight: 700; color: var(--ink); }
.map-save { font-size: 0.8125rem; font-weight: 700; color: var(--ok-ink); background: var(--surface); padding: 3px 10px; border-radius: 999px; }
@media (max-width: 760px) {
  .map-banner { grid-template-columns: auto minmax(0, 1fr); padding: var(--s4); align-items: start; }
  .map-banner-buy { grid-column: 1 / -1; justify-items: stretch; }
  .map-banner-buy .btn { width: 100%; justify-content: center; }
  .map-price { justify-content: flex-start; }
  .map-banner-buy .fine { text-align: center; }
}
@media (prefers-reduced-motion: no-preference) { .map-banner { animation: map-in .35s ease-out both; } }
@keyframes map-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Fale com um parceiro Fôlego: convite em destaque (landing e Prumo), cartão na prévia/entrega e formulário em painel claro. */
.partner-band { background: var(--cta-bg); color: var(--cta-ink); }
.partner-band-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.partner-band h2 { color: var(--cta-ink); margin: 0 0 var(--s3); }
.partner-band-tag { display: inline-block; margin: 0 0 var(--s3); padding: 4px 12px; border-radius: 999px; font-size: 0.875rem; font-weight: 700; background: color-mix(in srgb, var(--cta-ink) 16%, transparent); }
.partner-band-lead { margin: 0; max-width: 56ch; font-size: 1.0625rem; line-height: 1.55; }
.partner-band-points, .partner-points { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s2); }
.partner-band-points li, .partner-points li { display: flex; align-items: center; gap: 10px; }
.partner-band-points .icon, .partner-points .icon { flex: none; width: 1.1em; height: 1.1em; }
.partner-band-cta { display: grid; justify-items: center; gap: var(--s3); padding: var(--s5); border-radius: var(--radius); text-align: center; background: color-mix(in srgb, var(--cta-ink) 10%, transparent); }
.partner-band-cta .fine, .partner-banner-cta .fine { margin: 0; color: inherit; opacity: 0.88; }
.partner-band .btn-primary, .partner-banner .btn-primary, .partner-card > .btn-primary { background: var(--cta-ink); color: var(--cta-bg); }
.partner-band .btn-primary:hover, .partner-banner .btn-primary:hover, .partner-card > .btn-primary:hover { background: var(--cta-ink); color: var(--cta-bg); }
.partner-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4) var(--s5); align-items: center; padding: var(--s5); border-radius: var(--radius); background: var(--cta-bg); color: var(--cta-ink); }
.partner-banner h2 { margin: 0 0 var(--s2); font-size: 1.375rem; color: var(--cta-ink); }
.partner-banner p { margin: 0; }
.partner-banner-cta { display: grid; justify-items: center; gap: var(--s2); text-align: center; }
.partner-card { display: grid; gap: var(--s4); padding: var(--s6) var(--s5); background: var(--cta-bg); color: var(--cta-ink); border-color: transparent; }
.partner-card h2 { margin: 0; color: var(--cta-ink); }
.partner-head { display: flex; align-items: center; gap: var(--s4); }
.partner-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--cta-ink) 14%, transparent); }
.partner-ico .icon { width: 28px; height: 28px; }
.partner-sub { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.25rem; }
.partner-points { margin-top: 0; }
.partner-card > .btn-primary { justify-self: start; }
.partner-card > .fine { color: inherit; opacity: 0.88; }
.partner-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); padding: var(--s5); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.partner-form[hidden] { display: none; }
.partner-cats, .partner-consent, .partner-actions, .partner-wide { grid-column: 1 / -1; }
.partner-cats { display: grid; gap: var(--s3); margin: 0; padding: 0; border: 0; min-width: 0; }
.partner-cats legend { padding: 0; margin-bottom: var(--s2); }
.partner-opt { display: flex; align-items: flex-start; gap: var(--s3); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.partner-opt:has(input:checked) { border-color: var(--primary); background: var(--mint); color: var(--mint-ink); }
.partner-opt > span { display: grid; gap: 2px; }
.partner-form .fine { margin: 0; color: var(--muted); }
.partner-actions { display: flex; justify-content: center; }
.partner-actions .btn { width: 100%; max-width: 420px; justify-content: center; }
@media (max-width: 860px) { .partner-band-inner { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .partner-banner { grid-template-columns: 1fr; }
  .partner-banner .btn, .partner-band-cta .btn { width: 100%; justify-content: center; }
  .partner-card { padding: var(--s5) var(--s4); }
  .partner-card > .btn-primary { justify-self: stretch; justify-content: center; }
  .partner-head { align-items: flex-start; }
  .partner-form { grid-template-columns: 1fr; padding: var(--s4); }
}

/* Prumo > Contas conectadas: linha da conexão com o aviso e os botões (reconectar, atualizar, desconectar) embaixo no celular. */
.wallet-row.of-row { grid-template-columns: minmax(0, 1fr) auto; }
.of-row .of-actions { justify-content: flex-end; flex-wrap: wrap; }
.of-row .note { margin-top: 6px; }
@media (max-width: 620px) {
  .wallet-row.of-row { grid-template-columns: 1fr; }
  .of-row .of-actions { justify-content: flex-start; }
}

/* Prumo > Cartões de crédito: resumo, um cartão por bloco, ações com um formulário por vez. Três números em linha no desktop, empilhados no celular. */
.cc-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s3) var(--s5); }
.cc-top h2, .cc-top p { margin: 0; }
.cc-top .muted { margin-top: 4px; }
.cc-add > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.cc-add > summary::-webkit-details-marker { display: none; }
.cc-add[open] { flex: 1 1 100%; }
.cc-add[open] > summary { margin-bottom: var(--s4); }
.cc-form { padding-top: var(--s2); }
.cc-form .field-wide { grid-column: 1 / -1; }
.cc-tile { display: grid; gap: var(--s4); align-content: start; border-left: 5px solid var(--line); }
.cc-tile.cc-attention { border-left-color: var(--tone-attention); }
.cc-tile.cc-high, .cc-tile.cc-over { border-left-color: var(--tone-critical); }
.cc-head { display: flex; align-items: center; gap: var(--s3); }
.cc-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--mint); color: var(--mint-ink); }
.cc-title { min-width: 0; flex: 1; }
.cc-title h3 { margin: 0; font-size: 1.125rem; overflow-wrap: anywhere; }
.cc-title p { margin: 2px 0 0; }
.cc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.cc-stat { display: grid; gap: 2px; min-width: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--sunken); align-content: start; }
.cc-stat-label { font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); }
.cc-stat strong { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.15; overflow-wrap: anywhere; }
.cc-stat.neg strong { color: var(--danger-ink); }
.cc-acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cc-actbtn.is-on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.cc-area:empty { display: none; }
.cc-area { padding: var(--s4); border-radius: var(--radius-sm); background: var(--sunken); }
.cc-panel-body { display: grid; gap: var(--s3); }
.cc-panel-body h4, .cc-installments h4 { margin: var(--s2) 0 0; font-size: 1rem; }
.cc-invoices { display: grid; gap: var(--s2); }
.cc-invoice { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.cc-invoice > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 10px 14px; min-height: 48px; }
.cc-invoice > summary::-webkit-details-marker { display: none; }
.cc-inv-name { display: grid; gap: 2px; min-width: 0; }
.cc-inv-total { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; justify-content: flex-end; }
.cc-invoice-body { padding: 0 14px 12px; display: grid; gap: var(--s2); }
.cc-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cc-cats li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s3); align-items: baseline; }
.cc-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.cc-table th, .cc-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.cc-table .cc-best td { font-weight: 700; color: var(--ok-ink); }
.cc-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 190px; }
.cc-bars li { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; height: 100%; min-width: 0; }
.cc-bar { align-self: end; width: 100%; max-width: 34px; min-height: 2px; border-radius: 6px 6px 0 0; background: var(--primary); }
.cc-bar-m { font-size: 0.75rem; font-weight: 700; color: var(--ink-2); }
.cc-bar-v { font-size: 0.6875rem; white-space: nowrap; }
@media (max-width: 620px) {
  .cc-stats { grid-template-columns: 1fr; }
  .cc-stat { grid-template-columns: 1fr auto; align-items: baseline; column-gap: var(--s3); }
  .cc-stat .fine { grid-column: 1 / -1; }
  .cc-bars { grid-template-columns: repeat(6, minmax(0, 1fr)); height: auto; row-gap: var(--s4); }
  .cc-bars li { height: 140px; }
  .cc-acts .btn { flex: 1 1 calc(50% - var(--s2)); justify-content: center; }
  .cc-add > summary { width: 100%; justify-content: center; }
}

/* ============ Fale conosco (janela de mensagem direta) ============ */
.ct-dialog { width: min(100% - 24px, 600px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45); overflow: auto; }
.ct-dialog::backdrop { background: rgba(11, 30, 24, 0.55); }
.ct-close { position: absolute; top: 10px; right: 10px; }
.ct-body { padding: var(--s6) var(--s6) var(--s5); display: grid; gap: var(--s3); }
.ct-body h2 { margin: 0; text-align: center; font-size: 1.5rem; }
.ct-lead { margin: 0 0 var(--s2); text-align: center; color: var(--muted); }
.ct-body > .btn { justify-self: center; }
.ct-form { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-form .field { min-width: 0; }
.ct-form .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* o texto de apoio dentro do campo faz o papel do rótulo; o rótulo fica para leitores de tela */
.ct-form .input { min-height: 52px; }
.ct-form textarea.input { min-height: 160px; resize: vertical; font: inherit; }
.ct-wide { grid-column: 1 / -1; }
.ct-actions { display: flex; }
.ct-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 560px) { .ct-body { padding: var(--s5) var(--s4) var(--s4); } .ct-form { grid-template-columns: 1fr; } .ct-actions .btn { width: 100%; justify-content: center; } }

/* ============ Portal do parceiro: "Euro Multiplan & Fôlego" ============ */
/* Direção: mesa de operações calma. Barra lateral em verde-tinta com a marca dupla, área de trabalho em papel, números grandes em serifa. */
#partner-root { display: block; }
#view-partner .view-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* o título fica para leitores de tela: a marca já está na barra lateral */
#view-partner .tools-wrap { max-width: 1320px; padding-top: var(--s5); }
.pt-shell { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: start; width: min(100%, 1240px); margin-inline: auto; }
@media (min-width: 960px) { .pt-shell { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s6); } }
.pt-side { background: #0B3B30; color: #E8F3EE; border-radius: var(--radius); padding: var(--s5); display: grid; gap: var(--s4); align-content: start; }
@media (min-width: 960px) { .pt-side { position: sticky; top: var(--s5); min-height: 420px; } }
.pt-lockup { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; line-height: 1.1; }
.pt-lockup-name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.pt-lockup-amp { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: #F2B24A; }
.pt-lockup-folego { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.pt-side-sub { margin: 0; color: #B9D3C9; font-size: 0.9rem; }
.pt-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
@media (min-width: 960px) { .pt-nav { flex-direction: column; overflow: visible; margin-top: var(--s2); } }
.pt-tab { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 12px; background: transparent; color: #E8F3EE; font: inherit; font-weight: 600; cursor: pointer; text-align: left; transition: background .18s var(--ease), color .18s var(--ease); }
.pt-tab:hover { background: rgba(255, 255, 255, 0.1); }
.pt-tab[aria-current="page"] { background: #F6F3EC; color: #0B3B30; }
.pt-tab .icon { width: 18px; height: 18px; flex: none; }
.pt-exit { color: #E8F3EE; justify-self: start; }
.pt-exit:hover { background: rgba(255, 255, 255, 0.1); }
.pt-main, .pt-stage { min-width: 0; }
.pt-stack { display: grid; gap: var(--s5); min-width: 0; }
.pt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s3) var(--s5); }
.pt-head h1 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
.pt-head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.pt-head-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.pt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); min-width: 0; box-shadow: var(--shadow); }
.pt-h2 { margin: 0 0 4px; font-size: 1.2rem; }
.pt-h4 { margin: var(--s4) 0 var(--s2); font-size: 1rem; }
.pt-sub { margin: 0 0 var(--s3); color: var(--muted); }
.pt-cols { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pt-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pt-split { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-metrics { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .pt-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pt-metrics.tight { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pt-metrics.tight { margin: var(--s3) 0; }
.pt-metric { display: grid; gap: 4px; align-content: start; padding: var(--s4); border-radius: var(--radius-sm); background: var(--sunken); min-width: 0; }
.pt-metric.is-accent { background: var(--mint); color: var(--mint-ink); }
.pt-metric-label { font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); }
.pt-metric.is-accent .pt-metric-label, .pt-metric.is-accent .pt-metric-sub { color: var(--mint-ink); }
.pt-metric-value { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pt-metric-sub { font-size: 0.8125rem; color: var(--muted); }
.pt-alert { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--radius-sm); background: var(--amber-bg); color: var(--amber-ink); font-weight: 600; }
.pt-alert span { flex: 1 1 240px; }
.pt-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.pt-funnel li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 56px; align-items: center; gap: var(--s3); }
.pt-funnel strong { text-align: right; font-variant-numeric: tabular-nums; }
.pt-bar { height: 12px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.pt-bar i { display: block; height: 100%; border-radius: 99px; background: var(--primary); transition: width .4s var(--ease); }
.pt-bar i.st-em_contato { background: #A55F00; }
.pt-bar i.st-proposta { background: #4E9E82; }
.pt-bar i.st-sem_interesse { background: #8A958F; }
.pt-bar i.st-novo { background: #6F7F78; }
.pt-months { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: end; height: 190px; }
.pt-months li { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; height: 100%; min-width: 0; }
.pt-month-bar { align-self: end; width: 100%; max-width: 40px; border-radius: 8px 8px 0 0; background: var(--primary); }
.pt-month-v { font-size: 0.6875rem; white-space: nowrap; color: var(--muted); }
.pt-month-l { font-size: 0.75rem; font-weight: 700; color: var(--ink-2); }
.pt-empty { padding: var(--s5); border: 1px dashed var(--line); border-radius: var(--radius-sm); text-align: center; color: var(--muted); }
.pt-empty p { margin: 4px 0 0; }
.pt-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; background: var(--sunken); color: var(--ink-2); white-space: nowrap; }
.pt-pill.st-em_contato, .pt-pill.tone-contacted { background: var(--amber-bg); color: var(--amber-ink); }
.pt-pill.st-proposta { background: #DCEBF5; color: #134A6B; }
.pt-pill.st-fechado, .pt-pill.tone-converted { background: var(--ok-bg); color: var(--ok-ink); }
.pt-pill.st-novo, .pt-pill.tone-delivered { background: var(--mint); color: var(--mint-ink); }
.pt-pill.tone-rejected, .pt-pill.st-sem_interesse { background: var(--danger-bg); color: var(--danger-ink); }
.pt-filters, .pt-filterbar { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.pt-filterbar .input { flex: 1 1 170px; min-width: 0; }
.pt-filterbar .input[type="search"] { flex: 2 1 240px; }
.pt-chip { min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }
.pt-chip span { color: var(--muted); font-weight: 500; }
.pt-chip[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.pt-chip[aria-selected="true"] span { color: inherit; }
.pt-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 44px; }
.pt-count { margin: 0 0 var(--s2); color: var(--muted); font-weight: 600; }
.pt-list { display: grid; gap: var(--s3); }
.pt-lead { display: grid; gap: var(--s3); padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--primary); border-radius: var(--radius); }
@media (min-width: 760px) { .pt-lead { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.pt-lead.st-contacted { border-left-color: #A55F00; }
.pt-lead.st-rejected { border-left-color: #8A958F; opacity: 0.8; }
.pt-lead h3 { margin: 0 0 6px; font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-lead p { margin: 4px 0; }
.pt-lead-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 600; }
.pt-lead-meta { color: var(--muted); font-size: 0.9rem; }
.pt-lead-deal { color: var(--ok-ink); font-weight: 700; }
.pt-lead-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pt-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.pt-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.pt-table th { text-align: left; padding: 10px 14px; font-size: 0.8125rem; color: var(--ink-2); background: var(--sunken); white-space: nowrap; }
.pt-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.pt-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-table tr.is-off td { opacity: 0.55; }
.pt-row { cursor: pointer; }
.pt-row:hover td, .pt-row:focus-visible td { background: var(--mint); }
.pt-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.pt-cell-sub { display: block; font-size: 0.8125rem; color: var(--muted); font-weight: 400; }
.pt-table td.is-due { color: var(--danger-ink); font-weight: 700; }
.pt-pager { display: flex; justify-content: center; align-items: center; gap: var(--s4); margin-top: var(--s3); }
.pt-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(11, 30, 24, 0.55); display: grid; place-items: start center; padding: var(--s5) var(--s3); overflow-y: auto; }
.pt-modal { width: min(100%, 680px); background: var(--surface); border-radius: var(--radius); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45); }
.pt-modal > header { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.pt-modal > header h2 { margin: 0; font-size: 1.15rem; }
.pt-modal-body { padding: var(--s5); display: grid; gap: var(--s3); }
.pt-contact-name { margin: 0; font-size: 1.4rem; }
.pt-form { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 560px) { .pt-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pt-form .pt-wide, .pt-form .pt-form-who, .pt-form .pt-commission-preview, .pt-form button[type="submit"] { grid-column: 1 / -1; }
.pt-form-who { margin: 0; font-weight: 800; font-size: 1.1rem; }
.pt-commission-preview { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--mint); color: var(--mint-ink); font-weight: 700; }
.pt-phones { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.pt-phones span { display: inline-flex; gap: 10px; }
.pt-kv { display: grid; gap: var(--s2); margin: 0; }
.pt-kv div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s3); }
.pt-kv dt { color: var(--muted); font-weight: 600; }
.pt-kv dd { margin: 0; overflow-wrap: anywhere; }
.pt-deals-mini p { margin: 2px 0; padding: 6px 12px; border-radius: 10px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; }
.pt-note-form { display: grid; gap: var(--s2); grid-template-columns: 130px minmax(0, 1fr) auto; }
@media (max-width: 560px) { .pt-note-form { grid-template-columns: 1fr; } .pt-kv div { grid-template-columns: 1fr; gap: 0; } }
.pt-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pt-events li { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: var(--s3); padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.pt-events time { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.pt-event-k { font-weight: 700; color: var(--ink-2); }
.pt-drop { display: grid; justify-items: center; gap: 8px; padding: var(--s6) var(--s4); border: 2px dashed var(--field); border-radius: var(--radius); text-align: center; cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease); }
.pt-drop:hover, .pt-drop.is-over { background: var(--mint); border-color: var(--primary); }
.pt-drop .icon { width: 28px; height: 28px; color: var(--primary); }
.pt-drop span { color: var(--muted); max-width: 56ch; }
.pt-progress { margin: var(--s3) 0 var(--s2); }
.pt-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.pt-cols-help { margin: var(--s3) 0; }
.pt-cols-help ul { columns: 2 220px; padding-left: 18px; font-size: 0.9rem; }
.pt-login { display: grid; place-items: center; min-height: 60vh; }
.pt-login-card { width: min(100%, 460px); display: grid; gap: var(--s3); padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pt-kicker { margin: 0; font-weight: 800; color: var(--primary); font-size: 0.85rem; }
.pt-login-title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; }
.pt-login-form { display: grid; gap: var(--s3); }
.bo-deals-line { margin: 4px 0 var(--s2); }
@media (max-width: 620px) {
  .pt-card { padding: var(--s4); }
  .pt-funnel li { grid-template-columns: 90px minmax(0, 1fr) 44px; }
  .pt-events li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- Portal do parceiro no padrão do backoffice: barra lateral clara com a marca, menu à esquerda, cartões, indicadores com filete, tabelas e gaveta ---- */
body[data-route="partner"] .site-header, body[data-route="partner"] .site-footer { display: none; }
body[data-route="partner"] #view-partner .tools-wrap { width: 100%; max-width: none; padding: 0; margin: 0; }
body[data-route="partner"] #view-partner .tools-layout { display: block; max-width: none; }
.pt-shell { width: 100%; max-width: none; margin: 0; gap: 0; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; align-items: stretch; }
.pt-side { position: sticky; top: 0; height: 100vh; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--s5); padding: var(--s5) var(--s4); background: var(--surface); color: var(--ink); border-radius: 0; border-right: 1px solid var(--line); }
.pt-brand { display: grid; gap: 10px; justify-items: start; }
.pt-brand small { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.pt-lockup-name, .pt-lockup-folego { color: var(--ink); }
.pt-lockup-amp { color: var(--primary); }
.pt-nav { display: grid; gap: 4px; overflow: visible; margin: 0; }
.pt-tab { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 700; }
.pt-tab:hover { background: var(--sunken); color: var(--ink); }
.pt-tab[aria-current="page"] { background: var(--mint); color: var(--mint-ink); }
.pt-me { margin-top: auto; display: grid; gap: 6px; padding-top: var(--s4); border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.pt-exit { justify-self: start; color: inherit; }
.pt-exit:hover { background: var(--sunken); }
.pt-top { display: none; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); background: var(--surface); }
.pt-top .pt-lockup-name, .pt-top .pt-lockup-folego { font-size: 1.15rem; }
.pt-top .pt-lockup-amp { font-size: 1.25rem; }
.pt-content { padding: var(--s5) var(--s5) var(--s7); min-width: 0; }
.pt-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.pt-card { display: grid; gap: var(--s4); align-content: start; }
.pt-card > h2, .pt-card > .pt-h2, .pt-card > .pt-sub { margin: 0; }
.pt-h2 { font-size: 1.35rem; }
.pt-metrics { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.pt-metrics.tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-metric { justify-items: center; text-align: center; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--line); }
.pt-metric.is-accent { background: var(--mint); border-color: var(--line); border-left-color: var(--tone-ok); }
.pt-metric-label { font-size: 0.875rem; color: var(--muted); }
.pt-metric-value { font-weight: 560; }
.pt-split .pt-metric { height: 100%; }
.pt-pill { padding: 2px 10px; font-size: 0.8125rem; font-weight: 800; }
.pt-table-wrap { border: 0; border-radius: 0; background: none; margin-inline: calc(var(--s5) * -1); padding-inline: var(--s5); }
.pt-table th { padding: 8px 12px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: none; border-bottom: 1px solid var(--line); }
.pt-table td { padding: 12px; border-top: 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pt-table th:not(:first-child), .pt-table td:not(:first-child) { text-align: center; white-space: nowrap; }
.pt-table td.num { text-align: center; }
.pt-row:hover td, .pt-row:focus-visible td { background: var(--paper); }
.pt-filterbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s3); align-items: stretch; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pt-filterbar .input { width: 100%; min-width: 0; max-width: none; min-height: 48px; text-align: center; text-align-last: center; }
.pt-filterbar .input[type="search"] { grid-column: 1 / -1; }
.pt-filterbar .pt-check { justify-content: center; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); text-align: center; }
.pt-filters { justify-content: center; gap: 8px; }
.pt-chip { min-height: 44px; padding: 8px 16px; font-weight: 700; }
.pt-chip:hover { border-color: var(--primary); color: var(--primary); }
.pt-chip[aria-selected="true"]:hover { color: var(--primary-ink); }
.pt-count { text-align: center; }
.pt-lead { border-left-color: var(--tone-ok); box-shadow: var(--shadow); }
@media (min-width: 760px) { .pt-lead { grid-template-columns: minmax(0, 1fr) auto; } }
.pt-lead-actions { justify-content: flex-end; }
@media (max-width: 759px) { .pt-lead { text-align: center; } .pt-lead h3, .pt-lead-contact, .pt-lead-actions { justify-content: center; } }
.pt-form .label, .pt-login-form .label, .pt-note-form .input { text-align: center; }
.pt-form .field, .pt-login-form .field { justify-items: stretch; align-content: start; }
.pt-form .input, .pt-login-form .input { min-height: 48px; text-align: center; text-align-last: center; }
.pt-form .input::placeholder, .pt-filterbar .input::placeholder { text-align: center; }
.pt-form button[type="submit"], .pt-login-form button[type="submit"] { justify-self: center; min-width: 240px; justify-content: center; }
.pt-form-who, .pt-commission-preview { text-align: center; }
.pt-note-form { grid-template-columns: 140px minmax(0, 1fr) auto; align-items: stretch; }
.pt-note-form .input { min-height: 44px; text-align-last: center; }
.pt-actions { justify-content: center; }
.pt-empty { background: var(--paper); }
.pt-backdrop { place-items: stretch end; padding: 0; background: rgba(8, 16, 12, 0.5); backdrop-filter: blur(2px); }
.pt-modal { width: min(620px, 100%); min-height: 100vh; height: 100%; overflow-y: auto; border-radius: 0; border-left: 1px solid var(--line); box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.5); animation: pt-slide 0.24s var(--ease); }
@keyframes pt-slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.pt-modal > header { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.pt-login { min-height: 100vh; padding: var(--s5); background: var(--paper); }
.pt-login-card { text-align: center; border-radius: 22px; }
.pt-login-card .note { text-align: left; }
.pt-burger { display: none; }
@media (max-width: 900px) {
  .pt-shell { grid-template-columns: minmax(0, 1fr); }
  .pt-side { position: fixed; z-index: 60; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-102%); visibility: hidden; box-shadow: none; transition: transform 0.22s var(--ease), visibility 0s linear 0.22s, box-shadow 0.22s var(--ease); }
  .pt-side.is-open { transform: none; visibility: visible; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5); transition: transform 0.22s var(--ease), visibility 0s, box-shadow 0.22s var(--ease); }
  .pt-top { display: flex; position: sticky; top: 0; z-index: 30; }
  .pt-burger { display: inline-flex; }
  .pt-content { padding-inline: var(--s4); }
  .pt-table-wrap { margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); }
}
@media (prefers-reduced-motion: reduce) { .pt-side, .pt-modal { transition: none; animation: none; } }
@media (max-width: 560px) { .pt-note-form { grid-template-columns: 1fr; } .pt-form button[type="submit"], .pt-login-form button[type="submit"] { width: 100%; min-width: 0; } }

/* ---- Painel do parceiro: grade alinhada, tudo centralizado e com a mesma altura por linha ---- */
.pt-metrics.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pt-metrics.four .pt-metric { align-content: center; min-height: 124px; }
.pt-painel .pt-cols { align-items: stretch; }
.pt-painel .pt-cols > .pt-card { height: 100%; align-content: start; }
.pt-painel .pt-card > h2, .pt-painel .pt-card > .pt-sub { text-align: center; }
.pt-painel .pt-empty { display: grid; align-content: center; min-height: 150px; }
.pt-painel .pt-funnel li { grid-template-columns: 110px minmax(0, 1fr) 96px; }
.pt-painel .pt-funnel strong { text-align: right; white-space: nowrap; font-size: 0.9rem; }
.pt-painel .pt-actions { justify-content: center; }
.pt-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.pt-minis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-minis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pt-mini { display: grid; gap: 2px; justify-items: center; align-content: center; text-align: center; padding: var(--s3); min-height: 96px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.pt-mini strong { font-family: var(--font-display); font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.5rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pt-mini-label { font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.pt-mini-sub { font-size: 0.75rem; color: var(--muted); }
.pt-table-fixed { table-layout: fixed; }
.pt-table-fixed th, .pt-table-fixed td { text-align: center; white-space: normal; overflow-wrap: anywhere; padding-inline: 6px; }
.pt-table-fixed th { letter-spacing: 0.03em; font-size: 0.7rem; }
.pt-table-fixed th:first-child, .pt-table-fixed td:first-child { text-align: left; width: 27%; white-space: nowrap; overflow-wrap: normal; font-weight: 700; }
@media (max-width: 1100px) { .pt-metrics.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pt-minis, .pt-minis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt-painel .pt-funnel li { grid-template-columns: 84px minmax(0, 1fr) 84px; } }

/* ---- WhatsApp no portal do parceiro: lista de conversas, bolhas, composição, passos de conexão ---- */
.pt-chat-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.pt-chat-list, .pt-chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.pt-chat-list { display: grid; gap: var(--s2); align-content: start; padding: var(--s3); max-height: 72vh; overflow-y: auto; }
.pt-chat-list .input { min-height: 44px; text-align: center; }
.pt-thread { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.pt-thread:hover { background: var(--paper); }
.pt-thread.is-on { background: var(--mint); color: var(--mint-ink); }
.pt-thread-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pt-thread-prev { color: var(--muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-thread-meta { color: var(--muted); font-size: 0.78rem; }
.pt-thread.is-on .pt-thread-prev, .pt-thread.is-on .pt-thread-meta { color: var(--mint-ink); }
.pt-badge { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: 0.75rem; font-weight: 800; text-align: center; }
.pt-chat { display: grid; grid-template-rows: auto minmax(220px, 52vh) auto auto; gap: var(--s3); padding: var(--s4); align-content: start; }
.pt-chat > .pt-empty { grid-row: 1 / -1; align-self: center; border: 0; background: none; }
.pt-chat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.pt-chat-head h3 { margin: 0; font-size: 1.15rem; }
.pt-chat-head p { margin: 2px 0 0; }
.pt-chat-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-msgs { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: var(--s2); border-radius: var(--radius-sm); background: var(--paper); }
.pt-msg { max-width: min(78%, 520px); padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; }
.pt-msg.out { align-self: flex-end; background: var(--mint); border-color: transparent; color: var(--mint-ink); }
.pt-msg.bad { background: var(--danger-bg); color: var(--danger-ink); }
.pt-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-msg-meta { display: block; margin-top: 4px; font-size: 0.72rem; opacity: 0.75; }
.pt-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2); align-items: stretch; }
.pt-compose textarea { min-height: 52px; resize: vertical; font: inherit; }
.pt-compose-tpl { display: grid; gap: var(--s2); }
.pt-compose-tpl .input { min-height: 46px; text-align: center; text-align-last: center; }
.pt-tpl-preview { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--paper); border: 1px dashed var(--line); white-space: pre-wrap; }
.pt-inline-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s2); align-items: center; text-align: center; }
.pt-steps, .pt-rules { margin: 0; padding-left: 20px; display: grid; gap: var(--s2); }
.pt-optin { display: flex; align-items: flex-start; gap: 10px; padding: var(--s3); border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); text-align: left; }
.pt-optin input { margin-top: 3px; flex: none; }
@media (max-width: 900px) { .pt-chat-layout { grid-template-columns: minmax(0, 1fr); } .pt-chat-list { max-height: 38vh; } .pt-chat { grid-template-rows: auto minmax(200px, 46vh) auto auto; } .pt-compose { grid-template-columns: 1fr; } }

/* Formulário padrão (Cartões, Metas): duas colunas no desktop, uma no mobile; rótulos, textos e botões centralizados e alinhados pelo topo. */
.entry-form.form-std, .goal-form.form-std { display: grid; grid-template-columns: 1fr; gap: var(--s4); align-items: start; width: 100%; max-width: 760px; margin-inline: auto; }
@media (min-width: 640px) { .entry-form.form-std, .goal-form.form-std { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-std .field { min-width: 0; justify-items: stretch; align-content: start; }
.form-std .field-wide { grid-column: 1 / -1; }
.form-std .label { text-align: center; line-height: 1.3; }
.form-std .input, .form-std select.input { text-align: center; text-align-last: center; min-height: 48px; }
.form-std .input::placeholder { text-align: center; }
.form-std .field .fine, .form-std > .fine { text-align: center; margin: 0; }
.form-std .cat-new { justify-content: center; }
.form-std .btn[type="submit"], .form-std > .btn { grid-column: 1 / -1; justify-self: center; min-width: 240px; justify-content: center; }
@media (max-width: 620px) { .form-std .btn[type="submit"], .form-std > .btn { width: 100%; min-width: 0; } }

/* Tela Cartões: segue o mesmo padrão das demais telas (alinhada à esquerda); os ajustes ficam no fim do arquivo. */

/* Tela Metas: título, abertura do formulário e modelos centralizados, no mesmo padrão dos Cartões. */
.meta-screen .card > h2 { text-align: center; }
.meta-screen .new-goal > summary { justify-content: center; text-align: center; }
.meta-screen .goal-templates { display: grid; justify-items: center; text-align: center; gap: var(--s2); }
.meta-screen .goal-templates .button-row { justify-content: center; }
.meta-screen .goal-card { text-align: center; justify-items: center; }
.meta-screen .goal-card .goal-top { justify-content: center; text-align: center; }
.meta-screen .goal-card .progress, .meta-screen .goal-card .goal-nums { width: 100%; }
.meta-screen .goal-card .no-print { display: grid; justify-items: center; }

/* Simulador: bloco "Transformar em meta" depois do resultado. */
.sim-save { display: grid; justify-items: center; gap: var(--s3); margin-top: var(--s4); padding: var(--s5); border-radius: var(--radius-sm); background: var(--sunken); text-align: center; }
.sim-save h3, .sim-save p { margin: 0; }
.sim-save .field { width: 100%; max-width: 420px; }
.sim-save .input { text-align: center; }

/* Campo que sobra sozinho na última linha fica centralizado, com a mesma largura de uma coluna. */
.form-std .field-solo { grid-column: 1 / -1; justify-self: center; width: 100%; }
@media (min-width: 640px) { .form-std .field-solo { width: calc(50% - var(--s4) / 2); } }

/* ===== Cartões de indicador: um padrão só (backoffice, Prumo e portal do parceiro) =====
   Grade: ocupa a largura toda e reparte os cartões por igual; o nº de colunas segue a quantidade de cartões (4 em 4, 3 em 3...)
   e cai sozinho para menos colunas em telas estreitas (2 no celular). Todos os cartões da fila têm a mesma altura.
   Cartão: rótulo numa linha só (a fonte encolhe com a largura do cartão, nunca quebra no computador), número centralizado
   e subtítulo alinhado numa linha reservada, mesmo quando o cartão não tem subtítulo. O ":not(#c)" garante que este padrão
   vence as regras antigas espalhadas pelo arquivo. */
:is(.bo-kpis, .stats, .indicators, .cc-stats, .pt-metrics, .pt-minis):not(#c) {
  --gap: var(--s3); --minw: 150px; --w: 4;
  display: grid; align-items: stretch; gap: var(--gap); overflow: visible;
  grid-auto-flow: row; grid-auto-columns: auto;
  grid-template-columns: repeat(auto-fit, minmax(max(var(--minw), calc((100% - (var(--w) - 1) * var(--gap)) / var(--w))), 1fr));
}
:is(.bo-kpis, .stats, .indicators, .cc-stats, .pt-metrics, .pt-minis):not(#c):has(> :nth-child(1):last-child) { --w: 1; }
:is(.bo-kpis, .stats, .indicators, .cc-stats, .pt-metrics, .pt-minis):not(#c):has(> :nth-child(2):last-child) { --w: 2; }
:is(.bo-kpis, .stats, .indicators, .cc-stats, .pt-metrics, .pt-minis):not(#c):has(> :nth-child(3):last-child) { --w: 3; }
:is(.bo-kpis, .stats, .indicators, .cc-stats, .pt-metrics, .pt-minis):not(#c):has(> :nth-child(5):last-child) { --w: 3; }
:is(.bo-kpis, .stats, .indicators, .cc-stats, .pt-metrics, .pt-minis):not(#c):has(> :nth-child(6):last-child) { --w: 3; }
:is(.bo-kpis, .stats, .indicators, .cc-stats, .pt-metrics, .pt-minis):not(#c):has(> :nth-child(9):last-child) { --w: 3; }
:is(.bo-kpis, .stats, .indicators, .cc-stats, .pt-metrics, .pt-minis):not(#c):has(> :nth-child(10):last-child) { --w: 5; }
@media (max-width: 1100px) {
  :is(.bo-kpis, .stats, .indicators, .cc-stats, .pt-metrics, .pt-minis):not(#c):has(> :nth-child(4):last-child) { --w: 2; }
}
@media (max-width: 559px) {
  :is(.bo-kpis, .stats, .indicators, .cc-stats, .pt-metrics, .pt-minis):not(#c) { --minw: 136px; --w: 2 !important; }
  :is(.bo-kpis, .stats, .indicators, .cc-stats, .pt-metrics, .pt-minis):not(#c) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

:is(.bo-kpi, .stat, .indicator, .cc-stat, .pt-metric, .pt-mini):not(#c):not(.is-locked) {
  container-type: inline-size;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(1.4rem, auto) auto minmax(1.3rem, auto);
  align-content: start; justify-items: stretch; gap: 4px; min-width: 0; min-height: 0; padding: 14px 12px; text-align: center;
}
:is(.bo-kpi-label, .stat dt, .indicator:not(.is-locked) > :first-child, .cc-stat-label, .pt-metric-label, .pt-mini-label):not(#c) {
  display: block; margin: 0; max-width: 100%; text-align: center; line-height: 1.35; font-weight: 700; color: var(--muted);
  font-size: clamp(0.72rem, 5.4cqi, 0.875rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
:is(.bo-kpi-value, .stat dd, .indicator-value, .cc-stat strong, .pt-metric-value, .pt-mini strong):not(#c) {
  display: block; margin: 0; text-align: center; font-family: var(--font-display); font-weight: 560; line-height: 1.15;
  font-size: clamp(1.15rem, 10cqi, 1.85rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------------------------------------------------------
   Caixa de entrada de WhatsApp (wa-inbox.js): portal do parceiro e backoffice. Lista à esquerda, conversa à direita; no celular, um painel por vez.
   --------------------------------------------------------------------------------------------------------------------- */
.wi { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); height: clamp(520px, calc(100vh - 210px), 860px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.wi button { font: inherit; }
.wi-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--surface); }
.wi-list-head { display: grid; gap: var(--s2); padding: var(--s3); border-bottom: 1px solid var(--line); }
.wi-list-top { display: flex; gap: var(--s2); align-items: center; }
.wi-search-wrap { position: relative; flex: 1; min-width: 0; color: var(--muted); }
.wi-search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.wi-search { width: 100%; padding-left: 36px; }
.wi-add { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.wi-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.wi-chip { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.wi-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.wi-items { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; }
.wi-thread-body > * { min-width: 0; }
.wi-none { padding: var(--s4); color: var(--muted); text-align: center; }
.wi-thread { display: flex; gap: var(--s3); align-items: center; width: 100%; padding: 10px var(--s3); border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.wi-thread:hover { background: var(--paper); }
.wi-thread.is-on { background: var(--mint); color: var(--mint-ink); }
.wi-thread-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.wi-thread-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wi-thread-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi-thread.is-unread .wi-thread-top strong { font-weight: 800; }
.wi-time { flex: none; color: var(--muted); font-size: 0.72rem; }
.wi-thread-prev { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.wi-prev-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi-thread-meta { color: var(--muted); font-size: 0.74rem; }
.wi-thread.is-on .wi-thread-prev, .wi-thread.is-on .wi-thread-meta, .wi-thread.is-on .wi-time { color: var(--mint-ink); }
.wi-badge { flex: none; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: 0.72rem; font-weight: 800; text-align: center; }

/* Avatar: iniciais coloridas ou a foto do contato (cadastrada no perfil). */
.wi-av { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: hsl(var(--h, 160) 38% 82%); color: hsl(var(--h, 160) 45% 24%); font-weight: 800; font-size: 0.92rem; background-size: cover; background-position: center; overflow: hidden; }
.wi-av.lg { width: 40px; height: 40px; }
.wi-av.xl { width: 84px; height: 84px; font-size: 1.6rem; }
.wi-av.has-img { color: transparent; }
@media (prefers-color-scheme: dark) { .wi-av { background: hsl(var(--h, 160) 28% 26%); color: hsl(var(--h, 160) 60% 85%); } }

.wi-chat { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--paper); }
.wi-empty { display: grid; place-content: center; justify-items: center; gap: 6px; height: 100%; padding: var(--s5); text-align: center; color: var(--muted); }
.wi-empty strong { color: var(--ink); font-size: 1.05rem; }
.wi-empty p { max-width: 36ch; margin: 0; }
.wi-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 8px var(--s3); border-bottom: 1px solid var(--line); background: var(--surface); }
.wi-back { display: none; }
.wi-who { display: flex; align-items: center; gap: var(--s3); flex: 1; min-width: 0; padding: 4px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.wi-who:hover { background: var(--paper); }
.wi-who > span { display: grid; min-width: 0; }
.wi-who strong, .wi-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi-who small { color: var(--muted); font-size: 0.78rem; }
.wi-head-tools { position: relative; display: flex; align-items: center; gap: 6px; }
.wi-pill { padding: 2px 10px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-size: 0.74rem; font-weight: 700; }
.wi-pill.bad { background: var(--danger-bg); color: var(--danger-ink); }
.wi-menu { position: absolute; top: 100%; right: 0; z-index: 5; display: grid; min-width: 230px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.wi-menu[hidden] { display: none; }
.wi-menu-item { padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.wi-menu-item:hover, .wi-menu-item:focus-visible { background: var(--paper); }
.wi-menu-item.is-danger { color: var(--danger-ink); }

.wi-log { flex: 1; min-height: 140px; display: flex; flex-direction: column; gap: 4px; padding: var(--s3) var(--s4); overflow-y: auto; }
.wi-day { align-self: center; margin: 8px 0; padding: 3px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 0.74rem; }
.wi-row { display: flex; align-items: flex-start; gap: 8px; }
.wi-row.out { justify-content: flex-end; }
.wi-row.is-selecting { cursor: pointer; padding: 2px 4px; border-radius: 10px; }
.wi-row.is-selecting:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.wi-pick { margin-top: 12px; width: 18px; height: 18px; accent-color: var(--primary); }
.wi-row.out .wi-pick { order: 2; }
.wi-msg { position: relative; max-width: min(78%, 520px); padding: 7px 10px 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.wi-msg.out { background: var(--mint); border-color: transparent; color: var(--mint-ink); }
.wi-msg.bad { background: var(--danger-bg); color: var(--danger-ink); }
.wi-msg.tpl { border-style: dashed; }
.wi-text { margin: 0 0 2px; white-space: pre-wrap; }
.wi-meta { display: block; margin-top: 2px; font-size: 0.7rem; opacity: 0.72; text-align: right; }
.wi-fwd-tag { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 2px; font-size: 0.72rem; font-style: italic; opacity: 0.75; }
.wi-fwd { position: absolute; top: 4px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface); color: var(--muted); box-shadow: var(--shadow); opacity: 0; cursor: pointer; }
.wi-row.in .wi-fwd { right: -34px; }
.wi-row.out .wi-fwd { left: -34px; }
.wi-msg:hover .wi-fwd, .wi-fwd:focus-visible { opacity: 1; }
@media (hover: none) { .wi-fwd { opacity: 0.85; } }
.wi-img-btn { display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.wi-img { display: block; max-width: min(320px, 100%); max-height: 320px; min-width: 120px; min-height: 80px; border-radius: 10px; background: var(--paper); object-fit: cover; }
.wi-video { display: block; max-width: min(340px, 100%); border-radius: 10px; }
.wi-audio { display: block; width: min(300px, 100%); height: 40px; }
.wi-miss { margin: 0; color: var(--muted); font-style: italic; }
.wi-doc { display: flex; align-items: center; gap: 10px; width: min(300px, 100%); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; }
.wi-doc.static { cursor: default; }
.wi-doc-name { display: grid; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wi-doc-name small { color: var(--muted); font-weight: 400; }

.wi-selbar { display: flex; align-items: center; justify-content: flex-end; gap: var(--s2); padding: 8px var(--s3); border-top: 1px solid var(--line); background: var(--surface); }
.wi-selbar[hidden] { display: none; }
.wi-bar-n { flex: 1; font-weight: 600; }
.wi-foot { border-top: 1px solid var(--line); background: var(--surface); flex: none; max-height: 48%; overflow-y: auto; overscroll-behavior: contain; }
.wi-composer { display: flex; align-items: flex-end; gap: 6px; padding: 8px var(--s3); }
/* Modelo enviado, aguardando resposta: aviso curto e campo travado no lugar do painel grande do modelo. */
.wi-wait .wi-note { padding: 8px var(--s3) 0; font-size: 0.9rem; }
.wi-composer.is-locked { opacity: 0.55; }
.wi-composer.is-locked * { cursor: not-allowed; }
.wi-input { flex: 1; box-sizing: border-box; height: 48px; min-height: 48px; max-height: 140px; overflow-y: auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); font: inherit; line-height: 1.35; resize: none; }
.wi-input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.wi-round { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.wi-round:hover { background: var(--paper); }
.wi-round.primary { background: var(--primary); color: var(--primary-ink); }
.wi-round.primary:hover { background: var(--primary-hover); }
.wi-round[hidden] { display: none; }
.wi-round:disabled { opacity: 0.5; cursor: not-allowed; }
/* Celular: campo de mensagem mais alto e com letra de 16 px (também evita o zoom automático do iPhone ao tocar). */
@media (max-width: 720px) {
  .wi-composer { padding: 10px var(--s3); gap: 8px; }
  .wi-input { height: 56px; min-height: 56px; padding: 15px 18px; font-size: 1rem; border-radius: 28px; }
  .wi-round { width: 52px; height: 52px; }
}
.wi-recording { align-items: center; }
.wi-rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #D93025; animation: wi-pulse 1.1s ease-in-out infinite; }
.wi-rec-time { min-width: 3ch; font-variant-numeric: tabular-nums; font-weight: 700; }
.wi-rec-hint { flex: 1; color: var(--muted); }
@keyframes wi-pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .wi-rec-dot { animation: none; } }
.wi-note { margin: 0; padding: var(--s3) var(--s4); color: var(--muted); }
.wi-note.warn { color: var(--danger-ink); }
/* Modelo aprovado (janela fechada): rodapé compacto — a prévia rola dentro de si e o botão fica sempre à vista, para a conversa não ser espremida. */
.wi-tpl { display: grid; gap: var(--s2); padding: var(--s3); }
.wi-tpl .wi-note { padding: 0; font-size: 0.9rem; }
.wi-tpl-prev { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--paper); color: var(--ink-2); white-space: pre-wrap; font-size: 0.88rem; line-height: 1.4; max-height: 7.5em; overflow-y: auto; overscroll-behavior: contain; }
.wi-tpl .btn-primary { position: sticky; bottom: 0; }
.wi-tpl .input { min-height: 40px; }

.wi-dlg .dialog-body { display: grid; gap: var(--s3); max-height: 70vh; overflow-y: auto; }
.wi-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.wi-preview-img { display: block; max-width: 100%; max-height: 320px; margin-inline: auto; border-radius: 12px; }
.wi-lightbox-img { display: block; max-width: 100%; max-height: 70vh; margin-inline: auto; border-radius: 12px; }
.wi-pick-list { display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.wi-pick-row { display: flex; align-items: center; gap: var(--s3); padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.wi-pick-row:hover { background: var(--paper); }
.wi-pick-name { display: grid; min-width: 0; }
.wi-pick-name small { color: var(--muted); }
.wi-prof-top { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.wi-prof-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.wi-phone { margin: 0; font-variant-numeric: tabular-nums; }
.bo-wa { min-width: 0; }

@media (max-width: 900px) {
  .wi { grid-template-columns: minmax(0, 1fr); height: clamp(480px, calc(100vh - 150px), 900px); height: clamp(480px, calc(100dvh - 150px), 900px); }
  .wi-chat { display: none; }
  .wi.is-chat .wi-list { display: none; }
  .wi.is-chat .wi-chat { display: flex; }
  .wi-back { display: inline-flex; }
  .wi-msg { max-width: 88%; }
  .wi-row.in .wi-fwd { right: 6px; top: -10px; }
  .wi-row.out .wi-fwd { left: 6px; top: -10px; }
}
:is(.bo-kpi-sub, .pt-metric-sub, .pt-mini-sub, .indicator:not(.is-locked) > :nth-child(3)):not(#c) {
  display: block; margin: 0; text-align: center; font-size: 0.8125rem; line-height: 1.35; color: var(--muted); text-wrap: balance; overflow-wrap: anywhere;
}
.pt-metric.is-accent:not(#c) :is(.pt-metric-label, .pt-metric-sub) { color: var(--mint-ink); }

/* ===== Chat da FôlIA (landing e Prumo): botão flutuante + janela ===== */
.fl-chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: end; gap: 12px; }
body[data-route="partner"] .fl-chat, body[data-route="unsubscribe"] .fl-chat, body[data-route="checkout"] .fl-chat, body[data-route="addon"] .fl-chat { display: none; }
.fl-chat-fab { display: inline-flex; align-items: center; gap: 0; height: 58px; min-width: 58px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); transition: background-color 0.2s var(--ease), gap 0.25s var(--ease), padding 0.25s var(--ease), transform 0.2s var(--ease); }
.fl-chat-fab:hover { background: var(--primary-hover); }
.fl-chat-fab:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.fl-chat-fab:active { transform: scale(0.97); }
.fl-chat-fab svg { flex: none; }
.fl-chat-fab-text { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.3s var(--ease); }
.fl-chat-fab.is-hint, .fl-chat-fab:focus-visible { gap: 10px; padding: 0 20px 0 14px; }
.fl-chat-fab.is-hint .fl-chat-fab-text, .fl-chat-fab:focus-visible .fl-chat-fab-text { max-width: 180px; }
@media (hover: hover) { .fl-chat-fab:hover { gap: 10px; padding: 0 20px 0 14px; } .fl-chat-fab:hover .fl-chat-fab-text { max-width: 180px; } }
.fl-chat-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
/* Indicativo discreto "Fale com a FôlIA": balão pequeno com a pontinha apontando para o botão, flutua de leve. */
.fl-chat-tip { position: relative; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 0.75rem; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 18px -10px rgba(19, 35, 29, 0.45); opacity: 0; }
.fl-chat-tip[hidden] { display: none; }
.fl-chat-tip::after { content: ''; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--surface); transform: rotate(45deg); }
.fl-chat-tip:hover { color: var(--ink); border-color: var(--primary); }
.fl-chat-tip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fl-chat-tip.is-in { animation: fl-tip-in 0.5s var(--ease) forwards, fl-tip-float 3.6s ease-in-out 0.5s infinite; }
@keyframes fl-tip-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fl-tip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .fl-chat-tip.is-in { animation: none; opacity: 1; } }
.fl-chat.is-open .fl-chat-tip { display: none; }
@media (max-width: 560px) { .fl-chat-tip { font-size: 0.6875rem; padding: 5px 10px; } }
.fl-chat-panel { position: relative; display: flex; flex-direction: column; width: min(392px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 120px)); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px -24px rgba(19, 35, 29, 0.45); overflow: hidden; }
.fl-chat-panel[hidden] { display: none; }
.fl-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--primary); color: var(--primary-ink); }
.fl-chat-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(246, 243, 236, 0.16); flex: none; }
.fl-chat-who { display: grid; gap: 1px; min-width: 0; flex: 1; }
.fl-chat-who strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.fl-chat-who span { font-size: 0.8125rem; opacity: 0.88; }
.fl-chat-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.fl-chat-close:hover { background: rgba(246, 243, 236, 0.16); }
.fl-chat-close:focus-visible { outline: 3px solid var(--primary-ink); outline-offset: -3px; }
.fl-chat-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.fl-chat-log { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 10px; padding: 16px; overscroll-behavior: contain; }
.fl-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.fl-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fl-msg-bot { justify-self: start; background: var(--sunken); color: var(--ink); border-bottom-left-radius: 4px; }
.fl-msg-me { justify-self: end; background: var(--primary); color: var(--primary-ink); border-bottom-right-radius: 4px; }
.fl-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.fl-typing span { width: 7px; height: 7px; border-radius: 999px; background: var(--muted); animation: fl-dot 1.1s ease-in-out infinite; }
.fl-typing span:nth-child(2) { animation-delay: 0.15s; }
.fl-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fl-dot { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .fl-typing span { animation: none; opacity: 0.7; } .fl-chat-fab, .fl-chat-fab-text { transition: none; } }
.fl-chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.fl-chip { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 0.875rem; cursor: pointer; }
.fl-chip:hover { background: var(--mint); border-color: var(--primary); }
.fl-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fl-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 16px 8px; border-top: 1px solid var(--line); }
.fl-chat-input { flex: 1; min-width: 0; max-height: 110px; resize: none; padding: 11px 14px; border: 1px solid var(--field); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.35; }
.fl-chat-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.fl-chat-send { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 999px; background: var(--primary); color: var(--primary-ink); cursor: pointer; }
.fl-chat-send:hover { background: var(--primary-hover); }
.fl-chat-send:disabled { opacity: 0.5; cursor: default; }
.fl-chat-send:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fl-chat-note { margin: 0; padding: 0 16px 12px; text-align: center; font-size: 0.75rem; color: var(--muted); }
.fl-chat-wait { margin: 0; padding: 24px; text-align: center; color: var(--muted); }
.fl-chat-start { display: grid; gap: 12px; align-content: start; padding: 20px 20px 8px; overflow-y: auto; min-height: 0; }
.fl-chat-start h2 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 560; line-height: 1.2; }
.fl-chat-lead { margin: 0; color: var(--ink-2); line-height: 1.45; }
.fl-chat-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }
.fl-chat-consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--primary); }
/* Nome de marca dentro de uma frase (ex.: Prumo): fonte dos títulos, verde da marca e um pouco maior, para não se perder no texto. */
.brand-word { font-family: var(--font-display); font-weight: 650; font-size: 1.14em; letter-spacing: -0.005em; color: var(--primary); }

/* Condições do Prumo logo abaixo do texto de apresentação: mesma largura, um tom abaixo. */
.lead.lead-terms { margin-top: var(--s2); font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }

/* ===== Aviso de cookies: não bloqueia a página; fica no rodapé da tela ===== */
.cookie-banner { position: fixed; z-index: 80; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(560px, calc(100vw - 32px)); display: grid; gap: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px -24px rgba(19, 35, 29, 0.5); }
.cookie-title { margin: 0; font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.2; }
.cookie-banner p { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }
.cookie-actions .link { font-size: 0.8125rem; }
.cookie-banner strong { color: var(--ink); font-weight: 700; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cookie-actions .btn { min-width: 120px; }
@media (max-width: 560px) {
  .cookie-banner { left: 0; right: 0; bottom: 0; width: auto; border-radius: 18px 18px 0 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .cookie-actions .btn { flex: 1 1 0; }
  body.has-cookie-banner .fl-chat { display: none; }
}
@media (min-width: 561px) {
  /* Computador: o formulário de entrada cabe inteiro na janela, sem barra de rolagem. */
  .fl-chat-panel { height: min(660px, calc(100dvh - 88px)); }
  .fl-chat-start { gap: 8px; padding: 14px 20px 4px; overflow-y: auto; }
  .fl-chat-start h2 { font-size: 1.3rem; }
  .fl-chat-start .field { gap: 3px; }
  .fl-chat-start .label { font-size: 0.875rem; }
  .fl-chat-start .input { min-height: 40px; padding-block: 8px; }
  .fl-chat-start .btn { min-height: 44px; }
  .fl-chat-consent { font-size: 0.8125rem; }
  .fl-chat-start .fl-chat-note { padding: 0 0 8px; }
}
@media (min-width: 561px) and (max-height: 700px) {
  .fl-chat-lead { display: none; }
  .fl-chat-panel { height: calc(100dvh - 80px); }
}
@media (max-width: 560px) {
  .fl-chat-panel { position: fixed; inset: 0; width: auto; height: 100dvh; border: 0; border-radius: 0; }
  .fl-chat.is-open .fl-chat-fab { display: none; }
}
/* Diagnóstico no celular/tablet: a barra do Continuar fica fixa no rodapé, então o chat sobe acima dela (não cobre o botão) e o balão de dica não aparece. */
@media (max-width: 1023.98px) {
  body[data-route="intake"] .fl-chat:not(.is-open) { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 88px); }
  body[data-route="intake"] .fl-chat-tip { display: none; }
  body[data-route="intake"] .fl-chat-fab { height: 48px; min-width: 48px; padding: 0 11px; }
}
/* Planejar férias e lista de sites oficiais do dinheiro esquecido */
.trip-row { grid-template-columns: 1fr auto auto; }
.trip-hint { display: block; }
.trip-group { margin-top: var(--s4); }
.trip-group h4 { margin: 0 0 var(--s2); }
.trip-day { border-top: 1px solid var(--line); padding-top: var(--s3); margin-top: var(--s3); }
.trip-day h4 { margin: 0 0 var(--s2); }
.trip-day-body { display: grid; grid-template-columns: max-content 1fr; gap: 4px var(--s3); margin: 0 0 var(--s2); }
.trip-day-body dt { font-weight: 600; }
.trip-day-body dd { margin: 0; }
.trip-form textarea { resize: vertical; }
.official-links { list-style: none; padding: 0; margin: var(--s3) 0; display: grid; gap: var(--s3); }
.official-links li { border-left: 3px solid var(--line); padding-left: var(--s3); }
.official-links a { display: inline-block; margin-top: 2px; overflow-wrap: anywhere; }
@media (max-width: 559px) {
  .trip-row { grid-template-columns: 1fr; }
  .trip-day-body { grid-template-columns: 1fr; }
  .trip-day-body dt { margin-top: var(--s2); }
}

@media (max-width: 559px) {
  /* No celular o rótulo pode ocupar duas linhas; a linha é reservada em todos os cartões, então os números seguem alinhados. */
  :is(.bo-kpi-label, .stat dt, .indicator:not(.is-locked) > :first-child, .cc-stat-label, .pt-metric-label, .pt-mini-label):not(#c) {
    display: flex; align-items: center; justify-content: center; min-height: 2.4em; white-space: normal; text-overflow: clip; line-height: 1.2; text-wrap: balance;
  }
}

/* Lançamentos por origem: um bloco para cada conta e cada cartão; o resumo fica à vista e o detalhe abre ao tocar. */
.ledger-groups { display: grid; gap: var(--s3); }
.lg { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.lg-cartao { border-left: 4px solid var(--seg-b); }
.lg-conta { border-left: 4px solid var(--primary); }
.lg-solto { border-left: 4px solid var(--seg-a); }
.lg-head { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 24px; gap: var(--s3); align-items: center; padding: 14px 16px; min-height: 64px; cursor: pointer; transition: background .15s var(--ease); }
.lg-head:hover { background: var(--sunken); }
.lg-head:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.lg-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--mint-ink); }
.lg-cartao .lg-ico { background: var(--amber-bg); color: var(--amber-ink); }
.lg-solto .lg-ico { background: var(--sunken); color: var(--ink-2); }
.lg-title { display: grid; gap: 2px; min-width: 0; }
.lg-title .fine { white-space: normal; }
.lg-figs { display: flex; gap: var(--s4); justify-content: flex-end; }
.lg-fig { display: grid; gap: 0; text-align: right; }
.lg-chev { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s var(--ease); }
.lg-head[aria-expanded="true"] .lg-chev { transform: rotate(180deg); }
.lg-body { padding: 0 16px 12px; border-top: 1px solid var(--line); }
.lg-note { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; }
.ledger-actions { display: flex; gap: 2px; justify-content: flex-end; }
.lg .entry-row { grid-template-columns: 84px minmax(0, 1fr) 190px 124px 84px; }
.ledger-edit { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); align-items: end; padding: 6px 0; }
.ledger-edit .button-row { grid-column: 1 / -1; display: flex; gap: var(--s2); }
@media (max-width: 760px) {
  .lg-head { grid-template-columns: 40px minmax(0, 1fr) 24px; }
  .lg-figs { grid-column: 2 / 3; justify-content: flex-start; }
  .lg .entry-row { grid-template-columns: 1fr auto; grid-template-areas: "note amount" "date del" "cat cat"; }
  .lg .ledger-actions { grid-area: del; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) { .lg-head, .lg-chev { transition: none; } }

/* Investimentos: total no topo, cartões por aplicação (como no app da corretora) e abas Ativos / Processando. */
.inv-hero { display: flex; justify-content: space-between; gap: var(--s4); align-items: flex-start; flex-wrap: wrap; }
.inv-hero > div { display: grid; gap: 2px; }
.inv-total { font-family: var(--font-display); font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.1; letter-spacing: -0.01em; }
.inv-yield { margin: 0; }
.inv-seg { display: inline-flex; }
.inv-cards { display: grid; gap: var(--s3); margin-top: var(--s3); }
.inv-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--sunken); overflow: hidden; }
.inv-card-head { all: unset; box-sizing: border-box; width: 100%; display: grid; gap: var(--s2); padding: 16px; cursor: pointer; position: relative; }
.inv-card-head.static { cursor: default; }
.inv-card-head:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.inv-card-head .lg-chev { position: absolute; right: 16px; top: 16px; }
.inv-card-head[aria-expanded="true"] .lg-chev { transform: rotate(180deg); }
.inv-pill { justify-self: start; font-size: .72rem; letter-spacing: .04em; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.inv-name { font-size: 1.125rem; }
.inv-dl { display: grid; gap: 6px; margin: 0; }
.inv-dl > div { display: flex; justify-content: space-between; gap: var(--s3); }
.inv-dl dt { color: var(--muted); }
.inv-dl dd { margin: 0; font-weight: 600; text-align: right; }
.inv-card-body { padding: 0 16px 8px; background: var(--surface); border-top: 1px solid var(--line); }
.inv-row { grid-template-columns: minmax(0, 1fr) auto auto; }

/* Estratégias: jogadas calculadas e a análise do Estrategista. */
.plays { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.play { border: 1px solid var(--line); border-left: 4px solid var(--tone-attention); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--surface); display: grid; gap: 6px; }
.play-good { border-left-color: var(--tone-ok); }
.play-info { border-left-color: var(--seg-a); }
.play p { margin: 0; color: var(--ink-2); }
.play-top { display: flex; justify-content: space-between; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.md h3 { margin: var(--s5) 0 var(--s2); font-size: 1.15rem; }
.md h4 { margin: var(--s4) 0 var(--s2); }
.md p { margin: 0 0 var(--s3); line-height: 1.6; max-width: 72ch; }
.md-list { margin: 0 0 var(--s3); padding-left: 1.3em; display: grid; gap: 6px; max-width: 72ch; }
.md-table-wrap { overflow-x: auto; margin: 0 0 var(--s3); }
.md-table th, .md-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }

/* formulários em grade não estouram a coluna (Investimentos) */
.form-std > .field, .entry-form > .field { min-width: 0; }
.form-std .input, .entry-form .input { max-width: 100%; box-sizing: border-box; }


.inv-card-head.static .btn { justify-self: start; }


/* =============================================================================
   Refinamento mobile do Prumo: alinhamentos, quebras de linha, alvos de toque e espaço para a FôlIA.
   Tudo aqui só vale em tela estreita; o desktop não muda.
   ============================================================================= */
/* quebras de linha mais limpas em qualquer tela: títulos equilibrados e sem palavra sozinha na última linha */
h1, h2, h3, .cat-head span, .lg-title strong, .inv-name { text-wrap: balance; }
.d-section p, .card p, .note span { text-wrap: pretty; }
.entry-amount, .rec-money strong, .balance-num, .lg-fig strong, .inv-dl dd, .cat-head strong { font-variant-numeric: tabular-nums; }

@media (max-width: 959px) {
  /* a barra de abas fica opaca: o conteúdo que passa por baixo não aparece cortado atrás dela */
  .acc-tabs { background: var(--paper); backdrop-filter: none; box-shadow: 0 1px 0 var(--line); padding-block: 10px; }
  .acc-tab { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
  /* a FôlIA flutuante nunca cobre o último item da tela */
  body[data-route="account"] { padding-bottom: 112px; }
  .d-section { scroll-margin-top: 140px; }
}

@media (max-width: 760px) {
  .card { padding: var(--s4); }
  .d-section h2 { line-height: 1.2; }

  /* "Para onde foi o dinheiro", Orçamento: nome à esquerda, valor à direita; se não couber, o valor desce inteiro, alinhado à direita */
  .cat-head { flex-wrap: wrap; row-gap: 2px; }
  .cat-head > span:first-child { flex: 0 1 auto; min-width: 0; }
  .cat-head > strong { margin-left: auto; text-align: right; white-space: nowrap; }

  /* linhas de lista (carteiras, viagens, aplicações, parcelas): o texto usa a largura toda e os botões descem para uma linha própria */
  .wallet-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--s2); align-items: start; }
  .wallet-row > :first-child { grid-column: 1 / -1; }
  .wallet-row > :nth-child(2):not(:last-child) { grid-column: 1; align-self: center; }
  .wallet-row > :last-child:not(:first-child) { grid-column: 2; justify-self: end; align-self: center; }
  .wallet-row > span:empty { display: none; }
  .wallet-row > strong { white-space: nowrap; }
  .wallet-row.of-row { grid-template-columns: 1fr; }
  .inv-row { grid-template-columns: minmax(0, 1fr) auto; }
  .lis-block, .lis-note { max-width: 100%; }
  .lis-note { align-items: flex-start; }

  /* cobranças recorrentes */
  .rec-row { grid-template-columns: 1fr; row-gap: var(--s2); }
  .rec-money { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); text-align: left; }
  .rec-money .fine { text-align: right; }
  .rec-flags > * { border-radius: 12px; padding: 6px 12px; line-height: 1.35; text-align: left; max-width: 100%; }
  .rec-row select { grid-column: 1; width: 100%; }

  /* lançamentos por origem: título, resumo e seta em colunas fixas */
  .lg-head { grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: start; row-gap: 10px; padding: 14px; }
  .lg-chev { grid-column: 3; grid-row: 1; justify-self: end; margin-top: 8px; }
  .lg-figs { grid-column: 1 / -1; justify-content: flex-start; gap: var(--s5); padding-left: 52px; }
  .lg-fig { text-align: left; }
  .lg-body { padding-inline: 14px; }

  /* aplicações */
  .inv-hero { flex-direction: column; align-items: stretch; }
  .inv-hero .btn { align-self: flex-start; }
  .inv-card-head { padding: 14px; }
  .inv-card-head .inv-name { padding-right: 32px; }
  .inv-seg { width: 100%; }
  .inv-seg .seg-btn { flex: 1; }

  /* botões: linhas só com botões ocupam a largura toda, todos do mesmo tamanho */
  .button-row:not(:has(.input, .field, .seg)) { flex-direction: column; align-items: stretch; }
  .button-row:not(:has(.input, .field, .seg)) > .btn { width: 100%; justify-content: center; }
  .btn-sm { min-height: 44px; }
  .icon-btn { min-width: 44px; min-height: 44px; justify-content: center; }
  .ledger-actions .btn { min-width: 44px; }
  .play-top { align-items: flex-start; }
  .cc-stats { grid-template-columns: 1fr; }
  .md-table-wrap { margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); }
}

/* deslizar para os lados: a tela nova entra vindo do lado para onde o dedo foi */
@keyframes swipe-in-next { from { opacity: .35; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes swipe-in-prev { from { opacity: .35; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.acc-panel.swipe-next { animation: swipe-in-next .22s var(--ease); }
.acc-panel.swipe-prev { animation: swipe-in-prev .22s var(--ease); }
@media (prefers-reduced-motion: reduce) { .acc-panel.swipe-next, .acc-panel.swipe-prev { animation: none; } }

/* =============================================================================
   Refinamento mobile, parte 2: componentes compartilhados por todas as telas do Prumo
   (balões, etiquetas, avisos, metas, dívidas, cartões, cenários, preferências, diálogos, avisos na tela).
   ============================================================================= */
@media (max-width: 760px) {
  /* etiquetas e balões: texto longo quebra dentro do balão, alinhado à esquerda e com o mesmo respiro dos dois lados */
  .pill { border-radius: 14px; line-height: 1.3; padding: 5px 12px; text-align: left; max-width: 100%; }
  .note { padding: 12px; }
  .note > .icon, .locked-box > .icon { flex: none; }
  .note > span, .note > div, .note > p { min-width: 0; flex: 1 1 auto; margin: 0; }
  .locked-box { padding: var(--s3); }
  .locked-box > div { min-width: 0; }
  .empty { padding: var(--s4); }
  .input { min-width: 0; max-width: 100%; }

  /* navegação de mês */
  .month-nav { gap: var(--s2); }
  .month-nav > strong, .month-nav > span { flex: 1; text-align: center; min-width: 0; }

  /* metas, dívidas, cartões e cenários */
  .goal-card { padding: var(--s4); }
  .goal-nums strong { font-size: 1.4rem; }
  .goal { flex-wrap: wrap; row-gap: var(--s2); }
  .goal-history li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1, 4px) var(--s3); }
  .debt-top { flex-wrap: wrap; row-gap: 4px; }
  .cc-cats li { grid-template-columns: minmax(0, 1fr) auto; }
  .cc-cats li > :nth-child(3) { grid-column: 1 / -1; }
  .agenda-item, .milestone { grid-template-columns: 64px minmax(0, 1fr); gap: var(--s3); }
  .challenges li { align-items: start; }
  .scn-pair { grid-template-columns: 96px minmax(0, 1fr); }
  .cc-table { font-size: 0.875rem; }
  .cc-table th, .cc-table td { padding: 8px 4px; }

  /* botões lado a lado dividem a linha em partes iguais */
  .row-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
  .row-actions > .btn { flex: 1 1 140px; justify-content: center; }

  /* preferências de notificação: caixa de seleção no topo e texto na largura toda */
  .pref-row .check { flex-wrap: nowrap; align-items: flex-start; }
  .pref-row .check label { flex: 1; min-width: 0; }
  .pref-row .check label span { display: block; }
  .app-steps ol { padding-left: 1.2em; display: grid; gap: 6px; }

  /* diálogos: ocupam a largura com folga e os botões ficam empilhados, todos do mesmo tamanho */
  .dialog { width: calc(100% - 24px); max-height: 88dvh; }
  .dialog-foot { flex-direction: column-reverse; align-items: stretch; gap: var(--s2); }
  .dialog-foot .btn { width: 100%; justify-content: center; }

  /* aviso na tela: acima da FôlIA, centralizado e com cantos que acompanham o texto em duas linhas */
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); border-radius: 18px; text-align: center; padding: 12px 18px; }
  body[data-route="account"] { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}

/* =============================================================================
   Refinamento web e landing: listas de planos com ritmo uniforme, rodapé com alvos de toque, hero sem estouro lateral.
   ============================================================================= */
/* a lista do plano não estica para preencher a altura (o que variava o espaço entre os itens); só o botão vai para o pé do cartão */
.plan-card .tick-list { align-content: start; grid-auto-rows: max-content; }
.hero { overflow-x: clip; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 640px) {
  /* o botão secundário alinha o texto com a borda esquerda do botão principal */
  .hero .btn-quiet { padding-left: 0; justify-content: flex-start; }
  .site-footer { padding-block: var(--s6); }
  .footer-links { gap: 0 var(--s5); }
}

/* Visão geral: o saldo da conta tem o seu próprio bloco, separado do saldo do mês por uma linha e com o texto explicativo respirando */
.balance.balance-account { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); gap: 4px; }
.balance.balance-account .fine { margin: var(--s2) 0 0; max-width: 62ch; }

/* Caixas de seleção: a caixa fica ao lado do texto (alinhada à primeira linha), nunca numa linha só dela; vale para landing e Prumo */
.check { flex-wrap: nowrap; align-items: flex-start; }
.check > label, .check > span:not(.fine) { flex: 1 1 0; min-width: 0; padding-top: 1px; }
.check input[type="checkbox"], .check input[type="radio"] { margin-top: 0; }
/* links soltos do rodapé também têm área de toque confortável */
.site-footer p a, .site-footer li a { display: inline-block; padding-block: 12px; }

/* Landing: alinhamento do bloco de preço, exemplo do Tradutor e vão entre seções do mesmo fundo */
/* o bloco de preço é todo centralizado: o título e a etiqueta acompanham o preço */
.price-wrap .section-head { text-align: center; }
/* o cartão de resposta do exemplo começa na mesma linha da mensagem recebida */
.tr-read { margin-left: 0; }
/* duas seções sem fundo colorido seguidas (início e Como funciona; Prumo e Guias) ganham uma linha fina no meio do vão, que some nas pontas */
#como-funciona, #guias { position: relative; }
#como-funciona::before, #guias::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 2 * var(--gutter))); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

/* =============================================================================
   Padronização: cartões, botões, texto do Estrategista e impressão
   ============================================================================= */
/* botões: rótulo equilibrado e ícone com tamanho fixo em qualquer tela */
.btn { text-align: center; text-wrap: balance; }
.btn .icon { flex: none; }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }
.btn:focus-visible, .seg-btn:focus-visible, .acc-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* cartões: as ações do topo ficam juntas, com o mesmo tamanho e espaço entre elas */
.cc-top-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cc-top-actions .cc-add { margin: 0; }
@media (max-width: 760px) {
  .cc-top { flex-direction: column; align-items: stretch; }
  .cc-top-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .cc-top-actions > * { min-width: 0; }
  .cc-add > summary { width: 100%; justify-content: center; }
}

/* filhos de grade nunca alargam o cartão (era o que empurrava o texto do Estrategista para fora da tela) */
.acc-stack > *, .d-section > * { min-width: 0; }
.md { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.md-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.md-table { min-width: 100%; }
@media (max-width: 760px) {
  .md-table-wrap { margin-inline: 0; padding-inline: 0; }
  .md-table th, .md-table td { padding: 8px; font-size: 0.875rem; overflow-wrap: normal; }
  .md-table td:first-child, .md-table th:first-child { min-width: 128px; }
}

/* impressão (Férias, Lançamentos...): a regra antiga escondia todas as telas menos a de entrega, e a conta saía em branco */
@page { margin: 14mm; }
@media print {
  html body main section#view-account:not([hidden]) { display: block !important; }
  .acc-tabs, .acc-bar, .app-invite, .fl-chat, .cookie-bar, #acc-profile-btn, .acc-avatar { display: none !important; }
  .acc-shell { display: block; margin: 0; }
  body[data-route="account"] { padding-bottom: 0; }
  .acc-panel, .d-section { gap: 12px; }
}
@media print { .reveal { opacity: 1 !important; transform: none !important; } }


/* =============================================================================
   Gráficos e Relatórios (rosca, barras, linha, barras horizontais). Frio e interativo usam o mesmo desenho.
   ============================================================================= */
.ch { margin: 0; position: relative; min-width: 0; }
.ch-card { gap: var(--s4); }
.ch-stack { display: grid; gap: var(--s6); min-width: 0; }
.ch-h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; margin: 0 0 var(--s2); }
.ch-empty { margin: 0; }
.ch-dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 4px; }
.ch-dot.a { background: var(--primary); }
.ch-dot.b { background: #B8420F; }
.ch-svg { display: block; width: 100%; max-width: 240px; height: auto; margin-inline: auto; overflow: visible; }
.ch-svg:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 8px; }

/* rosca */
.ch-donut-body { display: grid; gap: var(--s5); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ch-donut-body { grid-template-columns: 220px minmax(0, 1fr); } }
.ch-arc { transition: opacity 0.15s var(--ease), stroke-width 0.15s var(--ease); }
.ch-arc.is-dim { opacity: 0.25; }
.is-live .ch-arc { cursor: pointer; }
.ch-arc:focus-visible { outline: none; stroke-width: 31; }
.ch-c-label { font-size: 9.5px; fill: var(--muted); font-family: var(--font-body); }
.ch-c-value { font-size: 15px; font-weight: 700; fill: var(--ink); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.ch-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; min-width: 0; }
.ch-l-row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; width: 100%; padding: 8px 6px; border-radius: 10px; }
.ch-legend li { transition: opacity 0.15s var(--ease); }
.ch-legend li.is-dim { opacity: 0.45; }
.ch-legend li.is-on .ch-l-row { background: var(--sunken); }
button.ch-l-row { cursor: pointer; min-height: 44px; }
button.ch-l-row:hover { background: var(--sunken); }
button.ch-l-row:focus-visible, button.ch-col:focus-visible, button.ch-h-row:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.ch-l-name { min-width: 0; overflow-wrap: anywhere; }
.ch-l-pct { min-width: 3ch; text-align: right; font-size: 0.875rem; }
.ch-l-val { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* barras por período */
.ch-bars-grid { display: grid; gap: 6px; align-items: end; }
.ch-col { all: unset; box-sizing: border-box; display: grid; gap: 6px; justify-items: center; align-content: end; min-width: 0; padding: 4px 2px; border-radius: 10px; }
button.ch-col { cursor: pointer; }
button.ch-col:hover, .ch-col.is-on { background: var(--sunken); }
.ch-group { display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: 100%; height: 150px; }
.ch-bar { flex: 1 1 0; max-width: 28px; min-height: 0; border-radius: 6px 6px 2px 2px; transition: height 0.3s var(--ease); }
.ch-bar.a { background: var(--primary); }
.ch-bar.b { background: #B8420F; }
.ch-x { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.ch-vals { display: grid; text-align: center; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.ch-va { color: var(--primary); }
.ch-vb { color: #B8420F; }
.ch-keys { display: flex; flex-wrap: wrap; gap: var(--s4); margin: var(--s3) 0 0; }
.ch-keys > span { display: inline-flex; align-items: center; gap: 6px; }

/* linha */
.ch-line .ch-svg { max-width: none; }
.ch-axis { stroke: var(--line); stroke-width: 1; }
.ch-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.ch-t { font-size: 11px; fill: var(--muted); font-family: var(--font-body); }
.ch-area { fill: var(--primary); opacity: 0.12; }
.ch-path { fill: none; stroke: var(--primary); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.ch-mark { fill: var(--primary); stroke: var(--surface); stroke-width: 2; }
.ch-rule { stroke: var(--muted); stroke-dasharray: 3 3; }
.ch-line.is-live .ch-svg { touch-action: pan-y; cursor: crosshair; }

/* barras horizontais */
.ch-h { display: grid; gap: var(--s3); }
.ch-h-row { all: unset; box-sizing: border-box; display: grid; gap: 6px; width: 100%; padding: 6px 4px; border-radius: 10px; }
button.ch-h-row { cursor: pointer; }
button.ch-h-row:hover, .ch-h-row.is-on { background: var(--sunken); }
.ch-h-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.ch-h-name { min-width: 0; overflow-wrap: anywhere; }
.ch-h-head strong { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.ch-track { position: relative; display: block; height: 10px; border-radius: 999px; background: var(--line); }
.ch-fill { display: block; height: 100%; min-width: 2px; border-radius: inherit; }
.ch-fill.neg { background: var(--tone-critical); }
.ch-limit { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: var(--ink); }

/* balão dos gráficos interativos */
.ch-tip { position: absolute; z-index: 5; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; pointer-events: none; }

/* relatórios */
.rel-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.rel-seg::-webkit-scrollbar { display: none; }
.rel-filters { display: grid; gap: var(--s3); }
.rel-selects { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.rel-dates { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; }
.rel-top { list-style: none; margin: 0; padding: 0; display: grid; }
.rel-top li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.rel-top-note { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .ch-group { height: 120px; }
  .ch-x { font-size: 0.75rem; }
  .rel-selects { grid-template-columns: minmax(0, 1fr); }
  .rel-dates > .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ch-arc, .ch-bar, .ch-legend li { transition: none; } }
@media print {
  .ch-tip { display: none !important; }
  .ch-bar, .ch-fill, .ch-arc, .ch-dot, .ch-area { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .ch-card, .rel .card { break-inside: avoid; }
}

/* =============================================================================
   Marketing do Prumo: banner na home e a landing exclusiva (/prumo). Mesmos tokens, tipografia e ritmo da landing do Fôlego.
   ============================================================================= */
.prumo-banner { position: relative; overflow: hidden; display: grid; gap: var(--s5); align-items: center; margin-top: var(--s6); padding: var(--s6) var(--s5); border-radius: 26px; background: var(--cta-bg); color: var(--cta-ink); }
@media (min-width: 820px) { .prumo-banner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); padding: var(--s7); } }
.pb-copy { display: grid; gap: var(--s3); justify-items: start; }
.pb-badge { width: 44px; height: 44px; }
.pb-copy h3 { color: var(--cta-ink); font-size: clamp(1.65rem, 1.1rem + 2vw, 2.45rem); line-height: 1.12; max-width: 20ch; }
.pb-copy p { margin: 0; max-width: 46ch; color: color-mix(in srgb, var(--cta-ink) 88%, transparent); }
.pb-btn { margin-top: var(--s2); background: var(--cta-ink); color: var(--cta-bg); }
.pb-btn:hover { background: var(--cta-ink); color: var(--cta-bg); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }
.pb-art { width: 100%; max-width: 320px; height: auto; justify-self: center; }

.pm-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s4); }
.pm .section-head .lead { margin-top: var(--s3); }
.pm-hero { padding-block: clamp(24px, 5vw, 56px) clamp(48px, 7vw, 88px); }
.pm-hero-grid { display: grid; gap: var(--s7); align-items: start; } /* texto no topo, alinhado ao cartão: com "center" o título descia ~80 px e o cartão alto passava da dobra */
@media (min-width: 960px) { .pm-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.pm-hero-copy { display: grid; gap: var(--s4); justify-items: start; min-width: 0; }
.pm-hero-copy h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.9rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 17ch; }
.pm-hero-copy .lead { max-width: 52ch; color: var(--ink-2); }
.pm-hero-demo { min-width: 0; }
.pm-hero-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.pm-demo { transform: none; align-content: start; min-width: 0; }
.pm-demo .ch-donut-body { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.pm-demo .ch-donut-body svg { max-width: 220px; }
.pm-demo .ch-legend { width: 100%; }
.pm-demo .ch-l-name { overflow-wrap: normal; }

.pm-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.pm-benefits .card h3 { font-size: 1.2rem; margin: 0 0 var(--s2); }
.pm-benefits .card p { margin: 0; color: var(--ink-2); }

.pm-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px var(--s4); scrollbar-width: none; }
@media (min-width: 900px) { .pm-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; padding-bottom: var(--s5); } .pm-tab { padding: 0 12px; } }
.pm-tabs::-webkit-scrollbar { display: none; }
.pm-tab { flex: none; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--field); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease); }
.pm-tab:hover { border-color: var(--primary); }
.pm-tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.pm-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pm-pane { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 900px) { .pm-pane { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s7); } }
.pm-pane-copy { display: grid; gap: var(--s3); align-content: start; }
@media (min-width: 900px) { .pm-pane:not(.pm-pane-phone) .pm-pane-copy { position: sticky; top: 96px; } }
.pm-pane-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.pm-plan { margin: 0; font-weight: 700; font-size: 0.9375rem; color: var(--primary); }
.pm-stack { display: grid; gap: var(--s4); min-width: 0; }
.pm-stack h4 { margin: 0; font-family: var(--font-body); font-size: 1rem; }
.pm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-fake-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pm-fake-actions .btn { pointer-events: none; }
.pm-seg { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
.pm-seg::-webkit-scrollbar { display: none; }
.pm-seg .seg-btn { flex: 1 0 auto; display: grid; place-items: center; min-height: 40px; padding: 0 14px; white-space: nowrap; cursor: default; }
.pm-seg .seg-btn[aria-current="true"] { background: var(--primary); color: var(--primary-ink); }
.pm-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-preset { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease); }
.pm-preset:hover { border-color: var(--primary); }
.pm-preset[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.pm-preset:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pm-trip { display: grid; gap: 2px; }
.pm-trip strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.pm-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-todo li { display: flex; align-items: center; gap: 10px; }
.pm-todo-box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--field); border-radius: 7px; background: var(--surface); }
.pm-todo .is-done .pm-todo-box { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.pm-todo .is-done > span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.pm-todo .icon { width: 14px; height: 14px; }
.pm-itin { display: grid; gap: var(--s2); justify-items: start; padding: var(--s4); border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.pm-itin p { margin: 0; color: var(--ink-2); }
.pm-ask { padding: var(--s3) var(--s4); border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.pm-ask p { margin: 2px 0 0; font-weight: 600; }
.pm-answer { display: grid; gap: var(--s3); }
.pm-answer p { margin: 0; }

/* celular com a conversa do WhatsApp (cores do próprio WhatsApp: é a imitação da tela real) */
.pm-pane-phone { align-items: center; }
.pm-phone-wrap { display: grid; justify-items: center; padding: var(--s4) 0; }
.pm-phone { position: relative; width: min(100%, 340px); overflow: hidden; border: 9px solid #15201b; border-radius: 42px; background: #efeae2; box-shadow: 0 30px 60px -28px rgba(19, 35, 29, 0.55); color: #111b21; font-size: 0.875rem; }
.pm-phone::before { content: ''; position: absolute; z-index: 2; top: 8px; left: 50%; width: 74px; height: 20px; margin-left: -37px; border-radius: 999px; background: #15201b; }
.pm-ph-status { display: flex; justify-content: space-between; align-items: center; padding: 10px 22px 6px; background: #008069; color: #fff; font-size: 0.75rem; font-weight: 700; }
.pm-ph-icons { display: inline-flex; gap: 4px; align-items: center; }
.pm-ph-icons i { display: block; width: 12px; height: 8px; border-radius: 2px; background: #fff; opacity: 0.9; }
.pm-ph-icons i:last-child { width: 18px; }
.pm-wa-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 12px; background: #008069; color: #fff; }
.pm-wa-back { width: 9px; height: 9px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); margin-right: 2px; }
.pm-wa-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #0b5d4b; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.pm-wa-who { display: grid; line-height: 1.2; }
.pm-wa-who strong { font-size: 0.9375rem; }
.pm-wa-who small { font-size: 0.6875rem; opacity: 0.85; }
.pm-wa-body { display: grid; gap: 6px; align-content: start; min-height: 430px; padding: 12px 10px 14px; background-color: #efeae2; background-image: radial-gradient(rgba(17, 27, 33, 0.045) 1px, transparent 1.4px); background-size: 14px 14px; }
.pm-wa-day { justify-self: center; margin: 0 0 4px; padding: 3px 10px; border-radius: 8px; background: #fff; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; color: #54656f; box-shadow: 0 1px 1px rgba(17, 27, 33, 0.12); }
.pm-wa-msg { position: relative; max-width: 82%; padding: 6px 9px 4px 10px; border-radius: 9px; box-shadow: 0 1px 1px rgba(17, 27, 33, 0.14); }
.pm-wa-msg p { margin: 0; line-height: 1.35; }
.pm-wa-msg.out { justify-self: end; background: #d9fdd3; border-top-right-radius: 2px; }
.pm-wa-msg.in { justify-self: start; background: #fff; border-top-left-radius: 2px; }
.pm-wa-time { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 1px; font-size: 0.625rem; color: #667781; }
.pm-wa-ticks { color: #53bdeb; letter-spacing: -2px; font-size: 0.6875rem; }
.pm-wa-photo { width: 62%; padding: 4px 4px 4px; }
.pm-wa-photo p { padding: 4px 5px 0; }
.pm-wa-receipt { display: grid; gap: 6px; align-content: start; height: 104px; padding: 12px 14px; border-radius: 6px; background: linear-gradient(#fbfbf8, #ecebe4); }
.pm-wa-receipt i { display: block; height: 4px; border-radius: 2px; background: #b8bdb7; }
.pm-wa-audio { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; width: 74%; padding: 8px 10px 4px; }
.pm-wa-audio .pm-wa-time { grid-column: 1 / -1; }
.pm-wa-play { width: 0; height: 0; margin-left: 4px; border-left: 11px solid #54656f; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.pm-wa-wave { display: flex; align-items: center; gap: 2px; height: 24px; }
.pm-wa-wave i { display: block; width: 3px; border-radius: 2px; background: #8696a0; }
.pm-wa-dur { font-size: 0.6875rem; color: #667781; }
.pm-wa-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; background: #efeae2; }
.pm-wa-input > span:first-child { flex: 1; padding: 9px 14px; border-radius: 999px; background: #fff; color: #667781; }
.pm-wa-mic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #008069; position: relative; }
.pm-wa-mic::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 14px; margin: -8px 0 0 -4px; border-radius: 4px; background: #fff; }

.pm-stats { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pm-big { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.25rem); font-weight: 500; line-height: 1.15; color: var(--primary); }
.pm-big b { font-weight: inherit; white-space: nowrap; }
.pm-big span { order: -1; font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--muted); }
.pm-stats p { margin: var(--s2) 0 0; color: var(--ink-2); }
.pm-final-actions { justify-content: center; }
.pm-top .pm-login { flex: none; }
.final-cta .pm-login { background: transparent; color: var(--cta-ink); border-color: color-mix(in srgb, var(--cta-ink) 55%, transparent); }
.final-cta .pm-login:hover { background: color-mix(in srgb, var(--cta-ink) 14%, transparent); box-shadow: none; }
@media (max-width: 640px) {
  .pm-hero-copy .hero-actions { width: 100%; }
  .pm-hero-copy .hero-actions .btn, .pm-final-actions .btn { width: 100%; justify-content: center; }
  .pm-kpis { grid-template-columns: 1fr; }
  .prumo-banner { padding: var(--s5) var(--s4); }
  .pb-btn { width: 100%; justify-content: center; }
}
@media print { .pm-tabs { display: none; } }

/* ===== Revisão visual (D-145): tipografia leve, cartões leves, mais respiro =====
   Newsreader (títulos e números) em peso baixo + Instrument Sans (texto). Só a palavra "fôlego" do logo segue em Fraunces. */
body { font-optical-sizing: auto; font-feature-settings: "kern", "liga"; line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.028em; line-height: 1.06; }
.hero h1 em, .pm-hero-copy h1 em { font-weight: 400; }
.brand-word { font-family: var(--font-brand); }
/* números e destaques: serifa leve, algarismos tabulares onde há alinhamento */
.gauge-num, .price, .balance-num, .headline, .first-name, .co-total strong, .stat dd, .offer dd, .month-label, .goal-nums strong,
.plan-price strong, .ab-count strong, .map-now, .pm-big, .pm-trip strong, .pt-metric-value, .cc-stat strong, .inv-total, .card-price strong,
.summary-surplus strong, .new-goal > summary, .step-num, .partner-sub, .pt-mini strong, .guide-card strong { font-weight: 420; }
.ch-c-value { font-weight: 500; }
.price, .balance-num, .inv-total { letter-spacing: -0.035em; }
/* rótulos: menores e mais leves, em vez de caixa-alta gritando */
.eyebrow, .card-eyebrow, .summary-title, .script-block h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
/* botões e etiquetas: peso 600 (a fonte do texto vai até 700) */
.btn { font-weight: 600; letter-spacing: 0.002em; }
.pill, .pm-tab { font-weight: 600; }
/* cartões: borda fina e suave, mais ar por dentro */
.card { border-color: color-mix(in srgb, var(--line) 75%, transparent); padding: clamp(20px, 2.4vw, 32px); }
.plan-card, .pm-demo { border-color: color-mix(in srgb, var(--line) 75%, transparent); }
/* ritmo: mais respiro entre as seções e abaixo dos títulos */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { margin-bottom: var(--s7); }
.lead { line-height: 1.65; color: var(--ink-2); }
body { word-spacing: 0.04em; } /* a Instrument Sans fecha demais o espaço entre palavras, principalmente em negrito e números */
.example-tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; }
.example-card { transform: none; border-radius: 18px; }
h3 { font-weight: 500; letter-spacing: -0.015em; } /* em corpo pequeno a serifa precisa de um pouco mais de peso para não afinar */
.pm-tab, .btn-secondary { border-width: 1px; }
.ch-l-val, .ch-l-val strong { font-weight: 600; }


/* ===== Detalhamento dos totais dos gráficos (D-146, Desbravador) ===== */
.ch-total-row { display: flex; margin-top: var(--s3); }
.ch-c-value.is-link { cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line); transition: fill 0.18s var(--ease); }
.ch-c-value.is-link:hover { fill: var(--primary); }
.ch-c-value.is-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.dialog-detail { width: min(560px, calc(100% - 32px)); }
.cd-head { align-items: flex-start; }
.cd-head h2 { font-size: 1.6rem; }
.cd-sub { margin: 4px 0 0; font-size: 0.9375rem; }
.cd-x { flex: none; }
.cd-body { display: grid; gap: var(--s3); align-content: start; }
.cd-total { display: grid; gap: 2px; margin: 0; padding: var(--s3) 0 var(--s4); border-bottom: 1px solid var(--line); }
.cd-total-label { font-size: 0.8125rem; color: var(--muted); }
.cd-total strong { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); font-weight: 420; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cd-list > li { border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.cd-row { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 4px; font: inherit; color: var(--ink); }
.cd-row-btn { cursor: pointer; border-radius: 10px; padding-inline: 8px; margin-inline: -8px; width: calc(100% + 16px); transition: background-color 0.18s var(--ease); }
.cd-row-btn:hover { background: var(--paper); }
.cd-row-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.cd-name { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.cd-name small { font-size: 0.8125rem; }
.cd-pct { min-width: 3.5ch; text-align: right; font-size: 0.875rem; }
.cd-val { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.cd-chev { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform 0.2s var(--ease); }
.cd-row-btn[aria-expanded="true"] .cd-chev { transform: rotate(180deg); }
.cd-entries { display: grid; gap: var(--s3); justify-items: start; padding: 2px 0 var(--s4) 22px; }
.cd-ent-list { list-style: none; margin: 0; padding: 0; display: grid; width: 100%; }
.cd-ent-list li { display: grid; grid-template-columns: 4ch minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed color-mix(in srgb, var(--line) 60%, transparent); }
.cd-ent-date { color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.cd-ent-note { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.cd-ent-note small { font-size: 0.8125rem; }
.cd-ent-val { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cd-hint { margin: var(--s3) 0 0; }
@media (max-width: 639px) { .dialog-detail { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 90vh; } }
@media (prefers-reduced-motion: reduce) { .cd-chev, .cd-row-btn, .ch-c-value.is-link { transition: none; } }

/* ===== Revisão visual (D-146): portal do parceiro (/parceiros) no mesmo padrão ===== */
.pt-login-card { text-align: left; padding: clamp(24px, 4vw, 40px); border-color: color-mix(in srgb, var(--line) 75%, transparent); }
.pt-login-form .btn { width: 100%; justify-content: center; } /* botão na largura dos campos */
.pt-kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.pt-card { border-color: color-mix(in srgb, var(--line) 75%, transparent); }
.pt-metric { border-left-width: 2px; }
.pt-login-form, .pt-login-form .field, .pt-login-form .label { text-align: left; justify-items: stretch; }


/* ===== Marca do Prumo no topo de /prumo (D-148): símbolo oficial + logotipo, alinhados à esquerda do conteúdo ===== */
.pm-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--primary); line-height: 1; }
.pm-brand-mark { height: 44px; width: auto; flex: none; overflow: visible; } /* viewBox recortado rente ao desenho: a borda esquerda alinha com o logo do Fôlego e o título */
.pm-brand-word { font-family: var(--font-brand); font-weight: 560; font-size: 2.1rem; letter-spacing: -0.02em; padding-bottom: 2px; }
@media (max-width: 480px) { .pm-brand-mark { height: 36px; } .pm-brand-word { font-size: 1.7rem; } .pm-brand { gap: 10px; } }

/* ===== Marca do Prumo = lockup oficial (marca/svg/prumo-horizontal.svg), centralizado no mesmo eixo do Login (D-149) ===== */
.pm-brand-lockup { display: block; height: 44px; width: auto; overflow: visible; } /* viewBox cortado rente ao desenho: borda esquerda alinha com o logo do Fôlego e o título */
.pm-word { fill: #0E5B49; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pm-word { fill: #F6F3EC; } }
:root[data-theme="dark"] .pm-word { fill: #F6F3EC; }
@media (max-width: 480px) { .pm-brand-lockup { height: 36px; } }

/* Selos do herói no celular: grade de 2 colunas com larguras iguais, em vez de pílulas soltas de larguras diferentes */
@media (max-width: 520px) {
  .pm-hero-copy .chips, .hero .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .pm-hero-copy .chips li, .hero .chips li { border-radius: 14px; padding: 9px 12px 9px 10px; font-size: 0.875rem; line-height: 1.25; }
  .pm-hero-copy .hero-note, .hero .hero-note { margin-bottom: var(--s1); }
}

/* Trocar de tela com o dedo (celular): a animação empurrava o painel para fora da largura da tela e a página inteira
   "pulava" no sentido direita-para-esquerda. O recorte vai até as bordas da tela, então só o conteúdo desliza. */
@media (max-width: 959px) {
  .acc-shell { overflow-x: clip; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .acc-panel.swipe-next, .acc-panel.swipe-prev { will-change: transform, opacity; }
}

/* ===== Selos do herói também no computador (D-150): grade 2x2 de larguras iguais, como no celular; e bloco do usuário do portal do parceiro ===== */
.pm-hero-copy .chips, .hero .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; width: min(100%, 540px); }
.pm-hero-copy .chips li, .hero .chips li { justify-content: flex-start; }
.pt-me { gap: 2px; }
.pt-me > .fine { margin-bottom: var(--s2); }
.pt-exit { min-height: 36px; padding-inline: 14px; border-radius: 999px; font-weight: 600; }
.pm-hero-copy .chips li, .hero .chips li { border-radius: 16px; line-height: 1.25; }


/* D-151: botão Sair do portal do parceiro com a mesma largura/altura dos botões do menu do backoffice */
.pt-me > .pt-exit { justify-self: stretch; width: 100%; justify-content: flex-start; }

