/* =============================================================================
 * ai-pages.css — Standalone Tradeiz AI marketing pages
 *   /ai             — Overview
 *   /ai/features    — Features
 *   /ai/how-to-use  — How to Use
 *   /ai/faq         — FAQ
 *
 * Fintech corp layout (not chart pages). Typography follows --tt-fg-0 tokens
 * aligned with yescript-pages.css. No in-page tab/subnav UI.
 * ============================================================================= */

/* Theme tokens — mirror yescript-pages / tradeiz-home */
.theme--dark .ai-page,
body.theme--dark .ai-page {
  --tt-bg-0: #000000;
  --tt-line: #0a0a0a;
  --tt-line-2: #161616;
  --tt-fg-0: #d0d0d0;
  --tt-up: #00C896;
  --tt-down: #FF4D6A;
  --tt-accent: #2962ff;
  --tt-border: rgba(255, 255, 255, 0.12);
  --tt-muted: rgba(255, 255, 255, 0.72);
}

body.theme--light .ai-page,
.theme--light .ai-page {
  --tt-bg-0: #ffffff;
  --tt-line: #e8e8e8;
  --tt-line-2: #d0d0d0;
  --tt-fg-0: #181818;
  --tt-up: #00C896;
  --tt-down: #FF4D6A;
  --tt-accent: #2962ff;
  --tt-border: rgba(0, 0, 0, 0.12);
  --tt-muted: rgba(0, 0, 0, 0.68);
}

.ai-page {
  background: var(--tt-bg-0);
  color: var(--tt-fg-0);
}

.ai-page .corp-page,
.ai-page .corp-page .corp-page__body,
.ai-page .corp-page .corp-page__body p,
.ai-page .corp-page .corp-page__body h2,
.ai-page .corp-page .corp-page__body h3,
.ai-page .corp-page .corp-page__body ul,
.ai-page .corp-page .corp-page__body li,
.ai-page .corp-page .corp-page__list,
.ai-page .corp-page .corp-page__list li,
.ai-page .corp-page .corp-page__title,
.ai-page .corp-page .corp-page__sub,
.ai-page .corp-page h2.s-22,
.ai-page .corp-page h3.s-18 {
  color: var(--tt-fg-0);
}

.ai-page .inner-page-hero {
  position: relative;
  z-index: 1;
  padding-top: 160px !important;
  margin-top: 0 !important;
}

@media (max-width: 991px) {
  .ai-page .inner-page-hero {
    padding-top: 120px !important;
  }
}

/* ── Page hero band ───────────────────────────────────────────────────────── */
.ai-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: 40px;
  padding: 32px 36px;
  border: 1px solid var(--tt-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

body.theme--light .ai-hero {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.10);
}

.ai-hero__copy {
  flex: 1 1 420px;
  min-width: 0;
}

.ai-hero__badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tt-accent);
  background: rgba(41, 98, 255, 0.10);
  border: 1px solid rgba(41, 98, 255, 0.22);
}

body.theme--light .ai-hero__badge {
  color: #1c54f0;
  background: rgba(41, 98, 255, 0.08);
  border-color: rgba(41, 98, 255, 0.28);
}

.ai-hero__title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--tt-fg-0);
}

.ai-hero__sub {
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  color: var(--tt-fg-0);
  opacity: 0.78;
  max-width: 62ch;
}

.ai-hero__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ai-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--tt-border);
}

@media (max-width: 768px) {
  .ai-hero__stats { grid-template-columns: 1fr; }
}

.ai-stat {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--tt-border);
  background: rgba(255, 255, 255, 0.015);
  min-width: 0;
}

body.theme--light .ai-stat {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.ai-stat__val {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--tt-fg-0);
  margin-bottom: 4px;
}

.ai-stat__lbl {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--tt-fg-0);
  opacity: 0.65;
}

/* Features page — capability summary strip */
.ai-cap-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--tt-border);
}

@media (max-width: 768px) {
  .ai-cap-strip { grid-template-columns: 1fr; }
}

.ai-cap {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--tt-border);
  background: rgba(255, 255, 255, 0.015);
}

body.theme--light .ai-cap {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.ai-cap__val {
  display: block;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--tt-fg-0);
  margin-bottom: 2px;
}

.ai-cap__lbl {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--tt-fg-0);
  opacity: 0.65;
}

/* ── Hero CTA buttons ─────────────────────────────────────────────────────── */
.ai-page__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-page__btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
  border: 1px solid transparent;
}

.ai-page__btn--primary {
  background: var(--tt-accent);
  color: #ffffff !important;
  border-color: var(--tt-accent);
}

.ai-page__btn--primary:hover {
  background: #1c54f0;
  transform: translateY(-1px);
  text-decoration: none;
}

.ai-page__btn--ghost {
  background: transparent;
  color: var(--tt-fg-0);
  border-color: var(--tt-border);
}

.ai-page__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

body.theme--light .ai-page__btn--ghost:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* ── Three-pillar pitch (overview) ────────────────────────────────────────── */
.ai-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}

@media (max-width: 768px) {
  .ai-pillars { grid-template-columns: 1fr; }
}

.ai-pillar {
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.015);
}

body.theme--light .ai-pillar {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.ai-pillar__icon {
  width: 24px;
  height: 24px;
  color: var(--tt-accent);
  margin-bottom: 10px;
}

.ai-pillar__icon svg {
  width: 100%;
  height: 100%;
}

.ai-pillar__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--tt-fg-0);
}

.ai-pillar__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--tt-muted);
  margin: 0;
}

/* ── Example prompt list ──────────────────────────────────────────────────── */
.ai-page__example-list li em {
  font-style: italic;
  color: var(--tt-fg-0);
  opacity: 0.88;
}

/* ── Features page blocks ─────────────────────────────────────────────────── */
.ai-page--features .ai-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  align-items: center;
  gap: 22px 32px;
}

.ai-page--features .ai-hero__copy {
  flex: none;
}

.ai-feature-hero__fig {
  margin: 0;
  min-width: 0;
  justify-self: end;
}

.ai-page--features .ai-cap-strip {
  grid-column: 1 / -1;
  margin-top: 0;
}

.ai-feature-ill {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin-inline: auto;
}

.ai-feature-ill--hero {
  max-width: 440px;
}

.ai-feature {
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 16px 0;
  background: rgba(255, 255, 255, 0.015);
}

.ai-feature--visual {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 20px 26px;
  align-items: center;
}

.ai-feature--reverse .ai-feature__copy {
  order: 2;
}

.ai-feature--reverse .ai-feature__fig {
  order: 1;
}

.ai-feature__copy {
  min-width: 0;
}

.ai-feature__fig {
  margin: 0;
  min-width: 0;
  justify-self: center;
}

.ai-feature h2 {
  margin-top: 0 !important;
  color: var(--tt-fg-0);
}

.ai-feature p,
.ai-feature li {
  color: var(--tt-muted);
}

.ai-feature code,
.ai-feature li code {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--tt-fg-0);
  opacity: 0.92;
}

body.theme--light .ai-feature {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

@media (max-width: 991px) {
  .ai-page--features .ai-hero,
  .ai-feature--visual {
    grid-template-columns: 1fr;
  }

  .ai-feature-hero__fig {
    justify-self: center;
  }

  .ai-feature--visual .ai-feature__fig,
  .ai-feature--reverse .ai-feature__fig {
    order: -1;
  }

  .ai-feature-ill,
  .ai-feature-ill--hero {
    max-width: 420px;
  }
}

@media (max-width: 575px) {
  .ai-feature-ill,
  .ai-feature-ill--hero {
    max-width: 100%;
  }

  .ai-feature--visual {
    gap: 16px;
  }
}

/* ── How-to page steps ────────────────────────────────────────────────────── */
.ai-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.ai-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
}

.ai-step__num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(41, 98, 255, 0.14);
  color: var(--tt-accent);
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(41, 98, 255, 0.28);
}

.ai-step__content h2 {
  margin-top: 0 !important;
  color: var(--tt-fg-0);
}

.ai-step__content p,
.ai-step__content li {
  color: var(--tt-muted);
}

body.theme--light .ai-step {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

body.theme--light .ai-step__num {
  background: rgba(41, 98, 255, 0.10);
}

/* ── How-to page hero + step visuals ─────────────────────────────────────── */
.ai-page--howto .ai-hero--howto {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  align-items: center;
  gap: 22px 28px;
}

.ai-howto-hero__fig {
  margin: 0;
  min-width: 0;
  justify-self: end;
}

.ai-howto-ill {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-inline: auto;
}

.ai-howto-ill--spot {
  max-width: 280px;
}

.ai-step__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ai-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--tt-accent);
}

.ai-step__icon svg {
  width: 22px;
  height: 22px;
}

.ai-step--visual {
  grid-template-columns: 48px minmax(0, 1fr) minmax(180px, 0.75fr);
  align-items: center;
}

.ai-step__fig {
  margin: 0;
  min-width: 0;
  justify-self: center;
}

@media (max-width: 991px) {
  .ai-page--howto .ai-hero--howto {
    grid-template-columns: 1fr;
  }

  .ai-howto-hero__fig {
    justify-self: center;
  }

  .ai-step--visual {
    grid-template-columns: 48px 1fr;
  }

  .ai-step--visual .ai-step__fig {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
}

/* ── Strategy examples (retained for legacy view) ───────────────────────────── */
.ai-strategy {
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.015);
}

.ai-strategy__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--tt-fg-0);
}

.ai-strategy__desc {
  font-size: 14px;
  color: var(--tt-muted);
  margin: 0 0 10px;
}

.ai-strategy__prompt {
  border-left: 3px solid var(--tt-accent);
  padding: 8px 12px;
  background: rgba(41, 98, 255, 0.06);
  border-radius: 0 6px 6px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ai-strategy__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tt-accent);
  flex-shrink: 0;
  padding-top: 2px;
}

.ai-strategy__prompt code {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--tt-fg-0);
  background: transparent;
  padding: 0;
  border: none;
  white-space: pre-wrap;
  word-break: break-word;
}

body.theme--light .ai-strategy {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

/* ── Educational disclaimer callout ───────────────────────────────────────── */
.ai-disclaimer {
  margin: 0 0 28px;
  padding: 14px 18px;
  border: 1px solid var(--tt-border);
  border-left: 3px solid var(--tt-accent);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  line-height: 1.55;
  color: var(--tt-muted);
}

.ai-disclaimer a {
  color: var(--tt-accent);
  text-decoration: underline;
}

body.theme--light .ai-disclaimer {
  background: rgba(0, 0, 0, 0.02);
}

/* ── See-also footer links ────────────────────────────────────────────────── */
.ai-page__see {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--tt-border);
  font-size: 14px;
  color: var(--tt-muted);
}

.ai-page__see a {
  color: var(--tt-accent);
  text-decoration: none;
  font-weight: 500;
}

.ai-page__see a:hover {
  text-decoration: underline;
}

/* =============================================================================
 * /ai overview — split hero, bento, flow, prompt cards (2026-07-11)
 * ============================================================================= */

.ai-page--overview .inner-page-hero {
  padding-top: 128px !important;
}

@media (max-width: 991px) {
  .ai-page--overview .inner-page-hero {
    padding-top: 108px !important;
  }
}

.ai-overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px 36px;
  align-items: stretch;
  margin-bottom: 28px;
}

@media (max-width: 991px) {
  .ai-overview-hero {
    grid-template-columns: 1fr;
  }
}

.ai-overview-hero__title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--tt-fg-0);
}

.ai-overview-hero__sub {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
  color: var(--tt-fg-0);
  opacity: 0.82;
  max-width: 58ch;
}

.ai-overview-hero__actions {
  margin-top: 4px;
}

.ai-overview-hero__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.ai-overview-ill {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.ai-overview-ill--cta {
  max-width: 200px;
}

.ai-context-panel {
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 20px;
  min-width: 0;
}

body.theme--light .ai-context-panel {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.10);
}

.ai-context-panel__title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tt-fg-0);
}

.ai-context-panel__grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.ai-context-panel__row {
  margin: 0;
  min-width: 0;
}

.ai-context-panel__row--wide {
  grid-column: 1 / -1;
}

.ai-context-panel__row dt {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--tt-muted);
}

.ai-context-panel__row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--tt-fg-0);
  word-break: break-word;
}

.ai-context-panel__val--num {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.ai-context-panel__note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--tt-border);
  font-size: 12px;
  line-height: 1.45;
  color: var(--tt-muted);
}

.ai-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}

@media (max-width: 991px) {
  .ai-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .ai-overview-metrics {
    grid-template-columns: 1fr;
  }
}

.ai-overview-metric {
  padding: 16px 18px;
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  min-width: 0;
}

body.theme--light .ai-overview-metric {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

.ai-overview-metric__val {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--tt-fg-0);
  margin-bottom: 4px;
}

.ai-overview-metric__val--num {
  font-variant-numeric: tabular-nums;
}

.ai-overview-metric__lbl {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--tt-muted);
}

.ai-section-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 40px 0 10px;
  color: var(--tt-fg-0);
}

.ai-section-title--tight {
  margin-top: 0;
}

.ai-section-lead {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tt-muted);
  margin: 0 0 20px;
  max-width: 68ch;
}

.ai-overview-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 12px;
}

@media (max-width: 768px) {
  .ai-overview-bento {
    grid-template-columns: 1fr;
  }
}

.ai-overview-bento__cell {
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.015);
  min-width: 0;
}

.ai-overview-bento__cell--wide {
  grid-column: 1 / -1;
}

.ai-overview-bento__cell--accent {
  border-color: rgba(41, 98, 255, 0.35);
  background: rgba(41, 98, 255, 0.06);
}

body.theme--light .ai-overview-bento__cell {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme--light .ai-overview-bento__cell--accent {
  background: rgba(41, 98, 255, 0.05);
  border-color: rgba(41, 98, 255, 0.28);
}

.ai-overview-bento__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--tt-fg-0);
}

.ai-overview-bento__body {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: var(--tt-muted);
}

.ai-overview-bento__cell--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 42%);
  gap: 16px 20px;
  align-items: center;
}

.ai-overview-bento__cell--wide.ai-overview-bento__cell--split {
  grid-template-columns: minmax(0, 1.05fr) minmax(160px, 38%);
}

.ai-overview-bento__copy {
  min-width: 0;
}

.ai-overview-bento__fig {
  margin: 0;
  min-width: 0;
  justify-self: end;
}

@media (max-width: 768px) {
  .ai-overview-bento__cell--split,
  .ai-overview-bento__cell--wide.ai-overview-bento__cell--split {
    grid-template-columns: 1fr;
  }

  .ai-overview-bento__fig {
    justify-self: stretch;
    max-width: 280px;
    margin-inline: auto;
  }
}

.ai-overview-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 991px) {
  .ai-overview-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .ai-overview-flow {
    grid-template-columns: 1fr;
  }
}

.ai-overview-flow__item {
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  padding: 16px 16px 18px;
  background: rgba(255, 255, 255, 0.012);
  min-width: 0;
  counter-increment: ai-flow;
  position: relative;
}

.ai-overview-flow {
  counter-reset: ai-flow;
}

.ai-overview-flow__item::before {
  content: counter(ai-flow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--tt-accent);
  background: rgba(41, 98, 255, 0.12);
  border: 1px solid rgba(41, 98, 255, 0.28);
}

body.theme--light .ai-overview-flow__item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

.ai-overview-flow__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--tt-fg-0);
  margin-bottom: 6px;
}

.ai-overview-flow__body {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--tt-muted);
}

.ai-overview-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

@media (max-width: 991px) {
  .ai-overview-stack {
    grid-template-columns: 1fr;
  }
}

.ai-overview-stack__col {
  border-top: 2px solid var(--tt-accent);
  padding: 16px 4px 0;
  min-width: 0;
}

.ai-overview-stack__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tt-fg-0);
}

.ai-overview-stack__count {
  font-size: 22px;
  font-weight: 700;
  color: var(--tt-accent);
  line-height: 1;
}

.ai-overview-stack__count--num {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.ai-overview-stack__col p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--tt-muted);
  margin: 0;
}

.ai-overview-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 768px) {
  .ai-overview-prompts {
    grid-template-columns: 1fr;
  }
}

.ai-prompt-card {
  margin: 0;
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.012);
  min-width: 0;
}

.ai-prompt-card--wide {
  grid-column: 1 / -1;
}

body.theme--light .ai-prompt-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

.ai-prompt-card__tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tt-accent);
  background: rgba(41, 98, 255, 0.10);
  border: 1px solid rgba(41, 98, 255, 0.22);
}

.ai-prompt-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  font-style: italic;
  color: var(--tt-fg-0);
  opacity: 0.9;
}

.ai-overview-trust {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 24px 32px;
  margin-top: 40px;
  padding: 24px 26px;
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
}

@media (max-width: 768px) {
  .ai-overview-trust {
    grid-template-columns: 1fr;
  }
}

body.theme--light .ai-overview-trust {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

.ai-overview-trust__copy p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tt-muted);
  margin: 0 0 12px;
}

.ai-overview-trust__copy a {
  color: var(--tt-accent);
}

.ai-overview-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-overview-trust__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tt-fg-0);
}

.ai-overview-trust__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tt-up);
}

.ai-overview-cta-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  background: rgba(41, 98, 255, 0.06);
}

.ai-overview-cta-band__fig {
  margin: 0;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .ai-overview-cta-band {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ai-overview-cta-band__fig {
    justify-self: center;
  }

  .ai-overview-cta-band .ai-page__cta {
    justify-self: center;
  }
}

@media (max-width: 575px) {
  .ai-overview-cta-band__fig {
    display: none;
  }
}

body.theme--light .ai-overview-cta-band {
  background: rgba(41, 98, 255, 0.05);
  border-color: rgba(41, 98, 255, 0.22);
}

.ai-overview-cta-band__copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tt-muted);
}

.ai-page__see-label {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tt-fg-0);
}

.ai-page__see-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.ai-page__see-links li {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ai-page__btn {
    transition: none;
  }

  .ai-page__btn--primary:hover {
    transform: none;
  }
}

/* =============================================================================
 * Round-2 polish: hierarchy, interaction, multilingual readability (2026-07-11)
 * ============================================================================= */

.ai-page .corp-page__body {
  line-height: 1.55;
}

.ai-section-title {
  position: relative;
  padding-inline-start: 14px;
}

.ai-section-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 2px;
  background: var(--tt-accent);
}

.ai-overview-metric,
.ai-overview-bento__cell,
.ai-prompt-card,
.ai-step,
.ai-feature,
.ai-pillar,
.ai-stat,
.ai-cap {
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .ai-overview-metric:hover,
  .ai-overview-bento__cell:hover,
  .ai-prompt-card:hover,
  .ai-step:hover,
  .ai-feature:hover,
  .ai-pillar:hover {
    border-color: rgba(41, 98, 255, 0.35);
    transform: translateY(-1px);
  }
}

body.theme--light .ai-overview-metric:hover,
body.theme--light .ai-overview-bento__cell:hover,
body.theme--light .ai-prompt-card:hover,
body.theme--light .ai-step:hover,
body.theme--light .ai-feature:hover,
body.theme--light .ai-pillar:hover {
  border-color: rgba(41, 98, 255, 0.28);
}

.ai-page__btn:focus-visible {
  outline: 2px solid var(--tt-accent);
  outline-offset: 2px;
}

.ai-page__btn--primary:active {
  transform: translateY(0);
}

.ai-overview-hero__sub,
.ai-section-lead,
.ai-hero__sub,
.ai-pillar__body,
.ai-overview-bento__body,
.ai-overview-flow__body,
.ai-prompt-card__text {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.ai-overview-metrics,
.ai-overview-bento,
.ai-overview-prompts,
.ai-overview-flow,
.ai-pillars,
.ai-steps {
  gap: clamp(10px, 2vw, 16px);
}

.ai-disclaimer {
  border-inline-start: 3px solid var(--tt-accent);
  border-left: none;
}

.ai-strategy__prompt {
  border-inline-start: 3px solid var(--tt-accent);
  border-left: none;
}

.ai-overview-trust__list li {
  padding-inline-start: 18px;
  padding-left: 0;
}

.ai-overview-trust__list li::before {
  inset-inline-start: 0;
  left: auto;
}

/* Arabic: page-scoped RTL without whole-site flip */
html[lang="ar"] .ai-page {
  direction: rtl;
}

html[lang="ar"] .ai-page .ai-step {
  grid-template-columns: 1fr 40px;
}

html[lang="ar"] .ai-page .ai-step__num {
  order: 2;
}

html[lang="ar"] .ai-page .ai-overview-hero {
  direction: rtl;
}

html[lang="ar"] .ai-page .ai-context-panel__grid {
  text-align: start;
}

html[lang="ar"] .ai-page .ai-page__see-links {
  justify-content: flex-start;
}

@media (max-width: 575px) {
  .ai-overview-hero__title,
  .ai-hero__title {
    font-size: 20px;
    line-height: 1.25;
  }

  .ai-overview-hero__sub,
  .ai-hero__sub,
  .ai-section-lead {
    font-size: 14px;
    line-height: 1.6;
  }
}
