/* ============================================================================
 * straza.ai - marketing landing page  ·  "Watchtower" (marketing surface)
 * ----------------------------------------------------------------------------
 * Token vocabulary is lifted verbatim from docs/site/assets/site.css so the
 * marketing page and the docs site stay one system. LAYOUT diverges (this is a
 * single full-bleed marketing page, not the docs shell) but TOKEN DISCIPLINE
 * does not: never hardcode a colour/size/radius - always a token.
 *
 *   --accent (beacon amber) = brand + focus + interactive (sanctioned on this
 *                             low-density brand surface, BRAND.md §0.3/§1.2)
 *   --ok/--warn/--danger/--unknown = trust semantics ONLY, never decoration
 *   --beacon-ground = the fixed dark ground brand artwork renders on, both
 *                     themes (BRAND.md §1.1 identity fill / §4.1 colour modes:
 *                     bright amber reads on dark only - 1.80:1 on white FAILS,
 *                     so the amber animated lockup sits on this constant ground)
 *
 * No webfonts, no external assets, no fetch: system UI + system mono, inline /
 * relative SVG only. Works from file://.
 * ==========================================================================*/

/* ============================================================================
 * 1. COLOR TOKENS  (mirrors site.css - keep in lock-step)
 * ==========================================================================*/
:root {
  /* neutrals - cold steel ink (dark, default) */
  --bg:            #070a11;
  --surface:       #0f141f;
  --surface-2:     #161d2a;
  --border:        #212a3a;
  --border-strong: #33405a;
  --text:          #dce4f0;
  --muted:         #8b98ae;

  /* the beacon - brand + interactive */
  --accent:       #f6b63c;
  --accent-hover: #ffc860;
  --on-accent:    #0b0d12;

  /* trust semantics - reserved for state, never the accent, never decoration */
  --ok:      #4bce6b;
  --warn:    #d69a34;
  --danger:  #ff5f57;
  --unknown: #bc8cff;

  --ok-bg:      rgba(75, 206, 107, .13);
  --warn-bg:    rgba(214, 154, 52, .13);
  --danger-bg:  rgba(255, 95, 87, .13);
  --unknown-bg: rgba(188, 140, 255, .14);
  --accent-bg:  rgba(246, 182, 60, .13);

  /* the controlled dark ground brand artwork renders on (both themes) */
  --beacon-ground: #070a11;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 12px 34px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 26px 60px -22px rgba(0, 0, 0, .78);
  --header-bg: rgba(7, 10, 17, .74);
  --hairline:  rgba(220, 228, 240, .05);
  --grid-line: rgba(120, 140, 180, .07);

  color-scheme: dark;
}

/* Explicit light scope - the toggle writes data-theme="light". */
:root[data-theme="light"] {
  --bg:            #eef1f6;
  --surface:       #ffffff;
  --surface-2:     #f4f6fb;
  --border:        #cdd5e3;
  --border-strong: #aeb9cc;
  --text:          #141a24;
  --muted:         #55616f;

  --accent:       #9a6413;
  --accent-hover: #b87a1c;
  --on-accent:    #ffffff;

  --ok:      #1a7f37;
  --warn:    #8a5a08;
  --danger:  #c62a25;
  --unknown: #8250df;

  --ok-bg:      rgba(26, 127, 55, .12);
  --warn-bg:    rgba(138, 90, 8, .12);
  --danger-bg:  rgba(198, 42, 37, .11);
  --unknown-bg: rgba(130, 80, 223, .12);
  --accent-bg:  rgba(154, 100, 19, .11);

  /* brand artwork keeps its dark ground even in light theme (BRAND.md §4.1) */
  --beacon-ground: #070a11;

  --shadow-sm: 0 1px 2px rgba(20, 26, 36, .06);
  --shadow-md: 0 10px 30px -14px rgba(20, 26, 36, .24);
  --shadow-lg: 0 24px 54px -22px rgba(20, 26, 36, .28);
  --header-bg: rgba(238, 241, 246, .8);
  --hairline:  rgba(255, 255, 255, .7);
  --grid-line: rgba(20, 26, 36, .05);

  color-scheme: light;
}

/* Auto light from OS preference - explicit [data-theme] scopes still win. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg:#eef1f6; --surface:#ffffff; --surface-2:#f4f6fb; --border:#cdd5e3;
    --border-strong:#aeb9cc; --text:#141a24; --muted:#55616f;
    --accent:#9a6413; --accent-hover:#b87a1c; --on-accent:#ffffff;
    --ok:#1a7f37; --warn:#8a5a08; --danger:#c62a25; --unknown:#8250df;
    --ok-bg:rgba(26,127,55,.12); --warn-bg:rgba(138,90,8,.12);
    --danger-bg:rgba(198,42,37,.11); --unknown-bg:rgba(130,80,223,.12);
    --accent-bg:rgba(154,100,19,.11); --beacon-ground:#070a11;
    --shadow-sm:0 1px 2px rgba(20,26,36,.06);
    --shadow-md:0 10px 30px -14px rgba(20,26,36,.24);
    --shadow-lg:0 24px 54px -22px rgba(20,26,36,.28);
    --header-bg:rgba(238,241,246,.8); --hairline:rgba(255,255,255,.7);
    --grid-line:rgba(20,26,36,.05); color-scheme:light;
  }
}

/* Explicit dark scope - wins the media block when the toggle forces dark. */
:root[data-theme="dark"] {
  --bg:#070a11; --surface:#0f141f; --surface-2:#161d2a; --border:#212a3a;
  --border-strong:#33405a; --text:#dce4f0; --muted:#8b98ae;
  --accent:#f6b63c; --accent-hover:#ffc860; --on-accent:#0b0d12;
  --ok:#4bce6b; --warn:#d69a34; --danger:#ff5f57; --unknown:#bc8cff;
  --ok-bg:rgba(75,206,107,.13); --warn-bg:rgba(214,154,52,.13);
  --danger-bg:rgba(255,95,87,.13); --unknown-bg:rgba(188,140,255,.14);
  --accent-bg:rgba(246,182,60,.13); --beacon-ground:#070a11;
  --shadow-sm:0 1px 2px rgba(0,0,0,.5);
  --shadow-md:0 12px 34px -14px rgba(0,0,0,.7);
  --shadow-lg:0 26px 60px -22px rgba(0,0,0,.78);
  --header-bg:rgba(7,10,17,.74); --hairline:rgba(220,228,240,.05);
  --grid-line:rgba(120,140,180,.07); color-scheme:dark;
}

/* ============================================================================
 * 2. TYPE · SPACE · SHAPE TOKENS  (mirrors site.css)
 * ==========================================================================*/
:root {
  --font-ui:   ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --fs-caption: 0.75rem;
  --fs-dense:   0.8125rem;
  --fs-body:    clamp(0.965rem, 0.93rem + 0.16vw, 1.05rem);
  --fs-lede:    clamp(1.06rem, 1.0rem + 0.34vw, 1.24rem);
  --fs-h3:      clamp(1.06rem, 1.0rem + 0.3vw, 1.2rem);
  --fs-h2:      clamp(1.4rem, 1.24rem + 0.72vw, 1.78rem);
  --fs-h1:      clamp(1.95rem, 1.6rem + 1.6vw, 2.7rem);
  --fs-stat:    clamp(1.55rem, 1.35rem + 0.9vw, 2rem);
  --fs-display: clamp(2.25rem, 1.65rem + 2.9vw, 3.6rem);

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-strong: 600;
  --fw-heavy:  800;

  --tracking-caps:  .14em;
  --tracking-tight: -.02em;

  --s0:2px; --s1:4px; --s2:8px; --s3:12px; --s4:16px;
  --s5:24px; --s6:32px; --s7:48px; --s8:64px;

  --radius:8px; --radius-sm:5px; --radius-lg:14px;
  --header-h:60px;
  --measure:66ch;
  --content-w:1120px;
}

/* ============================================================================
 * 3. RESET · BASE · A11Y
 * ==========================================================================*/
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* anchored jumps (chapter rail, hero scroll cue) land below the sticky header */
[id] { scroll-margin-top: var(--header-h); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip-link {
  position: fixed; left: var(--s3); top: -100px; z-index: 100;
  padding: var(--s2) var(--s4);
  background: var(--accent); color: var(--on-accent);
  font-size: var(--fs-dense); font-weight: var(--fw-strong);
  text-decoration: none; border-radius: var(--radius);
  box-shadow: var(--shadow-md); transition: top .18s ease;
}
.skip-link:focus { top: var(--s3); }

.wrap { max-width: var(--content-w); margin: 0 auto; padding: 0 var(--s5); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: var(--fs-caption); font-weight: var(--fw-strong);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.section-head { max-width: 40rem; margin-bottom: var(--s7); }
.section-head h2 {
  font-size: var(--fs-h2); font-weight: var(--fw-heavy);
  letter-spacing: var(--tracking-tight); line-height: 1.15;
  margin: var(--s3) 0 var(--s3);
}
.section-head p { color: var(--muted); font-size: var(--fs-lede); }
.lamp { color: var(--accent); }

/* ============================================================================
 * 4. STICKY HEADER
 * ==========================================================================*/
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(1.7) blur(14px);
    backdrop-filter: saturate(1.7) blur(14px);
  }
}
.header-inner {
  display: flex; align-items: center; gap: var(--s4);
  max-width: var(--content-w); height: 100%;
  margin: 0 auto; padding: 0 var(--s5);
}
.wordmark {
  display: inline-flex; align-items: center; gap: var(--s2);
  flex: none; color: var(--text); text-decoration: none;
  font-weight: var(--fw-heavy); font-size: 15px; letter-spacing: .16em;
}
.wordmark:hover { color: var(--text); text-decoration: none; }
.wordmark-mark { display: block; flex: none; }
.wordmark:hover .wordmark-mark { filter: drop-shadow(0 0 7px var(--accent-bg)); }
.header-spacer { flex: 1 1 auto; }
.header-tools { display: flex; align-items: center; gap: var(--s2); flex: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
/* theme toggle: show the icon for the theme you'd switch TO */
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
:root[data-theme="dark"] .icon-sun  { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .icon-moon { display: block; }
  :root:not([data-theme]) .icon-sun  { display: none; }
}

/* ============================================================================
 * 5. BUTTONS
 * ==========================================================================*/
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s5);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  font-size: var(--fs-dense); font-weight: var(--fw-strong);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; background: var(--surface-2); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(1px); }
.btn-sm { padding: var(--s2) var(--s4); }

/* ============================================================================
 * 6. HERO
 * ==========================================================================*/
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 12%, var(--accent-bg), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 34px 100%;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0, #000 40%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0, #000 40%, transparent 78%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s8) var(--s7); align-items: center;
  max-width: var(--content-w); margin: 0 auto;
  padding: clamp(var(--s7), 5vw, var(--s8)) var(--s5);
  /* the hero owns the first screen (owner 2026-07-25): fill the viewport minus
   * the sticky header so "Where Straza sits" starts below the fold. svh so the
   * mobile URL-bar collapse can't jump the fold; the vh line is the fallback.
   * -2px absorbs the header + hero borders, same idiom as the 404 page. */
  min-height: calc(100vh - var(--header-h) - 2px);
  min-height: calc(100svh - var(--header-h) - 2px);
}
.hero-copy { min-width: 0; }

/* the animated brand lockup sits on a constant dark beacon ground so the amber
 * always reads (BRAND.md §4.1: bright amber on light FAILS - reserve it to dark) */
.hero-mark {
  display: inline-flex; align-items: center;
  background: var(--beacon-ground);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: var(--s2) var(--s3);
  margin-bottom: var(--s5);
  box-shadow: var(--shadow-sm);
}
.hero-mark img { display: block; height: 30px; width: auto; }

.hero h1 {
  font-size: var(--fs-display); font-weight: var(--fw-heavy);
  letter-spacing: var(--tracking-tight); line-height: 1.05;
  margin-bottom: var(--s5);
}
.hero .lede {
  font-size: var(--fs-lede); color: var(--muted);
  max-width: 34em; margin-bottom: var(--s6);
}
.hero .lede b, .hero .lede strong { color: var(--text); font-weight: var(--fw-strong); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.hero-note { margin-top: var(--s4); font-size: var(--fs-dense); color: var(--muted); }
.hero-note code { font-family: var(--font-mono); color: var(--accent); font-size: .95em; }

/* the terminal replay (hero right) - the file draws its own borderless card */
.hero-replay {
  width: 100%; height: 384px; border: 0; display: block;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background: var(--surface); overflow: hidden;
}

/* scroll cue: with a full-viewport hero the page can read as "one screen"; a
 * quiet drifting chevron says it continues. Lives in the hero's bottom padding;
 * still under prefers-reduced-motion; gone on narrow screens, where the stacked
 * hero overflows the first viewport anyway. */
.hero-scrollcue {
  position: absolute; left: 50%; bottom: var(--s3); z-index: 1;
  transform: translateX(-50%);
  color: var(--muted); opacity: .55;
  transition: opacity .25s ease, color .25s ease;
}
.hero-scrollcue:hover, .hero-scrollcue:focus-visible { opacity: 1; color: var(--accent); }
.hero-scrollcue svg { width: 22px; height: 22px; display: block; animation: hero-cue 2.6s ease-in-out infinite; }
@keyframes hero-cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero-scrollcue svg { animation: none; } }
@media (max-width: 840px) { .hero-scrollcue { display: none; } }

/* ============================================================================
 * 7. BANDS (generic section rhythm)
 * ==========================================================================*/
.band { padding: clamp(var(--s7), 6vw, var(--s8)) 0; border-bottom: 1px solid var(--border); }
.band-tint { background: var(--surface); }

/* ---- problem strip ---- */
.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s5); margin-top: var(--s6);
}
.problem-item { border-left: 2px solid var(--danger); padding-left: var(--s4); }
.problem-item h3 { font-size: var(--fs-h3); font-weight: var(--fw-strong); margin-bottom: var(--s2); }
.problem-item p { color: var(--muted); font-size: var(--fs-dense); }

/* ============================================================================
 * 7b. WORKS-WITH DIAGRAM  ("through the gateway", owner-picked variant B 2026-07-24)
 *   Marks are faithful monochrome recreations of each vendor's real mark
 *   (currentColor silhouettes), muted at rest and full --text on hover; product
 *   NAMES are plain text (nominative use). No vendor color logos or wordmarks.
 *   Four harness stations converge over signal wires into the Straza hub; one
 *   wire exits to the any-MCP-server chip (the MCP mark rides there as the
 *   substrate, not as a peer). Motion: staggered fade-up + wire draw on first
 *   scroll-into-view, then quiet SMIL pulse dots and a slow hub beacon. The
 *   finished diagram renders static when JS is absent and under
 *   prefers-reduced-motion (pulses/beacon off).
 *   src: docs/PLAN.md D18 · geometry: Simple Icons (CC0); each mark its owner's TM.
 * ==========================================================================*/
.works-with { padding-block: clamp(var(--s6), 4.5vw, var(--s7)); }

/* Variant B "through the gateway" (owner-picked 2026-07-24):
 * grid = [agent lanes | wires in | Straza hub | wire out | any-MCP chip] */
.ww-diagram {
  display: grid;
  grid-template-columns: auto minmax(56px, 150px) auto minmax(44px, 110px) auto;
  align-items: center;
  justify-content: center;
  margin-top: var(--s6);
}

.ww-agents { display: flex; flex-direction: column; gap: var(--s4); }

.ww-item {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  color: var(--muted);
  text-align: center;
  transition: color .25s ease;
}
/* each mark sits in a subtle station node */
.ww-glyph {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: 0 0 46px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.ww-glyph > svg { width: 26px; height: 26px; display: block; }

.ww-name {
  font-size: var(--fs-caption);
  font-weight: var(--fw-strong);
  letter-spacing: .01em;
  line-height: 1.25;
}
.ww-namewrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
/* AgentKit ecosystem pills: real integrations only (LangChain, OpenAI Agents SDK).
 * Stacked vertically UNDER the name (owner 2026-07-24): keeps every lane the
 * same width, so every wire starts at the same x and reads the same length. */
.ww-subs { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ww-sub {
  font-family: var(--font-mono); font-size: 10.5px; line-height: 1;
  color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 7px; white-space: nowrap;
  transition: color .25s ease, border-color .25s ease;
}

/* brighten + lift the whole station on hover/focus */
.ww-item:hover,
.ww-item:focus-within { color: var(--text); }
.ww-item:hover .ww-glyph,
.ww-item:focus-within .ww-glyph {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
}
.ww-item:hover .ww-sub,
.ww-item:focus-within .ww-sub { color: var(--text); border-color: var(--border-strong); }

/* signal wires (stretched to column height; strokes stay crisp via
 * vector-effect; pathLength=1 normalizes the draw-in dash) */
.ww-wires { align-self: stretch; height: 100%; min-height: 236px; width: 100%; display: block; }
/* Wires plug into the hub STRUCTURALLY (no viewport-tuned magic numbers): the
 * hub cell is exactly the node's width (its captions overflow-center below the
 * wire line), so the wire tracks end at the node's border at ANY width; a
 * constant 6px tuck hides the line ends under solid surfaces. */
.ww-wires-in  { margin-right: -6px; }
.ww-wires-out { margin-left: -6px; margin-right: -18px; }
.ww-hub { position: relative; z-index: 1; }
.ww-wire { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.ww-pulse { fill: var(--accent); }

/* the hub: the CELL is exactly the node's width so wire tracks land on its
 * border at any viewport width; name/caption are wider and overflow-center. */
.ww-hub {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  text-align: center; padding-inline: 0; width: 76px; justify-self: center;
}
.ww-hub-name, .ww-hub-sub { white-space: nowrap; }
.ww-hub-name { margin-inline: -30px; }
.ww-hub-sub  { margin-inline: -60px; }
.ww-hub-node {
  display: grid; place-items: center;
  width: 76px; height: 76px;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) * 1.4);
  position: relative;
}
.ww-hub-node > svg { width: 44px; height: 44px; display: block; }
/* quiet beacon: one soft ring breathing behind the hub (motion-off: none) */
.ww-hub-node::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid var(--accent); opacity: 0;
  animation: ww-beacon 4.2s ease-out infinite;
  pointer-events: none;
}
@keyframes ww-beacon {
  0%, 62% { opacity: 0; transform: scale(1); }
  70% { opacity: .55; }
  100% { opacity: 0; transform: scale(1.22); }
}
.ww-hub-name { font-weight: var(--fw-strong); font-size: var(--fs-body); }
.ww-hub-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: .02em; }

/* the IdM/IGA chip above the hub, on a bidirectional wire. External system =
 * dashed chip (same grammar as the any-MCP chip); wider than the 76px hub cell,
 * so it overflow-centers like the captions. */
.ww-idm-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--surface-2);
  padding: var(--s2) var(--s3);
  margin-inline: -52px; white-space: nowrap;
}
.ww-idm-name { font-size: var(--fs-caption); font-weight: var(--fw-strong); color: var(--muted); }
.ww-idm-sub { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.ww-idm-chip:hover .ww-idm-name { color: var(--text); }
.ww-vwire {
  position: relative; width: 2px; height: 30px;
  background: var(--border-strong); display: block;
}
.ww-vdot {
  position: absolute; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--accent);
}
/* static direction arrowheads at both ends (semantics survive reduced motion) */
.ww-vwire::before, .ww-vwire::after {
  content: ""; position: absolute; left: 50%; margin-left: -4px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
}
.ww-vwire::before { top: -5px; border-bottom: 5px solid var(--border-strong); }
.ww-vwire::after  { bottom: -5px; border-top: 5px solid var(--border-strong); }
.ww-vdot-down { animation: ww-vdown 2.6s linear infinite; }
.ww-vdot-up   { animation: ww-vup   2.6s linear infinite 1.3s; }
@keyframes ww-vdown { 0% { top: -3px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 27px; opacity: 0; } }
@keyframes ww-vup   { 0% { top: 27px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: -3px; opacity: 0; } }

/* outbound: the substrate chip (MCP mark rides here, not as a peer station).
 * Deliberately a SINGLE box (owner 2026-07-25): the earlier ghost-chip stack
 * ("the fleet behind one endpoint", owner ask 2026-07-24) read as a tripled
 * rendering glitch on the live page. The many-servers idea stays in the
 * sub-label and the .ww-line caption. */
.ww-out { display: block; }
.ww-out-chip {
  position: relative;
  display: flex; align-items: center; gap: var(--s3);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: var(--s3) var(--s4);
  color: var(--muted);
  background: var(--surface-2);  /* solid: hides the outbound wire's tucked end */
  transition: color .25s ease, border-color .25s ease;
}
.ww-out-chip:hover { color: var(--text); border-color: var(--accent); }
.ww-out-glyph { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; }
.ww-out-glyph > svg { width: 24px; height: 24px; display: block; }
.ww-out-text { display: flex; flex-direction: column; gap: 2px; }
.ww-out-name { font-size: var(--fs-caption); font-weight: var(--fw-strong); }
.ww-out-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }

.ww-line { text-align: center; color: var(--muted); font-size: var(--fs-dense); margin-top: var(--s5); }

/* Reveal: staggered fade-up (stations, hub, out chip via --i) + wire draw-in +
 * pulses last. Hidden start only under html.has-js; a no-JS page (and every
 * crawler/preview) renders the finished diagram. .is-in is added by the inline
 * IntersectionObserver in index.html (with a 2.5s capture fallback). */
.has-js .ww-item, .has-js .ww-hub, .has-js .ww-out {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease, color .25s ease;
  transition-delay: calc(var(--i) * 90ms);
}
.has-js .ww-strip.is-in .ww-item,
.has-js .ww-strip.is-in .ww-hub,
.has-js .ww-strip.is-in .ww-out { opacity: 1; transform: none; }
.has-js .ww-wire { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease .35s; }
.has-js .ww-strip.is-in .ww-wire { stroke-dashoffset: 0; }
.has-js .ww-pulse { opacity: 0; transition: opacity .4s ease 1.2s; }
.has-js .ww-strip.is-in .ww-pulse { opacity: 1; }

/* Motion off: finished static diagram; no pulses, no beacon, no draw-in. */
@media (prefers-reduced-motion: reduce) {
  .has-js .ww-item, .has-js .ww-hub, .has-js .ww-out { opacity: 1; transform: none; transition: color .25s ease; }
  .has-js .ww-wire { stroke-dashoffset: 0; transition: none; }
  .ww-pulse, .has-js .ww-pulse { display: none; }
  .ww-hub-node::after { animation: none; }
  .ww-vdot { display: none; }
}

/* Narrow: vertical flow. Stations wrap in rows; wires yield to short drawn
 * connectors above the hub and the outbound chip. */
@media (max-width: 840px) {
  .ww-diagram { grid-template-columns: 1fr; justify-items: center; row-gap: var(--s4); }
  .ww-agents { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--s4) var(--s5); }
  .ww-wires { display: none; }
  .ww-hub::before, .ww-out::before {
    content: ""; display: block; width: 2px; height: 22px;
    background: var(--border-strong); margin: 0 auto var(--s3);
  }
}

@media (max-width: 360px) {
  .ww-agents { gap: var(--s3) var(--s4); }
}

/* ============================================================================
 * 8. HOW IT WORKS - numbered steps with a connecting line
 * ==========================================================================*/
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s5); margin-top: var(--s7); counter-reset: step;
  list-style: none; padding-inline-start: 0;  /* the circled num is the marker */
}
.step { position: relative; padding-top: var(--s2); }

/* compact 5-beat variant (IGA band): same idiom, quieter scale */
.steps-mini { grid-template-columns: repeat(5, 1fr); margin-top: var(--s6); margin-bottom: var(--s6); }
.steps-mini .step-num { width: 32px; height: 32px; font-size: var(--fs-caption); margin-bottom: var(--s2); }
.steps-mini h3 { font-size: var(--fs-dense); font-weight: var(--fw-strong); margin-bottom: 2px; }
.steps-mini p { font-size: var(--fs-caption); color: var(--muted); }
.steps-mini code { font-size: 11px; }
.step-num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: var(--s4);
  border-radius: 50%;
  background: var(--accent-bg); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  font-family: var(--font-mono); font-size: var(--fs-h3); font-weight: var(--fw-heavy);
}
/* the connecting line: from this badge's centre to the next badge's centre */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: calc(var(--s2) + 22px);
  left: calc(44px + var(--s3)); right: calc(-1 * var(--s5) + var(--s3));
  height: 2px; background: linear-gradient(90deg, var(--border-strong), var(--border));
  z-index: 0;
}
.step h3 { font-size: var(--fs-h3); font-weight: var(--fw-strong); margin-bottom: var(--s2); }
.step p { color: var(--muted); font-size: var(--fs-dense); }

/* ============================================================================
 * 9. FEATURE GRID (6 cards; MCP gateway featured full-row)
 * ==========================================================================*/
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s4); margin-top: var(--s7);
}
.card {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s5);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.band-tint .card { background: var(--bg); }
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-2px); } }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: var(--s2);
  border-radius: var(--radius); background: var(--accent-bg); color: var(--accent);
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 { font-size: var(--fs-h3); font-weight: var(--fw-strong); color: var(--text); }
.card p { color: var(--muted); font-size: var(--fs-dense); line-height: 1.55; }

/* featured lead card: the MCP gateway (owner 2026-07-25 — promote the
 * differentiator inside the band rather than adding a tenth chapter).
 * Full row: copy left, mini catalog-flow right. The dashed /mcp door reuses
 * the diagram's "substrate" vocabulary (ww-out-chip); accent is spent on the
 * endpoint path and the gate dots only. */
.card-featured { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: var(--s7); }
.card-featured-copy { flex: 1 1 46%; min-width: 0; display: flex; flex-direction: column; gap: var(--s2); }

/* the install demo (owner directive 2026-07-25): any MCP server drag-n-drops /
 * installs into the manager and comes out wrapped. Shelf chips above, the
 * dashed strazad box below (dashed = the diagram's "substrate" vocabulary);
 * the authored markup is the finished state, the inline script replays it. */
.mcp-drop { flex: 1 1 54%; min-width: 0; display: flex; flex-direction: column; gap: var(--s2); }
.mcp-shelf { display: flex; flex-wrap: wrap; gap: var(--s2); }
.mcp-src {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: var(--s2) var(--s3); cursor: grab;
  transition: transform .15s ease, opacity .25s ease, border-color .15s ease;
}
.mcp-src:hover { border-color: var(--accent); transform: translateY(-1px); }
.mcp-src:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mcp-src.is-installed { opacity: .35; cursor: default; pointer-events: none; border-style: dashed; }
.mcp-shelf-hint { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.mcp-mgr {
  margin-top: var(--s1);
  display: flex; flex-direction: column; gap: var(--s2);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--bg); padding: var(--s3) var(--s4) var(--s4);
  transition: border-color .15s ease, background .15s ease;
}
.mcp-mgr.is-over { border-color: var(--accent); background: var(--accent-bg); }
.mcp-mgr-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s3);
  flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: var(--s2);
}
.mcp-mgr-name { font-family: var(--font-mono); font-weight: var(--fw-strong); font-size: var(--fs-caption); color: var(--text); white-space: nowrap; }
.mcp-mgr-side { display: inline-flex; align-items: center; gap: var(--s3); }
.mcp-mgr-endpoint { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); white-space: nowrap; }
.mcp-demo-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  color: var(--muted); background: none;
  border: 1px solid var(--border); border-radius: 50%;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.mcp-demo-btn:hover { color: var(--accent); border-color: var(--accent); }
.mcp-demo-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mcp-demo-btn svg { width: 12px; height: 12px; display: block; }
.mcp-demo-btn .ico-pause { display: none; }
.mcp-demo-btn.is-playing .ico-play { display: none; }
.mcp-demo-btn.is-playing .ico-pause { display: block; }
/* rows keep their flow slot when "uninstalled" (visibility, not display), so
 * the manager box never changes height and the page text never shifts */
.mcp-mgr-body { position: relative; }
.mcp-mgr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mcp-installed { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--border); }
.mcp-installed:first-child { border-top: 0; }
.mcp-installed.is-out { visibility: hidden; }
.mcp-installed code { font-family: var(--font-mono); font-size: 12px; color: var(--text); }
.mcp-installed-meta { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.mcp-wrapped-ico { flex: none; width: 16px; height: 16px; color: var(--accent); }
@keyframes mcp-land { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mcp-installed.is-new { animation: mcp-land .35s ease; }
@media (prefers-reduced-motion: reduce) { .mcp-installed.is-new { animation: none; } }
.mcp-mgr-empty {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  margin: 0; white-space: nowrap;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
  padding: var(--s3) var(--s5);
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.mcp-drop-count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.mcp-drop-count b { color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
  .card-featured { flex-direction: column; align-items: stretch; }
}

/* ============================================================================
 * 10. APPROVAL REPLAY SECTION
 * ==========================================================================*/
.replay-figure { margin: var(--s7) 0 0; }
.replay-frame {
  width: 100%; height: 660px; border: 0; display: block;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background: var(--surface); overflow: hidden;
}
.replay-cap {
  margin-top: var(--s3); font-size: var(--fs-dense); color: var(--muted);
  text-align: center;
}

/* ============================================================================
 * 10b. MOBILE APPROVER SECTION (copy left, phone replay right)
 * ==========================================================================*/
.approver-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: var(--s8) var(--s7); align-items: center; margin-top: var(--s6);
}
.approver-copy { min-width: 0; }
.approver-copy .section-head { margin-bottom: var(--s5); }

/* store badges: deliberately generic, disabled "coming soon" placeholders.
 * No Apple / Google / F-Droid logos or official badge artwork (trademarked):
 * a hand-drawn generic glyph plus the store name, using the launch-gated
 * aria-disabled pattern (no dead hrefs). */
.store-badges { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
.store-badge {
  display: inline-flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s4);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  opacity: .62; cursor: default; pointer-events: none; user-select: none;
}
.band-tint .store-badge { background: var(--bg); }
.store-badge .sb-glyph {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; color: var(--muted);
}
.store-badge .sb-glyph svg { width: 22px; height: 22px; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .sb-soon {
  font-size: 9.5px; font-weight: var(--fw-strong); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--muted);
}
.store-badge .sb-name { font-size: var(--fs-dense); font-weight: var(--fw-strong); }
.store-note { margin-top: var(--s4); font-size: var(--fs-dense); color: var(--muted); max-width: 42ch; }

/* the phone replay: a contained widget matching the sibling terminal replay
 * (rounded + elevated). The file draws its own phone; its body ground matches
 * the section token so the frame reads as one surface. */
.approver-figure { margin: 0; }
.approver-frame {
  width: 100%; height: 660px; border: 0; display: block;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background: var(--surface); overflow: hidden;
}

/* ============================================================================
 * 11. TRUST STRIP (5 items)
 * ==========================================================================*/
.trust-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: var(--s5); margin-top: var(--s6);
}
.trust-item { text-align: left; }
.trust-item .trust-k {
  font-family: var(--font-mono); font-size: var(--fs-stat);
  font-weight: var(--fw-heavy); color: var(--accent); line-height: 1.1;
  display: block; margin-bottom: var(--s2);
}
.trust-item h3 { font-size: var(--fs-body); font-weight: var(--fw-strong); margin-bottom: var(--s1); }
.trust-item p { color: var(--muted); font-size: var(--fs-dense); }

/* ============================================================================
 * 12. FINAL CTA
 * ==========================================================================*/
.final-cta { position: relative; overflow: hidden; text-align: center; }
.final-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 120% at 50% 0, var(--accent-bg), transparent 62%);
}
.final-cta .wrap { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: var(--fs-h1); font-weight: var(--fw-heavy);
  letter-spacing: var(--tracking-tight); line-height: 1.1;
  max-width: 20ch; margin: 0 auto var(--s4);
}
.final-cta p { color: var(--muted); font-size: var(--fs-lede); max-width: 44ch; margin: 0 auto var(--s6); }
.final-cta .hero-actions { justify-content: center; }


/* ============================================================================
 * 14. PAGE RAIL (desktop chapter dots, right side; owner 2026-07-24)
 * ==========================================================================*/
.page-rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column; gap: 14px;
}
@media (min-width: 1280px) { .page-rail { display: flex; } }
.page-rail a {
  position: relative; display: grid; place-items: center;
  width: 22px; height: 22px;
  text-decoration: none;
}
.pr-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.page-rail a:hover .pr-dot,
.page-rail a:focus-visible .pr-dot { border-color: var(--accent); transform: scale(1.25); }
.page-rail a[aria-current] .pr-dot { background: var(--accent); border-color: var(--accent); }
.pr-label {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em;
  color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 10px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.page-rail a:hover .pr-label,
.page-rail a:focus-visible .pr-label,
.page-rail a[aria-current]:hover .pr-label { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .pr-dot, .pr-label { transition: none; }
  .page-rail a:hover .pr-dot { transform: none; }
}

/* ============================================================================
 * 13. FOOTER
 * ==========================================================================*/
.site-footer {
  padding: var(--s7) 0 var(--s6);
  background: var(--surface); border-top: 1px solid var(--border);
  font-size: var(--fs-dense); color: var(--muted);
}
.footer-inner {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s6); max-width: var(--content-w); margin: 0 auto; padding: 0 var(--s5);
}
.footer-brand .wordmark { margin-bottom: var(--s3); }
.footer-brand p { max-width: 30ch; }
.footer-brand a { color: var(--accent); }
.footer-col h4 {
  font-size: var(--fs-caption); text-transform: uppercase;
  letter-spacing: var(--tracking-caps); color: var(--text);
  font-weight: var(--fw-strong); margin-bottom: var(--s3);
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-legal {
  max-width: var(--content-w); margin: var(--s7) auto 0; padding: var(--s4) var(--s5) 0;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
  font-size: var(--fs-caption);
}

/* ============================================================================
 * 14. RESPONSIVE
 * ==========================================================================*/
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s7); }
  .hero-replay { height: 340px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s5); }
  .step:not(:last-child)::after { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s5); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  /* mobile approver: copy stacks above the phone */
  .approver-layout { grid-template-columns: 1fr; gap: var(--s7); justify-items: start; }
  .approver-figure { width: 100%; }
}
@media (max-width: 640px) {
  .replay-frame { height: 820px; }
  .approver-frame { height: 600px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .store-badge { flex: 1 1 100%; }
}

/* ============================================================================
 * 15. 404
 * ==========================================================================*/
.notfound {
  min-height: calc(100vh - var(--header-h) - 2px);
  display: grid; place-items: center; text-align: center;
  padding: var(--s8) var(--s5); position: relative; overflow: hidden;
}
.notfound::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 90% at 50% 0, var(--accent-bg), transparent 60%);
}
.notfound-inner { position: relative; z-index: 1; max-width: 40rem; }
.notfound-code {
  font-family: var(--font-mono); font-size: var(--fs-display); font-weight: var(--fw-heavy);
  color: var(--accent); letter-spacing: var(--tracking-tight); line-height: 1;
}
.notfound h1 { font-size: var(--fs-h1); font-weight: var(--fw-heavy); letter-spacing: var(--tracking-tight); margin: var(--s4) 0 var(--s3); }
.notfound p { color: var(--muted); font-size: var(--fs-lede); margin: 0 auto var(--s6); max-width: 34ch; }
.notfound .hero-actions { justify-content: center; }

/* ============================================================================
 * 16. REDUCED MOTION
 * ==========================================================================*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ============================================================================
 * 15. BLOG (straza.ai/blog: index + post shells; template blog/TEMPLATE-post.html)
 * ==========================================================================*/
.header-crumb { color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-dense); margin-left: var(--s2); }
.header-crumb a { color: inherit; }

.blog-shell { padding-block: calc(var(--header-h) + var(--s6)) var(--s8); }
.blog-title { font-size: var(--fs-h1); font-weight: var(--fw-heavy); letter-spacing: var(--tracking-tight); line-height: 1.12; max-width: 24ch; text-wrap: balance; margin-bottom: var(--s3); }
.blog-dek { color: var(--muted); font-size: var(--fs-lede); max-width: 52ch; }

.post-list { list-style: none; padding: 0; margin-top: var(--s7); display: flex; flex-direction: column; gap: var(--s4); max-width: 720px; }
.post-card a {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); padding: var(--s5) var(--s6);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.post-card a:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.post-date { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--muted); }
.post-card h2 { font-size: var(--fs-h3); font-weight: var(--fw-strong); margin: var(--s1) 0 var(--s2); }
.post-card p { color: var(--muted); font-size: var(--fs-dense); }
.post-more { display: inline-block; margin-top: var(--s3); color: var(--accent); font-weight: var(--fw-strong); font-size: var(--fs-dense); }
.post-empty { color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: var(--s5) var(--s6); max-width: 720px; }

/* --- post page --- */
.post { max-width: 720px; margin-inline: auto; padding-inline: var(--s4); }
.post-head { margin-bottom: var(--s6); }
.post-head h1 { font-size: var(--fs-h1); font-weight: var(--fw-heavy); letter-spacing: var(--tracking-tight); line-height: 1.12; text-wrap: balance; margin: var(--s2) 0 var(--s3); }
.post-dek { color: var(--muted); font-size: var(--fs-lede); }
.post-meta { margin-top: var(--s4); color: var(--muted); font-size: var(--fs-dense); }
.post-author { color: var(--text); font-weight: var(--fw-strong); }
.post-sep { margin-inline: var(--s2); }

.post-prose { font-size: var(--fs-body); line-height: 1.7; }
.post-prose > * + * { margin-top: var(--s4); }
.post-prose h2 { font-size: var(--fs-h2); font-weight: var(--fw-strong); letter-spacing: var(--tracking-tight); margin-top: var(--s7); text-wrap: balance; }
.post-prose h3 { font-size: var(--fs-h3); font-weight: var(--fw-strong); margin-top: var(--s6); }
.post-prose a { text-decoration: underline; text-underline-offset: 2px; }
.post-prose code { font-family: var(--font-mono); font-size: .92em; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1px 5px; }
.post-prose pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4) var(--s5); overflow-x: auto; }
.post-prose pre code { background: none; border: 0; padding: 0; font-size: var(--fs-dense); line-height: 1.55; }
.post-prose figure { margin: var(--s6) 0; }
.post-prose figure img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-lg); display: block; }
.post-prose figcaption { color: var(--muted); font-size: var(--fs-caption); margin-top: var(--s2); text-align: center; }
.post-prose blockquote { border-left: 3px solid var(--accent); padding-left: var(--s4); color: var(--text); font-size: var(--fs-lede); font-weight: var(--fw-medium); margin-block: var(--s6); }
.post-prose ul, .post-prose ol { padding-left: 1.4em; }
.post-prose li + li { margin-top: var(--s2); }
/* [LAUNCH-GATED] links render disabled until the OSS flip */
.post-prose .gated { color: var(--muted); border-bottom: 1px dashed var(--border-strong); cursor: default; }

.post-endnote { margin-top: var(--s7); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); padding: var(--s4) var(--s5); color: var(--muted); font-size: var(--fs-dense); }
.post-back { margin-top: var(--s6); font-weight: var(--fw-strong); }

.site-footer .footer-line { display: flex; justify-content: space-between; gap: var(--s4); padding-block: var(--s5); color: var(--muted); font-size: var(--fs-dense); border-top: 1px solid var(--border); flex-wrap: wrap; }
