/* ==========================================================================
   card.css — service card, stat, quote, numbered step
   Depth by fill + hairline, as in the reference. Ours is visible.
   ========================================================================== */

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);

  background-color: var(--surface);

  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease);
}

.card__index {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: var(--lh-flat);
}

.card__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}

.card__body {
  max-width: none;

  color: var(--text-secondary);
  font-size: var(--fs-xs);
}

.card__meta {
  margin-block-start: auto;
  padding-block-start: var(--space-4);

  color: var(--text-muted);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;

  border-block-start: var(--border-w) solid var(--border);
}

/* Interactive card — the whole surface is clickable, but the real <a> stays
   the accessible target and keeps the focus ring. */
.card--link { position: relative; }

.card--link:hover {
  border-color: var(--rule);
  transform: translateY(-2px);
}

.card--link:focus-within {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: var(--focus-offset);
}

.card--link a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* The ring lives on the card, so the inner link doesn't draw a second one. */
.card--link a:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .card--link:hover { transform: none; }
}

/* --- Feature: a card with no chrome, divided by a rule -------------------- */

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block-start: var(--space-5);

  border-block-start: var(--border-w-strong) solid var(--border-strong);
}

.feature__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}

.feature__body {
  max-width: none;

  color: var(--text-secondary);
  font-size: var(--fs-xs);
}

.section--ink .feature { border-color: var(--text-muted-on-ink); }
.section--ink .feature__body { color: var(--text-muted-on-ink); }

/* --- Stat ---------------------------------------------------------------- */

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

/* font-family is restated because .stat__label is often nested inside
   .stat__value, which sets the display face. */
.stat__label {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.section--ink .stat__label { color: var(--text-muted-on-ink); }

/* --- Ticks: an itemised list marked with a short redline dash ------------ */

.ticks {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);

  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-inline-start: var(--space-5);

  color: var(--text-secondary);
  font-size: var(--fs-xs);
  line-height: var(--lh-lead);
}

.ticks li::before {
  content: "";

  position: absolute;
  inset-block-start: 0.72em;
  inset-inline-start: 0;

  width: 10px;
  height: var(--border-w-strong);

  background-color: var(--accent);
}

.section--ink .ticks li { color: var(--text-muted-on-ink); }
.section--ink .ticks li::before { background-color: var(--accent-on-ink); }

/* --- Step: numbered process item ----------------------------------------- */

.step {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-6);

  border-block-start: var(--border-w) solid var(--border);
}

.step:last-child { border-block-end: var(--border-w) solid var(--border); }

.step__num {
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
}

.step__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-h3);
}

.step__body {
  max-width: var(--measure-narrow);
  color: var(--text-secondary);
}

@media (min-width: 48rem) {
  .step {
    grid-template-columns: 4rem 1fr 1.2fr;
    gap: var(--space-6);
    align-items: baseline;
  }

  .step__num { padding-block-start: var(--space-1); }
}

/* --- Quote --------------------------------------------------------------- */

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-inline-start: var(--space-6);

  border-inline-start: var(--border-w-strong) solid var(--accent);
}

.quote__text {
  max-width: var(--measure-narrow);

  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-display);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
}

.quote__attribution {
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  font-style: normal;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.section--ink .quote { border-color: var(--accent-on-ink); }
.section--ink .quote__attribution { color: var(--text-muted-on-ink); }

/* --- Definition row: label / value pairs --------------------------------- */

.spec {
  display: grid;
  gap: var(--space-1);
  margin: 0;
}

.spec__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  padding-block: var(--space-3);

  border-block-end: var(--border-w) solid var(--border);
}

.spec__key {
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.spec__val {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}

.section--ink .spec__row { border-color: var(--text-muted-on-ink); }
.section--ink .spec__key { color: var(--text-muted-on-ink); }
