/* =========================================================================
   Ringleader theme: grayscale, dark/light. All colors come from variables.
   ========================================================================= */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f4f5;
  --color-bg-elev: #ffffff;
  --color-text: #18181b;
  --color-text-light: #52525b;
  --color-border: #e4e4e7;
  --color-accent: #18181b;        /* grayscale by default */
  --color-accent-contrast: #ffffff;
  --color-brand: #2d5bff;         /* accent: a beautiful blue, used with restraint */
  --color-brand-contrast: #ffffff;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-shadow-strong: rgba(0, 0, 0, 0.16);
  --color-overlay: rgba(0, 0, 0, 0.5);
  --color-code-bg: #18181b;
  --color-code-text: #f4f4f5;
  /* inline code: the green Google Docs gives code typed between backticks */
  --color-code-inline: #188038;

  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1120px;
  --header-h: 68px;
  --radius: 12px;
  --radius-sm: 8px;

  /* isometric hero block faces: layered grays for iso depth (light) */
  --iso-top: #ffffff;   --iso-top-line: #d4d4d8;
  --iso-left: #e7e7ea;  --iso-left-line: #cfcfd4;
  --iso-right: #d2d2d8; --iso-right-line: #b9b9c1;
  --iso-shadow: rgba(24, 24, 33, 0.16);
}

:root[data-theme="dark"] {
  --iso-top: #28282c;   --iso-top-line: #3c3c42;
  --iso-left: #1b1b1e;  --iso-left-line: #303036;
  --iso-right: #131316; --iso-right-line: #27272c;
  --iso-shadow: rgba(0, 0, 0, 0.42);

  --color-bg: #0a0a0a;
  --color-bg-alt: #161616;
  --color-bg-elev: #161616;
  --color-text: #f4f4f5;
  --color-text-light: #a1a1aa;
  --color-border: #27272a;
  --color-accent: #f4f4f5;
  --color-accent-contrast: #0a0a0a;
  --color-shadow: rgba(0, 0, 0, 0.5);
  --color-shadow-strong: rgba(0, 0, 0, 0.7);
  --color-overlay: rgba(0, 0, 0, 0.7);
  --color-code-bg: #161616;
  --color-code-text: #f4f4f5;
  --color-code-inline: #56d364;
}

/* --------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip prevents any stray element from creating horizontal scroll
   on mobile (Kim's feedback). `clip` (not `hidden`) keeps the sticky header
   working, since it doesn't establish a scroll container. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* cookie banner is non-blocking, no scroll lock (RIN-21) */
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition-base), color var(--transition-base);
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================== Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-base);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--color-shadow); }
.btn:active { transform: translateY(0); }

.btn-feature {
  background: var(--color-brand);
  color: var(--color-brand-contrast);
  position: relative;
  overflow: hidden;
  animation: ctaGlow 3.2s ease-in-out infinite;
}
.btn-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--color-shadow-strong);
  animation-play-state: paused;          /* pause idle glow on hover */
}
/* shine sweep */
.btn-feature::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: ctaShine 3.6s ease-in-out infinite;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-brand); }

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--color-shadow); }
  50% { box-shadow: 0 0 22px 2px var(--color-shadow-strong); }
}
@keyframes ctaShine {
  0%, 60% { left: -120%; }
  100% { left: 140%; }
}

/* =============================================================== Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 86%, transparent);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--color-bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 14px var(--color-shadow);
  border-bottom-color: var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--color-text); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-wordmark { height: 27px; width: auto; flex: none; }
/* Mark stays blue in all themes; wordmark swaps: black on light, white on dark. */
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: inline-block; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
  font-size: 0.93rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition-base), background var(--transition-base);
}
.nav-link:hover { color: var(--color-text); background: var(--color-bg-alt); }
.nav-link.active { color: var(--color-text); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { padding: 9px 18px; font-size: 0.9rem; }

.header-controls { display: flex; align-items: center; gap: 8px; }

/* theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-elev);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-base);
}
.theme-toggle:hover { border-color: var(--color-accent); transform: translateY(-1px); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-elev);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------- Documents dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px var(--color-shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  z-index: 50;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.caret { transition: transform var(--transition-base); }
.has-dropdown:hover .caret,
.has-dropdown.open .caret { transform: rotate(180deg); }
.dropdown-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
}
.dropdown-group:hover { background: var(--color-bg-alt); }
.dropdown-item {
  display: block;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all var(--transition-base);
}
.dropdown-item:hover { background: var(--color-bg-alt); color: var(--color-text); }
.dropdown-item.active { color: var(--color-text); }
.dropdown-group-name { font-size: 0.9rem; font-weight: 600; }
.dropdown-links { display: inline-flex; gap: 6px; }
.dropdown-links a {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 9px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-light);
  transition: all var(--transition-base);
}
.dropdown-links a:hover { color: var(--color-text); border-color: var(--color-accent); }

/* ================================================================= Hero */
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 7vw, 84px); overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  margin: 0 0 20px;
}
.hero-title { font-size: clamp(2.1rem, 5vw, 3.5rem); margin: 0 0 18px; }
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-text-light);
  max-width: 36ch;
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin: 14px 0 0;
}
.hero-visual { display: flex; justify-content: center; }
/* ---- hero isometric stack ---- */
.iso-panel {
  --iso-T: 9.5s;
  position: relative;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 18%, var(--color-bg-alt), var(--color-bg) 72%);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 22px 60px -30px var(--iso-shadow);
}
/* faint iso floor grid */
.iso-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.28;
  transform: perspective(700px) rotateX(60deg) scale(1.5);
  transform-origin: center 78%;
  -webkit-mask-image: radial-gradient(circle at 50% 70%, #000, transparent 68%);
  mask-image: radial-gradient(circle at 50% 70%, #000, transparent 68%);
  pointer-events: none;
}

/* ---- animated flat isometric stack (all browsers; see hero-stack.html).
   2D only: no transform-style / preserve-3d and no 3D rotations, so WebKit
   (Safari + every iOS browser) renders it identically to Chromium. The blocks
   are pre-projected isometric SVG shapes; the assembly is animated purely with
   2D translate / opacity / scale, which every engine treats the same. ---- */
.iso-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iso-svg { display: block; width: 84%; height: auto; margin: 0 auto; overflow: visible; }
.isf-top   { fill: var(--iso-top);   stroke: var(--iso-top-line);   stroke-width: 1.2; stroke-linejoin: round; }
.isf-left  { fill: var(--iso-left);  stroke: var(--iso-left-line);  stroke-width: 1.2; stroke-linejoin: round; }
.isf-right { fill: var(--iso-right); stroke: var(--iso-right-line); stroke-width: 1.2; stroke-linejoin: round; }
.isf-glyph { color: var(--color-text-light); stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* top-layer glyph is the filled three-ring brand mark, not a stroked line icon */
.isf-mark { fill: #2D5BFF; stroke: none; }
/* soft neutral contact shadow under the landed stack; fades with the stack */
.isf-shadow { fill: var(--iso-shadow); opacity: 0; animation: isoShadow var(--iso-T) ease-in-out infinite; }

/* the assembly: 3 sheets fly in from above, settle into a tight stack, hold,
   then fly fully out for the loop. One shared timeline, staggered per layer.
   The settled rest positions pull the sheets close together (rest offsets
   -58 / 0 / +58, ~12px apart) so they read as one cohesive stack.
   transform-box: fill-box pins each group's own box as the origin so the
   2D translate is consistent across engines. 2D translate + opacity only. */
.iso-cube { transform-box: fill-box; transform-origin: center; }
.iso-c1 { animation: isoFly1 var(--iso-T) cubic-bezier(.22, 1, .36, 1) infinite; }
.iso-c2 { animation: isoFly2 var(--iso-T) cubic-bezier(.22, 1, .36, 1) infinite; }
.iso-c3 { animation: isoFly3 var(--iso-T) cubic-bezier(.22, 1, .36, 1) infinite; }

/* Each sheet flies in from far above to its rest offset (decelerating settle),
   holds assembled, then accelerates fully up and out of frame. Assembly runs
   bottom -> top; disassembly runs top -> bottom. The ease-in on the exit
   keyframe makes the fly-out accelerate away rather than fade in place. */
@keyframes isoFly1 { /* bottom (VM): in first (lands 16%), out last; rest -58 */
  0%   { transform: translateY(-258px); opacity: 0; }
  3%   { opacity: 1; }
  16%  { transform: translateY(-58px); opacity: 1; }
  80%  { transform: translateY(-58px); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .85, .4); }
  90%  { transform: translateY(-258px); opacity: 0; }
  100% { transform: translateY(-258px); opacity: 0; }
}
@keyframes isoFly2 { /* middle (container): lands 32%; rest 0 */
  0%, 16% { transform: translateY(-200px); opacity: 0; }
  19%  { opacity: 1; }
  32%  { transform: translateY(0); opacity: 1; }
  74%  { transform: translateY(0); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .85, .4); }
  84%  { transform: translateY(-200px); opacity: 0; }
  100% { transform: translateY(-200px); opacity: 0; }
}
@keyframes isoFly3 { /* top (workstation): lands 48%, out first; rest +58 */
  0%, 32% { transform: translateY(-142px); opacity: 0; }
  35%  { opacity: 1; }
  48%  { transform: translateY(58px); opacity: 1; }
  68%  { transform: translateY(58px); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .85, .4); }
  78%  { transform: translateY(-142px); opacity: 0; }
  100% { transform: translateY(-142px); opacity: 0; }
}
/* contact shadow tracks the bottom sheet: fades in as it flies in and is
   fully present by the time it lands (16%), then fades as the stack leaves */
@keyframes isoShadow {
  0%, 4% { opacity: 0; }
  16%    { opacity: 1; }
  80%    { opacity: 1; }
  90%, 100% { opacity: 0; }
}

/* mono status line cycling in sync with the assembly */
.iso-status {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--color-text-light);
}
.iso-ok {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-text);
  animation: isoBeat var(--iso-T) ease-in-out infinite;
}
@keyframes isoBeat { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
.iso-steps { display: grid; }
.iso-st { grid-area: 1 / 1; white-space: nowrap; opacity: 0; }
.iso-st.s0 { animation: isoStep0 var(--iso-T) linear infinite; }
.iso-st.s1 { animation: isoStep1 var(--iso-T) linear infinite; }
.iso-st.s2 { animation: isoStep2 var(--iso-T) linear infinite; }
.iso-st.s3 { animation: isoStep3 var(--iso-T) linear infinite; }
.iso-st.s4 { animation: isoStep4 var(--iso-T) linear infinite; }
@keyframes isoStep0 { 0%, 13% { opacity: 1; } 16%, 100% { opacity: 0; } }
@keyframes isoStep1 { 0%, 13% { opacity: 0; } 16%, 29% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes isoStep2 { 0%, 29% { opacity: 0; } 32%, 45% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes isoStep3 { 0%, 45% { opacity: 0; } 48%, 61% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes isoStep4 { 0%, 61% { opacity: 0; } 64%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }

/* ============================================================== Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: var(--color-bg-alt); }
/* A soft wash of the brand blue, for the one section that states what the
   product is for. It is mixed from the page's own background, so it follows
   the light and dark themes. A browser without color-mix gets the gray. */
.section-tint { background: var(--color-bg-alt); }
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .section-tint { background: color-mix(in srgb, var(--color-brand) 9%, var(--color-bg)); }
}
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brand);
  margin: 0 0 12px;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 14px; }
.section-lead { font-size: 1.08rem; color: var(--color-text-light); margin: 0; }
.section-cta { text-align: center; margin-top: 44px; }

/* feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
/* 2x2 variant for sets of four cards (e.g. the /why/ pillars) */
.feature-grid--2x2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .feature-grid--2x2 { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px var(--color-shadow); border-color: var(--color-accent); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 16px;
  transition: transform var(--transition-base), color var(--transition-base);
}
/* the icon lifts a little more than the card and warms to brand on hover, so
   icon and text read as separate layers rather than one flat block */
.feature-card:hover .feature-icon { transform: translateY(-4px) scale(1.08); color: var(--color-brand); }
.feature-icon svg { width: 30px; height: 30px; }
.feature-title { font-size: 1.18rem; margin: 0 0 8px; }
.feature-body { color: var(--color-text-light); margin: 0; font-size: 0.97rem; }

/* roadmap cards: shipped-feature styling, marked as not-yet-shipped */
.roadmap-card { position: relative; }
.roadmap-card .feature-icon { color: var(--color-text-light); }
.roadmap-badge {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--color-brand);
  background: color-mix(in srgb, var(--color-brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-brand) 30%, transparent);
}
.roadmap-card:hover { border-color: var(--color-brand); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
/* let grid items shrink below their content's min-content, so a wide code
   block scrolls internally instead of forcing the page wider (mobile). */
.split > * { min-width: 0; }
.split-copy .section-title { text-align: left; }
.split-copy .btn { margin-top: 22px; }
.code-block {
  background: var(--color-code-bg);
  color: var(--color-code-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
  box-shadow: 0 14px 34px var(--color-shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
/* tiny hover animation: the snippet lifts and picks up a faint brand glow */
.code-block:hover {
  transform: translateY(-3px);
  border-color: var(--color-brand);
  box-shadow: 0 20px 46px var(--color-shadow), 0 0 0 1px color-mix(in srgb, var(--color-brand) 35%, transparent);
}
.code-block .c-prompt { color: #a1a1aa; }
.code-block .c-key { color: #a1a1aa; }
.code-block .c-dim { color: #71717a; }
.code-block .c-ok { color: #d4d4d8; font-weight: 600; }

/* ====================================================== Home page (v1)
   Components introduced by the mockup-derived home page (see
   layouts/index.html). Everything here is built from the theme tokens (the
   mockup's teal/brass and IBM Plex are deliberately not carried over), and
   every surface is declared for both themes.
   ===================================================================== */

/* A section whose copy is a single statement rather than a headed block, so it
   sits closer to its neighbours than a full .section would. */
.section-tight { padding: clamp(28px, 4vw, 44px) 0; }
/* Left-aligned section header (the mockup leads with the text, not a centred
   block). Overrides .section-head's auto margins and centring. */
.section-head--left { max-width: 620px; margin-left: 0; margin-right: 0; text-align: left; }
.section-head--left .section-title { text-align: left; }
/* A statement in two columns: a heading on the left, a few sentences on the
   right. The sentences start a little lower, level with the heading's first
   line of text. */
.statement .section-title { margin: 0; }
.statement .section-lead { padding-top: 0.3em; font-size: 1.14rem; }

/* The home headline is a full sentence, not a three-word slogan, so it runs
   smaller than the theme's default hero size and wraps in a wider column: at
   clamp(...3.5rem) a sentence this long swallows the viewport. */
.main-home .hero-title { font-size: clamp(1.85rem, 3.6vw, 2.7rem); max-width: 24ch; }
.main-home .hero-subtitle { max-width: 44ch; }
@media (max-width: 900px) {
  .main-home .hero-title { max-width: 30ch; margin-left: auto; margin-right: auto; }
}

/* ---- a stated position: rule on the left, no card ---- */
.stated {
  max-width: 680px;
  padding-left: 26px;
  border-left: 3px solid var(--color-brand);
}
.stated-lead { font-size: 1.12rem; margin: 0 0 14px; }
.stated-body { font-size: 1.04rem; color: var(--color-text); margin: 0; }

/* ---- how it works: the file beside the command ---- */
.split--top { align-items: start; }
/* Mirrored split: the visual sits on the left, so alternating sections zigzag. */
.split--flip > :first-child { order: 2; }

/* ---- two short headed paragraphs side by side ---- */
.two-up {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 5vw, 48px);
}
.two-up-title { font-size: 1.1rem; margin: 0 0 8px; }
.two-up-body { color: var(--color-text-light); margin: 0; }
.two-up-body a { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-border); }
.two-up-body a:hover { text-decoration-color: var(--color-accent); }
.two-up--three { grid-template-columns: repeat(3, 1fr); }
.two-up-body code,
.feature-body code { font-family: var(--font-mono); font-size: 0.88em; color: var(--color-text); }
/* The trade-off is a heading plus a statement, inside the brand-ruled block. */
.stated .section-title { text-align: left; }

/* ---- teams section: intro split, four cards, then the workstation file ---- */
.team-cards { margin-top: clamp(36px, 5vw, 56px); }
.team-file { margin-top: clamp(36px, 5vw, 56px); }

/* Multi-paragraph split copy: space the leads apart. */
.split-copy .section-lead + .section-lead { margin-top: 14px; }

/* ---- screenshot placeholder (partials/shot.html) ---- */
.shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 24px;
  background: var(--color-bg-elev);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-align: center;
}
.shot-placeholder--phone { aspect-ratio: 9 / 16; max-width: 280px; margin: 0 auto; }

/* ---- product screenshots (partials/shot.html) ---- */
.shot { display: block; width: 100%; height: auto; }
.shot--card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px var(--color-shadow);
}
.shot--phone {
  max-width: 280px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  box-shadow: 0 18px 40px var(--color-shadow);
}
/* The hero's drawing sits under the copy on narrow screens, at full width. */
@media (max-width: 900px) {
  .hero-visual.hero-visual--shot { order: 2; max-width: none; margin-top: 12px; }
}

/* ---- product drawings (partials/demo-sessions.html, demo-shared.html) ----
   The app, drawn in HTML at the page's own size. The colors, radii and type
   are the app's design tokens, copied from ui/library/src/styles/tokens.css
   in the product repo: the light values here, the dark ones in the rule
   below. A drawing follows the site's theme, as the app follows the system's.
   Three things are the same in both themes because they are in the app: the
   two bands, the yellow note, and Claude's mark. */
.demo {
  --demo-canvas: #f6f5f1;
  --demo-surface: #fffefb;
  --demo-raised: #ffffff;
  --demo-fill: #e9e6de;
  --demo-bubble: #edebe4;
  --demo-strong: #d3cec4;
  --demo-separator: #e6e3dc;
  --demo-text: #141414;
  --demo-muted: #5c5b57;
  --demo-subtle: #8f8d88;
  --demo-primary: #0065b9;
  --demo-on-primary: #ffffff;
  --demo-ring: rgb(0 101 185 / 0.3);
  --demo-info: #155fb8;
  --demo-info-subtle: #dbe9fb;
  --demo-warning: #8f4e04;
  --demo-warning-subtle: #f1e7dc;
  --demo-note: #fbe38a;
  --demo-note-text: #3b2f04;
  --demo-note-muted: #6e5c17;
  --demo-violet: #ece6fb;
  --demo-violet-text: #5a3eb0;
  --demo-blue: #dcf2f6;
  --demo-blue-text: #00539a;
  --demo-ink: #000000;
  --demo-ink-soft: #211e1e;
  --demo-shadow: 0 1px 2px rgb(20 20 20 / 0.06), 0 12px 32px rgb(20 20 20 / 0.1);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: var(--demo-canvas);
  color: var(--demo-text);
  border: 1px solid var(--demo-separator);
  border-radius: 16px;
  box-shadow: var(--demo-shadow);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  overflow: hidden;
}
:root[data-theme="dark"] .demo {
  --demo-canvas: #141413;
  --demo-surface: #1c1b19;
  --demo-raised: #242320;
  --demo-fill: #2a2926;
  --demo-bubble: #2a2926;
  --demo-strong: #3d3b36;
  --demo-separator: #2a2926;
  --demo-text: #fafaf8;
  --demo-muted: #b5b2ab;
  --demo-subtle: #8f8c85;
  --demo-primary: #499bf4;
  --demo-on-primary: #141414;
  --demo-ring: rgb(73 155 244 / 0.45);
  --demo-info-subtle: #16283c;
  --demo-warning-subtle: #33240f;
  --demo-violet: #2a2240;
  --demo-violet-text: #b8a2f7;
  --demo-blue: #172a40;
  --demo-blue-text: #7cb8f7;
  --demo-ink: #ffffff;
  --demo-ink-soft: #f1ecec;
  --demo-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 12px rgb(0 0 0 / 0.22);
}
.demo p { margin: 0; }
.demo-button {
  flex: none;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--demo-primary);
  color: var(--demo-on-primary);
  font-weight: 500;
  white-space: nowrap;
}
.demo-button--quiet { background: var(--demo-fill); color: var(--demo-text); }
/* An agent's mark on its tile (partials/demo-mark.html). The marks are
   drawn once per page, in an SVG that takes up no room. */
.demo-marks { position: absolute; width: 0; height: 0; overflow: hidden; }
.demo-agent-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--demo-fill);
}
.demo-agent-icon--small {
  display: inline-grid;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  border-radius: 4px;
  vertical-align: -3px;
}
.demo-mark { display: block; max-width: none; }
.demo-mark--claude { fill: #d97757; }
.demo-mark--codex { fill: var(--demo-ink); }
.demo-mark--opencode { fill: var(--demo-ink-soft); }

/* The Agent Sessions list. */
.demo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
}
.demo-title { font-size: 21px; font-weight: 600; letter-spacing: -0.5px; line-height: 1.2; }
.demo-summary { margin-top: 3px; color: var(--demo-muted); font-variant-numeric: tabular-nums; }
.demo-summary span { display: inline-block; }
.demo-table {
  margin: 0 12px;
  background: var(--demo-surface);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.demo-cols,
.demo-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 84px 38px;
  column-gap: 12px;
  align-items: center;
}
.demo-cols {
  padding: 9px 14px;
  color: var(--demo-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.demo-cols span:first-child { grid-column: 1 / 3; }
.demo-col-heard,
.demo-row-heard { text-align: right; }
/* The list is cut off below the sixth row, as a longer list in a window is. */
.demo-list { position: relative; height: 420px; overflow: hidden; }
.demo-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 34px;
  background: linear-gradient(transparent, var(--demo-surface));
  pointer-events: none;
}
.demo-band {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  color: #fff;
  font-weight: 500;
}
.demo-band--waiting { background: var(--demo-warning); }
.demo-band--working { background: var(--demo-info); }
.demo-band-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--demo-fill);
  color: var(--demo-text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.demo-row {
  position: relative;
  z-index: 1;
  min-height: 55px;
  padding: 8px 14px;
  background: var(--demo-surface);
  border-bottom: 1px solid var(--demo-separator);
}
.demo-row-text { min-width: 0; }
.demo-row-title,
.demo-row-prompt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-row-title { font-weight: 600; }
.demo-row-prompt { color: var(--demo-muted); font-size: 12.5px; }
.demo-row-agent { white-space: nowrap; }
.demo-row-heard { color: var(--demo-muted); font-variant-numeric: tabular-nums; }
/* site.js moves a session to its new group, then lets every row and band
   slide from where it was to where it now is. */
.demo-list > * { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.demo-row.is-moving { z-index: 3; box-shadow: 0 10px 28px rgb(20 20 20 / 0.18); }
.demo-row.is-arriving-waiting { animation: demo-flash-waiting 1.8s ease-out; }
.demo-row.is-arriving-working { animation: demo-flash-working 1.8s ease-out; }
@keyframes demo-flash-waiting {
  0%, 40% { background: var(--demo-warning-subtle); }
  100% { background: var(--demo-surface); }
}
@keyframes demo-flash-working {
  0%, 40% { background: var(--demo-info-subtle); }
  100% { background: var(--demo-surface); }
}
/* The pointer that clicks a session, and what it presses. */
.demo-inner { position: relative; }
.demo-pointer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.3));
  transition: transform 0.7s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s ease;
}
.demo-pointer.is-on { opacity: 1; }
/* A click shrinks the arrow about its tip. The shrink is on the path inside,
   not on the pointer: a scale on the pointer would also scale the distance it
   has been moved, and it would jump toward the corner and back. */
.demo-pointer path { transform-origin: 5px 3px; transition: transform 0.12s ease; }
.demo-pointer.is-down path { transform: scale(0.84); }
.demo-row.is-pressed { background: var(--demo-fill); }

/* The session, which opens over the list when its row is clicked. Closed, it
   sits below the drawing, which clips it. */
.demo-sheet {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  background: var(--demo-canvas);
  box-shadow: 0 -10px 30px rgb(20 20 20 / 0.16);
  transform: translateY(112%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.demo-sheet.is-open { transform: none; }
.demo-sheet-handle {
  flex: none;
  align-self: center;
  width: 36px;
  height: 4px;
  margin-top: 7px;
  border-radius: 4px;
  background: var(--demo-strong);
}
.demo-sheet-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 10px;
}
.demo-sheet-icon { flex: none; }
.demo-state {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.demo-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--demo-warning);
  transition: background 0.3s ease;
}
.demo-state.is-working i { background: var(--demo-info); }
.demo-sheet-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--demo-muted);
  transition: transform 0.12s ease, background 0.12s ease;
}
.demo-sheet-close.is-pressed { background: var(--demo-fill); transform: scale(0.88); }
.demo-sheet-tabs {
  display: flex;
  flex: none;
  gap: 18px;
  padding: 0 16px;
  border-bottom: 1px solid var(--demo-separator);
  font-weight: 500;
}
.demo-sheet-tabs span { padding: 5px 0 8px; color: var(--demo-muted); }
.demo-sheet-tabs .is-active { color: var(--demo-text); box-shadow: inset 0 -2px 0 var(--demo-primary); }
/* The conversation sits at the bottom of its space, above the message box.
   What does not fit leaves through the top, as a chat scrolled to its end. */
.demo-sheet-chat {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 0;
  padding: 14px 16px;
  overflow: hidden;
  font-size: 13.5px;
}
.demo-sheet-chat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 40px;
  background: linear-gradient(var(--demo-canvas), transparent);
  pointer-events: none;
}
.demo-sheet-chat > * { flex: none; }
.demo-composer {
  flex: none;
  margin: 0 12px 12px;
  padding: 12px 14px 10px;
  border-radius: 14px;
  background: var(--demo-raised);
  box-shadow: 0 1px 2px rgb(20 20 20 / 0.06), 0 6px 18px rgb(20 20 20 / 0.08);
  transition: box-shadow 0.2s ease;
}
.demo-composer.is-typing { box-shadow: 0 0 0 3px var(--demo-ring), 0 6px 18px rgb(20 20 20 / 0.08); }
.demo-composer-text { min-height: 38px; font-size: 13.5px; }
.demo-composer-placeholder { color: var(--demo-subtle); }
.demo-composer.is-typing .demo-composer-text::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 1px;
  background: var(--demo-text);
  vertical-align: -2px;
  animation: demo-caret 0.9s steps(1) infinite;
}
@keyframes demo-caret {
  50% { opacity: 0; }
}
.demo-composer-row { display: flex; align-items: center; justify-content: space-between; }
.demo-composer-done { font-size: 12.5px; font-weight: 500; }
.demo-send {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--demo-primary);
  color: var(--demo-on-primary);
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.12s ease;
}
.demo-composer.has-text .demo-send { opacity: 1; }
.demo-send.is-pressed { transform: scale(0.86); }
[data-demo-count].is-pop { animation: demo-pop 0.45s ease-out; }
@keyframes demo-pop {
  40% { transform: scale(1.4); }
}
@media (max-width: 480px) {
  .demo-cols,
  .demo-row { grid-template-columns: 24px minmax(0, 1fr) 38px; }
  .demo-col-agent,
  .demo-row-agent,
  .demo-head .demo-button { display: none; }
}

/* A shared session. */
.demo-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--demo-surface);
  border-bottom: 1px solid var(--demo-separator);
}
.demo-chat-id { flex: 1 1 auto; min-width: 0; }
.demo-chat-title,
.demo-chat-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-chat-title { font-size: 15px; font-weight: 500; letter-spacing: -0.2px; }
.demo-chat-meta { color: var(--demo-muted); font-size: 12px; }
.demo-avatars { display: inline-flex; flex: none; }
.demo-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 2px solid var(--demo-surface);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 500;
}
.demo-avatars .demo-avatar + .demo-avatar { margin-left: -7px; }
.demo-avatar--violet { background: var(--demo-violet); color: var(--demo-violet-text); }
.demo-avatar--blue { background: var(--demo-blue); color: var(--demo-blue-text); }
/* The chat is a window onto the end of the conversation: the messages sit at
   its bottom edge, and older ones leave through the top. */
.demo-chat-view { position: relative; height: 400px; overflow: hidden; }
.demo-chat-view::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 44px;
  background: linear-gradient(var(--demo-canvas), transparent);
  pointer-events: none;
}
.demo-chat {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 22px;
  font-size: 13.5px;
  /* site.js adds a message, then lets the chat slide up by that message's
     height. */
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.demo-msg--person {
  align-self: flex-end;
  max-width: 86%;
  padding: 9px 13px;
  border-radius: 14px;
  background: var(--demo-bubble);
}
.demo-msg--agent { align-self: flex-start; max-width: 94%; }
.demo-sender { margin-bottom: 2px; color: var(--demo-muted); font-size: 12px; }
.demo-msg code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--demo-fill);
  font-family: var(--font-mono);
  font-size: 0.86em;
}
.demo-note {
  position: relative;
  align-self: center;
  width: min(100%, 370px);
  margin-top: 8px;
  padding: 15px 14px 12px;
  background: var(--demo-note);
  color: var(--demo-note-text);
  box-shadow: 0 2px 6px rgb(20 20 20 / 0.14);
  font-size: 13px;
  transform: rotate(-1.2deg);
}
.demo-note-tape {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 74px;
  height: 18px;
  margin-left: -37px;
  background: rgb(255 255 255 / 0.62);
  box-shadow: 0 1px 2px rgb(20 20 20 / 0.08);
  transform: rotate(-2deg);
}
.demo-note-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 600;
}
.demo-note-head .demo-avatar { border-color: var(--demo-note); background: #dcf2f6; color: #00539a; }
.demo-note-head > span:first-of-type { flex: 1 1 auto; min-width: 0; }
.demo-note-tag {
  flex: none;
  color: var(--demo-note-muted);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
/* A message that site.js has just added fades in, and a note is stuck on. */
.demo-msg.is-new { animation: demo-msg-in 0.5s ease-out; }
.demo-note.is-new { animation: demo-note-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes demo-msg-in {
  from { opacity: 0; }
}
@keyframes demo-note-in {
  from { opacity: 0; transform: translateY(-20px) rotate(5deg) scale(1.08); }
}
.term-block {
  margin: 0;
  padding: 22px 24px;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--color-text-light);
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
}
.term-block .t-prompt { color: var(--color-text-light); }
.term-block .t-path { color: var(--color-text); }
.term-block .t-ok { color: #16a34a; font-weight: 600; }
.term-block .t-dim { color: var(--color-text-light); }
:root[data-theme="dark"] .term-block .t-ok { color: #4ade80; }
.term-note {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin: 16px 0 0;
}
.term-note code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--color-text);
}

/* ---- governance band: one dark block, four cards ---- */
.gov-band {
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 44px);
  color: var(--color-code-text);
}
.gov-band .section-head { margin-bottom: clamp(26px, 4vw, 36px); }
.gov-band .section-title { color: var(--color-code-text); }
.gov-band .section-lead { color: #a1a1aa; }
.gov-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Every row as tall as the tallest, so all four cards are the same size. */
  grid-auto-rows: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.gov-card {
  position: relative;
  background: color-mix(in srgb, #ffffff 4%, var(--color-code-bg));
  padding: 22px 24px;
}
.gov-card--wide { grid-column: 1 / -1; }
/* This band is a fixed dark panel in both themes, so its icons take the panel's
   own foreground. --color-accent goes near-black in light mode. */
.gov-card .feature-icon { color: var(--color-code-text); }
.gov-title { font-size: 1.05rem; margin: 0 0 6px; color: #ffffff; }
.gov-body { font-size: 0.93rem; color: #a1a1aa; margin: 0; }

/* ---- waitlist ---- */
.waitlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 52px);
  align-items: start;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
}
.waitlist .section-title { text-align: left; }
.waitlist-copy .section-lead { max-width: 38ch; margin-bottom: 18px; }
.waitlist-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin: 0;
}
.waitlist-form-wrap { min-width: 0; }
.waitlist-form[hidden], .waitlist-done[hidden] { display: none; }
.waitlist-form .btn { width: 100%; margin-top: 4px; }
.waitlist-step-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin: 0 0 14px;
}
.waitlist-done { text-align: center; padding: 18px 0 4px; }
.waitlist-note { text-align: left; }
.waitlist-note .section-lead { margin-bottom: 20px; }
@media (max-width: 900px) {
  .section-head--left, .stated { margin-left: auto; margin-right: auto; }
  .split--flip > :first-child { order: 0; }
  .two-up--three { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .waitlist { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .gov-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .two-up { grid-template-columns: 1fr; }
}

/* ============================================================= 404 page */
.notfound { padding: clamp(56px, 12vw, 130px) 0; }
.notfound-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.notfound-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  margin: 0 0 22px;
}
.notfound-title { font-size: clamp(2rem, 5.5vw, 3.1rem); margin: 0 0 16px; }
.notfound-lead {
  font-size: 1.12rem;
  color: var(--color-text-light);
  max-width: 46ch;
  margin: 0 auto 32px;
}
.notfound-term {
  text-align: left;
  margin: 0 auto 32px;
  max-width: 520px;
  font-size: 0.86rem;
}
.notfound-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.notfound-links {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.notfound-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: color var(--transition-base);
}
.notfound-links a:hover { color: var(--color-text); }

/* ====================================================== Inner page layout */
.main-page { min-height: 60vh; }
.page-header { padding: clamp(48px, 8vw, 84px) 0 clamp(20px, 4vw, 36px); }
.page-title { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.page-lead { font-size: 1.15rem; color: var(--color-text-light); margin: 14px 0 0; max-width: 60ch; }
.page-body { padding-bottom: clamp(56px, 9vw, 96px); }

/* prose: the page body spans the full container so grids and cards line up
   with the page title; individual text blocks stay at a readable measure. */
.prose > p,
.prose > h2,
.prose > h3,
.prose > h4,
.prose > ul,
.prose > ol,
.prose > blockquote,
.prose > pre,
.prose > .highlight,
.prose > figure { max-width: 760px; }
.prose > h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; }
.prose > h3 { font-size: 1.22rem; margin: 1.8em 0 0.5em; }
.prose > p { margin: 0 0 1.1em; color: var(--color-text); }
.prose a { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-border); }
.prose a:hover { text-decoration-color: var(--color-accent); }
/* buttons inside prose keep their own styling */
.prose a.btn { text-decoration: none; }
.prose a.btn-feature { color: var(--color-accent-contrast); }
.prose > ul, .prose > ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose > ul li, .prose > ol li { margin: 0.3em 0; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--color-code-inline);
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 5px;
}
.prose pre {
  background: var(--color-code-bg);
  color: var(--color-code-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; color: inherit; }
/* Code colors for highlighted blocks (```bash, ```diff, ```yaml, ...), from
   `hugo gen chromastyles --style=github-dark`, without its background and
   line-number rules: blocks keep --color-code-bg, and lines can wrap. */
.chroma { color: var(--color-code-text); }
.chroma .err { color:#f85149 }
.chroma .k { color:#ff7b72 }
.chroma .kc { color:#79c0ff }
.chroma .kd { color:#ff7b72 }
.chroma .kn { color:#ff7b72 }
.chroma .kp { color:#79c0ff }
.chroma .kr { color:#ff7b72 }
.chroma .kt { color:#ff7b72 }
.chroma .nc { color:#f0883e;font-weight:bold }
.chroma .no { color:#79c0ff;font-weight:bold }
.chroma .nd { color:#d2a8ff;font-weight:bold }
.chroma .ni { color:#ffa657 }
.chroma .ne { color:#f0883e;font-weight:bold }
.chroma .nl { color:#79c0ff;font-weight:bold }
.chroma .nn { color:#ff7b72 }
.chroma .nx { color:#e6edf3 }
.chroma .py { color:#79c0ff }
.chroma .nt { color:#7ee787 }
.chroma .nv { color:#79c0ff }
.chroma .vc { color:#79c0ff }
.chroma .vg { color:#79c0ff }
.chroma .vi { color:#79c0ff }
.chroma .vm { color:#79c0ff }
.chroma .nf { color:#d2a8ff;font-weight:bold }
.chroma .fm { color:#d2a8ff;font-weight:bold }
.chroma .l { color:#a5d6ff }
.chroma .ld { color:#79c0ff }
.chroma .s { color:#a5d6ff }
.chroma .sa { color:#79c0ff }
.chroma .sb { color:#a5d6ff }
.chroma .sc { color:#a5d6ff }
.chroma .dl { color:#79c0ff }
.chroma .sd { color:#a5d6ff }
.chroma .s2 { color:#a5d6ff }
.chroma .se { color:#79c0ff }
.chroma .sh { color:#79c0ff }
.chroma .si { color:#a5d6ff }
.chroma .sx { color:#a5d6ff }
.chroma .sr { color:#79c0ff }
.chroma .s1 { color:#a5d6ff }
.chroma .ss { color:#a5d6ff }
.chroma .m { color:#a5d6ff }
.chroma .mb { color:#a5d6ff }
.chroma .mf { color:#a5d6ff }
.chroma .mh { color:#a5d6ff }
.chroma .mi { color:#a5d6ff }
.chroma .il { color:#a5d6ff }
.chroma .mo { color:#a5d6ff }
.chroma .o { color:#ff7b72;font-weight:bold }
.chroma .ow { color:#ff7b72;font-weight:bold }
.chroma .or { color:#ff7b72;font-weight:bold }
.chroma .c { color:#8b949e;font-style:italic }
.chroma .ch { color:#8b949e;font-style:italic }
.chroma .cm { color:#8b949e;font-style:italic }
.chroma .c1 { color:#8b949e;font-style:italic }
.chroma .cs { color:#8b949e;font-weight:bold;font-style:italic }
.chroma .cp { color:#8b949e;font-weight:bold;font-style:italic }
.chroma .cpf { color:#8b949e;font-weight:bold;font-style:italic }
.chroma .gd { color:#ffa198;background-color:#490202 }
.chroma .ge { font-style:italic }
.chroma .gr { color:#ffa198 }
.chroma .gh { color:#79c0ff;font-weight:bold }
.chroma .gi { color:#56d364;background-color:#0f5323 }
.chroma .go { color:#8b949e }
.chroma .gp { color:#8b949e }
.chroma .gs { font-weight:bold }
.chroma .gu { color:#79c0ff }
.chroma .gt { color:#ff7b72 }
.chroma .gl { text-decoration:underline }
.chroma .w { color:#6e7681 }
/* tiny hover animation on command snippets: lift + brand glow, matching the
   homepage .code-block. The .highlight wrapper is the hover target so the copy
   button (positioned on it) rises with the block. */
.prose .highlight,
.prose > pre {
  border-radius: var(--radius);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.prose .highlight:hover,
.prose > pre:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px var(--color-shadow);
}
.prose .highlight:hover pre,
.prose > pre:hover { border-color: var(--color-brand); }
/* copy-to-clipboard button on shell command blocks */
.prose .has-copy { position: relative; }
.code-copy {
  position: absolute;
  top: 8px; right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(244, 244, 245, 0.18);
  background: rgba(244, 244, 245, 0.08);
  color: #d4d4d8;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-base), background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}
.has-copy:hover .code-copy,
.code-copy:focus-visible { opacity: 1; }
.code-copy:hover { background: rgba(244, 244, 245, 0.16); color: #fff; border-color: rgba(244, 244, 245, 0.3); }
.code-copy .ic-check { display: none; }
.code-copy.copied { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); opacity: 1; }
.code-copy.copied .ic-copy { display: none; }
.code-copy.copied .ic-check { display: inline; }
/* touch devices have no hover, so keep the button visible */
@media (hover: none) {
  .code-copy { opacity: 1; }
}
.prose blockquote {
  border-left: 3px solid var(--color-border);
  margin: 1.4em 0;
  padding: 0.2em 0 0.2em 1.1em;
  color: var(--color-text-light);
}
.prose hr { border: none; border-top: 1px solid var(--color-border); margin: 2.4em 0; }
/* code blocks keep the same distance from the text as a paragraph does */
.prose > .highlight, .prose > pre { margin: 0 0 1.2em; }
/* tables in a post: a header row and light rules, at the width of the text */
.prose > table { width: 100%; max-width: 760px; border-collapse: collapse; margin: 0.4em 0 1.4em; font-size: 0.95rem; }
.prose > table th, .prose > table td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--color-border); }
.prose > table th { font-weight: 600; border-bottom-width: 2px; }

/* the shortcode components are also used inside .prose */
.prose .feature-grid,
.prose .team-grid,
.prose .openings-list,
.prose .page-cta { margin: 1.8em 0; max-width: none; }

/* closing call-to-action card */
.page-cta {
  margin-top: 2.6em;
  padding: 40px 28px;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.page-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 38px var(--color-shadow); border-color: var(--color-accent); }
.page-cta-title { font-size: 1.5rem; margin: 0 0 10px; }
.page-cta-body { color: var(--color-text-light); max-width: 560px; margin: 0 auto 22px; }
.page-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) {
  .team-grid { grid-template-columns: 1fr; }
}
.team-card {
  /* a byline on a blog post links here; clear the sticky header */
  scroll-margin-top: calc(var(--header-h) + 24px);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px var(--color-shadow); border-color: var(--color-accent); }
.team-photo {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  filter: grayscale(100%);
  transition: transform var(--transition-base), filter var(--transition-slow);
}
/* the portrait blooms to colour and rises a touch differently than the card,
   so photo and text feel like distinct layers (grayscale-by-default fits the
   site's monochrome identity) */
.team-card:hover .team-photo { filter: grayscale(0); transform: scale(1.07) translateY(-2px); }
/* touch devices can't hover to reveal colour, so show the portraits in colour */
@media (hover: none) {
  .team-photo { filter: none; }
}
.team-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  border: 1px solid var(--color-border);
}
.team-name { font-size: 1.2rem; margin: 0 0 4px; }
.team-role { color: var(--color-text-light); font-weight: 600; font-size: 0.9rem; margin: 0 0 12px; }
.team-bio { color: var(--color-text-light); font-size: 0.95rem; margin: 0; }

/* openings */
.openings-list { display: grid; gap: 16px; }
.opening-card {
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.opening-card:hover { transform: translateY(-4px); border-color: var(--color-accent); box-shadow: 0 14px 32px var(--color-shadow); }
.opening-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.opening-title { font-size: 1.2rem; margin: 0; }
.opening-meta { display: flex; gap: 8px; }
.tag {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
}
.opening-body { color: var(--color-text-light); margin: 12px 0 18px; }
.opening-card-empty .opening-body { margin-bottom: 0; }

/* forms: the home page waitlist and the footer contact form */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 0.86rem; font-weight: 600; color: var(--color-text); }
.form-row .form-optional { font-weight: 400; color: var(--color-text-light); }
.form-row-check label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.form-row-check input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--color-accent); }
.form-row input,
.form-row textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-base);
}
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: var(--color-accent); }

/* form submission status (shared by the waitlist and footer contact forms) */
.form-status {
  font-size: 0.88rem;
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  line-height: 1.45;
}
.form-status[hidden] { display: none; }
.form-status.is-success {
  color: #15803d;
  background: color-mix(in srgb, #16a34a 12%, var(--color-bg));
  border-color: color-mix(in srgb, #16a34a 35%, var(--color-border));
}
.form-status.is-error {
  color: #b91c1c;
  background: color-mix(in srgb, #dc2626 10%, var(--color-bg));
  border-color: color-mix(in srgb, #dc2626 32%, var(--color-border));
}
:root[data-theme="dark"] .form-status.is-success { color: #4ade80; }
:root[data-theme="dark"] .form-status.is-error { color: #f87171; }
/* the form swaps to a success card after a confirmed submission */
.form-sent { text-align: center; }
.form-sent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: color-mix(in srgb, #16a34a 14%, var(--color-bg));
  color: #16a34a;
}
:root[data-theme="dark"] .form-sent-icon { color: #4ade80; }
.form-sent-title { font-size: 1.2rem; margin: 0 0 8px; }
.form-sent-body { color: var(--color-text-light); margin: 0; font-size: 0.95rem; }
.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
/* honeypot: kept in the layout (off-screen) rather than display:none, since
   some bots skip display:none fields. Hidden from AT and tab order via markup. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* two-up form rows (e.g. company + team size in the enterprise modal) */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 480px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-row select {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-base);
}
.form-row select:focus { outline: none; border-color: var(--color-accent); }

/* ============================================================= Modal dialog */
dialog.modal {
  width: min(92vw, 520px);
  max-height: min(90svh, 760px);
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  color: var(--color-text);
}
dialog.modal::backdrop {
  background: var(--color-overlay);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.modal-card {
  position: relative;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px var(--color-shadow-strong);
  padding: 32px clamp(20px, 4vw, 36px) clamp(24px, 4vw, 32px);
  max-height: inherit;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: none;
  color: var(--color-text-light);
  cursor: pointer;
  transition: color var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}
.modal-close:hover { color: var(--color-text); background: var(--color-bg-alt); border-color: var(--color-border); }
.modal-title { font-size: clamp(1.3rem, 5vw, 1.5rem); margin: 0 0 8px; padding-right: 38px; }
.modal-lead { color: var(--color-text-light); margin: 0 0 22px; font-size: 0.97rem; }
.modal-form .btn { width: 100%; margin-top: 4px; }
/* gentle entrance (skipped under reduced motion via the global rule) */
dialog.modal[open] { animation: modalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* page list (section children) */
.page-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.page-list-item a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.page-list-item a:hover { border-color: var(--color-accent); transform: translateY(-3px); box-shadow: 0 12px 26px var(--color-shadow); }
.page-list-title { display: block; font-weight: 600; font-size: 1.05rem; }
.page-list-desc { display: block; color: var(--color-text-light); font-size: 0.92rem; margin-top: 4px; }

/* ------------------------------------------------------------------ Blog */
.post-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin: 0 0 8px;
}
.blog-empty {
  max-width: 560px;
  padding: 36px 28px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}
.blog-empty-title { font-weight: 600; font-size: 1.05rem; margin: 0 0 6px; }
.blog-empty-body { color: var(--color-text-light); margin: 0; }

/* The blog page: a card per post, its text on the left and its preview
   picture on the right, in the 1200x630 shape of a link preview. On a phone
   the picture stacks on top. */
.post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.post-card-link {
  display: grid;
  grid-template-columns: minmax(0, 59fr) minmax(0, 41fr);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-elev);
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.post-card-link:hover { transform: translateY(-3px); box-shadow: 0 18px 40px var(--color-shadow); border-color: var(--color-brand); }
.post-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 28px) clamp(22px, 3vw, 36px);
}
.post-card-body .post-meta { margin: 0; }
.post-card-title { font-family: var(--font-display); font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.2; margin: 0; }
.post-card-desc {
  margin: 0;
  color: var(--color-text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-byline { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.post-card-byline .post-avatar { width: 28px; height: 28px; }
.post-card-authors { font-size: 0.88rem; font-weight: 600; }
/* stretch: a grid item with an aspect ratio otherwise keeps its own height,
   leaving a strip under the picture when the text runs taller */
.post-card-media { aspect-ratio: 40 / 21; align-self: stretch; background: var(--color-bg-alt); border-left: 1px solid var(--color-border); }
.post-card-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg-alt), color-mix(in srgb, var(--color-brand) 14%, var(--color-bg-alt)));
}
/* a faint grid of small logos that fades out around the large one */
.post-card-tiles {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-position: center;
  background-size: 40px 40px;
  opacity: 0.22;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 52px, #000 104px);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 52px, #000 104px);
}
.post-card-mark { position: relative; width: 96px; height: 96px; }
@media (max-width: 760px) {
  .post-card-link { grid-template-columns: 1fr; }
  .post-card-media { order: -1; border-left: none; border-bottom: 1px solid var(--color-border); }
}

/* A post's byline: the authors' photos, their names, and the date. */
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.post-avatars { display: flex; flex: none; }
.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-bg);
  background: var(--color-bg-alt);
}
.post-avatar + .post-avatar { margin-left: -10px; }
.post-byline-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.post-authors { font-size: 0.95rem; font-weight: 600; color: var(--color-text); }
.post-authors a { color: inherit; text-decoration: none; }
.post-authors a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-byline .post-meta { margin: 0; }
/* A long command wraps rather than scrolling out of sight on a phone; the
   copy button still copies it whole. */
.post-body pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* A picture on its own line in Markdown (see the image render hook). */
.prose-figure { margin: 1.8em 0; }
.prose-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
}
.prose-figure figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--color-text-light); }

/* ----------------------------------------------------- Legal document list */
.doc-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.doc-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.doc-list-item:hover { border-color: var(--color-accent); transform: translateY(-3px); box-shadow: 0 12px 26px var(--color-shadow); }
.doc-list-name { font-weight: 600; font-size: 1.05rem; }

/* =============================================================== Footer */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-bg-alt); margin-top: 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
  padding: clamp(40px, 6vw, 64px) 24px clamp(28px, 4vw, 40px);
}
.footer-tagline { color: var(--color-text-light); margin: 14px 0 0; max-width: 32ch; font-size: 0.95rem; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 28px; }
.footer-heading { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-light); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--color-text-light); font-size: 0.92rem; transition: color var(--transition-base); }
.footer-col a:hover { color: var(--color-text); }
.footer-form .form-row { margin-bottom: 12px; }
.footer-form .form-row label { font-size: 0.82rem; }
.footer-form .btn { width: 100%; margin-top: 2px; }
.footer-contact-alt { margin: 12px 0 0; font-size: 0.85rem; color: var(--color-text-light); }
.footer-contact-alt a { color: var(--color-text-light); border-bottom: 1px solid var(--color-border); }
.footer-contact-alt a:hover { color: var(--color-text); border-color: var(--color-accent); }
.footer-bottom { padding: 18px 24px 28px; border-top: 1px solid var(--color-border); }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--color-text-light); }

/* ======================================================= Cookie consent */
/* Non-blocking cookie banner: no full-screen backdrop and no scroll lock, so
   the page can never get trapped in a grayed-out state if the banner has a
   render quirk (iOS Safari, RIN-21). */
.cookie-backdrop { display: none; }
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  max-height: 85svh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-bg-elev);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 30px var(--color-shadow-strong);
  transform: translateY(110%);
  transition: transform var(--transition-slow);
}
.cookie-consent.visible { transform: translateY(0); }
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom));
}
.cookie-title { font-size: 1.05rem; margin: 0 0 4px; }
.cookie-desc { margin: 0; color: var(--color-text-light); font-size: 0.92rem; max-width: 60ch; }
.cookie-desc a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 12px; flex: none; }

/* ============================================ Reveal / fade-in animations */
.reveal {
  opacity: 0.5;
  transform: translateY(22px);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.fade-in { opacity: 0; animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================== Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* phones: the iso stack is now a 2D-only SVG animation that renders identically
   on every engine (including iOS Safari), so it ships everywhere: no flat
   fallback, no touch-hide. It just sits below the copy so the headline + CTA
   lead above the fold (RIN-21). */
@media (max-width: 720px) {
  .hero-visual { order: 2; margin-top: 6px; max-width: 320px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  /* The nav's margin-left: auto pushes the controls right on desktop; the nav
     is fixed-position here, so the controls need their own. */
  .header-controls { margin-left: auto; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 16px 24px 28px;
    background: var(--color-bg-elev);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 14px 30px var(--color-shadow-strong);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 12px; font-size: 1rem; }
  .nav-actions { margin-top: 8px; }
  .header-cta { width: 100%; }
  /* dropdown becomes inline on mobile */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    min-width: 0;
    margin-top: 4px;
    display: none;
  }
  .has-dropdown.open .dropdown-menu { display: block; }
  .has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; } /* no hover-open on touch */
  .cookie-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-actions { flex-direction: column; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-col-contact { grid-column: 1 / -1; }
}

/* phones: the desktop logo (mark 50px + 2rem wordmark, RIN-20) is wide enough
   that the brand + theme toggle pushed the hamburger off-screen at <= ~456px,
   making the nav menu unopenable. Scale the brand down so both controls fit. */
@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .logo { gap: 7px; }
  .logo-mark { width: 31px; height: 31px; }
  .logo-wordmark { height: 21px; }
}

/* ============================================ Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .fade-in { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .btn-feature::after { display: none; }
  /* Product decision: the hero stack animation plays for ALL visitors,
     including those with prefers-reduced-motion. Re-assert its animations
     with !important so the site-wide motion-reduction rule above doesn't
     freeze them (that rule would otherwise run them once at ~0ms and jump
     the stack to its flown-away end frame, leaving the panel empty). */
  .iso-c1 { animation: isoFly1 var(--iso-T) cubic-bezier(.22, 1, .36, 1) infinite !important; }
  .iso-c2 { animation: isoFly2 var(--iso-T) cubic-bezier(.22, 1, .36, 1) infinite !important; }
  .iso-c3 { animation: isoFly3 var(--iso-T) cubic-bezier(.22, 1, .36, 1) infinite !important; }
  .isf-shadow { animation: isoShadow var(--iso-T) ease-in-out infinite !important; }
  .iso-ok { animation: isoBeat var(--iso-T) ease-in-out infinite !important; }
  .iso-st.s0 { animation: isoStep0 var(--iso-T) linear infinite !important; }
  .iso-st.s1 { animation: isoStep1 var(--iso-T) linear infinite !important; }
  .iso-st.s2 { animation: isoStep2 var(--iso-T) linear infinite !important; }
  .iso-st.s3 { animation: isoStep3 var(--iso-T) linear infinite !important; }
  .iso-st.s4 { animation: isoStep4 var(--iso-T) linear infinite !important; }
}
