/* Arvelmail — static site. No external requests, no cookies. */

:root {
  --paper: #f3f6f5;
  --surface: #ffffff;
  --surface-2: #eaf0ee;
  --ink: #10221f;
  --ink-2: #44554f;
  --ink-3: #6f7f7a;
  --line: rgba(16, 34, 31, 0.1);
  --line-strong: rgba(16, 34, 31, 0.16);
  --relay: #0e7563;
  --relay-ink: #ffffff;
  --relay-soft: rgba(14, 117, 99, 0.12);
  --seaglass: #a9dccf;
  --frost: #8fd0c0;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 1px 1px rgba(16, 34, 31, 0.04), 0 8px 24px -6px rgba(16, 34, 31, 0.14), 0 24px 60px -24px rgba(16, 34, 31, 0.22);
  --card-shadow: 0 1px 1px rgba(16, 34, 31, 0.04), 0 6px 18px -8px rgba(16, 34, 31, 0.16);
  --band: #10221f;
  --band-ink: #e6efec;
  --band-ink-2: #a3b3af;
  --field-a: rgba(143, 208, 192, 0.55);
  --field-b: rgba(185, 214, 236, 0.5);
  --field-c: rgba(14, 117, 99, 0.16);

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Springs (damping ratio / response), sampled into linear(). Fallbacks below. */
  --spring: cubic-bezier(0.22, 0.9, 0.24, 1);
  --spring-soft: cubic-bezier(0.22, 0.9, 0.24, 1);
  --spring-bounce: cubic-bezier(0.3, 1.25, 0.4, 1);
  --t-spring: 740ms;
  --t-bounce: 610ms;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1120px;
  --section: clamp(96px, 13vw, 168px);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* damping 1.0, response 0.5s -> settles in ~740ms */
    --spring: linear(0, 0.0165, 0.0582, 0.1157, 0.1822, 0.2527, 0.3237, 0.3929, 0.4587, 0.5202, 0.5768, 0.6283, 0.6748, 0.7165, 0.7536, 0.7864, 0.8153, 0.8406, 0.8627, 0.882, 0.8988, 0.9133, 0.9258, 0.9367, 0.946, 0.9539, 0.9608, 0.9667, 0.9717, 0.976, 0.9796, 0.9827, 0.9854, 0.9876, 0.9895, 0.9912, 0.9925, 0.9937, 0.9947, 0.9955, 0.9962, 0.9968, 0.9973, 0.9978, 0.9981, 0.9984, 0.9987, 0.9989, 1);
    /* damping 0.8, response 0.45s -> ~610ms, slight overshoot */
    --spring-bounce: linear(0, 0.0143, 0.052, 0.1064, 0.1717, 0.2435, 0.3183, 0.3932, 0.4662, 0.5357, 0.6008, 0.6606, 0.715, 0.7637, 0.8069, 0.8446, 0.8773, 0.9052, 0.9289, 0.9486, 0.9649, 0.9781, 0.9886, 0.9969, 1.0032, 1.0078, 1.0111, 1.0133, 1.0145, 1.0151, 1.0151, 1.0147, 1.014, 1.0131, 1.012, 1.0109, 1.0098, 1.0087, 1.0076, 1.0065, 1.0056, 1.0047, 1.0039, 1.0033, 1.0026, 1.0021, 1.0016, 1.0013, 1);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1413;
    --surface: #131f1d;
    --surface-2: #182624;
    --ink: #e6efec;
    --ink-2: #a3b3af;
    --ink-3: #75867f;
    --line: rgba(230, 239, 236, 0.09);
    --line-strong: rgba(230, 239, 236, 0.16);
    --relay: #62d2b8;
    --relay-ink: #062520;
    --relay-soft: rgba(98, 210, 184, 0.14);
    --seaglass: #2a5a50;
    --frost: #3e8c7b;
    --glass: rgba(26, 42, 40, 0.55);
    --glass-edge: rgba(230, 239, 236, 0.14);
    --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 10px 30px -8px rgba(0, 0, 0, 0.55), 0 30px 70px -30px rgba(0, 0, 0, 0.7);
    --card-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 8px 22px -10px rgba(0, 0, 0, 0.6);
    --band: #15302a;
    --band-ink: #e6efec;
    --band-ink-2: #9fb6b0;
    --field-a: rgba(62, 140, 123, 0.4);
    --field-b: rgba(54, 92, 120, 0.4);
    --field-c: rgba(98, 210, 184, 0.14);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: clip;
  transition: background-color 300ms ease, color 300ms ease;
}

img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600;
  transition: top 200ms var(--spring);
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--relay);
  outline-offset: 3px;
  border-radius: 8px;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Mark ---------- */
.mark { width: 26px; height: 26px; flex: none; }
.mark-arch { fill: var(--relay); }
.mark-glass { fill: var(--glass); }
.mark-arch-frost { fill: var(--frost); }
.mark-edge { fill: none; stroke: var(--relay); stroke-opacity: 0.38; stroke-width: 1; }

/* ---------- Top bar (translucent material) ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
}
.bar::after {
  /* scroll-edge effect instead of a hard divider; shown once content scrolls under */
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px;
  background: var(--line);
  opacity: 0; transition: opacity 240ms ease;
}
.is-scrolled .bar::after { opacity: 1; }

.bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-weight: 640; font-size: 1.125rem; letter-spacing: -0.022em;
}
.brand-sm { font-size: 1rem; }
.brand-sm .mark { width: 22px; height: 22px; }

.bar-links { display: flex; gap: 4px; }
.bar-links a {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  font-size: 0.9375rem; color: var(--ink-2); text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 100ms ease-out;
}
.bar-links a:hover { color: var(--ink); background: var(--relay-soft); }
.bar-links a:active { transform: scale(0.97); }

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
  font-weight: 660;
}
.display .line { display: block; text-wrap: balance; }

.h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.034em;
  font-weight: 650;
  text-wrap: balance;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.016em;
  font-weight: 620;
}

.lede {
  margin-top: 28px;
  max-width: 34ch;
  font-size: clamp(1.1875rem, 1.9vw, 1.4375rem);
  line-height: 1.45;
  letter-spacing: -0.014em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.quiet-link {
  color: var(--relay);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--relay) 40%, transparent);
  transition: text-decoration-color 160ms ease;
}
.quiet-link:hover { text-decoration-color: currentColor; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7.5vw, 104px); }
.hero-aside { margin-top: 24px; font-size: 0.9375rem; }

/* Page-load: one orchestrated moment */
.js .hero-copy .line,
.js .hero-copy .lede,
.js .hero-copy .hero-aside,
.js .stage {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
}
.js.is-ready .hero-copy .line,
.js.is-ready .hero-copy .lede,
.js.is-ready .hero-copy .hero-aside,
.js.is-ready .stage {
  opacity: 1; transform: none; filter: none;
  transition: opacity 600ms ease, transform var(--t-spring) var(--spring), filter 600ms ease;
}
.js.is-ready .hero-copy .line:nth-child(2) { transition-delay: 70ms; }
.js.is-ready .hero-copy .lede { transition-delay: 160ms; }
.js.is-ready .hero-copy .hero-aside { transition-delay: 220ms; }
.js.is-ready .stage { transition-delay: 300ms; }

/* ---------- Stage (the relay demo) ---------- */
.stage {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(56px, 6vw, 80px) clamp(20px, 4vw, 56px) clamp(40px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  overflow: hidden;
  isolation: isolate;
}

.stage-field { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stage-field span {
  position: absolute; border-radius: 50%;
  filter: blur(48px);
}
.stage-field span:nth-child(1) { width: 46%; aspect-ratio: 1; left: 30%; top: 12%; background: var(--field-a); }
.stage-field span:nth-child(2) { width: 34%; aspect-ratio: 1; left: 56%; top: 40%; background: var(--field-b); }
.stage-field span:nth-child(3) { width: 30%; aspect-ratio: 1; left: 8%; top: 46%; background: var(--field-c); }

.flow {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(28px, 1fr) auto minmax(28px, 1fr) minmax(0, 340px);
  align-items: center;
}

.node { position: relative; display: flex; flex-direction: column; }
.node-relay { align-items: center; }

.step {
  display: flex; align-items: baseline; gap: 10px;
  min-height: 2.7em;
  margin-bottom: 14px;
  font-size: 0.875rem; line-height: 1.35;
  color: var(--ink-3);
  transition: color 400ms ease;
}
.node-relay .step { text-align: center; justify-content: center; }
.step-n {
  display: inline-grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 0.75rem; font-weight: 650; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-strong);
  transform: translateY(-1px);
  transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease;
}
.step.is-active { color: var(--ink); }
.step.is-active .step-n { background: var(--relay); border-color: var(--relay); color: var(--relay-ink); }

/* Sender's compose card */
.compose {
  position: relative; z-index: 1;
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  font-size: 0.875rem;
  transform-origin: 85% 85%;
}
.compose-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.compose-row .k { color: var(--ink-3); }
.compose-row .v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 520; }
.compose-row .addr { color: var(--relay); }
.compose-body { padding: 12px 0 14px; color: var(--ink-2); line-height: 1.5; min-height: 4.5em; }
.compose-send {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 0.8125rem; font-weight: 600;
}

/* Wires */
.wire { position: relative; height: 1px; align-self: center; margin-top: 2.7em; }
.wire i {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, var(--line-strong) 50%, transparent 50%);
  background-size: 8px 1px;
}

/* Relay capsule — the glass the message passes through */
.relay {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-edge), var(--glass-shadow);
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.012em;
  white-space: nowrap;
}
.relay::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  box-shadow: 0 0 0 0 var(--relay-soft);
  opacity: 0;
  pointer-events: none;
}
.relay.is-pulsing::after { animation: ring 900ms var(--spring) both; }
@keyframes ring {
  0% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--relay) 35%, transparent); }
  100% { opacity: 0; box-shadow: 0 0 0 18px color-mix(in srgb, var(--relay) 0%, transparent); }
}
.relay .mark { width: 24px; height: 24px; }

/* Inbox */
.inbox {
  position: relative; z-index: 1;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.inbox-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.inbox-title { font-weight: 650; letter-spacing: -0.016em; }
.inbox-owner { font-size: 0.8125rem; color: var(--ink-3); min-width: 0; overflow: hidden; }
.frost { display: inline-block; filter: blur(4.5px); user-select: none; white-space: nowrap; }

.inbox-list {
  position: relative;
  height: 204px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.msg {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px;
  padding: 11px 18px 12px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem; line-height: 1.4;
  position: relative;
  overflow: hidden;
}
.msg:last-child { border-bottom: 0; }
.msg-from { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-time { color: var(--ink-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.msg-subject { grid-column: 1 / -1; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-via {
  grid-column: 1 / -1; justify-self: start;
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px 2px 4px; border-radius: 999px;
  background: var(--relay-soft); color: var(--relay);
  font-size: 0.75rem; font-weight: 600;
}
.msg-via .mark { width: 16px; height: 16px; }
.msg.is-new::before {
  content: ""; position: absolute; left: 13px; top: 17px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--relay);
}

/* The travelling message */
.token {
  position: absolute; left: 0; top: 0; z-index: 2; /* passes behind the relay glass (z 3) */
  width: 40px; height: 28px; margin: -14px 0 0 -20px;
  border-radius: 8px;
  background: var(--relay);
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--relay) 70%, transparent);
  opacity: 0;
  pointer-events: none;
}
.token::before, .token::after {
  content: ""; position: absolute; top: 7px; width: 16px; height: 2px; border-radius: 1px;
  background: var(--relay-ink);
}
.token::before { left: 5px; transform-origin: left center; transform: rotate(30deg); }
.token::after { right: 5px; transform-origin: right center; transform: rotate(-30deg); }

/* Pause control */
.stage-toggle {
  position: absolute; top: 16px; right: 16px; z-index: 4;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
  color: var(--ink-2);
  transition: transform 100ms ease-out, color 160ms ease;
}
.stage-toggle:hover { color: var(--ink); }
.stage-toggle:active { transform: scale(0.92); }
.stage-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.stage-toggle .i-play { display: none; }
.stage-toggle[aria-pressed="true"] .i-play { display: block; }
.stage-toggle[aria-pressed="true"] .i-pause { display: none; }
.no-js .stage-toggle, .reduced .stage-toggle { display: none; }

/* ---------- Features ---------- */
.features { padding-top: var(--section); }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px);
  margin-top: clamp(48px, 6vw, 80px);
}
.feature h3 { margin-top: 28px; }
.feature p { margin-top: 10px; color: var(--ink-2); max-width: 34ch; text-wrap: pretty; }

.art {
  position: relative; height: 150px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  overflow: hidden;
}

/* Art 1: the capsule covers the real address */
.art-cover { display: grid; place-items: center; }
.art-real {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-3); white-space: nowrap;
  filter: blur(0px);
  transition: filter 700ms ease 250ms;
}
.art-capsule {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 10px; border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--glass-shadow);
  font-size: 0.875rem; font-weight: 600; white-space: nowrap;
  transition: transform var(--t-spring) var(--spring) 120ms, opacity 400ms ease 120ms;
}
.art-capsule .mark { width: 20px; height: 20px; }
.js .art-cover .art-capsule { transform: translateY(46px) scale(0.96); opacity: 0; }
.js .art-cover.is-in .art-capsule { transform: none; opacity: 1; }
.js .art-cover.is-in .art-real { filter: blur(5px); }

/* Art 2: a message travels home */
.art-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-track { fill: none; stroke: var(--line-strong); stroke-width: 1.25; stroke-dasharray: 3 5; }
.art-trace { fill: none; stroke: var(--relay); stroke-width: 1.75; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .art-home .art-trace { stroke-dashoffset: 1; }
.js .art-home.is-in .art-trace { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms cubic-bezier(0.45, 0, 0.2, 1) 200ms; }
.art-from {
  position: absolute; left: 10%; top: 76.6%;
  translate: -50% -50%;
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--card-shadow);
  font-size: 0.9375rem; font-weight: 650; color: var(--relay);
}
.art-tray {
  position: absolute; left: 89.2%; top: 23.3%;
  translate: -50% -50%;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--surface); box-shadow: var(--card-shadow);
}
.art-tray svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.art-tray b {
  position: absolute; top: -6px; right: -6px;
  display: grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--relay); color: var(--relay-ink);
  font-size: 0.6875rem; font-weight: 700;
}
.js .art-home .art-tray b { transform: scale(0); }
.js .art-home.is-in .art-tray b { transform: scale(1); transition: transform var(--t-bounce) var(--spring-bounce) 1200ms; }

/* Art 3: one address, clearly marked in the list */
.art-sort { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 22px; }
.art-sort .row {
  display: flex; align-items: center; gap: 10px;
  height: 30px; padding: 0 12px; border-radius: 10px;
  background: var(--surface);
}
.art-sort .row i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.art-sort .row b { width: 22%; height: 6px; border-radius: 3px; background: var(--line-strong); flex: none; }
.art-sort .row em { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.art-sort .row-relay { box-shadow: var(--card-shadow); }
.art-sort .row-relay i { background: var(--relay); }
.art-sort .chip {
  margin-left: auto;
  padding: 2px 9px; border-radius: 999px;
  background: var(--relay-soft); color: var(--relay);
  font-size: 0.6875rem; font-weight: 650; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.js .art-sort .row { opacity: 0.4; transform: translateX(0); transition: opacity 400ms ease, transform var(--t-spring) var(--spring); }
.js .art-sort .row-relay { opacity: 0; transform: translateX(-18px); }
.js .art-sort.is-in .row { opacity: 1; }
.js .art-sort.is-in .row:nth-child(1) { transition-delay: 100ms; }
.js .art-sort.is-in .row:nth-child(3) { transition-delay: 160ms; }
.js .art-sort.is-in .row-relay { transform: none; transition-delay: 380ms; }

/* ---------- Senders band ---------- */
.senders { padding-top: var(--section); }
.senders-inner {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
  border-radius: var(--radius-lg);
  background: var(--band);
  color: var(--band-ink);
  /* the band lines up with the stage above it */
  max-width: var(--max);
  padding-inline: clamp(24px, 5vw, 72px);
}
.senders .wrap.senders-inner { width: calc(100% - var(--gutter) * 2); }
.senders-copy { display: grid; gap: 14px; color: var(--band-ink-2); font-size: 1.125rem; line-height: 1.5; max-width: 38ch; }
.senders-copy p:first-child { color: var(--band-ink); }

/* ---------- Pricing ---------- */
.pricing { padding-top: var(--section); padding-bottom: var(--section); }
.pricing-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.pricing-copy p { margin-top: 20px; color: var(--ink-2); max-width: 34ch; font-size: 1.125rem; }

.plan {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--glass-shadow);
  overflow: hidden;
  isolation: isolate;
}
.plan::before {
  /* light catching the material, follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, -10%), var(--relay-soft), transparent 60%);
  transition: opacity 300ms ease;
}
.plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.plan-name { font-size: clamp(2.75rem, 5vw, 3.5rem); font-weight: 660; letter-spacing: -0.045em; line-height: 1; }
.plan-badge {
  padding: 6px 12px; border-radius: 999px;
  background: var(--relay-soft); color: var(--relay);
  font-size: 0.875rem; font-weight: 600; white-space: nowrap;
}
.plan-list { margin-top: 28px; display: grid; gap: 14px; }
.plan-list li { position: relative; padding-left: 30px; color: var(--ink); }
.plan-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em;
  width: 16px; height: 10px;
  background: var(--relay);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1.5 5.2 5.6 9 14.5 1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1.5 5.2 5.6 9 14.5 1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.plan-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.9375rem; }

/* ---------- Footer ---------- */
.foot { padding: 40px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot nav a, .foot-copy { font-size: 0.875rem; color: var(--ink-3); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* ---------- Reveal on scroll (section groups only) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
}
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 700ms ease, transform var(--t-spring) var(--spring);
}
.js .feature-grid .feature:nth-child(2).is-in { transition-delay: 80ms; }
.js .feature-grid .feature:nth-child(3).is-in { transition-delay: 160ms; }
.js .pricing .plan.is-in { transition-delay: 100ms; }

/* ---------- Legal page ---------- */
.legal { padding: clamp(56px, 9vw, 112px) 0 var(--section); }
.legal-inner { max-width: 68ch; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.06; letter-spacing: -0.036em; font-weight: 650; }
.legal .updated { margin-top: 14px; color: var(--ink-3); font-size: 0.9375rem; }
.legal h2 { margin-top: 56px; font-size: 1.5rem; letter-spacing: -0.022em; font-weight: 640; line-height: 1.2; }
.legal h3 { margin-top: 32px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; display: grid; gap: 8px; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.legal dl { margin: 16px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
.legal dt { color: var(--ink-3); }
.legal dd { margin: 0; color: var(--ink); }
.legal a { color: var(--relay); text-underline-offset: 3px; }
.todo { padding: 1px 6px; border-radius: 6px; background: #ffe58a; color: #3a2e00; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .flow {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
  }
  .wire { width: 1px; height: 44px; justify-self: center; margin: 4px 0; }
  .wire i { background-image: linear-gradient(to bottom, var(--line-strong) 50%, transparent 50%); background-size: 1px 8px; }
  .step { min-height: 0; }
  .node-relay { padding: 4px 0; }
  .feature-grid { grid-template-columns: 1fr; max-width: 520px; }
  .senders-inner { grid-template-columns: 1fr; align-items: start; }
  .pricing-inner { grid-template-columns: 1fr; }
  .plan { max-width: 520px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .bar-inner { height: 56px; }
  .bar-links .bar-legal { display: none; }
  .bar-links a { padding: 8px 10px; font-size: 0.875rem; }
  .brand { font-size: 1.0625rem; }
  .stage { margin-inline: calc(var(--gutter) * -0.5); border-radius: 24px; padding-top: 64px; }
  .relay { font-size: 0.875rem; padding: 10px 14px 10px 11px; }
  .lede { margin-top: 22px; }
  .plan { padding: 26px 22px; }
  .foot nav { margin-left: 0; width: 100%; order: 3; }
  .legal dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal dd { margin-bottom: 14px; }
  .foot-inner { gap: 16px 24px; }
}

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-copy .line, .js .hero-copy .lede, .js .hero-copy .hero-aside, .js .stage,
  .js [data-reveal] { transform: none !important; filter: none !important; }
  .js.is-ready .hero-copy .line, .js.is-ready .hero-copy .lede, .js.is-ready .hero-copy .hero-aside, .js.is-ready .stage,
  .js [data-reveal].is-in { transition: opacity 300ms ease !important; transition-delay: 0ms !important; }
  .js .art-cover .art-capsule, .js .art-sort .row, .js .art-sort .row-relay { transform: none !important; }
  .js .art-home .art-trace { stroke-dashoffset: 0 !important; transition: none !important; }
  .js .art-home .art-tray b { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .bar { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .relay, .art-capsule, .stage-toggle { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(16, 34, 31, 0.35); --line-strong: rgba(16, 34, 31, 0.6); --ink-2: var(--ink); --ink-3: var(--ink); }
  .relay, .art-capsule { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }
}
