/* ==========================================================================
   Laudos de Tiro — Sistema de design "Tech Confiável" (petróleo/ardósia)
   Self-contained, sem build/CDN. Landing + app compartilham estes tokens.
   ========================================================================== */

:root {
  /* Superfícies */
  --bg: #F6F9FB;
  --bg-grad: radial-gradient(1200px 600px at 85% -10%, #E6F5F8 0%, rgba(230,245,248,0) 55%),
             radial-gradient(900px 500px at -10% 0%, #EEF3F8 0%, rgba(238,243,248,0) 50%);
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --surface-3: #E8EEF3;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Tinta */
  --ink: #0F172A;
  --text: #334155;
  --muted: #64748B;
  --faint: #94A3B8;

  /* Marca — petróleo/teal */
  --primary: #0E7490;
  --primary-600: #0891B2;
  --primary-500: #06B6D4;
  --primary-050: #ECFEFF;
  --primary-100: #CFF3F7;
  --on-primary: #FFFFFF;
  --grad: linear-gradient(135deg, #0891B2 0%, #0E7490 100%);
  --grad-deep: linear-gradient(160deg, #0F2C3A 0%, #0E4A5C 55%, #0E7490 100%);

  /* Estados */
  --ok: #15803D;      --ok-bg: #ECFDF3;   --ok-bd: #BBF7D0;
  --warn: #B45309;    --warn-bg: #FFFBEB; --warn-bd: #FDE68A;
  --danger: #B91C1C;  --danger-bg: #FEF2F2; --danger-bd: #FECACA;
  --info: #0E7490;    --info-bg: #ECFEFF; --info-bd: #A5E8F0;

  /* Forma */
  --r-xs: 7px; --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --ring: 0 0 0 3px rgba(8,145,178,.28);

  /* Sombra */
  --sh-xs: 0 1px 2px rgba(15,23,42,.06);
  --sh-sm: 0 2px 6px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --sh: 0 8px 24px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.05);
  --sh-teal: 0 12px 30px rgba(8,145,178,.22);

  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1420;
    --bg-grad: radial-gradient(1100px 600px at 88% -12%, rgba(8,145,178,.16) 0%, rgba(8,145,178,0) 55%),
               radial-gradient(800px 500px at -8% -5%, rgba(14,116,144,.14) 0%, rgba(14,116,144,0) 55%);
    --surface: #0F1B2A;
    --surface-2: #16273A;
    --surface-3: #1E3350;
    --border: #1E3350;
    --border-strong: #2B4468;
    --ink: #F1F5F9;
    --text: #CBD5E1;
    --muted: #93A4BC;
    --faint: #6B7E99;
    --primary: #22C6E0;
    --primary-600: #38D3E8;
    --primary-500: #67E8F9;
    --primary-050: #0C2A33;
    --primary-100: #103a44;
    --on-primary: #04222B;
    --grad: linear-gradient(135deg, #22C6E0 0%, #0E9FBE 100%);
    --grad-deep: linear-gradient(160deg, #0A1420 0%, #0E3542 55%, #0E7490 100%);
    --ok: #4ADE80;   --ok-bg: #0C2A1C;  --ok-bd: #14532D;
    --warn: #FBBF24; --warn-bg: #2A2410; --warn-bd: #78591C;
    --danger:#F87171;--danger-bg:#2A1414;--danger-bd:#7F1D1D;
    --info: #67E8F9; --info-bg:#0C2A33;  --info-bd:#155E6B;
    --sh-sm: 0 2px 6px rgba(0,0,0,.35);
    --sh: 0 12px 30px rgba(0,0,0,.45);
    --sh-teal: 0 14px 34px rgba(8,145,178,.30);
  }
}

/* dark manual (toggle) — espelha o media query */
:root[data-theme="dark"] {
  --bg:#0A1420; --surface:#0F1B2A; --surface-2:#16273A; --surface-3:#1E3350;
  --border:#1E3350; --border-strong:#2B4468; --ink:#F1F5F9; --text:#CBD5E1;
  --muted:#93A4BC; --faint:#6B7E99; --primary:#22C6E0; --primary-600:#38D3E8;
  --primary-500:#67E8F9; --primary-050:#0C2A33; --primary-100:#103a44; --on-primary:#04222B;
  --grad:linear-gradient(135deg,#22C6E0 0%,#0E9FBE 100%);
  --grad-deep:linear-gradient(160deg,#0A1420 0%,#0E3542 55%,#0E7490 100%);
  --bg-grad: radial-gradient(1100px 600px at 88% -12%, rgba(8,145,178,.16) 0%, rgba(8,145,178,0) 55%);
  --ok:#4ADE80;--ok-bg:#0C2A1C;--ok-bd:#14532D; --warn:#FBBF24;--warn-bg:#2A2410;--warn-bd:#78591C;
  --danger:#F87171;--danger-bg:#2A1414;--danger-bd:#7F1D1D; --info:#67E8F9;--info-bg:#0C2A33;--info-bd:#155E6B;
  --sh-sm:0 2px 6px rgba(0,0,0,.35); --sh:0 12px 30px rgba(0,0,0,.45); --sh-teal:0 14px 34px rgba(8,145,178,.30);
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .4em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-600); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  --_bg: var(--surface); --_fg: var(--ink);
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font: inherit; font-weight: 650; font-size: .95rem; line-height: 1;
  padding: .78rem 1.25rem; border-radius: var(--r-sm); border: 1px solid var(--border-strong);
  background: var(--_bg); color: var(--_fg); cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--sh-sm); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { --_bg: var(--grad); --_fg: var(--on-primary); border-color: transparent; box-shadow: var(--sh-teal); }
.btn-primary:hover { box-shadow: 0 16px 36px rgba(8,145,178,.32); }
.btn-ghost { --_bg: transparent; --_fg: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad-deep);
  display: grid; place-items: center; box-shadow: var(--sh-teal); flex: none;
}
.brand .mark svg { width: 21px; height: 21px; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: flex; gap: .35rem; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text); font-weight: 550; font-size: .93rem; padding: .5rem .8rem; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { color: var(--ink); border-color: var(--border-strong); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { font-size: 1.18rem; margin-bottom: 1.7rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; color: var(--muted); font-size: .86rem; }
.hero-trust b { color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem; border-radius: 999px;
  background: var(--primary-050); color: var(--primary-600); border: 1px solid var(--primary-100);
  font-size: .8rem; font-weight: 650;
}
.chip svg { width: 15px; height: 15px; }

/* documento flutuante (arte do hero) */
.doc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh); padding: 1.5rem; position: relative; transform: rotate(-1.4deg);
  transition: transform .3s ease;
}
.doc-card:hover { transform: rotate(0deg) translateY(-4px); }
.doc-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(8,145,178,.06), transparent 40%); pointer-events: none;
}
.doc-head { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--border-strong); margin-bottom: 1rem; }
.doc-seal { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-deep); display: grid; place-items: center; box-shadow: var(--sh-teal); flex: none; }
.doc-seal svg { width: 24px; height: 24px; }
.doc-line { height: 9px; border-radius: 6px; background: var(--surface-2); margin: .55rem 0; }
.doc-line.s { width: 55%; } .doc-line.m { width: 78%; } .doc-line.l { width: 92%; }
.doc-approved {
  margin-top: 1.1rem; display: flex; align-items: center; gap: .55rem; padding: .7rem .9rem;
  background: var(--ok-bg); border: 1px solid var(--ok-bd); color: var(--ok); border-radius: var(--r-sm); font-weight: 650; font-size: .9rem;
}
.doc-qr { position: absolute; bottom: -18px; right: -14px; width: 78px; height: 78px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-sm); display: grid; place-items: center; }
.doc-qr svg { width: 54px; height: 54px; }

/* ---------- Faixa de confiança ---------- */
.trustbar { border-block: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.trustbar .row { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; justify-content: center; align-items: center; padding: 1.1rem 0; }
.trust-item { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-weight: 600; font-size: .9rem; }
.trust-item svg { width: 20px; height: 20px; color: var(--primary-600); flex: none; }

/* ---------- Seções ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(2rem,4vw,3rem); text-align: center; }
.section-head .lead { margin-inline: auto; }

/* ---------- Grid de features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.5rem; box-shadow: var(--sh-xs); transition: transform .18s ease, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--primary-100); }
.feature .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--primary-050); color: var(--primary-600); border: 1px solid var(--primary-100);
}
.feature .ic svg { width: 23px; height: 23px; }
.feature h3 { margin-bottom: .35rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Como funciona (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.4rem 1.25rem; box-shadow: var(--sh-xs); }
.step .n {
  counter-increment: step; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: var(--on-primary);
  display: grid; place-items: center; font-weight: 800; margin-bottom: .8rem; box-shadow: var(--sh-teal);
}
.step .n::before { content: counter(step); }
.step h3 { font-size: 1rem; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Seção segurança ---------- */
.secure {
  background: var(--grad-deep); color: #E6F6FA; border-radius: var(--r-xl); padding: clamp(2rem,5vw,3.5rem);
  position: relative; overflow: hidden; box-shadow: var(--sh);
}
.secure::after { content:""; position:absolute; width:340px; height:340px; right:-80px; top:-120px; border-radius:50%;
  background: radial-gradient(circle, rgba(103,232,249,.22), transparent 65%); }
.secure h2 { color: #fff; }
.secure .lead { color: #B9E6EF; }
.secure-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.8rem; position: relative; }
.secure-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 1.2rem; backdrop-filter: blur(4px); }
.secure-item .ic { color: #67E8F9; margin-bottom: .6rem; } .secure-item .ic svg { width: 22px; height: 22px; }
.secure-item h3 { color: #fff; font-size: 1rem; margin-bottom: .25rem; }
.secure-item p { color: #A9D8E2; font-size: .87rem; margin: 0; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(2.2rem,5vw,3.4rem); box-shadow: var(--sh-sm); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; color: var(--muted); font-size: .9rem; margin-top: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-grid .brand { margin-bottom: .6rem; }

/* ==========================================================================
   APP interno (login / painel / processos)
   ========================================================================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-aside { background: var(--grad-deep); color: #E6F6FA; padding: clamp(2rem,5vw,3.5rem); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::after { content:""; position:absolute; width:420px; height:420px; right:-140px; bottom:-160px; border-radius:50%; background: radial-gradient(circle, rgba(103,232,249,.20), transparent 65%); }
.auth-aside h2 { color:#fff; max-width: 18ch; }
.auth-aside .lead { color:#B9E6EF; }
.auth-aside .brand { color: #fff; }
.auth-aside .brand small { color: #A9D8E2; }
.auth-main { display: grid; place-items: center; padding: 2rem; background: var(--bg); background-image: var(--bg-grad); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh); padding: clamp(1.6rem,4vw,2.4rem); }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .84rem; font-weight: 650; color: var(--ink); margin-bottom: .4rem; }
.input {
  width: 100%; font: inherit; font-size: .96rem; padding: .8rem .9rem; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary-600); box-shadow: var(--ring); }
.divider { display:flex; align-items:center; gap:.8rem; color:var(--faint); font-size:.8rem; margin: 1.2rem 0; }
.divider::before, .divider::after { content:""; height:1px; background:var(--border); flex:1; }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

/* app shell */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 1.1rem .85rem; display: flex; flex-direction: column; gap: .2rem; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: .3rem .5rem 1rem; }
.side-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 1rem .8rem .35rem; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: 10px; color: var(--text); font-weight: 550; font-size: .93rem; }
.side-link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.side-link.active { background: var(--primary-050); color: var(--primary-600); box-shadow: inset 0 0 0 1px var(--primary-100); }
.side-link svg { width: 19px; height: 19px; flex: none; }
.side-link .badge-count { margin-left: auto; background: var(--primary-600); color: #fff; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 66px; display: flex; align-items: center; gap: 1rem; padding: 0 clamp(1rem,3vw,2rem); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.topbar .search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: .55rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: .5rem .8rem; color: var(--muted); }
.topbar .search input { border: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; outline: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.content { padding: clamp(1.2rem, 3vw, 2rem); }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.page-title h1 { font-size: 1.55rem; margin: 0; }

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.2rem; box-shadow: var(--sh-xs); }
.stat .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.stat .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-050); color: var(--primary-600); border: 1px solid var(--primary-100); }
.stat .ic svg { width: 20px; height: 20px; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .86rem; margin-top: .2rem; }
.stat .delta { font-size: .78rem; font-weight: 700; padding: .12rem .45rem; border-radius: 999px; }
.stat .delta.up { color: var(--ok); background: var(--ok-bg); }

.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-xs); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card-head h3 { margin: 0; font-size: 1.02rem; }
.card-body { padding: 1.25rem; }
.card-pad { padding: 1.25rem; }

/* tabela */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: .7rem 1.25rem; border-bottom: 1px solid var(--border); }
.table td { padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); font-size: .92rem; color: var(--text); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.cel-nome { font-weight: 650; color: var(--ink); }
.cel-sub { font-size: .8rem; color: var(--muted); }

/* badges de estado */
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; border: 1px solid transparent; }
.badge::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-bd); }
.b-info { color: var(--info); background: var(--info-bg); border-color: var(--info-bd); }
.b-warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-bd); }
.b-danger { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-bd); }
.b-muted { color: var(--muted); background: var(--surface-2); border-color: var(--border); }

/* progresso do processo */
.timeline { display: flex; align-items: center; gap: 0; margin: .4rem 0; }
.tl-step { display: flex; align-items: center; flex: 1; }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--faint); border: 2px solid var(--border); font-size: .7rem; flex: none; z-index: 1; }
.tl-dot.done { background: var(--grad); color: #fff; border-color: transparent; }
.tl-dot.now { background: var(--surface); color: var(--primary-600); border-color: var(--primary-600); box-shadow: var(--ring); }
.tl-bar { height: 3px; flex: 1; background: var(--border); }
.tl-bar.done { background: var(--primary-600); }

.activity { display: flex; flex-direction: column; }
.act { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.act:last-child { border-bottom: 0; }
.act .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--primary-050); color: var(--primary-600); }
.act .dot svg { width: 17px; height: 17px; }
.act .t { font-size: .9rem; color: var(--ink); font-weight: 550; }
.act .s { font-size: .78rem; color: var(--muted); }

/* util */
.hide-mobile { }
.only-mobile { display: none; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.gap-sm{gap:.5rem}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}

/* ==========================================================================
   Responsivo — tablet e celular (organiza tudo na vertical, sem estouro lateral)
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; margin-inline: auto; order: -1; }
  .doc-card { transform: none; }
  .doc-qr { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .secure-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  /* sidebar vira topo compacto */
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); gap: .1rem; padding: .5rem; }
  .sidebar .brand, .side-label { display: none; }
  .side-link { white-space: nowrap; padding: .5rem .7rem; }
  .side-link .badge-count { display: none; }
}
/* header compacto (tablet e menor): sem subtítulo/nav, botão curto, sem estouro */
@media (max-width: 900px) {
  .nav { gap: .6rem; height: 64px; }
  .nav-links { display: none; }
  .brand { font-size: 1.02rem; }
  .brand small { display: none; }
  .brand .mark { width: 34px; height: 34px; }
  .nav-actions { margin-left: auto; gap: .4rem; }
  .site-header .btn-primary { padding: .62rem .95rem; font-size: .9rem; }
  .btn-more { display: none; }
}
@media (max-width: 640px) {
  .only-mobile { display: inline-flex; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
  .footer-grid { flex-direction: column; }
  .nav { height: 62px; }
  /* tabela responsiva: cada linha vira cartão */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: .8rem; padding: .3rem .2rem; background: var(--surface); }
  .table td { border: 0; padding: .5rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: right; }
  .table td::before { content: attr(data-label); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; text-align: left; }
  .page-title { align-items: flex-start; }
}
