/* ============================================================
   site.css — CSS consolidado do Site Comercial Klosi
   Concatena: base.css + landing.css + comercial.css
   Tokens (tokens.css) vêm do RCL Shared, não incluídos aqui.
   Regras do core.css (RCL) omitidas quando idênticas.
   ============================================================ */

/* ===== base.css ===== */
/* ============================================================
   KLOSI — Design System Showcase styles
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

a { color: inherit; }

/* ——— Top bar ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  background: color-mix(in oklab, var(--bg-primary) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-secondary);
}
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -.01em;
}
.topbar .brand .mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background:
    radial-gradient(120% 120% at 0% 0%, #B998FF 0%, #6C3CE1 55%, #4421A3 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  position: relative;
}
.topbar .brand .mark::after {
  content: ""; position: absolute; inset: 6px 6px auto auto;
  width: 6px; height: 6px; border-radius: 99px;
  background: #FFB547;
}
.topbar .nav {
  display: none;
  gap: var(--sp-4);
  margin-left: var(--sp-6);
  font-size: 14px;
  color: var(--text-secondary);
}
.topbar .nav a { text-decoration: none; padding: 6px 8px; border-radius: var(--r-md); }
.topbar .nav a:hover { color: var(--text-primary); background: var(--bg-tertiary); }
@media (min-width: 768px) { .topbar .nav { display: flex; } }
.topbar .spacer { flex: 1; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
}
.theme-toggle .pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 99px;
  background: var(--brand-primary); color: var(--text-on-brand);
}

/* ——— Page shell ——— */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-5);
}
@media (min-width: 768px) { .shell { padding: var(--sp-12) var(--sp-8); } }

.section { margin-bottom: var(--sp-16); scroll-margin-top: 80px; }
.section-head {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: var(--sp-6);
}
.section-head .eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-fg);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0;
}
.section-head p {
  margin: 0; max-width: 64ch;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ——— Hero ——— */
.hero {
  padding: var(--sp-12) 0 var(--sp-8);
  border-bottom: 1px solid var(--border-secondary);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.025em;
  margin: 0 0 var(--sp-4);
  max-width: 18ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(105deg, var(--brand-primary), var(--accent-primary) 70%, var(--highlight-primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  max-width: 60ch;
  color: var(--text-secondary);
  font-size: 17px;
}
.hero .meta {
  margin-top: var(--sp-6);
  display: flex; gap: var(--sp-3) var(--sp-6); flex-wrap: wrap;
  font-size: 13px; color: var(--text-tertiary);
}
.hero .meta b { color: var(--text-primary); font-weight: 500; }

/* ——— Subgrid blocks ——— */
.grid { display: grid; gap: var(--sp-4); }
.grid.cols-2 { grid-template-columns: 1fr; }
.grid.cols-3 { grid-template-columns: 1fr; }
.grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ——— Surface (generic) ——— */
.surface {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.surface .label {
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-3);
  font-weight: 500;
}

/* ——— Theme split panel: shows light + dark side by side ——— */
.split {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border-primary);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }
.split > .pane { padding: var(--sp-6); }
.split > .pane.light { background: #FAFAFC; color: rgba(15,17,24,.92); }
.split > .pane.dark  { background: #0B0C12; color: rgba(244,245,248,.92); }
.split .pane-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill);
  margin-bottom: var(--sp-4);
}
.split .pane.light .pane-tag { background: #ECEDF1; color: #383B46; }
.split .pane.dark  .pane-tag { background: #23252E; color: #C2C5CF; }

/* ============================================================
   FOUNDATIONS — Color
   ============================================================ */
.swatches {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .swatches { grid-template-columns: repeat(7, 1fr); } }
.swatch {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-secondary);
}
.swatch .chip { height: 64px; }
.swatch .meta {
  padding: 8px 10px; font-size: 12px;
  background: var(--bg-secondary);
  display: flex; flex-direction: column; gap: 2px;
}
.swatch .meta b { font-weight: 500; }
.swatch .meta span { color: var(--text-tertiary); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; }

.scale-row { margin-bottom: var(--sp-5); }
.scale-row h4 {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.scale-row h4 .dot { width: 12px; height: 12px; border-radius: 99px; }

/* Semantic token cards */
.token-grid {
  display: grid; gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .token-grid { grid-template-columns: 1fr 1fr; } }
.token {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-secondary);
  border-radius: var(--r-md);
  background: var(--bg-secondary);
}
.token .dot {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid rgba(0,0,0,.06);
}
.token .name { font-size: 13px; font-weight: 500; }
.token .desc { font-size: 12px; color: var(--text-tertiary); }
.token .val {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; color: var(--text-tertiary);
}

/* ============================================================
   FOUNDATIONS — Type
   ============================================================ */
.type-stack > * + * { margin-top: var(--sp-5); }
.type-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  border-bottom: 1px dashed var(--border-secondary);
  padding-bottom: var(--sp-5);
}
@media (min-width: 768px) {
  .type-row { grid-template-columns: 220px 1fr; align-items: baseline; }
}
.type-row .meta { font-size: 12px; color: var(--text-tertiary); font-family: ui-monospace, Menlo, monospace; }
.type-row .meta b { color: var(--text-primary); font-family: var(--font-ui); font-weight: 500; display: block; font-size: 13px; margin-bottom: 4px; }
.type-row .sample { color: var(--text-primary); }
.tx-display { font-family: var(--font-display); font-size: 48px; font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.tx-h1      { font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.tx-h2      { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.tx-h3      { font-family: var(--font-ui); font-size: 20px; font-weight: 600; line-height: 1.3; }
.tx-h4      { font-family: var(--font-ui); font-size: 16px; font-weight: 600; line-height: 1.4; }
.tx-body    { font-family: var(--font-ui); font-size: 16px; font-weight: 400; line-height: 1.5; }
.tx-body-sm { font-family: var(--font-ui); font-size: 14px; font-weight: 400; line-height: 1.5; }
.tx-cap     { font-family: var(--font-ui); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .02em; }

/* ============================================================
   FOUNDATIONS — Spacing / Radius / Shadow / Motion
   ============================================================ */
.spacing-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.spacing-row { display: grid; grid-template-columns: 56px 1fr 60px; align-items: center; gap: var(--sp-3); font-size: 13px; }
.spacing-row .bar { height: 14px; background: var(--brand-soft-2); border-radius: 4px; }
.spacing-row .v { font-family: ui-monospace, Menlo, monospace; color: var(--text-tertiary); font-size: 12px; }

.radius-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .radius-grid { grid-template-columns: repeat(5, 1fr); } }
.radius-card {
  border: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  padding: var(--sp-3);
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center;
  font-size: 12px;
}
.radius-card .swatch {
  width: 100%; height: 60px;
  background: var(--brand-soft);
  border: 1.5px dashed var(--brand-primary);
}

.shadow-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .shadow-grid { grid-template-columns: repeat(4, 1fr); } }
.shadow-card {
  height: 110px; border-radius: var(--r-lg);
  background: var(--bg-secondary);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  font-size: 12px; color: var(--text-tertiary);
  border: 1px solid var(--border-secondary);
}
.shadow-card b { font-weight: 500; color: var(--text-primary); font-size: 13px; }

.motion-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .motion-grid { grid-template-columns: repeat(4, 1fr); } }
.motion-card {
  padding: var(--sp-4);
  border: 1px solid var(--border-primary);
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  font-size: 13px;
}
.motion-card b { font-weight: 500; display: block; margin-bottom: 4px; }
.motion-card .v { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--text-tertiary); }

/* ============================================================
   COMPONENT ROW LAYOUT (used in many sections)
   ============================================================ */
.cmp-card {
  border: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.cmp-card .hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.cmp-card .hd h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.cmp-card .hd .tag {
  font-size: 11px; color: var(--text-tertiary);
  font-family: ui-monospace, Menlo, monospace;
}
.cmp-row {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
}
.cmp-stack { display: flex; flex-direction: column; gap: var(--sp-3); }
.cmp-divider {
  height: 1px; background: var(--border-secondary); margin: var(--sp-4) 0;
}
.cmp-label {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-tertiary); font-weight: 500;
  margin-bottom: 6px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --bh: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: var(--bh);
  padding: 0 16px;
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  user-select: none;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform 100ms var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn[disabled], .btn.is-disabled { cursor: not-allowed; opacity: .55; }
.btn .ic { width: 16px; height: 16px; flex: 0 0 auto; }

.btn.sm  { --bh: 32px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn.md  { --bh: 40px; }
.btn.lg  { --bh: 48px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn.icon-only { padding: 0; width: var(--bh); }

/* primary */
.btn.primary { background: var(--brand-primary); color: var(--text-on-brand); }
.btn.primary:hover { background: var(--brand-primary-hover); }
.btn.primary:active { background: var(--violet-800); }

/* secondary (outline) */
.btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-primary);
}
.btn.secondary:hover { background: var(--bg-tertiary); border-color: var(--border-primary); }

/* tertiary (ghost) */
.btn.tertiary { background: transparent; color: var(--text-secondary); }
.btn.tertiary:hover { background: var(--bg-tertiary); color: var(--text-primary); }

/* destructive */
.btn.destructive { background: var(--danger-strong); color: #fff; }
.btn.destructive:hover { filter: brightness(.94); }

/* accent (coral) */
.btn.accent { background: var(--accent-primary); color: #fff; }
.btn.accent:hover { filter: brightness(.94); }

/* loading dots */
.btn .dots { display: inline-flex; gap: 3px; }
.btn .dots i {
  width: 5px; height: 5px; border-radius: 99px;
  background: currentColor; opacity: .55;
  animation: dot 1.2s infinite var(--ease-out);
}
.btn .dots i:nth-child(2) { animation-delay: .15s; }
.btn .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot {
  0%, 100% { transform: translateY(0); opacity: .35; }
  50%      { transform: translateY(-3px); opacity: 1; }
}

/* ============================================================
   INPUTS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field .label {
  font-size: 13px; font-weight: 500; color: var(--text-primary);
}
.field .help { font-size: 12px; color: var(--text-tertiary); }
.field .help.is-error   { color: var(--danger-strong); }
.field .help.is-success { color: var(--success-strong); }

.input {
  position: relative;
  display: flex; align-items: center;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.input:focus-within {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-focus);
}
.input.is-error   { border-color: var(--danger-strong); }
.input.is-error:focus-within { box-shadow: 0 0 0 3px rgba(220,53,69,.22); }
.input.is-success { border-color: var(--success-strong); }
.input.is-disabled {
  background: var(--bg-tertiary); color: var(--text-tertiary);
  cursor: not-allowed; opacity: .8;
}
.input input, .input textarea {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 14px; color: var(--text-primary);
  height: 100%;
}
.input input::placeholder { color: var(--text-tertiary); }
.input .pre, .input .suf {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-tertiary);
  font-size: 13px;
}
.input .pre { padding-right: 8px; border-right: 1px solid var(--border-secondary); margin-right: 8px; }
.input .suf { padding-left: 8px; border-left: 1px solid var(--border-secondary); margin-left: 8px; }
.input .ic { width: 16px; height: 16px; color: var(--text-tertiary); }

/* floating label */
.input.floating {
  height: 56px; align-items: stretch;
}
.input.floating .float-wrap {
  position: relative; flex: 1; display: flex; align-items: flex-end; padding-bottom: 6px;
}
.input.floating input {
  height: auto; padding-top: 18px;
}
.input.floating label {
  position: absolute; left: 0; top: 18px;
  color: var(--text-tertiary); font-size: 14px;
  pointer-events: none;
  transition: top var(--dur-fast) var(--ease-out), font-size var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.input.floating.is-active label,
.input.floating:focus-within label {
  top: 4px; font-size: 11px; color: var(--brand-primary);
  font-weight: 500;
}

/* ============================================================
   CARDS
   ============================================================ */
.dscard {
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: 8px;
}
.dscard.flat { background: var(--bg-tertiary); }
.dscard.elevated { background: var(--bg-secondary); border: 1px solid var(--border-primary); }
.dscard.interactive {
  background: var(--bg-secondary); border: 1px solid var(--border-primary);
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.dscard.interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-primary);
}
.dscard h4 { margin: 0; font-size: 16px; font-weight: 600; }
.dscard p { margin: 0; color: var(--text-secondary); font-size: 14px; }
.dscard .meta { color: var(--text-tertiary); font-size: 12px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  font-size: 12px; font-weight: 500;
  border-radius: var(--r-pill);
  background: var(--bg-tertiary); color: var(--text-secondary);
  border: 1px solid var(--border-secondary);
  white-space: nowrap;
}
.badge.sm { height: 20px; padding: 0 8px; font-size: 11px; }
.badge .dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.badge .x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 99px;
  background: rgba(0,0,0,.06); color: inherit;
  margin-right: -4px; cursor: pointer;
}
[data-theme="dark"] .badge .x { background: rgba(255,255,255,.08); }

/* status colors */
.badge.draft  { color: var(--gray-700); background: var(--gray-100); border-color: var(--border-primary); }
[data-theme="dark"] .badge.draft { color: var(--gray-300); background: var(--gray-800); border-color: var(--border-primary); }
.badge.sent   { color: var(--info-fg);    background: var(--info-bg);    border-color: var(--info-bd); }
.badge.viewed { color: var(--violet-800); background: var(--violet-50);  border-color: var(--violet-200); }
[data-theme="dark"] .badge.viewed { color: var(--violet-200); background: rgba(108,60,225,.18); border-color: rgba(108,60,225,.4); }
.badge.negotiating { color: var(--warning-fg); background: var(--warning-bg); border-color: var(--warning-bd); }
.badge.accepted    { color: var(--teal-800);    background: var(--teal-50);    border-color: var(--teal-200); }
[data-theme="dark"] .badge.accepted { color: #88E0CC; background: rgba(20,154,127,.18); border-color: rgba(20,154,127,.45); }
.badge.scheduled   { color: var(--violet-800); background: var(--brand-soft); border-color: var(--violet-200); }
[data-theme="dark"] .badge.scheduled { color: var(--violet-200); background: rgba(108,60,225,.18); border-color: rgba(108,60,225,.4); }
.badge.paid        { color: var(--success-fg); background: var(--success-bg); border-color: var(--success-bd); }
.badge.done        { color: #fff; background: var(--green-800); border-color: var(--green-800); }
[data-theme="dark"] .badge.done { background: var(--green-600); border-color: var(--green-600); }
.badge.refused     { color: var(--danger-fg);  background: var(--danger-bg);  border-color: var(--danger-bd); }

/* ============================================================
   MODALS / DRAWERS / TOASTS — static showcase
   ============================================================ */
.frame {
  position: relative;
  border: 1px solid var(--border-primary);
  background:
    linear-gradient(var(--bg-tertiary), var(--bg-tertiary));
  border-radius: var(--r-lg);
  height: 360px;
  overflow: hidden;
}
.frame .backdrop {
  position: absolute; inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(2px);
}
.modal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(92%, 420px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
}
.modal h4 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.modal p { margin: 0 0 var(--sp-4); color: var(--text-secondary); font-size: 14px; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; }

.drawer {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(92%, 380px);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-primary);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.drawer .close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; cursor: pointer; color: var(--text-tertiary);
}
.drawer h4 { margin: 0; font-size: 18px; font-weight: 600; }
.drawer .body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.drawer .foot { display: flex; gap: 8px; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--border-secondary); }

.bottomsheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
}
.bottomsheet .grabber {
  width: 40px; height: 4px; background: var(--border-primary);
  border-radius: 99px; margin: 0 auto var(--sp-3);
}

/* Toast */
.toast {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  width: 320px;
  position: relative;
  overflow: hidden;
}
.toast .ic-wrap {
  width: 28px; height: 28px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
}
.toast h5 { margin: 0; font-size: 14px; font-weight: 600; }
.toast p { margin: 2px 0 0; font-size: 13px; color: var(--text-secondary); }
.toast .close { background: transparent; border: 0; cursor: pointer; color: var(--text-tertiary); padding: 0; height: 20px; }
.toast::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px;
  width: 60%;
}
.toast.success .ic-wrap { background: var(--success-bg); color: var(--success-strong); }
.toast.success::after   { background: var(--success-strong); }
.toast.error   .ic-wrap { background: var(--danger-bg);  color: var(--danger-strong); }
.toast.error::after     { background: var(--danger-strong); }
.toast.warning .ic-wrap { background: var(--warning-bg); color: var(--warning-strong); }
.toast.warning::after   { background: var(--warning-strong); }
.toast.info    .ic-wrap { background: var(--info-bg);    color: var(--info-strong); }
.toast.info::after      { background: var(--info-strong); }

/* ============================================================
   LOADING
   ============================================================ */
.skel {
  background: linear-gradient(90deg, var(--bg-tertiary) 0%, var(--border-secondary) 50%, var(--bg-tertiary) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite var(--ease-out);
  border-radius: 6px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.spinner {
  width: 18px; height: 18px; border-radius: 99px;
  border: 2px solid var(--border-primary);
  border-top-color: var(--brand-primary);
  animation: spin .9s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress {
  height: 6px; background: var(--bg-tertiary); border-radius: 99px;
  overflow: hidden;
}
.progress > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent-primary));
  border-radius: 99px;
  animation: progslide 2s infinite var(--ease-out);
  width: 40%;
}
@keyframes progslide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--sp-3);
  padding: var(--sp-8);
  border: 1px dashed var(--border-primary);
  border-radius: var(--r-lg);
  background: var(--bg-secondary);
}
.empty .lineart {
  width: 96px; height: 96px;
  color: var(--brand-primary);
}
.empty h4 { margin: 0; font-size: 16px; font-weight: 600; }
.empty p { margin: 0; color: var(--text-secondary); font-size: 14px; max-width: 36ch; }

/* ============================================================
   NAVIGATION (mock app chrome)
   ============================================================ */
.app-mock {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border-primary);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-tertiary);
  min-height: 520px;
}
@media (min-width: 900px) {
  .app-mock.desktop { grid-template-columns: 240px 1fr; }
}
.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-secondary);
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.sidebar .brand-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px;
  margin-bottom: var(--sp-2);
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
}
.sidebar .brand-row .mark {
  width: 24px; height: 24px; border-radius: 6px;
  background: radial-gradient(120% 120% at 0% 0%, #B998FF 0%, #6C3CE1 55%, #4421A3 100%);
  position: relative;
}
.sidebar .brand-row .mark::after {
  content:""; position: absolute; top: 5px; right: 5px;
  width: 5px; height: 5px; border-radius: 99px; background: #FFB547;
}
.nav-section {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-tertiary); padding: 10px 8px 4px;
  font-weight: 500;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.nav-item.active { background: var(--brand-soft); color: var(--brand-primary); font-weight: 500; }
.nav-item.active .ic { color: var(--brand-primary); }
.nav-item .ic { width: 18px; height: 18px; color: var(--text-tertiary); flex: 0 0 auto; }
.nav-item .badge { margin-left: auto; }

.sidebar .footer {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-secondary);
  display: flex; align-items: center; gap: 10px;
}

.app-content {
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-5);
}
.app-content .topnav {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-secondary);
}
.app-content .topnav .search { flex: 1; max-width: 380px; }
.app-content .topnav .iconbtn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-primary);
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
}
.app-content .topnav .iconbtn .pip {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 99px; background: var(--accent-primary);
  border: 2px solid var(--bg-secondary);
  box-sizing: content-box;
}

/* mobile chrome */
.mobile-mock {
  width: 320px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mobile-mock .topbar-m {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-secondary);
}
.mobile-mock .topbar-m .brand-m {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
}
.mobile-mock .body { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; }

/* ============================================================
   TABLE
   ============================================================ */
.dstable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dstable thead th {
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: .03em;
  border-bottom: 1px solid var(--border-primary);
  background: var(--bg-tertiary);
  white-space: nowrap;
}
.dstable thead th .sort {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
}
.dstable tbody tr {
  border-bottom: 1px solid var(--border-secondary);
  transition: background var(--dur-fast) var(--ease-out);
}
.dstable tbody tr:hover { background: var(--bg-tertiary); }
.dstable tbody td { padding: 10px 12px; vertical-align: middle; }
.dstable .tdname { display: flex; align-items: center; gap: 10px; }
.dstable .money { font-variant-numeric: tabular-nums; font-weight: 500; }
.dstable .kebab {
  border: 0; background: transparent; color: var(--text-tertiary); cursor: pointer;
  width: 28px; height: 28px; border-radius: 6px;
}
.dstable .kebab:hover { background: var(--bg-tertiary); color: var(--text-primary); }

.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-1) 0;
  font-size: 13px; color: var(--text-tertiary);
}
.pagination .pages { display: flex; gap: 4px; }
.pagination .pgbtn {
  min-width: 28px; height: 28px;
  border-radius: 6px; border: 1px solid var(--border-primary);
  background: var(--bg-secondary); color: var(--text-secondary);
  font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px;
}
.pagination .pgbtn.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* mobile-table-as-cards */
.mobile-list { display: flex; flex-direction: column; gap: 10px; }
.mobile-list .row {
  border: 1px solid var(--border-primary);
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-list .row .top { display: flex; justify-content: space-between; align-items: center; }
.mobile-list .row .name { font-weight: 500; font-size: 14px; }
.mobile-list .row .sub { font-size: 12px; color: var(--text-tertiary); }
.mobile-list .row .bot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ============================================================
   AVATARS
   ============================================================ */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 99px;
  font-family: var(--font-ui);
  font-weight: 500;
  color: #fff;
  user-select: none;
  flex: 0 0 auto;
  background: var(--brand-primary);
  border: 1.5px solid var(--bg-secondary);
}
.avatar.xs { width: 24px; height: 24px; font-size: 10px; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.md { width: 40px; height: 40px; font-size: 14px; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.xl { width: 64px; height: 64px; font-size: 20px; }
.avatar-stack { display: inline-flex; }
.avatar-stack > .avatar + .avatar { margin-left: -10px; }

/* ============================================================
   DENSITY callout
   ============================================================ */
.density {
  display: grid; gap: var(--sp-4); grid-template-columns: 1fr;
}
@media (min-width: 768px) { .density { grid-template-columns: repeat(3, 1fr); } }
.density .box {
  padding: var(--sp-5);
  border: 1px solid var(--border-primary);
  border-radius: var(--r-lg);
  background: var(--bg-secondary);
}
.density .box h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.density .box p  { margin: 0 0 var(--sp-3); color: var(--text-secondary); font-size: 13px; }
.density .box .preview {
  background: var(--bg-tertiary);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  border: 1px solid var(--border-secondary);
  font-size: 12px;
}
.density .box .row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--border-secondary); }
.density .box .row:last-child { border-bottom: 0; }
.density .box.compact .row { padding: 4px 0; font-size: 12px; }
.density .box.comfortable .row { padding: 12px 0; font-size: 14px; }

/* ============================================================
   BREAKPOINTS table
   ============================================================ */
.bp-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary); border-radius: var(--r-md); overflow: hidden;
}
.bp-table th, .bp-table td {
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--border-secondary);
}
.bp-table th { font-size: 12px; color: var(--text-secondary); font-weight: 500; background: var(--bg-tertiary); }
.bp-table tr:last-child td { border-bottom: 0; }
.bp-table .v { font-family: ui-monospace, Menlo, monospace; color: var(--text-tertiary); font-size: 12px; }

/* ============================================================
   App example — proposal page
   ============================================================ */
.kpi-grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: 4px;
}
.kpi .label { font-size: 12px; color: var(--text-tertiary); }
.kpi .v { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.015em; }
.kpi .delta { font-size: 12px; }
.kpi .delta.up { color: var(--success-strong); }
.kpi .delta.down { color: var(--danger-strong); }

/* misc icon button used in mobile */
.iconbtn-sm {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-primary);
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
}

/* footer */
.footer {
  margin-top: var(--sp-16);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--border-secondary);
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}


/* ===== landing.css ===== */
/* ============================================================
   KLOSI Landing — klosi.com.br
   Builds on tokens.css + styles.css from the design system.
   ============================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-ui);
  color: var(--text-primary);
  background: var(--bg-primary);
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* —— Container —— */
.lc { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .lc { padding: 0 32px; } }

/* —— Section base —— */
section { padding: 80px 0; position: relative; }
@media (min-width: 1024px) { section { padding: 120px 0; } }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-fg);
  margin-bottom: 16px;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--text-primary);
  margin: 0;
}
.h1 { font-size: clamp(36px, 6vw, 64px); }
.h2 { font-size: clamp(30px, 4.5vw, 44px); }
.h3 { font-size: clamp(22px, 2.4vw, 26px); }
.lead { font-size: 18px; color: var(--text-secondary); line-height: 1.6; max-width: 60ch; }
@media (min-width: 768px) { .lead { font-size: 20px; } }

/* —— Buttons —— */
.lbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 10px; border: 0;
  font-family: var(--font-ui); font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all .18s ease; text-decoration: none; white-space: nowrap;
}
.lbtn.lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.lbtn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.lbtn.primary { background: var(--brand-primary); color: #fff; }
.lbtn.primary:hover { background: var(--brand-primary-hover); transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(108, 60, 225, .45); }
.lbtn.coral { background: var(--coral-600); color: #fff; }
.lbtn.coral:hover { background: var(--coral-800); transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(249, 112, 102, .45); }
.lbtn.outline { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-primary); }
.lbtn.outline:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.lbtn.ghost { background: transparent; color: var(--text-primary); }
.lbtn.ghost:hover { background: var(--bg-tertiary); }

/* —— Nav —— */
.lnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg-primary) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.lnav.scrolled { border-bottom-color: var(--border-secondary); }
.lnav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.lnav-logo { display: flex; align-items: center; gap: 0; }
.lnav-logo img { height: 26px; width: auto; }
.lnav-menu { display: none; gap: 4px; }
.lnav-menu a {
  color: var(--text-secondary); font-size: 14px; font-weight: 500; text-decoration: none;
  padding: 8px 14px; border-radius: 8px; transition: all .15s ease;
}
.lnav-menu a:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.lnav-cta { display: flex; align-items: center; gap: 10px; }
.lnav-cta a.signin { display: none; color: var(--text-primary); font-size: 14px; font-weight: 500; text-decoration: none; padding: 8px 12px; }
.lnav-cta a.signin:hover { color: var(--brand-primary); }
.lnav-burger { display: inline-flex; width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-primary); border-radius: 8px; align-items: center; justify-content: center; cursor: pointer; }
.lnav-burger:hover { background: var(--bg-tertiary); }

/* Toggle de tema claro/escuro (#369). Combina com .lnav-burger (40x40, ícone-botão); visível em
   todo breakpoint (único acesso ao tema no desktop). Mostra a lua em claro (clique → escurece) e
   o sol em escuro — alternância por CSS [data-theme], sem JS de display (igual aos logos lg-*). */
.lnav-theme { display: inline-flex; width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-primary); border-radius: 8px; align-items: center; justify-content: center; cursor: pointer; }
.lnav-theme:hover { background: var(--bg-tertiary); }
.lnav-theme .ic-sun { display: none; }
[data-theme="dark"] .lnav-theme .ic-moon { display: none; }
[data-theme="dark"] .lnav-theme .ic-sun { display: inline-block; }

@media (min-width: 768px) { .lnav-cta a.signin { display: inline-block; } }
@media (min-width: 1024px) { .lnav-menu { display: flex; } .lnav-burger { display: none; } }

/* —— Mobile drawer menu: estilos centralizados em comercial.css —— */

/* —— Hero —— */
.hero { padding: 140px 0 80px; overflow: hidden; }
@media (min-width: 1024px) { .hero { padding: 180px 0 120px; } }
.hero-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero-text .h1 { margin-bottom: 20px; }
.hero-text .h1 .accent { background: linear-gradient(120deg, var(--violet-600), var(--coral-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text .lead { margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-finep { font-size: 13px; color: var(--text-tertiary); }
.hero-finep b { color: var(--text-secondary); font-weight: 500; }

/* —— Hero composition (right side: layered cards) —— */
.hero-stage {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
@media (min-width: 1024px) { .hero-stage { max-width: none; } }
.hero-blob {
  position: absolute; inset: 6% -8% 6% 4%;
  background: radial-gradient(120% 100% at 30% 30%, var(--violet-100), transparent 60%),
              radial-gradient(80% 80% at 80% 80%, var(--coral-100), transparent 65%);
  border-radius: 32px;
  filter: blur(2px);
  z-index: 0;
}
[data-theme="dark"] .hero-blob {
  background: radial-gradient(120% 100% at 30% 30%, rgba(108,60,225,.30), transparent 60%),
              radial-gradient(80% 80% at 80% 80%, rgba(249,112,102,.20), transparent 65%);
}
.hero-card {
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  box-shadow: 0 20px 50px -16px rgba(15,17,24,.18), 0 4px 14px -4px rgba(15,17,24,.08);
  z-index: 1;
}
[data-theme="dark"] .hero-card { box-shadow: 0 20px 50px -16px rgba(0,0,0,.6), 0 4px 14px -4px rgba(0,0,0,.4); }

/* Main proposal card */
.hp-main {
  top: 4%; left: 0; right: 12%;
  bottom: 18%;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  animation: floatY 8s ease-in-out infinite;
}
.hp-main-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hp-main-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.hp-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: var(--violet-50); color: var(--violet-800); border: 1px solid var(--violet-200); border-radius: 99px; font-size: 11px; font-weight: 500; }
[data-theme="dark"] .hp-pill { background: rgba(108,60,225,.15); color: var(--violet-200); border-color: rgba(108,60,225,.4); }
.hp-pill .dot { width:6px; height:6px; border-radius:99px; background: var(--violet-600); animation: pulse 1.6s ease-in-out infinite; }
.hp-typing {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--text-primary);
  letter-spacing: -.005em;
  flex: 1; min-height: 60px;
}
.hp-typing .caret { display: inline-block; width: 2px; height: 1em; background: var(--brand-primary); vertical-align: text-bottom; margin-left: 1px; animation: caret 1s steps(2) infinite; }
.hp-typing .ai-text { color: var(--text-primary); }
.hp-meta { display: flex; gap: 18px; padding-top: 10px; border-top: 1px solid var(--border-secondary); font-size: 11px; color: var(--text-tertiary); }
.hp-meta .v { color: var(--text-primary); font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.hp-meta .v .unit { font-family: var(--font-ui); font-weight: 500; font-size: 11px; color: var(--text-secondary); margin-right: 2px; }

/* Pix received toast */
.hp-pix {
  bottom: 0; right: 0; width: 230px; padding: 14px;
  display: flex; gap: 10px; align-items: flex-start;
  animation: floatY 9s ease-in-out infinite -2s;
}
.hp-pix .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--green-50); color: var(--green-600); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
[data-theme="dark"] .hp-pix .ico { background: rgba(31,168,94,.15); }
.hp-pix .lbl { font-size: 11px; color: var(--text-tertiary); letter-spacing: .04em; text-transform: uppercase; }
.hp-pix .val { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text-primary); letter-spacing: -.01em; margin-top: 2px; }
.hp-pix .val .unit { font-family: var(--font-ui); font-size: 11px; color: var(--text-secondary); font-weight: 500; margin-right: 2px; }
.hp-pix .sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* NFS-e floating */
.hp-nfse {
  top: 14%; right: 0; width: 178px; padding: 12px 14px;
  animation: floatY 7s ease-in-out infinite -1s;
  background: linear-gradient(135deg, var(--violet-600), var(--violet-800));
  color: #fff; border: 0;
}
.hp-nfse .lbl { font-size: 10px; opacity: .8; letter-spacing: .06em; text-transform: uppercase; }
.hp-nfse .num { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-top: 3px; letter-spacing: -.01em; }
.hp-nfse .footer { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.18); font-size: 10px; opacity: .85; }
.hp-nfse--v11 { background: linear-gradient(135deg, var(--violet-700, #5a2ec9), var(--violet-900, #2d1670)); }
.hp-nfse--v11 .num { font-size: 14px !important; opacity: .95; }
.hp-nfse--v11 .footer { font-size: 9.5px; }

/* Calendar slot floating */
.hp-cal {
  bottom: 4%; left: 6%; width: 180px; padding: 12px 14px;
  animation: floatY 10s ease-in-out infinite -3s;
}
.hp-cal .lbl { font-size: 10px; color: var(--text-tertiary); letter-spacing: .06em; text-transform: uppercase; }
.hp-cal .day { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.hp-cal .day .n { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: var(--text-primary); }
.hp-cal .day .m { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.hp-cal .row { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 8px; background: var(--violet-50); color: var(--violet-800); border-radius: 6px; font-size: 11px; }
[data-theme="dark"] .hp-cal .row { background: rgba(108,60,225,.18); color: var(--violet-200); }
.hp-cal .row .bar { width: 3px; height: 14px; background: var(--violet-600); border-radius: 2px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .5; }
}
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* —— Social proof bar —— */
.proof {
  border-top: 1px solid var(--border-secondary);
  border-bottom: 1px solid var(--border-secondary);
  padding: 32px 0;
  background: var(--bg-secondary);
}
.proof-inner { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
@media (min-width: 768px) { .proof-inner { flex-direction: row; gap: 40px; text-align: left; justify-content: space-between; } }
.proof-text { font-size: 13px; color: var(--text-secondary); max-width: 280px; }
.proof-logos { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; justify-content: center; }
.proof-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-weight: 500; font-size: 14px; }
.proof-logo svg { width: 22px; height: 22px; }
.proof-logo:hover { color: var(--text-primary); }

/* —— Stats / numbers —— */
.stats { background: var(--bg-secondary); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.stat { padding: 24px; border-radius: 14px; background: var(--bg-primary); border: 1px solid var(--border-secondary); }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4vw, 44px); letter-spacing: -.02em; color: var(--text-primary); line-height: 1; margin-bottom: 8px; }
.stat .num .unit { font-family: var(--font-ui); font-size: 16px; color: var(--text-secondary); font-weight: 500; }
.stat .lbl { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }

/* —— Benefits 3 col —— */
.benefits-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.benefit { padding: 28px; background: var(--bg-secondary); border: 1px solid var(--border-secondary); border-radius: 16px; transition: all .25s ease; }
.benefit:hover { border-color: var(--brand-primary); transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(108, 60, 225, .18); }
.benefit-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--violet-50); color: var(--brand-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
[data-theme="dark"] .benefit-ic { background: rgba(108,60,225,.15); }
.benefit h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.benefit p { margin: 0; color: var(--text-secondary); line-height: 1.6; }

/* —— Section header centered —— */
.sh-center { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sh-center .lead { margin: 16px auto 0; }

/* —— How it works (4 steps) —— */
.how-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .how-grid { grid-template-columns: repeat(4, 1fr); position: relative; } }
.step { padding: 24px; border-radius: 16px; background: var(--bg-secondary); border: 1px solid var(--border-secondary); position: relative; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 99px; background: var(--brand-primary); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.step p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.step-ic { color: var(--coral-600); margin-top: 14px; }
@media (min-width: 1024px) {
  .how-grid::before {
    content: ''; position: absolute; top: 48px; left: 12.5%; right: 12.5%;
    height: 2px; background: linear-gradient(90deg, var(--violet-200), var(--coral-200), var(--violet-200));
    z-index: 0; opacity: .6;
  }
  .step { z-index: 1; }
}

/* —— For whom (cards) —— */
.fw-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fw-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.fw-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  background: var(--bg-secondary); border: 1px solid var(--border-secondary); border-radius: 14px;
  cursor: pointer; transition: all .2s ease; text-decoration: none; color: inherit;
}
.fw-card:hover { border-color: var(--brand-primary); transform: translateY(-2px); }
.fw-card .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--violet-50); color: var(--brand-primary); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
[data-theme="dark"] .fw-card .ic { background: rgba(108,60,225,.15); }
.fw-card.coral .ic { background: var(--coral-50); color: var(--coral-600); }
[data-theme="dark"] .fw-card.coral .ic { background: rgba(249,112,102,.15); }
.fw-card.amber .ic { background: var(--amber-50); color: var(--amber-800); }
[data-theme="dark"] .fw-card.amber .ic { background: rgba(255,181,71,.15); color: var(--amber-400); }
.fw-card.green .ic { background: var(--green-50); color: var(--green-600); }
[data-theme="dark"] .fw-card.green .ic { background: rgba(31,168,94,.15); }
.fw-card.blue .ic { background: var(--blue-50); color: var(--blue-600); }
[data-theme="dark"] .fw-card.blue .ic { background: rgba(61,95,224,.18); color: var(--blue-200); }
.fw-card h3 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -.005em; }
.fw-card p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.fw-card .arrow { margin-left: auto; color: var(--text-tertiary); transition: transform .2s ease, color .2s ease; }
.fw-card:hover .arrow { transform: translateX(4px); color: var(--brand-primary); }

/* —— Comparison table —— */
.compare-wrap { background: var(--bg-secondary); border: 1px solid var(--border-secondary); border-radius: 16px; overflow: hidden; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table thead th { background: var(--bg-tertiary); padding: 16px 20px; text-align: left; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); border-bottom: 1px solid var(--border-primary); }
.compare-table thead th.klosi { color: var(--brand-fg); }
[data-theme="dark"] .compare-table thead th.klosi { color: var(--violet-200); }
.compare-table tbody td { padding: 16px 20px; border-bottom: 1px solid var(--border-secondary); vertical-align: middle; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody td:first-child { font-weight: 500; }
.compare-table tbody td.klosi { background: color-mix(in oklab, var(--violet-50) 60%, transparent); color: var(--brand-fg); font-weight: 500; }
[data-theme="dark"] .compare-table tbody td.klosi { background: rgba(108,60,225,.10); color: var(--violet-200); }
.compare-table .ic-yes { color: var(--green-600); }
.compare-table .ic-no { color: var(--text-tertiary); }
.compare-table .small { font-size: 12px; color: var(--text-secondary); font-weight: 400; }

/* —— Demo section —— */
.demo-card {
  display: grid; gap: 32px; padding: 40px;
  background: linear-gradient(135deg, var(--violet-600), var(--violet-800));
  color: #fff; border-radius: 24px; align-items: center;
}
@media (min-width: 1024px) { .demo-card { grid-template-columns: 1fr 1fr; padding: 56px; } }
.demo-card h2 { color: #fff; }
.demo-card .sub { color: rgba(255,255,255,.85); font-size: 17px; line-height: 1.55; margin: 14px 0 28px; }
.demo-mock { aspect-ratio: 16 / 10; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); position: relative; overflow: hidden; }
.demo-mock::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.15), transparent 50%);
}
.demo-mock-bar { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.15); }
.demo-mock-bar i { display: block; width: 9px; height: 9px; border-radius: 99px; background: rgba(255,255,255,.3); }
.demo-mock-content { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.demo-mock-row { height: 12px; border-radius: 4px; background: rgba(255,255,255,.18); }
.demo-mock-row.w-50 { width: 50%; }
.demo-mock-row.w-70 { width: 70%; }
.demo-mock-row.w-90 { width: 90%; }
.demo-mock-row.tall { height: 80px; background: rgba(255,255,255,.10); border-radius: 8px; margin-top: 6px; }

/* —— Plans —— */
.plans-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plans-grid { grid-template-columns: repeat(4, 1fr); } }
.plan { padding: 28px; background: var(--bg-secondary); border: 1px solid var(--border-secondary); border-radius: 16px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand-primary); transform: scale(1.02); box-shadow: 0 24px 48px -16px rgba(108,60,225,.25); }
.plan .tag-pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; background: var(--brand-primary); color: #fff; font-size: 11px; font-weight: 500; border-radius: 99px; letter-spacing: .04em; text-transform: uppercase; }
.plan .name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 6px; }
.plan .price .v { font-family: var(--font-display); font-weight: 600; font-size: 36px; letter-spacing: -.02em; line-height: 1; }
.plan .price .currency { font-family: var(--font-ui); font-size: 16px; font-weight: 500; color: var(--text-secondary); }
.plan .period { font-size: 13px; color: var(--text-tertiary); margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan ul li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.plan ul li svg { color: var(--green-600); flex: 0 0 auto; margin-top: 2px; }
.plans-link { text-align: center; margin-top: 28px; }
.plans-link a { color: var(--brand-fg); text-decoration: none; font-weight: 500; font-size: 14px; }
.plans-link a:hover { text-decoration: underline; }

/* —— FAQ —— */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-secondary); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -.005em;
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s ease; flex: 0 0 auto; color: var(--text-tertiary); }
.faq-item[open] summary .chev { transform: rotate(180deg); color: var(--brand-primary); }
.faq-item .faq-body { padding: 0 0 22px; color: var(--text-secondary); line-height: 1.65; max-width: 620px; }

/* —— Final CTA —— */
.fcta {
  background: linear-gradient(135deg, var(--violet-600), var(--violet-900));
  border-radius: 28px;
  padding: 64px 32px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.fcta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(249,112,102,.25), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(255,181,71,.18), transparent 50%);
  pointer-events: none;
}
.fcta > * { position: relative; }
.fcta h2 { color: #fff; margin-bottom: 16px; }
.fcta .sub { color: rgba(255,255,255,.88); font-size: 17px; max-width: 540px; margin: 0 auto 28px; line-height: 1.55; }
.fcta .signin-link { display: block; margin-top: 20px; color: rgba(255,255,255,.85); font-size: 14px; text-decoration: none; }
.fcta .signin-link:hover { color: #fff; text-decoration: underline; }
@media (min-width: 768px) { .fcta { padding: 96px 64px; } }

/* —— Footer —— */
.lfoot { background: var(--bg-secondary); border-top: 1px solid var(--border-secondary); padding: 64px 0 32px; }
.lfoot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lfoot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lfoot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; } }
.lfoot h3 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--text-primary); letter-spacing: -.005em; }
.lfoot ul { list-style: none; padding: 0; margin: 0; }
.lfoot ul li { padding: 6px 0; }
.lfoot ul li a { color: var(--text-secondary); font-size: 13px; text-decoration: none; }
.lfoot ul li a:hover { color: var(--brand-primary); }
.lfoot-brand img { height: 26px; margin-bottom: 14px; }
.lfoot-brand p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; max-width: 280px; margin: 0; }
.lfoot-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-secondary);
  display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center;
}
@media (min-width: 768px) { .lfoot-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.lfoot-bottom .copy { font-size: 12px; color: var(--text-tertiary); }
.lfoot-social { display: flex; gap: 6px; }
.lfoot-social a { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); border: 1px solid var(--border-secondary); transition: all .15s ease; }
.lfoot-social a:hover { background: var(--bg-tertiary); color: var(--brand-primary); border-color: var(--brand-primary); }

/* —— Theme toggle (floating) —— */
.theme-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 48px; height: 48px; border-radius: 99px; border: 1px solid var(--border-primary);
  background: var(--bg-secondary); color: var(--text-primary);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(15,17,24,.20);
  transition: all .2s ease;
}
.theme-fab:hover { transform: translateY(-2px); border-color: var(--brand-primary); color: var(--brand-primary); }
.theme-fab .moon, [data-theme="dark"] .theme-fab .sun { display: none; }
[data-theme="dark"] .theme-fab .moon { display: block; }

/* —— Reveal on scroll —— */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* Progressive enhancement: sem JS, com IO ausente, ou prefers-reduced-motion — conteudo visivel sem animacao */
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* Safety-net: se IntersectionObserver nao disparar em 1.5s (bot, screenshot headless, viewport curto),
   anima para visivel automaticamente. Se .in for adicionada antes, transition ja terminou. */
@keyframes klosi-reveal-safety { to { opacity: 1; transform: none; } }
.reveal { animation: klosi-reveal-safety 0.6s ease 1.5s forwards; }

/* —— Skip link —— */
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 16px; background: var(--brand-primary); color: #fff; border-radius: 8px; }

/* —— Tweaks panel (simple, custom) —— */
.tweaks-panel {
  position: fixed; right: 24px; bottom: 84px; z-index: 41;
  width: 280px; padding: 16px; border-radius: 14px;
  background: var(--bg-secondary); border: 1px solid var(--border-primary);
  box-shadow: 0 24px 48px -16px rgba(15,17,24,.25);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h6 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.tw-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 13px; }
.tw-row .swatches { display: flex; gap: 6px; }
.tw-row .swatch { width: 22px; height: 22px; border-radius: 99px; cursor: pointer; border: 2px solid transparent; }
.tw-row .swatch.active { border-color: var(--text-primary); }


/* ===== comercial.css ===== */
/* =====================================================================
   comercial.css — utilidades compartilhadas
   Toasts + Banner de cookies (LGPD)
===================================================================== */

/* ---------- Toasts ---------- */
.cm-toast-host {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
  width: min(440px, calc(100vw - 32px));
}
.cm-toast {
  pointer-events: auto;
  background: var(--bg-secondary, #fff);
  color: var(--text-primary, #18181b);
  border: 1px solid var(--border-primary, rgba(15,17,24,.08));
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  box-shadow: 0 12px 36px rgba(15, 17, 24, .12), 0 2px 6px rgba(15, 17, 24, .06);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}
.cm-toast--show {
  opacity: 1;
  transform: translateY(0);
}
.cm-toast__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--brand-primary, #6C3CE1) 14%, transparent);
  color: var(--brand-primary, #6C3CE1);
}
.cm-toast--erro .cm-toast__icon {
  background: color-mix(in oklch, #ef4444 14%, transparent);
  color: #ef4444;
}
.cm-toast__msg {
  flex: 1;
}

/* ---------- Banner de cookies ---------- */
.cm-cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 180;
  background: var(--bg-secondary, #fff);
  color: var(--text-primary, #18181b);
  border: 1px solid var(--border-primary, rgba(15,17,24,.08));
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 17, 24, .18), 0 4px 12px rgba(15, 17, 24, .06);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .26s ease, transform .26s ease;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
}
.cm-cookies--show {
  opacity: 1;
  transform: translateY(0);
}
.cm-cookies--fechando {
  opacity: 0;
  transform: translateY(16px);
}
.cm-cookies__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
}
.cm-cookies__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklch, var(--brand-primary, #6C3CE1) 12%, transparent);
  color: var(--brand-primary, #6C3CE1);
}
.cm-cookies__txt strong {
  display: block;
  font-family: var(--font-display, 'Outfit', system-ui, sans-serif);
  font-size: 16px;
  margin-bottom: 2px;
}
.cm-cookies__txt p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary, #4b5563);
}
.cm-cookies__txt a {
  color: var(--brand-primary, #6C3CE1);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cm-cookies__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

/* ---------- Painel de preferências ---------- */
.cm-cookies__panel {
  border-top: 1px solid var(--border-primary, rgba(15,17,24,.08));
  padding: 18px 20px 20px;
  background: var(--bg-tertiary, color-mix(in oklch, var(--bg-secondary, #fff) 96%, var(--brand-primary, #6C3CE1) 4%));
}
.cm-cookies__panel h4 {
  font-family: var(--font-display, 'Outfit', system-ui, sans-serif);
  font-size: 15px;
  margin: 0 0 4px;
}
.cm-cookies__hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-secondary, #4b5563);
  line-height: 1.5;
}
.cm-cookies__opcoes {
  display: grid;
  gap: 10px;
}
.cm-cookies__opt {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: var(--bg-secondary, #fff);
  border: 1px solid var(--border-secondary, rgba(15,17,24,.06));
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.cm-cookies__opt:hover {
  border-color: color-mix(in oklch, var(--brand-primary, #6C3CE1) 40%, transparent);
}
.cm-cookies__opt input { display: none; }
.cm-cookies__opt-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cm-cookies__opt-titulo {
  font-weight: 600;
  font-size: 14px;
}
.cm-cookies__opt-desc {
  font-size: 12.5px;
  color: var(--text-secondary, #4b5563);
  line-height: 1.45;
}

/* Toggle switch */
.cm-cookies__opt-toggle {
  width: 36px;
  height: 20px;
  background: color-mix(in oklch, var(--text-tertiary, #9ca3af) 30%, transparent);
  border-radius: 999px;
  position: relative;
  flex: 0 0 auto;
  transition: background .18s ease;
}
.cm-cookies__opt-toggle > span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: left .18s ease;
}
.cm-cookies__opt-toggle--on,
.cm-cookies__opt input:checked ~ .cm-cookies__opt-toggle {
  background: var(--brand-primary, #6C3CE1);
}
.cm-cookies__opt-toggle--on > span,
.cm-cookies__opt input:checked ~ .cm-cookies__opt-toggle > span {
  left: 18px;
}
.cm-cookies__opt--lock {
  cursor: default;
  opacity: .85;
}

.cm-cookies__panel-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .cm-cookies__inner {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px 16px;
  }
  .cm-cookies__icon { width: 40px; height: 40px; border-radius: 12px; }
  .cm-cookies__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .cm-cookies__actions .lbtn {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  .cm-cookies__panel { padding: 14px 16px 16px; }
}

/* Dark mode adjustments */
[data-theme="dark"] .cm-cookies,
[data-theme="dark"] .cm-toast {
  background: var(--bg-secondary, #1c1f2a);
  border-color: var(--border-primary, rgba(255,255,255,.08));
}
[data-theme="dark"] .cm-cookies__panel {
  background: var(--bg-tertiary, #14161e);
}
[data-theme="dark"] .cm-cookies__opt {
  background: var(--bg-secondary, #1c1f2a);
}

/* =====================================================================
   Mobile nav drawer (compartilhado por todas as páginas comerciais)
   - Backdrop escurecido com clique-fora pra fechar
   - Slide da direita pra esquerda
   - Lock de scroll do body quando aberto
===================================================================== */

/* Backdrop fica fora do drawer pra ficar acima do conteúdo,
   abaixo do drawer, e cobrir TODA a viewport */
.lnav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 26, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  z-index: 80;
}
.lnav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.lnav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--bg-primary, #ffffff);
  border-left: 1px solid var(--border-secondary, rgba(0,0,0,.08));
  box-shadow: -16px 0 40px rgba(15, 18, 26, .12);
  z-index: 90;
  padding: 84px 20px 24px;
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.lnav-drawer.open {
  transform: translateX(0) !important;
}
.lnav-drawer a {
  display: block;
  padding: 14px 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary, #15171d);
  text-decoration: none;
  border-bottom: 1px solid var(--border-secondary, rgba(0,0,0,.06));
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.lnav-drawer a:hover,
.lnav-drawer a:focus-visible {
  background: var(--bg-secondary, rgba(0,0,0,.04));
  color: var(--brand-primary, #6c3ce1);
}
.lnav-drawer a.lbtn {
  margin-top: 12px;
  border-bottom: 0;
  text-align: center;
  background: var(--brand-primary, #6c3ce1);
  color: #fff;
}
.lnav-drawer a.lbtn:hover {
  background: var(--brand-primary-strong, #5a2bcf);
  color: #fff;
}

/* Lock body scroll quando o drawer está aberto */
body.has-drawer-open {
  overflow: hidden;
}

/* Burger só aparece no mobile/tablet — em desktop o landing.css já esconde */
.lnav-burger {
  position: relative;
  z-index: 100; /* acima do drawer pra continuar clicável (X) */
}

/* Em telas grandes, escondemos qualquer drawer aberto residual */
@media (min-width: 1024px) {
  .lnav-drawer,
  .lnav-backdrop { display: none !important; }
  body.has-drawer-open { overflow: auto; }
}

/* Tema escuro */
[data-theme="dark"] .lnav-backdrop {
  background: rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .lnav-drawer {
  background: var(--bg-primary, #0f1117);
  border-left-color: var(--border-primary, rgba(255,255,255,.08));
  box-shadow: -16px 0 40px rgba(0, 0, 0, .5);
}
[data-theme="dark"] .lnav-drawer a {
  border-bottom-color: var(--border-secondary, rgba(255,255,255,.06));
}
[data-theme="dark"] .lnav-drawer a:hover,
[data-theme="dark"] .lnav-drawer a:focus-visible {
  background: var(--bg-secondary, rgba(255,255,255,.05));
}

/* =========================================================
   Utilities — substituem inline styles em páginas comerciais
   ========================================================= */

/* Logos light/dark — controle por tema, sem JS de display */
.lg-light { display: inline-block; }
.lg-dark  { display: none; }
[data-theme="dark"] .lg-light { display: none; }
[data-theme="dark"] .lg-dark  { display: inline-block; }

/* Idioma do rodapé */
.lfoot-locale {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Sections com fundo alternado */
.sec-bg-secondary { background: var(--bg-secondary); }
.sec-bg-tertiary  { background: var(--bg-tertiary, color-mix(in oklch, var(--bg-secondary) 96%, var(--brand-primary) 4%)); }

/* Tabela de planos: larguras das colunas */
.col-w-32 { width: 32%; }
.col-w-17 { width: 17%; }

/* Botão sobre fundo escuro (CTA invertido) */
.lbtn.on-dark {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}
.lbtn.on-dark:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .5);
}

/* Hero index — meta cards do dashboard */
.hp-meta-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hp-meta-value-sm { font-size: 14px; }
.hp-meta-status { font-size: 13px; color: var(--brand-primary); }
.hp-meta-status.is-status { /* alias semântico */ }
.hp-meta-spacer { margin-left: auto; }
.hp-pix-text {
  flex: 1;
  min-width: 0;
}
.hp-main-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Proof bar com padding compacto */
.proof.proof--compact { padding: 32px 0; }

/* Funcionalidades — barras animadas (alturas e delays fixos por posição) */
.mock-refs .chart .bar.feat-bar-1 { height: 30%; animation-delay: .05s; }
.mock-refs .chart .bar.feat-bar-2 { height: 55%; animation-delay: .12s; }
.mock-refs .chart .bar.feat-bar-3 { height: 42%; animation-delay: .19s; }
.mock-refs .chart .bar.feat-bar-4 { height: 70%; animation-delay: .26s; }
.mock-refs .chart .bar.feat-bar-5 { height: 50%; animation-delay: .33s; }
.mock-refs .chart .bar.feat-bar-6 { height: 88%; animation-delay: .40s; }
.mock-refs .chart .bar.feat-bar-7 { height: 95%; animation-delay: .47s; }
.mock-refs .chart .bar.feat-bar-8 { height: 78%; animation-delay: .54s; }

/* Funcionalidades — mini-cards do whitelabel */
.wl-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
}
.wl-info-card {
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--wl-soft);
}
.wl-info-card__label {
  font-size: 10px;
  text-transform: uppercase;
  opacity: .55;
  letter-spacing: .05em;
  margin-bottom: 3px;
}
.wl-info-card__value {
  font-weight: 600;
  font-size: 13px;
  color: var(--wl-text);
}
.feat-mock-frame--clip { overflow: hidden; }

/* Funcionalidades — "who" row */
.who-grow { flex: 1; }

/* Funcionalidades — legend dots */
.legend-dot--enviado  { background: var(--brand-primary); }
.legend-dot--aceito   { background: #00B881; }
.legend-dot--pago     { background: var(--accent-primary); }

/* Index hero — destaques de cor (texto) */
.txt-brand   { color: var(--brand-primary); }
.txt-accent  { color: var(--accent-primary); }
.txt-tertiary { color: var(--text-tertiary); }

/* Ajuda — bloco da comunidade (sla-table override) */
.sla-table.sla-table--ghost {
  background: transparent;
  padding: 0;
  margin-bottom: 18px;
}
.sla-row.sla-row--accent {
  background: var(--accent-soft);
  border: 0;
  border-radius: 10px;
}
.sla-row--accent .plan,
.sla-row--accent .ch,
.sla-row--accent .sla {
  color: var(--accent-primary);
}

/* Ajuda — link em mensagem vazia / feedback de busca */
.search-link { color: var(--brand-primary); }
.search-result-success { color: var(--brand-primary); font-weight: 500; }

/* Blog — covers com gradiente (paleta por categoria) */
.blog-card .cover.cover-grad-1 { background: linear-gradient(135deg,#6C3CE1,#A77FE8); }
.blog-card .cover.cover-grad-2 { background: linear-gradient(135deg,#0EA5E9,#67E8F9); }
.blog-card .cover.cover-grad-3 { background: linear-gradient(135deg,#10b981,#6ee7b7); }
.blog-card .cover.cover-grad-4 { background: linear-gradient(135deg,#f59e0b,#fbbf24); }
.blog-card .cover.cover-grad-5 { background: linear-gradient(135deg,#ec4899,#f9a8d4); }
.blog-card .cover.cover-grad-6 { background: linear-gradient(135deg,#7c3aed,#c4b5fd); }
.blog-card .cover.cover-grad-7 { background: linear-gradient(135deg,#dc2626,#fca5a5); }
.blog-card .cover.cover-grad-8 { background: linear-gradient(135deg,#0891b2,#a5f3fc); }
.blog-card .cover.cover-grad-9 { background: linear-gradient(135deg,#475569,#94a3b8); }

/* Blog — newsletter inline form */
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-secondary);
  background: var(--bg-primary);
  color: var(--text-primary);
  font: inherit;
}
.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Blog — logo size override */
.lg-32 { height: 32px; }

/* Tour-toggle (welcome) — opacidade */
.welcome__tour-toggle--muted { opacity: .65; }

/* Carreiras — fundo alternativo */
.car-section--soft {
  background: var(--bg-tertiary, color-mix(in oklch, var(--bg-secondary) 96%, var(--brand-primary) 4%));
}

/* Comparativo — larguras mínimas das colunas */
.compare-wrap--scroll { overflow-x: auto; }
.compare-table th.col-feat   { min-width: 220px; }
.compare-table th.col-vendor { min-width: 110px; }
.compare-table th.col-vendor.klosi { min-width: 100px; }
.compare-table th.col-diff   { min-width: 240px; }

/* Eyebrow sobre fundo escuro (demo card) */
.eyebrow.on-dark { color: rgba(255, 255, 255, .85); }

.txt-primary { color: var(--text-primary); font-weight: 600; }

