/* ================================================================
   FISCUM — Home (index.html)
   Estilos específicos da landing page principal.
   ================================================================ */


/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--nav-h) + 36px);
  background: var(--white);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h) - 36px);
  gap: 0;
}

.hero-l {
  padding: 72px 48px 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-right: 1px solid var(--border);
}

/* hero-l dot pattern removed — clean background */

.hero-r {
  background: #0F1117;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

/* ===== Hero Flow (classificação visual) ===== */
.hero-flow-input,
.hero-flow-output {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 16px 20px;
}

.hf-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-bottom: 10px;
}

.hf-label-out { color: #00C87A; }

.hf-product {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hf-ncm {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,102,255,.15);
  padding: 4px 10px;
  border-radius: 4px;
}

.hf-desc {
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

.hf-uf {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  margin-left: auto;
}

/* Flow arrow */
.hero-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 0;
  color: #00C87A;
}

.hf-engine {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,.2);
  letter-spacing: .04em;
}

/* Output rules */
.hf-rules {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hf-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,.04);
  border-radius: 4px;
  border-left: 3px solid var(--blue);
}

.hf-rule-reforma {
  border-left-color: #00C87A;
  background: rgba(0,200,122,.06);
}

.hf-rule-name {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  letter-spacing: .06em;
  text-transform: uppercase;
  width: 80px;
  flex-shrink: 0;
}

.hf-rule-vals {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  font-family: var(--mono);
}

.hf-rule-vals strong {
  color: #fff;
  font-weight: 600;
}

.hf-meta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,.2);
}

.hf-meta strong {
  color: rgba(255,255,255,.4);
  font-weight: 500;
}

/* ===== Hero Terminal (for "Integre em minutos" section) ===== */
.hero-terminal {
  background: #1a1d27;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

.ht-bar {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ht-dots {
  display: flex;
  gap: 5px;
}

.ht-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.ht-label {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.55); /* WCAG AA — ratio ≥4.5:1 sobre dark bg */
  letter-spacing: .04em;
}

.ht-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
  background: rgba(0,102,255,.1);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: .02em;
}

.ht-body {
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  white-space: pre-wrap;
  word-break: break-all;
}

.ht-dim { color: rgba(255,255,255,.25); }
.ht-cmd { color: #7dd3fc; }
.ht-flag { color: #a78bfa; }
.ht-str { color: #86efac; }

/* Response card */
.hero-response {
  background: #1a1d27;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  flex: 1;
  min-height: 0;
}

.hr-bar {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.hr-status {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: .04em;
}

.hr-time {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.3);
}

.hr-body {
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,255,255,.5);
  white-space: pre;
  overflow-x: auto;
}

.hr-body .jk { color: #93c5fd; }
.hr-body .js { color: #86efac; }
.hr-body .jn { color: #fbbf24; }
.hr-body .jg { color: #4ade80; font-weight: 600; }
.hr-body .jd { color: rgba(255,255,255,.2); font-style: italic; }

/* Stats bar */
.hero-stats-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,.25);
  letter-spacing: .02em;
}

.hero-stats-bar strong {
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #0055D4; /* WCAG AA — ratio ≥4.8:1 sobre #FFF */
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: #0055D4;
}

.hero-h1 {
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .95;
  margin-bottom: 28px;
}

.hero-h1 em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--blue);
}

.hero-p {
  font-size: 18px;
  font-weight: 300;
  color: var(--g5);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-p strong {
  font-weight: 600;
  color: var(--black);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 15px 32px;
  font-size: 16px;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r);
  transition: all .2s;
}

.btn-hero:hover {
  background: var(--blue-d);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.btn-hero-out {
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 400;
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border-m);
  border-radius: var(--r);
  transition: all .2s;
}

.btn-hero-out:hover {
  border-color: var(--g5);
}

/* KPIs */
.hero-kpis {
  display: flex;
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.kpi {
  flex: 1;
  padding-right: 28px;
  border-right: 1px solid var(--border);
}

.kpi:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 28px;
}

.kpi-n {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--black);
}

.kpi-n em {
  color: var(--blue);
  font-style: normal;
}

.kpi-l {
  font-size: 13px;
  color: var(--g4);
  margin-top: 5px;
  font-family: var(--mono);
  letter-spacing: .02em;
}


/* ===== Dashboard mockup ===== */
.dash-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.dash-bar {
  padding: 10px 16px;
  background: var(--g1);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dash-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--g4);
  margin-left: 8px;
  letter-spacing: .03em;
  flex: 1;
}

.dash-body {
  padding: 16px;
}

.dash-tbl {
  width: 100%;
  border-collapse: collapse;
}

.dash-tbl thead tr {
  border-bottom: 1.5px solid var(--black);
}

.dash-tbl th {
  padding: 8px 10px;
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g4);
  font-weight: 400;
}

.dash-tbl td {
  padding: 10px 10px;
  font-family: var(--mono);
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--g5);
  transition: background .15s;
}

.dash-tbl tr:hover td {
  background: var(--blue5);
}

.dash-tbl tr.new-row td {
  background: rgba(0, 102, 255, .04);
}

.td-ncm {
  font-weight: 600;
  color: var(--black) !important;
}

.td-uf {
  color: var(--blue) !important;
  font-weight: 600;
}

.td-icms {
  color: var(--black) !important;
  font-weight: 500;
}

.td-cbs {
  color: var(--green) !important;
  font-weight: 500;
}

.dash-footer {
  padding: 12px 16px;
  background: var(--g1);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.df-stat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--g4);
}

.df-stat strong {
  color: var(--black);
  font-weight: 600;
}


/* ===== Stats strip (blue) ===== */
.stats-strip {
  background: var(--blue);
  padding: 0;
}

.stats-strip .c {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-cell {
  padding: 28px 0;
  border-right: 1px solid rgba(255, 255, 255, .15);
  padding-left: 48px;
}

.stat-cell:last-child {
  border-right: none;
}

.stat-n {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
}

.stat-n em {
  color: var(--blue3);
  font-style: normal;
}

.stat-l {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  margin-top: 6px;
  font-weight: 300;
}


/* ===== Problem section ===== */
.problem {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.problem .c {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
  align-items: start;
}

.problem-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
  border-left: 4px solid var(--blue);
  padding-left: 28px;
  margin-bottom: 32px;
}

.problem-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--g5);
  line-height: 1.85;
}

.problem-body strong {
  font-weight: 600;
  color: var(--black);
}

.problem-body p + p {
  margin-top: 20px;
}

.problem-callout {
  background: var(--black);
  color: #fff;
  padding: 24px 28px;
  margin-top: 28px;
  border-radius: var(--r-md);
}

.problem-callout p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.problem-callout strong {
  color: var(--blue3);
}

/* NCM hierarchy */
.ncm-hierarchy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ncm-level {
  display: grid;
  grid-template-columns: 100px 80px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background .15s;
  cursor: default;
}

.ncm-level:hover {
  background: var(--blue5);
}

.ncm-level:last-child {
  border-bottom: none;
}

.ncm-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g4);
}

.ncm-code {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}

.ncm-desc {
  font-size: 13px;
  color: var(--g4);
  line-height: 1.4;
}


/* ===== How it works ===== */
.how {
  padding: 96px 0;
  background: var(--g1);
  position: relative;
  overflow: hidden;
}

/* how section dot pattern removed */

.how-header {
  text-align: center;
  margin-bottom: 64px;
}

.how-header .sec-eyebrow {
  justify-content: center;
}

.how-header .sec-eyebrow::before {
  display: none;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.how-grid::before {
  content: '';
  position: absolute;
  top: 56px;
  left: calc(33.33% + 24px);
  right: calc(33.33% + 24px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--blue) 0,
    var(--blue) 8px,
    transparent 8px,
    transparent 14px
  );
  pointer-events: none;
}

.how-step {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  border-right: none;
}

.how-step:last-child {
  border-right: 1px solid var(--border);
}

.how-step:hover {
  border-color: var(--border-b);
  box-shadow: 0 4px 16px rgba(0, 102, 255, .08);
}

.how-step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.how-step:hover::after {
  transform: scaleX(1);
}

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--g4);
}

.step-icon {
  width: 52px;
  height: 52px;
  background: var(--blue4);
  border: 1px solid var(--border-b);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--black);
}

.step-desc {
  font-size: 15px;
  color: var(--g5);
  line-height: 1.75;
  font-weight: 300;
}

.step-detail {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: .04em;
  padding: 8px 12px;
  background: var(--blue4);
  border-radius: var(--r);
  margin-top: 4px;
}


/* ===== Products ===== */
.products {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.products-header {
  margin-bottom: 56px;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.prod-card {
  background: var(--white);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: background .2s;
}

.prod-card:hover {
  background: var(--blue5);
}

.prod-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--prod-color, var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.prod-card:hover::before {
  transform: scaleX(1);
}

.prod-bg-num {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-size: 120px;
  font-weight: 700;
  color: rgba(0, 0, 0, .03);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  font-family: var(--serif);
}

.prod-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.prod-ey {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.prod-h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.prod-p {
  font-size: 15px;
  color: var(--g5);
  line-height: 1.75;
  font-weight: 300;
}

.prod-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.prod-list li {
  font-size: 13px;
  color: var(--g4);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}

.prod-list li::before {
  content: '\2192';
  color: var(--prod-color, var(--blue));
  flex-shrink: 0;
  font-size: 11px;
  margin-top: 2px;
}

.prod-status {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}


/* ===== API showcase ===== */
.api-sec {
  padding: 96px 0;
  background: var(--black);
  color: rgba(255, 255, 255, .55);
  position: relative;
  overflow: hidden;
}

/* api-sec grid pattern removed */

.api-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.api-sec .sec-eyebrow {
  color: rgba(204, 224, 255, .7);
}

.api-sec .sec-eyebrow::before {
  background: rgba(204, 224, 255, .5);
}

.api-sec .sec-h2 {
  color: #fff;
}

.api-sec .sec-h2 em {
  color: var(--blue3);
}

.api-sec .sec-p {
  color: rgba(255, 255, 255, .55);
}


.api-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}

.api-feat {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.api-feat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.api-feat-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue2);
  font-weight: 600;
  width: 32px;
  flex-shrink: 0;
  padding-top: 2px;
}

.api-feat-body h3,
.api-feat-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.api-feat-body p {
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.65;
  font-weight: 300;
}

.api-feat-body p strong {
  color: rgba(255, 255, 255, .75);
  font-weight: 500;
}

/* Terminal card */
.terminal-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  overflow: hidden;
}

.terminal-topbar {
  padding: 10px 16px;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tdot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-label {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, .55); /* WCAG AA — ratio ≥4.6:1 sobre #111 */
  margin-left: 8px;
  letter-spacing: .04em;
}

.terminal-body {
  padding: 24px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  color: #C8C8C6;
  overflow-x: auto;
}


/* ===== Brazil coverage map ===== */
.coverage {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.coverage-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.coverage-legend {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.cov-phase {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cov-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.cov-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 3px;
}

.cov-states {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--g4);
  letter-spacing: .02em;
}

.brazil-map-wrap {
  position: relative;
}

/* State tiles */
.state-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 3px;
  cursor: default;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}

.state-tile:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  z-index: 10;
}

.state-tile::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  letter-spacing: 0;
}

.state-tile:hover::after {
  opacity: 1;
}

.ph1 { background: var(--blue); color: #fff; }
.ph2 { background: var(--blue3); color: var(--blue); }
.ph3 { background: var(--g2); color: var(--g4); }


/* ===== Reforma timeline ===== */
.reforma {
  padding: 80px 0;
  background: var(--black);
  color: rgba(255, 255, 255, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.reforma-inner {
  position: relative;
  z-index: 1;
}

.reforma-header {
  margin-bottom: 56px;
}

.reforma-header .sec-eyebrow {
  color: rgba(204, 224, 255, .7);
}

.reforma-header .sec-eyebrow::before {
  background: rgba(204, 224, 255, .5);
}

.reforma-header .sec-h2 {
  color: #fff;
}


.reforma-tl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .08);
}

.reforma-tl::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}

.tl-step {
  padding: 40px 32px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.tl-step:last-child {
  border-right: none;
}

.tl-step.active-tl {
  background: rgba(0, 102, 255, .06);
}

.tl-year {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  font-style: italic;
  color: rgba(255, 255, 255, .12);
  line-height: 1;
  margin-bottom: 20px;
}

.tl-step.active-tl .tl-year {
  color: var(--blue2);
}

.tl-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.tl-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.tl-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, .45);
  line-height: 1.7;
  font-weight: 300;
}

.tl-desc strong {
  color: rgba(255, 255, 255, .7);
  font-weight: 500;
}


/* ===== Pricing teaser ===== */
.pricing-teaser {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.pt-header {
  text-align: center;
  margin-bottom: 64px;
}

.pt-header .sec-eyebrow {
  justify-content: center;
}

.pt-header .sec-eyebrow::before {
  display: none;
}

.pt-header .sec-p {
  margin: 0 auto;
}

.pt-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

.pt-toggle-label {
  font-size: 14px;
  color: var(--g5);
}

.pt-badge {
  background: var(--green2);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(0, 135, 90, .2);
}

.pt-tracks {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.track-btn {
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--border-m);
  border-radius: var(--r);
  background: transparent;
  color: var(--g5);
  transition: all .2s;
}

.track-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.track-btn:hover:not(.active) {
  border-color: var(--g4);
  color: var(--black);
}

/* Track panels */
.track-panel {
  display: none;
}

.track-panel.active {
  display: block;
}

.pt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pt-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}

.pt-card:hover {
  border-color: var(--g3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pt-card.featured {
  border-color: var(--blue);
  border-width: 2px;
}

.pt-card.featured::before {
  content: 'Mais popular';
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
}

.pt-track-name {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g4);
}

.pt-plan-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.pt-price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--black);
}

.pt-price sup {
  font-size: 16px;
  font-weight: 600;
  vertical-align: top;
  margin-top: 6px;
}

.pt-price span {
  font-size: 14px;
  font-weight: 300;
  color: var(--g4);
  letter-spacing: 0;
}

.pt-included {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  background: var(--blue4);
  border: 1px solid var(--border-b);
  border-radius: var(--r);
  padding: 6px 10px;
  line-height: 1.5;
}

.pt-div {
  height: 1px;
  background: var(--border);
}

.pt-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pt-list li {
  font-size: 13px;
  color: var(--g5);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.45;
}

.pt-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--blue4);
  border: 1px solid var(--border-b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pt-btn {
  padding: 11px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  background: transparent;
  border: 1.5px solid var(--border-m);
  color: var(--black);
  transition: all .2s;
  margin-top: auto;
}

.pt-btn:hover {
  border-color: var(--g4);
}

.pt-card.featured .pt-btn {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
}

.pt-card.featured .pt-btn:hover {
  background: var(--blue-d);
}

.pt-see-all {
  text-align: center;
  margin-top: 40px;
}

.pt-see-all a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid var(--border-b);
  padding-bottom: 2px;
  transition: all .2s;
}

.pt-see-all a:hover {
  color: var(--blue-d);
  gap: 10px;
}


/* ===== Integrations ===== */
.integrations {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  background: var(--g1);
}

.int-header {
  text-align: center;
  margin-bottom: 40px;
}

.int-header p {
  font-size: 14px;
  color: var(--g4);
  font-family: var(--mono);
  letter-spacing: .04em;
}

.int-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.int-logo {
  padding: 16px 36px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.int-logo:last-child {
  border-right: none;
}

.int-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--g3);
  letter-spacing: -.01em;
  transition: color .2s;
  font-family: var(--mono);
}

.int-logo:hover .int-logo-text {
  color: var(--g5);
}


/* ===== Testimonials ===== */
.testimonials {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.test-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.test-card::before {
  content: '\201C';
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 48px;
  font-family: var(--serif);
  color: var(--g2);
  line-height: 1;
  user-select: none;
  z-index: 0;
}

.test-quote,
.test-author {
  position: relative;
  z-index: 1;
}

.test-quote {
  font-size: 15px;
  color: var(--g6);
  line-height: 1.75;
  font-style: italic;
  font-family: var(--serif);
}

.test-quote strong {
  font-style: normal;
  color: var(--blue);
}

.test-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.test-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.test-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

.test-role {
  font-size: 12px;
  color: var(--g4);
}


/* ===== FAQ section (home variant) ===== */
.faq {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
  background: var(--g1);
}

.faq-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
}

.faq-side h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.faq-side p {
  font-size: 15px;
  color: var(--g5);
  line-height: 1.75;
  font-weight: 300;
}

.faq-side a {
  color: var(--blue);
  display: block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
}


/* ===== Final CTA ===== */
.final-cta {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* final-cta dot pattern removed */

.final-cta .c {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.fcta-l {
  padding: 0 80px 0 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.fcta-l h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
}

.fcta-l h2 em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--blue);
}

.fcta-l p {
  font-size: 16px;
  color: var(--g5);
  line-height: 1.75;
  font-weight: 300;
  max-width: 420px;
}

.fcta-r {
  padding: 0 0 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.fcta-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g4);
}

.fcta-input {
  padding: 15px 18px;
  background: var(--white);
  border: 1.5px solid var(--border-m);
  color: var(--black);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color .2s;
  border-radius: var(--r);
}

.fcta-input:focus {
  border-color: var(--blue);
}

.fcta-input::placeholder {
  color: var(--g3);
}

.fcta-btn {
  padding: 15px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r);
  transition: background .2s;
}

.fcta-btn:hover {
  background: var(--blue-d);
}

.fcta-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--g4);
  letter-spacing: .04em;
  line-height: 1.7;
  padding: 6px 0;
}


/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .how-grid::before {
    display: none;
  }

  .coverage-inner,
  .api-inner,
  .final-cta .c,
  .faq-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .fcta-l,
  .fcta-r {
    padding: 0;
  }

  .fcta-l {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 40px;
  }

  .pt-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sec headers — evitar overflow */
  .sec-h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 900px) {
  .stats-strip .c {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cell {
    padding: 20px 24px;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0;
  }

  .hero-r {
    display: none;
  }

  .hero-l {
    padding: 48px 24px 40px;
    border-right: none;
  }

  .hero-h1 {
    font-size: clamp(32px, 8vw, 44px);
  }

  .hero-p {
    font-size: 16px;
  }

  .hero-kpis {
    flex-direction: column;
    gap: 16px;
  }

  .kpi {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 16px;
  }

  .kpi:last-child {
    border-bottom: none;
    padding-left: 0;
    padding-bottom: 0;
  }

  .prod-grid,
  .test-grid {
    grid-template-columns: 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .reforma-tl {
    grid-template-columns: 1fr;
  }

  .tl-step {
    padding: 24px 20px;
  }

  .stats-strip .c {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cell {
    padding: 16px 20px;
  }

  .stat-n {
    font-size: 28px;
  }

  .problem .c {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pt-grid {
    grid-template-columns: 1fr;
  }

  .int-logos .int-logo {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  /* Coverage map: scale to fit */
  .brazil-map-wrap {
    overflow: hidden;
    max-width: 100%;
  }

  .brazil-map-wrap > div {
    transform: scale(0.65);
    transform-origin: top left;
  }

  .coverage-legend {
    margin-top: 0;
  }

  /* Dashboard mockup: scroll horizontal */
  .dash-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dash-tbl {
    min-width: 580px;
  }

  .dash-bar {
    padding: 8px 12px;
  }

  .dash-footer {
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }

  /* NCM hierarchy: collapse */
  .ncm-level {
    grid-template-columns: 60px 60px 1fr;
    padding: 12px 16px;
    gap: 8px;
  }

  .ncm-code {
    font-size: 13px;
  }

  /* FAQ inner */
  .faq-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Final CTA */
  .fcta-l h2 {
    font-size: clamp(28px, 7vw, 36px);
  }

  /* Integration logos */
  .int-logos {
    flex-direction: column;
  }

  .int-logo {
    padding: 12px 24px;
  }

  /* Pricing teaser cards */
  .pt-card {
    padding: 24px;
  }

  /* Pricing tracks inline grid: collapse to 1 column */
  .pt-tracks-grid {
    grid-template-columns: 1fr !important;
  }

  /* Testimonials */
  .test-card {
    padding: 24px;
  }
}
