/* Layout: igual ao site do Dynamic Island. Abre com o designer "vivo" numa janela do Windows;
   depois, faixas de texto em coluna estreita alternando com miniaturas do próprio produto.
   A janela do ReportForge tem as cores reais do app e não muda com o tema; o resto da página segue o tema. */
:root {
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --fg: #121826;
  --muted: #586174;
  --line: #DCE1EA;
  --accent: #2858C8;          /* azul da aba ativa do designer */
  --accent-ink: #FFFFFF;
  --accent-soft: #E2EAFB;
  --code-bg: #E9EDF4;
  /* produto: iguais nos dois temas */
  --app-navy: #1E3460;
  --app-navy-2: #2E4678;
  --app-chrome: #EEF1F7;
  --app-panel: #F8F9FC;
  --app-line: #D2D8E2;
  --app-text: #242E3E;
  --app-dim: #828EA2;
  --app-sel: #3C82F6;
  --app-paper: #FFFFFF;
  --app-hot: #D92D20;
  --app-band: #E4ECFA;
  --font-display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Cascadia Mono", monospace;
  --radius: 14px;
  --measure: 66ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0E14; --surface: #141924; --fg: #E8ECF3; --muted: #98A2B5; --line: #252D3B;
    --accent: #7EA6FF; --accent-ink: #0A1530; --accent-soft: #16223D; --code-bg: #1A2030;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0E14; --surface: #141924; --fg: #E8ECF3; --muted: #98A2B5; --line: #252D3B;
  --accent: #7EA6FF; --accent-ink: #0A1530; --accent-soft: #16223D; --code-bg: #1A2030;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
code, kbd { font-family: var(--font-mono); font-size: .86em; }
code { background: var(--code-bg); padding: .12em .4em; border-radius: 6px; word-break: break-word; }
kbd { display: inline-block; min-width: 1.9em; text-align: center; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .1em .45em; background: var(--surface); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: var(--measure); }
section { padding-block: clamp(56px, 9vw, 104px); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; align-content: start; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 600 .98rem var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s, border-color .15s, filter .15s; }
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Topo */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 750; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 26px; height: 30px; border-radius: 4px; background: var(--app-paper); box-shadow: inset 0 0 0 1.5px var(--app-navy); position: relative; overflow: hidden; }
.brand-mark::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--app-navy); }
.brand-mark::after { content: ""; position: absolute; left: 5px; right: 5px; top: 12px; height: 12px; background: repeating-linear-gradient(to bottom, var(--app-sel) 0 2px, transparent 2px 5px); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .93rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--fg); }

/* Abertura */
.hero { padding-block: clamp(40px, 7vw, 80px) 0; }
.hero-text { display: grid; gap: 20px; justify-items: start; max-width: 820px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); }
.trust span::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }
.status-note { font-size: .86rem; color: var(--muted); padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; }

.screen { margin-top: 44px; padding: clamp(14px, 3vw, 34px) clamp(10px, 3vw, 34px) 18px; border-radius: 22px 22px 0 0; background: linear-gradient(160deg, #1C2B4C, #2B3F6A 55%, #213459); position: relative; overflow: hidden; }
.screen::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); }
.stage { width: 100%; position: relative; }
.stage-inner { width: 960px; height: 560px; transform-origin: top left; }
.screen-caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.state-btn { font: 600 .84rem var(--font-body); padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #E8EEFA; cursor: pointer; }
.state-btn[aria-pressed="true"] { background: #fff; color: var(--app-navy); border-color: #fff; }

/* ===== Janela do ReportForge (cores do app real) ===== */
.win { width: 960px; height: 560px; border-radius: 10px; overflow: hidden; background: var(--app-chrome); color: var(--app-text); font: 12px/1.35 "Segoe UI", var(--font-body); box-shadow: 0 30px 80px rgba(5,12,30,.5), 0 0 0 1px rgba(255,255,255,.08); display: grid; grid-template-rows: 30px 32px 74px 1fr 24px; }
.win-title { display: flex; align-items: center; gap: 10px; padding: 0 0 0 12px; background: #fff; border-bottom: 1px solid var(--app-line); }
.win-title .doc { color: var(--app-dim); }
.win-title .ctl { margin-left: auto; display: flex; height: 100%; }
.win-title .ctl i { width: 44px; display: grid; place-items: center; font-style: normal; color: var(--app-dim); }
.strip { display: flex; align-items: stretch; background: var(--app-navy); padding-left: 10px; }
.strip b { color: #fff; font-size: 11px; letter-spacing: .14em; display: flex; align-items: center; padding-right: 18px; font-weight: 700; }
.strip span { display: flex; align-items: center; padding: 0 16px; color: #C3D2EB; font-weight: 600; }
.strip span.on { background: var(--app-chrome); color: #1E2838; border-radius: 6px 6px 0 0; margin-top: 4px; }
.ribbon { display: flex; gap: 0; background: var(--app-chrome); border-bottom: 1px solid var(--app-line); padding: 6px 8px; }
.rg { display: grid; grid-template-rows: 1fr auto; padding: 0 10px; border-right: 1px solid #DAE0EA; }
.rg .items { display: flex; gap: 4px; align-items: start; }
.rg .t { font-size: 9.5px; letter-spacing: .1em; color: var(--app-dim); text-align: center; }
.rb { width: 40px; height: 44px; display: grid; justify-items: center; align-content: center; gap: 2px; border-radius: 5px; font-size: 9.5px; color: var(--app-text); }
.rb.on { background: #DAE6F8; box-shadow: inset 0 0 0 1px #AFC8F0; }
.rb svg { width: 20px; height: 20px; }
.rb.sm { width: 28px; height: 28px; }
.wm { width: 150px; height: 24px; border: 1px solid var(--app-line); border-radius: 4px; background: #fff; color: var(--app-dim); font-size: 11px; padding: 3px 6px; margin-top: 6px; }
.body { display: grid; grid-template-columns: 180px 1fr; min-height: 0; }
.side { background: var(--app-panel); border-right: 1px solid var(--app-line); padding: 10px; display: grid; gap: 10px; align-content: start; }
.side .search { border: 1px solid var(--app-line); background: #fff; border-radius: 4px; padding: 4px 7px; color: var(--app-dim); }
.side .h { font-size: 9.5px; letter-spacing: .1em; color: var(--app-dim); font-weight: 700; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.side li { padding: 3px 6px; border-radius: 4px; display: flex; gap: 6px; align-items: center; }
.side li.on { background: #DAE6F8; }
.side li i { width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid var(--app-dim); flex: none; }
.side .param { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.side .param span { border: 1px solid var(--app-line); background: #fff; border-radius: 3px; padding: 2px 5px; font-family: var(--font-mono); font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.canvas { position: relative; overflow: hidden; background: #DDE2EB; }
.ruler-x { position: absolute; left: 22px; right: 0; top: 0; height: 18px; background: #F4F6FA; border-bottom: 1px solid var(--app-line); background-image: repeating-linear-gradient(90deg, #B9C2D0 0 1px, transparent 1px 10px); background-size: 100% 5px; background-repeat: repeat-x; background-position: bottom; }
.ruler-y { position: absolute; left: 0; top: 18px; bottom: 0; width: 22px; background: #F4F6FA; border-right: 1px solid var(--app-line); background-image: repeating-linear-gradient(180deg, #B9C2D0 0 1px, transparent 1px 10px); background-size: 5px 100%; background-repeat: repeat-y; background-position: right; }
.view { position: absolute; inset: 18px 0 0 22px; padding: 16px 0 0 34px; opacity: 0; visibility: hidden; transition: opacity .35s; }
.win[data-state="designer"] .v-designer,
.win[data-state="sql"] .v-sql,
.win[data-state="preview"] .v-preview,
.win[data-state="highlight"] .v-preview,
.win[data-state="export"] .v-preview { opacity: 1; visibility: visible; }
.paper { width: 560px; background: var(--app-paper); box-shadow: 0 6px 18px rgba(20,30,50,.18); position: relative; }
/* Designer: bandas */
.band { position: relative; border-bottom: 1px dashed #B8C6DE; }
.band .bl { position: absolute; left: -34px; top: 0; bottom: 0; width: 30px; display: flex; align-items: center; justify-content: center; }
.band .bl span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 8.5px; color: #5D6E8C; letter-spacing: .04em; white-space: nowrap; }
.band .bh { background: var(--app-band); color: #3D5683; font-size: 9.5px; padding: 1px 6px; font-weight: 600; }
.band .bc { position: relative; padding: 6px 12px; display: flex; gap: 10px; align-items: center; min-height: 26px; }
.el { border: 1px dotted #9DB0D0; padding: 2px 5px; font-size: 11px; white-space: nowrap; font-family: var(--font-mono); color: #2B3A55; background: rgba(255,255,255,.7); }
.el.txt { font-family: "Segoe UI", var(--font-body); }
.el.big { font: 700 16px "Segoe UI", var(--font-body); font-family: "Segoe UI", var(--font-body); }
.el.sel { border: 1.5px solid var(--app-sel); position: relative; }
.el.sel::before, .el.sel::after { content: ""; position: absolute; width: 6px; height: 6px; background: #fff; border: 1.5px solid var(--app-sel); }
.el.sel::before { left: -4px; top: -4px; } .el.sel::after { right: -4px; bottom: -4px; }
.float-tb { position: absolute; display: flex; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--app-line); border-radius: 6px; box-shadow: 0 6px 16px rgba(20,30,50,.18); font: 700 11px "Segoe UI", sans-serif; }
.float-tb span { width: 22px; height: 20px; display: grid; place-items: center; border-radius: 4px; }
.float-tb span.on { background: #DAE6F8; }
.minimap { position: absolute; right: 12px; bottom: 12px; width: 70px; height: 92px; background: rgba(255,255,255,.9); border: 1px solid var(--app-line); border-radius: 4px; padding: 6px; display: grid; gap: 3px; align-content: start; }
.minimap i { display: block; height: 4px; background: #C9D4E6; border-radius: 1px; }
.minimap .vp { position: absolute; left: 3px; right: 3px; top: 4px; height: 46px; border: 1.5px solid var(--app-sel); border-radius: 2px; }
/* Preview */
.rep { padding: 18px 22px 14px; font-family: "Segoe UI", var(--font-body); font-size: 11px; color: #1E2838; }
.rep .rt { display: flex; justify-content: space-between; align-items: end; border-bottom: 2px solid var(--app-navy); padding-bottom: 6px; }
.rep .rt b { font-size: 16px; }
.rep .rt span { color: #5D6E8C; }
.rep table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.rep th { text-align: left; font-size: 10px; color: #5D6E8C; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid #CED6E3; }
.rep td { padding: 3.5px 6px; border-bottom: 1px solid #EEF1F6; }
.rep td.n, .rep th.n { text-align: right; }
.rep tr.g td { background: #EEF3FB; font-weight: 700; color: #2B4373; border-bottom: 0; padding-top: 6px; }
.rep .sum { display: flex; justify-content: flex-end; gap: 14px; margin-top: 8px; font-weight: 700; }
.rep .pf { margin-top: 18px; padding-top: 6px; border-top: 1px solid #CED6E3; display: flex; justify-content: space-between; color: #5D6E8C; font-size: 9.5px; }
.win[data-state="highlight"] tr.late td.st,
.win[data-state="export"] tr.late td.st { color: var(--app-hot); font-weight: 700; }
.hl-card, .exp-card { position: absolute; right: 20px; top: 22px; width: 250px; background: #fff; border: 1px solid var(--app-line); border-radius: 8px; box-shadow: 0 14px 30px rgba(20,30,50,.22); padding: 12px; display: grid; gap: 8px; font-size: 11px; opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s; transform: translateY(6px); }
.win[data-state="highlight"] .hl-card, .win[data-state="export"] .exp-card { opacity: 1; visibility: visible; transform: none; }
.hl-card b, .exp-card b { font-size: 12px; }
.hl-card code { display: block; background: #F1F4F9; color: #1E2838; padding: 5px 7px; border-radius: 4px; font-size: 10.5px; }
.hl-card .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.hl-card .opts span::before { content: "☐ "; color: var(--app-dim); }
.hl-card .opts span.on::before { content: "☑ "; color: var(--app-sel); }
.exp-card .fmt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.exp-card .fmt span { border: 1px solid var(--app-line); border-radius: 6px; padding: 8px 0; text-align: center; font-weight: 700; }
.exp-card .fmt span.on { border-color: var(--app-sel); background: #EAF1FE; color: #1F4FB8; }
.exp-card .done { color: #1B7F45; font-weight: 600; }
/* SQL */
.v-sql { padding: 16px 16px 0 16px; }
.sqlbox { display: grid; grid-template-columns: 1fr 210px; gap: 12px; height: calc(100% - 16px); }
.sqlbox .ed { background: #fff; border: 1px solid var(--app-line); border-radius: 6px; display: grid; grid-template-rows: auto auto 1fr; overflow: hidden; }
.sqlbox .ed-h { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--app-line); background: var(--app-panel); }
.sqlbox .ed-h .tab { padding: 2px 8px; border-radius: 4px; background: #DAE6F8; font-weight: 600; }
.sqlbox .ed-h .b { margin-left: auto; display: flex; gap: 6px; }
.sqlbox .ed-h .b span { padding: 3px 9px; border: 1px solid var(--app-line); border-radius: 4px; background: #fff; font-weight: 600; }
.sqlbox .ed-h .b span.go { background: var(--app-sel); color: #fff; border-color: var(--app-sel); }
.sqlbox pre { margin: 0; padding: 10px 12px; font: 11px/1.6 var(--font-mono); color: #24324A; white-space: pre; }
.sqlbox pre .k { color: #2858C8; font-weight: 600; }
.sqlbox pre .p { color: #B54708; font-weight: 600; }
.sqlbox .grid { border-top: 1px solid var(--app-line); overflow: hidden; }
.sqlbox .grid table { width: 100%; border-collapse: collapse; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.sqlbox .grid th { background: var(--app-panel); text-align: left; padding: 4px 8px; color: #5D6E8C; border-bottom: 1px solid var(--app-line); }
.sqlbox .grid td { padding: 3px 8px; border-bottom: 1px solid #EEF1F6; }
.sqlbox .pp { background: #fff; border: 1px solid var(--app-line); border-radius: 6px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.sqlbox .pp .h { font-size: 9.5px; letter-spacing: .1em; color: var(--app-dim); font-weight: 700; display: flex; justify-content: space-between; }
.sqlbox .pp .h span { color: var(--app-sel); letter-spacing: 0; }
.sqlbox .pp label { display: grid; gap: 3px; font-family: var(--font-mono); font-size: 10.5px; }
.sqlbox .pp label span { border: 1px solid var(--app-line); border-radius: 4px; padding: 3px 6px; font-family: "Segoe UI", sans-serif; }
.sqlbox .ok { color: #1B7F45; font-weight: 600; }
.status { display: flex; align-items: center; gap: 16px; padding: 0 10px; background: var(--app-navy); color: #C3D2EB; font-size: 10.5px; }
.status .z { margin-left: auto; }

/* Benefícios */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.benefit { display: grid; gap: 10px; align-content: start; }
.benefit .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.benefit .ico svg { width: 22px; height: 22px; }
.benefit p { color: var(--muted); font-size: .95rem; }

/* Recursos */
.features { display: grid; gap: clamp(48px, 7vw, 88px); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature:nth-child(even) .copy { order: 2; }
.feature .copy { display: grid; gap: 14px; min-width: 0; }
.feature ul { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.feature ul strong { color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font: 500 .78rem var(--font-mono); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.mock { min-width: 0; padding: clamp(16px, 3vw, 28px); border-radius: var(--radius); background: linear-gradient(160deg, #1C2B4C, #2B3F6A); display: grid; place-items: center; overflow: hidden; }
.mini { width: 100%; max-width: 440px; background: var(--app-paper); border-radius: 6px; color: var(--app-text); font: 12px/1.4 "Segoe UI", var(--font-body); box-shadow: 0 16px 40px rgba(5,12,30,.4); overflow: hidden; }
.mini .band .bc { padding-left: 12px; }
.mini.bands { padding-left: 0; }
.bandlist { display: grid; }
.bandlist div { display: flex; justify-content: space-between; padding: 6px 12px; border-bottom: 1px dashed #B8C6DE; font-size: 11.5px; }
.bandlist div span { color: #5D6E8C; font-family: var(--font-mono); font-size: 10.5px; }
.bandlist div.strong { background: var(--app-band); color: #2B4373; font-weight: 600; }
.mini pre { margin: 0; padding: 14px 16px; font: 11.5px/1.7 var(--font-mono); white-space: pre-wrap; word-break: break-word; color: #24324A; }
.mini pre .k { color: #2858C8; font-weight: 600; }
.mini pre .p { color: #B54708; font-weight: 600; }
.mini pre .c { color: #7A869A; }
.mini .rows { font-variant-numeric: tabular-nums; }
.mini .rows div { display: grid; grid-template-columns: 60px 1fr 90px; gap: 10px; padding: 7px 14px; border-bottom: 1px solid #EEF1F6; }
.mini .rows div.h { font-size: 10.5px; color: #5D6E8C; font-weight: 600; background: var(--app-panel); }
.mini .rows .hot { color: var(--app-hot); font-weight: 700; }
.mini .rows .r { text-align: right; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.tools div { border: 1px solid var(--app-line); border-radius: 6px; padding: 10px; display: grid; gap: 3px; background: var(--app-panel); }
.tools b { font-size: 12px; }
.tools span { color: #5D6E8C; font-size: 11px; }

/* ERP */
.erp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.erp .copy { display: grid; gap: 16px; }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.number { display: grid; gap: 2px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.number .big { font: 800 1.7rem/1.05 var(--font-display); color: var(--accent); }
.number .lbl { font-weight: 600; font-size: .9rem; }
.number p { font-size: .84rem; color: var(--muted); }
.code { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; min-width: 0; }
.tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--code-bg); overflow-x: auto; }
.tabs button { font: 600 .82rem var(--font-body); padding: 7px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font: .8rem/1.65 var(--font-mono); }
.code pre .c { color: var(--muted); }
.code pre .s { color: #B54708; }
.code pre .k { color: var(--accent); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .code pre .s { color: #F5A35B; } }
:root[data-theme="dark"] .code pre .s { color: #F5A35B; }
.code .note { padding: 12px 18px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }

/* Arquitetura */
.arch { display: grid; gap: 14px; }
.arch .row { display: grid; gap: 14px; }
.arch .r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.arch .r1 { grid-template-columns: minmax(0, 1fr); }
.node { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; position: relative; }
.node .nm { font: 600 .86rem var(--font-mono); color: var(--accent); }
.node p { font-size: .9rem; color: var(--muted); }
.node.ext { border-style: dashed; }
.arrow { text-align: center; color: var(--muted); font: 600 .78rem var(--font-mono); letter-spacing: .04em; }
.arrow::before { content: "↓ "; color: var(--accent); }

/* Atalhos */
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.key { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: .93rem; }
.key .k { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

/* Dúvidas */
.two-col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
details + details { margin-top: 8px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { padding: 0 16px 16px; color: var(--muted); }

/* Chamada final */
.cta-band { border-top: 0; padding-top: 0; }
.cta-box { border-radius: 24px; padding: clamp(28px, 5vw, 56px); background: linear-gradient(160deg, #1C2B4C, #2B3F6A); color: #F2F5FB; display: grid; gap: 18px; justify-items: start; }
.cta-box h2 { color: #fff; }
.cta-box p { color: #C3D2EB; max-width: 60ch; }
.cta-box .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.mail { font-family: var(--font-mono); font-size: .95rem; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); user-select: all; overflow-wrap: anywhere; }
.toast { min-height: 1.4em; font-size: .88rem; color: #C3D2EB; }

footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: .86rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.foot-links { display: flex; gap: 18px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .erp, .two-col { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .copy { order: 0; }
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .benefits, .keys, .numbers, .arch .r2, .tools { grid-template-columns: minmax(0, 1fr); }
  .mini .rows div { grid-template-columns: 50px 1fr 80px; padding-inline: 10px; }
}
