:root {
  --raas-ink: #101418;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- brand -------------------------------------------------------- */

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  background: var(--bs-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* --- hero --------------------------------------------------------- */

.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(var(--bs-primary-rgb), .10), transparent 60%),
    linear-gradient(180deg, var(--bs-body-bg), var(--bs-tertiary-bg));
}

.status-dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--bs-success);
  margin-right: .25rem;
  vertical-align: baseline;
}

.status-dot-success {
  background: var(--bs-success);
}

/* --- fake browser chrome on the preview card ---------------------- */

.letter-preview .dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f57; }
.dot-amber { background: #febc2e; }
.dot-green { background: #28c840; }

.letter-preview {
  transform: rotate(-.6deg);
}

/* --- logo strip --------------------------------------------------- */

.logo-strip span {
  font-weight: 700;
  letter-spacing: .06em;
  font-size: .8rem;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  opacity: .65;
}

/* --- feature + step decoration ------------------------------------ */

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .75rem;
  font-size: 1.25rem;
  line-height: 1;
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff;
  font-weight: 700;
}

.check,
.check-sm {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bs-success-bg-subtle);
  color: var(--bs-success-text-emphasis);
  font-weight: 700;
}

.check { width: 1.5rem; height: 1.5rem; }
.check-sm { width: 1.1rem; height: 1.1rem; font-size: .7rem; }

/* --- stats -------------------------------------------------------- */

.stat-card {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  padding: 1.5rem 1rem;
  background: var(--bs-body-bg);
  height: 100%;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--bs-primary);
}

.stat-label {
  font-size: .8rem;
  color: var(--bs-secondary-color);
  margin-top: .35rem;
}

/* --- CTA band ----------------------------------------------------- */

.cta-band {
  background: var(--raas-ink);
  color: #fff;
}

/* --- letter output ------------------------------------------------ */

.border-dashed {
  border: 2px dashed var(--bs-border-color) !important;
}

.letter-body {
  font-size: 1.02rem;
  line-height: 1.75;
}

.letter-body p:last-of-type {
  margin-bottom: 0;
}

/* --- range slider ------------------------------------------------- */

/*
 * Firefox renders <datalist> option labels as visible text next to the range
 * input. The datalist is kept for the snapping behaviour and for assistive
 * tech; the visible scale is the caption row underneath.
 */
.form-range + datalist {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar-animated {
    animation: none;
  }
  .letter-preview {
    transform: none;
  }
}
