/* =============================================================================
   CSMS Orchestrator - public site
   Aesthetic: editorial paper + engineering precision.
   Fraunces (display, SOFT axis pushed soft on huge sizes) · DM Sans (body) ·
   JetBrains Mono (metadata). Paper-cream + deep ink + CSMS green + coral accent.
   =============================================================================*/

:root {
  /* ---- palette ------------------------------------------------------------*/
  --paper:        #f1ebde;        /* warm cream, the page colour */
  --paper-2:      #ece5d3;        /* slight shade for cards on cards */
  --paper-3:      #e2d9c2;        /* deeper cream - rules / dividers */
  --ink:          #0b1410;        /* near-black, slightly green */
  --ink-2:        #2a3a32;        /* secondary ink, body copy */
  --ink-3:        #6a7a72;        /* muted */
  --green:        #15724e;        /* CSMS brand green */
  --green-deep:   #0a3a28;        /* deeper green for solid blocks */
  --green-soft:   #4f9e7f;
  --coral:        #d94a26;        /* danger / regulation accent */
  --coral-deep:   #a83815;
  --line:         rgba(11,20,16,0.14);
  --line-soft:    rgba(11,20,16,0.08);

  /* ---- typography ----------------------------------------------------------*/
  --f-display: "Fraunces", "Times New Roman", Times, serif;
  --f-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* type scale tied to viewport for fluid editorial feel */
  --t-hero:    clamp(56px, 11.5vw, 180px);
  --t-hero-i:  clamp(48px, 10vw, 160px);
  --t-h2:      clamp(36px, 5.5vw, 84px);
  --t-h3:      clamp(22px, 2.4vw, 32px);
  --t-body:    16.5px;
  --t-lede:    clamp(18px, 1.6vw, 22px);
  --t-meta:    11.5px;

  /* ---- spacing ------------------------------------------------------------*/
  --pad-x:     clamp(22px, 5vw, 88px);
  --gut:       clamp(20px, 3vw, 40px);
  --bigpad:    clamp(48px, 6vw, 96px);

  /* ---- radii & motion -----------------------------------------------------*/
  --r-1:  8px;
  --r-2:  16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
}

/* =============================================================================
   reset / base
   =============================================================================*/
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  font-feature-settings: "ss01" on, "ss02" on, "cv11" on;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* subtle paper grain via SVG noise */
  background-image:
    radial-gradient(at 20% 0%, rgba(21,114,78,0.06), transparent 40%),
    radial-gradient(at 95% 12%, rgba(217,74,38,0.04), transparent 35%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.4'/></svg>");
}
::selection { background: var(--green); color: var(--paper); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.mono { font-family: var(--f-mono); font-feature-settings: "zero" on; letter-spacing: 0.02em; }
.kbd { font-family: var(--f-mono); font-size: 0.7em; padding: 2px 8px; border: 1px solid var(--ink); border-radius: 999px; vertical-align: 0.18em; margin-left: 0.4ch; }

/* container - wide editorial frame */
.hero, .why, .platform, .domains, .how, .standards, .pricing, .cta, .demo, .site-footer > * {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* =============================================================================
   header
   =============================================================================*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad-x);
  /* Slightly denser background + a thin border so the bar separates clearly
     from the page even at the top of scroll. */
  background: color-mix(in oklab, var(--paper-2) 96%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 0 color-mix(in oklab, var(--ink) 4%, transparent);
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.site-header[data-state="scrolled"] {
  border-bottom-color: color-mix(in oklab, var(--ink) 18%, var(--line));
  background: color-mix(in oklab, var(--paper-2) 98%, transparent);
  box-shadow: 0 4px 14px -8px color-mix(in oklab, var(--ink) 25%, transparent);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-deep);
}
.brand-mark { width: 26px; height: 26px; }
.brand-name {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 14, "wght" 600, "SOFT" 0;
  font-size: 18.5px;
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-2);
}
.site-nav a {
  position: relative;
  padding: 4px 2px;
  transition: color .2s var(--ease-out);
}
.site-nav a:hover { color: var(--green-deep); }
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left center;
  transition: transform .25s var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; gap: 16px; align-items: center; }
.link-quiet { font-size: 14px; color: var(--ink-2); }
.link-quiet:hover { color: var(--green-deep); }

/* buttons */
.btn {
  --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--b-bd);
  background: var(--b-bg);
  color: var(--b-fg);
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn-solid   { --b-bg: var(--green-deep); --b-fg: var(--paper); --b-bd: var(--green-deep); }
.btn-solid:hover { --b-bg: var(--ink); --b-bd: var(--ink); box-shadow: 0 8px 24px -10px rgba(11,20,16,0.4); }
.btn-ghost   { --b-bd: rgba(11,20,16,0.3); }
.btn-ghost:hover { --b-bd: var(--ink); }
.btn-outline { --b-bg: var(--paper); }
.btn-outline:hover { --b-bg: var(--ink); --b-fg: var(--paper); --b-bd: var(--ink); }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* =============================================================================
   ticker
   =============================================================================*/
.ticker {
  background: var(--green-deep);
  color: color-mix(in oklab, var(--paper) 92%, transparent);
  padding: 9px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  gap: 36px;
  padding-left: 100%;
  animation: ticker 64s linear infinite;
}
.ticker-item b { color: #ead49a; font-weight: 600; }
.ticker-item em { color: var(--coral); font-style: normal; font-weight: 600; }
.ticker-sep { opacity: 0.4; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* =============================================================================
   hero
   =============================================================================*/
.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 90px);
  padding-bottom: clamp(40px, 6vw, 90px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.meta-line {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta-tag em { font-style: normal; color: var(--green-deep); font-weight: 700; }
.status-live {
  position: relative;
  padding-left: 14px;
}
.status-live::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(217,74,38,0.5);
  animation: pulse 2.5s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(217,74,38,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(217,74,38,0); }
  100% { box-shadow: 0 0 0 0   rgba(217,74,38,0); }
}

.hero-headline {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--t-hero);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 40;
  text-wrap: balance;
}
.hero-headline span { display: block; }
.hero-headline .hl-3 { color: var(--green-deep); font-variation-settings: "opsz" 144, "wght" 320, "SOFT" 100; font-style: italic; padding-left: clamp(20px, 6vw, 110px); }
.hero-headline .hl-4 { color: var(--ink); font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 40; padding-left: clamp(20px, 6vw, 110px); }
/* CSMS abbreviation: keep the headline's display look (no UA squiggle); the
   help cursor on hover signals the tooltip is available. */
.hero-headline .csms-abbr {
  text-decoration: none;
  cursor: help;
  font-variant: inherit;
}

.hero-sub {
  margin: 32px 0 0;
  max-width: 56ch;
  font-size: var(--t-lede);
  line-height: 1.42;
  color: var(--ink-2);
}
.hero-sub b { color: var(--ink); font-weight: 600; }

.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.cta-aside {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

/* ---- constellation ---------------------------------------------------------*/
.hero-visual {
  position: relative;
  /* Pin the constellation to the right column from row 1 so it sits next to the
     headline, while the headline, sub-copy and CTA stack down the left column. */
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  perspective: 1200px;
}
@media (max-width: 980px) {
  .hero-visual { grid-column: 1; grid-row: auto; }
}
.constellation {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 50px rgba(11,20,16,0.06));
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--ease-out);
  animation: floaty 12s ease-in-out infinite alternate;
}
@keyframes floaty {
  from { translate: 0 -4px; }
  to   { translate: 0 4px; }
}
.c-core-l1 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 9, "wght" 600, "SOFT" 0;
  font-size: 16px;
  fill: var(--green-deep);
  letter-spacing: 0.02em;
}
.c-core-l2 {
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  fill: var(--ink-3);
}
.c-node circle {
  fill: var(--paper);
  stroke: var(--green-deep);
  stroke-width: 1.4;
  transition: fill .2s var(--ease-out), stroke .2s var(--ease-out), r .2s var(--ease-out);
  cursor: pointer;
}
.c-node[data-tier="foundational"] circle { stroke: var(--green); stroke-width: 1.8; }
.c-node[data-tier="operational"]   circle { stroke: var(--ink-2); }
.c-node[data-tier="assurance"]     circle { stroke: var(--coral); }
.c-node text {
  font-family: var(--f-mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  fill: var(--ink-2);
  pointer-events: none;
}
.c-node:hover circle, .c-node.is-active circle {
  fill: var(--green-deep);
  stroke: var(--green-deep);
}
.c-node:hover text, .c-node.is-active text { fill: var(--ink); font-weight: 700; }
.c-node:hover .c-dot, .c-node.is-active .c-dot { fill: var(--paper); }
.c-dot { fill: var(--green-deep); transition: fill .2s var(--ease-out); }
#cedges path.is-on { stroke: var(--green-deep); stroke-opacity: 0.85; stroke-width: 1.3; }

.hero-visual-caption {
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.hero-visual-caption .mono { color: var(--ink-2); margin-right: 8px; }

.domain-readout {
  display: block;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--paper-2) 70%, transparent);
  border-radius: var(--r-2);
}
.dr-tag {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 6px;
}
.dr-name {
  display: block;
  font-family: var(--f-display);
  font-variation-settings: "opsz" 24, "wght" 540, "SOFT" 40;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}
.dr-blurb {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 56ch;
}

/* ---- marquee ----------------------------------------------------------------*/
.hero-marquee {
  margin-top: clamp(60px, 7vw, 100px);
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 36px;
  padding-left: 100%;
  font-family: var(--f-display);
  font-variation-settings: "opsz" 24, "wght" 320, "SOFT" 60;
  font-style: italic;
  font-size: clamp(24px, 3vw, 38px);
  color: var(--ink-2);
  animation: ticker 38s linear infinite;
}
.marquee-track span:nth-child(2n) { color: var(--green); font-style: normal; font-variation-settings: "opsz" 24, "wght" 280, "SOFT" 0; }

/* =============================================================================
   shared section bits
   =============================================================================*/
.why, .platform, .domains, .how, .standards, .pricing, .cta, .demo {
  padding-top: var(--bigpad);
  padding-bottom: var(--bigpad);
  position: relative;
}
.why-rule {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 60px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.why-rule .mono {
  color: var(--coral);
  border: 1px solid var(--coral);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.section-h {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-variation-settings: "opsz" 144, "wght" 420, "SOFT" 30;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.section-h span { display: block; }
.section-h em {
  color: var(--green-deep);
  font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 100;
  font-style: italic;
}

/* =============================================================================
   §01 why
   =============================================================================*/
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 80px);
  margin-bottom: clamp(40px, 5vw, 80px);
}
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr; } }
.why-body p { margin: 0 0 18px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 56ch; }
.why-body p b { color: var(--ink); font-weight: 600; }

.regs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .regs { grid-template-columns: 1fr; } }
.reg {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 24px 24px 20px;
  position: relative;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.reg:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(11,20,16,0.25); border-color: var(--ink-2); }
.reg header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.reg-id { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.reg-pill {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.reg[data-tone="amber"] .reg-pill { color: #b07a08; background: rgba(176,122,8,0.08); }
.reg[data-tone="hot"]   .reg-pill { color: var(--coral); background: rgba(217,74,38,0.08); }
.reg[data-tone="cool"]  .reg-pill { color: var(--green); background: rgba(21,114,78,0.08); }
.reg h3 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-variation-settings: "opsz" 24, "wght" 540, "SOFT" 30;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.reg p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.reg footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.reg[data-tone="hot"] footer { color: var(--coral); }

/* =============================================================================
   §02 platform
   =============================================================================*/
.platform { background: linear-gradient(180deg, transparent 0%, var(--paper-2) 12%, var(--paper-2) 88%, transparent 100%); }
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 980px) { .platform-grid { grid-template-columns: 1fr; } }
.plat-copy p { margin: 22px 0 0; color: var(--ink-2); max-width: 54ch; font-size: 16.5px; line-height: 1.6; }
.plat-copy p .mono { color: var(--coral); font-size: 11px; letter-spacing: 0.14em; }

.plat-stack {
  display: grid;
  gap: 12px;
  padding: 28px;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-2);
  box-shadow:
    16px 16px 0 -1px var(--paper-3),
    16px 16px 0 0    var(--ink);
}
.layer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--r-1);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease-out), background .25s var(--ease-out);
}
.layer:hover { transform: translateX(4px); }
.layer-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
}
.layer-ico { width: 15px; height: 15px; flex: none; }
.layer-meta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); justify-self: end; text-align: right; }
.l-data { background: linear-gradient(90deg, #d8eee2 0%, var(--paper) 70%); }
.l-eng  { background: linear-gradient(90deg, #f5e6d8 0%, var(--paper) 70%); }
.l-ui   { background: linear-gradient(90deg, #e6e3d3 0%, var(--paper) 70%); }
.l-ux   { background: linear-gradient(90deg, #f0e1da 0%, var(--paper) 70%); }
@media (max-width: 600px) {
  .layer { grid-template-columns: 1fr; gap: 6px; }
  .layer-tag { justify-self: start; }
  .layer-meta { justify-self: start; text-align: left; }
}

/* =============================================================================
   §03 nine domains
   =============================================================================*/
.domains-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 60px); margin-bottom: clamp(40px, 5vw, 70px); align-items: end; }
@media (max-width: 880px) { .domains-head { grid-template-columns: 1fr; } }
.dom-lede { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 50ch; }

.dom-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-2);
  overflow: hidden;
}
@media (max-width: 880px) { .dom-grid { grid-template-columns: 1fr; } }

.dom {
  background: var(--paper);
  padding: 28px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  position: relative;
  transition: background .25s var(--ease-out);
}
.dom:hover, .dom.is-active { background: var(--paper-2); }
.dom-tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dom-tier::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3);
}
.dom[data-tier="foundational"] .dom-tier { color: var(--green); }
.dom[data-tier="foundational"] .dom-tier::before { background: var(--green); }
.dom[data-tier="operational"]  .dom-tier { color: var(--ink-2); }
.dom[data-tier="operational"]  .dom-tier::before { background: var(--ink-2); }
.dom[data-tier="assurance"]    .dom-tier { color: var(--coral); }
.dom[data-tier="assurance"]    .dom-tier::before { background: var(--coral); }

.dom-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.dom-name {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 60, "wght" 540, "SOFT" 30;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.dom-short {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
  align-self: center;
}
.dom[data-tier="foundational"] .dom-short { color: var(--green); border-color: color-mix(in oklab, var(--green) 35%, var(--line)); }
.dom[data-tier="assurance"]    .dom-short { color: var(--coral); border-color: color-mix(in oklab, var(--coral) 35%, var(--line)); }
.dom-blurb { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.dom-list {
  list-style: none;
  margin: 0; padding: 16px 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.dom-list li::before { content: "→  "; color: var(--green); }
.dom-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
}

/* =============================================================================
   §04 how it works
   =============================================================================*/
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: clamp(40px, 5vw, 80px);
}
@media (max-width: 980px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative;
  padding: 28px 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
  transition: transform .25s var(--ease-out), border-color .25s var(--ease-out);
}
.pillar::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(21,114,78,0.06), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.pillar:hover { transform: translateY(-3px); border-color: var(--ink-2); }
.pillar:hover::before { opacity: 1; }
.pillar-num {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 18px;
}
.pillar h3 {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-variation-settings: "opsz" 24, "wght" 560, "SOFT" 20;
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
}
.pillar p { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.pillar-list { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 12px; color: var(--ink-2); letter-spacing: 0.02em; }
.pillar-list li { padding-left: 2px; }

/* =============================================================================
   §05 standards
   =============================================================================*/
.standards { background: var(--ink); color: var(--paper); }
.standards .why-rule { color: var(--paper); border-bottom-color: rgba(255,255,255,0.16); }
.standards .why-rule .mono { color: var(--coral); border-color: var(--coral); }
.standards .section-h { color: var(--paper); }
.standards .section-h em { color: #cdb780; }
.std-lede { max-width: 60ch; color: color-mix(in oklab, var(--paper) 78%, transparent); font-size: 16.5px; line-height: 1.6; margin: 28px 0 0; }
.std-lede .mono { color: #cdb780; }

.std-grid {
  list-style: none; margin: 50px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.14);
  border-left: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 980px) { .std-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .std-grid { grid-template-columns: 1fr; } }
.std-grid li {
  padding: 26px 24px;
  border-right: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  display: grid; gap: 6px;
  transition: background .25s var(--ease-out);
}
.std-grid li:hover { background: rgba(255,255,255,0.04); }
.std-id { color: #cdb780; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.std-name { font-family: var(--f-display); font-variation-settings: "opsz" 24, "wght" 500, "SOFT" 30; font-size: 22px; letter-spacing: -0.015em; }
.std-cat  { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in oklab, var(--paper) 60%, transparent); }

/* =============================================================================
   §06 pricing
   =============================================================================*/
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: clamp(40px, 5vw, 70px);
}
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; } }
.price {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-2);
  padding: 30px 28px 26px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 18px;
  position: relative;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.price:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -25px rgba(11,20,16,0.4); }
.price header { display: flex; align-items: center; justify-content: space-between; }
.price-name { font-family: var(--f-display); font-variation-settings: "opsz" 24, "wght" 560, "SOFT" 30; font-size: 26px; letter-spacing: -0.015em; }
.price-tag { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.price-amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-currency { font-family: var(--f-display); font-variation-settings: "opsz" 24, "wght" 380, "SOFT" 0; font-size: 28px; color: var(--ink-2); }
.price-num { font-family: var(--f-display); font-variation-settings: "opsz" 144, "wght" 440, "SOFT" 40; font-size: clamp(48px, 5.5vw, 76px); line-height: 1; letter-spacing: -0.035em; color: var(--ink); }
.price-cycle { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); margin-left: 6px; }
.price-list { list-style: none; margin: 0; padding: 18px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.price-list li::before { content: "✓"; color: var(--green); margin-right: 8px; font-weight: 700; }
.price-list li b { color: var(--ink); font-weight: 600; }
.price-fine { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); text-align: center; margin: 0; }
.price-featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-8px);
}
.price-featured .price-name,
.price-featured .price-num { color: var(--paper); }
.price-featured .price-tag { color: #cdb780; }
.price-featured .price-currency { color: color-mix(in oklab, var(--paper) 70%, transparent); }
.price-featured .price-list { color: color-mix(in oklab, var(--paper) 80%, transparent); border-color: rgba(255,255,255,0.18); }
.price-featured .price-list li b { color: var(--paper); }
.price-featured .price-list li::before { color: #cdb780; }
.price-featured .price-fine { color: color-mix(in oklab, var(--paper) 60%, transparent); }
.price-featured .price-cycle { color: color-mix(in oklab, var(--paper) 60%, transparent); }
.price-featured .btn-solid { --b-bg: var(--paper); --b-fg: var(--ink); --b-bd: var(--paper); }
.price-featured .btn-solid:hover { --b-bg: #cdb780; --b-bd: #cdb780; }
.price-featured::before {
  content: "RECOMMENDED";
  position: absolute; top: -1px; right: 22px;
  background: var(--coral); color: var(--paper);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; padding: 5px 12px;
  border-radius: 0 0 8px 8px;
}
@media (max-width: 980px) { .price-featured { transform: none; } }

.price-disc { margin: 36px auto 0; max-width: 78ch; text-align: center; font-size: 11.5px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }

/* =============================================================================
   trial CTA
   =============================================================================*/
.cta { background: var(--green-deep); color: var(--paper); }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .cta-grid { grid-template-columns: 1fr; } }
.cta .section-h { color: var(--paper); }
.cta .section-h em { color: #cdb780; }
.cta-headline p { color: color-mix(in oklab, var(--paper) 75%, transparent); font-size: 17px; margin-top: 24px; max-width: 40ch; }

.cta-form {
  background: var(--paper);
  color: var(--ink);
  padding: 30px;
  border-radius: var(--r-2);
  display: grid;
  gap: 14px;
  box-shadow: 24px 24px 0 -1px rgba(0,0,0,0.2), 24px 24px 0 0 rgba(0,0,0,0);
}
.field { display: grid; gap: 6px; }
.field-label { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select {
  font: inherit;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(21,114,78,0.18);
}
.cta-fine { margin: 4px 0 0; font-size: 10.5px; text-align: center; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* =============================================================================
   demo
   =============================================================================*/
.demo-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px); align-items: end; }
@media (max-width: 880px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-body p { color: var(--ink-2); font-size: 17px; line-height: 1.55; margin: 0 0 22px; max-width: 50ch; }
.demo-body .demo-fine { margin: 36px 0 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

/* =============================================================================
   footer
   =============================================================================*/
.site-footer {
  margin-top: 60px;
  background: var(--ink);
  color: color-mix(in oklab, var(--paper) 85%, transparent);
  padding-top: 60px;
  padding-bottom: 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { color: var(--paper); }
.foot-tag { margin: 18px 0 0; color: color-mix(in oklab, var(--paper) 60%, transparent); font-size: 14px; max-width: 36ch; }
.foot-tag a { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.foot-col h4 {
  margin: 0 0 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cdb780;
  font-weight: 500;
}
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.foot-col a { color: color-mix(in oklab, var(--paper) 80%, transparent); }
.foot-col a:hover { color: var(--paper); }
.foot-rule {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 50%, transparent);
}

/* =============================================================================
   reveals
   =============================================================================*/
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .05s; }
[data-reveal-delay="2"] { transition-delay: .12s; }
[data-reveal-delay="3"] { transition-delay: .2s; }
[data-reveal-delay="4"] { transition-delay: .28s; }
[data-reveal-delay="5"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* small refinements */
@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-actions .link-quiet { display: none; }
  .meta-line { gap: 12px; }
  .meta-tag { font-size: 10px; }
}
