.aot-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.aot-hero {
  padding: 5.5rem 0 2.5rem;
  text-align: center;
}

.aot-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.aot-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.aot-hero h1 {
  margin: 1.1rem auto 1.25rem;
  max-width: 900px;
  font-size: clamp(2.7rem, 7vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: #111827;
  text-wrap: balance;
}

.aot-lead {
  max-width: 760px;
  margin: 0 auto;
  color: #4b5563;
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  line-height: 1.65;
}

.aot-lead code,
.aot-card code,
.aot-preview-note code,
.aot-install-line code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  color: #4c1d95;
  background: #f5f3ff;
  padding: 0.08em 0.28em;
  border-radius: 0.25rem;
}

.aot-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 1rem;
}

.aot-hero-note {
  margin-top: 0.85rem;
  color: #6b7280;
  font-size: 0.92rem;
}

.aot-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 2.5rem 0 4.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #ffffff;
  overflow: hidden;
}

.aot-metric {
  padding: 1.6rem 1.25rem;
  text-align: center;
  border-right: 1px solid #e5e7eb;
}

.aot-metric:last-child {
  border-right: 0;
}

.aot-metric strong {
  display: block;
  color: #111827;
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}

.aot-metric span {
  display: block;
  color: #6b7280;
  font-size: 0.86rem;
  line-height: 1.4;
}

.aot-section {
  margin: 5rem 0;
}

.aot-section-label {
  color: #7c3aed;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.aot-section h2 {
  color: #111827;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.aot-grid {
  display: grid;
  gap: 1.25rem;
}

.aot-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.aot-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.aot-list-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.aot-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.6rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.aot-card-accent {
  border-color: #c4b5fd;
  box-shadow: 0 12px 25px -18px rgba(124, 58, 237, 0.55);
}

.aot-card h3 {
  color: #111827;
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.aot-card p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.aot-card ul,
.aot-limit-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aot-card li,
.aot-limit-list li {
  padding-left: 1.2rem;
  position: relative;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 0.4rem;
  font-size: 0.94rem;
}

.aot-card li::before,
.aot-limit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7c3aed;
  font-weight: 800;
}

.aot-example {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  background: #ffffff;
}

.aot-example-copy p {
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.aot-example-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  align-items: start;
}

.aot-example-images figure {
  margin: 0;
}

.aot-example-images img {
  width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  box-shadow: 0 12px 25px -20px rgba(0, 0, 0, 0.35);
  display: block;
}

.aot-example-images figcaption {
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 0.45rem;
}

.aot-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-top: 1.25rem;
}

.aot-link-row a,
.aot-center-link a {
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
}

.aot-link-row a:hover,
.aot-center-link a:hover {
  text-decoration: underline;
}

.aot-dynamic {
  padding: 3rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  color: #111827;
}

.aot-dynamic .section-header h2,
.aot-dynamic h2 {
  color: #111827;
}

.aot-dynamic .section-header p {
  color: #4b5563;
}

.aot-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 2rem 0 1.5rem;
}

.aot-step {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
}

.aot-step span {
  display: block;
  color: #7c3aed;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.aot-step code {
  display: block;
  color: #111827;
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.aot-step small {
  color: #6b7280;
  font-size: 0.8rem;
}

.aot-dynamic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.aot-code-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.aot-dynamic .aot-code-card {
  background: #1e293b;
  border-color: #334155;
}

.aot-code-title {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #334155;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aot-dynamic .aot-code-title {
  border-color: #374151;
  color: #9ca3af;
}

.aot-code-card pre,
.aot-code-card pre[class*="language-"],
.aot-terminal {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  background: transparent;
  text-shadow: none;
  white-space: pre;
}

.aot-code-card pre {
  color: #f8fafc;
}

.aot-code-card pre code,
.aot-code-card pre code[class*="language-"] {
  display: block;
  background: transparent;
  margin: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
  text-indent: 0;
}

.aot-terminal {
  background: #111827;
  border-radius: 0.75rem;
  color: #e5e7eb;
}

.aot-center-link {
  text-align: center;
  margin-top: 1.5rem;
}

.aot-dynamic .aot-center-link a {
  color: #7c3aed;
}

.aot-pipeline {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 2.2rem 0 2.5rem;
}

.aot-pipe-node {
  min-width: 150px;
  flex: 1;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  color: #111827;
  font-weight: 700;
  text-align: center;
  font-size: 0.9rem;
}

.aot-pipe-node small {
  display: block;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.76rem;
  margin-top: 0.3rem;
}

.aot-pipe-highlight {
  border-color: #c4b5fd;
  background: #f5f3ff;
}

.aot-pipe-arrow {
  display: flex;
  align-items: center;
  color: #9ca3af;
  font-size: 1.2rem;
}

.aot-evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.aot-evidence-copy p {
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aot-evidence-table {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #ffffff;
}

.aot-evidence-table th,
.aot-evidence-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
}

.aot-evidence-table th {
  color: #6b7280;
  font-weight: 400;
  text-align: left;
}

.aot-evidence-table td {
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.aot-evidence-table tr:last-child th,
.aot-evidence-table tr:last-child td {
  border-bottom: 0;
}

.aot-preview-limits h2 {
  max-width: 720px;
}

.aot-limit-list {
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #ffffff;
}

.aot-limit-list h3 {
  margin-bottom: 0.85rem;
  color: #111827;
}

.aot-limit-not li::before {
  content: "—";
  color: #9ca3af;
}

.aot-preview-note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  border-radius: 0.35rem;
  line-height: 1.6;
  font-size: 0.92rem;
}

.aot-final-cta {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}

.aot-final-cta p {
  color: #4b5563;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.aot-install-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.aot-install-line code {
  display: inline-block;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.nav-aot {
  color: #6d28d9 !important;
  font-weight: 700 !important;
}

.nav-preview {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .aot-hero {
    padding-top: 3.5rem;
  }

  .aot-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .aot-metric:nth-child(2) {
    border-right: 0;
  }

  .aot-metric:nth-child(1),
  .aot-metric:nth-child(2) {
    border-bottom: 1px solid #e5e7eb;
  }

  .aot-grid-3,
  .aot-grid-2,
  .aot-example,
  .aot-evidence,
  .aot-dynamic-grid {
    grid-template-columns: 1fr;
  }

  .aot-example {
    gap: 2rem;
    padding: 1.5rem;
  }

  .aot-dynamic {
    padding: 1.5rem;
  }

  .aot-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .aot-example-images {
    grid-template-columns: 1fr;
  }

  .aot-pipe-arrow {
    transform: rotate(90deg);
  }

  .aot-metrics {
    grid-template-columns: 1fr;
  }

  .aot-metric {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .aot-metric:last-child {
    border-bottom: 0;
  }
}


.aot-how-card {
  padding-top: 1.6rem;
}

.aot-how-card small {
  display: block;
  margin-top: 0.75rem;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.5;
}

.aot-fit-card {
  display: flex;
  flex-direction: column;
}

.aot-fit-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.9rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.aot-fit-exhaustive .aot-fit-badge {
  background: #ecfdf5;
  color: #047857;
}

.aot-fit-not .aot-fit-badge {
  background: #f1f5f9;
  color: #475569;
}

.aot-fit-card p {
  margin: auto 0 0;
  padding-top: 0.9rem;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.6;
}

.aot-code-note {
  margin: 1rem 0 0;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.6;
}

.aot-code-note code {
  padding: 0.08em 0.28em;
  border-radius: 0.25rem;
  background: #f5f3ff;
  color: #4c1d95;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

.aot-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.8rem;
  font-weight: 800;
}

.aot-fact-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.aot-fact-list li {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

.aot-fact-list strong {
  color: #111827;
}

.aot-callout {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid #ddd6fe;
  border-left: 3px solid #7c3aed;
  border-radius: 0.55rem;
  background: #faf5ff;
  color: #4c1d95;
  line-height: 1.6;
  font-size: 0.95rem;
}

.aot-callout strong {
  color: #4c1d95;
}

.aot-dynamic .aot-callout {
  border-color: #ddd6fe;
  border-left-color: #7c3aed;
  background: #faf5ff;
  color: #4c1d95;
}

.aot-dynamic .aot-callout strong {
  color: #4c1d95;
}

.aot-glossary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0;
}

.aot-glossary > div {
  padding: 1rem 1.1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
}

.aot-glossary dt {
  color: #111827;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.aot-glossary dd {
  margin: 0;
  color: #4b5563;
  line-height: 1.55;
  font-size: 0.92rem;
}

.aot-glossary code {
  font-size: 0.86em;
}

@media (max-width: 900px) {
  .aot-glossary {
    grid-template-columns: 1fr;
  }
}


.aot-code-card pre,
.aot-code-card pre[class*="language-"],
.aot-code-card code[class*="language-"] {
  text-align: left;
  text-indent: 0;
}

.aot-data-list {
  padding: 0.65rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
}

.aot-data-row {
  display: grid;
  grid-template-columns: 6.8rem 1fr;
  gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid #334155;
}

.aot-data-row:last-child {
  border-bottom: 0;
}

.aot-data-row code {
  color: #c4b5fd;
  background: transparent;
  padding: 0;
}

.aot-data-row span {
  color: #f8fafc;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .aot-data-row {
    grid-template-columns: 5.5rem 1fr;
    gap: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Invoice training coverage, outputs, and edge benchmark
   -------------------------------------------------------------------------- */

.aot-plan-note {
  margin-top: 1.5rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid #ddd6fe;
  border-left: 4px solid #7c3aed;
  border-radius: 0.65rem;
  background: #f5f3ff;
  color: #4c1d95;
  line-height: 1.65;
  font-size: 0.94rem;
}

.aot-matrix-wrap,
.aot-benchmark-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #ffffff;
  scrollbar-width: thin;
}

.aot-coverage-table,
.aot-benchmark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.aot-coverage-table {
  min-width: 820px;
}

.aot-coverage-table th,
.aot-coverage-table td,
.aot-benchmark-table th,
.aot-benchmark-table td {
  padding: 0.68rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  white-space: nowrap;
}

.aot-coverage-table thead th {
  background: #faf5ff;
  color: #6d28d9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.aot-coverage-table tbody th,
.aot-benchmark-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #ffffff;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
}

.aot-coverage-table tbody td {
  color: #7c3aed;
  font-size: 0.82rem;
  font-weight: 800;
}

.aot-matrix-legend {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.75rem 1rem 0;
  background: #ffffff;
  color: #64748b;
  font-size: 0.78rem;
}

.aot-page-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  padding: 0.18rem 0.35rem;
  border-radius: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.aot-one-page {
  background: #ecfdf5;
  color: #047857;
}

.aot-two-page {
  background: #f3e8ff;
  color: #7c3aed;
}

.aot-coverage-table tbody tr:last-child th,
.aot-coverage-table tbody tr:last-child td,
.aot-benchmark-table tbody tr:last-child th,
.aot-benchmark-table tbody tr:last-child td {
  border-bottom: 0;
}

.aot-coverage-table caption {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.78rem;
  text-align: left;
}

.aot-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.aot-stat,
.aot-benchmark-kpi {
  padding: 1.05rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  background: #ffffff;
  text-align: center;
}

.aot-stat strong,
.aot-benchmark-kpi strong {
  display: block;
  color: #111827;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 0.3rem;
}

.aot-stat span,
.aot-benchmark-kpi span {
  display: block;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.35;
}

.aot-output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.aot-output-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 12px 30px -24px rgba(15, 23, 42, 0.4);
}

.aot-output-single {
  grid-column: span 1;
}

.aot-output-pair {
  grid-column: span 2;
}

.aot-output-badge {
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aot-output-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  background: #ffffff;
}

.aot-output-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.aot-output-page-label {
  display: block;
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

.aot-output-card figcaption {
  margin-top: auto;
  min-height: 5.5rem;
  padding-top: 0.9rem;
  color: #6b7280;
  font-size: 0.84rem;
  line-height: 1.5;
}

.aot-output-card figcaption strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #111827;
  font-size: 0.96rem;
}

.aot-benchmark-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.aot-benchmark-kpi {
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  border-color: #ddd6fe;
}

.aot-benchmark-table-wrap {
  margin-bottom: 1.2rem;
}

.aot-benchmark-table {
  min-width: 760px;
}

.aot-benchmark-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.aot-benchmark-table tbody td {
  color: #4c1d95;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

.aot-cold-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.aot-cold-grid .aot-card p {
  margin-bottom: 0;
}

@media (max-width: 1050px) {
  .aot-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .aot-output-grid {
    grid-template-columns: 1fr;
  }

  .aot-output-single,
  .aot-output-pair {
    grid-column: auto;
  }

  .aot-output-single {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .aot-output-card figcaption {
    min-height: 0;
    margin-top: 0.9rem;
    padding-top: 0;
  }

  .aot-output-pair-grid {
    gap: 0.7rem;
  }
}

@media (max-width: 760px) {
  .aot-benchmark-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .aot-cold-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .aot-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aot-output-pair-grid {
    grid-template-columns: 1fr;
  }

  .aot-output-pair-grid img {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   API / AOT comparison slider
   -------------------------------------------------------------------------- */

.aot-compare {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.aot-diff {
  --aot-split: 50%;
  position: relative;
  width: min(100%, 760px, calc((100vh - 220px) * 0.70655));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 18px 42px -30px rgba(15, 23, 42, 0.45);
}

.aot-diff-api,
.aot-diff-aot-layer img {
  display: block;
  width: 100%;
  height: auto;
}

.aot-diff-aot-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--aot-split));
  pointer-events: none;
}

.aot-diff-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--aot-split);
  z-index: 2;
  width: 2px;
  background: #7c3aed;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  transform: translateX(-1px);
}

.aot-diff-divider::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 8px 20px -8px rgba(76, 29, 149, 0.8);
  transform: translate(-50%, -50%);
}

.aot-diff-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.aot-diff-label {
  position: absolute;
  top: 0.85rem;
  z-index: 4;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.82);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.aot-diff-label-left {
  left: 0.85rem;
}

.aot-diff-label-right {
  right: 0.85rem;
}

.aot-diff:has(.aot-diff-range:focus-visible) {
  outline: 3px solid rgba(124, 58, 237, 0.35);
  outline-offset: 3px;
}

.aot-compare-note {
  margin: 0.85rem auto 0;
  max-width: 760px;
  color: #6b7280;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Visible FAQ
   -------------------------------------------------------------------------- */

.aot-faq-list {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid #e5e7eb;
}

.aot-faq-list details {
  border-bottom: 1px solid #e5e7eb;
}

.aot-faq-list summary {
  position: relative;
  padding: 1.1rem 2.4rem 1.1rem 0;
  color: #111827;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.aot-faq-list summary::-webkit-details-marker {
  display: none;
}

.aot-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  color: #7c3aed;
  font-size: 1.35rem;
  font-weight: 700;
  transform: translateY(-50%);
}

.aot-faq-list details[open] summary::after {
  content: "−";
}

.aot-faq-list details p {
  margin: 0;
  padding: 0 2rem 1.2rem 0;
  color: #4b5563;
  font-size: 0.94rem;
  line-height: 1.65;
}

.aot-faq-list details code {
  padding: 0.08em 0.28em;
  border-radius: 0.25rem;
  background: #f5f3ff;
  color: #4c1d95;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

.aot-faq-list summary:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.35);
  outline-offset: 3px;
  border-radius: 0.3rem;
}

@media (max-width: 760px) {
  .aot-evidence {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .aot-evidence-table th,
  .aot-evidence-table td {
    padding: 0.68rem 0.75rem;
    font-size: 0.82rem;
  }
}
