/* ============================================================
   IOQUALIDADE — Modern SaaS Redesign
   Palette: Blue · White · Black/Slate (with subtle accents)
   ============================================================ */

:root {
  color-scheme: light;
  /* Surfaces */
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;

  /* Text */
  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  /* Brand */
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --brand-3: #1d4ed8;
  --brand-soft: #dbeafe;
  --brand-softer: #eff6ff;

  /* Status */
  --green: #16a34a;
  --green-soft: #dcfce7;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;

  /* Effects */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, .06);
  --shadow: 0 6px 18px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, .12);
  --shadow-glow: 0 0 0 4px rgba(37, 99, 235, .15);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; background: transparent; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
h2 { font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 15px; line-height: 1.25; font-weight: 700; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---- Brand ---- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--ink); letter-spacing: -.01em; }
.mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 900; font-size: 14px; box-shadow: 0 6px 16px rgba(37, 99, 235, .35); }

/* ---- Layout helpers ---- */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.stack { display: grid; gap: 16px; align-content: start; }

/* ---- Buttons ---- */
.btn, .icon-btn {
  min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--brand); color: #fff;
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-xs);
}
.btn:hover { background: var(--brand-3); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.secondary, .icon-btn { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn.secondary:hover, .icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); transform: translateY(-1px); }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #b91c1c; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }

/* ---- Panels ---- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.panel:hover { box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel-large { min-height: 420px; }
.loading-box, .empty-state { color: var(--muted); padding: 22px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); text-align: center; font-weight: 500; }
.notice { min-height: 20px; color: var(--amber); font-size: 13px; font-weight: 500; }

/* ---- Forms ---- */
.field { display: grid; gap: 6px; }
.field span { color: var(--ink-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px; background: #fff; color: var(--ink); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-xs);
}
textarea { min-height: 130px; resize: vertical; font-family: var(--mono); font-size: 12px; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: var(--shadow-glow); }
.search-input { max-width: 320px; border-radius: 999px; padding: 10px 16px; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.compact-form { display: grid; gap: 14px; }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 11px; font-weight: 700; border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .03em; }
.badge.ok { background: var(--green-soft); color: #15803d; border-color: #bbf7d0; }
.badge.warn { background: var(--amber-soft); color: #b45309; border-color: #fde68a; }
.badge.bad { background: var(--red-soft); color: #b91c1c; border-color: #fecaca; }
.badge.info { background: var(--brand-soft); color: var(--brand-3); border-color: #bfdbfe; }

/* ---- App Shell ---- */
.shell { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; background: var(--bg); }
.sidebar {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  border-right: 1px solid #0b1220;
  padding: 22px 14px;
  position: sticky; top: 0; height: 100vh;
  color: #e2e8f0;
  display: flex; flex-direction: column; gap: 14px;
}
.sidebar .brand { color: #fff; padding: 0 8px 4px; }
.sidebar .brand .mark { box-shadow: 0 8px 22px rgba(37, 99, 235, .55); }
.plan-pill { margin: 0 4px; padding: 8px 12px; border-radius: 10px; background: rgba(37, 99, 235, .15); color: #93c5fd; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid rgba(59, 130, 246, .3); }
.nav { display: grid; gap: 3px; }
.nav a, .nav button { width: 100%; text-align: left; background: transparent; color: #94a3b8; border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 13.5px; transition: background .15s ease, color .15s ease; }
.nav a:hover, .nav button:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.nav a.active, .nav button.active { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .4); }
.nav-sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 8px 4px; }

.main { width: min(1380px, 100%); padding: 28px 36px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.eyebrow { color: var(--brand); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.mobile-top { display: none; }

/* ---- Views ---- */
.view { display: none; animation: fadeUp .25s ease; }
.view.active { display: grid; gap: 18px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Metrics ---- */
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: grid; gap: 6px; box-shadow: var(--shadow-xs); transition: transform .2s ease, box-shadow .2s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-card span { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.metric-card strong { font-size: 28px; line-height: 1.05; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.metric-card small { color: var(--muted); font-size: 12px; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .9fr); gap: 18px; align-items: start; }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- BM cards ---- */
.bm-grid { display: grid; gap: 12px; }
.bm-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 11px; color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; box-shadow: var(--shadow-xs); }
.bm-card:hover { border-color: var(--brand-2); box-shadow: 0 12px 30px rgba(37, 99, 235, .12); transform: translateY(-2px); }
.bm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bm-card-top strong { font-size: 15px; font-weight: 700; }
.bm-card-meta, .meta-row { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; font-weight: 500; }

.score-track, .budget-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.score-track i, .budget-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

.timeline-list { display: grid; gap: 8px; }
.timeline-item { width: 100%; text-align: left; display: grid; gap: 3px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); transition: background .15s; }
.timeline-item:hover { background: var(--brand-softer); }
.timeline-item span { color: var(--muted); font-size: 12px; }

.detail-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.detail-header { background: linear-gradient(135deg, #ffffff, var(--brand-softer)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }

/* ---- Risk panels ---- */
.risk-panel { border-left: 4px solid var(--green); }
.risk-panel.warn { border-left-color: var(--amber); }
.risk-panel.bad { border-left-color: var(--red); }
.risk-summary { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.risk-summary strong { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.risk-reasons { display: grid; gap: 8px; }
.risk-reasons div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; }

/* ---- Charts & misc ---- */
.chart-box { height: 240px; }
.chart-box.tall { height: 340px; }
.tags-list, .preset-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tag-chip, .preset-tags button, .var-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; border-radius: 999px; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 12px; transition: all .15s; }
.tag-chip:hover, .preset-tags button:hover { background: var(--brand-soft); border-color: #bfdbfe; color: var(--brand-3); }
.tag-chip button { border: 0; background: transparent; color: var(--muted); font-weight: 900; padding: 0 2px; }
.tag-chip button:hover { color: var(--red); }
.note-area { min-height: 150px; }
.budget-form { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; gap: 10px; align-items: end; margin-bottom: 14px; }
.budget-track { height: auto; background: transparent; }
.budget-track div { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.budget-track i { height: 10px; border-radius: 999px; }
.page-list { display: grid; gap: 8px; }
.page-item { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.account-group { display: grid; gap: 10px; margin-bottom: 18px; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: middle; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
tr:hover td { background: var(--brand-softer); }
td { font-size: 13.5px; }
td a { color: var(--brand); font-weight: 600; }

/* ---- Tools / Tabs ---- */
.segmented { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); width: fit-content; }
.tools-tab { border-radius: 8px; padding: 8px 14px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; transition: all .15s; }
.tools-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.tools-panel { display: none; }
.tools-panel.active { display: block; animation: fadeUp .25s ease; }
.upload-zone { min-height: 160px; display: grid; place-items: center; text-align: center; gap: 8px; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-2); padding: 28px; margin-bottom: 14px; transition: all .2s; cursor: pointer; }
.upload-zone:hover { border-color: var(--brand-2); background: var(--brand-softer); }
.upload-zone span { color: var(--muted); font-weight: 500; }
.upload-zone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.tool-options { grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 9px; margin: 14px 0; }
.var-opt { cursor: pointer; user-select: none; }
.var-opt.checked { background: var(--brand-soft); border-color: #bfdbfe; color: var(--brand-3); }
.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.preview-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-xs); transition: transform .2s; }
.preview-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.preview-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--surface-2); }
.preview-card div { display: grid; gap: 3px; padding: 10px 11px; }
.preview-card span { color: var(--muted); font-size: 12px; }
.action-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }

/* ---- Locked panel ---- */
.locked-panel { position: relative; overflow: hidden; min-height: 240px; }
.locked-content { filter: blur(4px); pointer-events: none; }
.locked-overlay { position: absolute; inset: 58px 0 0; display: grid; place-content: center; text-align: center; gap: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .96)); padding: 20px; }
.license-box, .profile-grid { display: grid; gap: 8px; }
.profile-grid { grid-template-columns: 120px 1fr; }
.profile-grid span { color: var(--muted); }
.bookmarklet-button-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

/* ---- Modals ---- */
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(11, 18, 32, .55); backdrop-filter: blur(6px); padding: 20px; z-index: 50; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card { width: min(580px, 100%); background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 24px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; animation: fadeUp .2s ease; }

/* ---- Toasts ---- */
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-lg); font-weight: 600; border-left: 4px solid var(--brand); animation: slideUp .25s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--red); }

/* ---- Auth ---- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, #0b1220 0%, #1e3a8a 100%); position: relative; overflow: hidden; }
.auth-wrap::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, .35), transparent 50%), radial-gradient(circle at 80% 80%, rgba(59, 130, 246, .25), transparent 50%); pointer-events: none; }
.auth-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.auth-card .brand { margin-bottom: 22px; font-size: 18px; }
.auth-card form { display: grid; gap: 14px; margin-top: 18px; }

/* ---- Split layout ---- */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 16px; align-items: start; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-page { background: #fff; }
.landing-nav { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 5%; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.landing-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.landing-links a:hover { color: var(--brand); }

.hero-product {
  min-height: 720px;
  display: grid; align-content: center; gap: 36px;
  padding: 80px 5% 60px;
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% 0%, var(--brand-softer) 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, #f6f8fc 100%);
  overflow: hidden;
  position: relative;
}
.hero-product::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(37, 99, 235, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); pointer-events: none; }
.hero-copy { max-width: 880px; margin: 0 auto; display: grid; gap: 22px; position: relative; z-index: 2; }
.hero-copy h1 { font-size: 76px; line-height: .98; letter-spacing: -.035em; color: var(--ink); }
.hero-copy h1 span.accent { background: linear-gradient(135deg, var(--brand) 0%, #38bdf8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-copy .lead { color: var(--muted); font-size: 19px; max-width: 700px; margin: 0 auto; line-height: 1.55; }
.hero-copy .row { justify-content: center; gap: 14px; margin-top: 6px; }
.hero-copy .btn { font-size: 15px; padding: 0 26px; min-height: 50px; border-radius: var(--radius); }

.product-board { width: min(1180px, 100%); margin: 0 auto; min-height: 360px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .98); box-shadow: 0 30px 60px -12px rgba(15, 23, 42, .18); padding: 22px; display: grid; gap: 18px; position: relative; z-index: 2; text-align: left; }
.board-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.board-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.board-metrics div, .board-panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 5px; }
.board-metrics span, .board-panel span, .board-panel small { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.board-metrics strong, .board-panel strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.board-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 12px; }
.board-panel i { display: block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

.landing-section { padding: 80px 5%; }
.landing-section.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-head.left { text-align: left; margin: 0 0 36px; }
.section-head h2 { margin: 6px 0 12px; font-size: 38px; line-height: 1.1; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.55; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-xs); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-soft); }
.feature-grid article h3 { font-size: 17px; margin: 14px 0 8px; }
.feature-grid article p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 6px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; }

.split-band { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr); gap: 32px; align-items: start; }
.tool-feature-list { display: grid; gap: 12px; }
.tool-feature-list article { min-height: 82px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; box-shadow: var(--shadow-xs); transition: border-color .2s, box-shadow .2s; }
.tool-feature-list article:hover { border-color: var(--brand-2); box-shadow: var(--shadow-sm); }
.tool-feature-list span { color: var(--muted); }

.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps-grid article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-xs); }
.steps-grid article > span { color: var(--brand); font-weight: 900; font-size: 22px; }

.pricing-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow-xs); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 18px 45px rgba(37, 99, 235, .18); }
.price-card.featured::before { content: 'Mais Popular'; position: absolute; top: 12px; right: 12px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.price { font-size: 32px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.landing-page .price-card span { color: var(--muted); }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 18px; background: linear-gradient(135deg, var(--ink) 0%, var(--brand-3) 100%); color: #fff; padding: 36px 5%; border-radius: var(--radius-lg); margin: 0 5% 60px; }
.cta-band h2 { color: #fff; font-size: 26px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin-top: 6px; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--surface-2); }

footer { text-align: center; padding: 32px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; background: #fff; }

/* ---- Public report ---- */
.public-report { min-height: 100vh; padding: 32px; background: var(--bg); }
.report-shell { max-width: 980px; margin: 0 auto; display: grid; gap: 18px; }

/* ---- Trust row ---- */
.trust-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; justify-content: center; }
.trust-row span { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600; }

/* ============================================================
   LANDING — Extra Components
   ============================================================ */
.pill-badge { display: inline-flex; align-items: center; gap: 8px; align-self: center; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; font-weight: 600; box-shadow: var(--shadow-xs); margin: 0 auto; }
.pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--brand); position: relative; box-shadow: 0 0 0 0 rgba(37, 99, 235, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .55); } 70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } }

.btn-lg { min-height: 52px; padding: 0 28px; font-size: 15px; border-radius: 14px; }
.hero-cta { gap: 12px; margin-top: 6px; }

/* Stats strip below hero */
.stats-strip { display: flex; align-items: center; justify-content: center; gap: 32px; padding: 28px 5%; background: var(--ink); color: #fff; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.06); }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-item strong { font-size: 28px; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(135deg, #fff, #93c5fd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item span { color: #94a3b8; font-size: 13px; font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.12); }

/* Bar list inside hero board */
.bar-list { display: grid; gap: 8px; margin-top: 4px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-size: 12px; }
.bar-row label { color: var(--ink-2); font-weight: 600; }
.bar-row .bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 999px; }
.bar-row span { color: var(--ink); font-weight: 700; text-align: right; }

/* Dots */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--brand); margin-right: 4px; vertical-align: middle; }
.dot.blue { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; box-shadow: var(--shadow-xs); overflow: hidden; transition: box-shadow .2s; }
.faq-list details[open] { box-shadow: var(--shadow-sm); border-color: var(--brand-soft); }
.faq-list summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 15px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background .15s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 22px; color: var(--brand); font-weight: 400; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { background: var(--brand-softer); }
.faq-list p { padding: 0 22px 18px; color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* Trust row centered (override generic) */
.hero-product .trust-row { justify-content: center; margin-top: 12px; }
.hero-product .trust-row span { background: rgba(255,255,255,.7); border-color: var(--line); }

/* Footer */
footer .footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; max-width: 1200px; margin: 0 auto; }
.footer-links a { color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--brand); }

/* CTA band override (override .row alignment) */
.cta-band { margin: 0 5% 60px; }
.cta-band > div h2 { color: #fff; font-size: 28px; line-height: 1.15; margin-bottom: 6px; }
.cta-band > div p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 15px; }

/* ============================================================
   APP — Polish for Tables, Account groups, Tools
   ============================================================ */
.account-group { display: grid; gap: 12px; margin-bottom: 22px; padding: 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.account-group:last-child { margin-bottom: 0; }
.account-group .panel-head { margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.account-group h3 { font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.account-group h3::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--brand); }
.account-group .table-wrap { background: #fff; }

/* Hover row in app tables */
.panel .table-wrap tr:hover td { background: var(--brand-softer); }

/* Better topbar action layout */
.topbar > div { display: grid; gap: 4px; }
.topbar h1 { font-size: 26px; }
.topbar-actions { gap: 10px; }

/* Sidebar “Abrir Ferramenta” link removed via HTML; ensure consistent style for plain anchor inside nav (none anymore but kept for safety) */
.nav a:not(.active):not(.btn) { color: #94a3b8; }

/* Modal head spacing */
.modal-card .panel-head { margin-bottom: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .metrics-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-grid, .detail-grid, .split, .split-band { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-options, .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid.six, .steps-grid, .board-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 56px; }
}

@media (max-width: 780px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
  .mobile-top .brand { color: #fff; }
  .main { padding: 18px 16px; }
  .topbar, .detail-actions, .panel-head, .cta-band { align-items: flex-start; flex-direction: column; }
  .topbar-actions { width: 100%; }
  .metrics-grid, .pricing-grid, .feature-grid, .tool-options, .preview-grid { grid-template-columns: 1fr; }
  .inline-form, .budget-form { grid-template-columns: 1fr; }
  .landing-nav { padding: 14px 5%; }
  .hero-product { padding: 60px 5% 40px; min-height: auto; }
  .hero-copy h1 { font-size: 42px; }
  .board-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-links { gap: 12px; font-size: 13px; }
  .section-head h2 { font-size: 28px; }
  .price-card.featured { transform: none; }
}
