/* ChangeGuard AI marketing site. Design system ported from the product app
   (controller/ui theme.js + primitives/tokens.js): light, indigo, Inter +
   JetBrains Mono, tight spacing, mono metrics, no serif, no italic.
   v8 (2026-11): one stylesheet, one tile pattern, no dead rules. v8.1 adds the
   fluid type scale (v8.2 re-tunes it to a restrained, medium-weight enterprise scale), the product-capture detail and lightbox, and the sequenced
   lifecycle reveal. Motion is
   progressive enhancement: nothing below hides or moves without html.motion-ok,
   which site.js adds only when prefers-reduced-motion is off. */

:root {
  --bg: #f7f7f9;
  --bg-2: #ffffff;
  --bg-3: #eef0f4;
  --bg-hover: rgba(79,70,229,0.06);
  --border: #e4e6ec;
  --border-strong: #cfd3dd;
  --text: #16181d;
  --text-2: #454a57;
  --muted: #656a78; /* 4.7:1 on --bg-3, 5.0:1 on --bg: the 11px eyebrows and mono labels pass WCAG AA on every surface */
  --subtle: #9ba0ac;
  --indigo: #4f46e5;
  --indigo-ink: #4338ca;
  --indigo-soft: #f6f6fe;
  --indigo-line: #c7c9f4;
  --safe: #0b7a57;    /* verdict tones darkened one step from the app theme so SHIP/HOLD/BLOCK text
  --caution: #96570a;    and the solid badges reach 4.5:1 on white and on --bg (WCAG AA) */
  --risk: #c53030;
  --teal: #0d9488;
  --badge-info-bg: #4f46e514; --badge-info-fg: #4338ca;
  --badge-pass-bg: #0d8a631a; --badge-pass-fg: #0a6e4f;
  --badge-warn-bg: #b26a051a; --badge-warn-fg: #96570a;
  --badge-crit-bg: #d13c3b1a; --badge-crit-fg: #b32423;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --r-sm: 3px; --r-md: 4px; --r-lg: 6px; --r-xl: 8px; --r-2xl: 12px; --r-full: 999px;
  --max: 1160px;
  --measure: 720px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.04);
  --shadow-md: 0 4px 16px rgba(16,24,40,0.06);
  --shadow-lg: 0 18px 48px rgba(16,24,40,0.10);
}

/* ---- base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--indigo-ink); text-decoration: none; transition: color 0.15s ease, text-decoration-color 0.15s ease; }
a:hover { text-decoration: underline; }
/* Links inside running text are marked by more than color (WCAG 1.4.1): a
   light underline that darkens on hover. Buttons and arrow links are excluded. */
main p a:not(.btn):not(.link-more), main li a:not(.btn), main td a, main dd a, main figcaption a, main .note a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: var(--indigo-line); }
main p a:not(.btn):not(.link-more):hover, main li a:not(.btn):hover, main td a:hover, main dd a:hover, main figcaption a:hover, main .note a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: var(--r-sm); }
[id] { scroll-margin-top: 76px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.narrow { max-width: var(--measure); }
.narrow.center { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.v-safe { color: var(--safe); } .v-caution { color: var(--caution); } .v-risk { color: var(--risk); }
.skip { position: absolute; left: -999px; top: 0; background: var(--indigo); color: #fff; padding: 8px 14px; border-radius: var(--r-md); z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ---- announcement strip (one campaign line above the header; not sticky) ---- */
.announce { background: var(--indigo-soft); border-bottom: 1px solid var(--indigo-line); font-size: 14px; font-weight: 500; text-align: center; }
.announce a { display: block; padding: 9px 0; color: var(--indigo-ink); }

/* ---- header / nav ---- */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(247,247,249,0.88); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .bm { display: none; flex: none; }
.brand .wm { white-space: nowrap; }
.brand b { color: var(--indigo); font-weight: 600; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 500; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px; background: var(--indigo); transition: right 0.18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links .nav-docs { color: var(--muted); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .btn-primary { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--r-md); padding: 6px 10px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; color: var(--text-2); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-family: var(--sans); font-size: 14px; font-weight: 600; border-radius: var(--r-lg); padding: 9px 16px; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease; }
.btn-primary { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.btn-primary:hover { background: var(--indigo-ink); text-decoration: none; box-shadow: 0 4px 14px rgba(79,70,229,0.28); }
.btn-secondary { background: var(--bg-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--muted); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-3); text-decoration: none; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.motion-ok .btn:hover { transform: translateY(-1px); }
.motion-ok .btn:active { transform: translateY(0) scale(0.985); transition-duration: 0.06s; }
.btn:active { box-shadow: none; }
.cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.link-more { font-size: 15px; font-weight: 500; }

/* ---- badges (claim classes: one vocabulary, one style per class) ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-full); border: 1px solid transparent; white-space: nowrap; vertical-align: middle; }
.badge-live { background: var(--badge-pass-bg); color: var(--badge-pass-fg); }
.badge-proven { background: var(--badge-pass-bg); color: var(--badge-pass-fg); border-color: #0d8a6355; }
.badge-supported { background: var(--badge-info-bg); color: var(--badge-info-fg); }
.badge-ea { background: var(--badge-warn-bg); color: var(--badge-warn-fg); }
.badge-roadmap { background: transparent; color: var(--muted); border-color: var(--border-strong); }
.badge-vision { background: var(--bg-3); color: var(--muted); }
.badge-ship { background: var(--safe); color: #fff; letter-spacing: 0.06em; }
.badge-hold { background: var(--caution); color: #fff; letter-spacing: 0.06em; }
.badge-block { background: var(--risk); color: #fff; letter-spacing: 0.06em; }
.claims { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.claims span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- sections and type ---- */
section { padding: 88px 0; }
section.tight { padding: 48px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
section.alt + section.alt { border-top: none; }
/* Fluid type scale (v8.2, 2026-11-09, founder decision): the restrained treatment of enterprise
   cloud sites such as aws.amazon.com, in Inter. Semi-bold (600) headings at 30 to 44px (display) and
   24 to 32px (sections, 32px from about 1200px wide) with near-normal tracking and 1.2 to 1.25 line height, 17 to 20px leads,
   16px body. The clamps settle at 390, 768, 1024 and 1440px without a breakpoint. */
h1 { font-size: clamp(30px, 1.45rem + 1.5vw, 44px); line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(24px, 1.1rem + 1.1vw, 32px); line-height: 1.25; letter-spacing: -0.008em; font-weight: 600; margin-bottom: 14px; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.006em; line-height: 1.3; }
p.lead { font-size: clamp(17px, 1rem + 0.3vw, 20px); line-height: 1.5; color: var(--text-2); max-width: 62ch; text-wrap: pretty; }
.section-head { max-width: var(--measure); margin-bottom: 44px; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head.center { max-width: 800px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p.lead { margin-left: auto; margin-right: auto; }
.section-head p.lead { margin-top: 10px; }
.prose { max-width: var(--measure); }
.prose p { color: var(--text-2); margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(22px, 1.1rem + 0.6vw, 28px); margin-top: 36px; }
.prose h3 { margin-top: 22px; margin-bottom: 6px; }
.prose ul, .prose ol { padding-left: 22px; color: var(--text-2); margin-bottom: 14px; }
.prose li { margin-bottom: 6px; }

/* ---- hero ---- */
.hero { padding: 96px 0 72px; }
.hero h1 { max-width: 28ch; }
.hero .lead { max-width: 56ch; margin-top: 20px; color: var(--text); }
.hero .eyebrow { display: block; margin-bottom: 20px; }
.hero-note { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); line-height: 1.7; }
.hero.center { text-align: center; }
.hero.center h1, .hero.center .lead { margin-left: auto; margin-right: auto; }
.hero.center .cta-row { justify-content: center; }

/* ---- the one tile: .card ---- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: 22px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 6px; font-size: 18px; }
.card .badge + h3, .card .badge + .h3 { margin-top: 10px; }
.card p { color: var(--text-2); font-size: 15px; }
.card p + p { margin-top: 8px; }
.card .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }
.card.quiet { background: var(--bg); }
.card.accent { border-color: var(--indigo); background: var(--indigo-soft); }
.card .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--indigo-ink); display: block; margin-bottom: 8px; font-weight: 500; }
.feature-list { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.feature-list li::before { content: "✓"; color: var(--safe); font-weight: 700; flex: none; }
.feature-list.no li::before { content: "✕"; color: var(--risk); }
.feature-list li b { color: var(--text); font-weight: 600; }

/* ---- product screenshot frame ---- */
/* Product captures: one frame treatment everywhere (same radius, border and shadow), the
   homepage feature a step deeper. Every <img> carries width/height, so nothing shifts. */
.shot { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 10px 30px rgba(16,24,40,0.07); margin: 0; }
.shot .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-3); }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: inline-block; }
.shot .bar span { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 8px; }
.shot .bar .expand { margin-left: auto; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--bg-2); color: var(--text-2); white-space: nowrap; }
.shot .bar .expand:hover { color: var(--text); border-color: var(--muted); text-decoration: none; }
.shot img { width: 100%; height: auto; display: block; }
.shot video { width: 100%; height: auto; display: block; background: #0d0f14; }
.shot .shot-link { display: block; }
.shot .shot-link:focus-visible { outline-offset: -3px; border-radius: 0; }
.shot figcaption { padding: 13px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }
.shot.feature { box-shadow: 0 1px 2px rgba(16,24,40,0.05), 0 24px 60px rgba(16,24,40,0.12), 0 0 0 1px rgba(79,70,229,0.05); margin-top: 8px; }
.motion-ok .shot.feature { transition: box-shadow 0.3s ease; }
/* The magnified detail: the same capture, cropped to its judgment panel at native scale. Percent
   sizes make the crop follow the box; on narrow screens the box keeps native size and scrolls. */
.detail { max-width: 760px; margin: 28px auto 0; }
.zoom { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 10px 30px rgba(16,24,40,0.07); }
.zoom-in { position: relative; width: 100%; aspect-ratio: 672 / 420; overflow: hidden; }
.zoom-in img { position: absolute; left: 0; top: 0; width: calc(1440 / 672 * 100%); max-width: none; height: auto; transform: translate(calc(-737 / 1440 * 100%), calc(-105 / 900 * 100%)); }
.zoom-cap { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
/* The lightbox: the native <dialog>, the full capture at its own size, nothing else. */
dialog.lightbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: none; width: fit-content; }
dialog.lightbox::backdrop { background: rgba(16,24,40,0.78); }
.lightbox .frame { position: relative; width: fit-content; max-width: 96vw; margin: 0; background: var(--bg-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.lightbox img { display: block; width: min(96vw, 1440px, calc(86vh * 1.6)); height: auto; }
.lightbox .lightbox-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font: 600 18px/1 var(--sans); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-md); }
.lightbox .lightbox-close:hover { background: var(--bg-3); }
.lightbox figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
html.has-dialog { overflow: hidden; }
.shot.video { max-width: 960px; margin: 0 auto; }
.shot .yt { position: relative; padding-top: 56.25%; background: #0d0f14; }
.shot .yt iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; display: block; }
.annot { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; counter-reset: annot; }
.annot li { counter-increment: annot; display: flex; gap: 12px; font-size: 15px; color: var(--text-2); align-items: flex-start; line-height: 1.5; }
.annot li::before { content: counter(annot); flex: none; font-family: var(--mono); font-size: 12px; color: var(--indigo-ink); border: 1px solid var(--indigo-line); background: var(--indigo-soft); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
.annot li b { color: var(--text); display: block; margin-bottom: 2px; }

/* ---- split feature row ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.rev .txt { order: 2; }
.split h2 { font-size: clamp(22px, 1.1rem + 0.6vw, 28px); }
.split .txt .badge { margin-bottom: 12px; }

/* ---- note ---- */
.note { border-left: 3px solid var(--indigo); background: var(--bg-3); padding: 14px 16px; border-radius: 0 var(--r-lg) var(--r-lg) 0; font-size: 14px; color: var(--text-2); }
.note.warn { border-left-color: var(--caution); }

/* ---- tables ---- */
table.cg { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
table.cg th, table.cg td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.cg th { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--bg-3); }
table.cg tr:last-child td { border-bottom: none; }
table.cg code { font-family: var(--mono); font-size: 12px; background: var(--bg-3); padding: 1px 5px; border-radius: var(--r-sm); }
table.cg td b { color: var(--text); }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- code ---- */
pre.code { background: #0e1117; color: #e6edf3; border-radius: var(--r-lg); padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
pre.code .c { color: #7d8590; }
pre.code .g { color: #56d364; }
code.inline { font-family: var(--mono); font-size: 0.9em; background: var(--bg-3); padding: 1px 5px; border-radius: var(--r-sm); }

/* ---- steps (how it works) ---- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: steps; }
.steps li { counter-increment: steps; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 18px 16px; position: relative; }
.steps li .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--indigo-ink); display: block; margin-bottom: 8px; font-weight: 500; }
.steps li .k::before { content: counter(steps) " · "; }
.steps li h3 { font-size: 17px; margin-bottom: 6px; }
.steps li p { font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 22px; color: var(--subtle); font-size: 15px; z-index: 2; }
.pipe { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pipe li { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 14px; font-size: 13px; color: var(--muted); }
.pipe li b { display: block; color: var(--text); font-size: 14px; margin-bottom: 5px; }

/* ---- why: contrast pairs ---- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why .cx { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 18px 18px 20px; }
.why .cx .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.why .cx p { font-size: 16px; color: var(--text-2); line-height: 1.5; }
.why .cx.cg { border-color: var(--indigo); background: var(--indigo-soft); }
.why .cx.cg .k { color: var(--indigo-ink); }
.why .cx.cg p { color: var(--text); }

/* ---- trust strip ---- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trust .t { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.trust .t .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.trust .t b { font-size: 15px; color: var(--text); letter-spacing: -0.01em; }
.trust .t p { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.trust .t a { font-weight: 500; }

/* ---- conversion paths ---- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.paths .card { display: flex; flex-direction: column; }
.paths .card .btn { margin-top: auto; align-self: flex-start; }
.paths .card p { margin-bottom: 18px; }

/* ---- principles (security) ---- */
.princ { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; max-width: 760px; margin: 0 auto; }
.princ .p { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.princ .p b { color: var(--text); font-weight: 600; }
.princ .p .ck { color: var(--safe); font-weight: 700; flex: none; }

/* ---- ladder ---- */
.ladder { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.ladder li { display: inline-flex; align-items: center; gap: 6px; }
.ladder li::before { content: "✓"; color: var(--safe); font-weight: 700; }
.ladder li.sep { color: var(--subtle); } .ladder li.sep::before { content: "→"; color: var(--subtle); }
.ladder li.final { color: var(--safe); font-weight: 600; }

/* ---- permit card ---- */
.permit { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-2xl); box-shadow: var(--shadow-md); overflow: hidden; margin: 0; }
.permit-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--bg-3); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.permit-body { margin: 0; padding: 6px 0; }
.permit-body > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.permit-body > div:last-child { border-bottom: none; }
.permit-body dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--indigo-ink); font-weight: 600; padding-top: 2px; }
.permit-body dd { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.permit-body dd .mono { font-size: 12.5px; background: var(--bg-3); padding: 1px 6px; border-radius: var(--r-sm); }
.permit-cap { padding: 10px 16px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); background: var(--bg); }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.price { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: 24px; display: flex; flex-direction: column; }
.price.feat { border-color: var(--indigo); box-shadow: var(--shadow-md); }
.price .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.price h3 { font-size: 20px; margin-top: 8px; }
.price .amt { font-size: 15px; font-weight: 500; margin: 6px 0 2px; color: var(--text-2); }
.price ul { list-style: none; margin: 16px 0 20px; display: grid; gap: 9px; font-size: 14px; color: var(--text-2); }
.price ul li { display: flex; gap: 8px; }
.price ul li::before { content: "✓"; color: var(--safe); font-weight: 700; flex: none; }
.price ul li.ea::before { content: "◒"; color: var(--caution); }
.price ul li.no::before { content: "✕"; color: var(--risk); }
.price .btn { margin-top: auto; align-self: flex-start; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq .qa { padding: 20px 2px; border-bottom: 1px solid var(--border); }
.faq .qa:last-child { border-bottom: none; }
.faq .qa h3 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 7px; }
.faq .qa p { color: var(--text-2); font-size: 15px; }

/* ---- use-case index cards ---- */
.uc-card h3 { margin: 10px 0 6px; font-size: 17px; }
.uc-card h3 a { color: var(--text); }
.uc-card h3 a:hover { color: var(--indigo-ink); }

/* ---- CTA band ---- */
.cta-band { background: var(--text); color: #fff; border-radius: var(--r-2xl); padding: 44px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9ccd6; max-width: 56ch; margin: 8px auto 22px; }
.cta-band .cta-row { justify-content: center; margin-top: 0; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-band .btn-secondary:hover { border-color: #fff; }

/* ---- contact ---- */
.dp-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
.dp-form { padding: 24px; }
.dp-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-2); margin-top: 14px; }
.dp-form .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.dp-form input, .dp-form select, .dp-form textarea { font: inherit; font-size: 15px; color: var(--text); background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 9px 11px; width: 100%; }
.dp-form input:focus, .dp-form select:focus, .dp-form textarea:focus { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo); }
.dp-form textarea { resize: vertical; min-height: 96px; }
.dp-form button[type="submit"] { margin-top: 18px; width: 100%; }
.dp-done { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--bg-3); font-size: 14px; color: var(--text-2); }
.dp-text { margin-top: 12px; min-height: 160px; font-family: var(--mono); font-size: 12.5px; }

/* ---- diagram ---- */
.diagram { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: 20px; overflow-x: auto; }
.diagram svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* ---- footer ---- */
footer.site { border-top: 1px solid var(--border); background: var(--bg-2); padding: 48px 0 32px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot-tag { font-size: 14px; margin-top: 12px; max-width: 34ch; color: var(--muted); }
.foot-badge { height: auto; display: block; margin-top: 20px; }
footer.site .foot-h { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
footer.site ul { list-style: none; display: grid; gap: 8px; }
footer.site a { color: var(--text-2); font-size: 14px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* ---- motion (additive; inert without html.motion-ok) ---- */
/* v8.2: the slow, calm reveals of enterprise cloud sites (azure.microsoft.com fades blocks in over
   about a second): one-shot, once, never replayed on the way back up.
   Hero entrance (pure CSS, so it starts on the first paint, no flash): the hero's eyebrow, heading,
   lead, buttons and note rise 24px over 900ms, staggered 90ms, only when the visitor has not asked
   for reduced motion. */
@keyframes mo-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero > .wrap > * { animation: mo-enter .9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .hero > .wrap > :nth-child(2) { animation-delay: .09s; }
  .hero > .wrap > :nth-child(3) { animation-delay: .18s; }
  .hero > .wrap > :nth-child(4) { animation-delay: .27s; }
  .hero > .wrap > :nth-child(5) { animation-delay: .36s; }
}
/* Scroll reveals, two kinds. [data-mo] sits on a tile container (steps, why, trust, annot, paths,
   grids): its direct children rise 24px over 800ms with gentle easing, staggered 100ms apart.
   [data-mo="block"] is set by site.js on section heads, captures, tables, bands and prose: the
   block rises as one. The observer drops each element after its first entry. */
.motion-ok [data-mo]:not(.in) > * { opacity: 0; }
.motion-ok [data-mo="block"]:not(.in) { opacity: 0; }
.motion-ok [data-mo="block"]:not(.in) > * { opacity: 1; }
@keyframes mo-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.motion-ok [data-mo].in > * { animation: mo-rise .8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.motion-ok [data-mo="block"].in { animation: mo-rise .9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.motion-ok [data-mo="block"].in > * { animation: none; }
.motion-ok [data-mo].in > :nth-child(2) { animation-delay: .1s; }
.motion-ok [data-mo].in > :nth-child(3) { animation-delay: .2s; }
.motion-ok [data-mo].in > :nth-child(4) { animation-delay: .3s; }
.motion-ok [data-mo].in > :nth-child(5) { animation-delay: .4s; }
.motion-ok [data-mo].in > :nth-child(6) { animation-delay: .5s; }
/* The lifecycle reads in order: each step's label turns indigo after its tile has risen, and the
   arrow to the next step follows. A reading aid only: the copy still says a judgment authorizes nothing. */
.motion-ok .steps[data-mo] li .k { color: var(--muted); transition: color 0.4s ease; }
.motion-ok .steps[data-mo].in li .k { color: var(--indigo-ink); }
.motion-ok .steps[data-mo].in li:nth-child(1) .k { transition-delay: .5s; }
.motion-ok .steps[data-mo].in li:nth-child(2) .k { transition-delay: .8s; }
.motion-ok .steps[data-mo].in li:nth-child(3) .k { transition-delay: 1.1s; }
.motion-ok .steps[data-mo].in li:nth-child(4) .k { transition-delay: 1.4s; }
.motion-ok .steps[data-mo] li::after { opacity: 0; transition: opacity 0.4s ease; }
.motion-ok .steps[data-mo].in li::after { opacity: 1; }
.motion-ok .steps[data-mo].in li:nth-child(1)::after { transition-delay: .8s; }
.motion-ok .steps[data-mo].in li:nth-child(2)::after { transition-delay: 1.1s; }
.motion-ok .steps[data-mo].in li:nth-child(3)::after { transition-delay: 1.4s; }
/* Hover on link tiles: a 2px lift, only with motion on. */
.motion-ok .uc-card, .motion-ok .paths .card { transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.2s ease; }
.motion-ok .uc-card:hover, .motion-ok .paths .card:hover { transform: translateY(-2px); }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4, .split, .price-grid, .foot-grid, .paths, .why, .princ, .annot, .dp-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { content: "↓"; right: auto; left: 18px; top: auto; bottom: -19px; }
  .pipe { grid-template-columns: 1fr 1fr; }
  .split.rev .txt { order: 0; }
  .dp-form .f2 { grid-template-columns: 1fr; }
  .shot .bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; contain: inline-size; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  header.site .brand .bm { display: block; }
  header.site .brand .wm { display: none; }
  .nav[data-open="true"] .nav-links { display: flex; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 8px 0; box-shadow: var(--shadow-md); }
  .nav[data-open="true"] .nav-links a { padding: 12px 24px; font-size: 15px; }
  .nav[data-open="true"] .nav-links a::after { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 60px 0 48px; }
  .cta-band { padding: 32px 20px; }
  .permit-body > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 760px) {
  /* Below the detail's native width the box keeps native size and scrolls sideways, so the
     capture stays legible instead of shrinking. */
  .zoom { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .zoom-in { width: 672px; }
  .detail { position: relative; }
  .detail::after { content: ""; position: absolute; top: 1px; right: 1px; width: 36px; height: calc(100% - 2px); pointer-events: none; background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.9)); border-radius: 0 14px 14px 0; }
  .zoom-cap::after { content: " Scroll sideways for the rest."; }
}
@media (max-width: 560px) {
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { padding: 7px 11px; font-size: 13px; }
  .trust { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
