/* ==========================================================================
   AI Localization & Growth Operations
   Exact visual stack of Private AI Partner for Executives.
   CSS remains external; the Agentic token contract is reproduced here.
   ========================================================================== */

:root {
  --bg: #0b1020;
  --surface: #131b2f;
  --surface-warm: #182343;
  --fg: #f8fafc;
  --fg-2: #cbd5e1;
  --muted: #8ea0b8;
  --meta: #60a5fa;
  --border: #293653;
  --border-soft: #1e2a43;
  --accent: #60a5fa;
  --accent-on: #06111f;
  --accent-hover: color-mix(in oklab, var(--accent), black 8%);
  --accent-active: color-mix(in oklab, var(--accent), black 14%);
  --success: #22c55e;
  --warn: #fbbf24;
  --danger: #fb7185;
  --font-display: Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 17px;
  --text-xl: 22px;
  --text-2xl: 32px;
  --text-3xl: 48px;
  --text-4xl: 66px;
  --leading-body: 1.55;
  --leading-tight: 1.06;
  --tracking-display: -0.02em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --section-y-desktop: 96px;
  --section-y-tablet: 68px;
  --section-y-phone: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --elev-flat: none;
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised: 0 24px 72px rgba(0, 0, 0, 0.36);
  --focus-ring: 0 0 0 4px rgba(96, 165, 250, 0.28);
  --motion-fast: 130ms;
  --motion-base: 220ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --container-max: 1200px;
  --container-gutter-desktop: 36px;
  --container-gutter-tablet: 24px;
  --container-gutter-phone: 16px;
}

.ahero--service .ahero__title { max-width: 19ch; }

/* Executive narrative: ambition → capacity pressure → controlled leverage. */
.exec-hero {
  padding: var(--section-y-phone) 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.exec-hero__grid {
  display: grid;
  gap: var(--space-8);
}

.exec-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.exec-hero .ahero__eyebrow {
  margin-bottom: var(--space-5);
}

.exec-hero__title {
  max-width: 14ch;
  margin: 0;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(38px, 11vw, var(--text-3xl));
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

.exec-hero__lead {
  max-width: 60ch;
  margin-top: var(--space-6);
  color: var(--fg);
  font-size: var(--text-lg);
  line-height: var(--leading-body);
}

.exec-hero__tension {
  max-width: 62ch;
  margin-top: var(--space-4);
  color: var(--fg-2);
}

.exec-hero__actions {
  display: grid;
  width: 100%;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.exec-hero__actions .btn {
  min-height: 48px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.capacity-pivot__label,
.growth-direction__index,
.pressure-row__index {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pressure-ledger {
  margin-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.pressure-row {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.pressure-row__index {
  color: var(--warn);
}

.pressure-row h3,
.capacity-pivot h3,
.growth-direction h3 {
  margin: 0;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pressure-row p,
.capacity-pivot p,
.growth-direction p {
  margin: 0;
  color: var(--fg-2);
}

.capacity-pivot {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  margin-top: var(--space-8);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.capacity-pivot__label {
  color: var(--warn);
}

.capacity-pivot p {
  margin-top: var(--space-2);
}

.capacity-pivot .btn {
  min-height: 44px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.growth-directions {
  display: grid;
  margin-top: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.growth-direction {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.growth-direction:last-child {
  border-bottom: 0;
}

.growth-direction__index {
  color: var(--accent);
}

.growth-direction__outcome {
  display: block;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
  color: var(--fg);
  font-size: var(--text-sm);
  font-weight: 550;
}

.human-control-figure {
  width: min(100%, 760px);
  margin: var(--space-8) auto 0;
}

.human-control-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.source-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.source-flow > p,
.source-flow > ul,
.source-flow > ol,
.source-flow > .tablewrap,
.source-flow > h4 {
  max-width: 88ch;
}

.source-flow--hero > p {
  font-size: var(--text-lg);
  color: var(--fg-2);
}

.source-flow--hero > p:first-child {
  color: var(--fg);
}

.source-flow strong {
  color: var(--fg);
  font-weight: 600;
}

.source-intro {
  margin-bottom: var(--space-8);
}

.source-intro > p:first-child {
  font-size: var(--text-lg);
  color: var(--fg);
}

.source-intro > p + p {
  color: var(--fg-2);
}

.source-records {
  margin-top: var(--space-8);
}

.source-record__body {
  padding: var(--space-6);
}

.source-record__body > p {
  color: var(--fg-2);
}

.source-record__body > p + p {
  margin-top: 0;
}

.source-subhead {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: var(--text-lg);
  color: var(--fg);
}

.source-list,
.source-ordered {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-6);
  margin: 0;
  padding: 0;
}

.source-list {
  list-style: none;
}

.source-list li,
.source-ordered li {
  position: relative;
  color: var(--fg-2);
  font-size: var(--text-sm);
}

.source-list li {
  padding-left: var(--space-5);
}

.source-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 1px;
  background: color-mix(in oklab, var(--sec-accent) 70%, transparent);
}

.source-ordered {
  counter-reset: source-order;
  list-style: none;
}

.source-ordered li {
  counter-increment: source-order;
  padding-left: var(--space-8);
}

.source-ordered li::before {
  content: counter(source-order, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--sec-accent);
}

.source-ordered--expanded {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.source-ordered--expanded li {
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-12);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.source-ordered--expanded li::before {
  left: var(--space-5);
  top: var(--space-5);
}

.source-ordered--expanded p {
  margin-top: var(--space-3);
  color: var(--fg-2);
}

.source-table {
  width: 100%;
  max-width: none !important;
  overflow-x: auto;
}

.source-table .table {
  min-width: 760px;
}

.source-table .table th:first-child,
.source-table .table td:first-child {
  width: auto;
}

.flow-code {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.archband .fig__body,
.fig--band .fig__body {
  padding: var(--space-6);
}

/* the "what changes" summary closes the portfolio section */
.fig--band {
  margin-top: var(--space-8);
}

.source-flow--architecture > p {
  color: var(--fg);
}

.source-flow--architecture .source-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.source-flow--architecture .source-list + p {
  margin-top: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.faq .source-flow {
  gap: var(--space-3);
}

.faq .source-flow p {
  max-width: 72ch;
}

.close-cta__aside {
  align-self: stretch;
  overflow: hidden;
}

.source-flow--closing > p:first-child {
  color: var(--fg);
}

.site-footer__brand {
  display: inline-block;
  border: 0;
}

.site-footer__brand + p {
  margin-top: var(--space-4);
}

@media (max-width: 1023px) {
  .source-flow--architecture .source-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .exec-hero {
    padding: var(--section-y-tablet) 0;
  }

  .exec-hero__actions {
    grid-template-columns: max-content max-content;
    width: auto;
  }

  .pressure-row {
    grid-template-columns: 48px minmax(180px, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
  }

  .capacity-pivot {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    padding: var(--space-6);
  }

}

@media (min-width: 1024px) {
  .exec-hero {
    padding: var(--section-y-desktop) 0;
  }

  .exec-hero__grid {
    grid-template-columns: minmax(0, 820px);
    align-items: start;
  }

  .exec-hero__title {
    font-size: var(--text-3xl);
  }

  .growth-directions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .growth-direction {
    min-height: 348px;
    padding: var(--space-6);
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .growth-direction:last-child {
    border-right: 0;
  }
}

@media (max-width: 767px) {
  .source-list,
  .source-ordered,
  .source-ordered--expanded,
  .source-flow--architecture .source-list {
    grid-template-columns: 1fr;
  }

  .source-record__body {
    padding: var(--space-5);
  }

  .source-table {
    margin-inline: calc(var(--space-5) * -1);
    width: calc(100% + var(--space-5) * 2);
    border-radius: 0;
  }

  .source-table .table {
    min-width: 680px;
  }

  .flow-code {
    width: 100%;
  }
}
