:root {
  color-scheme: dark;
  /* Slate: cool blue-graphite canvas with clearly stepped panels (same as the analytics app) */
  --bg: #0a0e14;
  --surface-1: #111821;
  --surface-2: #18212c;
  --surface-3: #202b38;
  --surface-light: #f0f0ec;
  --text: #f2f4f7;
  --text-inverse: #151618;
  /* Text ramp, cooled for the slate canvas (WCAG on surface-1): text 16.2:1, body 12.7:1, muted 9.0:1, subtle 6.1:1 */
  --text-body: #d5dae0;
  --text-muted: #b2b9c2;
  --text-subtle: #8e98a4;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --accent: #f2a900;
  --accent-hover: #ffb917;
  --accent-ink: #11100c;
  --success: #46b98a;
  --danger: #e46d65;
  /* Window chrome of product frames */
  --chrome-surface: var(--surface-2);
  --chrome-text: var(--text-muted);
  --chrome-text-strong: var(--text);
  --chrome-border: var(--border);
  /* Charts sit on the dark frame body, same palette as the analytics app (frontend/src/themes/tokens.js).
     Validated with the dataviz palette validator, dark mode, slate panel #111821: up/down/model pass all
     checks (worst CVD dE 12.6); the dim pair passes normal 15.2 / CVD 13.3. History is neutral or
     dimmed, forecasts carry the colour. */
  --chart-surface: #111821;
  --chart-up: #00aa95;
  --chart-down: #c43f3e;
  --chart-model: #588cda;
  --chart-up-dim: #075449;
  --chart-model-dim: #364493;
  --chart-up-mid: #007e6e;
  --chart-model-mid: #4867b6;
  --chart-history: #36404c;
  --chart-latest: #707a86;
  --chart-neutral: #4b5563;
  --chart-up-text: #00aa95;
  --chart-down-text: #e46d65;
  --chart-grid: rgba(148, 163, 184, 0.08);
  --chart-axis: rgba(148, 163, 184, 0.2);
  --chart-model-wash: #1b2a45;
  --chart-forecast-zone: #16202b;
  --font-sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container: 1320px;
  --header-height: 72px;
  --duration-fast: 120ms;
  --duration-default: 200ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(242, 169, 0, 0.15);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
figure,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-body);
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-150%);
  transition: transform var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 80px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 128px 0;
  border-top: 1px solid var(--border);
}

.section-compact {
  padding: 72px 0;
}

.section-raised {
  background: var(--surface-1);
}

.section-light {
  background: var(--surface-light);
  color: var(--text-inverse);
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.lead {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.55;
}

.lead-sm {
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.68;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform 90ms var(--ease-out);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.055);
}

.button-text {
  min-height: 42px;
  padding-inline: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text);
}

.button-text:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.875rem;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: 207px;
  height: auto;
}

.site-nav,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.site-nav {
  flex: 1;
  justify-content: flex-end;
  gap: 44px;
}

.nav-links {
  gap: 28px;
}

.nav-links a,
.nav-login {
  position: relative;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-default) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active,
.nav-login:hover {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  gap: 18px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 9px;
  border: 0;
  background: transparent;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform var(--duration-default) var(--ease-in-out);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.home-hero {
  padding: 108px 0 72px;
  overflow: hidden;
}

.hero-eyebrow {
  margin-bottom: 48px;
}

.hero-heading-grid {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.hero-heading-grid h1 {
  grid-column: 1 / 9;
  max-width: 10.5ch;
}

.hero-intro {
  grid-column: 9 / 13;
  padding-bottom: 6px;
}

.hero-intro .lead {
  margin-bottom: 32px;
}

.hero-proof {
  display: flex;
  margin: 64px 0 36px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-proof span {
  flex: 1;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.hero-proof span:last-child {
  border-right: 0;
}

.hero-product {
  position: relative;
  min-height: 0;
  padding: 44px 0 0;
}

.hero-product::before {
  position: absolute;
  inset: 0 5% auto;
  height: 1px;
  background: var(--border-strong);
  content: '';
}

.product-frame {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--chart-surface);
  color: var(--text);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.product-frame-bar {
  display: grid;
  min-height: 52px;
  align-items: center;
  padding: 0 18px;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  border-bottom: 1px solid var(--chrome-border);
  background: var(--chrome-surface);
  color: var(--chrome-text);
  font-size: 0.8125rem;
}

.product-frame-bar strong {
  color: var(--chrome-text-strong);
  font-weight: 600;
}

.frame-mark {
  width: 16px;
  height: 8px;
  background: var(--accent);
}

.hero-frame-main {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  margin-inline: auto;
}

.evidence-strip {
  background: var(--surface-1);
}

.evidence-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 1.15fr 1fr 0.8fr;
  gap: 64px;
}

.evidence-grid h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 3vw, 3rem);
}

.evidence-grid p {
  margin: 0;
}

.evidence-note {
  padding-left: 24px;
  border-left: 1px solid var(--accent);
  font-size: 0.875rem;
}

.section-heading {
  margin-bottom: 72px;
}

.section-heading h2 {
  max-width: 13ch;
}

.split-heading {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.split-heading .eyebrow {
  grid-column: 1 / 13;
}

.split-heading h2 {
  grid-column: 1 / 8;
}

.split-heading > p:last-child {
  grid-column: 9 / 13;
  margin: 0;
}

.capability-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.capability-ledger article {
  min-height: 320px;
  padding: 28px 28px 32px;
  border-right: 1px solid var(--border);
}

.capability-ledger article:last-child {
  border-right: 0;
}

.capability-ledger span,
.partnership-capabilities span,
.docs-topics span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.capability-ledger h3 {
  margin: 92px 0 18px;
}

.capability-ledger p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 10%;
}

.workflow-heading h2 {
  max-width: 13ch;
  margin-bottom: 28px;
}

.workflow-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-strong);
  list-style: none;
}

.workflow-list li {
  display: grid;
  padding: 34px 0;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.workflow-list > li > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.workflow-list h3 {
  margin-bottom: 10px;
}

.workflow-list p {
  max-width: 54ch;
  margin: 0;
}

.feature-sequence {
  padding-bottom: 48px;
}

.feature-row {
  display: grid;
  align-items: center;
  margin-bottom: 144px;
  grid-template-columns: 4.5fr 7fr;
  gap: 7%;
}

.feature-row.reverse {
  grid-template-columns: 7fr 4.5fr;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row.reverse .product-frame {
  order: 1;
}

.feature-copy h2 {
  max-width: 11ch;
  margin-bottom: 28px;
}

.ruled-list {
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.ruled-list li {
  display: grid;
  padding: 16px 0;
  grid-template-columns: 44px 1fr;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.ruled-list span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.feature-row .product-frame {
  box-shadow: none;
}

.audience-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
}

.audience-ledger article {
  display: grid;
  min-height: 230px;
  padding: 32px 36px 36px 0;
  grid-template-columns: 140px 1fr;
  gap: 12px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.audience-ledger article:nth-child(even) {
  padding-left: 36px;
  border-right: 0;
}

.audience-ledger span {
  grid-row: 1 / 3;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.audience-ledger p {
  max-width: 50ch;
  margin: 8px 0 0;
}

.partnership-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 5fr 6fr;
  gap: 10%;
}

.partnership-grid h2 {
  max-width: 11ch;
  margin-bottom: 28px;
}

.partnership-grid .lead-sm {
  margin-bottom: 32px;
}

.integration-steps {
  border-top: 1px solid var(--border-strong);
}

.integration-steps div {
  display: grid;
  padding: 28px 0;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.integration-steps span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.integration-steps strong {
  font-size: 1.125rem;
}

.integration-steps small {
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

.pricing-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.pricing-heading h2 {
  max-width: 10ch;
}

.pricing-heading > p {
  max-width: 48ch;
  margin: 0 0 8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-card {
  position: relative;
  display: flex;
  min-height: 650px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.pricing-card.featured {
  border-color: rgba(242, 169, 0, 0.7);
  background: #19170f;
}

.pricing-topline {
  display: flex;
  min-height: 26px;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.pricing-topline .eyebrow {
  margin: 0;
}

.status-label {
  padding: 4px 8px;
  border: 1px solid rgba(242, 169, 0, 0.5);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.price {
  min-height: 116px;
  margin-top: 54px;
  color: var(--text);
  font-size: clamp(2.6rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.price-descriptor {
  color: var(--text);
  font-weight: 500;
}

.check-list {
  margin: 20px 0 32px;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.check-list li::before {
  position: absolute;
  top: 20px;
  left: 2px;
  width: 7px;
  height: 3px;
  border-bottom: 1.5px solid var(--accent);
  border-left: 1.5px solid var(--accent);
  content: '';
  transform: rotate(-45deg);
}

.pricing-card > .button {
  width: 100%;
  margin-top: auto;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.final-cta {
  padding: 112px 0;
  border-top: 1px solid var(--border);
  background: var(--accent);
  color: var(--accent-ink);
}

.final-cta-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 8%;
}

.final-cta .eyebrow,
.final-cta p {
  color: rgba(17, 16, 12, 0.72);
}

.final-cta h2 {
  max-width: 10ch;
}

.final-cta .button-primary {
  background: var(--accent-ink);
  color: var(--text);
}

.final-cta .button-secondary {
  border-color: rgba(17, 16, 12, 0.35);
  background: transparent;
  color: var(--accent-ink);
}

.site-footer {
  padding: 80px 0 28px;
  background: #070a0f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 10%;
}

.footer-brand > p {
  max-width: 44ch;
  margin-top: 28px;
}

.footer-brand .legal-note {
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-links h2 {
  margin-bottom: 20px;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  font-weight: 600;
}

.footer-links a {
  display: block;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  margin-top: 72px;
  padding-top: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.page-hero {
  padding: 120px 0 96px;
}

.page-hero-grid {
  display: grid;
  align-items: end;
  grid-template-columns: 7fr 4fr;
  gap: 8%;
}

.page-hero h1 {
  max-width: 11ch;
  font-size: clamp(3.25rem, 6.7vw, 5.75rem);
}

.page-hero-copy .lead {
  margin-bottom: 32px;
}

.partner-flow-section {
  background: var(--surface-1);
}

.partner-flow {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 80px 1fr 80px 1fr;
}

.partner-flow > div:not(.flow-line) {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 6px 18px;
}

.partner-flow span {
  grid-row: 1 / 3;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.partner-flow small {
  color: var(--text-subtle);
}

.flow-line {
  height: 1px;
  margin-inline: 16px;
  background: var(--border-strong);
}

.partnership-capabilities,
.docs-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
}

.partnership-capabilities article,
.docs-topics article {
  min-height: 260px;
  padding: 30px 40px 36px 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partnership-capabilities article:nth-child(even),
.docs-topics article:nth-child(even) {
  padding-left: 40px;
  border-right: 0;
}

.partnership-capabilities h3,
.docs-topics h3 {
  margin: 74px 0 14px;
}

.partnership-capabilities p,
.docs-topics p {
  max-width: 52ch;
  margin: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 10%;
}

.process-grid > div h2 {
  max-width: 10ch;
  margin-bottom: 28px;
}

.process-grid ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-strong);
  list-style: none;
}

.process-grid li {
  display: grid;
  padding: 28px 0;
  grid-template-columns: 64px 1fr;
  border-bottom: 1px solid var(--border);
}

.process-grid li > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.process-grid strong {
  font-size: 1.125rem;
}

.process-grid li p {
  margin: 6px 0 0;
}

.benefit-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
}

.benefit-ledger > div {
  min-height: 190px;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefit-ledger > div:last-child {
  border-right: 0;
}

.benefit-ledger p {
  margin: 40px 0 0;
}

.availability-note {
  padding: 16px 18px;
  border: 1px solid rgba(242, 169, 0, 0.35);
  border-radius: var(--radius-md);
  background: rgba(242, 169, 0, 0.05);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.pricing-page-grid-section {
  padding-top: 32px;
  border-top: 0;
}

.pricing-page-grid-section .pricing-card {
  min-height: 720px;
}

.pricing-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
}

.pricing-faq details {
  padding: 24px 30px 24px 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-faq details:nth-child(even) {
  padding-left: 30px;
  border-right: 0;
}

.pricing-faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.pricing-faq p {
  margin: 16px 0 0;
}

.docs-hero-grid {
  display: grid;
  align-items: end;
  grid-template-columns: 7fr 4fr;
  gap: 8%;
}

.docs-hero .lead {
  max-width: 56ch;
  margin: 32px 0;
}

.docs-status {
  border-top: 1px solid var(--border-strong);
}

.docs-status > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.docs-status span,
.docs-status strong {
  display: block;
}

.docs-status span {
  margin-bottom: 8px;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

.contact-page {
  padding: 112px 0 128px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 8%;
}

.contact-intro h1 {
  max-width: 10ch;
  font-size: clamp(3.25rem, 5.8vw, 5.5rem);
}

.contact-intro .lead {
  max-width: 47ch;
  margin: 32px 0 48px;
}

.contact-expectations {
  max-width: 520px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-strong);
  list-style: none;
}

.contact-expectations li {
  display: grid;
  padding: 18px 0;
  grid-template-columns: 48px 1fr;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.contact-expectations span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.direct-contact {
  margin-top: 56px;
}

.direct-contact p {
  margin-bottom: 4px;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

.direct-contact a {
  border-bottom: 1px solid var(--border-strong);
  font-size: 1.125rem;
}

.not-found {
  min-height: 70vh;
  padding: 140px 0;
}

.not-found h1 {
  max-width: 11ch;
  margin-bottom: 28px;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out);
}

@media (max-width: 1120px) {
  .container {
    width: min(100% - 64px, var(--container));
  }

  .site-nav {
    gap: 26px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero-heading-grid h1 {
    grid-column: 1 / 8;
  }

  .hero-intro {
    grid-column: 8 / 13;
  }

  .hero-product {
    min-height: 0;
  }

  .capability-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-ledger article:nth-child(2) {
    border-right: 0;
  }

  .capability-ledger article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .benefit-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-ledger > div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 960px) {
  :root {
    --header-height: 64px;
  }

  .container {
    width: calc(100% - 48px);
  }

  .section {
    padding: 96px 0;
  }

  .section-compact {
    padding: 64px 0;
  }

  .brand img {
    width: 186px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    height: calc(100dvh - var(--header-height));
    padding: 28px 24px 40px;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    overscroll-behavior: contain;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .nav-links,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a,
  .nav-login {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 1.125rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-actions {
    gap: 14px;
  }

  .nav-actions .button {
    width: 100%;
  }

  .home-hero {
    padding-top: 88px;
  }

  .hero-heading-grid {
    display: block;
  }

  .hero-heading-grid h1 {
    max-width: 9ch;
  }

  .hero-intro {
    display: grid;
    margin-top: 44px;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .hero-intro .lead {
    margin: 0;
  }

  .hero-intro .button-row {
    align-content: start;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-proof span:nth-child(2) {
    border-right: 0;
  }

  .hero-proof span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .hero-product {
    min-height: 0;
  }

  .hero-frame-main {
    width: 100%;
  }

  .evidence-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .evidence-note {
    grid-column: 2;
  }

  .split-heading h2 {
    grid-column: 1 / 8;
  }

  .split-heading > p:last-child {
    grid-column: 8 / 13;
  }

  .workflow-grid,
  .process-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 8%;
  }

  .feature-row,
  .feature-row.reverse {
    align-items: start;
    grid-template-columns: 1fr 1.25fr;
    gap: 6%;
  }

  .feature-row.reverse {
    grid-template-columns: 1.25fr 1fr;
  }

  .audience-ledger article {
    grid-template-columns: 1fr;
  }

  .audience-ledger span {
    grid-row: auto;
  }

  .partnership-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 8%;
  }

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

  .pricing-card:last-child {
    min-height: 580px;
    grid-column: 1 / 3;
  }

  .final-cta-grid,
  .page-hero-grid,
  .docs-hero-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7%;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 40px);
  }

  .section {
    padding: 76px 0;
  }

  .section-compact {
    padding: 52px 0;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.25rem);
  }

  h2 {
    font-size: clamp(2.2rem, 10.5vw, 3.25rem);
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .home-hero {
    padding: 70px 0 48px;
  }

  .hero-eyebrow {
    margin-bottom: 32px;
  }

  .hero-intro {
    display: block;
    margin-top: 36px;
  }

  .hero-intro .lead {
    margin-bottom: 28px;
  }

  .hero-proof {
    margin-top: 48px;
  }

  .hero-proof span {
    padding-inline: 8px;
    font-size: 0.75rem;
  }

  .hero-product {
    display: block;
    min-height: 0;
    padding-top: 32px;
    overflow: visible;
  }

  .hero-product::before {
    display: none;
  }

  .hero-frame-main {
    position: static;
    width: 100%;
  }

  .product-frame-bar {
    grid-template-columns: auto 1fr;
  }

  .product-frame-bar strong {
    display: none;
  }

  .evidence-grid,
  .workflow-grid,
  .process-grid,
  .partnership-grid,
  .final-cta-grid,
  .page-hero-grid,
  .docs-hero-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .evidence-note {
    grid-column: auto;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .split-heading {
    display: block;
  }

  .split-heading h2 {
    margin-bottom: 28px;
  }

  .capability-ledger,
  .audience-ledger,
  .partnership-capabilities,
  .docs-topics,
  .benefit-ledger,
  .pricing-faq {
    grid-template-columns: 1fr;
  }

  .capability-ledger article {
    min-height: 245px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .capability-ledger h3 {
    margin-top: 54px;
  }

  .feature-row,
  .feature-row.reverse {
    display: flex;
    margin-bottom: 96px;
    flex-direction: column;
    gap: 40px;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .product-frame {
    order: initial;
  }

  .feature-row .product-frame {
    width: 100%;
  }

  .audience-ledger article,
  .audience-ledger article:nth-child(even) {
    min-height: 210px;
    padding: 28px 0;
    border-right: 0;
  }

  .integration-steps div {
    grid-template-columns: 44px 1fr;
  }

  .integration-steps small {
    grid-column: 2;
  }

  .pricing-heading {
    display: block;
  }

  .pricing-heading > p {
    margin-top: 28px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card,
  .pricing-card:last-child,
  .pricing-page-grid-section .pricing-card {
    min-height: 610px;
    grid-column: auto;
  }

  .final-cta {
    padding: 80px 0;
  }

  .page-hero {
    padding: 88px 0 72px;
  }

  .page-hero h1,
  .contact-intro h1 {
    font-size: clamp(3rem, 13vw, 4.25rem);
  }

  .partner-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .partner-flow > div:not(.flow-line) {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
  }

  .flow-line {
    display: none;
  }

  .partnership-capabilities article,
  .partnership-capabilities article:nth-child(even),
  .docs-topics article,
  .docs-topics article:nth-child(even) {
    min-height: 230px;
    padding: 28px 0;
    border-right: 0;
  }

  .partnership-capabilities h3,
  .docs-topics h3 {
    margin-top: 48px;
  }

  .benefit-ledger > div {
    min-height: 160px;
    padding-inline: 0;
    border-right: 0;
  }

  .pricing-faq details,
  .pricing-faq details:nth-child(even) {
    padding: 22px 0;
    border-right: 0;
  }

  .contact-page {
    padding: 80px 0 96px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .container {
    width: calc(100% - 32px);
  }

  .brand img {
    width: 170px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof span {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-proof span:last-child {
    border-bottom: 0;
  }

  .workflow-list li,
  .process-grid li {
    grid-template-columns: 48px 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Feature rows with a full-width frame under the copy */

.feature-row.stacked {
  grid-template-columns: 1fr;
  gap: 56px;
}

.feature-row.stacked .feature-copy {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 24px 8%;
}

.feature-row.stacked .feature-copy .eyebrow {
  grid-column: 1 / -1;
}

.feature-row.stacked .feature-copy h2 {
  max-width: 13ch;
  margin: 0;
}

.feature-row.stacked .ruled-list {
  margin-top: 28px;
}

/* Charts */

.chart-body {
  padding: 20px 20px 8px;
}

.chart-body + .chart-body {
  border-top: 1px solid var(--border);
}

.chart-title {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.chart {
  width: 100%;
  height: 340px;
}

.chart-hero {
  height: clamp(340px, 46vw, 560px);
}

.chart-compact {
  height: 280px;
}

.chart noscript p {
  margin: 0;
  padding: 24px 0;
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.chart-source {
  margin: 0;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
}

.chart-error {
  padding: 24px 0;
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 12px;
  padding: 0;
  color: var(--text-subtle);
  font-size: 0.75rem;
  list-style: none;
}

.chart-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.swatch-history {
  background: var(--chart-history);
}

.swatch-latest {
  background: var(--chart-latest);
}

.swatch-forecast {
  background: var(--chart-model);
}

/* Financial dashboard */

.dashboard-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  border-bottom: 1px solid var(--border);
}

.ratio-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-right: 1px solid var(--border);
}

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

.ratio-tile:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.ratio-tile:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.ratio-label {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.ratio-value {
  color: var(--text);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ratio-forecast {
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.sparkbars {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 10px;
}

.sparkbars rect.history {
  fill: var(--chart-history);
}

.sparkbars rect.latest {
  fill: var(--chart-latest);
}

.sparkbars rect.forecast {
  fill: var(--chart-model);
}

.sparkbars line {
  stroke: var(--chart-axis);
  stroke-width: 1;
}

.delta {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.delta.good {
  color: var(--chart-up-text);
}

.delta.bad {
  color: var(--chart-down-text);
}

.delta.neutral,
.delta.nm {
  color: var(--text-subtle);
}

/* Data tables (balance sheet, profit and loss) */

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.data-table caption {
  padding: 18px 20px 6px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  vertical-align: middle;
}

.data-table th:first-child,
.data-table td:first-child {
  padding-left: 20px;
  text-align: left;
}

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 20px;
}

.data-table thead th {
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 500;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: var(--surface-3);
}

.data-table td {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.data-table tbody th {
  color: var(--text-muted);
  font-weight: 400;
}

.data-table .row-total th,
.data-table .row-total td {
  color: var(--text);
  font-weight: 600;
}

.data-table .level-1 > :first-child {
  padding-left: 36px;
}

.table-legend {
  margin: 0;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--border);
}

.data-table .col-spark {
  width: 34%;
}

.data-table .col-spark .sparkbars {
  height: 26px;
  margin: 0;
}

.value-bar {
  display: grid;
  grid-template-columns: 1fr 72px;
  align-items: center;
  gap: 10px;
}

.value-bar .bar {
  display: block;
  height: 8px;
  justify-self: end;
  border-radius: 2px 0 0 2px;
  background: var(--chart-history);
}

.row-total .value-bar .bar {
  background: var(--chart-latest);
}

.diverging-bar {
  display: grid;
  grid-template-columns: 1fr 64px;
  align-items: center;
  gap: 10px;
}

.diverging-bar .track {
  position: relative;
  height: 8px;
}

.diverging-bar .track::before {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 50%;
  width: 1px;
  background: var(--chart-axis);
  content: '';
}

.diverging-bar .fill {
  position: absolute;
  top: 0;
  height: 8px;
}

.diverging-bar .fill.good {
  background: var(--chart-up);
}

.diverging-bar .fill.bad {
  background: var(--chart-down);
}

.diverging-bar .fill.forecast {
  opacity: 0.55;
}

.diverging-bar .fill.positive {
  left: 50%;
  border-radius: 0 2px 2px 0;
}

.diverging-bar .fill.negative {
  right: 50%;
  border-radius: 2px 0 0 2px;
}

/* Contact options */

.contact-options {
  display: grid;
  align-content: start;
  gap: 12px;
}

.contact-option {
  display: grid;
  padding: 24px 26px;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  scroll-margin-top: calc(var(--header-height) + 24px);
  transition: border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}

.contact-option:hover,
.contact-option:target {
  border-color: var(--accent);
  background: var(--surface-2);
}

.contact-option h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.contact-option p {
  grid-column: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact-option .button {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
}

@media (max-width: 960px) {
  .feature-row.stacked .feature-copy,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .ratio-tiles {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .chart-body {
    padding: 16px 12px 4px;
  }

  .chart-hero {
    height: 360px;
  }

  .data-table .col-optional {
    display: none;
  }

  .data-table th,
  .data-table td {
    padding: 8px 8px;
  }

  .data-table th:first-child,
  .data-table td:first-child {
    padding-left: 12px;
  }

  .data-table th:last-child,
  .data-table td:last-child {
    padding-right: 12px;
  }

  .data-table .level-1 > :first-child {
    padding-left: 22px;
  }

  .value-bar {
    grid-template-columns: 1fr;
  }

  .value-bar .bar,
  .diverging-bar .track {
    display: none;
  }

  .diverging-bar {
    grid-template-columns: 1fr;
    justify-items: end;
  }

  .table-legend {
    padding: 12px;
  }

  .ratio-tile {
    padding: 16px 14px;
  }

  .contact-option {
    grid-template-columns: 1fr;
  }

  .contact-option .button {
    grid-row: auto;
    grid-column: 1;
    margin-top: 12px;
  }
}
