/* ─────────────────────────────────────────────────────────────────
   about.css — shared stylesheet for /about and /products
   Layered on top of Bootstrap 5. Uses tenant CSS variables
   (--accent, --surface, --text, --muted, --border, --code-bg, etc.)
   defined in base.html so the entire stack auto-themes.
   ───────────────────────────────────────────────────────────────── */

/* ── Bootstrap button variants ──────────────────────────────────── */
.btn-accent {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  font-weight: 600;
}
.btn-accent:hover,
.btn-accent:focus {
  background: var(--accent-alt, var(--accent));
  color: var(--bg);
  filter: brightness(1.05);
}
.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 600;
}
.btn-outline-accent:hover,
.btn-outline-accent:focus {
  background: var(--accent-dim-light, var(--accent-dim));
  color: var(--accent);
}
.btn-link.ae-cta-link {
  color: var(--muted);
  text-decoration: underline;
  font-weight: 500;
}
.btn-link.ae-cta-link:hover { color: var(--accent); }

/* ── Wrappers ──────────────────────────────────────────────────── */
.about-page,
.products-page {
  color: var(--text);
}
.about-page .container,
.products-page .container {
  max-width: 1180px;
}

/* ── Eyebrow ───────────────────────────────────────────────────── */
.ae-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.7rem 0;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.ae-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(
    180deg,
    var(--accent-dim-light, var(--accent-dim)) 0%,
    transparent 100%);
  border-bottom: 1px solid var(--border);
}
.ae-hero-headline {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1rem 0;
  letter-spacing: -0.01em;
}
.ae-hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1.4rem 0;
  max-width: 56ch;
}
.ae-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.ae-hero-foot {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.6rem 0 0 0;
}

.ae-hero-figure {
  display: block;
}
.ae-hero-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ae-hero-figure a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.32);
}
.ae-hero-figure figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.5;
}

/* ── Stat strip ────────────────────────────────────────────────── */
.ae-strip {
  padding: 1.4rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.ae-stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.ae-stat-lab {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* ── Sections ──────────────────────────────────────────────────── */
.ae-section {
  padding: 3rem 0;
}
.ae-section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ae-section-h {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.7rem 0;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.ae-section-lede {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 1rem 0;
  max-width: 78ch;
}

/* ── Compare grid ──────────────────────────────────────────────── */
.ae-compare {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  background: var(--bg);
}
.ae-compare-them {
  opacity: 0.92;
}
.ae-compare-us {
  border-color: var(--accent);
  background: var(--accent-dim-light, var(--accent-dim));
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.ae-compare-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.ae-compare-us .ae-compare-tag {
  color: var(--accent);
}
.ae-compare ul {
  margin: 0;
  padding-left: 1.1rem;
}
.ae-compare li {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.55rem;
  color: var(--text);
}
.ae-compare-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

/* ── How-it-works flow ─────────────────────────────────────────── */
.ae-flow-row { margin-top: 1rem; }
.ae-flow-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  height: 100%;
}
.ae-section-alt .ae-flow-step { background: var(--surface); }
.ae-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-mono, monospace);
  margin-bottom: 0.6rem;
}
.ae-flow-step h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem 0;
}
.ae-flow-step p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ── Capability cards (Bootstrap card variant) ─────────────────── */
.ae-cap.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ae-section-alt .ae-cap.card { background: var(--surface-hover, var(--bg)); }
.ae-cap.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}
.ae-cap .card-img-top {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.ae-cap .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.4rem 0;
}
.ae-cap .card-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

/* ── Use-case tiles ────────────────────────────────────────────── */
.ae-usecase {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  height: 100%;
}
.ae-section-alt .ae-usecase { background: var(--surface-hover, var(--bg)); }
.ae-usecase h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.4rem 0;
}
.ae-usecase p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 0.6rem 0;
}
.ae-usecase-prompt {
  font-size: 0.82rem !important;
  font-family: var(--font-mono, monospace) !important;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 0.5rem 0.7rem !important;
  color: var(--muted) !important;
  line-height: 1.5 !important;
}
.ae-prompt-label {
  display: inline-block;
  font-family: var(--font-stack);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ── Bold pitch cards ──────────────────────────────────────────── */
.ae-card-bold {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.2rem 1.3rem;
  height: 100%;
}
.ae-section-alt .ae-card-bold { background: var(--surface-hover, var(--bg)); }
.ae-card-bold h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}
.ae-card-bold p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ── Customization knobs ───────────────────────────────────────── */
.ae-knob {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 0.95rem;
  height: 100%;
}
.ae-knob h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.3rem 0;
}
.ae-knob p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

/* ── Trust panels ──────────────────────────────────────────────── */
.ae-trust {
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  height: 100%;
}
.ae-trust h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}
.ae-trust p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ── CTA band ──────────────────────────────────────────────────── */
.ae-section-cta {
  padding: 3.5rem 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--accent-dim-light, var(--accent-dim)) 100%);
  border-top: 1px solid var(--border);
}
.ae-cta-h { margin-bottom: 0.8rem; }
.ae-cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1rem;
}

/* ═════════════════════════════════════════════════════════════
   /products page additions
   ═════════════════════════════════════════════════════════════ */

.ae-product-num {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.55rem;
  background: var(--accent-dim-light, var(--accent-dim));
  border-radius: 4px;
}

.ae-prod-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
.ae-section-alt .ae-prod-card { background: var(--surface-hover, var(--bg)); }

.ae-prod-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--accent-dim-light, var(--accent-dim));
  border-bottom: 1px solid var(--border);
}
.ae-prod-card-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.ae-prod-card-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 0.3rem 0;
}
.ae-prod-card-sub {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}
.ae-prod-card-pill {
  flex-shrink: 0;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.25rem 0.55rem;
  white-space: nowrap;
  align-self: center;
}

.ae-prod-card-body {
  padding: 1.1rem 1.3rem;
}
.ae-prod-card-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.6rem 0;
}
.ae-prod-card-foot {
  margin: 0.9rem 0 0 0;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

/* MCP tool list — used in product cards */
.ae-tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ae-tool-list li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0.7rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.86rem;
  line-height: 1.5;
}
.ae-tool-list li:last-child { border-bottom: none; }
.ae-tool-list li > code {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  background: transparent;
  padding: 0;
}
.ae-tool-list li .ae-tool-bold {
  font-size: 0.86rem;
  color: var(--accent);
  font-weight: 700;
}
.ae-tool-list li > span:not(.ae-tool-bold) {
  color: var(--text);
}
.ae-tool-list li > span code {
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--code-bg);
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
}
@media (max-width: 600px) {
  .ae-tool-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}

.ae-prod-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.ae-prod-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.ae-prod-link:hover { text-decoration: underline; }

.ae-prod-note {
  margin: 1rem 0 0 0;
  padding: 0.85rem 1rem;
  background: var(--code-bg);
  border-left: 3px solid var(--accent-alt, var(--accent));
  border-radius: 0 6px 6px 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}

/* "Which product is right" comparison table.
   Redirect Bootstrap's table custom properties to our tenant palette so
   the cells inherit the right text/border/bg in both dark + light themes. */
.ae-table-wrap { margin-top: 1.2rem; }
.ae-compare-table {
  /* Override Bootstrap's --bs-table-* layer */
  --bs-table-color: var(--text);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--border);
  --bs-table-striped-color: var(--text);
  --bs-table-striped-bg: var(--surface-hover, var(--surface));
  --bs-table-hover-color: var(--text);
  --bs-table-hover-bg: var(--surface-hover, var(--surface));

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--text);
}
.ae-section-alt .ae-compare-table { background: var(--surface-hover, var(--bg)); }
.ae-compare-table thead th {
  background: var(--accent-dim-light, var(--accent-dim));
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}
.ae-compare-table tbody tr { background: transparent; }
.ae-compare-table tbody td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
  vertical-align: top;
  border-top: 1px solid var(--border);
  background: transparent;
}
.ae-compare-table tbody td:first-child {
  color: var(--text);
  font-weight: 500;
}
.ae-compare-table tbody td:last-child {
  color: var(--muted);
}
.ae-compare-table tbody td strong { color: var(--accent); font-weight: 700; }

/* ── Responsive hero stacking ──────────────────────────────────── */
@media (max-width: 991px) {
  .ae-hero-figure { margin-top: 1.5rem; }
}
