/* Devstack refresh layer: readable type, brand buttons, layout components.
   Loads after all legacy stylesheets; legacy files use !important heavily, so a few overrides here do too. */

html[data-theme="dark"] {
  --ds-blue: #0aa4fe;
  --ds-blue-300: #7dd3fc;
  --ds-blue-soft: rgba(10, 164, 254, 0.12);
  --ds-orange: #e8923a;
  --ds-orange-hover: #f2a65a;
  --ds-ink: #0b111d;
  --ds-surface-1: #0c1424;
  --ds-surface-2: #111b30;
  --ds-line: rgba(148, 163, 184, 0.16);
  --ds-line-strong: rgba(148, 163, 184, 0.28);
  --ds-text: #f1f5f9;
  --ds-muted: #c3cedd;
  --ds-subtle: #94a3b8;
  --ds-radius: 14px;
  --ds-radius-sm: 10px;
  --ds-header-h: 72px;

  /* Legacy tokens from visual-polish.css, raised to readable sizes */
  --ds-type-base: 1rem;
  --ds-type-sm: 1rem;
  --ds-type-xs: 0.9375rem;
  --ds-title-lg: clamp(1.6rem, 2.8vw, 2.25rem);
  --ds-title-hero: clamp(2rem, 4.4vw, 3.25rem);
}

@media (max-width: 768px) {
  html[data-theme="dark"] {
    --ds-header-h: 64px;
  }
}

html[data-theme="dark"] body.site-themed {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ds-text) !important;
}

html[data-theme="dark"] body.site-themed p {
  font-size: inherit;
  line-height: 1.65;
}

/* Quieter background: keep the brand glow, drop the animated shimmer */
html[data-theme="dark"] .ambient-bg::after {
  display: none;
}

html[data-theme="dark"] .ambient-bg {
  background:
    radial-gradient(ellipse 80% 45% at 50% -15%, rgba(10, 164, 254, 0.12), transparent 60%),
    var(--ds-bg);
}

/* ---------- Accessibility primitives ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.75rem 1rem;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-orange);
  color: var(--ds-ink) !important;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

body.site-themed a:focus-visible,
body.site-themed button:focus-visible,
body.site-themed input:focus-visible,
body.site-themed select:focus-visible,
body.site-themed textarea:focus-visible,
body.site-themed summary:focus-visible,
body.site-themed [tabindex]:focus-visible {
  outline: 3px solid var(--ds-orange-hover) !important;
  outline-offset: 2px;
  box-shadow: none;
}

body.site-themed [tabindex="-1"]:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
body.site-themed .btn-ds {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--ds-radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

body.site-themed .btn-ds i {
  font-size: 1.05em;
}

body.site-themed .btn-ds--primary {
  background: var(--ds-orange);
  color: var(--ds-ink) !important;
  box-shadow: 0 6px 18px rgba(232, 146, 58, 0.22);
}

body.site-themed .btn-ds--primary:hover {
  background: var(--ds-orange-hover);
  color: var(--ds-ink) !important;
}

body.site-themed .btn-ds--secondary {
  background: rgba(10, 164, 254, 0.08);
  border-color: rgba(125, 211, 252, 0.45);
  color: #e0f2fe !important;
}

body.site-themed .btn-ds--secondary:hover {
  background: rgba(10, 164, 254, 0.18);
  border-color: var(--ds-blue-300);
  color: #fff !important;
}

body.site-themed .btn-ds--whatsapp {
  background: #25d366;
  color: #052e16 !important;
}

body.site-themed .btn-ds--whatsapp:hover {
  background: #3ee07a;
  color: #052e16 !important;
}

body.site-themed .btn-ds--ghost {
  background: transparent;
  border-color: var(--ds-line-strong);
  color: var(--ds-text) !important;
}

body.site-themed .btn-ds--ghost:hover {
  border-color: #4ade80;
  color: #fff !important;
}

body.site-themed .btn-ds--ghost .fa-whatsapp {
  color: #4ade80;
}

body.site-themed .btn-ds--sm {
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.925rem;
}

body.site-themed .btn-ds--block {
  width: 100%;
}

body.site-themed .btn-ds[disabled] {
  opacity: 0.65;
  cursor: progress;
}

body.site-themed .ds-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: var(--ds-blue-300) !important;
  font-weight: 700;
  text-decoration: none !important;
}

body.site-themed .ds-link::after {
  content: "\2192";
  transition: transform 0.18s ease;
}

body.site-themed .ds-link:hover {
  color: #fff !important;
}

body.site-themed .ds-link:hover::after {
  transform: translateX(3px);
}

body.site-themed .ds-link--external::after {
  content: "\2197";
}

.ds-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.ds-mt {
  margin-top: 1.5rem !important;
}

/* ---------- Header ---------- */
body.site-themed .ds-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(6, 8, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ds-line);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

body.site-themed .ds-header.is-scrolled {
  background: rgba(6, 8, 15, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.site-themed .ds-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--ds-header-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

body.site-themed .ds-nav__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}

body.site-themed .ds-nav__brand img {
  height: 40px;
  width: auto;
}

body.site-themed .ds-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

body.site-themed .ds-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.8rem;
  border-radius: 8px;
  color: #dbe4ef !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
}

body.site-themed .ds-nav__links a:hover {
  color: #fff !important;
  background: rgba(148, 163, 184, 0.08);
}

body.site-themed .ds-nav__links a[aria-current="page"] {
  color: #fff !important;
  box-shadow: inset 0 -2px 0 var(--ds-orange);
  border-radius: 0;
}

body.site-themed .ds-nav__menu-extra {
  display: none;
}

body.site-themed .ds-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

body.site-themed .ds-nav__toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 1px solid var(--ds-line-strong);
  border-radius: var(--ds-radius-sm);
  background: transparent;
  cursor: pointer;
}

body.site-themed .ds-nav__toggle span,
body.site-themed .ds-nav__toggle span::before,
body.site-themed .ds-nav__toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.site-themed .ds-nav__toggle span {
  top: 50%;
  margin-top: -1px;
}

body.site-themed .ds-nav__toggle span::before,
body.site-themed .ds-nav__toggle span::after {
  content: "";
  left: 0;
  margin-left: 0;
}

body.site-themed .ds-nav__toggle span::before {
  top: -6px;
}

body.site-themed .ds-nav__toggle span::after {
  top: 6px;
}

body.site-themed .ds-header.is-open .ds-nav__toggle span {
  background: transparent;
}

body.site-themed .ds-header.is-open .ds-nav__toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

body.site-themed .ds-header.is-open .ds-nav__toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1199.98px) {
  body.site-themed .ds-nav {
    gap: 1rem;
  }

  body.site-themed .ds-nav__links a {
    padding: 0 0.6rem;
  }

  body.site-themed .ds-nav__wa span {
    display: none;
  }
}

@media (max-width: 991.98px) {
  /* backdrop-filter makes the header the containing block for the fixed menu panel. */
  body.site-themed .ds-header,
  body.site-themed .ds-header.is-scrolled {
    background: #06080f;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.site-themed .ds-nav__toggle {
    display: inline-block;
  }

  body.site-themed .ds-nav__actions {
    display: none;
  }

  body.site-themed .ds-nav__links {
    position: fixed;
    top: var(--ds-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 1rem clamp(1rem, 4vw, 1.5rem) 2rem;
    background: #070b14;
    border-top: 1px solid var(--ds-line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  body.site-themed .ds-header.is-open .ds-nav__links {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  body.site-themed .ds-nav__links a {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 0 0.25rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--ds-line);
    border-radius: 0;
  }

  body.site-themed .ds-nav__links a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--ds-orange);
    padding-left: 0.85rem;
  }

  body.site-themed .ds-nav__menu-extra {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  body.site-themed .ds-nav__menu-extra a.btn-ds {
    justify-content: center;
    min-height: 50px;
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-radius-sm);
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  body.site-themed .ds-nav__menu-extra a.btn-ds--primary {
    border-color: var(--ds-orange);
    color: var(--ds-ink) !important;
  }

  body.site-themed .ds-nav__menu-extra a.btn-ds--ghost {
    color: var(--ds-text) !important;
  }

  body.site-themed .ds-nav__menu-extra p {
    margin: 0.5rem 0 0;
    color: var(--ds-subtle) !important;
    font-size: 0.9rem;
    text-align: center;
  }

  body.ds-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 400px) {
  body.site-themed .ds-nav__brand img {
    height: 34px;
  }
}

/* ---------- Layout ---------- */
body.site-themed main:focus {
  outline: none;
}

body.site-themed main [id] {
  scroll-margin-top: calc(var(--ds-header-h) + 1rem);
}

.ds-section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.ds-section--alt {
  background: rgba(12, 20, 36, 0.6);
  border-top: 1px solid var(--ds-line);
  border-bottom: 1px solid var(--ds-line);
}

.ds-section--tight {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.ds-section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.ds-section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ds-section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: none;
}

.ds-section-head--split > div {
  max-width: 46rem;
}

html[data-theme="dark"] body.site-themed .ds-eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: var(--ds-blue-300) !important;
  font-size: 0.8rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: none;
}

html[data-theme="dark"] body.site-themed .ds-h1,
html[data-theme="dark"] body.site-themed .ds-h2,
html[data-theme="dark"] body.site-themed .ds-h3 {
  color: #fff !important;
  font-family: var(--ds-font, "Plus Jakarta Sans", sans-serif) !important;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-shadow: none;
}

html[data-theme="dark"] body.site-themed .ds-h1 {
  font-size: clamp(2rem, 4.4vw, 3.15rem) !important;
  line-height: 1.12 !important;
  margin: 0 0 1.1rem;
}

html[data-theme="dark"] body.site-themed .ds-h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem) !important;
  line-height: 1.2 !important;
  margin: 0 0 0.85rem;
}

html[data-theme="dark"] body.site-themed .ds-h3 {
  font-size: 1.15rem !important;
  line-height: 1.35 !important;
  margin: 0 0 0.5rem;
}

html[data-theme="dark"] body.site-themed .ds-lead {
  max-width: 42rem;
  margin: 0;
  color: var(--ds-muted) !important;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem) !important;
  line-height: 1.65 !important;
}

.ds-section-head--center .ds-lead {
  margin-left: auto;
  margin-right: auto;
}

html[data-theme="dark"] body.site-themed .ds-muted,
html[data-theme="dark"] body.site-themed .ds-card p,
html[data-theme="dark"] body.site-themed .ds-card li {
  color: var(--ds-muted) !important;
}

/* ---------- Hero ---------- */
.ds-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.ds-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(10, 164, 254, 0.22), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(232, 146, 58, 0.1), transparent 45%);
}

.ds-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 70%, var(--ds-bg, #06080f) 100%);
}

.ds-hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 992px) {
  .ds-hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

html[data-theme="dark"] body.site-themed .ds-hero .ds-h1 {
  font-size: clamp(2.15rem, 5vw, 3.4rem) !important;
  max-width: 17ch;
}

html[data-theme="dark"] body.site-themed .ds-hero .ds-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem) !important;
}

.ds-hero .ds-actions {
  margin-top: 2rem;
}

.ds-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

html[data-theme="dark"] body.site-themed .ds-hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ds-muted) !important;
  font-size: 0.95rem;
}

.ds-hero__facts i {
  color: var(--ds-orange);
}

.ds-panel {
  background: rgba(12, 20, 36, 0.82);
  border: 1px solid var(--ds-line-strong);
  border-radius: var(--ds-radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body.site-themed .ds-panel__title {
  margin: 0 0 1rem;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 700;
}

.ds-panel__list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.site-themed .ds-panel__list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 52px;
  padding: 0.5rem 0.65rem;
  border-radius: var(--ds-radius-sm);
  color: var(--ds-text) !important;
  font-weight: 600;
  text-decoration: none !important;
}

body.site-themed .ds-panel__list a:hover {
  background: rgba(148, 163, 184, 0.08);
}

body.site-themed .ds-panel__list a::after {
  content: "\2192";
  margin-left: auto;
  color: var(--ds-subtle);
}

.ds-panel__list small {
  display: block;
  color: var(--ds-subtle) !important;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.35;
}

.ds-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-blue-soft);
  color: var(--ds-blue-300);
  font-size: 1rem;
}

.ds-icon--orange {
  background: rgba(232, 146, 58, 0.14);
  color: var(--ds-orange-hover);
}

/* ---------- Inner page hero ---------- */
.ds-page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--ds-line);
}

.ds-page-hero .ds-lead {
  margin-top: 0.25rem;
}

.ds-page-hero .ds-actions {
  margin-top: 1.75rem;
}

.ds-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

html[data-theme="dark"] body.site-themed .ds-breadcrumbs li {
  color: var(--ds-subtle) !important;
}

.ds-breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--ds-subtle);
}

body.site-themed .ds-breadcrumbs a {
  color: var(--ds-blue-300) !important;
  text-decoration: none;
}

body.site-themed .ds-breadcrumbs a:hover {
  text-decoration: underline;
}

/* ---------- Grids & cards ---------- */
.ds-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.ds-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.ds-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

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

.ds-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(12, 20, 36, 0.72);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ds-card:hover {
  border-color: rgba(125, 211, 252, 0.32);
  background: rgba(15, 25, 45, 0.82);
}

.ds-card .ds-icon {
  margin-bottom: 1rem;
}

html[data-theme="dark"] body.site-themed .ds-card p {
  font-size: 0.975rem !important;
  line-height: 1.6 !important;
  margin-bottom: 0.75rem;
}

.ds-card > :last-child {
  margin-bottom: 0;
}

.ds-card__footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.ds-card--media {
  padding: 0;
  overflow: hidden;
}

.ds-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ds-surface-2);
  border-bottom: 1px solid var(--ds-line);
  overflow: hidden;
}

.ds-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ds-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.5rem 1.25rem;
}

.ds-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}

html[data-theme="dark"] body.site-themed .ds-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--ds-blue-soft);
  color: #bae6fd !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  line-height: 1.4;
}

html[data-theme="dark"] body.site-themed .ds-tag--status {
  background: rgba(232, 146, 58, 0.14);
  color: #fcd9b0 !important;
}

html[data-theme="dark"] body.site-themed .ds-tag--muted {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1 !important;
}

.ds-dl {
  margin: 0 0 1rem;
}

html[data-theme="dark"] body.site-themed .ds-dl dt {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

html[data-theme="dark"] body.site-themed .ds-dl dd {
  margin: 0.1rem 0 0.65rem;
  color: var(--ds-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ds-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

/* Check lists */
.ds-checks {
  display: grid;
  gap: 0.85rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .ds-checks--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-theme="dark"] body.site-themed .ds-checks li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--ds-text) !important;
  font-size: 1rem;
  line-height: 1.55;
}

.ds-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(232, 146, 58, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23f2a65a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

html[data-theme="dark"] body.site-themed .ds-checks--compact li {
  font-size: 0.95rem;
  color: var(--ds-muted) !important;
}

/* Problem cards */
.ds-problem {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ds-problem .ds-icon {
  margin: 0;
}

/* Process */
.ds-steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.ds-steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  background: rgba(12, 20, 36, 0.72);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
}

.ds-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ds-orange-hover);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

html[data-theme="dark"] body.site-themed .ds-steps h3 {
  margin: 0 0 0.35rem;
  color: #fff !important;
  font-size: 1.05rem !important;
  font-weight: 700;
  line-height: 1.3 !important;
}

html[data-theme="dark"] body.site-themed .ds-steps p {
  margin: 0;
  color: var(--ds-muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
}

/* Industry cards */
.ds-industry .ds-card__media {
  aspect-ratio: 16 / 9;
}

.ds-industry .ds-card__media img {
  object-position: center;
}

.ds-industry .ds-card__body {
  padding: 1.1rem 1.25rem 1.1rem;
}

/* FAQ (reuses .faq-item markup driven by site.js) */
body.site-themed .ds-faq {
  max-width: 820px;
  margin: 0 auto;
}

html[data-theme="dark"] body.site-themed .ds-faq .faq-item {
  margin-bottom: 0.75rem;
  background: rgba(12, 20, 36, 0.72) !important;
  border: 1px solid var(--ds-line) !important;
  border-radius: var(--ds-radius-sm) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.site-themed .ds-faq .faq-question {
  min-height: 56px;
  padding: 1rem 1.25rem;
  color: #fff !important;
  font-size: 1.025rem !important;
  font-weight: 650;
  line-height: 1.45;
}

html[data-theme="dark"] body.site-themed .ds-faq .faq-question::after {
  color: var(--ds-orange-hover);
  font-size: 1.4rem;
}

html[data-theme="dark"] body.site-themed .ds-faq .faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--ds-muted) !important;
  font-size: 0.99rem !important;
  line-height: 1.65 !important;
}

/* CTA band */
.ds-cta-band {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(10, 164, 254, 0.14), rgba(12, 20, 36, 0.9) 55%), var(--ds-surface-1);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: calc(var(--ds-radius) + 4px);
}

@media (min-width: 992px) {
  .ds-cta-band {
    grid-template-columns: minmax(0, 1.4fr) auto;
  }
}

.ds-cta-band .ds-h2 {
  margin-bottom: 0.5rem;
}

.ds-cta-band .ds-lead {
  max-width: 40rem;
}

.ds-cta-band__note {
  margin: 0.75rem 0 0;
  font-size: 0.925rem;
}

html[data-theme="dark"] body.site-themed .ds-cta-band__note,
html[data-theme="dark"] body.site-themed .ds-cta-band__note a {
  color: var(--ds-subtle) !important;
}

body.site-themed .ds-cta-band__note a {
  text-decoration: underline;
}

/* ---------- Services ---------- */
.ds-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.site-themed .ds-jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--ds-line-strong);
  border-radius: 999px;
  color: var(--ds-text) !important;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none !important;
}

body.site-themed .ds-jump a:hover {
  border-color: var(--ds-blue-300);
  background: var(--ds-blue-soft);
}

body.site-themed .ds-jump i {
  color: var(--ds-blue-300);
}

.ds-service {
  scroll-margin-top: calc(var(--ds-header-h) + 1rem);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: rgba(12, 20, 36, 0.72);
  border: 1px solid var(--ds-line);
  border-radius: calc(var(--ds-radius) + 2px);
}

.ds-service + .ds-service {
  margin-top: 1.25rem;
}

.ds-service__head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.ds-service__head .ds-icon {
  width: 3rem;
  height: 3rem;
  font-size: 1.2rem;
}

.ds-service__head .ds-h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem) !important;
  margin-bottom: 0.35rem;
}

.ds-service__grid {
  display: grid;
  gap: 1.5rem 2.5rem;
}

@media (min-width: 900px) {
  .ds-service__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-theme="dark"] body.site-themed .ds-service h3 {
  margin: 0 0 0.5rem;
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

html[data-theme="dark"] body.site-themed .ds-service p {
  color: var(--ds-muted) !important;
}

.ds-service__block + .ds-service__block {
  margin-top: 1.25rem;
}

.ds-service__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ds-line);
}

html[data-theme="dark"] body.site-themed .ds-service__proof {
  margin: 0;
  color: var(--ds-muted) !important;
  font-size: 0.95rem;
}

body.site-themed .ds-service__proof a {
  color: var(--ds-blue-300) !important;
  font-weight: 600;
}

/* ---------- Prose (case studies, legal) ---------- */
.ds-prose {
  max-width: 46rem;
}

html[data-theme="dark"] body.site-themed .ds-prose h2 {
  margin: 2.25rem 0 0.75rem;
  color: #fff !important;
  font-size: clamp(1.3rem, 2vw, 1.55rem) !important;
  font-weight: 700;
  line-height: 1.3 !important;
}

html[data-theme="dark"] body.site-themed .ds-prose h3 {
  margin: 1.5rem 0 0.5rem;
  color: #fff !important;
  font-size: 1.1rem !important;
  font-weight: 700;
}

html[data-theme="dark"] body.site-themed .ds-prose p,
html[data-theme="dark"] body.site-themed .ds-prose li {
  color: var(--ds-muted) !important;
  font-size: 1.025rem;
  line-height: 1.75;
}

.ds-prose ul {
  padding-left: 1.25rem;
}

.ds-prose li + li {
  margin-top: 0.35rem;
}

body.site-themed .ds-prose a {
  color: var(--ds-blue-300) !important;
  text-decoration: underline;
}

.ds-figure {
  margin: 0;
  overflow: hidden;
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
}

.ds-figure img {
  display: block;
  width: 100%;
  height: auto;
}

html[data-theme="dark"] body.site-themed .ds-figure figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--ds-line);
  color: var(--ds-subtle) !important;
  font-size: 0.875rem;
}

.ds-case-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 992px) {
  .ds-case-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .ds-case-layout__aside {
    position: sticky;
    top: calc(var(--ds-header-h) + 1.5rem);
  }
}

.ds-facts {
  margin: 0;
}

.ds-facts div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ds-line);
}

.ds-facts div:first-child {
  padding-top: 0;
}

html[data-theme="dark"] body.site-themed .ds-facts dt {
  color: var(--ds-subtle);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="dark"] body.site-themed .ds-facts dd {
  margin: 0.2rem 0 0;
  color: var(--ds-text);
  font-size: 0.975rem;
}

body.site-themed .ds-facts a {
  display: inline-block;
  padding: 0.2rem 0;
  color: var(--ds-blue-300) !important;
}

.ds-note {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--ds-orange);
  background: rgba(232, 146, 58, 0.08);
  border-radius: 0 var(--ds-radius-sm) var(--ds-radius-sm) 0;
}

html[data-theme="dark"] body.site-themed .ds-note p {
  margin: 0;
  color: var(--ds-text) !important;
  font-size: 0.95rem;
}

/* ---------- Forms ---------- */
.ds-contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (min-width: 992px) {
  .ds-contact-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }
}

.ds-form-card {
  scroll-margin-top: calc(var(--ds-header-h) + 1rem);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  background: rgba(12, 20, 36, 0.82);
  border: 1px solid var(--ds-line-strong);
  border-radius: calc(var(--ds-radius) + 2px);
}

.ds-form__row {
  display: grid;
  gap: 0 1.25rem;
}

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

.ds-field {
  margin-bottom: 1.15rem;
}

html[data-theme="dark"] body.site-themed .ds-field label {
  display: block;
  margin-bottom: 0.4rem;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 650;
}

html[data-theme="dark"] body.site-themed .ds-field .ds-optional {
  color: var(--ds-subtle) !important;
  font-weight: 500;
}

html[data-theme="dark"] body.site-themed .ds-field input,
html[data-theme="dark"] body.site-themed .ds-field select,
html[data-theme="dark"] body.site-themed .ds-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: #0a101d !important;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: var(--ds-radius-sm);
  color: #fff !important;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html[data-theme="dark"] body.site-themed .ds-field select {
  appearance: none;
  padding-right: 2.5rem;
  background: #0a101d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2394a3b8' stroke-width='2' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 0.85rem center / 1rem no-repeat !important;
}

html[data-theme="dark"] body.site-themed .ds-field textarea {
  min-height: 140px;
  resize: vertical;
}

html[data-theme="dark"] body.site-themed .ds-field input::placeholder,
html[data-theme="dark"] body.site-themed .ds-field textarea::placeholder {
  color: #7c8a9e;
}

html[data-theme="dark"] body.site-themed .ds-field input:focus,
html[data-theme="dark"] body.site-themed .ds-field select:focus,
html[data-theme="dark"] body.site-themed .ds-field textarea:focus {
  border-color: var(--ds-blue-300);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.2);
  outline: none !important;
}

html[data-theme="dark"] body.site-themed .ds-field [aria-invalid="true"] {
  border-color: #f87171;
}

html[data-theme="dark"] body.site-themed .ds-field__hint {
  margin: 0.35rem 0 0;
  color: var(--ds-subtle) !important;
  font-size: 0.85rem;
}

html[data-theme="dark"] body.site-themed .ds-field__error {
  margin: 0.4rem 0 0;
  color: #fca5a5 !important;
  font-size: 0.9rem;
  font-weight: 600;
}

.ds-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

html[data-theme="dark"] body.site-themed .ds-form__status {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--ds-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
}

html[data-theme="dark"] body.site-themed .ds-form__status.is-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca !important;
}

html[data-theme="dark"] body.site-themed .ds-form__status.is-info {
  background: var(--ds-blue-soft);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #e0f2fe !important;
}

.ds-form__submit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ds-form.no-endpoint .ds-only-endpoint,
.ds-form.has-endpoint .ds-only-no-endpoint {
  display: none !important;
}

html[data-theme="dark"] body.site-themed .ds-form__privacy {
  margin: 1rem 0 0;
  color: var(--ds-subtle) !important;
  font-size: 0.875rem;
}

body.site-themed .ds-form__privacy a {
  color: var(--ds-blue-300) !important;
}

.ds-success {
  padding: clamp(1.25rem, 3.5vw, 2rem);
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: var(--ds-radius);
}

.ds-success:focus {
  outline: none;
}

.ds-success .ds-actions {
  margin: 1.25rem 0;
}

.ds-steps-inline {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
}

html[data-theme="dark"] body.site-themed .ds-steps-inline li {
  color: var(--ds-muted) !important;
  margin-bottom: 0.35rem;
}

.ds-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--ds-line);
}

.ds-contact-list li:last-child {
  border-bottom: 0;
}

html[data-theme="dark"] body.site-themed .ds-contact-list strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

body.site-themed .ds-contact-list a {
  color: var(--ds-blue-300) !important;
  font-weight: 600;
  font-size: 1.05rem;
}

html[data-theme="dark"] body.site-themed .ds-contact-list span {
  color: var(--ds-muted);
  font-size: 0.95rem;
}

html[data-theme="dark"] body.site-themed .ds-price {
  margin: 0.25rem 0 0.75rem;
  color: #fff !important;
  font-size: 1.5rem !important;
  font-weight: 800;
  line-height: 1.2 !important;
}

/* ---------- About ---------- */
.ds-value-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

.ds-team {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-team .ds-card {
  align-items: center;
  text-align: center;
}

.ds-team img {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--ds-surface-2);
}

html[data-theme="dark"] body.site-themed .ds-team p {
  margin: 0;
  color: var(--ds-orange-hover) !important;
  font-size: 0.925rem !important;
  font-weight: 600;
}

/* ---------- Footer ---------- */
body.site-themed .ds-footer {
  margin-top: 0;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
  background: #070b14;
  border-top: 1px solid var(--ds-line);
}

.ds-footer__grid {
  display: grid;
  gap: 2.25rem 2rem;
}

@media (min-width: 768px) {
  .ds-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .ds-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  }
}

.ds-footer__brand > a {
  display: inline-block;
}

.ds-footer__brand img {
  display: block;
  height: 44px;
  width: auto;
}

html[data-theme="dark"] body.site-themed .ds-footer__brand p {
  max-width: 24rem;
  margin: 1rem 0 0;
  color: var(--ds-muted) !important;
  font-size: 0.95rem;
}

html[data-theme="dark"] body.site-themed .ds-footer__title {
  margin: 0 0 0.85rem;
  color: #fff !important;
  font-size: 0.85rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ds-footer__links,
.ds-footer__contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-footer__links li,
.ds-footer__contact li {
  margin: 0;
}

body.site-themed .ds-footer__links a,
body.site-themed .ds-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  color: var(--ds-muted) !important;
  font-size: 0.95rem;
  text-decoration: none !important;
}

body.site-themed .ds-footer__links a:hover,
body.site-themed .ds-footer__contact a:hover {
  color: #fff !important;
}

html[data-theme="dark"] body.site-themed .ds-footer__contact li {
  color: var(--ds-muted) !important;
  font-size: 0.95rem;
}

.ds-footer__contact {
  margin-top: 1rem;
}

.ds-footer__contact i {
  width: 1.1rem;
  color: var(--ds-blue-300);
  text-align: center;
}

.ds-footer__social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

body.site-themed .ds-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ds-line-strong);
  border-radius: var(--ds-radius-sm);
  color: var(--ds-muted) !important;
  font-size: 1.1rem;
}

body.site-themed .ds-footer__social a:hover {
  color: #fff !important;
  border-color: var(--ds-blue-300);
}

.ds-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ds-line);
}

html[data-theme="dark"] body.site-themed .ds-footer__bottom p {
  margin: 0;
  color: var(--ds-subtle) !important;
  font-size: 0.875rem;
}

body.site-themed .ds-footer__bottom a {
  color: var(--ds-subtle) !important;
}

/* ---------- Mobile quick-contact bar ---------- */
.ds-mobile-bar {
  display: none;
}

@media (max-width: 767.98px) {
  body.site-themed {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .ds-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: #070b14;
    border-top: 1px solid var(--ds-line-strong);
    transition: transform 0.2s ease;
  }

  body.site-themed .ds-mobile-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    border-radius: var(--ds-radius-sm);
    border: 1px solid var(--ds-line-strong);
    color: var(--ds-text) !important;
    font-size: 0.925rem;
    font-weight: 700;
    text-decoration: none !important;
  }

  body.site-themed .ds-mobile-bar .fa-whatsapp {
    color: #4ade80;
  }

  body.site-themed .ds-mobile-bar .fa-phone {
    color: var(--ds-blue-300);
  }

  body.site-themed .ds-mobile-bar a.is-primary {
    background: var(--ds-orange);
    border-color: var(--ds-orange);
    color: var(--ds-ink) !important;
  }

  body.ds-typing .ds-mobile-bar,
  body.ds-menu-open .ds-mobile-bar {
    transform: translateY(110%);
  }

  body.site-themed .back-to-top {
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    right: 12px !important;
  }
}

body.site-themed .back-to-top {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-line-strong);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  z-index: 1030;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-pending {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Legacy pages: readable sizes on retained components ---------- */
html[data-theme="dark"] body.site-themed .plan p,
html[data-theme="dark"] body.site-themed .plan li,
html[data-theme="dark"] body.site-themed .card p,
html[data-theme="dark"] body.site-themed .card li,
html[data-theme="dark"] body.site-themed .playbook-body p {
  font-size: 0.975rem !important;
  line-height: 1.6 !important;
}

html[data-theme="dark"] body.site-themed .plan h3,
html[data-theme="dark"] body.site-themed .card h3,
html[data-theme="dark"] body.site-themed .card h5,
html[data-theme="dark"] body.site-themed .playbook-body h3 {
  font-size: 1.1rem !important;
}

html[data-theme="dark"] body.site-themed details summary {
  min-height: 44px;
  padding: 0.6rem 0;
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}

html[data-theme="dark"] body.site-themed details p {
  color: var(--ds-muted) !important;
}
