/* AI partner detail page (Anthropic, standalone_chrome=True).
   Reuses the .pd-* primitives (rail, eyebrow, headings, buttons, chips, form) from
   partnerdetail.css for visual consistency with the rest of the site - only genuinely
   new shapes (diagram, feature grid, service list + mockups, steps, independence
   cards, FAQ accordion, standalone nav/footer) get their own .ai- rules here. Colors
   are the same --pd-* custom properties defined in partnerdetail.css:root. */

.ai-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Spline Sans", sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--pd-ink);
  text-decoration: none;
}
.ai-btn-ghost:hover { color: var(--pd-red); }
.ai-btn-ghost .pd-btn-ic { width: 15px; height: 15px; }

/* ---------- hero ---------- */
.ai-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}
/* ai-nav is position:sticky (in normal flow), not fixed, so the standalone hero
   doesn't need partnerdetail.css's .pd-hero clearance for a fixed site navbar -
   that padding was leaving a large dead gap below the hero content. */
.ai-standalone .pd-hero { padding-top: 64px; }
.ai-hero-right { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ai-badgecard {
  width: 100%;
  max-width: 300px;
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 15px;
  padding: 28px 24px 26px;
  text-align: center;
  box-shadow: 0 26px 60px -34px rgba(16, 21, 31, 0.28);
}
.ai-badgecard-eyebrow {
  display: block;
  font-family: var(--pd-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pd-red);
  margin-bottom: 30px;
}
.ai-badge-diamond {
  /* Rotating a square by 45deg extends its visual footprint beyond its own box
     (diagonal = side * sqrt(2)), so the surrounding margins need to be bigger
     than the box itself looks like it needs, or the diamond's points crowd the
     text above/below. */
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border: 1.5px solid var(--pd-gold);
  background: linear-gradient(135deg, #FBF4E3 0%, #F7ECD2 100%);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-badge-diamond-inner {
  transform: rotate(-45deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ai-badge-diamond-inner b {
  font-family: Satoshi, sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--pd-ink);
}
.ai-badge-diamond-inner em {
  font-style: normal;
  font-family: var(--pd-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #A9822F;
}
.ai-badgecard-title { font-family: Satoshi, sans-serif; font-size: 17px; font-weight: 700; color: var(--pd-ink); margin: 0 0 4px; }
.ai-badgecard-sub { font-size: 14px; color: var(--pd-dim); margin: 0; }

/* ---------- hero: production-engine card (alternative to the partner diamond) ---------- */
.ai-enginecard {
  width: 100%;
  max-width: 340px;
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 15px;
  padding: 22px;
  box-shadow: 0 26px 60px -34px rgba(16, 21, 31, 0.28);
}
.ai-enginecard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.ai-enginecard-eyebrow { font-family: var(--pd-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--pd-red); text-transform: uppercase; }
.ai-enginecard-partners { font-family: var(--pd-mono); font-size: 11px; color: var(--pd-dim); text-transform: uppercase; white-space: nowrap; }
.ai-enginecard-stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.ai-enginestage { border: 1px solid var(--pd-line); border-radius: 8px; padding: 10px 12px; background: #FAFBFD; height: 92px; box-sizing: border-box; }
.ai-enginestage-code { display: block; font-family: var(--pd-mono); font-size: 10.5px; font-weight: 700; color: var(--pd-dim); text-transform: uppercase; margin-bottom: 4px; }
.ai-enginestage-title { display: block; font-size: 12.5px; font-weight: 600; color: var(--pd-ink); }
.ai-enginestage-hi { border-color: var(--pd-red); background: var(--pd-soft); }
.ai-enginestage-hi .ai-enginestage-code { color: var(--pd-red); }
.ai-enginecard-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pd-soft); border: 1px solid var(--pd-soft-bd); color: var(--pd-red);
  border-radius: 8px; padding: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.ai-enginecard-status-ic { width: 14px; height: 14px; display: inline-flex; }
.ai-enginecard-status-ic svg { width: 100%; height: 100%; }
.ai-enginecard-caption { text-align: center; font-size: 14.5px; font-weight: 600; color: var(--pd-ink); margin-top: 16px; }

/* ---------- system diagrams ---------- */
.ai-diagram-section .pd-inner { padding-top: 4px; }
.ai-diagram-brief-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.ai-diagram-label {
  font-family: var(--pd-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9AA0A6;
}
.ai-diagram-box {
  background: var(--pd-dark-card);
  border: 1px solid var(--pd-dark-line);
  border-radius: 14px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.ai-diagram-node {
  background: #17171A;
  border: 1px solid var(--pd-dark-line);
  border-radius: 10px;
  padding: 14px 22px;
  text-align: center;
  min-width: 180px;
}
.ai-diagram-node b { display: block; font-family: Satoshi, sans-serif; font-size: 15px; font-weight: 700; color: #FFFFFF; }
.ai-diagram-node em { display: block; font-style: normal; font-size: 12.5px; color: #8A9099; margin-top: 3px; }
.ai-diagram-node-center {
  border: 1.5px solid var(--pd-red);
  background: rgba(224, 27, 27, 0.08);
  box-shadow: 0 0 0 6px rgba(224, 27, 27, 0.06);
}
.ai-diagram-node-center b { color: var(--pd-red); font-size: 17.5px; }
.ai-diagram-node-hi {
  border: 1.5px solid var(--pd-red);
  background: rgba(224, 27, 27, 0.08);
}
.ai-diagram-node-hi b { color: var(--pd-red); }
.ai-diagram-node-bottom { width: 100%; max-width: 720px; }
.ai-diagram-connector { width: 1px; height: 26px; background: var(--pd-dark-line); }
.ai-diagram-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}

/* ---------- feature grids (differentiators / commitments) ---------- */
.ai-featuregrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}
/* Dark (commitments) variant uses a 6-unit grid so "wide" cards (span 3, 2-per-row)
   and normal cards (span 2, 3-per-row) can share the same layout - matching the
   source design's asymmetric bento arrangement (first two cards wide, rest normal),
   not a uniform grid. */
.pd-dark .ai-featuregrid { grid-template-columns: repeat(6, 1fr); }
.pd-dark .ai-featurecard { grid-column: span 2; }
.pd-dark .ai-featurecard-wide { grid-column: span 3; }
.ai-featurecard {
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  padding: 22px;
  background: #FFFFFF;
}
.pd-dark .ai-featurecard { background: var(--pd-dark-card); border-color: var(--pd-dark-line); }
.ai-featurecard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ai-featurecard-marker { display: inline-flex; align-items: center; gap: 10px; }
.ai-featurecard-number { font-family: Satoshi, sans-serif; font-size: 16.5px; font-weight: 800; color: var(--pd-red); }
.ai-featurecard-mark { width: 9px; height: 9px; background: var(--pd-red); border-radius: 2px; display: inline-block; }
.ai-featurecard-ic {
  width: 26px; height: 26px; flex: none; color: var(--pd-red);
  background: var(--pd-soft); border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.pd-dark .ai-featurecard-ic { background: var(--pd-dark-line); }
.ai-featurecard-ic svg { width: 15px; height: 15px; }
.ai-featurecard-tag { font-size: 11.5px; padding: 3px 8px; }
.ai-featurecard h4 { font-family: Satoshi, sans-serif; font-size: 17.5px; font-weight: 700; color: var(--pd-ink); margin: 0 0 8px; }
.pd-dark .ai-featurecard h4 { color: #FFFFFF; }
.ai-featurecard p { font-size: 15px; line-height: 1.55; color: var(--pd-body); margin: 0; }
.pd-dark .ai-featurecard p { color: #9BA1A9; }

/* ---------- feature grid: trailing "ownership chain" strip ---------- */
.ai-chain { margin-top: 28px; border-top: 1px solid var(--pd-dark-line); padding-top: 24px; }
.pd-section:not(.pd-dark) .ai-chain { border-top-color: var(--pd-line); }
.ai-chain-label {
  display: block; font-family: var(--pd-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--pd-red); margin-bottom: 14px;
}
.ai-chain-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-chain-pill {
  font-family: var(--pd-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: #9BA1A9; background: #17171A; border: 1px solid var(--pd-dark-line);
  border-radius: 999px; padding: 8px 16px;
}
.ai-chain-pill-hi { background: var(--pd-red); border-color: var(--pd-red); color: #FFFFFF; }
.ai-chain-caption { font-size: 13.5px; color: #9BA1A9; margin: 16px 0 0; max-width: 72ch; }

/* ---------- services list ---------- */
.ai-services-list { margin-top: 48px; display: flex; flex-direction: column; gap: 56px; }
.ai-service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai-service-row-b { direction: rtl; }
.ai-service-row-b > * { direction: ltr; }
.ai-service-index { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.ai-service-index b { font-family: Satoshi, sans-serif; font-size: 24px; font-weight: 800; color: var(--pd-red); }
.ai-service-index em { font-style: normal; font-family: var(--pd-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pd-dim); }
.ai-service-text h3 { font-family: Satoshi, sans-serif; font-size: 24px; font-weight: 800; color: var(--pd-ink); margin: 0 0 10px; }
.ai-service-receive { font-size: 15px; color: var(--pd-body); margin: 12px 0; }
.ai-service-receive strong { color: var(--pd-ink); }

.ai-service-mockup {
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 26px 50px -36px rgba(16, 21, 31, 0.3);
}
.ai-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--pd-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pd-dim);
  margin-bottom: 16px;
}
.ai-mockup-tag { font-style: normal; font-size: 11.5px; padding: 2px 8px; border-radius: 5px; background: var(--pd-soft); color: var(--pd-red); }
.ai-mockup-alert {
  background: var(--pd-soft);
  border: 1px solid var(--pd-soft-bd);
  color: var(--pd-red);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.ai-mockup-chips { display: flex; flex-direction: column; gap: 8px; }
.ai-chip { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--pd-ink); border: 1px solid var(--pd-line); border-radius: 8px; padding: 9px 12px; }
.ai-chip-ok { font-style: normal; font-size: 11.5px; font-weight: 700; color: #16A34A; background: #EAFBF1; border-radius: 5px; padding: 3px 7px; }
.ai-mockup-row, .ai-mockup-search {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--pd-line); border-radius: 8px; padding: 10px 12px;
  font-size: 14px; color: var(--pd-ink); margin-bottom: 10px;
}
.ai-mockup-ic { width: 15px; height: 15px; color: var(--pd-dim); flex: none; }
.ai-mockup-ic svg { width: 100%; height: 100%; }
.ai-mockup-sync { margin-left: auto; font-style: normal; font-size: 11.5px; color: #16A34A; }
.ai-mockup-flow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-mockup-node {
  flex: 1; text-align: center; border: 1px solid var(--pd-line); border-radius: 8px;
  padding: 12px 8px; font-size: 13.5px; font-weight: 600; color: var(--pd-ink);
}
.ai-mockup-node em { display: block; font-style: normal; font-size: 12px; color: var(--pd-dim); margin-top: 4px; }
.ai-mockup-node-ok { border-color: #BFE9CE; background: #EAFBF1; color: #16A34A; }
.ai-mockup-node-center {
  width: 40px; height: 40px; border-radius: 50%; background: var(--pd-red); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.ai-mockup-node-center svg { width: 18px; height: 18px; }
.ai-mockup-barline, .ai-mockup-bar-labeled .ai-barline { background: #EEF0F4; border-radius: 999px; height: 8px; overflow: hidden; flex: 1; }
.ai-bar { display: block; height: 100%; width: var(--w, 50%); border-radius: 999px; }
.ai-bar-red { background: var(--pd-red); }
.ai-bar-green { background: #16A34A; }
.ai-bar-dim { background: #C6CBD4; }
.ai-mockup-stats { display: flex; gap: 14px; margin-top: 14px; }
.ai-mockup-stats div { flex: 1; text-align: center; }
.ai-mockup-stats b { display: block; font-family: Satoshi, sans-serif; font-size: 18.5px; font-weight: 800; color: var(--pd-ink); }
.ai-mockup-stats em { display: block; font-style: normal; font-size: 12px; color: var(--pd-dim); margin-top: 2px; }
.ai-mockup-bar-labeled { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--pd-ink); margin-bottom: 10px; }
.ai-mockup-bar-labeled > span:first-child { width: 70px; flex: none; font-weight: 600; }
.ai-mockup-bar-labeled > em { flex: none; font-style: normal; font-size: 12.5px; color: var(--pd-dim); }
.ai-mockup-gauge-row { display: flex; justify-content: center; margin-top: 6px; }
.ai-mockup-gauge {
  width: 84px; height: 84px; border-radius: 50%; border: 6px solid #EAFBF1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: Satoshi, sans-serif; font-size: 17.5px; font-weight: 800; color: #16A34A;
}
.ai-mockup-gauge em { font-style: normal; font-family: "Spline Sans", sans-serif; font-size: 9.5px; font-weight: 600; color: var(--pd-dim); margin-top: 2px; }
.ai-mockup-gauge-big {
  text-align: center; font-family: Satoshi, sans-serif; font-size: 48px; font-weight: 800;
  color: var(--pd-ink); margin-bottom: 12px;
}
.ai-mockup-mini-charts { display: flex; gap: 14px; }
.ai-mockup-mini-charts > div { flex: 1; text-align: center; }
.ai-mockup-chart {
  display: block; height: 34px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, var(--pd-red) 0 4px, transparent 4px 8px);
  opacity: 0.55; margin-bottom: 8px;
}
.ai-mockup-mini-charts em { font-style: normal; font-size: 12px; color: var(--pd-dim); }

/* ---------- compact services grid (3-column, per-item mini visual) ---------- */
/* Waterfall columns of uneven height, matching the source design - but which column
   each card sits in is explicit authored data (AiServiceGridItem.column), not
   computed. Real rendered card height depends on the exact copy text, so neither a
   fixed formula (round-robin) nor a runtime algorithm (JS measuring actual heights)
   can reliably reproduce a *specific* reference layout once the copy differs at all
   - same reasoning as the "wide" flag on the commitments bento grid. */
.ai-servicegrid { display: flex; align-items: flex-start; gap: 20px; margin-top: 40px; }
.ai-servicegrid-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ai-servicegrid-card {
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.ai-servicegrid-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ai-servicegrid-number { font-family: Satoshi, sans-serif; font-size: 20px; font-weight: 800; color: var(--pd-red); }
.ai-servicegrid-card h4 { font-family: Satoshi, sans-serif; font-size: 16.5px; font-weight: 700; color: var(--pd-ink); margin: 0 0 8px; }

.ai-servicegrid-flow, .ai-servicegrid-ranked {
  display: flex; align-items: center; gap: 8px;
  background: #FAFBFD; border: 1px solid var(--pd-line); border-radius: 8px;
  padding: 10px 12px; margin: 14px 0;
}
.ai-servicegrid-flow-ic { width: 18px; height: 18px; color: var(--pd-red); flex: none; }
.ai-servicegrid-flow-ic svg { width: 100%; height: 100%; }
.ai-flow-stage { font-size: 11px; font-weight: 600; color: var(--pd-dim); white-space: nowrap; }
.ai-flow-stage-hi { color: var(--pd-red); }
.ai-flow-arrow { width: 11px; height: 11px; color: #C6CBD4; flex: none; }
.ai-flow-arrow svg { width: 100%; height: 100%; }
.ai-servicegrid-ranked { align-items: flex-start; flex-direction: row; }
.ai-ranked-list { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ai-ranked-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.ai-ranked-row span { color: var(--pd-ink); }
.ai-ranked-row b { color: var(--pd-red); font-weight: 700; white-space: nowrap; }
.ai-servicegrid-icon-solo {
  width: 30px; height: 30px; color: var(--pd-red); background: var(--pd-soft);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  margin: 14px 0; flex: none;
}
.ai-servicegrid-icon-solo svg { width: 16px; height: 16px; }

/* ---------- engagement steps ---------- */
.ai-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.ai-step {
  background: var(--pd-dark-card);
  border: 1px solid var(--pd-dark-line);
  border-radius: 12px;
  padding: 24px;
}
.ai-steps-light .ai-step { background: #FFFFFF; border-color: var(--pd-line); }
.ai-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ai-step-number { font-family: Satoshi, sans-serif; font-size: 24px; font-weight: 800; color: var(--pd-red); }
.ai-step h4 { font-family: Satoshi, sans-serif; font-size: 18px; font-weight: 700; color: #FFFFFF; margin: 0 0 8px; }
.ai-steps-light .ai-step h4 { color: var(--pd-ink); }
.ai-steps-light .ai-step p { color: var(--pd-body); }
.ai-step-checkpoints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-step-checkpoint {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--pd-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--pd-red); background: var(--pd-soft); border: 1px solid var(--pd-soft-bd);
  border-radius: 6px; padding: 6px 10px;
}
.ai-step-checkpoint svg { width: 12px; height: 12px; }
.ai-step-output { font-size: 14px; color: #9BA1A9; margin-top: 12px; }
.ai-step-output strong { color: #FFFFFF; }
.ai-steps-light .ai-step-output { color: var(--pd-body); }
.ai-steps-light .ai-step-output strong { color: var(--pd-ink); }

/* ---------- IP independence ---------- */
.ai-independence-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 36px; }
.ai-independence-card {
  border: 1px solid var(--pd-line); border-radius: 12px; padding: 18px; background: #FFFFFF;
}
.ai-independence-ic { width: 20px; height: 20px; color: var(--pd-red); display: inline-flex; margin-bottom: 14px; }
.ai-independence-ic svg { width: 100%; height: 100%; }
.ai-independence-card h5 { font-family: Satoshi, sans-serif; font-size: 15px; font-weight: 700; color: var(--pd-ink); margin: 0 0 6px; }
.ai-independence-card p { font-size: 13.5px; line-height: 1.5; color: var(--pd-dim); margin: 0; }
.ai-independence-card-hi { background: var(--pd-red); border-color: var(--pd-red); }
.ai-independence-card-hi .ai-independence-ic { color: #FFFFFF; }
.ai-independence-card-hi h5, .ai-independence-card-hi p { color: #FFFFFF; }
.ai-independence-card-hi p { opacity: 0.85; }

/* ---------- FAQ accordion ---------- */
.ai-faq-list { margin-top: 36px; border-top: 1px solid var(--pd-line); }
.ai-faq-item { border-bottom: 1px solid var(--pd-line); }
.ai-faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; text-align: left; cursor: pointer;
  padding: 20px 4px; font-family: Satoshi, sans-serif; font-size: 17px; font-weight: 600; color: var(--pd-ink);
}
.ai-faq-item-open .ai-faq-question { color: var(--pd-red); }
.ai-faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.ai-faq-icon::before, .ai-faq-icon::after {
  content: ""; position: absolute; background: currentColor; color: var(--pd-ink);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.ai-faq-icon::before { width: 14px; height: 2px; }
.ai-faq-icon::after { width: 2px; height: 14px; transition: transform 0.15s ease; }
.ai-faq-item-open .ai-faq-icon::before, .ai-faq-item-open .ai-faq-icon::after { color: var(--pd-red); }
.ai-faq-item-open .ai-faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.ai-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; }
.ai-faq-item-open .ai-faq-answer { max-height: 200px; }
.ai-faq-answer p { font-size: 15px; line-height: 1.6; color: var(--pd-body); margin: 0 0 20px; max-width: 68ch; }

/* ---------- standalone nav ---------- */
/* Both ai-nav and ai-footer live outside .pd-section (which is the only place this
   page declares a base font-family), so without their own declaration here every
   descendant falls through to the browser's true default (Times) - which is exactly
   what was happening before this rule existed. */
.ai-nav, .ai-footer { font-family: "Spline Sans", sans-serif; }
.ai-nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--pd-line); }
.ai-nav-inner { max-width: 1360px; margin: 0 auto; padding: 18px 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ai-nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.ai-nav-logo-svg { display: block; height: 34px; width: auto; }
.ai-nav-links { display: flex; align-items: center; gap: 30px; }
.ai-nav-links a { font-size: 15.5px; font-weight: 500; color: var(--pd-body); text-decoration: none; }
.ai-nav-links a:hover { color: var(--pd-ink); }
.ai-nav-cta {
  background: var(--pd-red); color: #FFFFFF; font-size: 15px; font-weight: 700;
  padding: 11px 20px; border-radius: 8px; text-decoration: none; white-space: nowrap;
}
.ai-nav-cta:hover { background: #C81616; }

/* ---------- standalone footer ---------- */
.ai-footer { background: #FAFBFD; border-top: 1px solid var(--pd-line); padding: 56px 64px 0; }
.ai-footer-inner { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-bottom: 40px; }
.ai-footer-brand .ai-nav-logo-svg { height: 36px; }
.ai-footer-brand p { font-size: 14.5px; color: var(--pd-dim); line-height: 1.6; margin-top: 14px; max-width: 34ch; }
.ai-footer-col h4 { font-family: var(--pd-mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pd-ink); margin: 0 0 14px; }
.ai-footer-col { display: flex; flex-direction: column; gap: 10px; }
.ai-footer-col a { font-size: 14.5px; color: var(--pd-dim); text-decoration: none; }
.ai-footer-col a:hover { color: var(--pd-red); }
.ai-footer-bottom {
  max-width: 1360px; margin: 0 auto; border-top: 1px solid var(--pd-line);
  padding: 20px 0; display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--pd-dim);
}
.ai-footer-bottom a { color: var(--pd-dim); text-decoration: none; }
.ai-footer-bottom a:hover { color: var(--pd-red); }
.ai-footer-locations { display: flex; gap: 22px; flex-wrap: wrap; }
.ai-footer-locations span { display: inline-flex; align-items: center; gap: 6px; }
.ai-footer-locations svg { width: 13px; height: 13px; color: var(--pd-red); flex: none; }

/* ---------- shared .pd- text, bumped one size up (Anthropic page only) ----------
   This bump was requested specifically for the Anthropic page. These classes live
   in partnerdetail.css and are shared with Databricks AND with OpenAI (both also
   use the .pd- primitives), so the bump is scoped under body.ai-page-anthropic
   (set from page.slug in partner_page.html) rather than body.ai-standalone, which
   would silently also enlarge OpenAI's text to a size never asked for there - a
   real bug this page had until fixed here. Editing the source in partnerdetail.css
   directly would also resize Databricks' text, which is why this stays a scoped
   override rather than a source edit. */
body.ai-page-anthropic .pd-rail-text { font-size: 12.5px; }
body.ai-page-anthropic .pd-eyebrow { font-size: 13.5px; }
body.ai-page-anthropic .pd-h1 { font-size: 60px; }
body.ai-page-anthropic .pd-h2 { font-size: 46px; }
body.ai-page-anthropic .pd-lead { font-size: 18px; }
body.ai-page-anthropic .pd-card-text { font-size: 16.5px; }
body.ai-page-anthropic .pd-btn { font-size: 17.5px; }
body.ai-page-anthropic .pd-status { font-size: 13px; }
body.ai-page-anthropic .pd-chip { font-size: 12.5px; }
body.ai-page-anthropic .pd-form-title { font-size: 28px; }
body.ai-page-anthropic .pd-form-sub { font-size: 15px; }
body.ai-page-anthropic .pd-field label { font-size: 14.5px; }
body.ai-page-anthropic .pd-field input,
body.ai-page-anthropic .pd-field textarea { font-size: 16px; }
body.ai-page-anthropic .pd-submit { font-size: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .ai-hero-grid { grid-template-columns: 1fr; }
  .ai-hero-right { order: -1; }
  .ai-service-row, .ai-service-row-b { grid-template-columns: 1fr; direction: ltr; }
  .ai-servicegrid { flex-wrap: wrap; }
  .ai-servicegrid-col { flex-basis: calc(50% - 10px); }
  .ai-independence-row { grid-template-columns: repeat(3, 1fr); }
  .ai-footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .ai-nav-links { display: none; }
  .ai-featuregrid, .pd-dark .ai-featuregrid { grid-template-columns: 1fr; }
  .ai-servicegrid { flex-direction: column; }
  .ai-servicegrid-col { flex-basis: auto; }
  .ai-steps { grid-template-columns: 1fr; }
  .ai-independence-row { grid-template-columns: repeat(2, 1fr); }
  .ai-footer-inner { grid-template-columns: 1fr; }
  .ai-footer-locations { flex-direction: column; gap: 8px; }
}
