/* ===== BrudamTMS landing — styles (direção Clean) =====
   Recriado a partir do handoff Claude Design (brudam/BrudamTMS Landing.html).
   Stack: Blade + JS vanilla. Apenas a direção "Clean" foi portada. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  --accent: #F26A1B;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, #fff);
  --ink: #16120D;
  --ink-2: #5C554C;
  --ink-3: #8A8278;
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-2: #F4F2ED;
  --line: #EBE7DF;
  --dark: #141009;
  --dark-2: #211B12;
  --radius: 16px;
  --radius-sm: 11px;
  --map-line: #C9C3B8;
  --logo-ink: #1A150E;
  --font-head: "Sora", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(20,16,9,.05), 0 1px 1px rgba(20,16,9,.04);
  --shadow-md: 0 8px 30px -10px rgba(20,16,9,.14), 0 2px 8px rgba(20,16,9,.05);
  --shadow-lg: 0 40px 80px -30px rgba(20,16,9,.28), 0 12px 30px -12px rgba(20,16,9,.12);
}

html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 17px;
}
.page { overflow-x: clip; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.accent { color: var(--accent); }
b { font-weight: 700; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 14px 22px; border-radius: 12px; cursor: pointer; border: none;
  text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 11px 18px; font-size: 15px; border-radius: 11px; }
.btn--lg { padding: 17px 30px; font-size: 18px; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background .25s, box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav--scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; gap: 32px; }
.nav-brand { text-decoration: none; }
.nav-links { display: flex; gap: 30px; margin: 0 auto 0 8px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; opacity: .82; transition: opacity .15s, color .15s; }
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-login { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.nav-login:hover { color: var(--accent); }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { flex-shrink: 0; }
.brand-text { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; line-height: 1; }

/* ---------- eyebrow + headings ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 13.5px; letter-spacing: .16em; color: var(--accent); margin-bottom: 22px; }
.eyebrow--center { justify-content: center; }
.eyebrow-line { width: 32px; height: 2px; background: var(--accent); border-radius: 2px; }
.h2 { font-size: clamp(34px, 5vw, 54px); }
.h2--center { text-align: center; }
.h2--light { color: #fff; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 540px; margin-top: 18px; line-height: 1.6; }
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section--tint { background: var(--surface-2); }
.section--dark { background: var(--dark); }

/* ---------- HERO ---------- */
.hero { padding: 138px 0 90px; position: relative; }
.hero-top { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-h1 { font-size: clamp(44px, 7.2vw, 86px); line-height: 1.0; letter-spacing: -.03em; }
.hero-sub { font-size: 20px; color: var(--ink-2); max-width: 560px; margin-top: 26px; line-height: 1.55; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

/* tabs */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin-top: 64px; box-shadow: var(--shadow-sm); }
.tab { text-align: left; background: transparent; border: 2px solid transparent; border-radius: var(--radius-sm); padding: 16px 18px; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; display: flex; flex-direction: column; gap: 3px; }
.tab:hover { background: var(--surface-2); }
.tab-name { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--ink); }
.tab-sub { font-size: 13.5px; color: var(--ink-3); }
.tab--active { background: var(--ink); border-color: var(--accent); }
.tab--active .tab-name { color: #fff; }
.tab--active .tab-sub { color: rgba(255,255,255,.6); }

/* ---------- browser + preview ---------- */
.preview-wrap { margin-top: 22px; }
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #DCD7CE; }
.browser-url { flex: 1; max-width: 460px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 14px; display: flex; align-items: center; gap: 8px; }
.browser-url .lock { color: var(--ink-3); }

.app-shell { display: grid; grid-template-columns: 210px 1fr; min-height: 560px; }
.app-side { border-right: 1px solid var(--line); padding: 22px 16px; background: var(--surface); }
.app-logo { padding: 4px 8px 22px; }
.app-nav { display: flex; flex-direction: column; gap: 3px; }
.app-nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; cursor: default; }
.app-nav-item.is-active { background: var(--surface-2); color: var(--ink); }
.app-nav-item.is-active svg { color: var(--accent); }
.app-main { padding: 30px 32px; background: var(--surface); min-width: 0; }

/* preview: telas (só a ativa visível) */
.scr { display: none; }
.scr.is-active { display: block; }

/* screen common */
.scr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.scr-crumb { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-bottom: 5px; }
.scr-title { font-size: 23px; }
.scr-btn { font-family: var(--font-head); font-weight: 700; font-size: 13.5px; padding: 9px 15px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: default; }
.scr-btn--primary { background: var(--accent); color: #fff; border-color: transparent; }

.scr-mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.scr-mini { background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; }
.scr-mini-l { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.scr-mini-v { font-family: var(--font-head); font-weight: 800; font-size: 22px; }

.scr-table { display: flex; flex-direction: column; }
.scr-tr { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 14px; padding: 15px 8px; border-bottom: 1px solid var(--line); }
.scr-doc { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.scr-route { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.scr-arrow { color: var(--ink-3); }
.scr-badge { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 20px; white-space: nowrap; font-family: var(--font-head); }
.scr-badge--green { background: #E7F4EC; color: #1B7A4B; }
.scr-badge--blue { background: #E8EFFB; color: #2660D4; }
.scr-badge--amber { background: #FBEEDE; color: #B5651B; }
.scr-badge--gray { background: #EFEDE8; color: #6B6760; }

/* rotas */
.scr-rotas { display: grid; grid-template-columns: 1fr 270px; gap: 18px; }
.scr-map { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; min-height: 380px; }
.scr-map svg { display: block; height: 100%; min-height: 380px; }
.scr-map-tag { position: absolute; font-family: var(--font-mono); font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); padding: 6px 11px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.scr-map-tag--a { left: 7%; bottom: 9%; }
.scr-map-tag--b { right: 9%; top: 13%; }
.scr-fleet { display: flex; flex-direction: column; gap: 9px; }
.scr-fleet-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.scr-plate { font-family: var(--font-mono); font-weight: 600; font-size: 14px; }
.scr-driver { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* financeiro */
.scr-fin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 20px; }
.scr-fin { border: 1px solid var(--line); border-radius: 13px; padding: 16px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); }
.scr-fin-l { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.scr-fin-v { font-family: var(--font-head); font-weight: 800; font-size: 26px; }
.scr-fin-d { font-size: 13px; font-weight: 700; }
.scr-fin-d--up { color: #1B7A4B; }
.scr-fin-d--down { color: #C2410C; }
.scr-chart-card { border: 1px solid var(--line); border-radius: 13px; padding: 22px; background: var(--surface); }
.scr-chart-title { font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.scr-chart { display: flex; align-items: flex-end; gap: 8px; height: 180px; }
.scr-bar { flex: 1; background: #E4E0D8; border-radius: 6px 6px 3px 3px; min-height: 4px; }
.scr-bar--hot { background: var(--accent); }

/* portal */
.scr-portal { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.scr-pcard { border: 1px solid var(--line); border-radius: 13px; padding: 18px; background: var(--surface); }
.scr-pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.scr-pcard-name { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; }
.scr-pcard-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.scr-ontime { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 20px; white-space: nowrap; }
.scr-ontime--green { background: #E7F4EC; color: #1B7A4B; }
.scr-ontime--amber { background: #FBEEDE; color: #B5651B; }
.scr-pbar { height: 8px; background: var(--surface-2); border-radius: 20px; overflow: hidden; }
.scr-pbar-fill { height: 100%; border-radius: 20px; width: 0; }
.scr-pbar-fill--green { background: #2BA86A; }
.scr-pbar-fill--amber { background: var(--accent); }

/* ---------- reveal (opacity SEMPRE 1; anima só o deslize) ---------- */
.reveal { opacity: 1; }
.reveal.in { animation: revealUp .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes revealUp { from { transform: translateY(16px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal.in { animation: none; } }

/* ---------- pains ---------- */
.pains { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.pain-q { display: flex; gap: 12px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px dashed var(--line); }
.pain-mark { font-family: var(--font-head); font-size: 40px; line-height: .8; color: var(--ink-3); }
.pain-q p { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--ink); letter-spacing: -.01em; }
.pain-tag { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 11px; border-radius: 20px; margin-bottom: 12px; }
.pain-a p { color: var(--ink-2); font-size: 16.5px; }

/* ---------- differentials ---------- */
.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.diff { background: var(--surface); padding: 38px 32px; }
.diff-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.diff-title { font-size: 22px; margin-bottom: 10px; }
.diff-body { color: var(--ink-2); font-size: 16px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
.stat { text-align: center; }
.stat-v { font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 5.5vw, 64px); color: #fff; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-l { color: rgba(255,255,255,.62); font-size: 15px; margin-top: 12px; max-width: 220px; margin-inline: auto; line-height: 1.4; }

/* ---------- clients ---------- */
.clients { padding: 64px 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-label { text-align: center; color: var(--ink-3); font-weight: 600; font-size: 15px; margin-bottom: 36px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-logo { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--ink-3); letter-spacing: -.02em; opacity: .55; white-space: nowrap; transition: opacity .2s, color .2s; }
.client-logo:hover { opacity: 1; color: var(--ink); }

/* ---------- integrations ---------- */
.integ-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.integ-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); transition: transform .18s, border-color .18s; }
.chip:hover { transform: translateY(-3px); border-color: var(--accent); }
.chip-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.chip-kind { font-size: 12.5px; color: var(--ink-3); }

/* ---------- testimonials ---------- */
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.tcard-metric { display: inline-block; align-self: flex-start; font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--accent); background: var(--accent-soft); padding: 7px 13px; border-radius: 20px; margin-bottom: 20px; }
.tcard-quote { font-size: 17.5px; color: var(--ink); line-height: 1.55; flex: 1; }
.tcard-person { display: flex; align-items: center; gap: 13px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.tcard-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tcard-name { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; }
.tcard-role { font-size: 13.5px; color: var(--ink-3); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; align-items: start; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-sm); }
.plan--hot { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.plan-flag { position: absolute; top: -13px; left: 30px; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 12.5px; padding: 6px 13px; border-radius: 20px; }
.plan-name { font-size: 24px; margin-bottom: 8px; }
.plan-blurb { color: var(--ink-2); font-size: 15px; min-height: 44px; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin: 22px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan-price-cur { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink-2); }
.plan-price-v { font-family: var(--font-head); font-weight: 800; font-size: 50px; letter-spacing: -.03em; }
.plan-price-per { color: var(--ink-3); font-size: 16px; font-weight: 600; }
.plan-price-custom { font-family: var(--font-head); font-weight: 800; font-size: 34px; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.plan-feats li { display: flex; gap: 11px; font-size: 15.5px; color: var(--ink-2); }
.check { color: var(--accent); font-weight: 800; flex-shrink: 0; }
.plans-note { text-align: center; color: var(--ink-3); font-size: 13.5px; margin-top: 26px; font-style: italic; }

/* ---------- final cta ---------- */
.finalcta { padding: 60px 0 110px; }
.finalcta-box { background: var(--dark); border-radius: 28px; padding: 84px 40px; text-align: center; position: relative; overflow: hidden; }
.finalcta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 360px at 50% -20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.finalcta-h { font-size: clamp(36px, 5vw, 58px); color: #fff; position: relative; }
.finalcta-sub { color: rgba(255,255,255,.7); font-size: 19px; margin-top: 18px; position: relative; }
.finalcta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; position: relative; }
.finalcta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.finalcta .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.finalcta-fine { color: rgba(255,255,255,.5); font-family: var(--font-mono); font-size: 14px; margin-top: 30px; position: relative; }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { margin-top: 18px; font-size: 15px; max-width: 300px; line-height: 1.6; color: rgba(255,255,255,.55); }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.6); text-decoration: none; font-size: 14.5px; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; font-size: 13.5px; color: rgba(255,255,255,.45); flex-wrap: wrap; gap: 12px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .pains, .diffs, .tcards, .plans, .stats, .integ-grid, .scr-rotas, .scr-portal { grid-template-columns: 1fr; }
  .integ-grid { gap: 36px; }
  .integ-chips { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .scr-mini-stats, .scr-fin-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .tabs { grid-template-columns: 1fr; }
  .scr-mini-stats, .scr-fin-stats, .integ-chips { grid-template-columns: 1fr 1fr; }
  .app-main { padding: 22px 18px; }
  .finalcta-box { padding: 56px 24px; }
}
