.dw-factura { --sx-green: var(--dw-green); }

.dw-factura__hero-img { border-radius: 8px; }

.dw-factura__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.dw-factura__hero-meta li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}
.dw-factura__hero-meta strong {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  color: #fff;
}

.dw-factura__facts {
  padding-block: clamp(32px, 4.5vw, 52px);
  background: var(--dw-soft);
  border-bottom: 1px solid var(--dw-line-soft);
}
.dw-factura__facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3.5vw, 2.5rem);
}
.dw-factura__fact { text-align: center; }
.dw-factura__fact strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-brand);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dw-blue-deep);
}
.dw-factura__fact span { font-size: 0.92rem; line-height: 1.5; color: var(--dw-muted); }

.dw-factura__grid { display: grid; gap: 1.5rem; }

.dw-factura__showcase {
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  max-width: 1120px;
}

.dw-factura__showcase img {
  display: block;
  width: 100%;
  height: auto;
}

.dw-factura__note {
  margin: 1.5rem auto 0;
  max-width: 46rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--dw-muted);
}

.dw-factura .sx-link,
.dw-factura .dw-faq__answer a,
.dw-factura .dw-sub a {
  color: var(--dw-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(0, 68, 170, 0.3);
  text-underline-offset: 3px;
}
.dw-factura .sx-link:hover,
.dw-factura .dw-faq__answer a:hover,
.dw-factura .dw-sub a:hover { color: var(--dw-blue-deep); text-decoration-color: var(--dw-blue); }

.dw-factura .dw-band__actions { flex-wrap: wrap; }

.dw-factura .sx-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2rem;
}
.dw-factura .sx-toggle__label { font-weight: 700; color: var(--dw-muted); font-size: 1rem; }
.dw-factura .sx-toggle__label.is-active { color: var(--dw-ink); }
.dw-factura .sx-toggle__switch { position: relative; display: inline-flex; cursor: pointer; }
.dw-factura .sx-toggle__switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dw-factura .sx-toggle__switch input:focus-visible + .sx-toggle__track {
  outline: 2px solid var(--dw-blue);
  outline-offset: 3px;
}
.dw-factura .sx-toggle__track {
  display: inline-flex;
  align-items: center;
  width: 60px;
  height: 32px;
  padding: 3px;
  border-radius: 999px;
  background: var(--dw-soft);
  border: 1px solid var(--dw-line);
  transition: background-color 0.2s ease;
}
.dw-factura .sx-toggle__track.is-pro { background: var(--dw-blue-deep); border-color: var(--dw-blue-deep); }
.dw-factura .sx-toggle__thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 50, 125, 0.3);
  transition: transform 0.2s ease;
}
.dw-factura .sx-toggle__track.is-pro .sx-toggle__thumb { transform: translateX(28px); }

.dw-factura [data-pricing-toggle-target][hidden] { display: none; }

.dw-factura [data-pricing-toggle-target="proPlans"] .sx-plan__price {
  font-size: clamp(1.5rem, 7.5vw, 2.1rem);
}

@media (max-width: 480px) {
  .dw-factura [data-pricing-toggle-target="proPlans"] .sx-plan { padding-inline: 1.2rem; }
}

@media (min-width: 640px) {
  .dw-factura__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .dw-factura__facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .dw-factura__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.dw-factura__compare-link {
  margin: -0.85rem 0 1.75rem;
  text-align: center;
  font-size: 0.95rem;
}

.dw-compare {
  --dw-compare-feature-w: 220px;
  width: 100%;
  max-width: 100%;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-inline: clamp(20px, 2vw, 32px);
}

.dw-compare__head {
  max-width: 46rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.dw-compare__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-brand);
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--dw-blue-deep);
}

.dw-compare__sub {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--dw-muted);
}

.dw-compare__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dw-muted);
}
.dw-compare__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dw-compare__scroller {
  position: relative;
}

.dw-compare__scroll {
  max-width: 100%;
  overflow-x: auto;
  contain: paint;
  border: 1px solid var(--dw-line);
  border-radius: var(--dw-r-lg);
  background: #fff;
  box-shadow: var(--dw-shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--dw-blue) transparent;
  overscroll-behavior-inline: contain;
  scroll-padding-left: var(--dw-compare-feature-w);
  -webkit-overflow-scrolling: touch;
}
.dw-compare__scroll:focus-visible {
  outline: 2px solid var(--dw-blue);
  outline-offset: 3px;
}
.dw-compare__scroll::-webkit-scrollbar { height: 12px; }
.dw-compare__scroll::-webkit-scrollbar-track {
  margin-inline: 14px;
  background: transparent;
}
.dw-compare__scroll::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--dw-blue);
  background-clip: padding-box;
}
.dw-compare__scroll::-webkit-scrollbar-thumb:hover {
  background: var(--dw-blue-deep);
  background-clip: padding-box;
}
.dw-compare__scroll::-webkit-scrollbar-corner { background: transparent; }

.dw-compare__fade {
  position: absolute;
  top: 1px;
  bottom: 1px;
  z-index: 6;
  width: 30px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.18s ease;
}
.dw-compare__fade--start {
  left: var(--dw-compare-feature-w);
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
}
.dw-compare__fade--end {
  right: 1px;
  border-radius: 0 var(--dw-r-lg) var(--dw-r-lg) 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
}
.dw-compare__scroller[data-overflow="false"] .dw-compare__fade,
.dw-compare__scroller[data-at-start="true"] .dw-compare__fade--start,
.dw-compare__scroller[data-at-end="true"] .dw-compare__fade--end {
  opacity: 0;
}

.dw-compare__table {
  width: 100%;
  min-width: 1060px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}
.dw-compare__table th,
.dw-compare__table td {
  padding: 0.78rem 0.7rem;
  border-bottom: 1px solid var(--dw-line-soft);
  vertical-align: middle;
}
.dw-compare__table td { text-align: center; color: var(--dw-body); }

.dw-compare__feature-col {
  position: sticky;
  left: 0;
  z-index: 2;
  width: var(--dw-compare-feature-w);
  min-width: var(--dw-compare-feature-w);
  max-width: 240px;
  text-align: left;
  background: #fff;
  box-shadow: 8px 0 12px -8px rgba(0, 50, 125, 0.18);
}

.dw-compare__corner {
  z-index: 5;
  background: var(--dw-blue-deep);
}

.dw-compare__group {
  padding-block: 0.65rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}
.dw-compare__group--go { background: var(--dw-blue); }
.dw-compare__group--pro { background: var(--dw-blue-deep); }

.dw-compare__plans th {
  background: var(--dw-soft);
  color: var(--dw-ink);
  font-family: var(--font-brand);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.dw-compare__plans .dw-compare__feature-col {
  z-index: 4;
  background: var(--dw-soft);
}
.dw-compare__plan-tier {
  display: block;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.dw-compare__table tbody tr:nth-child(even) td,
.dw-compare__table tbody tr:nth-child(even) th[scope="row"] {
  background: var(--dw-soft);
}

.dw-compare__metric th[scope="row"] {
  font-weight: 700;
  color: var(--dw-ink);
}
.dw-compare__price strong {
  display: block;
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dw-blue-deep);
  white-space: nowrap;
}
.dw-compare__price span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--dw-muted);
  white-space: nowrap;
}

.dw-compare__section th {
  position: sticky;
  left: 0;
  z-index: 3;
  padding: 0.68rem 0.85rem;
  background: var(--dw-blue-soft);
  color: var(--dw-blue-deep);
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  border-top: 1px solid var(--dw-line);
}

.dw-compare__feature th[scope="row"] {
  font-weight: 600;
  color: var(--dw-body);
}
.dw-compare__cell svg {
  display: inline-block;
  vertical-align: middle;
}
.dw-compare__cell.is-yes { color: var(--dw-green); }
.dw-compare__cell.is-no { color: var(--dw-muted); }
.dw-compare__dash { font-weight: 700; }

.dw-compare__cta-row th,
.dw-compare__cta-row td {
  padding-block: 0.85rem;
  border-bottom: 0;
  background: #fff;
}
.dw-compare__cta-row .dw-compare__feature-col {
  font-weight: 700;
  color: var(--dw-ink);
}
.dw-compare__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: var(--dw-blue);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.dw-compare__cta:hover { background: var(--dw-blue-deep); }
.dw-compare__cta:focus-visible {
  outline: 2px solid var(--dw-blue-deep);
  outline-offset: 2px;
}

.dw-compare__hint {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--dw-muted);
  opacity: 1;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.dw-compare__scroller[data-overflow="false"] + .dw-compare__hint,
.dw-compare__scroller[data-at-end="true"] + .dw-compare__hint {
  visibility: hidden;
  opacity: 0;
}

.dw-factura .dw-compare__sr,
.dw-factura .dw-compare__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .dw-compare__fade,
  .dw-compare__hint { transition: none; }
}

@media (max-width: 640px) {
  .dw-compare { --dw-compare-feature-w: 176px; }
  .dw-compare__table {
    min-width: 980px;
    font-size: 0.82rem;
  }
  .dw-compare__table th,
  .dw-compare__table td { padding: 0.68rem 0.55rem; }
  .dw-compare__feature-col { max-width: 190px; }
  .dw-compare__price strong { font-size: 0.92rem; }
  .dw-compare__cta { padding-inline: 0.55rem; }
}
