/* =========================================================
   Seu XML - CSS organizado
   Blocos: variáveis, base, layout, navbar, botões, cards,
   home, serviço, upload, pricing, blog, footer e responsivo.
   ========================================================= */

:root {
  --container: 1180px;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #172033;
  --text-soft: #52657d;
  --muted: #7c8da3;
  --line: #dfe8f2;
  --line-strong: #c7d5e6;
  --primary: #1677ff;
  --primary-strong: #075ec9;
  --primary-soft: #edf6ff;
  --success: #12805c;
  --warning: #8a5f08;
  --danger: #a83249;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(24, 46, 78, .10);
  --shadow-soft: 0 12px 30px rgba(24, 46, 78, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(22,119,255,.09), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
}
a { color: inherit; }
p { margin: 0; color: var(--text-soft); line-height: 1.65; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.03em; }
h1 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
}
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: 1.08rem; }
ul, ol { color: var(--text-soft); }
img, svg { max-width: 100%; }

.page { max-width: var(--container); margin: 0 auto; padding: 28px 20px 44px; }
.page-stack, .stack { display: grid; gap: 18px; }
.panel, .hero-clean, .service-hero {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(208,221,237,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 4vw, 40px);
}
.hero-clean, .service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #f4f9ff 100%);
}
.hero-copy { max-width: 790px; }
.lead { font-size: clamp(1.04rem, 2vw, 1.22rem); color: #40546d; }
.eyebrow {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(22,119,255,.14);
  color: var(--primary-strong);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.small { font-size: .88rem; color: var(--muted); line-height: 1.55; }
.block-title { display: block; font-size: 1.1rem; margin-bottom: 8px; }
.center { text-align: center; }
.mb-18 { margin-bottom: 18px; }
.mt-18 { margin-top: 18px; }
.hidden { display: none !important; }

.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(247,250,254,.82);
  border-bottom: 1px solid rgba(206,219,235,.75);
}
.navbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: max-content; }
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #44a3ff);
  color: #fff;
  font-size: 12px;
  line-height: 1.05;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(22,119,255,.22);
}
.brand-text { display: grid; gap: 1px; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { color: var(--muted); font-size: .78rem; }
.nav-actions, .nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links > a, .nav-drop > summary {
  border: 0;
  cursor: pointer;
  list-style: none;
  text-decoration: none;
  color: #41536b;
  font-weight: 750;
  font-size: .94rem;
  padding: 10px 12px;
  border-radius: 12px;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-links > a:hover, .nav-drop[open] > summary, .nav-drop > summary:hover { background: #edf6ff; color: var(--primary-strong); }
.nav-drop { position: relative; }
.mega-menu {
  position: absolute;
  right: -110px;
  top: calc(100% + 12px);
  width: min(960px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.mega-col { display: grid; gap: 8px; align-content: start; }
.mega-col strong { font-size: .82rem; color: var(--text); }
.mega-col a {
  display: grid;
  gap: 3px;
  padding: 10px;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid transparent;
}
.mega-col a:hover { background: var(--surface-soft); border-color: var(--line); }
.mega-col span { font-weight: 800; font-size: .9rem; }
.mega-col small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.35;
}

.btn, .btn-secondary, .btn-ghost {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 17px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  font: inherit;
}
.btn { background: var(--primary); color: #fff; box-shadow: 0 14px 28px rgba(22,119,255,.22); }
.btn:hover { background: var(--primary-strong); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--primary-strong); border-color: rgba(22,119,255,.25); }
.btn-secondary:hover { background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--primary-strong); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-soft); }
button:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nav-cta { min-height: 40px; padding: 10px 14px; }

.card, .feature-surface, .hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(24,46,78,.04);
}
.card p { margin-top: 8px; }
.clickable-card { text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.clickable-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: rgba(22,119,255,.25); }
.tag, .mini-tag, .price-chip, .mini-label {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 850;
}
.tag, .mini-label { background: var(--primary-soft); color: var(--primary-strong); border: 1px solid rgba(22,119,255,.16); }
.price-chip { background: #eefaf5; color: #13724f; border: 1px solid rgba(19,114,79,.15); }
.mini-tag { background: var(--surface-soft); color: var(--text-soft); border: 1px solid var(--line); }
.card-link { color: var(--primary-strong); font-weight: 850; margin-top: auto; }

.grid, .grid-2, .grid-3, .grid-auto, .services-grid, .pricing-grid, .example-grid, .summary-grid, .category-grid, .footer-grid, .form-grid, .compare-grid, .guide-summary-grid, .guide-fields-grid {
  display: grid;
  gap: 18px;
}
.grid-2, .compare-grid, .example-grid, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto, .services-grid, .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-grid { grid-template-columns: 1.2fr .8fr .9fr; }
.section-head { display: grid; gap: 10px; max-width: 830px; margin-bottom: 22px; }
.section-head.compact { margin-bottom: 18px; }
.compact-cards .service-card { min-height: 245px; }
.service-card { display: grid; gap: 12px; height: 100%; }
.service-card h3 { font-size: 1.07rem; }
.service-card p,
.service-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-card-with-popover {
  position: relative;
  overflow: visible;
  isolation: isolate;
}
.service-card-with-popover:hover,
.service-card-with-popover:focus-visible {
  z-index: 20;
}
.service-card-popover {
  position: absolute;
  left: 100px;
  right: -100px;
  bottom: 260px;
  z-index: 10;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(22,119,255,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 46px rgba(17,31,51,.16);
  color: var(--text-soft);
  font-size: .9rem;
  line-height: 1.55;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.service-card-popover::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,.98);
  border-right: 1px solid rgba(22,119,255,.22);
  border-bottom: 1px solid rgba(22,119,255,.22);
  transform: rotate(45deg);
}
.service-card-popover strong {
  color: var(--text);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.service-card-with-popover:hover .service-card-popover,
.service-card-with-popover:focus-visible .service-card-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.step-card { display: grid; gap: 10px; }
.step-card > span {
  width: 38px; height: 38px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 900;
}
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-strip span, .trust-item {
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #42566e;
  font-size: .88rem;
  font-weight: 800;
}
.trust-panel .grid-auto { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.trust-item { border-radius: 16px; text-align: center; }
.category-card {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  text-decoration: none;
}
.category-card span { color: var(--text-soft); line-height: 1.5; }
.category-card:hover { border-color: rgba(22,119,255,.25); box-shadow: var(--shadow-soft); }

.service-hero { grid-template-columns: 1fr; }
.summary-pill {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.summary-pill strong { color: var(--text); }
.summary-pill span { color: var(--text-soft); line-height: 1.45; font-size: .92rem; }
.upload-panel { scroll-margin-top: 92px; }
.upload-box {
  min-height: 190px;
  border: 1.5px dashed rgba(22,119,255,.38);
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f7ff 100%);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.upload-box:hover, .upload-box.is-drag { border-color: rgba(22,119,255,.8); transform: translateY(-1px); box-shadow: 0 18px 30px rgba(22,119,255,.10); }
.file-name { padding: 12px 14px; border-radius: 14px; background: var(--surface-soft); border: 1px solid var(--line); color: #47607d; }
.notice, .notice-soft, .notice-warning, .flash, .success-box {
  display: block;
  border-radius: 16px;
  padding: 14px 16px;
  line-height: 1.5;
}
.notice { background: #f5f9ff; color: #24425f; border: 1px solid #d6e5f7; }
.notice-soft { background: #fbfdff; color: #4a6078; border: 1px solid #e1ebf5; }
.notice-warning { background: #fff9ef; color: var(--warning); border: 1px solid #f6ddab; }
.flash { background: #fff4f5; color: var(--danger); border: 1px solid #f1c3cc; }
.success-box { background: #eefaf5; color: var(--success); border: 1px solid #bde8d4; }

.field { display: grid; gap: 8px; }
.field label { font-size: .92rem; font-weight: 850; }
.field.full { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: #97bcff; box-shadow: 0 0 0 4px rgba(22,119,255,.10); }
.legal-ack-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 650; color: var(--text-soft); }
.legal-ack-checkbox { width: auto; margin-top: 3px; }

.example-card { display: grid; gap: 12px; }
.mock-sheet, .mock-output { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--surface-soft); border: 1px solid var(--line); }
.mock-row, .mock-folder { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: #46607b; font-size: .86rem; overflow-wrap: anywhere; }
.mock-folder { background: #f6fbf7; border-color: #d8eee1; color: #2d6a49; }
.mini-steps { display: grid; gap: 10px; }
.mini-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-soft); border: 1px solid var(--line); }
.mini-step p { font-size: .9rem; }
.mini-step-num { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); font-weight: 900; }
.faq-item { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq-item p { margin-top: 8px; }

.pricing-card { display: grid; gap: 14px; }
.pricing-topline { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pricing-price, .metric-value { font-size: 1.35rem; font-weight: 900; color: var(--text); }
.metric-card { display: grid; gap: 8px; align-content: center; }
.metric-note { color: var(--muted); font-size: .88rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .86rem; color: var(--text-soft); }
.breadcrumb a { text-decoration: none; color: var(--primary-strong); }
.page-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.sidebar { position: sticky; top: 92px; }
.side-title { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; font-weight: 850; }
.side-links { display: grid; gap: 7px; }
.side-links a { text-decoration: none; padding: 10px 12px; border-radius: 12px; color: var(--text-soft); border: 1px solid transparent; font-weight: 750; }
.side-links a:hover, .side-links a.is-active { background: var(--primary-soft); border-color: rgba(22,119,255,.18); color: var(--primary-strong); }
.blog-content { line-height: 1.7; }
.blog-content h1, .blog-content h2, .blog-content h3 { margin: 18px 0 10px; color: var(--text); }
.blog-content p { margin: 10px 0; }
.blog-content ul, .blog-content ol { padding-left: 22px; }
.blog-content li { margin: 6px 0; }
.blog-content table { width: 100%; border-collapse: collapse; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.blog-content th, .blog-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.blog-content th { background: var(--primary-soft); color: var(--text); font-weight: 850; }
.blog-content td { color: var(--text-soft); }
.blog-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f4f8fd; border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.blog-content pre { padding: 16px; border-radius: 14px; background: var(--surface-soft); border: 1px solid var(--line); overflow: auto; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.status-steps, .summary-box { display: grid; gap: 14px; }
.status-step { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--surface-soft); border: 1px solid var(--line); }
.status-step-number { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; background: var(--primary-soft); color: var(--primary-strong); }
.qr-shell { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: center; }
.qr-box { padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.code-box { border-radius: 14px; background: var(--surface-soft); border: 1px solid var(--line); padding: 16px; word-break: break-all; color: #35506d; }

.footer-wrap { margin-top: 18px; border-top: 1px solid rgba(201,216,232,.8); background: rgba(255,255,255,.55); }
.footer { max-width: var(--container); margin: 0 auto; padding: 28px 20px 40px; color: var(--text-soft); display: grid; gap: 18px; }
.footer a { text-decoration: none; color: inherit; }
.footer a:hover { color: var(--primary-strong); }
.footer-links { display: grid; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; }
.legal-shell { max-width: 980px; margin: 0 auto; }
.legal-copy { display: grid; gap: 18px; }
.legal-copy h2 { font-size: 1.2rem; margin-top: 10px; }
.legal-copy ul { margin: 0; padding-left: 20px; color: var(--text-soft); }

.max-w-980 { max-width: 980px; margin: 0 auto; }
.max-w-860 { max-width: 860px; margin: 0 auto; }
.max-w-820 { max-width: 820px; margin: 0 auto; }
.surface-soft-gradient { background: linear-gradient(180deg,#ffffff 0%,#f7fbff 100%); }
.guide-summary-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.guide-fields-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-field-card { display: grid; gap: 12px; }
.guide-field-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }

@media (max-width: 1080px) {
  .hero-clean { grid-template-columns: 1fr; }
  .summary-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-menu { right: auto; left: 50%; transform: translateX(-50%); grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .navbar { align-items: flex-start; flex-direction: column; }
  .nav-actions, .nav-links { width: 100%; flex-wrap: wrap; align-items: stretch; }
  .nav-links > a, .nav-drop > summary { display: flex; align-items: center; }
  .nav-drop { width: 100%; }
  .mega-menu { position: static; transform: none; width: 100%; grid-template-columns: 1fr; margin-top: 8px; box-shadow: none; }
  .nav-cta { width: 100%; }
  .page { padding: 20px 14px 36px; }
  .grid-2, .grid-3, .form-grid, .example-grid, .summary-grid, .category-grid, .footer-grid, .page-layout, .guide-fields-grid, .compare-grid, .qr-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .btn-row .btn, .btn-row .btn-secondary, .btn-row .btn-ghost, .btn-row button { width: 100%; }
  .trust-strip span { flex: 1 1 100%; text-align: center; }
}

@media (hover: none) {
  .service-card-popover { display: none; }
  .service-card-summary {
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 2rem; }
  .panel, .hero-clean, .service-hero { padding: 20px; border-radius: 18px; }
  .brand-text small { display: none; }
  .brand-mark { width: 44px; height: 44px; }
  .service-card, .card { padding: 16px; }
  .upload-box { min-height: 160px; }
  .footer-bottom { display: grid; }
}

/* Ferramenta gratuita DANFE/DACTE */
.free-danfe-floating {
  scroll-margin-top: 96px;
  position: relative;
  margin: -8px 0 28px;
}
.free-danfe-shell {
  position: relative;
  display: grid;
  gap: 34px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 30px;
  border: 1px solid rgba(206,220,237,.95);
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(246,250,255,.98) 100%);
  box-shadow: 0 28px 70px rgba(24,46,78,.10);
  overflow: hidden;
}
.free-danfe-shell::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,119,255,.12) 0%, rgba(22,119,255,0) 70%);
  pointer-events: none;
}
.free-danfe-intro {
  position: relative;
  display: grid;
  gap: 10px;
  max-width: 720px;
}
.free-danfe-intro p {
  max-width: 640px;
  font-size: 1rem;
  color: #4f647c;
}
.free-danfe-toolbox {
  position: relative;
  display: grid;
  gap: 34px;
}
.free-danfe-inline-form {
  display: grid;
  gap: 18px;
}
.free-danfe-form-block {
  display: grid;
  gap: 18px;
}
.free-danfe-section-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 850;
  color: #334760;
  margin-bottom: 4px;
}
.free-danfe-key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.free-danfe-key-field {
  display: grid;
}
.free-danfe-key-field input {
  min-height: 56px;
  padding-inline: 18px;
  border-radius: 999px;
  background: #fff;
}
.free-danfe-submit {
  min-width: 182px;
  min-height: 50px;
  border-radius: 999px;
  padding-inline: 24px;
}
.free-danfe-submit-full {
  width: 100%;
  margin-top: 2px;
}
.free-danfe-submit:disabled {
  background: #dfe8f5;
  color: #6c7f96;
  border-color: transparent;
  box-shadow: none;
}
.free-danfe-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .92rem;
  margin: 4px 0;
}
.free-danfe-divider::before,
.free-danfe-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d7e1ee;
}
.free-danfe-divider span {
  padding: 0 18px;
}
.free-danfe-upload-shell {
  display: grid;
  gap: 20px;
}
.free-danfe-file-input,
input.free-danfe-file-input {
  display: none !important;
}
.free-danfe-upload-box {
  min-height: 210px;
  gap: 14px;
  border-width: 1.5px;
  border-color: rgba(22,119,255,.22);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.free-danfe-upload-box:hover,
.free-danfe-upload-box.is-drag {
  border-color: rgba(22,119,255,.8);
}
.free-danfe-upload-empty {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 640px;
}
.free-danfe-upload-empty .small {
  max-width: 560px;
}
.free-danfe-selected {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  max-width: 720px;
}
.free-danfe-upload-box.has-file {
  border-color: rgba(19,114,79,.28);
  background: linear-gradient(180deg, #ffffff 0%, #f5fcf8 100%);
}
.free-danfe-selected strong {
  color: #0ca25d;
  font-size: 1.06rem;
  overflow-wrap: anywhere;
}
.free-danfe-selected small {
  color: #67809c;
  font-size: .95rem;
}
.free-danfe-file-remove {
  border: 0;
  background: transparent;
  color: #4d6178;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}
.free-danfe-file-remove:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}
.free-danfe-result:empty {
  display: none;
}
.free-danfe-result .btn-row {
  margin-top: 10px;
}
.free-danfe-footer-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid rgba(214,225,238,.85);
  color: #5f738b;
  font-size: .95rem;
}
.free-danfe-footer-note a {
  color: var(--primary-strong);
  font-weight: 850;
  text-decoration: none;
}
.free-danfe-footer-note a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .free-danfe-key-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .free-danfe-submit {
    min-width: 190px;
    min-height: 54px;
    border-radius: 999px;
    padding-inline: 26px;
  }
}

.blog-cta-box {
  margin: 32px 0;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(22,119,255,.10), rgba(22,119,255,.04));
  border: 1px solid rgba(22,119,255,.18);
  text-align: center;
}

.blog-cta-box h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--text, #102033);
}

.blog-cta-box p {
  margin: 0 auto 18px;
  max-width: 620px;
  color: var(--text-soft, #5f6f82);
  line-height: 1.6;
}

.blog-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: #1677ff;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(22,119,255,.22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.blog-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(22,119,255,.30);
  background: #0f63d8;
  color: #fff;
}

@media (max-width: 640px) {
  .free-danfe-floating {
    margin: -4px 0 22px;
  }
  .free-danfe-shell {
    gap: 22px;
    padding: 20px 16px;
    border-radius: 24px;
  }
  .free-danfe-intro h2 {
    font-size: 1.55rem;
  }
  .free-danfe-intro p {
    font-size: .96rem;
  }
  .free-danfe-upload-box {
    min-height: 190px;
    padding: 22px 16px;
    border-radius: 22px;
  }
  .free-danfe-footer-note {
    align-items: flex-start;
  }
}
