/* Email Triage — the public site.
   One hand-written stylesheet, no framework, no external font, no script. The
   movement on these pages — the sorting demo, the scroll reveals, the reading
   progress line — is all CSS, so the site keeps the app's promise: nothing here
   can run code on your machine or report on you.
   Colours come from the app icon: the green tile, and the amber of "needs you". */

:root {
  --bg: #fbfaf8;
  --panel: #ffffff;
  --sunk: #f3f1ec;
  --text: #1b1a18;
  --muted: #5f5b55;
  --faint: #6f6a62;
  --line: #e4e0d8;
  --accent: #236a4a;
  --accent-2: #40ad7a;
  --accent-ink: #ffffff;
  --glow: rgba(64, 173, 122, 0.18);
  --amber: #f2b04a;
  --amber-bg: #fdf1dc;
  --amber-ink: #7a4d0c;
  --red: #c4553b;
  --red-bg: #fbe6e1;
  --red-ink: #8f3522;
  --green-bg: #e3f2ea;
  --green-ink: #1f5c40;
  --held: #8a857b;
  --held-bg: #eceae4;
  --held-ink: #4a463f;
  --shadow: 0 1px 2px rgba(27, 26, 24, 0.04), 0 12px 32px rgba(27, 26, 24, 0.08);
  --shadow-lift: 0 2px 4px rgba(27, 26, 24, 0.06), 0 18px 40px rgba(27, 26, 24, 0.12);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --text-width: 720px;
  --page-width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12130f;
    --panel: #1b1c17;
    --sunk: #171813;
    --text: #f2efe8;
    --muted: #b3ada2;
    --faint: #948e83;
    --line: #2d2e27;
    --accent: #7ec29b;
    --accent-ink: #0f140f;
    --glow: rgba(64, 173, 122, 0.14);
    --amber-bg: #3a2c14;
    --amber-ink: #f5c77a;
    --red: #e08a72;
    --red-bg: #3a1f19;
    --red-ink: #f0a590;
    --green-bg: #183025;
    --green-ink: #9fd8b7;
    --held: #948e83;
    --held-bg: #2a2a24;
    --held-ink: #cfc9bd;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 22px 48px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

/* clip, not hidden: nothing decorative may ever make a phone scroll sideways. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* No overflow here: with the root clipping, an overflow on body would make body
     its own scroll box, and every scroll-driven animation would watch the wrong
     scroller and freeze. */
}

main, .wrap { max-width: var(--text-width); margin: 0 auto; padding: 0 24px; }
.home main, header.site .wrap, footer.site .wrap { max-width: var(--page-width); }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { left: 12px; }

a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, .cta:focus-visible, .ghost:focus-visible, .pillar:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

section[id], h2[id], li[id] { scroll-margin-top: 84px; }

/* --- header --------------------------------------------------------------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* The app icon, drawn in CSS: the green tile, the envelope, the amber dot. */
.mark {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(180deg, #40ad7a, #1a6444);
  display: inline-block;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.mark::before {
  content: "";
  position: absolute;
  left: 21%;
  top: 31%;
  width: 58%;
  height: 42%;
  border-radius: 8%;
  background: #faf9f5;
}
.mark::after {
  content: "";
  position: absolute;
  right: 10%;
  top: 14%;
  width: 29%;
  height: 29%;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 1.5px #1f7a52;
}
.mark.small { width: 18px; height: 18px; border-radius: 5px; }
.mark.big { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); }

nav.site { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }
nav.site .nav-cta {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
}
nav.site .nav-cta:hover { color: var(--accent-ink); filter: brightness(1.07); }

/* --- type ----------------------------------------------------------------- */

h1 {
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 48px 0 12px;
}

h3 { font-size: 17px; line-height: 1.35; margin: 0 0 6px; }

p { margin: 0 0 14px; }

.lede { font-size: 19px; color: var(--muted); }
.lede strong { color: var(--text); font-weight: 650; }

.fine { color: var(--muted); font-size: 14px; }

.eyebrow, .kicker {
  font-size: 12.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin: 0 0 10px;
}

ul, ol { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 8px; }

code, pre { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }

pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  text-align: left;
}

/* --- building blocks ------------------------------------------------------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 18px 0;
}
.card p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.grid .card { margin: 0; }
.grid.two { margin: 18px 0; }

.pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green-ink);
  vertical-align: 2px;
  margin-left: 6px;
}

.price { font-size: 30px; font-weight: 650; letter-spacing: -0.015em; }
.price span { font-size: 14px; font-weight: 400; color: var(--muted); }

.cta, .ghost {
  display: inline-block;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.15s var(--ease), filter 0.15s, box-shadow 0.2s;
}
.cta {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 20px rgba(35, 106, 74, 0.28);
}
.cta:hover { filter: brightness(1.07); transform: translateY(-1px); }
.cta:active { transform: translateY(0) scale(0.98); }
.ghost { color: var(--text); border: 1px solid var(--line); background: var(--panel); }
.ghost:hover { border-color: var(--faint); transform: translateY(-1px); }

.more { font-weight: 600; font-size: 14.5px; text-decoration: none; }
.more:hover { text-decoration: underline; }

.tag {
  font-size: 12px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag.need { background: var(--amber-bg); color: var(--amber-ink); }
.tag.filed { background: var(--green-bg); color: var(--green-ink); }
.tag.bad { background: var(--red-bg); color: var(--red-ink); }
.tag.held { background: var(--held-bg); color: var(--held-ink); }

.toc { columns: 2; column-gap: 28px; }
.toc a { text-decoration: none; }
.toc li { break-inside: avoid; }

/* --- the home page: hero --------------------------------------------------- */

.hero {
  text-align: center;
  padding: 56px 0 24px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40px 0 auto;
  height: 520px;
  background:
    radial-gradient(55% 55% at 50% 25%, var(--glow), transparent 70%),
    radial-gradient(30% 40% at 78% 15%, rgba(242, 176, 74, 0.10), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero h1 { font-size: 72px; line-height: 1; letter-spacing: -0.04em; margin-bottom: 16px; }
.hero .lede { max-width: 34em; margin: 0 auto 30px; font-size: 19px; }
.hero .actions { margin-top: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 18px; }

/* On arrival, the hero settles in, one line after another. */
.rise { animation: rise 0.8s var(--ease) both; }
.rise:nth-child(2) { animation-delay: 0.06s; }
.rise:nth-child(3) { animation-delay: 0.14s; }
.rise:nth-child(4) { animation-delay: 0.22s; }
.rise:nth-child(5) { animation-delay: 0.3s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* --- the home page: the whole idea in one picture --------------------------------- */
/* An inbox on the left, a button in the middle, four lanes on the right. Press
   the button and each message moves to the lane the app puts it in. The state
   is a checkbox and the movement is CSS; there is no script on this page. */

.flowboard {
  --pile-w: 27%;
  --lanes-x: 45%;
  --lane-w: 27.5%;
  --h: 54px;
  --step: 58px;
  --head: 40px;
  --lane-h: 232px;
  --lanes-y: 0px;
  position: relative;
  height: calc(2 * var(--lane-h) + 8px);
  margin: 0 auto;
  text-align: left;
}

/* Fixed, so focusing it when the button is pressed never scrolls the page. */
.run { position: fixed; top: 50%; left: 0; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.after { display: none; }
.run:checked ~ * .before, .run:checked ~ .status .before { display: none; }
.run:checked ~ * .after, .run:checked ~ .status .after { display: inline; }

.zone-inbox {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--pile-w);
  height: 100%;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.zone-name, .zone-count { position: absolute; top: 13px; font-size: 13px; font-weight: 700; }
.zone-name { left: 16px; }
.zone-count { right: 16px; color: var(--muted); font-weight: 600; }

.l0 { --lx: 0; --ly: 0; }
.l1 { --lx: 1; --ly: 0; }
.l2 { --lx: 0; --ly: 1; }
.l3 { --lx: 1; --ly: 1; }
.s0 { --s: 0; } .s1 { --s: 1; } .s2 { --s: 2; }
.i0 { --i: 0; --jx: 0.4%; --r: -1.6deg; }
.i1 { --i: 1; --jx: 1.6%; --r: 1.2deg; }
.i2 { --i: 2; --jx: 0%; --r: 2deg; }
.i3 { --i: 3; --jx: 1.9%; --r: -1deg; }
.i4 { --i: 4; --jx: 0.8%; --r: 1.6deg; }
.i5 { --i: 5; --jx: 1.4%; --r: -2.2deg; }
.i6 { --i: 6; --jx: 0.2%; --r: 0.9deg; }

.lane {
  position: absolute;
  top: calc(var(--lanes-y) + var(--ly) * (var(--lane-h) + 8px));
  left: calc(var(--lanes-x) + var(--lx) * var(--lane-w) + 4px);
  width: calc(var(--lane-w) - 8px);
  height: var(--lane-h);
  border: 1px dashed var(--line);
  border-radius: 18px;
  transition: background 0.5s var(--ease), border-color 0.5s;
}
.run:checked ~ .flowboard .lane { background: var(--sunk); border-color: transparent; }
.lane-name { display: flex; align-items: center; gap: 8px; padding: 13px 14px 0; font-size: 13px; font-weight: 700; }
.lane-name::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.lane-name.need::before { background: var(--amber); }
.lane-name.filed::before { background: var(--accent-2); }
.lane-name.bad::before { background: var(--red); }
.lane-name.held::before { background: var(--held); }

/* The button, and the two arrows that make the picture read left to right. */
.big-button {
  position: absolute;
  left: 36%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin: -54px 0 0 -54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5cc491, var(--accent) 70%);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 14px 34px rgba(35, 106, 74, 0.38);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.big-button:hover { transform: scale(1.05); }
.big-button:active { transform: scale(0.96); }
.big-button::before, .big-button::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  opacity: 0;
  animation: ring 2.6s ease-out 1s infinite;
}
.big-button::after { animation-delay: 2.3s; }
@keyframes ring {
  0% { opacity: 0.6; transform: scale(0.92); }
  75%, 100% { opacity: 0; transform: scale(1.35); }
}
.run:checked ~ .flowboard .big-button {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.run:checked ~ .flowboard .big-button::before,
.run:checked ~ .flowboard .big-button::after { animation: none; }
.run:focus-visible ~ .flowboard .big-button { outline: 3px solid var(--accent); outline-offset: 6px; }

.flow-line {
  position: absolute;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: repeating-linear-gradient(90deg, var(--faint) 0 6px, transparent 6px 12px);
  opacity: 0.6;
  animation: march 1s linear infinite;
}
.flow-line.in { left: calc(var(--pile-w) + 8px); width: calc(36% - var(--pile-w) - 70px); }
.flow-line.out { left: calc(36% + 60px); width: calc(var(--lanes-x) - 36% - 68px); }
.flow-line::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  border: 6px solid transparent;
  border-left-color: var(--faint);
  border-right: 0;
}
@keyframes march { to { background-position: 12px 0; } }
.run:checked ~ .flowboard .flow-line { background: var(--accent-2); opacity: 1; animation: none; }
.run:checked ~ .flowboard .flow-line::after { border-left-color: var(--accent-2); }

.mails { list-style: none; margin: 0; padding: 0; }
.mail {
  position: absolute;
  z-index: 2;
  top: calc(var(--head) + 4px + var(--i) * var(--step));
  left: calc(10px + var(--jx));
  width: calc(var(--pile-w) - 20px - 2%);
  height: var(--h);
  margin: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  padding: 0 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(27, 26, 24, 0.08);
  transform: rotate(var(--r));
  transition:
    top 0.85s var(--ease) calc(var(--i) * 80ms),
    left 0.85s var(--ease) calc(var(--i) * 80ms),
    width 0.85s var(--ease) calc(var(--i) * 80ms),
    transform 0.85s var(--ease) calc(var(--i) * 80ms),
    border-color 0.4s ease calc(var(--i) * 80ms + 0.45s);
}
.mail .from, .mail .subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail .from { font-size: 11.5px; color: var(--muted); padding-right: 0; }
.mail .subject { font-size: 13.5px; font-weight: 600; }
.mail .tag {
  position: absolute;
  top: -9px;
  right: 10px;
  opacity: 0;
  transform: scale(0.8);
  box-shadow: 0 0 0 3px var(--panel);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.run:checked ~ .flowboard .mail {
  top: calc(var(--lanes-y) + var(--ly) * (var(--lane-h) + 8px) + var(--head) + var(--s) * var(--step));
  left: calc(var(--lanes-x) + var(--lx) * var(--lane-w) + 14px);
  width: calc(var(--lane-w) - 28px);
  transform: none;
}
.run:checked ~ .flowboard .mail .from { padding-right: 76px; }
.run:checked ~ .flowboard .mail .tag {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 80ms + 0.7s);
}
.run:checked ~ .flowboard .mail.l0 { border-left-color: var(--amber); }
.run:checked ~ .flowboard .mail.l1 { border-left-color: var(--accent-2); }
.run:checked ~ .flowboard .mail.l2 { border-left-color: var(--red); }
.run:checked ~ .flowboard .mail.l3 { border-left-color: var(--held); }

.status { margin: 20px auto 0; font-size: 14.5px; color: var(--muted); font-weight: 500; min-height: 1.6em; }

/* A phone reads the same picture top to bottom: inbox, button, lanes. */
@media (max-width: 760px) {
  .flowboard {
    --pile-w: 100%;
    --lanes-x: 0%;
    --lane-w: 50%;
    --h: 46px;
    --step: 50px;
    --head: 38px;
    --pile-h: calc(var(--head) + 7 * var(--step) + 8px);
    --lanes-y: calc(var(--pile-h) + 116px);
    --lane-h: 236px;
    height: calc(var(--lanes-y) + 2 * var(--lane-h) + 8px);
  }
  .zone-inbox { height: var(--pile-h); }
  .big-button { left: 50%; top: calc(var(--pile-h) + 58px); width: 88px; height: 88px; margin: -44px 0 0 -44px; font-size: 15.5px; }
  .flow-line { display: none; }
  .mail { left: calc(10px + var(--jx)); width: calc(100% - 20px - 2%); }
  .mail .from { display: none; }
  .run:checked ~ .flowboard .mail { left: calc(var(--lx) * 50% + 10px); width: calc(50% - 20px); height: 58px; padding: 16px 10px 0 12px; align-content: start; }
  .run:checked ~ .flowboard .mail .subject { font-size: 12.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
  .run:checked ~ .flowboard .mail { --step: 64px; }
  .lane-name { font-size: 12px; padding: 12px 10px 0; }
  .hero h1 { font-size: 46px; }
}

/* --- the home page: below the demo ------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 80px;
}
.pillar {
  display: block;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.pillar p { color: var(--muted); font-size: 15px; }
.pillar-n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--green-bg);
  color: var(--green-ink);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.pillar .more { color: var(--accent); }

.promise {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 44px;
  margin: 0 0 80px;
  border-radius: 24px;
  background:
    radial-gradient(80% 120% at 0% 0%, var(--glow), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
}
.promise h2 { margin-top: 0; font-size: 30px; }
.promise p { color: var(--muted); }
.promise-list { list-style: none; padding: 0; margin: 0; }
.promise-list li {
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
  margin: 0;
  color: var(--muted);
}
.promise-list li:last-child { border-bottom: 0; }
.promise-list strong { color: var(--text); }
.promise-list li::before, .refusals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-bg);
}
.promise-list li::after, .refusals li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 20px;
  width: 5px;
  height: 9px;
  border: solid var(--green-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.price-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  margin: 0 0 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.price-strip h2 { margin: 0 0 6px; font-size: 30px; }
.price-strip p { margin: 0; }
.price-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: 360px; text-align: right; }

.get { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.get h2 { margin: 18px 0 16px; font-size: 32px; }
.get .cta { margin-bottom: 12px; }
.small-print { margin-top: 18px; }

/* --- the inner pages -------------------------------------------------------- */

.page main { padding-top: 56px; }
.page h1 { font-size: 44px; }
.page .lede { margin-bottom: 8px; }



.refusals { list-style: none; padding: 0; margin: 18px 0 0; }
.refusals li { position: relative; padding: 13px 0 13px 36px; margin: 0; border-bottom: 1px solid var(--line); }
.refusals li:last-child { border-bottom: 0; }

.flow { display: flex; align-items: center; margin: 22px 0 18px; }
.flow .node {
  flex: 1;
  text-align: center;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  font-weight: 600;
  font-size: 14.5px;
}
.flow .node span { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.flow .node.here { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--glow); }
.flow .wire { flex: 0 0 36px; height: 2px; background: var(--accent-2); position: relative; }
.flow .wire::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--accent-2);
  border-right: 0;
}

.limits li { margin-bottom: 12px; }

.next { display: flex; flex-wrap: wrap; gap: 12px; margin: 48px 0 0; }

/* --- how it works: one email, told by scrolling -------------------------------- */
/* The default below is the plain version: seven numbered steps, no picture. The
   pinned, scroll-driven version is layered on further down, only where the
   browser supports it and the reader has not asked for less motion. */

.story-page main { max-width: var(--page-width); }
.story-intro { text-align: center; padding: 72px 0 16px; }
.story-intro h1 { font-size: 52px; line-height: 1.05; letter-spacing: -0.03em; max-width: 14em; margin: 0 auto 14px; }
.story-intro .lede { margin: 0 auto; }
.scroll-cue { display: none; }

.beats { list-style: none; padding: 0; margin: 40px auto 0; max-width: var(--text-width); position: relative; }
.beats::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(var(--accent-2), var(--line));
}
.beat { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 22px; margin: 0 0 30px; }
.beat h2 { grid-column: 2; margin: 5px 0 6px; font-size: 22px; }
.beat p { grid-column: 2; color: var(--muted); margin: 0; }
.beat-n {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--bg);
}
.scene, .dots { display: none; }

.after-story { max-width: var(--text-width); margin: 40px auto 0; }
.after-story h2 { margin-top: 0; }

@supports (animation-timeline: view()) and (container-type: inline-size) {
@media (prefers-reduced-motion: no-preference) {

  :root { --hh: 58px; }
  .scroll-cue {
    display: block;
    width: 22px;
    height: 34px;
    margin: 30px auto 0;
    border: 2px solid var(--faint);
    border-radius: 12px;
    position: relative;
  }
  .scroll-cue::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    width: 4px;
    height: 7px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--faint);
    animation: cue 1.8s var(--ease) infinite;
  }
  @keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(12px); opacity: 0; } }

  .story { height: calc(7 * 85svh + 100svh); view-timeline: --story block; }

  .stage {
    position: sticky;
    top: var(--hh);
    height: calc(100svh - var(--hh));
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". scene" "beats scene" "dots scene" ". scene";
    column-gap: 64px;
    align-items: center;
  }

  .beats { grid-area: beats; height: 250px; margin: 0; max-width: none; }
  .beats::before { display: none; }
  .beat {
    position: absolute;
    inset: 0 0 auto 0;
    display: block;
    margin: 0;
    opacity: 0;
    animation: beat linear both;
    animation-timeline: --story;
    animation-range: contain calc(var(--k) * 14.2857%) contain calc((var(--k) + 1) * 14.2857%);
  }
  .beat.k0 { animation-name: beat-first; }
  .beat.k6 { animation-name: beat-last; }
  .beat-n {
    display: inline-block;
    width: auto;
    height: auto;
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--green-bg);
    color: var(--green-ink);
    font-size: 13px;
    box-shadow: none;
    margin-bottom: 14px;
  }
  .beat-n::before { content: "Step "; }
  .beat h2 { font-size: 34px; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 12px; }
  .beat p { font-size: 18px; line-height: 1.6; }

  .k0 { --k: 0; } .k1 { --k: 1; } .k2 { --k: 2; } .k3 { --k: 3; }
  .k4 { --k: 4; } .k5 { --k: 5; } .k6 { --k: 6; }

  .dots { grid-area: dots; display: flex; gap: 8px; margin-top: 18px; }
  .dots span {
    height: 8px;
    width: 8px;
    border-radius: 999px;
    background: var(--line);
    animation: dot linear both;
    animation-timeline: --story;
    animation-range: contain calc(var(--k) * 14.2857%) contain calc((var(--k) + 1) * 14.2857%);
  }
  .dots .k0 { animation-name: dot-first; }
  .dots .k6 { animation-name: dot-last; }

  /* The picture. Sizes are in cqw, a hundredth of the picture's own width, so it
     is the same drawing at every screen size. */
  .scene {
    grid-area: scene;
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 46 / 40;
    container-type: inline-size;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    font-size: clamp(10.5px, 3cqw, 14.5px);
  }
  .scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 60% at 80% 0%, var(--glow), transparent 70%);
    pointer-events: none;
  }
  .chrome {
    position: relative;
    height: 9cqw;
    display: flex;
    align-items: center;
    gap: 1.4cqw;
    padding: 0 3.6cqw;
    border-bottom: 1px solid var(--line);
    background: var(--sunk);
  }
  .chrome span { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: var(--line); }
  .chrome span:nth-child(1) { background: #ee6a5f; }
  .chrome span:nth-child(2) { background: #f5be4f; }
  .chrome span:nth-child(3) { background: #62c655; }
  .chrome b { margin: 0 auto; font-size: 0.85em; color: var(--muted); transform: translateX(-3cqw); }

  .layer {
    position: absolute;
    inset: 9cqw 0 0 0;
    padding: 5cqw;
    display: flex;
    flex-direction: column;
    gap: 2.4cqw;
    opacity: 0;
    animation: layer linear both;
    animation-timeline: --story;
  }
  .la { animation-name: layer-first; animation-range: contain 0% contain 28.57%; }
  .lb { animation-range: contain 26% contain 59%; }
  .lc { animation-range: contain 55.5% contain 73.5%; }
  .ld { animation-name: layer-last; animation-range: contain 70% contain 100%; }

  .vcard {
    position: relative;
    display: grid;
    gap: 0.6cqw;
    padding: 3cqw 3.6cqw;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 0.9cqw solid var(--amber);
    border-radius: 2.6cqw;
    box-shadow: 0 1px 2px rgba(27, 26, 24, 0.06), 0 6px 18px rgba(27, 26, 24, 0.06);
  }
  .lc .vcard { border-left-color: var(--held); }
  .vfrom { font-size: 0.82em; color: var(--muted); }
  .vsubj { font-weight: 650; line-height: 1.3; }
  .vbody {
    position: relative;
    display: block;
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--muted);
    max-height: 0;
    overflow: hidden;
    animation: open linear both;
    animation-timeline: --story;
    animation-range: contain 15.5% contain 22%;
  }
  .scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 0.5cqw;
    border-radius: 1cqw;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
    animation: scan linear both;
    animation-timeline: --story;
    animation-range: contain 19% contain 27%;
  }
  .dot-new {
    position: absolute;
    right: 3.6cqw;
    top: 3.4cqw;
    width: 2cqw;
    height: 2cqw;
    border-radius: 50%;
    background: var(--accent-2);
  }
  .la .hero-mail { animation: drop linear both; animation-timeline: --story; animation-range: contain 0% contain 5%; }
  .vghost { height: 9cqw; border-radius: 2.4cqw; background: var(--sunk); border: 1px solid var(--line); }
  .vghost.short { width: 82%; }

  .vbadge {
    position: absolute;
    top: -2.4cqw;
    right: 3cqw;
    font-size: 0.8em;
    font-weight: 700;
    padding: 0.6cqw 2.2cqw;
    border-radius: 999px;
    box-shadow: 0 0 0 0.8cqw var(--panel);
    animation: pop linear both;
    animation-timeline: --story;
  }
  .vbadge.need { background: var(--amber-bg); color: var(--amber-ink); animation-range: contain 49% contain 53%; }
  .vbadge.held { background: var(--held-bg); color: var(--held-ink); animation-range: contain 65% contain 68.5%; }

  .qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2cqw; }
  .q {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24cqw 12cqw;
    align-items: center;
    gap: 2.2cqw;
    margin: 0;
    padding: 1cqw 1.8cqw;
    border-radius: 1.8cqw;
    font-size: 0.9em;
  }
  .q span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .q i { display: block; height: 1.6cqw; border-radius: 1cqw; background: var(--sunk); border: 1px solid var(--line); overflow: hidden; }
  .q em { display: block; height: 100%; width: var(--v); background: var(--accent-2); border-radius: 1cqw; }
  .q b { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.95em; }
  .q em, .q b {
    animation: fill linear both;
    animation-timeline: --story;
    animation-range: contain calc(29% + var(--k) * 1.9%) contain calc(32% + var(--k) * 1.9%);
  }
  .q b { animation-name: appear; }
  .q0 { --k: 0; --v: 1%; } .q1 { --k: 1; --v: 2%; } .q2 { --k: 2; --v: 3%; }
  .q3 { --k: 3; --v: 96%; } .q4 { --k: 4; --v: 97%; } .q5 { --k: 5; --v: 60%; }
  .q.key { animation: flash linear both; animation-timeline: --story; animation-range: contain 44% contain 48%; }
  .q.key em { background: var(--amber); }

  .rule {
    padding: 2.4cqw 3cqw;
    border-radius: 2.4cqw;
    background: var(--amber-bg);
    color: var(--amber-ink);
    font-size: 0.88em;
    line-height: 1.45;
    animation: appear linear both;
    animation-timeline: --story;
    animation-range: contain 46% contain 50%;
  }

  .meter { display: grid; gap: 1.6cqw; margin-top: 2cqw; }
  .meter-label { font-weight: 600; }
  .meter i { position: relative; display: block; height: 2.6cqw; border-radius: 1.4cqw; background: var(--sunk); border: 1px solid var(--line); }
  .meter em {
    display: block;
    height: 100%;
    width: 84%;
    border-radius: 1.4cqw;
    background: linear-gradient(90deg, var(--accent-2), var(--amber) 70%, var(--red));
    animation: fill linear both;
    animation-timeline: --story;
    animation-range: contain 59.5% contain 65%;
  }
  .meter u { position: absolute; top: -1cqw; bottom: -1cqw; width: 0.5cqw; background: var(--text); border-radius: 1cqw; opacity: 0.55; }
  .meter .m80 { left: 80%; }
  .meter .m90 { left: 90%; }
  .meter-scale { position: relative; height: 8cqw; font-size: 0.78em; color: var(--muted); }
  .meter-scale span { position: absolute; right: 20%; top: 0; white-space: nowrap; }
  .meter-scale .t90 { right: 10%; top: 4cqw; }
  .held-note {
    margin: 0;
    font-size: 0.9em;
    color: var(--held-ink);
    animation: appear linear both;
    animation-timeline: --story;
    animation-range: contain 66% contain 69.5%;
  }
  .lc .vcard { animation: appear linear both; animation-timeline: --story; animation-range: contain 56.5% contain 59.5%; }

  .lanes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4cqw;
    animation: appear linear both;
    animation-timeline: --story;
    animation-range: contain 70.5% contain 73%;
  }
  .vlane { background: var(--sunk); border: 1px dashed var(--line); border-radius: 2.6cqw; padding: 2.4cqw; min-height: 30cqw; }
  .vlane b { display: flex; align-items: center; gap: 1.4cqw; font-size: 0.82em; margin-bottom: 0.4cqw; }
  .vlane b::before { content: ""; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: currentColor; }
  .vlane b.need::before { background: var(--amber); }
  .vlane b.filed::before { background: var(--accent-2); }
  .vlane b.bad::before { background: var(--red); }
  .vlane b.held::before { background: var(--held); }
  .mini {
    display: block;
    margin-top: 1.4cqw;
    padding: 1.4cqw 2cqw;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 0.8cqw solid var(--line);
    border-radius: 1.6cqw;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: drop linear both;
    animation-timeline: --story;
    animation-range: contain calc(72.5% + var(--m) * 1.3%) contain calc(75% + var(--m) * 1.3%);
  }
  .mini.need { border-left-color: var(--amber); }
  .mini.filed { border-left-color: var(--accent-2); }
  .mini.bad { border-left-color: var(--red); }
  .mini.held { border-left-color: var(--held); }
  .m0 { --m: 0; } .m1 { --m: 1; } .m2 { --m: 2; } .m3 { --m: 3; } .m4 { --m: 4; } .m5 { --m: 5; } .m6 { --m: 6; }

  .ledger {
    position: absolute;
    left: 5cqw;
    right: 5cqw;
    bottom: 4cqw;
    display: grid;
    gap: 1.2cqw;
    padding: 3cqw 3.4cqw;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 2.8cqw;
    box-shadow: var(--shadow-lift);
    font-size: 0.86em;
    animation: slide-up linear both;
    animation-timeline: --story;
    animation-range: contain 87% contain 91.5%;
  }
  .ledger span { display: flex; justify-content: space-between; gap: 2cqw; color: var(--muted); }
  .ledger em { font-style: normal; font-weight: 700; color: var(--accent); }
  .ledger .undo-all {
    justify-content: center;
    margin-top: 1cqw;
    padding: 1.6cqw;
    border-radius: 2cqw;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    animation: glow linear both;
    animation-timeline: --story;
    animation-range: contain 92% contain 100%;
  }

  @keyframes beat {
    0% { opacity: 0; transform: translateY(26px); }
    18%, 82% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translateY(-26px); }
  }
  @keyframes beat-first {
    0%, 82% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translateY(-26px); }
  }
  @keyframes beat-last {
    0% { opacity: 0; transform: translateY(26px); }
    18%, 100% { opacity: 1; transform: none; }
  }
  @keyframes layer {
    0% { opacity: 0; transform: scale(0.985); }
    10%, 90% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: scale(1.01); }
  }
  @keyframes layer-first { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes layer-last { 0% { opacity: 0; } 10%, 100% { opacity: 1; } }
  @keyframes dot {
    0%, 100% { width: 8px; background: var(--line); }
    8%, 92% { width: 26px; background: var(--accent-2); }
  }
  @keyframes dot-first { 0%, 92% { width: 26px; background: var(--accent-2); } 100% { width: 8px; background: var(--line); } }
  @keyframes dot-last { 0% { width: 8px; background: var(--line); } 8%, 100% { width: 26px; background: var(--accent-2); } }
  @keyframes drop { from { opacity: 0; transform: translateY(-3cqw); } to { opacity: 1; transform: none; } }
  @keyframes open { from { max-height: 0; margin-top: 0; } to { max-height: 40cqw; margin-top: 1.2cqw; } }
  @keyframes scan {
    0% { top: 0; opacity: 0; }
    12%, 88% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
  @keyframes fill { from { width: 0; } }
  @keyframes appear { from { opacity: 0; transform: translateY(1.4cqw); } to { opacity: 1; transform: none; } }
  @keyframes pop {
    0% { opacity: 0; transform: scale(0.6); }
    70% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: none; }
  }
  @keyframes flash { from { background: transparent; } to { background: var(--amber-bg); } }
  @keyframes slide-up { from { transform: translateY(140%); } to { transform: none; } }
  @keyframes glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(64, 173, 122, 0); }
    50% { box-shadow: 0 0 0 1.4cqw rgba(64, 173, 122, 0.28); }
  }

  @media (max-width: 700px) {
    :root { --hh: 92px; }
    .story-intro h1 { font-size: 36px; }
    .story { height: calc(7 * 80svh + 100svh); }
    .stage {
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: auto auto minmax(0, 1fr);
      grid-template-areas: "scene" "dots" "beats";
      align-items: start;
      padding-top: 14px;
      row-gap: 0;
    }
    .scene { width: min(100%, calc((100svh - var(--hh)) * 0.52 * 1.15)); margin: 0 auto; }
    .dots { justify-content: center; margin: 14px 0 12px; }
    .beats { height: 100%; }
    .beat h2 { font-size: 23px; margin-bottom: 8px; }
    .beat p { font-size: 15.5px; }
    .beat-n { margin-bottom: 8px; }
  }
}
}

/* --- questions ------------------------------------------------------------------ */

.faq-group { margin-top: 44px; }
.faq-group h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); margin: 0 0 14px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq article {
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq article:target { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--glow); }
.faq h3 { font-size: 16.5px; margin-bottom: 8px; }
.faq p { margin: 0; color: var(--muted); font-size: 15px; }
.faq p strong { color: var(--text); }
.faq pre { margin: 12px 0 0; font-size: 12px; padding: 10px 12px; }
@media (max-width: 700px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* --- footer ----------------------------------------------------------------- */

footer.site {
  margin-top: 72px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer.site p { margin: 0; flex-basis: 100%; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--faint); text-decoration: none; }
footer.site a:hover { color: var(--text); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); }
.foot-brand .fine { font-weight: 400; margin-left: 6px; }

/* --- motion that follows the scroll ------------------------------------------ */
/* Where a browser can tie an animation to scrolling, sections rise into place as
   they come into view and a thin line under the header shows how far down the
   page you are. Where it cannot, everything is simply there. */

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 28%;
  }
  .pillar.reveal:nth-child(2) { animation-range: entry 12% cover 32%; }
  .pillar.reveal:nth-child(3) { animation-range: entry 19% cover 36%; }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(36px) scale(0.985); }
    to { opacity: 1; transform: none; }
  }

  header.site::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-2), var(--amber));
    transform-origin: 0 50%;
    animation: progress linear both;
    animation-timeline: scroll(root);
  }
  @keyframes progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* --- narrow screens ------------------------------------------------------------ */

@media (max-width: 900px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .promise { grid-template-columns: minmax(0, 1fr); padding: 30px; gap: 20px; }
}

@media (max-width: 700px) {
  main, .wrap { padding: 0 16px; }
  header.site .wrap { flex-wrap: wrap; row-gap: 8px; }
  nav.site { gap: 14px; justify-content: flex-start; }
  nav.site .nav-cta { display: none; }
  h1 { font-size: 30px; }
  .page h1 { font-size: 32px; }
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 38px; }
  .hero h1 br { display: none; }
  .hero .lede { font-size: 17.5px; }
  .toc { columns: 1; }

  .price-strip { flex-direction: column; align-items: flex-start; }
  .price-actions { align-items: flex-start; text-align: left; }
  .outcomes { grid-template-columns: minmax(0, 1fr); }
  .flow { flex-direction: column; align-items: stretch; }
  .flow .wire { flex: 0 0 22px; width: 2px; height: 22px; margin: 0 auto; }
  .flow .wire::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top-color: var(--accent-2); border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
