/* ==========================================================================
   #Hireabl3 — Editorial Layer
   Premium reading layer for marketing surfaces (landing / about / blog index).
   Scoped to .ed-* classes. Reuses main.css tokens only — no new color values.
   Cyber-noir DNA kept (mono eyebrows, accent neon, corner brackets) but the
   running copy is readable Inter, sentence-case, with editorial whitespace.
   ========================================================================== */

/* ── Rhythm & containers ─────────────────────────────────────── */
.ed-section {
  padding-top: clamp(4rem, 9vw, 9rem);
  padding-bottom: clamp(4rem, 9vw, 9rem);
}

.ed-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgb(var(--color-border-rgb) / 0.9), transparent);
}

/* ── Eyebrow label (mono, the only place SNAKE_CASE survives) ── */
.ed-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.ed-eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: rgb(var(--color-accent-rgb) / 0.6);
}

.ed-eyebrow--bare::before { display: none; }

.ed-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

/* ── Display headings (Inter, editorial — readable, not shouting) ── */
.ed-display {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  text-wrap: balance;
}

.ed-h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-wrap: balance;
}

.ed-accent { color: var(--color-accent); }

/* ── Lede / body copy — the reading layer ────────────────────── */
.ed-lede {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 42rem;
}

.ed-body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.ed-body strong { color: var(--color-text-primary); font-weight: 600; }

/* ── Premium card ────────────────────────────────────────────── */
.ed-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ed-card:hover {
  border-color: rgb(var(--color-accent-rgb) / 0.35);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -24px rgb(var(--color-accent-rgb) / 0.25);
}

/* Subtle top hairline that lights up on hover */
.ed-card--lit::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, transparent, rgb(var(--color-accent-rgb) / 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ed-card--lit:hover::before { opacity: 1; }

/* ── Feature / trust pills ───────────────────────────────────── */
.ed-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid rgb(var(--color-border-rgb) / 0.9);
  background: rgb(var(--color-surface-rgb) / 0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.ed-pill svg { width: 0.875rem; height: 0.875rem; }
.ed-pill:hover { border-color: rgb(var(--color-accent-rgb) / 0.4); color: var(--color-text-primary); }
.ed-pill-accent { color: var(--color-accent); }

/* ── Hero ambient glow (tasteful radial, not a logo gradient) ── */
.ed-hero {
  position: relative;
  isolation: isolate;
}
.ed-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(46rem, 90vw);
  height: 26rem;
  background: radial-gradient(ellipse at center, rgb(var(--color-accent-rgb) / 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Numbered process step (how-it-works) ────────────────────── */
.ed-step {
  position: relative;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.ed-step:hover { border-color: rgb(var(--color-accent-rgb) / 0.3); transform: translateY(-3px); }

.ed-step-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-accent);
}

.ed-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: rgb(var(--color-accent-rgb) / 0.08);
  border: 1px solid rgb(var(--color-accent-rgb) / 0.15);
  color: var(--color-accent);
}
.ed-step-icon svg { width: 1.25rem; height: 1.25rem; }

.ed-step-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

/* ── Section heading block (eyebrow + title + lede) ──────────── */
.ed-heading-block { display: flex; flex-direction: column; gap: 1.25rem; }

/* ── Inline text link ────────────────────────────────────────── */
.ed-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.ed-link:hover { opacity: 0.75; }

/* ── Mobile refinements ──────────────────────────────────────── */
@media (max-width: 767px) {
  .ed-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .ed-hero::before { height: 18rem; }
  .ed-step { padding: 1.25rem; }
}
