/* GPU BR — sistema visual. Tema escuro por padrão do sistema, com troca manual (data-theme). */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f1f3f6; --surface-3: #e8ebf0; --line: #e1e5eb; --line-strong: #cdd3dc;
  --text: #111520; --text-2: #3a4252; --muted: #626b7c;
  --accent: #0c9a84; --accent-hover: #0a8773; --accent-ink: #ffffff; --accent-soft: rgba(12, 154, 132, .1); --accent-line: rgba(12, 154, 132, .35);
  --warn: #b7700a; --warn-soft: rgba(245, 165, 36, .14); --danger: #d63a40; --danger-soft: rgba(214, 58, 64, .1); --info: #3d6fd6; --info-soft: rgba(61, 111, 214, .1);
  --shadow: 0 1px 2px rgba(16, 22, 35, .05), 0 4px 16px rgba(16, 22, 35, .06); --shadow-lg: 0 12px 40px rgba(16, 22, 35, .16);
  --radius: 14px; --radius-sm: 9px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c11; --surface: #11141b; --surface-2: #171b24; --surface-3: #1f2430; --line: #232835; --line-strong: #323a4a;
    --text: #eceef3; --text-2: #c3c8d3; --muted: #8e97a8;
    --accent: #2fd1b7; --accent-hover: #4fe0c9; --accent-ink: #03211c; --accent-soft: rgba(47, 209, 183, .1); --accent-line: rgba(47, 209, 183, .35);
    --warn: #f5a524; --warn-soft: rgba(245, 165, 36, .12); --danger: #f0555a; --danger-soft: rgba(240, 85, 90, .12); --info: #7aa2ff; --info-soft: rgba(122, 162, 255, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 16px 48px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0c11; --surface: #11141b; --surface-2: #171b24; --surface-3: #1f2430; --line: #232835; --line-strong: #323a4a;
  --text: #eceef3; --text-2: #c3c8d3; --muted: #8e97a8;
  --accent: #2fd1b7; --accent-hover: #4fe0c9; --accent-ink: #03211c; --accent-soft: rgba(47, 209, 183, .1); --accent-line: rgba(47, 209, 183, .35);
  --warn: #f5a524; --warn-soft: rgba(245, 165, 36, .12); --danger: #f0555a; --danger-soft: rgba(240, 85, 90, .12); --info: #7aa2ff; --info-soft: rgba(122, 162, 255, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 16px 48px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 750; letter-spacing: -.025em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; }
h4 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
code, pre, kbd { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; overflow-x: auto; margin: 0; white-space: pre; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; }
#view:focus, #view h1:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }
h3.h4 { font-size: 15px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 12px); }
.row { display: flex; align-items: center; gap: var(--gap, 10px); flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 32px; } .mb { margin-bottom: 16px; }
.err { color: var(--danger); font-size: 13px; }
.ok { color: var(--accent); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px; font: 600 14px/1.2 var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .05s; background: var(--accent); color: var(--accent-ink); }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger-soft); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 16px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Ícones (public/assets/icons.js) ---------- */
/* Os SVG têm width/height em 1em: quem manda no tamanho é o font-size do contêiner. */
svg { display: inline-block; vertical-align: -.125em; flex: none; }
:root {
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-10.5'/%3E%3C/svg%3E");
  --dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3.2' fill='black'/%3E%3C/svg%3E");
}
/* Onde o ícone é o único filho de uma caixa quadrada, centraliza sem o deslocamento de baseline. */
.ico svg, .logo-mark svg, .icon-btn svg, .sub-icon svg, .benefit .ico svg,
.stepper .st i svg, .guide-step .n svg, .setup-step > header .n svg { vertical-align: 0; }
.chev { display: inline-flex; font-size: 15px; margin-left: 2px; opacity: .7; }
/* Nos passos concluídos o número dá lugar ao check: um pouco menor que a caixa. */
.stepper .st i svg, .guide-step .n svg, .setup-step > header .n svg { width: .95em; height: .95em; stroke-width: 2.4; }

/* ---------- Formulários ---------- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 550; color: var(--text-2); }
label.field .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input, select, textarea { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; font: 14px/1.4 var(--font); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 90px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; flex: none; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* Segmentado (períodos, abas pequenas) */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; max-width: 100%; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 13px var(--font); padding: 7px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg button small { font-weight: 600; color: var(--accent); margin-left: 4px; font-size: 11px; }
@media (max-width: 560px) {
  /* 4 períodos (2 horas / diário / semanal / mensal) não cabem em 390px: rola dentro do próprio seletor. */
  .seg { overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { padding: 7px 11px; }
  .seg button small { display: none; }
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: 550 13px var(--font); padding: 7px 13px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text); }

/* ---------- Superfícies ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.pad-sm { padding: 16px; }
.card.flat { background: var(--surface-2); border-color: transparent; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(var(--min, 270px), 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: var(--cols, 1fr 1fr); }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font); padding: 5px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.accent, .pill.active, .pill.ready { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.pill.warn, .pill.provisioning, .pill.recovering, .pill.processing { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.danger, .pill.failed, .pill.error { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.pill.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.provisioning .dot, .pill.recovering .dot { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; background: var(--info-soft); color: var(--text); }
.notice.warn { background: var(--warn-soft); }
.notice.danger { background: var(--danger-soft); }
.notice.ok { background: var(--accent-soft); color: var(--text); }
.notice .ico { flex: none; font-size: 19px; line-height: 1; color: var(--accent); }
.notice.warn .ico { color: var(--warn); }
.notice.danger .ico { color: var(--danger); }

.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 14px; }
.checklist li::before { content: ""; flex: none; width: 1.05em; height: 1.05em; margin-top: .15em; background: currentColor; color: var(--accent);
  -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat; }
.checklist.dim li::before { color: var(--muted); -webkit-mask-image: var(--dot); mask-image: var(--dot); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }

details.acc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
details.acc + details.acc { margin-top: 8px; }
details.acc > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details.acc[open] > summary::after { content: "–"; }
details.acc > .acc-body { padding: 0 16px 16px; color: var(--text-2); }

/* ---------- Cabeçalho ---------- */
.simbar { background: var(--warn-soft); color: var(--text); font-size: 13px; text-align: center; padding: 6px 16px; }
.simbar b { color: var(--warn); }
header.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { white-space: nowrap; display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--text); letter-spacing: -.02em; text-decoration: none !important; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #3b82f6); color: #fff; font-size: 17px; flex: none; }
.mainnav { display: flex; gap: 2px; flex: 1; }
.mainnav > a, .mainnav > .navdrop > button { color: var(--text-2); font: 550 14px var(--font); padding: 8px 12px; border-radius: 9px; background: none; border: 0; cursor: pointer; text-decoration: none; }
.mainnav > a:hover, .mainnav > .navdrop > button:hover { background: var(--surface-2); color: var(--text); }
.mainnav > a.on { color: var(--text); background: var(--surface-2); }
.navdrop { position: relative; }
.mega { position: absolute; top: calc(100% + 8px); left: -10px; width: min(760px, 90vw); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.mega a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.mega a:hover { background: var(--surface-2); }
.mega a .ico, .mega a > span:first-child { font-size: 19px; color: var(--accent); flex: none; margin-top: 1px; }
.mega .ico { font-size: 20px; width: 28px; text-align: center; }
.mega b { font-size: 14px; font-weight: 600; display: block; }
.mega span { font-size: 12.5px; color: var(--muted); }
.mega-col { display: flex; flex-direction: column; gap: 2px; }
.mega-head { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); padding: 6px 12px 8px; }
.mega-head span { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 8px; padding: 12px 8px 2px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.balance-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--font); padding: 7px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent-line); text-decoration: none !important; }
.menu-btn { display: none; }

.mobile-nav { position: fixed; inset: 64px 0 0; z-index: 39; background: var(--bg); padding: 16px 20px 40px; overflow-y: auto; }
.mobile-nav a { display: flex; gap: 12px; align-items: center; padding: 12px 8px; color: var(--text); border-bottom: 1px solid var(--line); text-decoration: none; }
.mobile-nav .label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 8px 4px; }

/* ---------- Páginas públicas ---------- */
main { min-height: 70vh; }
.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 10px; }
.eyebrow { display: inline-block; font: 700 12px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; position: relative; }
.hero .lead { font-size: 19px; color: var(--text-2); margin: 18px 0 28px; max-width: 580px; }
.hero-proof { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.hero-proof span::before { content: ""; width: 1em; height: 1em; margin-right: .1em; vertical-align: -.15em; display: inline-block;
  background: var(--accent); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat; }
.doors { display: grid; gap: 14px; }
.doors > p { margin: 0 0 -4px 4px; }
.door { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
.door:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.door-top { display: flex; gap: 14px; align-items: center; }
.door-top > div { flex: 1; }
.door-top h3 { font-size: 19px; }
.door-top p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.door-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; flex: none; color: #fff; background: linear-gradient(135deg, var(--accent), #3b82f6); }
.door-go { font-size: 20px; color: var(--muted); }
.door:hover .door-go { color: var(--accent); }
.door-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.door-tags span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.door-from { margin-top: 12px; font-size: 13px; color: var(--text-2); }
.door-from b { color: var(--text); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proof.wide { grid-column: 1 / -1; }
.proof-grid.two { grid-template-columns: repeat(2, 1fr); }
.proof-grid.one { grid-template-columns: minmax(0, 560px); }
.spec-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin: 28px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-strip > div { background: var(--surface); padding: 14px 16px; }
.spec-strip dt { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.spec-strip dd { margin: 4px 0 0; font-weight: 650; font-size: 15px; }
.spec-strip .spec-link { display: flex; align-items: center; font-size: 14px; font-weight: 600; white-space: nowrap; }
.team-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 40px; align-items: center; }
.team-card > .row { grid-column: 1 / -1; }
.price-doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.price-door { text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; display: grid; gap: 2px; }
.price-door span { font-size: 13px; color: var(--muted); }
.price-door:hover { border-color: var(--accent-line); }
.price-door.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc-opt { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; align-content: start; }
.calc-opt.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.calc-opt h3 { font-size: 17px; }
.calc input[type=range] { width: 100%; accent-color: var(--accent); margin-top: 10px; }
.proof.wide .proof-img { aspect-ratio: auto; }
.proof { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.proof-img { aspect-ratio: 16 / 9; overflow: hidden; background: #0f1115; border-bottom: 1px solid var(--line); }
.proof-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.proof-img.contain { display: grid; place-items: center; background: #121317; padding: 22px 18px; }
.proof-img.contain img { height: auto; object-fit: contain; }
.proof figcaption { padding: 14px 16px 16px; display: grid; gap: 4px; }
.proof figcaption b { font-size: 15px; }
.proof figcaption span { font-size: 14px; color: var(--muted); }
.quickpick { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); }
.quickpick h3 { margin-bottom: 4px; }
.quickpick .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

.goal-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s, box-shadow .15s; cursor: pointer; text-align: left; font: inherit; }
.goal-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow); }
.goal-card .ico { font-size: 24px; color: var(--accent); }
.goal-card h3 { font-size: 16px; }
.goal-card p { color: var(--muted); font-size: 14px; flex: 1; }
.goal-card .from { font-size: 13px; color: var(--text-2); }
.goal-card .from b { color: var(--text); }
.goal-card.sm { padding: 12px 14px; flex-direction: row; align-items: center; gap: 10px; }
.goal-card.sm .ico { font-size: 19px; color: var(--accent); }
.goal-card.sm b { font-size: 14px; font-weight: 600; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps3 > div { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps3 > div::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.steps3 p { color: var(--muted); font-size: 14px; margin-top: 6px; }

.benefit { display: flex; gap: 14px; }
.benefit .ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 21px; }
.benefit p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.cta-band { background: linear-gradient(135deg, var(--accent-soft), var(--info-soft)); border: 1px solid var(--line); border-radius: 22px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Cartão de plano */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.plan.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .ribbon { position: absolute; top: -11px; left: 20px; background: var(--accent); color: var(--accent-ink); font: 700 11px var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 99px; }
.plan .tier { font: 700 12px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.plan h3 { font-size: 19px; margin-top: 2px; }
.plan .tagline { color: var(--muted); font-size: 14px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-size: 32px; font-weight: 750; letter-spacing: -.02em; }
.price span { color: var(--muted); font-size: 14px; }
.price-note { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.price-note .save { color: var(--accent); font-weight: 600; }
.plan .specs { display: flex; gap: 6px; flex-wrap: wrap; }
.plan .bestfor { font-size: 13px; background: var(--surface-2); border-radius: 9px; padding: 8px 10px; color: var(--text-2); }
.plan .checklist { flex: 1; }
.plan.compact { gap: 10px; padding: 18px; }
.plan.compact .price b { font-size: 24px; }

.compare th:first-child, .compare td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 150px; color: var(--muted); font-weight: 550; }
.compare th:first-child { background: var(--surface-2); }
.compare td { min-width: 160px; }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .no { color: var(--line-strong); }

.addon-card { display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.addon-card .ico { font-size: 23px; color: var(--accent); }
.addon-card p { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }

/* ---------- Assistente ---------- */
.wizard { max-width: 760px; margin: 0 auto; padding: 48px 0 80px; }
.progress { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.progress.busy > i { width: 35%; animation: progress-busy 1.4s ease-in-out infinite; }
@keyframes progress-busy { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .progress.busy > i { animation: none; width: 100%; opacity: .5; } }

/* Estúdio: resultados e galeria do que o cliente gerou */
.media-grid { display: grid; gap: 10px; }
.media-grid.multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-item { display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; }
.media-item img, .media-item video { width: 100%; height: auto; border-radius: 10px; background: var(--surface-2); display: block; }
.media-item audio { width: 100%; }
.media-img { display: block; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery .media-item { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.gallery .media-item img, .gallery .media-item video { aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wizard .q { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin: 28px 0 8px; letter-spacing: -.015em; }
.options { display: grid; gap: 10px; margin-top: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.option { display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font: inherit; color: var(--text); transition: border-color .12s, background .12s; }
.option:hover { border-color: var(--accent-line); }
.option.on { border-color: var(--accent); background: var(--accent-soft); }
.option .ico { font-size: 23px; color: var(--accent); }
.option b { display: block; font-weight: 600; }
.option span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.answers { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.result { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 28px; align-items: start; }
.why li { font-size: 14.5px; }
.total-box { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.total-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; color: var(--text-2); }
.total-line.sum { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 16px; font-weight: 700; color: var(--text); }

/* ---------- Modal, toast, ajuda ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(5, 8, 14, .55); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: fade .15s; }
.modal { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); animation: rise .18s; }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg); animation: rise .2s; max-width: 90vw; }
.toast.error { background: var(--danger); color: #fff; }

.help-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; height: 46px; padding: 0 18px; border-radius: 99px; border: 0; background: var(--text); color: var(--bg); font: 650 14px var(--font); box-shadow: var(--shadow-lg); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 85; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s; }
.drawer-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }

/* ---------- Área do cliente ---------- */
.app-shell { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding: 32px 0 80px; align-items: start; }
/* Itens de grid não encolhem abaixo do conteúdo sem isso (menu lateral em linha, código, tabelas). */
.app-shell > *, .grid-2 > *, .grid > *, .plans > *, .result > * { min-width: 0; }
.sidenav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; font-size: 14px; text-decoration: none; }
.sidenav a:hover { background: var(--surface-2); color: var(--text); }
.sidenav a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--line); }
.sidenav .sep { height: 1px; background: var(--line); margin: 10px 4px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 28px; }
.page-head p { color: var(--muted); margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.stat .value { font-size: 26px; font-weight: 750; margin-top: 4px; letter-spacing: -.02em; }
.stat .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.sub-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.sub-card + .sub-card { margin-top: 10px; }
.sub-card:hover { border-color: var(--line-strong); }
.sub-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); color: var(--accent); }
.sub-card h3 { font-size: 16px; }
.sub-card .meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.timebar { height: 4px; border-radius: 99px; background: var(--surface-3); margin-top: 10px; overflow: hidden; max-width: 320px; }
.timebar > i { display: block; height: 100%; background: var(--accent); }

.sub-hero { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 20px; }
.sub-hero .top { display: flex; gap: 16px; align-items: flex-start; }
.sub-hero h1 { font-size: 24px; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; }
.facts div span { display: block; color: var(--muted); font-size: 12px; }
.facts div b { font-weight: 600; }

.stepper { display: flex; gap: 0; margin: 20px 0 6px; }
.stepper .st { flex: 1; position: relative; padding-top: 30px; font-size: 12.5px; color: var(--muted); text-align: center; }
.stepper .st::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.stepper .st:first-child::before { display: none; }
.stepper .st i { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--surface); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; z-index: 1; }
.stepper .st.done { color: var(--text-2); }
.stepper .st.done i { background: var(--accent); color: var(--accent-ink); }
.stepper .st.done::before, .stepper .st.now::before { background: var(--accent); }
.stepper .st.now { color: var(--text); font-weight: 600; }
.stepper .st.now i { background: var(--warn); color: #221400; animation: pulse 1.2s infinite; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-color: var(--accent); }
.tabs a .count { font-size: 11px; background: var(--surface-3); padding: 1px 6px; border-radius: 99px; margin-left: 4px; }

.launch { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.launch a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.launch a:hover { border-color: var(--accent-line); }
.launch a.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.launch a.primary span { color: inherit; opacity: .8; }
.launch a b { font-weight: 650; }
.launch a span { font-size: 12.5px; color: var(--muted); }

.guide { counter-reset: g; display: flex; flex-direction: column; gap: 8px; }
.guide-step { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.guide-step:hover { border-color: var(--line-strong); }
.guide-step .n { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.guide-step.done .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.guide-step.done b { text-decoration: line-through; color: var(--muted); }
.guide-step p { font-size: 14px; color: var(--muted); margin-top: 2px; }

.key-new { border: 1.5px dashed var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 14px; }
.copyfield { display: flex; gap: 8px; align-items: center; }
.copyfield code { flex: 1; padding: 8px 10px; background: var(--surface-2); overflow-x: auto; white-space: nowrap; word-break: normal; }
.dropzone { border: 2px dashed var(--line-strong); border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; background: var(--surface-2); transition: border-color .15s, background .15s; }
.dropzone.over, .dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.setup-step { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.setup-step + .setup-step { margin-top: 12px; }
.setup-step > header { display: flex; gap: 12px; align-items: center; padding: 16px 18px; }
.setup-step > header .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-weight: 700; font-size: 13px; flex: none; }
.setup-step.done > header .n { background: var(--accent); color: var(--accent-ink); }
.setup-step > .body { padding: 0 18px 18px 58px; }
.bubble { border-radius: 12px; padding: 8px 12px; margin: 4px 0; font-size: 13.5px; white-space: pre-wrap; max-width: 85%; background: var(--surface-2); }
.bubble.bot { background: var(--accent-soft); margin-left: auto; }
.bubble.sistema { background: var(--warn-soft); margin-left: auto; }

.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 18px; }
.empty .ico { font-size: 38px; color: var(--muted); }
.empty h3 { margin: 10px 0 6px; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 18px; }

.auth-wrap { max-width: 440px; margin: 56px auto 80px; }
.pix { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.pix img { width: 190px; height: 190px; background: #fff; border-radius: 12px; padding: 6px; }

footer.foot { border-top: 1px solid var(--line); padding: 40px 0 90px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 24px; }
.foot-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }

.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 6px; }
.legal h2 { font-size: 19px; margin: 30px 0 10px; }
.legal p, .legal li { line-height: 1.7; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal a { text-decoration: underline; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.legal-nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.legal-nav a.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.foot-grid h4 { color: var(--text); margin-bottom: 10px; font-size: 13px; }
.foot-grid a { display: block; color: var(--muted); padding: 3px 0; }

.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; min-height: 120px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  .mainnav { display: none; }
  .menu-btn { display: inline-grid; }
  .hero-grid, .result { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .sidenav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .sidenav .sep { display: none; }
  .sidenav a { white-space: nowrap; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .hero { padding: 40px 0 32px; }
  .steps3, .grid-2 { grid-template-columns: 1fr; }
  .topbar { gap: 10px; }
  .logo { font-size: 16px; }
  .balance-chip { padding: 6px 10px; }
  .quickpick .opts { grid-template-columns: 1fr; }
  .proof-grid, .proof-grid.two, .proof-grid.one { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .spec-strip .spec-link { grid-column: 1 / -1; }
  .team-card, .price-doors, .calc-grid { grid-template-columns: 1fr; }
  .sub-card { grid-template-columns: auto 1fr; }
  .sub-card > :last-child { grid-column: 1 / -1; }
  .hide-sm { display: none !important; }
  .cta-band { padding: 26px; }
  .stepper .st { font-size: 0; }
  .setup-step > .body { padding-left: 18px; }
  .help-fab span { display: none; }
  .help-fab { width: 46px; padding: 0; justify-content: center; }
}

/* Aba Máquina: soltar arquivos na lista para enviar */
.dropzone-lite { border: 1px dashed transparent; border-radius: 12px; transition: border-color .15s, background .15s; }
.dropzone-lite.over { border-color: var(--accent); background: var(--accent-soft); }

/* Aviso de cookies */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 560px; margin: 0 auto; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.cookie-bar p { margin: 0; flex: 1 1 260px; }
