/* ========================================================================
   AiGuardlines landing — page-specific styles
   All component CSS lives here. Tokens come from ../../colors_and_type.css
   ======================================================================== */

/* ---------------------------------------------------------------- layout */
.ag-container { max-width: var(--ag-container); margin: 0 auto; padding: 0 var(--ag-gutter); }
.ag-section { padding: 96px 0; position: relative; }
@media (max-width: 768px) { .ag-section { padding: 64px 0; } }

.ag-section-head { max-width: 920px; margin: 0 auto 56px; text-align: center; }
.ag-section-head .ag-eyebrow { margin-bottom: 14px; display: inline-block; }
.ag-section-head .ag-h2 { color: var(--ag-fg-1); }
.ag-h2-muted { color: var(--ag-muted-slate); font-weight: 400; }

.ag-h1 {
  font-family: var(--ag-font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ag-vault-navy);
  margin: 0;
  text-wrap: balance;
}
.ag-h2 {
  font-family: var(--ag-font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ag-vault-navy);
  margin: 0;
  text-wrap: balance;
}
.ag-body-lg {
  font-family: var(--ag-font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ag-muted-slate);
  text-wrap: pretty;
}

/* eyebrows */
.ag-eyebrow {
  font-family: var(--ag-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ag-muted-slate);
}

/* status dot */
.ag-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ag-shield-teal);
  margin-right: 2px;
  position: relative;
  vertical-align: 1px;
}
.ag-status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--ag-shield-teal);
  opacity: 0.18;
  animation: ag-pulse 2s ease-out infinite;
}
.ag-status-dot--teal { background: var(--ag-shield-teal); }
@keyframes ag-pulse {
  0% { transform: scale(0.6); opacity: 0.36; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------------------------------------------------------------- buttons */
.ag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--ag-font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ag-dur-base) var(--ag-ease-out),
              color var(--ag-dur-base) var(--ag-ease-out),
              border-color var(--ag-dur-base) var(--ag-ease-out),
              transform var(--ag-dur-fast) var(--ag-ease-out),
              box-shadow var(--ag-dur-base) var(--ag-ease-out);
}
.ag-btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.ag-btn-lg { padding: 16px 28px; font-size: 17px; border-radius: 12px; }
.ag-btn-primary { background: var(--ag-shield-teal); color: var(--ag-vault-navy); }
.ag-btn-primary:hover { background: var(--ag-shield-teal-dk); color: var(--ag-clean-white); }
.ag-btn-primary:active { transform: translateY(1px); filter: brightness(0.96); }
.ag-btn-navy { background: var(--ag-vault-navy); color: var(--ag-clean-white); }
.ag-btn-navy:hover { background: #14223a; }
.ag-btn-ghost { background: transparent; color: var(--ag-vault-navy); border-color: var(--ag-hairline-strong); }
.ag-btn-ghost:hover { background: var(--ag-vault-navy-06); border-color: var(--ag-vault-navy-40); }

/* ---------------------------------------------------------------- header */
.ag-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 250, 0.0);
  transition: background var(--ag-dur-base) var(--ag-ease-out),
              border-color var(--ag-dur-base) var(--ag-ease-out),
              backdrop-filter var(--ag-dur-base) var(--ag-ease-out);
  border-bottom: 1px solid transparent;
}
.ag-header.is-scrolled {
  background: rgba(245, 247, 250, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--ag-hairline);
}
.ag-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.ag-header-brand { text-decoration: none; }
.ag-header-nav {
  display: flex;
  gap: 32px;
}
.ag-header-nav a {
  font-family: var(--ag-font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ag-muted-slate);
  text-decoration: none;
  transition: color var(--ag-dur-fast) var(--ag-ease-out);
}
.ag-header-nav a:hover { color: var(--ag-vault-navy); }
.ag-header-cta { display: flex; gap: 8px; }
@media (max-width: 840px) {
  .ag-header-nav { display: none; }
}

/* wordmark */
.ag-wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--ag-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ag-wordmark-text { display: inline-flex; }

/* ---------------------------------------------------------------- hero v2 */
.ag-hero {
  position: relative;
  min-height: min(720px, 92vh);
  padding: 0;
  margin-top: -64px;          /* slide under the sticky header */
  padding-top: 64px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}
.ag-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--ag-studio-mist);
}
.ag-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  filter: saturate(1.04);
}
.ag-hero-bg-fade {
  position: absolute;
  inset: 0;
  background:
    /* readability wash behind copy — right side, below the AI Model cube */
    radial-gradient(ellipse 55% 65% at 82% 78%,
      rgba(245, 247, 250, 0.78) 0%,
      rgba(245, 247, 250, 0.42) 38%,
      rgba(245, 247, 250, 0.0) 72%),
    /* gentle top fade for header chrome */
    linear-gradient(180deg,
      rgba(245, 247, 250, 0.55) 0%,
      rgba(245, 247, 250, 0.0) 18%,
      rgba(245, 247, 250, 0.0) 80%,
      rgba(245, 247, 250, 0.55) 100%);
}
@media (max-width: 760px) {
  .ag-hero { min-height: 620px; }
  .ag-hero-bg img { object-position: 30% center; }
  .ag-hero-bg-fade {
    background:
      linear-gradient(180deg,
        rgba(245, 247, 250, 0.6) 0%,
        rgba(245, 247, 250, 0.25) 40%,
        rgba(245, 247, 250, 0.85) 100%);
  }
}

/* 32-column hero grid (gutter 10px).
   ──────────────────────────────────────────────────────────────────────
   col:   1 ─────────────── 11 │ 12 ────── 19 │ 20 ───────────────── 32
   use:   data-stream art        PRISM (NO UI)   AI Model + headline/CTA
   ──────────────────────────────────────────────────────────────────────
   Cols 12-19 are reserved for the prism artwork — never place text or
   buttons here. Copy lives in cols 20-32, right-aligned. */
.ag-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--ag-container);
  margin: 0 auto;
  padding: 120px var(--ag-gutter) 160px;
}
.ag-hero-grid {
  display: grid;
  grid-template-columns: repeat(32, 1fr);
  column-gap: 10px;
}
.ag-hero-copy {
  /* Cols 20 → 32 (inclusive). 13 columns of usable space to the right of
     the prism. Right-aligned so the headline anchors against the edge. */
  grid-column: 20 / -1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.ag-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--ag-hairline);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 28px;
  color: var(--ag-vault-navy);
  font-size: 11px;
}
.ag-hero-headline {
  font-family: var(--ag-font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ag-vault-navy);
  margin: 0;
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.ag-hero-headline-line { display: block; }
.ag-hero-headline-gap {
  /* Deprecated — kept as no-op so legacy markup doesn't introduce a gap.
     The two headline lines now sit flush as one block. */
  display: none;
}
@media (max-width: 900px) {
  /* Below tablet, collapse the 32-col grid — copy spans full width and
     aligns left so the prism (now centered behind) stays untouched. */
  .ag-hero-copy { grid-column: 1 / -1; text-align: left; align-items: flex-start; }
  .ag-hero-headline { align-items: flex-start; }
  .ag-hero-ctas { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .ag-hero-headline { font-size: 40px; }
  .ag-hero-headline-gap { height: 36px; }
}
.ag-hero-headline-accent {
  background: linear-gradient(120deg, #00A87F 0%, var(--ag-shield-teal) 50%, #00A0DC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ag-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* CTA pinned to ~65% down the hero plate, on the AI-Model side. Lives
   outside the headline grid so it sits independently of the copy block. */
.ag-hero-cta-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 65%;
  z-index: 2;
  pointer-events: none;             /* let clicks fall through gutters */
}
.ag-hero-cta-row-inner {
  max-width: var(--ag-container);
  margin: 0 auto;
  padding: 0 var(--ag-gutter);
  display: grid;
  grid-template-columns: repeat(32, 1fr);
  column-gap: 10px;
}
.ag-hero-cta-row .ag-btn {
  /* Cols 20-32, right-aligned. */
  grid-column: 20 / -1;
  justify-self: end;
  pointer-events: auto;
}
@media (max-width: 900px) {
  .ag-hero-cta-row { position: static; padding-top: 24px; }
  .ag-hero-cta-row-inner { display: block; }
  .ag-hero-cta-row .ag-btn { justify-self: start; }
}

/* Proof bar pinned to the bottom of the hero */
.ag-hero-proof-strip {
  position: relative;
  z-index: 2;
  background: rgba(10, 22, 40, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ag-clean-white);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: auto;
}
.ag-hero-proof-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 20px var(--ag-gutter);
}
@media (max-width: 720px) {
  .ag-hero-proof-strip-inner { grid-template-columns: repeat(2, 1fr); padding: 16px var(--ag-gutter); }
}
.ag-hero-proof-strip .ag-proof-item { gap: 4px; }
.ag-hero-proof-strip .ag-proof-label { color: rgba(245, 247, 250, 0.55); }
.ag-hero-proof-strip .ag-proof-value { color: var(--ag-clean-white); }
.ag-hero-proof-strip .ag-proof-value.is-accent { color: var(--ag-shield-teal); }
.ag-proof-item { display: flex; flex-direction: column; gap: 4px; }
.ag-proof-label {
  font-family: var(--ag-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ag-muted-slate);
}
.ag-proof-value {
  font-family: var(--ag-font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ag-vault-navy);
  letter-spacing: -0.01em;
}
.ag-proof-value.is-accent { color: var(--ag-shield-teal-dk); }

/* ---------------------------------------------------------------- Dilemma (Problem section)
   Dark "ops console" plate, three incident-report cards. Subtle scanline +
   grid wash overlays read as a monitoring dashboard. All artwork is drawn
   with CSS — no branded UI references. */
.ag-dilemma {
  background: #06101F;            /* slightly deeper than vault-navy */
  color: var(--ag-clean-white);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Faint grid plate — feels like a security console */
.ag-dil-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 161, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 161, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 0%, transparent 100%);
}
/* Scanline wash — global, very subtle */
.ag-dil-scanlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.018) 0px,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.6;
}
.ag-dil-container { position: relative; z-index: 1; }

/* ---- header ---- */
.ag-dil-head { max-width: 880px; margin: 0 auto 56px; }
.ag-dil-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ag-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ag-shield-teal);
  margin-bottom: 22px;
}
.ag-dil-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ag-danger);
  box-shadow: 0 0 0 4px rgba(209, 72, 72, 0.18);
  animation: ag-dil-blink 1.6s ease-in-out infinite;
}
@keyframes ag-dil-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.ag-dil-eyebrow-meta {
  color: rgba(245, 247, 250, 0.45);
  margin-left: 8px;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.ag-dil-h2 {
  font-family: var(--ag-font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.024em;
  color: var(--ag-clean-white);
  margin: 0 0 20px;
  text-wrap: balance;
}
.ag-dil-h2-muted { color: rgba(245, 247, 250, 0.5); font-weight: 400; }
.ag-dil-lede {
  font-family: var(--ag-font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(245, 247, 250, 0.65);
  max-width: 720px;
  margin: 0;
  text-wrap: pretty;
}

/* ---- card grid ---- */
.ag-dil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .ag-dil-grid { grid-template-columns: 1fr; } }

.ag-dil-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 100%),
    #0B1A30;
  border: 1px solid rgba(245, 247, 250, 0.08);
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--ag-dur-base) var(--ag-ease-out),
              transform var(--ag-dur-base) var(--ag-ease-out),
              box-shadow var(--ag-dur-base) var(--ag-ease-out);
}
.ag-dil-card::before {
  /* corner brackets — incident-report tell */
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(0,212,161,0.35) 0 18px, transparent 18px) top left / 100% 1px no-repeat,
    linear-gradient(to right, rgba(0,212,161,0.35) 0 18px, transparent 18px) bottom right / 100% 1px no-repeat,
    linear-gradient(to bottom, rgba(0,212,161,0.35) 0 18px, transparent 18px) top left / 1px 100% no-repeat,
    linear-gradient(to bottom, rgba(0,212,161,0.35) 0 18px, transparent 18px) bottom right / 1px 100% no-repeat;
  opacity: 0.55;
}
.ag-dil-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 161, 0.32);
  box-shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(0, 212, 161, 0.14);
}

.ag-dil-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px dashed rgba(245, 247, 250, 0.10);
  font-family: var(--ag-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.ag-dil-card-id { color: rgba(245, 247, 250, 0.55); }
.ag-dil-card-class {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.ag-dil-card-class--critical {
  background: rgba(209, 72, 72, 0.14);
  color: #FF8585;
  border: 1px solid rgba(209, 72, 72, 0.42);
}
.ag-dil-card-class--high {
  background: rgba(232, 163, 62, 0.14);
  color: #F2C079;
  border: 1px solid rgba(232, 163, 62, 0.42);
}
.ag-dil-card-class--severe {
  background: rgba(217, 70, 168, 0.16);
  color: #ED7BCF;
  border: 1px solid rgba(217, 70, 168, 0.42);
}

.ag-dil-card-visual {
  position: relative;
  height: 180px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 40%, rgba(0,212,161,0.05), transparent 70%),
    #08152A;
  border-bottom: 1px solid rgba(245, 247, 250, 0.06);
  overflow: hidden;
}

.ag-dil-card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ag-dil-card-title {
  font-family: var(--ag-font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ag-clean-white);
  margin: 0;
  text-wrap: balance;
}
.ag-dil-card-copy {
  font-family: var(--ag-font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 247, 250, 0.65);
  margin: 0;
  text-wrap: pretty;
}

/* ---- visual 1: shadow AI donut ---- */
.ag-dil-vis { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 18px; }
.ag-dil-shadow-svg { width: 132px; height: 132px; flex-shrink: 0; }
.ag-dil-shadow-num { display: flex; flex-direction: column; gap: 4px; }
.ag-dil-shadow-pct {
  font-family: var(--ag-font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #FF8585;
}
.ag-dil-shadow-pct small { font-size: 22px; font-weight: 500; opacity: 0.7; margin-left: 2px; }
.ag-dil-shadow-cap {
  font-family: var(--ag-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.55);
  line-height: 1.5;
}

/* ---- visual 2: compliance document ---- */
.ag-dil-vis--compliance { padding: 8px; }
.ag-dil-doc {
  position: relative;
  width: 100%;
  max-width: 240px;
  background: #F2E9D8;            /* aged-paper tone, intentionally off-palette */
  color: #2A2418;
  border-radius: 3px;
  padding: 12px 14px 16px;
  box-shadow:
    0 8px 24px -8px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,0,0,0.2);
  transform: rotate(-1.2deg);
  font-family: var(--ag-font-mono);
}
.ag-dil-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(42, 36, 24, 0.35);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.ag-dil-doc-tag {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #6B1414;
}
.ag-dil-doc-num {
  font-size: 7px;
  letter-spacing: 0.06em;
  color: rgba(42, 36, 24, 0.6);
}
.ag-dil-doc-line {
  height: 4px;
  background: rgba(42, 36, 24, 0.25);
  border-radius: 1px;
  margin-bottom: 5px;
}
.ag-dil-doc-line--full { width: 100%; }
.ag-dil-doc-line--xl { width: 88%; }
.ag-dil-doc-line--lg { width: 72%; }
.ag-dil-doc-line--md { width: 54%; }
.ag-dil-doc-fine {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(42, 36, 24, 0.4);
}
.ag-dil-doc-fine-k {
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(42, 36, 24, 0.65);
}
.ag-dil-doc-fine-v {
  font-family: var(--ag-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #6B1414;
}
.ag-dil-doc-stamps {
  position: absolute;
  right: -14px;
  bottom: -10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.ag-dil-stamp {
  font-family: var(--ag-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 8px;
  color: #B0202D;
  border: 1.5px solid #B0202D;
  border-radius: 2px;
  background: rgba(176, 32, 45, 0.04);
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(176, 32, 45, 0.2);
}

/* ---- visual 3: leakage / dissolving folder ---- */
.ag-dil-vis--leak {
  position: relative;
  padding: 0;
  align-items: stretch;
}
.ag-dil-vis--leak::after {
  /* extra noise wash on the leak tile only */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(217, 70, 168, 0.05) 0,
    rgba(217, 70, 168, 0.05) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: screen;
  opacity: 0.7;
}
.ag-dil-folder {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--ag-font-mono);
  font-size: 11px;
}
.ag-dil-folder-tab {
  color: rgba(245, 247, 250, 0.55);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(245, 247, 250, 0.10);
  margin-bottom: 2px;
}
.ag-dil-file-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ag-dil-file-name {
  color: rgba(245, 247, 250, 0.85);
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.ag-dil-dissolve {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.ag-dil-pixel {
  flex: 0 0 6px;
  height: 6px;
  background: rgba(245, 247, 250, 0.55);
  border-radius: 1px;
  animation: ag-dil-glitch 3.2s steps(1) infinite;
}
.ag-dil-pixel--hot { background: #ED7BCF; }
@keyframes ag-dil-glitch {
  0%, 92%   { transform: translateX(0); }
  93%, 95%  { transform: translateX(1px) translateY(-1px); opacity: 0.3; }
  96%, 100% { transform: translateX(-1px) translateY(1px); }
}
.ag-dil-folder-foot {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed rgba(245, 247, 250, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.5);
}
.ag-dil-folder-foot-status {
  color: #ED7BCF;
  padding: 2px 6px;
  border: 1px solid rgba(237, 123, 207, 0.42);
  border-radius: 3px;
  background: rgba(217, 70, 168, 0.10);
}

/* ---- footer line ---- */
.ag-dil-foot {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: rgba(0, 212, 161, 0.06);
  border: 1px solid rgba(0, 212, 161, 0.22);
  border-radius: 10px;
  font-family: var(--ag-font-sans);
  font-size: 14px;
  color: rgba(245, 247, 250, 0.78);
  flex-wrap: wrap;
}
.ag-dil-foot-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ag-shield-teal);
  box-shadow: 0 0 0 4px rgba(0, 212, 161, 0.18);
  flex-shrink: 0;
}
.ag-dil-foot-text { flex: 1; min-width: 240px; }
.ag-dil-foot-link {
  font-family: var(--ag-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ag-shield-teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 161, 0.42);
  padding-bottom: 1px;
  transition: color var(--ag-dur-base) var(--ag-ease-out),
              border-color var(--ag-dur-base) var(--ag-ease-out);
}
.ag-dil-foot-link:hover { color: var(--ag-clean-white); border-bottom-color: var(--ag-clean-white); }

/* ---------------------------------------------------------------- Flow animation */
.ag-flow { background: var(--ag-clean-white); overflow: hidden; }
.ag-flow-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ag-flow-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  position: relative;
  z-index: 2;
}
.ag-flow-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--ag-pure-white);
  border: 1px solid var(--ag-hairline);
  border-radius: 999px;
  width: fit-content;
  font-family: var(--ag-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ag-vault-navy);
}
.ag-flow-label i { width: 16px; height: 16px; color: var(--ag-muted-slate); }
.ag-flow-label[data-pos="gateway"] {
  justify-self: center;
  background: var(--ag-vault-navy);
  color: var(--ag-clean-white);
  border-color: var(--ag-vault-navy);
}
.ag-flow-label[data-pos="model"] { justify-self: end; }
.ag-flow-gateway-mark { width: 18px; height: 18px; filter: brightness(0) invert(1) opacity(0.85); }

.ag-flow-pipe {
  position: relative;
  background: var(--ag-bg-sunken);
  border: 1px solid var(--ag-hairline);
  border-radius: 18px;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 280px;
}

.ag-flow-track {
  position: relative;
  padding: 0 32px;
}
.ag-flow-track-label {
  font-family: var(--ag-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ag-muted-slate);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.ag-flow-track-label i { width: 12px; height: 12px; }
.ag-flow-rails {
  position: relative;
  height: 56px;
  overflow: visible;
}
.ag-flow-rail {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg,
    var(--ag-hairline-strong) 0,
    var(--ag-hairline-strong) 4px,
    transparent 4px,
    transparent 8px);
}

/* Particles flow along the rail. They contain TWO labels stacked; CSS
   cross-fades them at the gateway crossing. */
.ag-flow-particle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  font-family: var(--ag-font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(10, 22, 40, 0.06);
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
.ag-flow-particle--out { animation-name: ag-flow-out, ag-flow-out-style; }
.ag-flow-particle--in  { animation-name: ag-flow-in,  ag-flow-in-style; }

/* Position motion */
@keyframes ag-flow-out {
  0%   { left: 0%; }
  100% { left: 100%; }
}
@keyframes ag-flow-in {
  0%   { left: 100%; transform: translateY(-50%) translateX(-100%); }
  100% { left: 0%;   transform: translateY(-50%) translateX(0%); }
}

/* Style swap — color/border flips at the gateway crossing (~50%) */
@keyframes ag-flow-out-style {
  0%, 48%   { background: rgba(217, 70, 168, 0.12); color: #8B1F6E; border: 1px solid rgba(217,70,168,0.35); }
  49%, 51%  { background: var(--ag-pure-white);    color: var(--ag-vault-navy); border: 1px solid var(--ag-hairline-strong); filter: blur(0.8px); }
  52%, 100% { background: rgba(125, 184, 240, 0.14); color: #1F5BA8; border: 1px solid rgba(125,184,240,0.42); }
}
@keyframes ag-flow-in-style {
  0%, 48%   { background: rgba(125, 184, 240, 0.14); color: #1F5BA8; border: 1px solid rgba(125,184,240,0.42); }
  49%, 51%  { background: var(--ag-pure-white);    color: var(--ag-vault-navy); border: 1px solid var(--ag-hairline-strong); filter: blur(0.8px); }
  52%, 100% { background: rgba(0, 168, 127, 0.12);  color: #006048; border: 1px solid rgba(0,168,127,0.35); }
}

/* Cross-fade the two labels — raw shows until midpoint, token after */
.ag-flow-particle-raw,
.ag-flow-particle-token {
  display: inline-block;
  grid-row: 1; grid-column: 1;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
.ag-flow-particle-token { opacity: 0; }
.ag-flow-particle { display: grid; }
.ag-flow-particle--out .ag-flow-particle-raw   { animation-name: ag-flow-fade-out-at-mid; animation-delay: inherit; }
.ag-flow-particle--out .ag-flow-particle-token { animation-name: ag-flow-fade-in-at-mid;  animation-delay: inherit; }
.ag-flow-particle--in  .ag-flow-particle-raw   { animation-name: ag-flow-fade-out-at-mid; animation-delay: inherit; }
.ag-flow-particle--in  .ag-flow-particle-token { animation-name: ag-flow-fade-in-at-mid;  animation-delay: inherit; }

@keyframes ag-flow-fade-out-at-mid {
  0%, 48%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes ag-flow-fade-in-at-mid {
  0%, 48%   { opacity: 0; }
  50%, 100% { opacity: 1; }
}

/* Gateway node — visually centered between tracks */
.ag-flow-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--ag-pure-white);
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 8px 32px -8px rgba(0, 212, 161, 0.30), 0 0 0 1px var(--ag-shield-teal);
}
.ag-flow-node-core img { width: 64px; height: 64px; }
.ag-flow-node-ring, .ag-flow-node-ring--2 {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--ag-shield-teal);
  opacity: 0;
  animation: ag-node-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.ag-flow-node-ring--2 { animation-delay: 1.2s; }
@keyframes ag-node-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}
.ag-flow-node-actions {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  white-space: nowrap;
}
.ag-flow-node-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--ag-pure-white);
  border: 1px solid var(--ag-hairline);
  border-radius: 999px;
  font-family: var(--ag-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ag-vault-navy);
}
.ag-flow-node-action i { width: 11px; height: 11px; color: var(--ag-shield-teal-dk); }

.ag-flow-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 720px) { .ag-flow-stats { grid-template-columns: repeat(2, 1fr); } }
.ag-flow-stat {
  background: var(--ag-pure-white);
  border: 1px solid var(--ag-hairline);
  border-radius: 12px;
  padding: 16px 18px;
}
.ag-flow-stat-label {
  font-family: var(--ag-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ag-muted-slate);
  margin-bottom: 6px;
}
.ag-flow-stat-value {
  font-family: var(--ag-font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ag-vault-navy);
  line-height: 1;
}
.ag-flow-stat-value.is-accent { color: var(--ag-shield-teal-dk); }
.ag-flow-stat-sub {
  font-family: var(--ag-font-sans);
  font-size: 11px;
  color: var(--ag-muted-slate);
  margin-top: 4px;
}

.ag-flow-stats-note {
  font-family: var(--ag-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ag-muted-slate);
  text-align: right;
  margin-top: 4px;
}

/* ---------------------------------------------------------------- Pillars (radial arc) */
.ag-pillars { background: var(--ag-bg-sunken); }

.ag-pradial {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  margin-top: 56px;
  align-items: start;
}

.ag-pradial-arc {
  position: sticky;
  top: 96px;
  width: 100%;
  height: 640px;
  max-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ag-pradial-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ag-pradial-node {
  cursor: pointer;
  outline: none;
}
.ag-pradial-node > circle {
  transition: r var(--ag-dur-base) var(--ag-ease-out),
              opacity var(--ag-dur-base) var(--ag-ease-out);
}
.ag-pradial-node-num {
  font-family: var(--ag-font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  fill: var(--ag-vault-navy);
  user-select: none;
}
.ag-pradial-node:focus-visible > circle:first-of-type {
  filter: drop-shadow(0 0 0 4px var(--ag-shield-teal-24));
}

/* Right column — three text cards stacked */
.ag-pradial-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ag-pradial-card {
  position: relative;
  padding: 24px 28px;
  border-radius: var(--ag-radius-lg);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  outline: none;
  opacity: 0.6;
  transition: opacity var(--ag-dur-base) var(--ag-ease-out),
              background var(--ag-dur-base) var(--ag-ease-out),
              border-color var(--ag-dur-base) var(--ag-ease-out),
              box-shadow var(--ag-dur-base) var(--ag-ease-out),
              transform var(--ag-dur-base) var(--ag-ease-out);
}
.ag-pradial-card:hover { opacity: 0.85; }
.ag-pradial-card.is-active {
  opacity: 1;
  background: var(--ag-pure-white);
  border-color: var(--ag-hairline);
  box-shadow: 0 6px 20px -10px rgba(10, 22, 40, 0.10);
}
.ag-pradial-card.is-active::before {
  content: '';
  position: absolute;
  left: -1px; top: 22px; bottom: 22px;
  width: 2px;
  background: var(--ag-shield-teal);
  border-radius: 2px;
}
.ag-pradial-card:focus-visible {
  box-shadow: 0 0 0 4px var(--ag-shield-teal-24);
}

.ag-pradial-card-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}
.ag-pradial-card-num {
  font-family: var(--ag-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ag-muted-slate);
}
.ag-pradial-card.is-active .ag-pradial-card-num {
  color: var(--ag-shield-teal-dk);
}
.ag-pradial-card-short {
  font-family: var(--ag-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ag-fog);
}
.ag-pradial-card-title {
  font-family: var(--ag-font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--ag-vault-navy);
  margin: 0 0 10px;
  line-height: 1.2;
}
.ag-pradial-card-body {
  font-family: var(--ag-font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ag-muted-slate);
  margin: 0;
  max-width: 60ch;
  text-wrap: pretty;
}
.ag-pradial-card-metrics {
  list-style: none;
  padding: 16px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--ag-hairline);
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--ag-dur-slow) var(--ag-ease-out),
              opacity var(--ag-dur-base) var(--ag-ease-out),
              padding-top var(--ag-dur-slow) var(--ag-ease-out),
              margin-top var(--ag-dur-slow) var(--ag-ease-out);
}
.ag-pradial-card.is-active .ag-pradial-card-metrics {
  max-height: 120px;
  opacity: 1;
}
.ag-pradial-card-metrics li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ag-pradial-metric-v {
  font-family: var(--ag-font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ag-vault-navy);
}
.ag-pradial-metric-k {
  font-family: var(--ag-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ag-muted-slate);
}

/* Stack on narrow screens — arc above the cards, smaller */
@media (max-width: 820px) {
  .ag-pradial {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ag-pradial-arc {
    position: relative;
    top: auto;
    height: 280px;
    max-height: none;
  }
  .ag-pradial-svg { max-width: 220px; }
}

/* ---------------------------------------------------------------- Sandbox */
.ag-sandbox { background: var(--ag-clean-white); }

.ag-sb-presets {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 28px;
}
.ag-sb-presets-label { margin-right: 4px; }
.ag-chip {
  background: var(--ag-pure-white);
  border: 1px solid var(--ag-hairline-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--ag-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ag-vault-navy);
  cursor: pointer;
  transition: all var(--ag-dur-base) var(--ag-ease-out);
}
.ag-chip:hover { border-color: var(--ag-vault-navy-40); }
.ag-chip.is-active { background: var(--ag-vault-navy); color: var(--ag-clean-white); border-color: var(--ag-vault-navy); }
.ag-chip-quiet { background: transparent; border-color: var(--ag-hairline); color: var(--ag-muted-slate); }

.ag-sb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ag-sb-panel--wide { grid-column: 1 / -1; }
@media (max-width: 980px) {
  .ag-sb-grid { grid-template-columns: 1fr; }
  .ag-sb-panel--wide { grid-column: auto; }
}

.ag-sb-panel {
  background: var(--ag-pure-white);
  border: 1px solid var(--ag-hairline);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ag-sb-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ag-sb-panel-step {
  font-family: var(--ag-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: var(--ag-vault-navy);
  color: var(--ag-clean-white);
  padding: 4px 8px;
  border-radius: 6px;
}
.ag-sb-panel-title {
  font-family: var(--ag-font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ag-vault-navy);
}
.ag-sb-panel-meta {
  margin-left: auto;
  font-family: var(--ag-font-mono);
  font-size: 11px;
  color: var(--ag-muted-slate);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ag-sb-preview, .ag-sb-editor, .ag-sb-payload {
  font-family: var(--ag-font-sans);
  font-size: 15px;
  line-height: 1.7;
  background: var(--ag-bg-sunken);
  border: 1px solid var(--ag-hairline);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ag-vault-navy);
  min-height: 200px;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.ag-sb-preview { cursor: text; }
.ag-sb-editor {
  width: 100%;
  resize: vertical;
  outline: none;
  display: block;
  box-sizing: border-box;
}
.ag-sb-editor:focus { border-color: var(--ag-shield-teal); box-shadow: 0 0 0 4px var(--ag-shield-teal-24); }
.ag-sb-payload { font-family: var(--ag-font-mono); font-size: 13px; line-height: 1.7; }
.ag-sb-placeholder { color: var(--ag-fog); font-style: italic; }

/* PII highlights — magenta family, brand layer feel but tamed for UI */
.ag-sb-pii {
  background: rgba(217, 70, 168, 0.10);
  color: #8B1F6E;
  padding: 1px 4px;
  border-radius: 4px;
  border-bottom: 1px solid rgba(217, 70, 168, 0.42);
  position: relative;
  white-space: pre-wrap;
}
.ag-sb-pii-tag {
  font-family: var(--ag-font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #8B1F6E;
  color: white;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: 4px;
  font-weight: 500;
  white-space: nowrap;
}
.ag-sb-token {
  display: inline-block;
  font-family: var(--ag-font-mono);
  font-size: 0.94em;
  font-weight: 500;
  background: rgba(125, 184, 240, 0.14);
  color: #1F5BA8;
  border: 1px solid rgba(125, 184, 240, 0.42);
  padding: 0 6px;
  border-radius: 4px;
  margin: 0 1px;
}

.ag-sb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: 26px;
}
.ag-sb-legend-pill {
  font-family: var(--ag-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(217, 70, 168, 0.10);
  color: #8B1F6E;
  border: 1px solid rgba(217, 70, 168, 0.30);
}
.ag-sb-legend-empty {
  font-family: var(--ag-font-sans);
  font-size: 12px;
  color: var(--ag-success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ag-sb-legend-empty::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ag-success);
}

.ag-sb-route {
  display: flex; flex-wrap: wrap; gap: 18px; padding-top: 6px;
}
.ag-sb-route-piece { display: flex; flex-direction: column; gap: 2px; }
.ag-sb-route-label {
  font-family: var(--ag-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ag-muted-slate);
}
.ag-sb-route-value {
  font-family: var(--ag-font-sans);
  font-size: 13px;
  color: var(--ag-vault-navy);
  font-weight: 500;
}
.ag-sb-route-value.is-mono { font-family: var(--ag-font-mono); font-size: 12px; }
.ag-sb-route-value.is-accent { color: var(--ag-shield-teal-dk); }

.ag-sb-response-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
@media (max-width: 760px) {
  .ag-sb-response-grid { grid-template-columns: 1fr; }
  .ag-sb-arrow { transform: rotate(90deg); justify-self: center; }
}
.ag-sb-response-col { display: flex; flex-direction: column; gap: 8px; }
.ag-sb-mini-label {
  font-family: var(--ag-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ag-muted-slate);
}
.ag-sb-response {
  font-family: var(--ag-font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ag-vault-navy);
  background: var(--ag-bg-sunken);
  border: 1px solid var(--ag-hairline);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0;
  min-height: 100px;
}
.ag-sb-response--clean { background: rgba(0, 212, 161, 0.05); border-color: rgba(0, 212, 161, 0.28); }

.ag-sb-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--ag-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ag-shield-teal-dk);
}

.ag-sb-disclaimer {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--ag-font-sans);
  font-size: 13px;
  color: var(--ag-muted-slate);
  max-width: 760px;
}
.ag-sb-disclaimer i { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; }

/* ---------------------------------------------------------------- Plans */
.ag-plans { background: var(--ag-bg-sunken); }
.ag-billing-toggle {
  display: inline-flex;
  background: var(--ag-pure-white);
  border: 1px solid var(--ag-hairline);
  border-radius: 999px;
  padding: 4px;
  margin-top: 24px;
}
.ag-billing-toggle button {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--ag-font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--ag-muted-slate);
  cursor: pointer;
  transition: all var(--ag-dur-base) var(--ag-ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ag-billing-toggle button.is-active {
  background: var(--ag-vault-navy);
  color: var(--ag-clean-white);
}
.ag-billing-save {
  font-family: var(--ag-font-mono);
  font-size: 10px;
  background: var(--ag-shield-teal);
  color: var(--ag-vault-navy);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.ag-billing-toggle button.is-active .ag-billing-save { background: var(--ag-shield-teal); color: var(--ag-vault-navy); }

.ag-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 920px) { .ag-plans-grid { grid-template-columns: 1fr; } }

.ag-plan-card {
  background: var(--ag-pure-white);
  border: 1px solid var(--ag-hairline);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.ag-plan-card.is-recommended {
  border-color: var(--ag-shield-teal);
  box-shadow: 0 16px 48px -20px rgba(0, 168, 127, 0.30), 0 0 0 1px var(--ag-shield-teal);
}
.ag-plan-flag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ag-shield-teal);
  color: var(--ag-vault-navy);
  font-family: var(--ag-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.ag-plan-head { display: flex; flex-direction: column; gap: 8px; }
.ag-plan-name {
  font-family: var(--ag-font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ag-vault-navy);
  margin: 0;
}
.ag-plan-blurb {
  font-family: var(--ag-font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ag-muted-slate);
  margin: 0;
  min-height: 44px;
}
.ag-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  font-family: var(--ag-font-display);
  color: var(--ag-vault-navy);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--ag-hairline);
  padding-bottom: 18px;
}
.ag-plan-price-currency { font-weight: 500; font-size: 22px; opacity: 0.6; }
.ag-plan-price-value { font-weight: 600; font-size: 48px; line-height: 1; }
.ag-plan-price-suffix { font-weight: 600; font-size: 28px; line-height: 1; opacity: 0.8; }
.ag-plan-price-unit { font-family: var(--ag-font-sans); font-size: 13px; font-weight: 400; color: var(--ag-muted-slate); margin-left: 6px; letter-spacing: 0; }
.ag-plan-price-custom { font-weight: 600; font-size: 38px; line-height: 1; }
.ag-plan-cta { width: 100%; justify-content: center; }
.ag-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ag-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--ag-font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ag-vault-navy);
}
.ag-plan-features svg { color: var(--ag-shield-teal-dk); margin-top: 4px; flex-shrink: 0; }
.ag-plans-footnote {
  margin-top: 24px;
  text-align: center;
  font-family: var(--ag-font-sans);
  font-size: 13px;
  color: var(--ag-muted-slate);
}

/* ---------------------------------------------------------------- Contact */
.ag-contact { background: var(--ag-clean-white); }
.ag-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 920px) { .ag-contact-grid { grid-template-columns: 1fr; } }

.ag-contact-form {
  background: var(--ag-pure-white);
  border: 1px solid var(--ag-hairline);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 4px 16px -12px rgba(10, 22, 40, 0.10);
}
.ag-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .ag-field-row { grid-template-columns: 1fr; } }
.ag-field { display: flex; flex-direction: column; gap: 6px; }
.ag-label {
  font-family: var(--ag-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ag-vault-navy);
}
.ag-label-req { color: var(--ag-shield-teal-dk); font-weight: 600; }
.ag-input, .ag-textarea {
  font-family: var(--ag-font-sans);
  font-size: 14px;
  padding: 10px 12px;
  background: var(--ag-pure-white);
  border: 1px solid var(--ag-hairline-strong);
  border-radius: 8px;
  color: var(--ag-vault-navy);
  outline: none;
  transition: border-color var(--ag-dur-base) var(--ag-ease-out),
              box-shadow var(--ag-dur-base) var(--ag-ease-out);
}
.ag-input:focus, .ag-textarea:focus {
  border-color: var(--ag-shield-teal);
  box-shadow: 0 0 0 4px var(--ag-shield-teal-24);
}
.ag-textarea { resize: vertical; min-height: 88px; font-family: var(--ag-font-sans); }
.ag-select-wrap { position: relative; }
.ag-select { appearance: none; padding-right: 32px; cursor: pointer; }
.ag-select-chev { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ag-muted-slate); pointer-events: none; }
.ag-contact-submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.ag-contact-fine { font-family: var(--ag-font-sans); font-size: 12px; color: var(--ag-muted-slate); margin: 0; }

.ag-contact-aside { padding: 8px 0; }
.ag-contact-aside-title {
  font-family: var(--ag-font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ag-vault-navy);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.ag-contact-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ag-contact-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
}
.ag-contact-step-num {
  font-family: var(--ag-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ag-vault-navy);
  color: var(--ag-clean-white);
  display: grid;
  place-items: center;
}
.ag-contact-step-title {
  font-family: var(--ag-font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ag-vault-navy);
  margin-bottom: 4px;
}
.ag-contact-steps p {
  font-family: var(--ag-font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ag-muted-slate);
  margin: 0;
}
.ag-contact-compliance { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--ag-hairline); }
.ag-pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ag-vault-navy-06);
  border: 1px solid var(--ag-hairline);
  border-radius: 999px;
  font-family: var(--ag-font-mono);
  font-size: 11px;
  color: var(--ag-vault-navy);
  letter-spacing: 0.02em;
}

.ag-contact-thanks { text-align: center; max-width: 640px; margin: 0 auto; padding: 48px 0; }
.ag-contact-thanks-mark { width: 64px; height: 64px; border-radius: 16px; background: var(--ag-shield-teal-12); display: grid; place-items: center; margin: 0 auto 20px; color: var(--ag-shield-teal-dk); }
.ag-contact-thanks-mark i { width: 32px; height: 32px; }
.ag-contact-thanks .ag-h2 { margin-bottom: 16px; }

/* ---------------------------------------------------------------- Footer */
.ag-footer {
  background: var(--ag-vault-navy);
  color: rgba(245, 247, 250, 0.7);
  padding: 64px 0 32px;
  margin-top: 0;
}
.ag-footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(245, 247, 250, 0.10); }
@media (max-width: 860px) { .ag-footer-top { grid-template-columns: 1fr; } }
.ag-footer-brand { display: flex; flex-direction: column; gap: 18px; }
.ag-footer-tag { font-family: var(--ag-font-sans); font-size: 14px; line-height: 1.55; max-width: 320px; margin: 0; color: rgba(245, 247, 250, 0.65); }
.ag-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 640px) { .ag-footer-cols { grid-template-columns: repeat(2, 1fr); } }
.ag-footer-col-head { font-family: var(--ag-font-display); font-weight: 600; font-size: 13px; color: var(--ag-clean-white); margin-bottom: 14px; letter-spacing: -0.005em; }
.ag-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ag-footer-col a { font-family: var(--ag-font-sans); font-size: 13px; color: rgba(245, 247, 250, 0.6); text-decoration: none; transition: color var(--ag-dur-fast) var(--ag-ease-out); }
.ag-footer-col a:hover { color: var(--ag-shield-teal); }
.ag-footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-family: var(--ag-font-sans); font-size: 12px; color: rgba(245, 247, 250, 0.55); }
.ag-footer-spacer { opacity: 0.4; }
.ag-footer-bottom a { color: rgba(245, 247, 250, 0.65); text-decoration: none; }
.ag-footer-bottom a:hover { color: var(--ag-shield-teal); }
