/* =========================================================================
   Agent Governance by Design — landing page.
   Extends styles.css. Reuses the D2B tokens (blue brand, Montserrat/Archivo,
   dark base) — no new colors, no new fonts. Only layout primitives this page
   needs and the homepage doesn't have.

   Body copy inside cards uses --text-2 rather than --text-muted: at 0.45 alpha
   the muted token lands at ~4.4:1 on the dark base, just under WCAG AA.
   ========================================================================= */

/* ===================== 1 · hero ===================== */
.ag-hero { padding: 148px 0 84px; }
.ag-hero__inner { max-width: 900px; }
.ag-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  letter-spacing: -1.4px;
  margin: 22px 0 24px;
}
.ag-trust {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===================== 2 · problem band ===================== */
.ag-band {
  background: #08080e;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ag-risks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ag-risk {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.ag-risk:hover {
  border-color: rgba(74, 144, 217, 0.35);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.ag-risk h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 9px; }
.ag-risk p { font-size: 0.92rem; color: var(--text-2); }

/* stat callout */
.ag-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}
.ag-stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  white-space: nowrap;
}
.ag-stat__label {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-top: 12px;
  max-width: 300px;
}
.ag-source {
  margin-top: 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
  font-style: italic;
}

.ag-closing {
  margin-top: 52px;
  padding-left: 20px;
  border-left: 2px solid var(--blue);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text);
  max-width: 820px;
}

/* ===================== 3 · point of view ===================== */
.ag-pov {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.ag-pov__lead h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.6px;
  margin: 16px 0 18px;
}
.ag-pov__lead p { color: var(--text-2); font-size: 1.03rem; }
.ag-pov__cards { display: grid; gap: 16px; }
.ag-pov__cards .pillar p { color: var(--text-2); }

.ag-quote {
  margin-top: 64px;
  padding: 40px 0 0;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--text);
  max-width: 900px;
}
.ag-quote::before { content: "\201C"; color: var(--blue-light); }
.ag-quote::after  { content: "\201D"; color: var(--blue-light); }

/* ===================== 4 · engagement ===================== */
.ag-note {
  margin-top: 24px;
  font-size: 0.87rem;
  color: var(--text-muted);
  max-width: 760px;
}

/* ===================== 5 · outcomes ===================== */
.ag-outcomes { list-style: none; border-top: 1px solid var(--border-subtle); }
.ag-outcome {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.ag-outcome__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text);
}
.ag-outcome__measure { color: var(--text-2); font-size: 0.97rem; }

/* ===================== 6 · why d2b ===================== */
.ag-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ag-why .pillar p { color: var(--text-2); }

/* ===================== 7 · audience ===================== */
.aifirst .ag-audience__quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.3px;
  color: var(--text);
  max-width: 860px;
  margin: 20px 0 28px;
}
.aifirst .ag-audience__quote::before { content: "\201C"; color: var(--blue-light); }
.aifirst .ag-audience__quote::after  { content: "\201D"; color: var(--blue-light); }
.ag-chips { margin-top: 0; }
.ag-buyer { margin-top: 22px; font-size: 0.9rem; color: var(--text-muted); }

/* ===================== 8 · final CTA band ===================== */
.ag-ctaband__inner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(74, 144, 217, 0.28);
  border-radius: 16px;
  padding: 64px 48px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(43, 108, 176, 0.16), rgba(99, 179, 237, 0.06)),
    var(--surface);
}
.ag-ctaband__inner h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -0.6px;
  max-width: 860px;
  margin: 0 auto 18px;
}
.ag-ctaband__inner > p {
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 32px;
}
.ag-reassurance {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===================== 9 · contact ===================== */
.field__opt { text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, 0.5); }

/* --text-dim (0.25 alpha) lands at ~2.2:1 on the dark base — below WCAG AA.
   These two carry real content here (phase durations, form labels), so they
   are lifted to a passing tone. Scoped to this stylesheet, which only the
   landing page loads, so the homepage is untouched. */
.service__layer,
.field label { color: rgba(255, 255, 255, 0.6); }

/* ===================== focus visibility (a11y) ===================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* ===================== responsive ===================== */
@media (max-width: 1024px) {
  .ag-risks { grid-template-columns: repeat(2, 1fr); }
  .ag-why   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ag-pov { grid-template-columns: 1fr; gap: 32px; }
  .ag-stats { grid-template-columns: 1fr; gap: 28px; }
  .ag-stat__label { max-width: none; }
  .ag-outcome { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  .ag-hero { padding: 124px 0 64px; }
  .ag-risks { grid-template-columns: 1fr; }
  .ag-why   { grid-template-columns: 1fr; }
  .ag-ctaband__inner { padding: 40px 24px; }
  .ag-quote { margin-top: 44px; padding-top: 32px; }
}
