:root {
  /* ==========================================================================
     Layer 1: Primitive Tokens (Raw Scales)
     ========================================================================== */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-900: #064e3b;

  --teal-600: #0d9488;
  --blue-50: #eff6ff;
  --blue-200: #bfdbfe;
  --blue-600: #2563eb;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-600: #d97706;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* ==========================================================================
     Layer 2: Semantic Tokens (Contextual Roles)
     ========================================================================== */
  --color-background: var(--slate-50);
  --color-surface: #ffffff;
  --color-surface-subtle: var(--slate-100);
  --color-surface-elevated: rgba(255, 255, 255, 0.92);
  --color-surface-dark: var(--slate-900);
  --color-foreground: var(--slate-900);
  --color-foreground-soft: var(--slate-800);
  --color-foreground-muted: var(--slate-600);
  --color-foreground-subtle: var(--slate-500);
  --color-primary: var(--emerald-600);
  --color-primary-hover: var(--emerald-700);
  --color-primary-accent: var(--emerald-500);
  --color-border: var(--slate-200);
  --color-border-strong: var(--slate-300);
  --color-pillar-catalog: var(--emerald-600);
  --color-pillar-sync: var(--blue-600);
  --color-pillar-launch: var(--amber-600);

  /* ==========================================================================
     Layer 3: Component Tokens
     ========================================================================== */
  --card-bg: var(--color-surface);
  --card-border: var(--color-border);
  --card-radius: 18px;
  --card-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -6px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --card-shadow-hover:
    0 12px 28px -8px rgba(15, 23, 42, 0.1),
    0 4px 12px -2px rgba(5, 150, 105, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --button-bg: var(--color-foreground);
  --button-fg: #ffffff;
  --button-radius: 10px;
  --inspector-bg: var(--slate-900);
  --inspector-border: var(--slate-800);

  /* Backward-compatible semantic aliases */
  --ink: var(--color-foreground);
  --ink-soft: var(--color-foreground-soft);
  --muted: var(--color-foreground-muted);
  --subtle: var(--color-foreground-subtle);
  --green: var(--color-primary);
  --green-dark: var(--color-primary-hover);
  --teal: var(--color-primary-accent);
  --paper: var(--color-background);
  --surface: var(--color-surface);
  --surface-alt: var(--color-surface-subtle);
  --line: var(--color-border);
  --line-strong: var(--color-border-strong);
  --radius: var(--card-radius);
  --font-sans:
    "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", sans-serif;
  --font-mono:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm:
    0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-md:
    0 4px 12px -2px rgba(15, 23, 42, 0.06),
    0 14px 30px -6px rgba(15, 23, 42, 0.09);
  --shadow-lg:
    0 12px 28px -6px rgba(15, 23, 42, 0.09),
    0 28px 54px -12px rgba(15, 23, 42, 0.14);
}

/* Cross-document View Transitions & Modern Typography */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* Tailwind utility layer */
.bg-slate-50 {
  background-color: var(--paper);
}
.bg-white {
  background-color: var(--surface);
}
.bg-white\/85 {
  background-color: rgba(255, 255, 255, 0.85);
}
.text-slate-900 {
  color: var(--ink);
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.sticky {
  position: sticky;
}
.top-0 {
  top: 0;
}
.z-40 {
  z-index: 40;
}
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.border {
  border-width: 1px;
  border-style: solid;
}
.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}
.border-slate-200\/80 {
  border-color: rgba(226, 232, 240, 0.85);
}
.border-slate-200\/90 {
  border-color: rgba(226, 232, 240, 0.92);
}
.rounded-lg {
  border-radius: 10px;
}
.rounded-xl {
  border-radius: 12px;
}
.rounded-2xl {
  border-radius: 16px;
}
.rounded-3xl {
  border-radius: 24px;
}
.rounded-full {
  border-radius: 9999px;
}
.shadow-xs {
  box-shadow: var(--shadow-xs);
}
.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}
.max-w-7xl {
  max-width: 1280px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.inline-flex {
  display: inline-flex;
}
.items-center {
  align-items: center;
}
.items-baseline {
  align-items: baseline;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 4px;
}
.gap-2 {
  gap: 8px;
}
.gap-4 {
  gap: 16px;
}
.gap-6 {
  gap: 24px;
}
.m-0 {
  margin: 0;
}
.my-3 {
  margin-top: 12px;
  margin-bottom: 12px;
}
.my-6 {
  margin-top: 28px;
  margin-bottom: 28px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-3 {
  margin-bottom: 12px;
}
.mb-6 {
  margin-bottom: 24px;
}
.p-6 {
  padding: 24px;
}
.transition-all {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Global Defaults (Mobile-First) */
* {
  box-sizing: border-box;
}
::selection {
  background: rgba(16, 185, 129, 0.16);
  color: #064e3b;
}
body {
  margin: 0;
  min-block-size: 100dvh;
  background-color: var(--color-background);
  background-image:
    radial-gradient(
      ellipse 80% 45% at 50% -10%,
      rgba(16, 185, 129, 0.1),
      transparent
    ),
    radial-gradient(
      ellipse 60% 35% at 88% 12%,
      rgba(37, 99, 235, 0.055),
      transparent
    ),
    radial-gradient(
      circle at 1px 1px,
      rgba(15, 23, 42, 0.045) 1px,
      transparent 0
    );
  background-size:
    100% 100%,
    100% 100%,
    24px 24px;
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
button {
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* Top Preview Bar — Mobile First */
.preview {
  min-height: 36px;
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  align-items: safe center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
}
.preview-detail {
  display: none;
  letter-spacing: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: #94a3b8;
  margin-left: 6px;
}
.preview a {
  margin-inline-start: auto;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: #34d399;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.preview a:hover {
  background: rgba(16, 185, 129, 0.22);
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}

/* Header & Main Navigation — Mobile First */
header {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: auto;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand cta"
    "nav nav";
  align-items: center;
  gap: 6px 10px;
}
.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand-mark {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.brand-mark span {
  font-size: 9px;
  color: #34d399;
  position: absolute;
  right: 3px;
  top: 2px;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  display: block;
  margin-top: 2px;
  font-weight: 600;
  color: var(--subtle);
}
.header-inner > .button {
  grid-area: cta;
  padding: 6px 10px;
  font-size: 11.5px;
  white-space: nowrap;
}
.site-nav {
  grid-area: nav;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  align-items: safe center;
  justify-content: space-between;
  gap: 2px 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border-top: 1px solid var(--surface-alt);
  padding-top: 5px;
}
.site-nav a {
  padding: 3px 4px;
  border-radius: 6px;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.site-nav a:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

/* Buttons */
.button {
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.button:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}
.button.small {
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 9px;
}
.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.button.secondary:hover {
  background: var(--surface-alt);
  border-color: #94a3b8;
}
.button.light {
  background: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
}
.button.light:hover {
  background: #f1f5f9;
}
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Typography & Layout — Mobile First */
main {
  max-width: 1280px;
  margin: 0 auto;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 1.35rem + 3.2vw, 3.625rem);
  font-weight: 700;
  margin-bottom: 16px;
}
h1 span {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem);
  font-weight: 650;
  margin-bottom: 14px;
}
h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
p {
  color: var(--muted);
  margin-bottom: 16px;
}
.prose p,
.prose li,
.benefit-card p,
.pipeline-card p,
.use-case-col p,
.comparison-card li {
  text-wrap: pretty;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--green);
}

/* Hero Section — Executive Obsidian Stage (Mobile First) */
.hero {
  margin: 12px 12px 0;
  padding: 32px 18px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border-radius: 24px;
  background-color: #070c17;
  background-image:
    radial-gradient(
      ellipse 70% 60% at 18% 0%,
      rgba(16, 185, 129, 0.22),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 55% at 88% 100%,
      rgba(79, 70, 229, 0.2),
      transparent 70%
    ),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    32px 32px,
    32px 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 48px -12px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}
.hero-copy {
  min-inline-size: 0;
}
.hero-copy .eyebrow {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: #6ee7b7;
  padding: 6px 12px;
  border-radius: 9999px;
  margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: clamp(2rem, 1.3rem + 2.85vw, 3.35rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #ffffff;
}
.hero-copy h1 span {
  background: linear-gradient(135deg, #34d399 0%, #2dd4bf 55%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead {
  font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.0625rem);
  line-height: 1.68;
  color: var(--muted);
  max-width: 560px;
}
.hero .lead {
  max-width: 510px;
  color: #cbd5e1;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero .actions .button {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid #34d399;
  box-shadow:
    0 4px 16px rgba(16, 185, 129, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.hero .actions .button:hover {
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
  border-color: #6ee7b7;
}
.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.text-link:hover {
  color: var(--green-dark);
}
.hero .text-link {
  color: #6ee7b7;
}
.hero .text-link:hover {
  color: #a7f3d0;
}
.hero-note {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 18px;
  font-family: var(--font-mono);
}

/* Hero Workflow Inspector Visual */
.hero-visual {
  container-type: inline-size;
  min-inline-size: 0;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 18px 16px 20px;
  box-shadow:
    0 24px 48px -12px rgba(2, 6, 23, 0.55),
    0 0 0 1px rgba(16, 185, 129, 0.16);
  color: var(--ink);
}
.visual-label {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--subtle);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-alt);
}
.window-dots {
  display: inline-flex;
  gap: 6px;
}
.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e2e8f0;
  display: inline-block;
}
.window-dots i:first-child {
  background: #fca5a5;
}
.window-dots i:nth-child(2) {
  background: #fcd34d;
}
.window-dots i:last-child {
  background: #6ee7b7;
}
.workflow-line {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.workflow-icon {
  width: 36px;
  height: 36px;
  background: #ecfdf5;
  color: var(--green);
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.workflow-line strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.workflow-line small {
  font-size: 11.5px;
  color: var(--subtle);
  display: block;
}
.workflow-arrow {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--subtle);
}
.report {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: clip;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.report-head {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #1e293b;
  background: rgba(255, 255, 255, 0.02);
}
.report-head strong {
  font-size: 12.5px;
  font-weight: 600;
  color: #f8fafc;
  display: block;
}
.report-head small {
  font-size: 11px;
  color: #94a3b8;
}
.report-symbol {
  font-size: 18px;
  color: #34d399;
}
.pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 3px 9px;
  border-radius: 9999px;
  margin-inline-start: auto;
  flex-shrink: 0;
}
.report-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #1e293b;
  font-size: 12px;
  color: #cbd5e1;
}
.mapped {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}
.review {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}
.report-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.6);
}
.visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.visual-caption {
  font-size: 11px;
  color: var(--subtle);
}
.floating-note {
  background: #ecfdf5;
  color: #065f46;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Principles Bar — Mobile First */
.principles {
  margin: 16px 12px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.principles span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.principles span:before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

/* Sections & Grids — Mobile First */
.section {
  padding: 36px 16px;
}
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > p {
  font-size: 14px;
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}
.group-grid,
.cards,
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
/* Vector SVG Iconography & Pillar Tokens */
.svg-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
}
.svg-icon-sm {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
}
.svg-icon-xs {
  width: 15px;
  height: 15px;
  display: inline-block;
  flex-shrink: 0;
}
.pillar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  display: inline-block;
  flex-shrink: 0;
}
.bento-card {
  position: relative;
  background: var(--card-bg);
  border-color: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.bento-card:hover {
  box-shadow: var(--card-shadow-hover);
}
.group-card[data-pillar="0"],
.card[data-group="0"] {
  border-top: 3px solid #10b981;
}
.group-card[data-pillar="1"],
.card[data-group="1"] {
  border-top: 3px solid #6366f1;
}
.group-card[data-pillar="2"],
.card[data-group="2"] {
  border-top: 3px solid #f59e0b;
}
.group-card[data-pillar="0"]:hover,
.card[data-group="0"]:hover {
  border-color: var(--emerald-300);
  border-top-color: #059669;
}
.group-card[data-pillar="1"]:hover,
.card[data-group="1"]:hover {
  border-color: #a5b4fc;
  border-top-color: #4f46e5;
}
.group-card[data-pillar="2"]:hover,
.card[data-group="2"]:hover {
  border-color: var(--amber-200);
  border-top-color: #d97706;
}

.group-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pillar-count-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--subtle);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 9999px;
}
.pillar-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 12px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
}
.pillar-preview i {
  font-style: normal;
  color: var(--subtle);
}
.pillar-preview-check {
  font-weight: 600;
  color: var(--green-dark);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 6px;
}
.group-card[data-pillar="1"] .pillar-preview-check {
  color: #3730a3;
  background: #eef2ff;
  border-color: #c7d2fe;
}
.group-card[data-pillar="2"] .pillar-preview-check {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.group-card {
  min-inline-size: 0;
  padding: 22px;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease;
}
.group-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--emerald-300);
}
.icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--emerald-100);
  border-radius: 12px;
  background: var(--emerald-50);
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.icon[data-pillar-icon="0"] {
  background: var(--emerald-50);
  border-color: var(--emerald-200);
  color: var(--color-pillar-catalog);
}
.icon[data-pillar-icon="1"] {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}
.icon[data-pillar-icon="2"] {
  background: var(--amber-50);
  border-color: var(--amber-200);
  color: var(--color-pillar-launch);
}
.group-card h3 {
  margin: 18px 0 8px;
}
.group-card p {
  font-size: 14px;
  flex-grow: 1;
  margin-bottom: 18px;
}
.group-card > span:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  padding-top: 14px;
  border-top: 1px solid var(--surface-alt);
}
.group-card[data-pillar="1"] > span:last-child {
  color: #4338ca;
}
.group-card[data-pillar="2"] > span:last-child {
  color: #b45309;
}
.group-card b {
  font-size: 15px;
  font-weight: 600;
}

.tinted {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  margin: 0 12px;
  padding: 32px 16px;
  border-radius: 24px;
}

/* Concept Cards */
.card {
  min-inline-size: 0;
  background: var(--surface);
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #94a3b8;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.card-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-pillar-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-200);
  display: none;
}
.card-pillar-tag[data-pillar-tag="1"] {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}
.card-pillar-tag[data-pillar-tag="2"] {
  background: var(--amber-50);
  color: #b45309;
  border-color: var(--amber-200);
}
.card-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
  background: var(--surface-alt);
  padding: 3px 8px;
  border-radius: 6px;
}
.card .eyebrow {
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.card[data-group="1"] .eyebrow {
  color: #4f46e5;
}
.card[data-group="2"] .eyebrow {
  color: #d97706;
}
.card h3 {
  margin-bottom: 8px;
  font-size: 19px;
}
.card h3 a:hover {
  color: var(--green);
}
.card p {
  font-size: 14px;
  line-height: 1.65;
  flex-grow: 1;
}
.card-schematic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 9px 12px;
  margin-top: 6px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 3px solid #10b981;
  font-family: var(--font-mono);
}
.card[data-group="1"] .card-schematic {
  border-left-color: #6366f1;
}
.card[data-group="2"] .card-schematic {
  border-left-color: #f59e0b;
}
.schematic-step {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}
.schematic-out {
  font-size: 11.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}
.card-impact {
  margin-top: 10px;
}
.impact-pill {
  --impact-bg: #ecfdf5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.84375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #064e3b;
  background-color: var(--impact-bg);
  border: 1px solid #6ee7b7;
}
.card-sublinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  font-weight: 600;
}
.card-sublinks a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.card-sublinks a:hover {
  color: var(--green);
}
.card-sublinks span {
  color: var(--line-strong);
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--surface-alt);
  padding-top: 14px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--subtle);
}
.card-bottom .dot {
  width: 6px;
  height: 6px;
  margin-right: 6px;
}
.card-bottom > a {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.card:hover .card-bottom > a {
  background: var(--ink);
  color: #ffffff;
}
.fine-print {
  font-size: 12.5px;
  line-height: 1.65;
  margin: 18px 0 0;
  color: var(--subtle);
}

/* Process Steps */
.steps article {
  min-inline-size: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.steps h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.steps p {
  font-size: 14px;
  margin-bottom: 0;
}

/* Builder Note & CTA Bands — Mobile First */
.owner-band {
  margin: 0 16px 32px;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--green-dark);
}
.owner-band h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.owner-band p {
  font-size: 14.5px;
  max-width: 760px;
}
.cta-band {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  margin: 0 16px 40px;
  border-radius: 24px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem);
  color: #ffffff;
}
.cta-band .eyebrow {
  color: #34d399;
}

/* Footer — Mobile First */
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.footer-brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.footer-brand span {
  margin-left: 8px;
  color: var(--green);
}
footer p,
footer small {
  font-size: 12.5px;
  margin: 8px 0;
  color: var(--subtle);
  display: block;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-note {
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
  align-self: center;
  color: var(--subtle);
}

/* Page Headers & Badges — Mobile First */
.page-head {
  padding: 32px 16px 28px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  max-width: 840px;
}
.page-head .lead {
  max-width: 660px;
}
.page-head.compact h1 {
  font-size: clamp(1.85rem, 1.35rem + 2.2vw, 2.75rem);
}
.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  background: #ecfdf5;
  padding: 6px 12px;
  color: #065f46;
  max-inline-size: 100%;
}

/* Directory Filters — Mobile First */
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-wrap: balance;
  width: 100%;
  margin-bottom: 24px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
}
.filter {
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.filter:hover {
  color: var(--ink);
}
.filter.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.filter span {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.75;
}
.directory {
  padding-top: 28px;
}
.directory .cards {
  row-gap: 20px;
}

/* Detail View, Directory & Subpage Navigation — Executive Obsidian Stage (Mobile First) */
.detail-head,
.directory-head {
  margin: 12px 12px 0;
  padding: 28px 18px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #070c17;
  background-image:
    radial-gradient(
      ellipse 65% 55% at 15% 0%,
      rgba(16, 185, 129, 0.2),
      transparent 70%
    ),
    radial-gradient(
      ellipse 55% 50% at 88% 100%,
      rgba(79, 70, 229, 0.18),
      transparent 70%
    ),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    32px 32px,
    32px 32px;
  box-shadow:
    0 20px 44px -12px rgba(15, 23, 42, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.back:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.detail-head .back {
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.15);
}
.detail-head .back:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}
.detail-head h1,
.directory-head h1 {
  max-width: 820px;
  font-size: clamp(1.9rem, 1.35rem + 2.6vw, 3.125rem);
  color: #ffffff;
}
.directory-head h1 span {
  background: linear-gradient(125deg, #34d399 0%, #6ee7b7 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.detail-head .lead,
.directory-head .lead {
  color: #cbd5e1;
}
.detail-head .detail-hero-grid > div > .eyebrow {
  color: #6ee7b7;
}
.detail-head .badge,
.directory-head .badge {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
.detail-head .actions .button:not(.secondary) {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}
.detail-head .actions .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.2);
}
.detail-head .actions .button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}
.detail-head .actions .text-link {
  color: #6ee7b7;
}
.detail-head .actions .text-link:hover {
  color: #a7f3d0;
}
.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.detail-hero-grid > * {
  min-inline-size: 0;
}
.hero-metrics-card {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}
.hero-metrics-card .eyebrow {
  color: #34d399;
  margin-bottom: 14px;
}
.hero-metrics-list {
  display: grid;
  gap: 12px;
}
.hero-metric-item {
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.hero-metric-item strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.hero-metric-item span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
}
.app-subnav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 12px 0;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.app-subnav-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-inline-size: 0;
}
.app-subnav-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 0 4px;
  white-space: nowrap;
}
.app-subnav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 5px;
  border-radius: 13px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}
.app-subnav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.app-subnav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}
.app-subnav-link:hover {
  color: var(--ink);
  background: #f0fdf4;
  border-color: var(--emerald-300);
}
.app-subnav-link:hover .app-subnav-num {
  background: var(--emerald-100);
  color: var(--emerald-900);
  border-color: var(--emerald-300);
}
.app-subnav-link.active,
.app-subnav-link[aria-current="page"] {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}
.app-subnav-link.active .app-subnav-num,
.app-subnav-link[aria-current="page"] .app-subnav-num {
  background: #10b981;
  color: #022c22;
  border-color: #34d399;
}
.app-subnav > .button {
  width: 100%;
  flex-shrink: 0;
}

/* Detail Content Grid & Prose — Mobile First */
.app-subnav + .detail-grid {
  padding-top: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.detail-grid > * {
  min-inline-size: 0;
}
.prose h2 {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.625rem);
  margin-top: 28px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 22px;
}
.prose p {
  font-size: 15px;
  line-height: 1.75;
}
.prose details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 15px 18px;
  margin-bottom: 12px;
}
.prose summary {
  font-size: 14.5px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.prose details p {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 14px;
}

/* Benefit Cards & Preview Grid — Mobile First */
.benefit-preview-section,
.comparison-section,
.use-cases-section {
  margin: 32px 0;
}
.section-heading-inline {
  margin-bottom: 18px;
}
.section-heading-inline h2 {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.625rem);
  margin-top: 6px;
}
.benefit-cards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.benefit-cards-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
.benefit-card {
  min-inline-size: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.benefit-card:hover {
  border-color: #6ee7b7;
  box-shadow: var(--shadow-sm);
}
.benefit-card-large {
  padding: 24px;
}
.benefit-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.benefit-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  font-weight: 700;
  color: #047857;
  letter-spacing: 0.04em;
}
.benefit-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}
.benefit-card p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 72ch;
  margin: 0;
}
.benefit-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-alt);
}
.subpage-cta-row {
  margin-top: 14px;
}

/* Before vs After Comparison — Mobile First */
.comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.comparison-card {
  min-inline-size: 0;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.comparison-before {
  background: #fffafa;
  border-color: #fecdd3;
}
.comparison-after {
  background: #f0fdf4;
  border-color: #a7f3d0;
}
.comparison-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.comparison-before .comparison-tag {
  color: #be123c;
}
.comparison-after .comparison-tag {
  color: #047857;
}
.comparison-card h3 {
  font-size: 17.5px;
  margin-bottom: 14px;
}
.comparison-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.comparison-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.comparison-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}
.comparison-before .comparison-icon {
  background: #ffe4e6;
  color: #be123c;
}
.comparison-after .comparison-icon {
  background: #d1fae5;
  color: #047857;
}

/* Tables & Responsive Live Example Inspector */
.example-panel {
  min-inline-size: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 16px;
  border-radius: 16px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}
.example-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.inspector-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
}
.status-good {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.status-review {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.status-warn {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.example-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.example-panel small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 12px;
  color: var(--subtle);
}
.example-panel .example-footer small {
  margin-top: 0;
}
.example-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.example-link:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  max-inline-size: 100%;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  container-type: inline-size;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
}
th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle);
  background: var(--paper);
}
tbody th {
  position: sticky;
  inset-inline-start: 0;
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
}
th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
tr:last-child th,
tr:last-child td {
  border-bottom: none;
}
td small {
  display: block;
  font-size: 11.5px;
  color: var(--subtle);
}
td strong,
th strong {
  font-weight: 600;
  color: var(--ink);
}
td a {
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}

/* Container-Query Stacked Table for Narrow Viewports (< 520px container width) */
.inspector-table {
  --label-2: "Rule Observation";
  --label-3: "Decision Status";
}
@container (width < 520px) {
  .inspector-table-wrap {
    border: 0;
    background: transparent;
  }
  .inspector-table,
  .inspector-table thead,
  .inspector-table tbody,
  .inspector-table tr,
  .inspector-table th,
  .inspector-table td {
    display: block;
    width: 100%;
  }
  .inspector-table thead {
    /* MANDATORY: Hide column header from layout and screen readers. */
    display: none;
  }
  .inspector-table tbody tr {
    margin-block-end: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    overflow: clip;
  }
  .inspector-table tbody tr:last-child {
    margin-block-end: 0;
  }
  .inspector-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
  }
  .inspector-table tbody td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--surface-alt);
  }
  .inspector-table tbody td:last-child {
    border-bottom: none;
  }
  .inspector-table tbody td:nth-child(2)::before {
    content: var(--label-2) ": ";
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--subtle);
  }
  .inspector-table tbody td:nth-child(3)::before {
    content: var(--label-3) ": ";
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--subtle);
  }
}

/* How It Works Pipeline & Architecture — Mobile First + Container Queries */
.pipeline-list {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 24px 0 32px;
}
.pipeline-card {
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
}
@container (min-width: 460px) {
  .pipeline-card {
    flex-direction: row;
    gap: 20px;
    padding: 24px 26px;
  }
}
.pipeline-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0f172a;
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pipeline-body {
  flex: 1;
  min-inline-size: 0;
}
.pipeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.pipeline-head h3 {
  font-size: 17.5px;
  margin: 0;
}
.artifact-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid var(--line-strong);
  max-inline-size: 100%;
}
.pipeline-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.architecture-panel {
  min-inline-size: 0;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 22px 20px;
  border-radius: 18px;
  margin: 28px 0;
}
.architecture-panel .eyebrow {
  color: #34d399;
}
.architecture-panel h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 16px;
}
.arch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.arch-box {
  min-inline-size: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}
.arch-box strong {
  display: block;
  font-size: 14px;
  color: #34d399;
  margin-bottom: 6px;
}
.arch-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
}

/* Real-World Use Case Scenarios — Mobile First + Container Queries */
.use-case-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.use-case-card {
  container-type: inline-size;
  min-inline-size: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.use-case-header {
  margin-bottom: 14px;
}
.use-case-header h3 {
  font-size: 18px;
  margin-top: 4px;
}
.use-case-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
@container (min-width: 500px) {
  .use-case-columns {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
.use-case-col {
  min-inline-size: 0;
  padding: 14px 16px;
  border-radius: 12px;
}
.problem-col {
  background: #f8fafc;
  border: 1px solid var(--line);
}
.outcome-col {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.use-case-col strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.problem-col strong {
  color: var(--subtle);
}
.outcome-col strong {
  color: #047857;
}
.use-case-col p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Sidebar Enhancements & Forms — Mobile First */
.scope-panel,
.panel {
  min-inline-size: 0;
  border: 1px solid var(--line);
  padding: 22px 20px;
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}
.panel:last-child {
  margin-bottom: 0;
}
.scope-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.scope-panel p,
.panel p {
  font-size: 14px;
}
.scope-panel .button {
  width: 100%;
  margin-top: 16px;
}
.sidebar-Mini-steps {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.mini-step {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.mini-step strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
}
.mini-step span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.sidebar-subnav-box {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.sidebar-subnav-box a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.sidebar-subnav-box a:hover {
  color: var(--green);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.panel h2 {
  font-size: 22px;
}
.panel h3 {
  font-size: 19px;
}
.panel small {
  display: block;
  font-size: 11.5px;
  color: var(--subtle);
  margin-top: 10px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--ink-soft);
}
label > span {
  color: var(--green);
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--ink);
  padding: 11px 14px;
  margin-top: 7px;
  font-size: 14px;
  min-inline-size: 0;
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  cursor: pointer;
}
input:hover,
textarea:hover,
select:hover {
  border-color: #94a3b8;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}
input[readonly],
textarea[readonly] {
  background: var(--surface-alt);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}
.check input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--green);
  box-shadow: none;
}
.honeypot {
  position: absolute;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  overflow: clip;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.form-layout > * {
  min-inline-size: 0;
}
.application-form {
  border-top: 3px solid #10b981;
}
.application-form .cf-turnstile {
  margin: 10px 0 14px;
}
.application-form button[type="submit"],
.button.submit-cta {
  display: flex;
  width: 100%;
  min-height: 54px;
  padding: 16px 28px;
  margin-top: 8px;
  margin-bottom: 12px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 14px;
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
  box-shadow:
    0 10px 24px -6px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.application-form button[type="submit"]:hover,
.button.submit-cta:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px -6px rgba(15, 23, 42, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.field-hint {
  font-size: 12px;
  color: var(--subtle);
  margin-top: -10px;
}
.next-list {
  list-style: none;
  counter-reset: next;
  padding: 0;
}
.next-list li {
  counter-increment: next;
  position: relative;
  padding: 0 0 22px 42px;
}
.next-list li:before {
  content: counter(next, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.next-list strong {
  font-size: 14.5px;
  color: var(--ink);
}
.next-list p {
  font-size: 13px;
  margin-top: 6px;
}
.notice {
  background: #f0fdf4;
  padding: 15px 16px;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  font-size: 13px;
  color: #065f46;
  margin: 18px 0;
  line-height: 1.65;
}
.error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  color: #991b1b;
  font-size: 13.5px;
}
.narrow {
  max-width: 780px;
  margin: 0 auto;
}
.compact + .narrow {
  padding-top: 28px;
}
.preference {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.preference p {
  margin: 4px 0;
  font-size: 13px;
}
.spaced {
  margin-top: 36px;
}

/* Admin Workspace Metrics & Grids — Mobile First */
.page-head.compact + .section {
  padding-top: 24px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.panel .metrics {
  margin-top: 16px;
  margin-bottom: 0;
}
.metric {
  min-inline-size: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
}
.metric span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  color: var(--subtle);
}
.metric strong {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1.3;
  margin-top: 6px;
  color: var(--ink);
}
.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 0;
}
.filter-form label {
  flex: 1 1 140px;
  min-inline-size: 0;
  margin: 0;
}
.filter-form .button {
  margin-bottom: 1px;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.admin-grid > * {
  min-inline-size: 0;
}
.admin-grid > .panel {
  margin-bottom: 0;
}
.panel > .table-wrap:last-child {
  margin-bottom: 0;
}
dt {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 14px;
}
dd {
  font-size: 13px;
  margin-left: 0;
  color: var(--muted);
}
.audit {
  list-style: none;
  padding: 0;
}
.audit li {
  border-left: 2px solid var(--line-strong);
  padding: 0 0 20px 16px;
}
.audit strong {
  text-transform: capitalize;
  font-size: 13px;
  color: var(--ink);
  display: block;
}
.audit p {
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-wrap: anywhere;
  margin-top: 6px;
}

/* Admin Subnavigation & Sortable Table Headers */
.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.admin-subnav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.admin-subnav a:hover {
  color: var(--ink);
  border-color: var(--green);
}
.admin-subnav a[aria-current="page"] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.sort-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  width: 100%;
  justify-content: space-between;
}
.sort-btn:hover {
  color: var(--green);
}
.sort-indicator {
  font-size: 11px;
  opacity: 0.65;
}
th[aria-sort="ascending"] .sort-indicator,
th[aria-sort="descending"] .sort-indicator {
  opacity: 1;
  color: var(--green);
}

/* Accessibility Helpers */
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: clip;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}

/* ==========================================================================
   Progressive Enhancement Breakpoints (Mobile-First: min-width)
   ========================================================================== */

/* Small Tablet / Large Phones (>= 640px) */
@media (min-width: 640px) {
  .hero {
    margin: 16px 24px 0;
    padding: 44px 28px 38px;
    gap: 32px;
  }
  .hero-visual {
    padding: 22px 24px 24px;
  }
  .section {
    padding: 48px 24px;
  }
  .page-head {
    padding: 44px 24px 36px;
  }
  .detail-head,
  .directory-head {
    margin: 16px 24px 0;
    padding: 36px 28px 32px;
  }
  .tinted {
    margin: 0 24px;
    padding: 40px 24px;
  }
  .principles {
    margin: 18px 24px 0;
    padding: 18px 24px;
  }
  .owner-band {
    margin: 0 24px 40px;
    padding: 28px;
  }
  .cta-band {
    margin: 0 24px 48px;
    padding: 36px 28px;
  }
  .filters {
    display: inline-flex;
    width: auto;
    border-radius: 9999px;
    padding: 5px;
  }
  .app-subnav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin: 36px 24px 0;
    padding: 12px 16px;
  }
  .app-subnav + .detail-grid {
    padding-top: 20px;
  }
  .app-subnav-main {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .app-subnav-links {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    gap: 6px;
  }
  .app-subnav-link {
    width: auto;
    display: inline-flex;
    padding: 9px 14px;
  }
  .app-subnav > .button {
    width: auto;
  }
  .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .arch-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
  }
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .metrics {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
  }
  .metric {
    padding: 22px 24px;
  }
  .metric strong {
    font-size: 32px;
  }
  .example-panel,
  .scope-panel,
  .panel {
    padding: 26px;
  }
}

/* About Page — Founder Profile & Architecture Stage (Mobile First) */
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.about-head .eyebrow {
  color: #6ee7b7;
}
.about-head .actions .button:not(.secondary) {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}
.about-head .actions .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.2);
}
.about-head .actions .button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}
.about-hero-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.about-hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.about-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.about-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-stat strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #34d399;
}
.about-stat span {
  font-size: 12px;
  line-height: 1.4;
  color: #cbd5e1;
}
.about-hero-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #6ee7b7;
}
.about-founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.about-founder-card {
  border-top: 3px solid #10b981;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-founder-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-monogram {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  font-size: 22px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #34d399;
  border: 1.5px solid #334155;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.35);
}
.about-founder-top h2 {
  font-size: 24px;
  margin: 2px 0 4px;
}
.about-founder-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0;
}
.about-founder-summary {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.about-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.about-founder-credentials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.credential-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}
.credential-row span {
  color: var(--muted);
}
.credential-row strong {
  color: var(--ink);
  font-weight: 600;
}
.about-founder-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}
.about-founder-bio h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  margin-bottom: 14px;
}
.about-founder-bio > p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.about-commitments {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.about-commitment-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.about-check {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-commitment-item strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 3px;
}
.about-commitment-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.about-pillar-card[data-pillar="0"] {
  border-top: 3px solid #10b981;
}
.about-pillar-card[data-pillar="1"] {
  border-top: 3px solid #6366f1;
}
.about-pillar-card[data-pillar="2"] {
  border-top: 3px solid #f59e0b;
}
.about-pillar-card h3 {
  margin: 16px 0 8px;
}
.about-pillar-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.about-pillar-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-app-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}
.about-app-chip:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: var(--green-dark);
}
.about-app-chip span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
}
.cta-band .actions .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}
.cta-band .actions .button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}
.onboarding-stage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.onboarding-stage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.onboarding-stage-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 6px;
  padding: 2px 7px;
  flex-shrink: 0;
}
.onboarding-stage-row strong {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  margin-right: auto;
}
.onboarding-stage-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #94a3b8;
  white-space: nowrap;
}
.onboarding-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.onboarding-faq-grid h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.onboarding-faq-grid p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* Contact Page — Engineering Desk & Direct Channels */
.contact-form-card {
  border-top: 3px solid #10b981;
}
.contact-form-header {
  margin-bottom: 18px;
}
.contact-form-header h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  margin: 4px 0 8px;
}
.contact-form-intro {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.contact-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.contact-field-group {
  margin-bottom: 20px;
}
.contact-field-group label {
  margin-bottom: 6px;
}
.contact-field-group input,
.contact-field-group textarea {
  margin-top: 0;
}
.contact-field-group input:user-invalid,
.contact-field-group textarea:user-invalid {
  border-color: #dc2626;
}
.contact-field-group .field-hint {
  margin-top: 6px;
  margin-bottom: 0;
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-direct-card {
  border-top: 3px solid #10b981;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-direct-card h3 {
  font-size: 18px;
  margin: 2px 0 0;
}
.contact-direct-copy {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.contact-expect-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.contact-expect-block .next-list {
  margin: 14px 0 0;
}
.contact-expect-block .next-list li:last-child {
  padding-bottom: 0;
}

/* Tablet (>= 768px) */
@media (min-width: 768px) {
  .preview {
    justify-content: center;
    padding: 6px 24px;
    font-size: 11px;
  }
  .preview a {
    position: absolute;
    right: 24px;
    font-size: 11px;
  }
  .header-inner {
    display: flex;
    height: 76px;
    padding: 0 24px;
    flex-wrap: nowrap;
    gap: 16px;
  }
  .brand {
    font-size: 20px;
    gap: 12px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 22px;
    border-radius: 10px;
  }
  .brand-mark span {
    font-size: 10px;
    right: 4px;
    top: 3px;
  }
  .brand-sub {
    font-size: 9px;
    letter-spacing: 0.22em;
    margin-top: 4px;
  }
  .site-nav {
    width: auto;
    border-top: 0;
    padding-top: 0;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
  }
  .site-nav a {
    padding: 7px 11px;
    border-radius: 8px;
  }
  .header-inner > .button {
    margin-inline-start: 0;
    padding: 9px 15px;
    font-size: 13px;
  }
  .principles {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13px;
  }
  .section-heading {
    flex-direction: row;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
  }
  .group-grid,
  .cards,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .owner-band {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 32px 36px;
  }
  .cta-band {
    flex-direction: row;
    align-items: center;
    padding: 40px;
    gap: 28px;
  }
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  footer {
    padding: 40px 24px;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 30px;
  }
  .footer-note {
    text-align: right;
  }
}

/* Desktop (>= 1024px) */
@media (min-width: 1024px) {
  .preview a {
    right: 32px;
  }
  .preview-detail {
    display: inline;
  }
  .header-inner {
    padding: 0 40px;
    gap: 24px;
  }
  .site-nav {
    gap: 6px;
    font-size: 13.5px;
  }
  .site-nav a {
    padding: 7px 14px;
  }
  .hero {
    margin: 20px 40px 0;
    padding: 64px 48px 56px;
    grid-template-columns: 1.08fr 1fr;
    gap: 52px;
  }
  .principles {
    margin: 20px 40px 0;
    padding: 18px 28px;
  }
  .section {
    padding: 64px 40px;
  }
  .tinted {
    margin: 0 40px;
    padding: 56px 40px;
  }
  .group-grid,
  .cards,
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  .card {
    padding: 26px 26px 20px;
  }
  .group-card,
  .steps article {
    padding: 28px;
  }
  .owner-band {
    margin: 0 40px 48px;
    padding: 36px 40px;
  }
  .cta-band {
    margin: 0 40px 64px;
    padding: 48px;
  }
  footer {
    padding: 44px 40px;
  }
  .page-head {
    padding: 56px 40px 44px;
  }
  .detail-head,
  .directory-head {
    margin: 20px 40px 0;
    padding: 48px 44px 40px;
  }
  .app-subnav {
    margin: 44px 40px 0;
    padding: 12px 20px;
  }
  .app-subnav + .detail-grid {
    padding-top: 24px;
  }
  .detail-hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.95fr);
    gap: 36px;
  }
  .about-hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
    gap: 40px;
  }
  .about-founder-grid {
    grid-template-columns: minmax(310px, 0.85fr) minmax(0, 1.45fr);
    gap: 32px;
  }
  .about-founder-card {
    position: sticky;
    top: 96px;
    padding: 28px;
  }
  .about-founder-bio {
    padding: 36px;
  }
  .onboarding-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
    gap: 48px;
  }
  .form-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 48px;
  }
  .hero-metrics-card,
  .example-panel,
  .scope-panel,
  .panel,
  .architecture-panel {
    padding: 28px;
  }
  .benefit-card-large {
    padding: 28px;
  }
  .use-case-card,
  .comparison-card {
    padding: 26px;
  }
}

/* Page identities: shared type and controls, purpose-specific compositions. */
.site-nav a[aria-current] {
  background: var(--emerald-50);
  color: var(--emerald-900);
  box-shadow: inset 0 -2px var(--emerald-700);
}
.directory-index,
.studio-head,
.journey-head,
.product-head {
  --page-accent: var(--emerald-700);
  --page-tint: var(--emerald-50);
  overflow-wrap: anywhere;
}
.directory-index {
  display: grid;
  gap: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
  border-top: 5px solid var(--emerald-700);
  border-radius: 0 0 24px 24px;
}
.directory-index h1,
.studio-head h1,
.journey-head h1 {
  color: var(--ink);
}
.directory-index h1 span,
.studio-head h1 span,
.journey-head h1 span {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--page-accent);
}
.directory-index .lead,
.studio-head .lead,
.journey-head .lead {
  color: var(--muted);
}
.directory-index .badge {
  color: var(--emerald-900);
  background: var(--emerald-50);
}
.directory-map {
  padding: 14px 16px;
  background: var(--slate-50);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.directory-map .eyebrow {
  margin-bottom: 6px;
}
.directory-map a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.directory-map a > span:last-child {
  grid-column: auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.directory-map a:hover strong {
  text-decoration: underline;
}
.directory-map p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.directory-number {
  font: 15px var(--font-mono);
  font-weight: 600;
  color: var(--emerald-700);
}
.studio-head {
  --page-accent: #92400e;
  background: #faf5eb;
  border: 1px solid #e7ddcb;
  border-radius: 2px;
  box-shadow: none;
}
.studio-head .eyebrow {
  color: #92400e;
}
.studio-head h1 {
  font-family: Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.studio-head .about-hero-card {
  background: transparent;
  border: 0;
  border-left: 1px solid #d5c5aa;
  border-radius: 0;
  box-shadow: none;
}
.studio-head .about-hero-card-head {
  color: #785c38;
  border-color: #d5c5aa;
}
.studio-head .about-stat {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d5c5aa;
  border-radius: 0;
  padding: 20px 0;
}
.studio-head .about-stat strong {
  color: #78451b;
  font-size: 30px;
}
.studio-head .about-stat span {
  color: #645640;
}
.studio-head .about-hero-foot {
  color: #645640;
  border-color: #d5c5aa;
}
.studio-head .window-dots {
  display: none;
}
.studio-head .actions .button.secondary,
.journey-head .actions .button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.journey-head {
  --page-accent: #5b3caf;
  background: #f2effb;
  border: 1px solid #dcd4f0;
  box-shadow: none;
}
.journey-head .eyebrow {
  color: #5b3caf;
}
.journey-head .about-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}
.journey-head .about-hero-card {
  background: var(--surface);
  border: 1px solid #dcd4f0;
  box-shadow: none;
}
.journey-head .about-hero-card-head {
  color: #5b3caf;
  border-color: #dcd4f0;
}
.journey-head .onboarding-stage-row {
  flex-wrap: wrap;
  min-inline-size: 0;
  background: #f8f6fd;
  border-color: #dcd4f0;
}
.journey-head .onboarding-stage-row strong {
  color: var(--ink);
}
.journey-head .onboarding-stage-num {
  color: #5b3caf;
  background: #e9e2f8;
  border-color: #dcd4f0;
}
.journey-head .onboarding-stage-pill {
  white-space: normal;
  color: #5b3caf;
  background: #f2effb;
  border-color: #dcd4f0;
}
.journey-head .about-hero-foot {
  color: #5b3caf;
  border-color: #dcd4f0;
}
.journey-head .window-dots {
  display: none;
}
.product-head[data-pillar="1"] {
  --page-accent: #1d4ed8;
  --page-tint: var(--blue-50);
}
.product-head[data-pillar="2"] {
  --page-accent: #92400e;
  --page-tint: var(--amber-50);
}
.product-wayfinding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: 28px;
  font: 12px var(--font-mono);
}
.product-wayfinding .back {
  margin: 0;
}
.product-wayfinding > span {
  min-inline-size: 0;
}
.product-wayfinding > span > span {
  margin-inline: 8px;
  opacity: 0.5;
}
.product-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.product-hero-layout > * {
  min-inline-size: 0;
}
.product-head-overview {
  background: var(--page-tint);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: none;
}
.product-head-overview h1 {
  color: var(--ink);
}
.product-head-overview .lead {
  color: var(--muted);
}
.product-head-overview .eyebrow,
.product-head-overview .actions .text-link {
  color: var(--page-accent);
}
.product-head-overview .back {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--line);
}
.product-head-overview .badge,
.product-head-benefits .badge {
  color: var(--emerald-900);
  background: var(--emerald-50);
  border-color: var(--emerald-200);
}
.product-preview {
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--page-accent);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 35px -20px #0f172a55;
}
.product-preview-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.product-preview-head > span:first-child {
  color: var(--page-accent);
}
.product-preview-head svg {
  width: 24px;
  height: 24px;
}
.product-preview-head .eyebrow {
  margin: 0 0 0 auto;
}
.product-record {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.product-record > span:last-child {
  grid-column: 2;
  justify-self: start;
}
.product-record strong {
  font: 600 13px var(--font-mono);
}
.product-record p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.record-index {
  font: 12px var(--font-mono);
  color: var(--subtle);
  padding-top: 2px;
}
.product-preview-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 11px;
  color: var(--muted);
}
.product-preview-foot a {
  color: var(--page-accent);
  font-weight: 700;
}
/* Each operational area uses the output format that best fits its work. */
.preview-pillar-0 .product-record {
  border-left: 3px solid var(--emerald-200);
  margin: 12px;
  background: var(--slate-50);
  border-radius: 6px;
}
.preview-pillar-1 .product-record {
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 63px,
    #e2e8f033 64px
  );
}
.preview-pillar-2 .product-record {
  margin: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.product-head-how {
  background: var(--slate-900);
  border-radius: 8px;
  border-top: 4px solid var(--blue-200);
  box-shadow: none;
}
.product-head-how .product-hero-copy > .eyebrow {
  color: var(--blue-200);
}
.workflow-seal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border: 1px dashed var(--slate-500);
  color: var(--blue-200);
  font: 13px var(--font-mono);
  border-radius: 100px;
}
.workflow-seal b {
  transform: rotate(-90deg);
}
.workflow-glance {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
  border-top: 1px solid var(--slate-600);
}
.workflow-glance li {
  display: grid;
  gap: 10px;
  padding: 20px 12px;
  border-bottom: 1px solid var(--slate-600);
  min-inline-size: 0;
}
.workflow-glance li > span {
  font: 22px var(--font-mono);
  color: var(--blue-200);
}
.workflow-glance strong {
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate-50);
}
.workflow-glance small {
  font-size: 12px;
  color: var(--slate-300);
}
.product-head-benefits {
  background: #fffdf6;
  color: var(--ink);
  border: 1px solid #eadfbd;
  border-radius: 0;
  box-shadow: none;
}
.product-head-benefits h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.8rem);
}
.product-head-benefits .lead {
  color: var(--muted);
}
.product-head-benefits .eyebrow,
.product-head-benefits .actions .text-link {
  color: #855510;
}
.product-head-benefits .back {
  color: var(--muted);
  background: white;
  border-color: #eadfbd;
}
.product-head-overview .back:is(:hover, :focus-visible),
.product-head-benefits .back:is(:hover, :focus-visible) {
  color: var(--ink);
  background: var(--slate-100);
  border-color: var(--slate-500);
}
.product-head-overview .actions .text-link:is(:hover, :focus-visible),
.product-head-benefits .actions .text-link:is(:hover, :focus-visible) {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.outcome-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 36px;
  border-top: 1px solid #d5c5aa;
  gap: 0;
}
.outcome-strip > div {
  padding: 24px 16px;
  border-bottom: 1px solid #d5c5aa;
  min-inline-size: 0;
}
.outcome-strip strong {
  display: block;
  font-size: 19px;
  line-height: 1.4;
}
.workflow-content .pipeline-card {
  border-radius: 4px;
  border-left: 3px solid var(--blue-600);
  box-shadow: none;
}
.workflow-content .pipeline-num {
  background: var(--blue-50);
  color: #1d4ed8;
  border-color: var(--blue-200);
}
.benefits-content .benefit-card-large {
  border-radius: 4px;
  box-shadow: none;
  border-top: 3px solid #b78120;
}
.benefits-content .benefit-num {
  color: #855510;
  background: var(--amber-50);
  border-color: var(--amber-200);
}
.request-head {
  margin: 20px 16px 0;
  padding: 24px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  border-left: 5px solid var(--emerald-700);
  border-radius: 0 20px 20px 0;
}
.apply-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  background-color: #f8fafc;
  background-image:
    radial-gradient(
      ellipse 70% 80% at 0% 0%,
      rgba(16, 185, 129, 0.14),
      transparent 65%
    ),
    radial-gradient(
      ellipse 60% 70% at 100% 100%,
      rgba(37, 99, 235, 0.08),
      transparent 65%
    ),
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    28px 28px,
    28px 28px;
  color: var(--ink);
  border: 1px solid #cbd5e1;
  border-left: 6px solid var(--emerald-700);
  border-radius: 20px;
  box-shadow: 0 14px 34px -18px rgba(15, 23, 42, 0.14);
}
.apply-head h1 {
  color: var(--ink);
  margin-bottom: 14px;
}
.apply-head h1 span {
  background: linear-gradient(135deg, #047857 0%, #0f766e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.apply-head .lead {
  color: var(--muted);
  margin-bottom: 20px;
}
.apply-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.apply-eyebrow-row .eyebrow {
  margin-bottom: 0;
  color: var(--emerald-800);
}
.apply-eyebrow-sep {
  color: #94a3b8;
  font-weight: 700;
}
.apply-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 9999px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.apply-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.apply-guarantees > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  color: var(--muted);
  box-shadow: var(--shadow-xs);
}
.apply-guarantees > span strong {
  color: var(--ink);
  font-weight: 600;
}
.apply-spec-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.12);
}
.apply-spec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--ink);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.apply-spec-status {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-size: 10px;
}
.apply-spec-body {
  padding: 16px 18px;
}
.apply-spec-selected {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.apply-spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--emerald-700);
  margin-bottom: 4px;
}
.apply-spec-selected strong {
  display: block;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.apply-spec-selected p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.apply-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.apply-spec-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.apply-spec-grid span {
  font-size: 11px;
  color: var(--subtle);
}
.apply-spec-grid strong {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
}
.apply-spec-foot {
  padding: 10px 18px;
  background: #f1f5f9;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
[data-page="apply"] .form-layout {
  padding-top: 28px;
}
[data-page="privacy"] .page-head {
  background: var(--emerald-50);
  border-left: 6px solid var(--emerald-700);
}
[data-page="terms"] .page-head {
  background: var(--amber-50);
  border-top: 6px solid #92400e;
}
[data-page="privacy"] .narrow,
[data-page="terms"] .narrow {
  max-width: 850px;
  margin-inline: auto;
}
[data-page="terms"] h1 {
  font-family: Georgia, serif;
}
.workspace-access-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.workspace-form-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.workspace-form-header h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.workspace-form-header p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
}
.workspace-trust-pills {
  margin-top: 2px;
}
.workspace-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
@media (min-width: 640px) {
  .workflow-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-record {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .product-record > span:last-child {
    grid-column: auto;
  }
  .outcome-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .outcome-strip > div + div {
    border-left: 1px solid #d5c5aa;
  }
  .journey-head .onboarding-stage-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .journey-head .onboarding-stage-row {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 14px;
    padding: 20px;
  }
  .journey-head .onboarding-stage-num {
    font-size: 24px;
    width: 48px;
    height: 48px;
  }
}
@media (min-width: 1024px) {
  .directory-index {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 32px;
    padding-block: 32px;
  }
  .apply-head {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 36px;
    padding: 34px 38px;
  }
  .studio-head {
    padding-block: 64px;
  }
  .studio-head h1 {
    font-size: clamp(3rem, 4.5vw, 4.5rem);
  }
  .journey-head .about-hero-grid > div:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 52px;
  }
  .journey-head .about-hero-grid > div:first-child > .eyebrow {
    grid-column: 1 / -1;
  }
  .journey-head h1 {
    grid-row: span 2;
    margin-top: 12px;
  }
  .journey-head .onboarding-stage-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .journey-head .onboarding-stage-pill {
    white-space: normal;
  }
  .product-head-overview .product-hero-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 42px;
  }
  .product-head-how .product-hero-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 60px;
  }
  .workflow-seal {
    aspect-ratio: 1;
    flex-direction: column;
  }
  .workflow-seal b {
    transform: none;
  }
  .workflow-glance {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .workflow-glance li + li {
    border-left: 1px solid var(--slate-600);
    padding-left: 24px;
  }
  .product-head-benefits .product-hero-copy {
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
  }
  .product-head-benefits .lead {
    margin-inline: auto;
  }
  .product-head-benefits .actions {
    justify-content: center;
  }
  .workflow-content {
    grid-template-columns: minmax(0, 1fr);
  }
  .workflow-content .pipeline-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .workflow-content > aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .benefits-content {
    grid-template-columns: minmax(0, 1fr);
  }
  .benefits-content .benefit-cards-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .benefits-content > aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .request-head {
    margin-inline: 40px;
    padding: 40px;
  }
}

/* ==========================================================================
   Accessibility & Media Queries: Reduced Motion + High Contrast
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover,
  .group-card:hover,
  .bento-card:hover,
  .button:hover {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  h1 span {
    background: none;
    -webkit-text-fill-color: CanvasText;
    color: CanvasText;
  }
  .button,
  .card,
  .group-card,
  .bento-card,
  .panel,
  .hero-visual,
  .report,
  .pill,
  .impact-pill {
    forced-color-adjust: auto;
    border: 1px solid CanvasText;
  }
  .dot,
  .pillar-dot {
    background: Highlight;
    forced-color-adjust: none;
  }
}
