/* fonts.css */
/* Self-hosted brand fonts — replaces the Google Fonts CDN.
   woff2 vendored from the brand repo (brand/fonts/), served from /fonts/.

   The brand repo deliberately vendors only Raleway 600 + 900, IBM Plex Mono
   500 + 600 (and a single Caveat file, which the site no longer uses — #73).
   We therefore treat Raleway and Plex Mono as the brand
   type system and cover the *full* weight axis with range @font-face rules so
   that EVERY weight a stylesheet asks for resolves to a real vendored file —
   the browser never synthesises a weight. Sub-display Raleway (≤800) renders
   at 600; display (≥801) at 900. This is a brand-alignment decision; if a true
   Raleway 400 is wanted for body copy later, vendor Raleway-400.woff2 from the
   brand repo and split the range. (See plan Task 3 / brand self-review.) */

/* ── Raleway ──────────────────────────────────────────────── */
/* 100–800 (body, buttons, captions, .font-bold) → Raleway 600 */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/Raleway-600.woff2') format('woff2');
}
/* 801–1000 (h1–h6, .font-black, display numerals) → Raleway 900 */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 801 1000;
  font-display: swap;
  src: url('/fonts/Raleway-900.woff2') format('woff2');
}

/* ── IBM Plex Mono ────────────────────────────────────────── */
/* 100–550 (code, labels, .mono) → Plex Mono 500 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 100 550;
  font-display: swap;
  src: url('/fonts/IBMPlexMono-500.woff2') format('woff2');
}
/* 551–1000 (logo, compare headers, topbar mono, bold mono) → Plex Mono 600 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 551 1000;
  font-display: swap;
  src: url('/fonts/IBMPlexMono-600.woff2') format('woff2');
}

/* tokens.css */
/* Design tokens — the single source of truth for all visual values.
   Components reference these variables; never hardcode hex values.
   Dark mode works by overriding these same variables. */

:root {
  /* ── Accent colours ──────────────────────────────────────── */
  --crimson: #b85555;
  --forest:  #4a755c;
  --amber:   #c86b2e;
  --slate:   #6a8898;

  /* Washes — solid fills for badge/chip/notice backgrounds
     (pre-computed: accent blended at 10-12% over --surface #ffffff) */
  --crimson-w: #f8eeee;
  --forest-w:  #edf1ef;
  --amber-w:   #f8ede6;
  --slate-w:   #f0f3f5;

  /* Bar — solid fill for the crimson highlighter underline (.hl-crimson)
     (pre-computed: accent blended at 45-55% over --surface #ffffff) */
  --crimson-bar: #dcaaaa;

  /* Accent text — the accent mixed 75/25 with --ink, for accent-coloured TEXT
     (links, tags, eyebrows, form errors). The accents are tuned as fills and
     rules: as small text, slate and amber reach only 3.75:1 on white and
     crimson 4.1:1 on its own wash, under the 4.5:1 WCAG 1.4.3 asks for (#12).
     Mixing toward --ink keeps the hue and clears 4.5:1 on --surface, --margin,
     --paper and the matching wash in both themes (dark --ink is light, so the
     same mix lightens there). Derived, not new colours: fills, swatches and
     rules keep the accents unchanged. Declared on :root, they resolve against
     the dark overrides too, since [data-theme] sits on the same element. */
  --crimson-text: color-mix(in srgb, var(--crimson) 75%, var(--ink));
  --forest-text:  color-mix(in srgb, var(--forest) 75%, var(--ink));
  --amber-text:   color-mix(in srgb, var(--amber) 75%, var(--ink));
  --slate-text:   color-mix(in srgb, var(--slate) 75%, var(--ink));

  /* ── Ink / Paper scale ───────────────────────────────────── */
  --paper:   #faf8f4;
  --surface: #ffffff;
  --margin:  #f3efe8;
  --rule:    #e8e2d8;
  /* --form-surface removed with the Mailjet iframe: the rapidmail form is our
     own DOM, so .form-panel uses --margin and themes normally in dark mode. */
  --ink:     #1a1614;
  --ink-2:   #4a4238;
  --ink-3:   #706358;

  /* ── Topbar — always dark, never changes ─────────────────── */
  --tb-bg:       #1a1614;
  --tb-border:   rgba(255,255,255,0.07);
  --tb-text:     rgba(250,249,246,0.50);
  --tb-text-cur: rgba(250,249,246,0.75);
  /* Topbar Sign Up fill. Light-theme crimson, pinned here because the topbar
     never themes: as var(--crimson) it picked up dark crimson #c86b6b in dark
     mode, and white on that is 3.6:1 — under WCAG 1.4.3 (#12). */
  --tb-cta:      #b85555;

  /* ── Typography ──────────────────────────────────────────── */
  --ff-head: 'Raleway', sans-serif;
  --ff-mono: 'IBM Plex Mono', monospace;

  /* ── Spacing scale (4px base) ────────────────────────────── */
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;

  /* ── Misc ────────────────────────────────────────────────── */
  --radius: 2px;
  --transition: background 0.25s, color 0.25s, border-color 0.25s;

  /* ── Motion (#30) ─────────────────────────────────────────── */
  --story-step: 180px; /* scroll per story step: above Firefox's ~150px wheel notch, so one notch never skips a step */
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 560ms;
  --ease-out: cubic-bezier(.2,.7,.2,1);
  /* Damped spring (zeta 0.62), the same feel as the booth video's cut-paper
     moves. A linear() curve, so no JavaScript drives it. */
  --ease-spring: linear(0, 0.028, 0.101, 0.202, 0.319, 0.441, 0.561, 0.672, 0.771, 0.856, 0.926, 0.981, 1.023, 1.052, 1.071, 1.081, 1.084, 1.081, 1.075, 1.067, 1.057, 1.047, 1.037, 1.028, 1.019, 1.012, 1.006, 1.002, 0.998, 0.996, 0.994, 0.993, 0.993, 0.993, 0.994, 0.994, 0.995, 0.996, 0.997, 0.998, 1);
  --zero-fill: var(--crimson);
}

/* ── Dark mode ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --paper:   #13110e;
  --surface: #1f1c16;
  --margin:  #1a1710;
  --rule:    #2a2419;
  --ink:     #f0ebe4;
  --ink-2:   #b8ad9f;
  /* #8e8379, up from #8a7e74: the old value was 4.3:1 on dark --surface,
     just under the 4.5:1 WCAG 1.4.3 asks of the small mono labels that use it
     (eyebrows, table heads, notes). Same hue, nudged lighter (#12). */
  --ink-3:   #8e8379;

  --crimson: #c86b6b;
  --forest:  #6b9678;
  --amber:   #e5a572;
  --slate:   #8fa9b8;

  --crimson-w: #3d2a25;
  --forest-w:  #2d3228;
  --amber-w:   #433527;
  --slate-w:   #313330;

  --crimson-bar: #7c4745;

  /* Muted in dark mode so the name still reads first (#30). */
  --zero-fill: var(--crimson-bar);
}

/* base.css */
/* Base styles — reset, element-level typography, texture.
   Only element selectors here. No classes.
   Google Fonts are loaded via Hugo partial (head-fonts.html). */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* The hidden attribute must win over any component display rule
   (e.g. .notice { display:flex }) — without this, [hidden] elements
   such as the JS-gated signup flash banner render anyway. */
[hidden] { display: none !important; }

body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
  margin: 0;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }

/* ── Alpine.js cloaking ────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── Body ──────────────────────────────────────────────────── */
html { font-size: 17.5px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--ff-head);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  /* --surface, not --paper. Content sits on a surface, always: the
     graph-paper ground is off-brand wherever it shows through. It used to be
     masked per-page by .ed-surface, which meant every new page was one
     forgotten wrapper away from leaking it again — the home hero and the whole
     privacy page both did. Removing the texture removes the trap. */
  background: var(--surface);
  transition: var(--transition);
  min-height: 100vh;
  position: relative;
}

/* ── Headings ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

/* ── Body text ─────────────────────────────────────────────── */
p { color: var(--ink-2); line-height: 1.65; }
p + p { margin-top: var(--sp-md); }

/* ── Links ─────────────────────────────────────────────────── */
/* --slate-text, not --slate: plain slate is 3.75:1 on white (WCAG 1.4.3). */
a { color: var(--slate-text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--ink); text-decoration: underline; }

/* A link inside running text has to be told apart from the words around it
   by more than colour (WCAG 1.4.1): slate on --ink-2 body text is 2.6:1, and
   no slate can be both 4.5:1 on white and 3:1 against --ink-2. Unclassed
   links in <main> are exactly the in-text ones — buttons, nav and cards all
   carry a class — so they keep a permanent underline (#12). */
main a:not([class]) { text-decoration: underline; text-underline-offset: 0.15em; }

/* ── Code / monospace ──────────────────────────────────────── */
code, kbd, samp {
  font-family: var(--ff-mono);
  font-size: 0.85em;
  letter-spacing: 0.02em;
  background: var(--margin);
  padding: 0.15em 0.4em;
  border-radius: var(--radius);
}

/* ── Labels (element-level) ────────────────────────────────── */
label {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: var(--sp-xs);
}

/* ── Tables (element-level) ────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--rule);
}

th {
  font-family: var(--ff-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--margin);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

td {
  font-size: 0.88rem;
  color: var(--ink-2);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
}

tr:hover td { background: var(--margin); }

/* ── Horizontal rules ──────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--rule); margin: var(--sp-xl) 0; }

/* ── Focus visible ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 2px;
}

/* ── Reduced motion ────────────────────────────────────────── */
/* Honour the OS setting: the hero fade-ups, the drawer slide and the theme
   crossfade all collapse to an instant change (#12). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* layout.css */
/* Layout utilities — spacing, flex, grid, responsive.
   No colours or visual styling. Structure only. */

/* ── Spacing: margin ───────────────────────────────────────── */

.mt-xl  { margin-top: var(--sp-xl); }

.mb-lg  { margin-bottom: var(--sp-lg); }

/* ── Spacing: gap ──────────────────────────────────────────── */
.gap-md  { gap: var(--sp-md); }

/* ── Flexbox ───────────────────────────────────────────────── */
.flex        { display: flex; }
.flex-wrap   { flex-wrap: wrap; }

/* ── Display ───────────────────────────────────────────────── */
.hidden       { display: none; }

/* ── Position ──────────────────────────────────────────────── */
.z-content { position: relative; z-index: 1; }

/* ── Table wrapper for mobile scroll ───────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Screen reader only ────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link: hidden like .sr-only until it takes keyboard focus, then shown
   over the topbar. It was plain .sr-only, so the first Tab stop on every
   page was an invisible 1px box (WCAG 2.4.7, #12). */
.skip-link:focus {
  position: fixed; top: var(--sp-sm); left: var(--sp-sm); z-index: 100;
  width: auto; height: auto; margin: 0; overflow: visible; clip: auto;
  padding: var(--sp-sm) var(--sp-md);
  font-family: var(--ff-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--ink); border-radius: var(--radius);
  text-decoration: none;
}

/* components.css */
/* Component classes — all visual UI components.
   Every value references tokens. No hardcoded hex. */

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 var(--sp-lg);
  background: var(--tb-bg);
  border-bottom: 1px solid var(--tb-border);
}

.tb-logo {
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.tb-logo:hover { color: #fff; text-decoration: none; }

.tb-logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slate);
}

.tb-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

@media (max-width: 1023px) {
  .tb-nav { display: none; }
}

.tb-nav-link {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tb-text);
  text-decoration: none;
  padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--radius);
  transition: background 0.12s, color 0.12s;
}

.tb-nav-link:hover,
.tb-nav-link.active {
  color: var(--tb-text-cur);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

.tb-right {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.tb-auth {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

@media (max-width: 1023px) {
  .tb-auth { display: none; }
}

.tb-cta {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  /* --tb-cta, not --crimson: the topbar never themes (see tokens.css). */
  background: var(--tb-cta);
  border: 1px solid var(--tb-cta);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--radius);
  text-decoration: none;
  transition: filter 0.12s;
}

.tb-cta:hover {
  /* Darken, not lighten: brightness(1.12) took white-on-crimson to 3.9:1. */
  filter: brightness(0.9);
  color: #fff;
  text-decoration: none;
}

/* ── Theme toggle (in topbar) ──────────────────────────────── */
.theme-toggle {
  background: none;
  border: none;
  color: var(--tb-text);
  cursor: pointer;
  font-size: 1rem;
  padding: var(--sp-xs);
  transition: color 0.12s;
}

.theme-toggle:hover { color: var(--tb-text-cur); }

/* ── Hamburger button (mobile) ─────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--tb-text);
  cursor: pointer;
  padding: var(--sp-xs);
  font-size: 1.2rem;
}

@media (max-width: 1023px) {
  .hamburger { display: flex; align-items: center; }
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  background: var(--margin);
  border-right: 1px solid var(--rule);
  padding: var(--sp-lg) 0;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  flex-shrink: 0;
  transition: var(--transition);
}

/* Mobile: hidden by default */
@media (max-width: 1023px) {
  .sidebar {
    position: fixed;
    top: 52px;
    left: 0;
    bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    top: 52px;
    z-index: 39;
    background: rgba(0,0,0,0.3);
  }
}

@media (min-width: 1024px) {
  .sidebar-overlay { display: none; }
}

.nav-group { padding: 0 var(--sp-md); margin-bottom: var(--sp-lg); }

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-sm);
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.nav-link:hover {
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.nav-link.active {
  color: var(--crimson);
  border-left-color: var(--crimson);
  background: var(--surface);
}

.nav-link svg, .nav-link i { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: background 0.12s, color 0.12s, transform 0.12s, box-shadow 0.12s;
  border-radius: var(--radius);
}

.btn:hover {
  background: var(--margin);
  color: var(--ink);
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn:disabled, .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Notices / alerts ──────────────────────────────────────── */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
  border-radius: var(--radius);
}

.notice strong { color: var(--ink); }

.notice-bar {
  width: 3px;
  min-height: 22px;
  flex-shrink: 0;
  border-radius: 1px;
  margin-top: 2px;
}

.notice-bar-forest  { background: var(--forest); }

/* Geometry in em, not percentages of the inline box. At the body sizes the
   editorial pages use, `background-size: 100% 42%` at `0 88%` put the bar
   through the middle of the glyphs, so "US CLOUD Act" on the product page
   read as struck out rather than highlighted (#37). These are the same
   values as .ed-hl below, which is the same effect drawn correctly; the
   two implementations exist because the redesign added one without
   retiring the other. Colour still comes from .hl-<colour>. */
.hl {
  display: inline;
  background-size: 100% 0.42em;
  background-repeat: no-repeat;
  background-position: 0 0.74em;
  padding: 0 2px;
}

.hl-crimson { background-image: linear-gradient(var(--crimson-bar), var(--crimson-bar)); }

/* ── Margin column ────────────────────────────────────────── */
.sec-margin {
  border-right: 2px solid var(--ink);
  background: var(--margin);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Section headers ──────────────────────────────────────── */
.sec-title-wrap {
  padding: 2rem 4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.sec-title {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}

/* ── Dark mode overrides for bordered layout ──────────────── */
[data-theme="dark"] .sec-margin {
  border-right-color: rgba(240,237,232,0.12);
}

/* ── Responsive: collapse at 960px ────────────────────────── */
@media (max-width: 960px) {
  .sec-margin {
    display: none;
  }

  .sec-title-wrap {
    padding: 1.5rem var(--sp-lg);
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Centered layout variant (privacy page) ─────────────────── */
.section-hdr-centered {
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
  position: relative;
}

.section-hdr-centered > .sec-title-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem var(--sp-xl);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.bordered-section-centered {
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
  position: relative;
}

.sec-content-centered {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem var(--sp-xl);
}

[data-theme="dark"] .section-hdr-centered {
  border-bottom-color: rgba(240,237,232,0.12);
}

[data-theme="dark"] .bordered-section-centered {
  border-bottom-color: rgba(240,237,232,0.12);
}

@media (max-width: 960px) {
  .section-hdr-centered > .sec-title-wrap {
    padding: 1.5rem var(--sp-lg);
    flex-direction: column;
    align-items: flex-start;
  }

  .sec-content-centered {
    padding: var(--sp-xl) var(--sp-lg);
  }
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.comparison-table th {
  font-family: var(--ff-mono);
  font-size: 0.92rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 2px solid var(--ink);
  color: var(--ink-3);
  background: transparent;
}

.comparison-table td {
  font-family: var(--ff-mono);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: transparent; }
.td-label { color: var(--ink-2); }
.compare-col-head { color: var(--ink) !important; font-weight: 600; }

.check {
  display: inline-block;
  background: var(--forest-w);
  /* --forest-text: plain forest on its wash is 3.9:1 in dark mode (#12). */
  color: var(--forest-text);
  border-radius: var(--radius);
  padding: 0 4px;
  font-size: 1.02rem;
  font-weight: 700;
}

.cross {
  display: inline-block;
  color: var(--ink-3);
  font-size: 0.92rem;
}

/* --ink-3, not --mid: the dash is a table value, and --mid was 1.6:1 (#12). */
.dash { color: var(--ink-3); font-size: 0.92rem; }

/* ── Comparison table dark mode ───────────────────────────── */
[data-theme="dark"] .comparison-table th { border-bottom-color: rgba(240,237,232,0.2); }
[data-theme="dark"] .comparison-table td { border-bottom-color: rgba(240,237,232,0.08); }

/* Panel seating the rapidmail form. Themes normally now the form is our own
   DOM rather than a cross-origin iframe with untouchable dark text. */
.form-panel {
  background: var(--margin);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  /* A component width, not a text measure: the hero column is now full width
     (see .ed-wrap), and a single email field stretched across 990px reads as
     a mistake. */
  max-width: 34rem;
}

/* Required by embedded.js: it toggles this class to swap form <-> success. */
#rmOrganism .hidden { display: none !important; }

#rmOrganism .rmBase__section { margin-bottom: var(--sp-md); }
#rmOrganism .rmBase__section:last-child { margin-bottom: 0; }

#rmOrganism .comp__input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  /* --ink-3, not --mid: on --margin the field needs to read as a field, and
     the light border all but disappeared in dark mode. */
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
}
#rmOrganism .comp__input::placeholder { color: var(--ink-3); }
#rmOrganism .comp__input:focus {
  outline: 2px solid var(--crimson);
  outline-offset: 1px;
  border-color: var(--crimson);
}

#rmOrganism .vFormCheckbox { display: flex; align-items: flex-start; gap: 0.55rem; cursor: pointer; }
#rmOrganism .vFormCheckbox__input {
  width: 1rem;
  height: 1rem;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  accent-color: var(--crimson);
}
/* The consent text sits inside a <label>, which base.css styles as a mono
   uppercase field label. Reset it — this is a sentence, not a field name.
   Sized as fine print: it is a legal string we must show, but it should not
   outweigh the one thing we are actually asking for. */
#rmOrganism .vFormCheckbox__label {
  font-family: var(--ff-head);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.45;
  color: var(--ink-3);
}

/* Hidden until embedded.js adds --has-error to the field wrapper. It must stay
   hidden without that class: the script clears an error by removing the class
   only, leaving the old text in place. role="alert" (in the partial) is
   announced when the element is shown, so display:none is safe for it.
   --crimson-text: plain crimson is 4.2:1 on the --margin panel (#12). */
#rmOrganism .rmBase__compError { display: none; }

#rmOrganism .rmBase__comp--cta {
  font-family: var(--ff-mono);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 2rem;
  cursor: pointer;
}
/* Full width below the wrap breakpoint, where a 215px button under a
   full-bleed input was the third distinct right edge in the panel. */
@media (max-width: 760px) { #rmOrganism .rmBase__comp--cta { width: 100%; } }
#rmOrganism .rmBase__comp--cta:hover { background: var(--crimson); }
#rmOrganism .rmBase__comp--cta:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }

#rmOrganism .rm-privacy { font-size: 0.76rem; line-height: 1.6; color: var(--ink-3); margin: 0; }
#rmOrganism .rm-privacy a { color: var(--ink-2); }
#rmOrganism .rm-success { font-size: 1rem; line-height: 1.7; color: var(--ink-2); margin: 0; }
#rmOrganism .rm-success strong { color: var(--ink); }

/* FAQ definition list (compliance) — question rule + spaced answers */
.faq { max-width: var(--measure); margin: 0; }
.faq .faq-q {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  border-top: 2px solid var(--rule);
  padding-top: var(--sp-lg);
  margin-top: var(--sp-lg);
  transition: var(--transition);
  /* Each question carries an id for deep-linking (e.g. the home page's CLOUD
     Act mention). The topbar is sticky at 52px, so an anchor jump needs this
     offset or the question lands hidden underneath it. */
  scroll-margin-top: calc(52px + var(--sp-lg));
}
.faq .faq-q:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.faq .faq-a {
  color: var(--ink-2);
  line-height: 1.7;
  margin: var(--sp-sm) 0 0 0;
  transition: var(--transition);
}

/* ══════════════════════════════════════════════════════════════
   DARK FOOTER (multi-column)
══════════════════════════════════════════════════════════════ */
.brand-footer {
  display: grid;
  grid-template-columns: 64px 1fr 1fr 1fr 320px;
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
}

.brand-footer .sec-margin {
  border-right: 1px solid rgba(250,249,246,0.08);
  background: rgba(0,0,0,0.2);
}

.footer-col {
  padding: 3.5rem 2.5rem;
  border-right: 1px solid rgba(250,249,246,0.06);
}

.footer-col:last-of-type { border-right: none; }

.footer-logo {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--paper);
}

.footer-tagline {
  font-size: 0.94rem;
  color: rgba(250,249,246,0.5);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.footer-swatches {
  display: flex;
  gap: 4px;
}

.footer-swatch {
  width: 12px;
  height: 12px;
  border-radius: var(--radius);
}

.footer-col-label {
  font-family: var(--ff-mono);
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,249,246,0.55);
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }

.footer-links a {
  font-size: 0.96rem;
  color: rgba(250,249,246,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--paper); text-decoration: none; }
/* The footer stays dark in both themes, but --paper turns near-black in dark
   mode — the footer wordmark was 1.04:1 there and hovered links vanished
   (WCAG 1.4.3, #12). Dark --ink is the light tone in that theme. */
[data-theme="dark"] .footer-logo,
[data-theme="dark"] .footer-links a:hover { color: var(--ink); }

.footer-contact {
  padding: 3.5rem 2.5rem;
  border-left: 1px solid rgba(250,249,246,0.06);
}

.footer-contact-label {
  font-family: var(--ff-mono);
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,249,246,0.55);
  margin-bottom: 0.75rem;
}

.footer-contact-val {
  font-family: var(--ff-mono);
  font-size: 0.9rem;
  color: rgba(250,249,246,0.65);
  letter-spacing: 0;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  overflow-wrap: break-word;
}
/* The footer is dark in both themes, so its links keep plain --slate (4.8:1
   on the footer) rather than the darker --slate-text that base.css now gives
   links on light grounds (#12). */
.footer-contact-val a { color: var(--slate); }

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(250,249,246,0.06);
  padding: 1.25rem 2.5rem 1.25rem calc(64px + 2.5rem);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 2.5rem;
}

.footer-legal {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* 0.5, up from 0.35 (3.1:1): the legal line is small text, 4.5:1 needed
     (WCAG 1.4.3, #12). Matches .footer-tagline. */
  color: rgba(250,249,246,0.5);
  line-height: 1.6;
}

/* ── Footer dark mode ─────────────────────────────────────── */
[data-theme="dark"] .brand-footer {
  background: #0d0a07;
  border-top-color: rgba(240,235,228,0.08);
}
[data-theme="dark"] .brand-footer .sec-margin {
  background: rgba(0,0,0,0.4);
  border-right-color: rgba(240,237,232,0.06);
}
[data-theme="dark"] .footer-col { border-right-color: rgba(240,237,232,0.05); }
[data-theme="dark"] .footer-col-label { color: rgba(240,237,232,0.5); }
[data-theme="dark"] .footer-links a { color: rgba(240,237,232,0.5); }
[data-theme="dark"] .footer-links a:hover { color: var(--ink); }
[data-theme="dark"] .footer-contact { border-left-color: rgba(240,237,232,0.05); }
[data-theme="dark"] .footer-contact-val { color: rgba(240,237,232,0.6); }
[data-theme="dark"] .footer-bottom { border-top-color: rgba(240,237,232,0.05); }

/* ── Footer responsive ────────────────────────────────────── */
@media (max-width: 960px) {
  .brand-footer {
    grid-template-columns: 1fr 1fr;
  }
  .brand-footer > .sec-margin { display: none; }
  .footer-contact { border-left: none; border-top: 1px solid rgba(250,249,246,0.06); }
  .footer-bottom {
    grid-column: 1 / -1;
    padding-left: 2.5rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .brand-footer { grid-template-columns: 1fr; }
  .footer-col { border-right: none; border-bottom: 1px solid rgba(250,249,246,0.06); }
}

/* ── Compliance facts definition list ─────────────────────── */
.compliance-facts { max-width: var(--measure); margin: 0; }

.compliance-facts dt {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: var(--sp-md);
  transition: var(--transition);
}

.compliance-facts dd {
  margin: 0.25rem 0 var(--sp-md) 0;
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: var(--transition);
}

.compliance-facts dd:last-child { border-bottom: 0; }

/* ══════════════════════════════════════════════════════════════
   Editorial components — token-driven. Added by the 2026-07-21 redesign:
   see docs/superpowers/plans/2026-07-21-restricted-editorial-redesign.md
   ══════════════════════════════════════════════════════════════ */
.ed-wrap{max-width:1060px;margin:0 auto;padding:0 var(--sp-xl);}

/* One measure for every text block on the editorial pages. Card rows and
   tables run the full wrap width; display type (hero/CTA) uses --measure-display.
   Anything setting its own max-width here creates a ragged right edge — see #29. */
:root{--measure:680px;--measure-display:880px;}

/* Inside a wrap there is ONE column width, and the card row defines it: text
   blocks run the full wrap so their right edge lands on the third card's right
   edge, not the second's. A narrower text measure — 680px, or the two-track
   calc that replaced it — stacks two different column widths on the same page,
   which is what read as broken alignment (#29). Body sizes below are set a
   notch up to keep the longer line length readable. */
.ed-wrap{--measure:100%;--measure-display:100%;}

/* Hero */
.ed-hero{padding:var(--sp-3xl) 0 var(--sp-2xl);max-width:var(--measure-display);}
.ed-eyebrow{font-family:var(--ff-mono);font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ed-sec,var(--ink-3));margin-bottom:var(--sp-lg);transition:var(--transition);}
.ed-display{font-family:var(--ff-head);font-weight:801;font-size:clamp(2.4rem,6vw,4.4rem);line-height:1.04;letter-spacing:-.03em;margin:0 0 var(--sp-lg);text-wrap:balance;color:var(--ink);transition:var(--transition);}
.ed-em{position:relative;white-space:nowrap;}
.ed-em::after{content:"";position:absolute;left:-.04em;right:-.04em;bottom:.08em;height:.28em;background:var(--crimson-bar);z-index:-1;transition:var(--transition);}
/* No max-width: standfirsts run the full column like every other text block
   in .ed-wrap. The hero lead below sets its own, being display type. */
.ed-stand{font-size:1.2rem;line-height:1.62;color:var(--ink-2);margin:0 0 var(--sp-xl);}
/* Hero standfirst carrying the positioning line itself (the home page h1 is
   now just the company name), so it sits a step above body standfirst size. */
.ed-stand--lead{font-family:var(--ff-head);font-weight:400;font-size:clamp(1.35rem,2.6vw,1.8rem);line-height:1.4;letter-spacing:-.01em;color:var(--ink);max-width:24em;transition:var(--transition);}
/* Ruled top and bottom: the stat row now sits above the signup form, so it
   needs a closing rule to separate it from the form panel below (#29). */
.ed-trust{display:flex;flex-wrap:wrap;gap:var(--sp-xl);padding:var(--sp-lg) 0;margin:var(--sp-xl) 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);}
.ed-trust div{font-family:var(--ff-mono);font-size:.74rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);}
.ed-trust b{display:block;font-family:var(--ff-head);font-weight:801;font-size:1.5rem;letter-spacing:-.02em;color:var(--ink);text-transform:none;margin-bottom:.2rem;}
.ed-trust .ed-c0{color:var(--crimson);}
.ed-trust .ed-cf{color:var(--forest);}
/* Jobs row (marketing#109): the stat-row idiom, naming each job against
   what it replaces. Tighter bottom margin so the price line sits with it. */
.ed-trust--jobs{margin-bottom:var(--sp-md);}
.ed-price{font-family:var(--ff-mono);font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);margin:0;}
.ed-price b{font-family:var(--ff-head);font-weight:801;font-size:1.15rem;letter-spacing:-.02em;color:var(--forest-text);text-transform:none;}
/* Sovereignty band: the old hero stats, one band down */
.ed-sov{padding-top:var(--sp-2xl);}
.ed-sov .ed-stand{margin-bottom:0;}
/* "Moving across" note, under the platform cards */
.ed-moving{margin-bottom:var(--sp-2xl);}

/* Opaque surface region. The body is now --surface too (see base.css), so
   this no longer masks anything — it stays because the wash bands nested
   inside it need an explicit ground to return to. */
.ed-surface{background:var(--surface);transition:var(--transition);}

/* Full-bleed wash-ground section */
.ed-band{transition:var(--transition);}
.ed-band--crimson{background:var(--crimson-w);}
.ed-band--slate{background:var(--slate-w);}

/* Thesis (single statement + one sweep).
   padding-block, not the padding shorthand: this class shares its element
   with .ed-wrap, and the shorthand was zeroing the wrap's side padding,
   pulling the whole section 35px left of every other block. */
.ed-thesis{padding-block:var(--sp-3xl);}
.ed-thesis .ed-eyebrow{--ed-sec:var(--crimson-text);}
.ed-thesis p{font-family:var(--ff-head);font-weight:400;font-size:clamp(1.5rem,3.2vw,2rem);line-height:1.4;letter-spacing:-.01em;max-width:22em;color:var(--ink);margin:0;}
.ed-hl{background:linear-gradient(var(--crimson-bar),var(--crimson-bar));background-size:100% .34em;background-repeat:no-repeat;background-position:0 .85em;padding:0 2px;}
/* Anchor variant: same highlight sweep, but it's a link — strip the browser's
   default link styling so the crimson underline reads as the only affordance,
   then deepen it on hover/focus to confirm it's interactive. */
.ed-hl-link{color:inherit;text-decoration:none;cursor:pointer;transition:var(--transition);}
.ed-hl-link:hover,.ed-hl-link:focus-visible{color:var(--crimson);text-decoration:none;}

/* Accent-top-rule row (differentiators + platform) */
.ed-sec-head{max-width:var(--measure);padding:var(--sp-2xl) 0 var(--sp-xl);}
.ed-sec-head h1,.ed-sec-head h2{font-family:var(--ff-head);font-weight:801;font-size:clamp(1.8rem,4vw,2.6rem);letter-spacing:-.025em;margin:0 0 var(--sp-sm);color:var(--ink);}
.ed-sec-head p{color:var(--ink-2);font-size:1.15rem;line-height:1.7;margin:0;}
.ed-row{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-xl);padding-bottom:var(--sp-3xl);}
.ed-item{border-top:2px solid var(--ed-c,var(--ink));padding-top:1.1rem;}
.ed-item .ed-tag{font-family:var(--ff-mono);font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:color-mix(in srgb,var(--ed-c,var(--ink-3)) 75%,var(--ink));margin-bottom:.5rem;}
/* ^ The tag takes the card's accent as text, so it gets the same 75/25 mix
   with --ink as the --*-text tokens: slate and amber tags were 3.75:1 (#12). */
.ed-item h3,.ed-item h4{font-family:var(--ff-head);font-weight:801;font-size:1.2rem;letter-spacing:-.01em;margin:0 0 .5rem;color:var(--ink);}
.ed-item p{margin:0;color:var(--ink-2);font-size:.96rem;}
.ed-prose{max-width:var(--measure);}
.ed-prose p{font-size:1.12rem;color:var(--ink-2);line-height:1.8;margin:0 0 1.1rem;}
.ed-prose p:last-child{margin-bottom:0;}
@media (max-width:760px){.ed-row{grid-template-columns:1fr;gap:var(--sp-lg);}}
/* 5-item row: 6 tracks so the orphan pair below spans half-width each
   instead of leaving a dead third cell (about page principles). */
@media (min-width:761px){
  .ed-row--5{grid-template-columns:repeat(6,1fr);}
  .ed-row--5>.ed-item{grid-column:span 2;}
  .ed-row--5>.ed-item:nth-child(n+4){grid-column:span 3;}
}

/* Comparison table — hairline rules, layered over .comparison-table (product page) */
.ed-table{width:100%;border-collapse:collapse;font-size:.92rem;}
.ed-table th,.ed-table td{padding:.9rem 1rem;border-top:1px solid var(--rule);text-align:left;}
.ed-table thead th{font-family:var(--ff-mono);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);border-top:none;}
.ed-table .ed-td-label{color:var(--ink);}
.ed-table .ed-fn{font-family:var(--ff-mono);font-size:.62rem;color:var(--ink-3);margin-left:.2rem;vertical-align:super;line-height:0;}
.ed-table-note{max-width:var(--measure);margin:var(--sp-md) 0 0;font-size:.82rem;color:var(--ink-3);line-height:1.6;}

/* Platform card feature bullets (additive; restores frozen product claims) */
.ed-feats{list-style:none;margin:.9rem 0 0;padding:0;}
.ed-feats li{position:relative;padding:.4rem 0 .4rem 1.1rem;font-size:.88rem;color:var(--ink-2);border-top:1px solid var(--rule);}
.ed-feats li:first-child{border-top:none;}
.ed-feats li::before{content:"";position:absolute;left:0;top:1rem;width:.4rem;height:1px;background:var(--ed-c,var(--ink-3));}

/* "What's included" eyebrow label above a service strip's .ed-feats list */
.ed-feats-label{font-family:var(--ff-mono);font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);margin-top:var(--sp-md);}

/* CTA band inner wrap (mirrors .ed-hero sizing without reusing it — see #29).
   Must be a CHILD of .ed-wrap, like .ed-hero. Put on the same element, its
   max-width overrode the wrap's 1060px and the wrap's `margin:0 auto` then
   centred the narrower box, indenting the CTA 55px from every other section. */
.ed-cta{padding-block:var(--sp-3xl) var(--sp-2xl);max-width:var(--measure-display);}

/* /demo/ (#68): the QR-code landing page. A note under the booking button,
   and room under the fallback line before the footer. */
.demo-note{font-family:var(--ff-mono);font-size:.74rem;letter-spacing:.04em;color:var(--ink-3);margin:var(--sp-md) 0 0;transition:var(--transition);}
.demo-fallback{padding-bottom:var(--sp-3xl);}
/* Two-card row; stacks below 761px like every other .ed-row. */
@media (min-width:761px){.ed-row--2{grid-template-columns:repeat(2,1fr);}}

/* prose.css */
/* Prose — styles for markdown-rendered blog content.
   Scoped under .prose wrapper so it doesn't leak into page templates. */

.prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }

.prose h2 { font-size: 1.6rem; margin-top: var(--sp-2xl); margin-bottom: var(--sp-md); }
.prose h3 { font-size: 1.3rem; margin-top: var(--sp-xl); margin-bottom: var(--sp-sm); }
.prose h4 { font-size: 1.05rem; margin-top: var(--sp-lg); margin-bottom: var(--sp-sm); }

.prose p { margin-bottom: var(--sp-md); }
.prose p:last-child { margin-bottom: 0; }

.prose ul, .prose ol { margin-bottom: var(--sp-md); padding-left: var(--sp-xl); }
.prose li { margin-bottom: var(--sp-xs); }
.prose li::marker { color: var(--ink-3); }

.prose blockquote {
  border-left: 3px solid var(--slate);
  padding: var(--sp-sm) var(--sp-lg);
  margin: var(--sp-lg) 0;
  background: var(--slate-w);
  color: var(--ink-2);
  font-size: 1rem;
}
.prose blockquote p { margin-bottom: var(--sp-xs); }
.prose blockquote p:last-child { margin-bottom: 0; }

.prose pre {
  background: var(--margin);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-md);
  overflow-x: auto;
  margin-bottom: var(--sp-md);
  font-size: 0.92rem;
  line-height: 1.6;
}
.prose pre code { background: none; padding: 0; font-size: inherit; }

.prose img { border: 1px solid var(--rule); border-radius: var(--radius); margin: var(--sp-lg) 0; }
.prose figure { margin: var(--sp-lg) 0; }
.prose figcaption {
  font-family: var(--ff-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: var(--sp-xs);
  text-align: center;
}

.prose hr { border: none; border-top: 1px solid var(--rule); margin: var(--sp-2xl) 0; }
.prose a { color: var(--slate-text); text-decoration: underline; } /* --slate-text: plain slate is 3.75:1 on white (#12) */
.prose a:hover { color: var(--ink); }
.prose table { margin-bottom: var(--sp-md); }
.prose strong { color: var(--ink); }

/* motion.css */
/* Motion layer for the editorial site (#30).
   Contract: with no JavaScript, or with reduced motion, every element is in
   its FINAL state. Start states exist only under html.js, which motion.js sets
   and which it never sets when reduced motion is on. Animate transform,
   opacity and clip-path only. */

/* ── Reveals: opt-in via data-reveal, never "everything" ─────── */
.js [data-reveal]:not(.is-in){opacity:0;transform:translateY(14px)}
.js [data-reveal].is-in{transition:opacity var(--dur-2) var(--ease-out),transform var(--dur-3) var(--ease-spring)}

/* ── Card accent rules sweep in ───────────────────────────────── */
.js .ed-item{position:relative;border-top-color:transparent}
.js .ed-item::before{content:"";position:absolute;left:0;right:0;top:-2px;height:2px;background:var(--ed-c,var(--ink));transform:scaleX(0);transform-origin:left}
.js .ed-item.is-in::before{transform:scaleX(1);transition:transform 700ms var(--ease-out) calc(var(--i,0) * 90ms)}

/* ── Buttons: a deliberate hover. Focus rings untouched ─────── */
.btn{transition:transform var(--dur-1) var(--ease-out),background var(--dur-1),color var(--dur-1),box-shadow var(--dur-1)}
.btn:hover{transform:translateY(-2px);box-shadow:0 2px 0 var(--ink)}

/* ── Reduced motion backstop (base.css already zeroes durations) ─ */
@media (prefers-reduced-motion: reduce){
  .btn:hover{transform:none}
}

/* ── Home hero: the banner zero (#30) ────────────────────────── */
.hero-zero{position:relative;overflow:hidden}
.hero-zero>.ed-wrap{position:relative;z-index:2}
.hero-zero__drift{position:absolute;z-index:1;right:-16vw;top:-22vw;width:min(70vw,1240px);pointer-events:none}
.hero-zero__glyph{display:block;width:100%;height:auto}
.hero-zero__glyph path{fill:var(--zero-fill);transition:fill .25s}
.hero-zero .ed-hero{min-height:calc(100vh - 52px);display:flex;flex-direction:column;justify-content:center;padding-top:var(--sp-xl)}
.hero-zero .ed-display{font-size:clamp(3.4rem,10.4vw,10.2rem);line-height:.86;letter-spacing:-.04em}
.hero-line{display:block;overflow:hidden}
.hero-line>span{display:block}
/* Spec says min(36vw,520px); the prototype's lead touched the glyph at 1440px,
   so this starts tighter. The clearance test decides the final value. */
.hero-zero .ed-stand--lead{max-width:min(32vw,480px)}
.hero-zero .ed-trust{display:grid;grid-template-columns:repeat(2,max-content);gap:var(--sp-md) var(--sp-2xl);width:max-content}

/* On load: pure CSS, so first paint never waits on a script (C2.6, B4). */
@keyframes hero-zero-land{from{transform:translateY(22%) rotate(-4deg);opacity:0}to{transform:none;opacity:1}}
@keyframes hero-rise{from{transform:translateY(105%)}to{transform:none}}
@keyframes hero-fade-up{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
.hero-zero__glyph{animation:hero-zero-land 1100ms var(--ease-spring) 80ms both}
.hero-line>span{animation:hero-rise 900ms var(--ease-spring) 220ms both}
.hero-line+.hero-line>span{animation-delay:310ms}
.hero-rest>*{animation:hero-fade-up 700ms var(--ease-spring) both}
.hero-rest>:nth-child(1){animation-delay:520ms}
.hero-rest>:nth-child(2){animation-delay:600ms}
.hero-rest>:nth-child(3){animation-delay:680ms}

/* Drift on scroll: CSS scroll timeline only; static where unsupported. */
@supports (animation-timeline: scroll()){
  @keyframes hero-zero-drift{to{transform:translateY(198px)}}
  .hero-zero__drift{animation:hero-zero-drift linear both;animation-timeline:scroll(root);animation-range:0 900px}
}

@media (max-width:1099px){.hero-zero__drift{right:-30vw;top:-10vw;width:90vw}}
@media (max-width:639px){.hero-zero__drift{display:none}.hero-zero .ed-stand--lead{max-width:none}}
@media (prefers-reduced-motion: reduce){
  .hero-zero__glyph,.hero-line>span,.hero-rest>*,.hero-zero__drift{animation:none}
}

/* ── Story scaffold (#30). Default = static list + FINAL diagram ─ */
.story{position:relative}
.story__wrap{max-width:1320px;display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:var(--sp-xl);padding-block:var(--sp-2xl)}
.story__steps{list-style:none;margin:0;padding:0;display:grid;gap:var(--sp-xl)}
.story__heading{font-family:var(--ff-head);font-weight:801;font-size:clamp(1.6rem,2.5vw,2.4rem);line-height:1.08;letter-spacing:-.025em;margin:0 0 var(--sp-md)}
.story__step p{font-size:1.05rem;line-height:1.7;color:var(--ink-2);margin:0}
.story__step .ed-eyebrow{margin-bottom:var(--sp-md)}
.story__progress,.story__markers{display:none}
.story__stage{display:flex;align-items:flex-start;justify-content:center;min-height:420px}
.story__stage svg{width:100%;height:100%;max-height:820px;overflow:visible}

/* Fact rows under a step body (#30 rev A). Everywhere, static and pinned. */
.story__facts{margin:var(--sp-lg) 0 0;padding:0}
.story__facts>div{display:grid;grid-template-columns:11rem minmax(0,1fr);gap:var(--sp-md);border-top:1px solid var(--rule);padding:.55rem 0}
.story__facts dt{font-family:var(--ff-mono);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
.story__facts dd{margin:0;font-size:.95rem;color:var(--ink)}
@media (max-width:479px){.story__facts>div{grid-template-columns:minmax(0,1fr);gap:.2rem}}

/* Pinned only with the script, wide enough, tall enough, and motion allowed.
   Under 600px tall there is no room to pin: the static list is used instead. */
@media screen and (min-width:640px) and (min-height:600px){
  .js .story{
    /* The panel is as tall as its content (capped to the screen) and pins
       vertically centred. motion.js measures it into --panel-h; without that,
       fall back to the full-height panel under the topbar. */
    --pin-top:max(52px, calc(52px + (100vh - 52px - var(--panel-h, calc(100vh - 52px))) / 2));
    height:calc(var(--steps) * var(--story-step) + var(--panel-h, calc(100vh - 52px)));
    margin-bottom:var(--sp-xl)}
  .js .story__panel{position:sticky;top:var(--pin-top);height:auto;max-height:calc(100vh - 52px);overflow:hidden}
  .js .story__wrap{align-items:start;padding-block:var(--sp-md)}
  .js .story__steps{display:grid}
  .js .story__step{grid-area:1/1;opacity:0;transform:translateY(24px);pointer-events:none;transition:opacity 220ms var(--ease-out),transform 420ms var(--ease-spring)}
  .js .story__step.is-current{opacity:1;transform:none;pointer-events:auto}
  .js .story__stage{min-height:0;align-items:flex-start}
  .js .story__stage svg{height:auto;max-height:min(760px, calc(100vh - 52px - 2 * var(--sp-md)))}
  .js .story__progress{display:flex;gap:.5rem;margin-top:var(--sp-2xl)}
  .js .story__progress i{position:relative;display:block;width:2.2rem;height:3px;background:var(--rule);overflow:hidden}
  .js .story__progress i::after{content:"";position:absolute;inset:0;background:var(--ink);transform:scaleX(var(--f,0));transform-origin:left}
  .js .story__markers{display:block;position:absolute;inset:0;pointer-events:none}
  .js .story__markers span{position:absolute;left:0;width:1px;top:calc(50vh - var(--pin-top) + var(--i) * var(--story-step));height:var(--story-step)}
}
@media screen and (min-width:640px) and (min-height:600px) and (max-width:1099px){
  .js .story__panel{height:calc(100vh - 52px)}
  .js .story__wrap{height:100%;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
  .js .story__steps{padding-top:var(--sp-lg)}
  .js .story__stage{height:auto;min-height:0;align-self:stretch;overflow:hidden;align-items:center;padding-top:0}
  .js .story__stage svg{height:100%;max-height:100%}
}
@media (max-width:1099px){.story__wrap{grid-template-columns:1fr}}

/* 600-759px tall: only the first (most important) fact row of each step. */
@media screen and (min-width:640px) and (min-height:600px) and (max-height:759px){
  .js .story__facts>:nth-child(n+2){display:none}
}

/* Progress fill from the CSS scroll timeline where supported (4-step stories). */
@supports (animation-timeline: view()){
  @keyframes story-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
  .js .story{view-timeline:--story block;view-timeline-inset:var(--pin-top) calc(100vh - var(--pin-top) - var(--panel-h, calc(100vh - 52px)))}
  .js .story__progress i::after{transform:none;animation:story-fill linear both;animation-timeline:--story}
  .js .story__progress i:nth-child(1)::after{animation-range:contain 0% contain 25%}
  .js .story__progress i:nth-child(2)::after{animation-range:contain 25% contain 50%}
  .js .story__progress i:nth-child(3)::after{animation-range:contain 50% contain 75%}
  .js .story__progress i:nth-child(4)::after{animation-range:contain 75% contain 100%}
}

/* ── Stack diagram. Default (no data-step) = step 4 final state ─ */
.stack__slab{transform:translateY(calc(var(--i) * -114px));transition:transform 820ms var(--ease-spring)}
.stack__slab--slate{--acc:var(--slate);--acc-w:var(--slate-w)}
.stack__slab--forest{--acc:var(--forest);--acc-w:var(--forest-w)}
.stack__slab--crimson{--acc:var(--crimson);--acc-w:var(--crimson-w)}
.stack__top{fill:var(--surface);stroke:var(--ink);stroke-width:2}
.stack__side-l{fill:var(--margin);stroke:var(--ink);stroke-width:2}
.stack__side-r{fill:var(--rule);stroke:var(--ink);stroke-width:2}
.stack__lead{stroke:var(--ink-3);stroke-width:1.5}
.stack__t1{font-family:var(--ff-head);font-weight:900;font-size:22px;fill:var(--ink)}
.stack__t2{font-family:var(--ff-mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;fill:var(--ink-3)}
.stack__slab text,.stack__slab .stack__lead{transition:opacity var(--dur-2) var(--ease-out)}
.stack__whole{opacity:0;transition:opacity var(--dur-2)}
/* active layers per step; default = final (instance + Paris) */
.story:not([data-step]) .stack__slab:is([data-layer="0"],[data-layer="1"]) .stack__top,
.story[data-step="3"] .stack__slab:is([data-layer="0"],[data-layer="1"]) .stack__top,
.story[data-step="1"] .stack__slab[data-layer="3"] .stack__top,
.story[data-step="2"] .stack__slab[data-layer="2"] .stack__top{fill:var(--acc-w);stroke:var(--acc)}
.story:not([data-step]) .stack__slab:not([data-layer="0"]):not([data-layer="1"]) text,
.story[data-step="3"] .stack__slab:not([data-layer="0"]):not([data-layer="1"]) text,
.story[data-step="1"] .stack__slab:not([data-layer="3"]) text,
.story[data-step="2"] .stack__slab:not([data-layer="2"]) text{opacity:.45}
/* step 0: one collapsed block, one label */
.story[data-step="0"] .stack__slab{transform:translateY(calc(var(--i) * -24px - 255px))}
.story[data-step="0"] .stack__slab text,.story[data-step="0"] .stack__slab .stack__lead{opacity:0}
.story[data-step="0"] .stack__whole{opacity:1}

/* ── Route diagram: who controls it vs where it runs. Default (no data-step) = step 3 final state ─ */
.route text{font-family:var(--ff-head);fill:var(--ink)}
.route .route__row{font-family:var(--ff-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;fill:var(--ink-3)}
.route .route__t1{font-weight:900;font-size:19px}
.route .route__t2{font-family:var(--ff-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;fill:var(--ink-3)}
.route .route__zl{font-family:var(--ff-mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;fill:var(--ink-3)}
.route .route__orderlbl{font-family:var(--ff-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;fill:var(--crimson-text)}
.route .route__note{font-weight:600;font-size:13px;fill:var(--crimson-text)}
.route .route__ok{font-weight:600;font-size:13px;fill:var(--forest-text)}
.route__bx{fill:var(--surface);stroke:var(--ink);stroke-width:2}
.route__auth .route__bx{stroke:var(--ink-3)}
.route__us .route__bx{stroke:var(--crimson)}
:is(.route__ez,.route__host,.route__srv,.route__inst) .route__bx{stroke:var(--slate)}
:is(.route__org,.route__bk) .route__bx{stroke:var(--forest)}
.route__sep{stroke:var(--rule)}
.route__zone{fill:none;stroke:var(--slate);stroke-width:1.5;stroke-dasharray:6 6}
.route__link{stroke:var(--slate);stroke-width:2}
.route__head{fill:none;stroke-width:1.6;transition:opacity var(--dur-2) var(--ease-out)}
.route__head--reach{stroke:var(--crimson)}
.route__head--exit{stroke:var(--forest)}
.route__order,.route__push{fill:none;stroke:var(--crimson);stroke-width:2.5}
.route__push{stroke-dasharray:5 4}
.route__stub{fill:none;stroke:var(--crimson);stroke-width:2.5}
.route__bar{stroke:var(--forest);stroke-width:3}
.route__ctl{fill:none;stroke:var(--ink-3);stroke-width:1.5;stroke-dasharray:3 4}
.route__bklink{stroke:var(--forest);stroke-width:2;stroke-dasharray:4 5}
.route__exit{fill:none;stroke:var(--forest);stroke-width:2.5;stroke-dasharray:400;stroke-dashoffset:0}
.route__chip rect{fill:var(--forest-w);stroke:var(--forest);stroke-width:1.5}
.route__chip text{font-family:var(--ff-mono);font-size:12px;letter-spacing:.08em;fill:var(--forest-text)}
/* Final state: the US company, its arrows and the servers box are gone. */
.route__us,.route__ez,.route__host,.route__bk,.route__bar{transform-box:fill-box;transform-origin:center;transition:opacity var(--dur-2) var(--ease-out),transform 760ms var(--ease-spring)}
.route__srv,.route__inst,.route__stub,.route__ok,.route__ctl,.route__chip,.route__orderlbl,.route__note,.route__push{transition:opacity var(--dur-2) var(--ease-out)}
.route__order{stroke-dasharray:160;stroke-dashoffset:160;transition:stroke-dashoffset 700ms var(--ease-out),opacity var(--dur-2) var(--ease-out)}
.route__exit{transition:stroke-dashoffset 900ms var(--ease-out),opacity var(--dur-2) var(--ease-out)}
.route__us{opacity:0;transform:translateY(40px) rotate(8deg)}
:is(.route__srv,.route__order,.route__orderlbl,.route__note,.route__push){opacity:0}
.route__stub{opacity:.45}
.route__ez{transition-delay:0ms}
.route__host{transition-delay:80ms}
.route__bar{transition-delay:200ms}
.route__ok{transition-delay:300ms}
.route__ctl{transition-delay:250ms}
.story[data-step="3"] .route__chip{transition-delay:420ms}
/* step 0: with a US provider */
.story[data-step="0"] .route__us{opacity:1;transform:none;transition-delay:0ms}
.story[data-step="0"] :is(.route__srv,.route__orderlbl,.route__note,.route__push){opacity:1}
.story[data-step="0"] .route__order{opacity:1;stroke-dashoffset:0}
.story[data-step="0"] :is(.route__ez,.route__host,.route__bk,.route__chip,.route__inst,.route__stub,.route__bar,.route__ok,.route__ctl,.route__exit){transition-delay:0ms}
.story[data-step="0"] :is(.route__ez,.route__host){opacity:0;transform:translateY(24px)}
.story[data-step="0"] :is(.route__inst,.route__stub,.route__ok,.route__ctl,.route__chip,.route__exit){opacity:0}
.story[data-step="0"] .route__bar{opacity:0;transform:scaleY(0)}
.story[data-step="0"] .route__bk,.story[data-step="1"] .route__bk{opacity:0;transform:translateY(30px)}
/* Arrowheads are markers, so they would show before their line finishes
   drawing. Fade them in late instead (opacity only, no colour transition). */
.route__head--reach{opacity:0}
.story[data-step="0"] .route__head--reach{opacity:1;transition-delay:560ms}
.story:is([data-step="0"],[data-step="1"],[data-step="2"]) .route__head--exit{opacity:0;transition-delay:0ms}
.story[data-step="3"] .route__head--exit{transition-delay:700ms}
/* steps 0-2: no exit curve yet; the chip arrives with it */
.story:is([data-step="0"],[data-step="1"],[data-step="2"]) .route__exit{opacity:0;stroke-dashoffset:400}
.story:is([data-step="1"],[data-step="2"]) .route__chip{opacity:0}
.story[data-step="1"] .route__bk{transition-delay:0ms}

/* ── About: founder grid and portrait (#30) ──────────────────── */
.founder{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:var(--sp-2xl);align-items:start;padding-bottom:var(--sp-2xl)}
.founder:not(:has(.founder-portrait)){grid-template-columns:minmax(0,1fr)}
.founder-portrait{position:sticky;top:90px}
.founder-portrait__frame{background:var(--margin);border-top:2px solid var(--crimson);padding:1.2rem}
.founder-portrait__img{aspect-ratio:4/5;background:var(--ink);-webkit-mask:url(/images/founder-sketch.png) center/contain no-repeat;mask:url(/images/founder-sketch.png) center/contain no-repeat}
.founder-portrait__cap{font:500 .72rem var(--ff-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);margin-top:.8rem}
.js .founder-portrait:not(.is-in) .founder-portrait__img{clip-path:inset(0 0 100% 0)}
.js .founder-portrait.is-in .founder-portrait__img{clip-path:inset(0);transition:clip-path 1300ms var(--ease-out) 150ms}
@supports not ((mask:url(#x)) or (-webkit-mask:url(#x))){
  .founder-portrait__img{background:url(/images/founder-sketch.png) center/contain no-repeat}
}
@media (max-width:899px){
  .founder{grid-template-columns:1fr}
  .founder-portrait{position:static;order:-1;max-width:220px}
}

/* ── Product: comparison table (#30) ─────────────────────────── */
.comparison-table td:nth-child(2),.comparison-table .compare-col-head{background:var(--forest-w)}
.comparison-table td:nth-child(2) .check{background:var(--paper)}
.comparison-table .compare-col-head{position:relative}
.comparison-table .compare-col-head::after{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--forest)}
.js .comparison-table[data-reveal-rows]:not(.is-in) tbody tr{opacity:0;transform:translateY(8px)}
.js .comparison-table[data-reveal-rows]:not(.is-in) .compare-col-head::after{transform:scaleX(0)}
.js .comparison-table[data-reveal-rows].is-in .compare-col-head::after{transform-origin:left;transition:transform 700ms var(--ease-out)}
.js .comparison-table[data-reveal-rows].is-in tbody tr{transition:opacity var(--dur-2) var(--ease-out),transform var(--dur-3) var(--ease-spring)}
.js .comparison-table[data-reveal-rows].is-in tbody tr:nth-child(2){transition-delay:40ms}
.js .comparison-table[data-reveal-rows].is-in tbody tr:nth-child(3){transition-delay:80ms}
.js .comparison-table[data-reveal-rows].is-in tbody tr:nth-child(4){transition-delay:120ms}
.js .comparison-table[data-reveal-rows].is-in tbody tr:nth-child(5){transition-delay:160ms}
.js .comparison-table[data-reveal-rows].is-in tbody tr:nth-child(6){transition-delay:200ms}
.js .comparison-table[data-reveal-rows].is-in tbody tr:nth-child(7){transition-delay:240ms}
.js .comparison-table[data-reveal-rows].is-in tbody tr:nth-child(8){transition-delay:280ms}
.js .comparison-table[data-reveal-rows].is-in tbody tr:nth-child(9){transition-delay:320ms}

/* ── Print: unrevealed content still prints (last, so it wins ties) ─────────────────── */
@media print{
  .js [data-reveal]:not(.is-in),.js .comparison-table[data-reveal-rows]:not(.is-in) tbody tr{opacity:1;transform:none}
  .js .ed-item::before,.js .comparison-table[data-reveal-rows]:not(.is-in) .compare-col-head::after{transform:none}
  .js .founder-portrait:not(.is-in) .founder-portrait__img{clip-path:none}
}

/* publishing.css */
/* Media blocks in article and landing bodies (website#100). Appended to the
   bundle last by settings.CSS_SOURCES. */
.ez-figure { margin: 2rem 0; }
.ez-figure img,
.ez-figure video { display: block; max-width: 100%; height: auto; }
.ez-figure figcaption {
  margin-top: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--ink-3);
}
