/* Vintermed — grafite profundo com metais da marca (ouro e prata).
   Layout: navegação fixa no topo, páginas em coluna única de até 1180px, painel com menu lateral que vira abas no celular. */
:root {
  --bg: #0b0b0d;
  --surface: #131317;
  --surface-2: #1a1a20;
  --line: #2a2a32;
  --line-soft: #1f1f26;
  --fg: #ecebe6;
  --muted: #a6a4ab;
  --faint: #7d7b84;
  --gold: #d2ae62;
  --gold-hi: #ead08e;
  --gold-ink: #17120a;
  --silver: #c4c4cb;
  --ok: #5dbb8a;
  --warn: #e0a44a;
  --bad: #ec7b66;
  --info: #7fa7e6;

  --f-display: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --f-body: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fg); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 300; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 500; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--gold-ink); }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.eyebrow { font: 500 .74rem/1 var(--f-display); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .86em; }
.num { font-variant-numeric: tabular-nums; }
.gold { color: var(--gold-hi); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: 0; }

/* ---------- Topo ---------- */
.demo-bar { background: #2a2210; color: var(--gold-hi); font-size: .82rem; text-align: center; padding: 8px var(--gut); border-bottom: 1px solid #3d3218; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(11,11,13,.86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line-soft); }
.topbar-in { max-width: var(--wrap); margin-inline: auto; padding: 12px var(--gut); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 44px; height: 22px; }
.wordmark { font: 400 1.05rem/1 var(--f-display); letter-spacing: .28em; color: var(--silver); }
.wordmark b { font-weight: 400; color: var(--gold); }
.mainnav { display: flex; gap: 2px; margin-inline: auto; }
.mainnav a { color: var(--muted); text-decoration: none; font-size: .9rem; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.mainnav a:hover { color: var(--fg); background: var(--surface-2); }
.mainnav a[aria-current="page"] { color: var(--gold-hi); background: var(--surface-2); }
.top-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.lang { display: inline-flex; flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { white-space: nowrap; background: none; border: 0; color: var(--muted); font: 600 .74rem/1 var(--f-body); letter-spacing: .04em; padding: 9px 10px; cursor: pointer; }
.lang button + button { border-left: 1px solid var(--line); }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--fg); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: var(--r-sm); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .topbar-in { gap: 10px; }
  .top-actions { margin-left: auto; }
  .mainnav { position: fixed; inset: calc(env(safe-area-inset-top, 0px) + 69px) 0 auto 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
  .mainnav.open { opacity: 1; transform: none; pointer-events: auto; }
  .mainnav a { padding: 14px 12px; font-size: 1rem; border-radius: var(--r-sm); }
  .wordmark { font-size: .92rem; letter-spacing: .22em; }
}
@media (max-width: 420px) { .wordmark { display: none; } .top-actions .btn-ghost { display: none; } .lang button { padding: 8px 7px; font-size: .7rem; } }
@media (max-width: 980px) { .lang { margin-left: auto; } .lang + .top-actions { margin-left: 0; } }

/* ---------- Botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 600 .92rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hi); color: var(--gold-ink); }
.btn-line { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--fg); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .84rem; }
.btn-danger { background: transparent; color: var(--bad); border-color: #4a2a25; }
.btn-danger:hover { border-color: var(--bad); color: var(--bad); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: .84rem; font-weight: 600; color: var(--fg); }
.field .hint { font-size: .78rem; color: var(--faint); }
.input, .select, .textarea { width: 100%; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font: 400 .95rem/1.4 var(--f-body); transition: border-color .2s, background .2s; min-height: 46px; }
.textarea { min-height: 120px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #3a3a44; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); background: #1d1c22; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.err { color: var(--bad); font-size: .8rem; min-height: 1em; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); width: 44px; height: 40px; cursor: pointer; border-radius: var(--r-sm); }
.pw-toggle:hover { color: var(--fg); }
.meter { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .25s var(--ease), background .25s; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .88rem; transition: all .2s; }
.chip input:checked + span { border-color: var(--gold); color: var(--gold-hi); background: rgba(210,174,98,.08); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

/* ---------- Seções ---------- */
main { display: block; min-height: 60vh; outline: none; }
.page { animation: pageIn .45s var(--ease) both; }
@keyframes pageIn { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }
.pagehead { padding-block: clamp(48px, 7vw, 88px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line-soft); }
.pagehead .wrap { display: flex; flex-direction: column; gap: 16px; }

.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); min-width: 0; }
.panel-flat { background: var(--surface); border-radius: var(--r); padding: 20px; min-width: 0; }

/* Herói */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; max-width: 900px; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(210,174,98,.10), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; }
.hero h1 b { font-weight: 400; color: var(--gold-hi); }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.pillars { display: flex; flex-wrap: wrap; gap: 10px 18px; font: 400 .76rem/1 var(--f-display); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); align-items: center; }
.pillars i { width: 1px; height: 14px; background: var(--gold); opacity: .6; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: center; display: grid; place-items: center; }
.hero-art .ring { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%; }
.hero-art .ring.r2 { inset: 14%; border-color: var(--line-soft); }
.hero-art .ring.r3 { inset: 28%; border-style: dashed; border-color: #2f2b22; animation: spin 60s linear infinite; }
.hero-art .mark { width: 62%; position: relative; filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
.hero-art .node { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.hero-art .node b { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero-art .n1 { top: 8%; left: -2%; }
.hero-art .n2 { top: 46%; right: -6%; }
.hero-art .n2 b { background: var(--silver); }
.hero-art .n3 { bottom: 6%; left: 8%; }
.hero-art .n3 b { background: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-art { max-width: 320px; } }

/* Passos */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line-soft); }
.step .n { font: 300 2.6rem/1 var(--f-display); color: var(--gold); }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } .step, .step + .step { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-soft); } }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }
.side-card { display: flex; flex-direction: column; gap: 16px; }
.side-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.side-card li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.side-card li svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag-gold { color: var(--gold-hi); border-color: #4a3c1d; background: rgba(210,174,98,.07); }
.tag-ok { color: var(--ok); border-color: #224a36; background: rgba(93,187,138,.07); }
.tag-warn { color: var(--warn); border-color: #4d3a1a; background: rgba(224,164,74,.07); }
.tag-bad { color: var(--bad); border-color: #4d2a24; background: rgba(236,123,102,.07); }
.tag-info { color: var(--info); border-color: #24344d; background: rgba(127,167,230,.07); }

.cta-band { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: linear-gradient(120deg, #15130e, var(--surface) 55%); }
.cta-band h2 { max-width: 20ch; }

/* Planos */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 20px; position: relative; }
.plan.featured { border-color: #5a4a26; background: linear-gradient(180deg, #19160f, var(--surface) 40%); }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .price strong { font: 300 2.8rem/1 var(--f-display); color: var(--fg); }
.plan .price span { color: var(--muted); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--muted); font-size: .92rem; }
.plan li svg { color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.plan .badge { position: absolute; top: -12px; left: 24px; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 300 1.5rem/1 var(--f-display); color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 70ch; }

/* Fluxo do dinheiro */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: f; }
.flow-step { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.flow-step .who { font: 500 .72rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.flow-step p { color: var(--muted); font-size: .92rem; }
.flow-step.vault { border-color: #5a4a26; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 50%; width: 12px; height: 1px; background: var(--gold); }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow-step:not(:last-child)::after { right: auto; left: 32px; top: auto; bottom: -12px; width: 1px; height: 12px; } }

.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: center; }
.calc-out { display: grid; gap: 2px; border-radius: var(--r); overflow: hidden; }
.calc-out div { background: var(--surface-2); padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.calc-out strong { font: 400 1.4rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.calc-out .total strong { color: var(--gold-hi); }
input[type="range"] { width: 100%; accent-color: var(--gold); height: 32px; }
@media (max-width: 760px) { .calc { grid-template-columns: minmax(0, 1fr); } }

.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.tool { background: var(--bg); padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: background .25s; }
.tool:hover { background: var(--surface); }
.tool svg { color: var(--gold); }
.tool p { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tools { grid-template-columns: minmax(0, 1fr); } }

/* Sobre */
.mvv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mvv .panel { display: flex; flex-direction: column; gap: 12px; }
.mvv p { color: var(--muted); font-size: 1.05rem; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.value { border-top: 1px solid var(--gold); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.value p { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .mvv { grid-template-columns: minmax(0, 1fr); } }

/* Contato */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 2px; border-radius: var(--r); overflow: hidden; }
.info-item { background: var(--surface); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.info-item .k { font-size: .76rem; color: var(--faint); text-transform: uppercase; letter-spacing: .14em; }
.info-item .v { font-weight: 600; word-break: break-word; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* Assistente de orçamento */
.wizard { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 24px; }
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.progress div { display: flex; flex-direction: column; gap: 8px; font-size: .78rem; color: var(--faint); }
.progress div::before { content: ""; height: 3px; border-radius: 3px; background: var(--line); transition: background .3s; }
.progress div.done { color: var(--muted); }
.progress div.done::before, .progress div.now::before { background: var(--gold); }
.progress div.now { color: var(--gold-hi); }
.review { display: grid; gap: 2px; border-radius: var(--r); overflow: hidden; }
.review div { background: var(--surface-2); padding: 12px 16px; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; font-size: .92rem; }
.review dt, .review .k { color: var(--faint); }
@media (max-width: 520px) { .review div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.success { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; padding-block: 24px; }
.success .seal { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); }

/* Avaliações */
.criteria { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .criteria { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { cursor: pointer; color: var(--line); width: 36px; height: 36px; display: grid; place-items: center; transition: color .15s, transform .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--gold); }
.stars input:focus-visible + label { outline: 2px solid var(--gold-hi); border-radius: 6px; }
.rating-row { display: flex; flex-direction: column; gap: 4px; }
.review-card { display: flex; flex-direction: column; gap: 10px; }
.review-card .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--faint); font-size: .82rem; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.starline { color: var(--gold); letter-spacing: 2px; }

.empty { border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 36px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty svg { color: var(--faint); }

/* ---------- Autenticação ---------- */
.auth { min-height: calc(100vh - 140px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { padding: clamp(32px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 24px; border-right: 1px solid var(--line-soft); background: radial-gradient(ellipse at 20% 30%, rgba(210,174,98,.08), transparent 60%); }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-side li { display: flex; gap: 12px; color: var(--muted); align-items: flex-start; }
.auth-side li svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.auth-main { padding: clamp(32px, 6vw, 80px) var(--gut); display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.otp { font: 500 1.6rem/1 var(--f-mono); letter-spacing: .5em; text-align: center; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.segmented .chip span { width: 100%; justify-content: center; font-size: .82rem; padding: 0 8px; text-align: center; }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } }

/* ---------- Painel ---------- */
.dash { display: flex; flex-wrap: wrap; gap: 0; max-width: 1360px; margin-inline: auto; }
.dash-nav { flex: 1 1 220px; max-width: 250px; padding: 28px 16px 28px var(--gut); border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-size: .92rem; min-height: 44px; }
.dash-nav a:hover { background: var(--surface); color: var(--fg); }
.dash-nav a[aria-current="page"] { background: var(--surface-2); color: var(--gold-hi); }
.dash-nav a svg { flex-shrink: 0; }
.dash-nav .who { padding: 4px 12px 18px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line-soft); margin-bottom: 10px; }
.dash-nav .who strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-main { flex: 999 1 560px; min-width: 0; padding: 28px var(--gut) 64px; display: flex; flex-direction: column; gap: 24px; }
.dash-title { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.dash-title h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
@media (max-width: 860px) {
  .dash-nav { flex: 1 1 100%; max-width: none; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 10px var(--gut); gap: 4px; scrollbar-width: none; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav .who { display: none; }
  .dash-nav a { white-space: nowrap; flex-shrink: 0; padding: 8px 12px; }
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stat .k { font-size: .78rem; color: var(--faint); }
.stat .v { font: 300 1.8rem/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-radius: var(--r); overflow: hidden; }
.checklist li { background: var(--surface); padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.checklist .l { display: flex; gap: 12px; align-items: center; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.dot.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

.lock { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; border: 1px solid #4a3c1d; background: rgba(210,174,98,.05); border-radius: var(--r-lg); padding: 24px; }

/* Kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.col { background: var(--surface); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; scroll-snap-align: start; transition: background .2s, outline-color .2s; outline: 1px dashed transparent; }
.col.over { outline-color: var(--gold); background: #17161a; }
.col-h { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; font-weight: 600; padding: 4px 4px 6px; }
.col-h .count { color: var(--faint); font-weight: 500; }
.card { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; cursor: grab; transition: border-color .2s, transform .15s; }
.card:hover { border-color: var(--line); }
.card.dragging { opacity: .5; transform: scale(.98); }
.card h4 { font-family: var(--f-body); font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .78rem; color: var(--faint); }
.card .select { min-height: 34px; padding: 4px 8px; font-size: .78rem; }

.table-box { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.hash { font-family: var(--f-mono); font-size: .76rem; color: var(--silver); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; overflow-wrap: anywhere; }

/* Chat */
.chat { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; min-height: 460px; }
.threads { border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; background: var(--surface); }
.threads button { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--fg); padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; min-height: 56px; }
.threads button[aria-current="true"] { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--gold); }
.threads small { color: var(--faint); }
.convo { display: flex; flex-direction: column; min-width: 0; }
.msgs { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 420px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-size: .92rem; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: #2a2414; color: var(--fg); border-bottom-right-radius: 4px; }
.msg small { display: block; color: var(--faint); font-size: .7rem; margin-top: 4px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); }
.composer .input { flex: 1; }
@media (max-width: 760px) { .chat { grid-template-columns: minmax(0, 1fr); } .threads { border-right: 0; border-bottom: 1px solid var(--line-soft); flex-direction: row; overflow-x: auto; } .threads button { border-bottom: 0; border-right: 1px solid var(--line-soft); flex-shrink: 0; } }

.drop { border: 1.5px dashed var(--line); border-radius: var(--r-lg); padding: 32px 20px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; color: var(--muted); transition: border-color .2s, background .2s; position: relative; }
.drop.over { border-color: var(--gold); background: rgba(210,174,98,.04); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }

.qr { background: #fff; padding: 12px; border-radius: var(--r); width: 200px; max-width: 100%; }
.secret { font-family: var(--f-mono); letter-spacing: .12em; font-size: .9rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; overflow-wrap: anywhere; }

.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.member { display: flex; flex-direction: column; gap: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font: 500 1rem/1 var(--f-display); color: var(--gold-hi); flex-shrink: 0; }

/* ---------- Rodapé, avisos, modal ---------- */
.footer { border-top: 1px solid var(--line-soft); margin-top: 40px; }
.footer-in { max-width: var(--wrap); margin-inline: auto; padding: 40px var(--gut) calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer h4 { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer nav a:hover { color: var(--gold-hi); }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); padding-top: 20px; color: var(--faint); font-size: .8rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .footer-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-in > :first-child { grid-column: 1 / -1; } }

.toasts { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); color: var(--fg); padding: 12px 16px; border-radius: var(--r-sm); font-size: .9rem; box-shadow: 0 12px 32px rgba(0,0,0,.5); animation: toastIn .3s var(--ease); pointer-events: auto; }
.toast.bad { border-left-color: var(--bad); }
.toast.ok { border-left-color: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal-back { position: fixed; inset: 0; background: rgba(5,5,7,.72); backdrop-filter: blur(4px); z-index: 70; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
@keyframes fade { from { opacity: 0; } }

.reveal { animation: rise .6s var(--ease) both; animation-delay: var(--d, 0s); }
.d1 { --d: .08s; } .d2 { --d: .16s; } .d3 { --d: .24s; }
@keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Painéis de API */
.chart { display: flex; flex-direction: column; gap: 10px; }
.chart-plot { position: relative; }
.chart-plot svg { width: 100%; height: auto; display: block; touch-action: pan-y; font-family: var(--f-body); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); }
.legend span, .tip span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.tip { position: absolute; top: 8px; left: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: .8rem; display: flex; flex-direction: column; gap: 4px; pointer-events: none; box-shadow: 0 10px 24px rgba(0,0,0,.45); min-width: 140px; z-index: 2; }
.tip b { color: var(--fg); margin-left: auto; padding-left: 10px; font-weight: 600; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: .86rem; }
.hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.ht { height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.ht i { display: block; height: 100%; background: #b38a36; border-radius: 0 4px 4px 0; }
.hv { text-align: right; }
.up { color: var(--ok); } .down { color: var(--bad); }
@media (max-width: 520px) { .hbar { grid-template-columns: minmax(0, 100px) minmax(0, 1fr) 40px; } }
