/* MloaderDS component stylesheet. Every value is a token; nothing is hard-coded but
   geometry that is structural (1px borders, 100% widths, animation timing). */

.ds-root {
  font-family: var(--font-sans);
  color: var(--white);
  background: var(--background);
}

/* ---------------------------------------------------------------- Button */

.ds-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 0;
  border-radius: var(--Base-Radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ds-btn--sm { min-height: 34px; padding: 0 var(--space-4); font-size: 13px; }
.ds-btn--md { min-height: 44px; padding: 0 var(--space-5); }
.ds-btn--lg { min-height: 54px; padding: 0 var(--space-6); font-size: 16px; }

.ds-btn--primary { background: var(--Gold); color: var(--black); }
.ds-btn--primary:hover { background: var(--gold-700); }

.ds-btn--secondary { background: var(--Button_Lable); color: var(--black); }
.ds-btn--secondary:hover { background: var(--sky-700); }

.ds-btn--outline {
  background: transparent;
  color: var(--Button_Lable);
  box-shadow: inset 0 0 0 2px var(--Button_Lable);
}
.ds-btn--outline:hover { background: var(--sky-tint); }

.ds-btn--ghost { background: transparent; color: var(--white); }
.ds-btn--ghost:hover { background: var(--surface-500); }

.ds-btn:active { transform: scale(0.97); }
.ds-btn:focus-visible { outline: 2px solid var(--Gold); outline-offset: 2px; }
.ds-btn[disabled], .ds-btn--disabled { opacity: 0.45; pointer-events: none; }
.ds-btn--block { width: 100%; }
.ds-btn__icon { display: inline-flex; font-size: 1.1em; line-height: 1; }

/* ----------------------------------------------------------------- Badge */

.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 5px var(--space-3);
  border-radius: var(--Base-Radius);
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ds-badge--gold { background: var(--Gold); color: var(--black); }
.ds-badge--sky { background: var(--Button_Lable); color: var(--black); }
.ds-badge--quiet { background: var(--surface-500); color: var(--white); }
.ds-badge--outline { color: var(--Button_Lable); box-shadow: inset 0 0 0 1px var(--Button_Lable); }

/* ------------------------------------------------------------------ Card */

.ds-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: var(--surface-600);
  border: 1px solid var(--hairline);
  border-radius: var(--Base-Radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.ds-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-500);
}
.ds-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.ds-card__eyebrow { color: var(--Button_Lable); text-transform: uppercase; margin: 0; }
.ds-card__title { margin: 0; color: var(--white); }
.ds-card__text { margin: 0; color: var(--text-muted); }
.ds-card__footer { margin-top: auto; padding: 0 var(--space-5) var(--space-5); }
.ds-card--interactive { cursor: pointer; }
.ds-card:focus-visible { outline: 2px solid var(--Gold); outline-offset: 3px; }
.ds-card--interactive:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ds-card--flat { box-shadow: none; }
.ds-card--pad-tight .ds-card__body { padding: var(--space-4); }

/* Accent cluster behind a card's content. The card already clips, so the
   cluster crops at the corner. Content is lifted above it. */
.ds-card { position: relative; }
.ds-card__body, .ds-card__footer { position: relative; }
.ds-card__accent {
  position: absolute;
  width: 150px;
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}
.ds-card__accent--vein { top: -40px; right: -55px; }
.ds-card__accent--shard { bottom: -40px; left: -55px; }
/* These cuts are tall. At 40% the copy may not cross them, so the card gives
   up the column the accent occupies rather than letting text run over it. */
.ds-card--accent-vein .ds-card__body,
.ds-card--accent-vein .ds-card__footer { padding-right: 104px; }
.ds-card--accent-shard .ds-card__body,
.ds-card--accent-shard .ds-card__footer { padding-left: 104px; }
/* 25%: the only strength body copy may cross, so no column is reserved. */
.ds-card__accent--quiet { opacity: 0.25; }

/* ------------------------------------------------------------- PromoLink */

.ds-promo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  box-sizing: border-box;
  width: 100%;
  padding: var(--space-5);
  background: var(--surface-600);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.ds-promo:hover { background: var(--surface-500); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.ds-promo:focus-visible { outline: 2px solid var(--Gold); outline-offset: 3px; }
.ds-promo__glyph {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--Gold);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 22px;
}
.ds-promo__copy { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.ds-promo__title { margin: 0; }
.ds-promo__text { margin: 0; color: var(--text-muted); }
.ds-promo__arrow {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--Button_Lable);
  font-size: 20px;
  transition: transform 0.25s ease;
}
.ds-promo:hover .ds-promo__arrow { transform: translateX(4px); }

/* -------------------------------------------------------------- Carousel */

.ds-carousel { position: relative; }
.ds-carousel__viewport {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: var(--space-2);
}
.ds-carousel__viewport::-webkit-scrollbar { display: none; }
.ds-carousel__viewport:focus-visible { outline: 2px solid var(--Gold); outline-offset: 4px; border-radius: var(--Base-Radius); }
/* Slides stretch so a row of cards is equal height, the same rule a grid
   row follows. Without this, one card with more copy, or with an accent
   reserving a column, makes the whole row ragged. */
.ds-carousel__viewport { align-items: stretch; }
.ds-carousel__slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.ds-carousel__slide > * { flex: 1 1 auto; min-width: 0; }
.ds-carousel__controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.ds-carousel__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-600);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.ds-carousel__nav:hover { background: var(--Button_Lable); color: var(--black); }
.ds-carousel__nav:active { transform: scale(0.94); }
.ds-carousel__nav:disabled { opacity: 0.35; pointer-events: none; }
.ds-carousel__nav:focus-visible { outline: 2px solid var(--Gold); outline-offset: 2px; }
.ds-carousel__dots { display: flex; gap: var(--space-2); margin-left: auto; }
.ds-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-500);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.ds-carousel__dot--active { width: 26px; background: var(--Gold); }
.ds-carousel__dot:focus-visible { outline: 2px solid var(--Gold); outline-offset: 2px; }

/* ----------------------------------------------------------- LogoMarquee */

.ds-marquee { display: flex; flex-direction: column; gap: var(--space-4); overflow: hidden; }
.ds-marquee__row { display: flex; width: max-content; }
.ds-marquee__row--a { animation: ds-marquee-shift 30s linear infinite; }
.ds-marquee__row--b { animation: ds-marquee-shift 30s linear infinite reverse; }
.ds-marquee:hover .ds-marquee__row { animation-play-state: paused; }
.ds-marquee__set { display: flex; gap: var(--space-4); padding-right: var(--space-4); }
.ds-marquee__tile {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  flex: 0 0 auto;
  background: var(--surface-600);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  padding: var(--space-2);
  box-sizing: border-box;
}
.ds-marquee__tile img { max-width: 72%; max-height: 72%; display: block; }
@keyframes ds-marquee-shift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ds-marquee__row { animation: none; }
  .ds-carousel__viewport { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- StatTile */

.ds-stat {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  box-sizing: border-box;
  padding: var(--space-5);
  background: var(--surface-600);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
}
.ds-stat__ring {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: var(--radius-pill);
  background: var(--background);
  box-shadow: var(--shadow-glow);
}
.ds-stat__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ds-stat__ring-track { fill: none; stroke: var(--surface-500); stroke-width: 8; }
.ds-stat__ring-fill {
  fill: none;
  stroke: var(--Gold);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s ease;
}
/* Fixed width so a counting value does not jitter: Roboto Condensed has no
   tabular-figure feature to fall back on. */
.ds-stat__value {
  position: relative;
  color: var(--white);
  min-width: 3ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ds-stat__copy { display: flex; flex-direction: column; gap: var(--space-1); }
.ds-stat__label { margin: 0; color: var(--Button_Lable); text-transform: uppercase; }
.ds-stat__note { margin: 0; color: var(--text-muted); }

/* ----------------------------------------------------------- PaymentSteps */

.ds-steps { display: flex; flex-direction: column; gap: var(--space-4); }
.ds-steps__track { display: flex; align-items: center; gap: var(--space-2); }
.ds-steps__node {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: stretch;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.ds-steps__bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-500);
  transition: background 0.3s ease;
}
.ds-steps__node--done .ds-steps__bar { background: var(--Gold); }
.ds-steps__node--current .ds-steps__bar { background: var(--Button_Lable); }
.ds-steps__caption { margin: 0; color: var(--text-dim); text-transform: uppercase; }
.ds-steps__node--done .ds-steps__caption,
.ds-steps__node--current .ds-steps__caption { color: var(--white); }
.ds-steps__node:focus-visible { outline: 2px solid var(--Gold); outline-offset: 3px; border-radius: var(--Base-Radius); }
.ds-steps__status { margin: 0; color: var(--text-muted); }

/* --------------------------------------------------- Headline and Prose */

.ds-headline { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; }
.ds-headline__eyebrow { margin: 0; color: var(--Button_Lable); text-transform: uppercase; }
.ds-headline__title { margin: 0; color: var(--white); text-wrap: balance; }
.ds-headline__sub { margin: 0; color: var(--text-muted); max-width: 60ch; }
.ds-headline--center { align-items: center; text-align: center; margin: 0 auto; }
.ds-headline__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }

.ds-prose { color: var(--text-muted); max-width: 68ch; }
.ds-prose > * + * { margin-top: var(--space-4); }
.ds-prose h2, .ds-prose h3 { color: var(--white); margin-top: var(--space-7); }
.ds-prose p { margin: 0; }
.ds-prose strong { color: var(--white); font-weight: 500; }
.ds-prose a { color: var(--Button_Lable); text-decoration: underline; text-underline-offset: 3px; }
.ds-prose a:hover { color: var(--white); }
.ds-prose ul, .ds-prose ol { margin: 0; padding-left: var(--space-5); }
.ds-prose li + li { margin-top: var(--space-2); }
.ds-prose blockquote {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  background: var(--surface-600);
  border-radius: var(--radius-lg);
  color: var(--white);
}
.ds-prose figcaption, .ds-prose small { color: var(--text-dim); }
.ds-prose hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--space-7) 0; }

/* ------------------------------------------------------------- utilities */

.ds-grid { display: grid; gap: var(--space-5); }
.ds-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-section { padding: var(--space-9) 0; }
.ds-stack { display: flex; flex-direction: column; gap: var(--space-5); }
.ds-row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
