/* APEX Enforcement Desk — dense layout matching /apex + /how-anavsan-works */

.ed-page {
  font-size: 1rem;
  line-height: 1.65;
}

/* Tighter than default hv2 (72px) — short content blocks */
.ed-page .hv2-sec {
  padding: 40px 0;
}
.ed-page .hv2-hero {
  padding-bottom: 36px;
}
.ed-page .hv2-lede {
  margin-bottom: 12px;
}
.ed-page .hv2-sec h2 {
  margin-bottom: 8px;
}
.ed-page .cta-banner.hv2-cta {
  padding: 48px 0;
}

.ed-page .hv2-hero h1 {
  margin-bottom: 10px;
}
.ed-page .hv2-trust {
  margin-top: 14px;
}
.ed-hero-grid {
  align-items: start;
  gap: clamp(20px, 3.5vw, 36px);
}

/* Hero / cortex / evidence — reuse hv3-story beats */
.ed-page .ed-story .hv3-beats,
.ed-page .ed-cortex-story .hv3-beats,
.ed-page .ed-evidence-story .hv3-beats {
  gap: 6px;
}
.ed-page .ed-story .hv3-beat,
.ed-page .ed-cortex-story .hv3-beat,
.ed-page .ed-evidence-story .hv3-beat {
  padding: 10px;
}
.ed-page .hv3-names {
  margin-top: 12px;
}

/* Walkthrough: always-visible 4-up like hv3-steps */
.ed-walk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.ed-step {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 18px 16px 16px;
}
.ed-step-num {
  display: block;
  margin-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-light);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ed-step h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-0);
  line-height: 1.3;
}
.ed-step > p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Cortex + build */
.ed-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}
.ed-quote {
  margin: 12px 0;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border-1);
}
.ed-quote p {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--text-0);
}
.ed-note {
  margin: 0;
  font-size: 0.8375rem;
  color: var(--text-2);
  line-height: 1.45;
}

.ed-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.ed-duo h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}
.ed-duo .ed-evidence-story {
  margin-top: 8px;
}
.ed-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 650;
  color: var(--brand-light);
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 2px;
}
.ed-text-link:hover,
.ed-text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ed-page .faq-grid {
  margin-top: 16px;
}
.ed-support {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.ed-support a { color: var(--brand-light); }
.ed-support--faq {
  max-width: 800px;
  margin: 16px auto 0;
  text-align: center;
}

.ed-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.ed-cta-aside .hv2-lede { max-width: none; }
.ed-cta-aside p {
  margin: 0 0 8px;
  color: var(--text-2);
  font-size: 0.875rem;
}
.ed-cta-aside a { color: var(--brand-light); }

.ed-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 18px;
}
.ed-form-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--text-0);
}
.ed-field { margin-bottom: 10px; }
.ed-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 5px;
}
.ed-field .optional {
  font-weight: 500;
  color: var(--text-3);
}
.ed-field input,
.ed-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 9px 11px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-1);
  background: var(--bg-1);
  color: var(--text-0);
  transition: border-color var(--t-base), box-shadow var(--t-base);
  -webkit-appearance: none;
  appearance: none;
}
.ed-field textarea {
  min-height: 64px;
  resize: vertical;
}
.ed-field input:focus,
.ed-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(111, 81, 206, 0.2);
}
.ed-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ed-form-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.5;
}
.ed-form-note a { color: var(--brand-light); }
.ed-success {
  display: none;
  padding: 11px 12px;
  border-radius: var(--r-md);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--text-1);
  margin-bottom: 10px;
  font-size: 0.875rem;
}
.ed-success.is-visible { display: block; }
.ed-error {
  display: none;
  margin-top: 8px;
  font-size: 0.875rem;
  color: #f87171;
}
.ed-error.is-visible { display: block; }

.ed-page .btn:focus-visible {
  outline: 3px solid rgba(111, 81, 206, 0.35);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ed-field input,
  .ed-field textarea {
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .ed-walk-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .ed-hero-grid,
  .ed-split,
  .ed-cta-grid,
  .ed-duo {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .ed-page .hv2-sec { padding: 32px 0; }
  .ed-walk-grid {
    grid-template-columns: 1fr;
  }
}
