/* DS — Page: features · token-only */

/* ── Features section head ────────────────────────── */
.ds-features-head {
  max-width: 780px;
  margin-bottom: 52px;
  position: relative;
}

/* ── Feature card grid (3-up → 2-up → 1-up) ─────── */
.ds-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

@media (max-width: 960px) { .ds-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ds-features-grid { grid-template-columns: 1fr; } }

/* ── Single feature card (V4 rounded style) ──────── */
.ds-features-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 32px 28px 28px;
  box-shadow: var(--card-shadow);
  transition:
    transform var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-fast);
}

.ds-features-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--card-shadow-hover);
}

.ds-features-tag {
  position: absolute;
  top: 18px;
  right: 18px;
}

.ds-features-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--rad-md);
  background: rgba(4,120,87,0.08);
  color: var(--verdant-dark);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.ds-features-icon svg { width: 24px; height: 24px; }

.ds-features-body {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--fg2);
  margin: 0;
}

/* ── Feature card (stamped / military style) ─────── */
.ds-features-stamp-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--fg1);
  padding: 22px 20px 18px;
  transition:
    transform var(--dur-fast),
    box-shadow var(--dur-fast);
  box-shadow: 3px 3px 0 var(--fg1);
}

.ds-features-stamp-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--fg1);
}

.ds-features-stamp-card::before,
.ds-features-stamp-card::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--verdant-dark);
  pointer-events: none;
}

.ds-features-stamp-card::before {
  top: 5px;
  left: 5px;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
}

.ds-features-stamp-card::after {
  bottom: 5px;
  right: 5px;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
}

/* ── Feature number badge ─────────────────────────── */
.ds-features-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--fg1);
  padding: 3px 7px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 14px;
}

/* ── Feature icon (stamped style) ────────────────── */
.ds-features-stamp-icon {
  width: 44px;
  height: 44px;
  background: rgba(4,120,87,0.08);
  color: var(--verdant-dark);
  border: 1.5px solid var(--verdant-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ds-features-stamp-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentcolor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.ds-features-stamp-icon--amber {
  color: var(--amber-dark);
  border-color: var(--amber-dark);
  background: rgba(180,83,9,0.08);
}

/* ── Feature meta footer ─────────────────────────── */
.ds-features-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.ds-features-meta .ref { text-transform: lowercase; }

.ds-features-meta .arrow-link {
  color: var(--verdant-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.ds-features-meta .arrow-link .arr {
  transition: transform var(--dur-normal) var(--ease-organic);
}

.ds-features-stamp-card:hover .ds-features-meta .arrow-link .arr {
  transform: translateX(3px);
}
