@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
}

/* Ramps follow turn.io's source palette. Text pairs are checked for WCAG AA. */
:root {
  --plum-5: #3b1e40; --plum-4: #47264c; --blush-1: #fce6ff; --pink-1: #fce6ff; --pink-2: #f3b3fe; --pink-3: #eb80fd;
  --coral-1: #ffe1d8; --coral-2: #fea689; --coral-3: #ff643b; --coral-45: #843920;
  --green-1: #d2f2e3; --green-3: #1dbf73; --green-45: #11663d;
  --blue-1: #ccf0f8; --blue-3: #00b4dc; --blue-45: #005c71;
  --yellow-1: #f7f2d8; --yellow-2: #e7d88a; --yellow-45: #6d601e;
  --purple-1: #eee2ff; --purple-3: #c09dff; --purple-5: #460095;
  --grey-1: #f2f2f2; --grey-2: #e1e1e1; --grey-text: #5e5e5e;
  --ink-0: #1a0f1c; --white: #ffffff;
  --radius-tile: 24px; --radius-bubble: 16px;
  --gutter: 40px;

  /* Names the current screens use, mapped onto the new palette */
  --bg: #ffffff; --panel: #ffffff; --ink: var(--ink-0); --muted: var(--grey-text); --line: var(--grey-2);
  --accent: var(--coral-3); --warn: var(--yellow-45); --warn-bg: var(--yellow-1);
  --ok: var(--green-45); --err: var(--coral-45); --err-bg: var(--coral-1);
}
@media (max-width: 767px) { :root { --gutter: 16px; } }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 "DM Sans", Arial, sans-serif; background: var(--bg); color: var(--ink); }
.banner { background: var(--ink-0); color: var(--white); text-align: center; padding: 6px 16px; font-size: 13px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px 8px; flex-wrap: wrap; }
h1 { margin: 0; color: var(--accent); font-size: 26px; }
h2 { margin: 0 0 4px; font-size: 17px; }
.sub, .source { margin: 2px 0; color: var(--muted); font-size: 14px; }
main { padding: 8px 24px 40px; }
button { font: inherit; font-weight: 600; padding: 10px 22px; border-radius: 9999px; border: 1px solid var(--coral-3); background: var(--coral-3); color: var(--plum-5); cursor: pointer; }
button:disabled { opacity: .6; cursor: progress; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--blue-45); outline-offset: 2px; }
.status { padding: 10px 14px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); }
.status.partial { background: var(--warn-bg); border-color: var(--yellow-2); }
.status.error { background: var(--err-bg); border-color: var(--coral-2); }
.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; margin: 16px 0; }
.site, .courier { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; min-width: 0; }
.site.down { border-color: var(--coral-2); }
.stats { display: flex; gap: 20px; margin: 10px 0; }
.stats strong { font-size: 20px; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--grey-1); color: var(--muted); vertical-align: middle; }
.tag.mock { background: var(--yellow-1); color: var(--warn); }
.table-wrap { overflow-x: auto; max-height: 340px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { position: sticky; top: 0; background: var(--panel); color: var(--muted); font-weight: 600; }
.warn { color: var(--warn); }
.error { color: var(--err); }
.empty { color: var(--muted); }
.badge { padding: 1px 6px; border-radius: 10px; font-size: 12px; background: var(--grey-1); }
.badge.available, .badge.open { background: var(--green-1); color: var(--ok); }
.badge.reserved, .badge.booked { background: var(--blue-1); color: var(--blue-45); }
.badge.used, .badge.expired { background: var(--grey-1); color: var(--muted); }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 16px 0; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
button.secondary { background: var(--white); color: var(--plum-5); border-color: var(--plum-5); }
.plan-summary { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; margin: 12px 0; }
.plan-summary strong { font-size: 20px; }
.plan-summary .source { flex-basis: 100%; }
.transfers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.transfer { border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.transfer p { margin: 6px 0; }
.transfer .message { background: var(--bg); padding: 8px; border-radius: 4px; }
.reason { color: var(--err); }
.ok { color: var(--ok); font-weight: 600; }
.replacement { color: var(--blue-45); font-weight: 600; }
.decline-form { margin-top: 8px; display: grid; gap: 6px; }
textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; resize: vertical; width: 100%; }
textarea:focus-visible { outline: 3px solid var(--ink-0); outline-offset: 2px; }
.proof { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.proof summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; padding: 6px 0; }
.proof summary:focus-visible { outline: 3px solid var(--ink-0); outline-offset: 2px; }
.proof-step { margin: 8px 0; }
.proof pre { margin: 4px 0; padding: 6px 8px; background: var(--ink-0); color: var(--grey-1); border-radius: 4px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.history { margin: 4px 0 8px; padding-left: 20px; font-size: 14px; }
.badge.superseded { background: var(--grey-1); color: var(--muted); }
.switcher { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
select { font: inherit; padding: 7px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
select:focus-visible { outline: 3px solid var(--ink-0); outline-offset: 2px; }
.badge.checking { background: var(--yellow-1); color: var(--warn); }
.badge.reserved { background: var(--green-1); color: var(--ok); }
.transfer .actions { margin-top: 8px; }
.badge.proposed { background: var(--purple-1); color: var(--purple-5); }
.badge.requested { background: var(--blue-1); color: var(--blue-45); }
.badge.declined, .badge.refused, .badge.failed { background: var(--err-bg); color: var(--err); }
.status.loading { background: var(--panel); }
.banner.sim { background: var(--purple-5); }
.link-button { display: inline-block; padding: 9px 20px; border-radius: 9999px; border: 1px solid var(--plum-5); color: var(--plum-5); font-weight: 600; text-decoration: none; background: var(--white); }
.link-button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--blue-45); outline-offset: 2px; }
.method { margin: 8px 0; padding-left: 20px; }
.method li { margin: 4px 0; }
.bar-cell { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.bar { display: inline-block; height: 12px; border-radius: 3px; }
.bar.before { background: var(--grey-2); }
.bar.after { background: var(--accent); }
.bar-label { font-variant-numeric: tabular-nums; }
.doc { max-width: 980px; }
.hero h2 { font-size: 22px; }
.steps { padding-left: 20px; }
.steps li { margin: 6px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card p { margin: 0; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.button-link { display: inline-block; padding: 12px 28px; border-radius: 9999px; background: var(--coral-3); color: var(--plum-5); font-weight: 600; text-decoration: none; }
.button-link:focus-visible, .doc a:focus-visible { outline: 3px solid var(--ink-0); outline-offset: 2px; }
.doc td { white-space: normal; }
.doc .table-wrap { max-height: none; }
.notes-h { margin: 16px 0 6px; font-size: 15px; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { border-top: 1px solid var(--line); padding: 6px 0; }
.notes li p { margin: 2px 0; }
@media (max-width: 480px) {
  .top, main { padding-left: 16px; padding-right: 16px; }
  .sites, .transfers { grid-template-columns: 1fr; }
}

/* Shared nav and live strip */
.live-strip { background: var(--blue-3); color: var(--ink-0); text-align: center; padding: 8px var(--gutter); font-size: 15px; }
.live-strip a { color: var(--ink-0); font-weight: 600; }
.live-strip .chip { display: inline-block; background: var(--green-1); color: var(--green-45); font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 9999px; margin-right: 8px; vertical-align: 1px; }
.site-nav { background: var(--plum-5); color: var(--blush-1); }
.site-nav .inner { display: flex; align-items: center; gap: 28px; padding: 16px var(--gutter); flex-wrap: wrap; }
.site-nav .brand { color: var(--white); font-size: 26px; font-weight: 600; text-decoration: none; letter-spacing: -0.5px; }
.site-nav .brand span { color: var(--coral-3); }
.site-nav .links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-nav .links a { color: var(--blush-1); text-decoration: none; font-weight: 600; font-size: 17px; }
.site-nav .links a:hover, .site-nav .links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-nav .end { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-nav .pill { background: var(--white); color: var(--ink-0); border-radius: 9999px; padding: 10px 20px; font-weight: 600; text-decoration: none; }
.site-nav .synthetic { font-size: 13px; color: var(--blush-1); opacity: 0.85; }
.site-nav a:focus-visible, .site-nav select:focus-visible, .site-nav button:focus-visible { outline-color: var(--white); }
@media (max-width: 767px) {
  .site-nav .inner { gap: 12px 20px; }
  .site-nav .links { gap: 16px; }
  .site-nav .links a { font-size: 15px; }
  .site-nav .end { margin-left: 0; width: 100%; }
}
.page-head { padding: 32px var(--gutter) 8px; }
.page-head h1 { margin: 0; color: var(--ink-0); font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.5px; }
.page-head .sub { font-size: 17px; color: var(--grey-text); margin-top: 8px; }
main { padding: 8px var(--gutter) 48px; }
.site-nav .switcher { color: var(--blush-1); font-size: 15px; font-weight: 600; }
.site-nav select { background: var(--white); color: var(--ink-0); border: 0; border-radius: 9999px; padding: 9px 14px; font-weight: 600; }
.site-nav button.secondary { background: transparent; color: var(--white); border-color: var(--blush-1); }
@media (max-width: 767px) { .page-head h1 { font-size: 30px; } }

/* Step 2: coordinator view */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.status { border-radius: 9999px; padding: 12px 22px; border: 0; font-weight: 600; background: var(--grey-1); color: var(--ink-0); }
.status.loaded { background: var(--green-1); color: var(--green-45); }
.status.partial { background: var(--yellow-1); color: var(--yellow-45); }
.status.error { background: var(--coral-1); color: var(--coral-45); }
.status.loading { background: var(--grey-1); color: var(--grey-text); }

.plan { border: 1px solid var(--grey-2); border-radius: var(--radius-tile); padding: 28px; margin: 20px 0; background: var(--white); }
.plan h2 { font-size: 28px; line-height: 1.2; font-weight: 600; margin: 0; }
.plan-head { margin-bottom: 16px; }
.plan-summary { gap: 12px; margin: 16px 0 20px; }
.plan-summary .stat { background: var(--grey-1); border-radius: var(--radius-bubble); padding: 14px 18px; display: flex; flex-direction: column; min-width: 150px; }
.plan-summary .stat.good { background: var(--green-1); color: var(--green-45); }
.plan-summary .stat strong { font-size: 36px; line-height: 1.1; font-weight: 700; }
.plan-summary .stat span { font-size: 14px; }

.transfers { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.transfer { border: 0; border-radius: var(--radius-tile); padding: 18px; background: var(--grey-1); display: flex; flex-direction: column; gap: 10px; }
.transfer p { margin: 0; }
.transfer.state-reserved { background: var(--green-1); }
.transfer.state-refused, .transfer.state-failed { background: var(--coral-1); }
.transfer.state-requested, .transfer.state-checking { background: var(--blue-1); }
.transfer.state-declined { background: var(--pink-1); }
.transfer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.transfer-head .from { font-weight: 600; }
.bubble { background: var(--white); border-radius: var(--radius-bubble) var(--radius-bubble) var(--radius-bubble) 4px; padding: 12px 16px; }
.transfer .bubble .message { background: none; padding: 0; font-size: 16px; line-height: 1.45; }
.bubble .by { font-size: 14px; color: var(--grey-text); margin-top: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.facts strong { margin-right: 4px; }
.chip, .group { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 9999px; background: var(--white); color: var(--ink-0); }
.group { background: var(--plum-5); color: var(--white); }
.transfer .source { font-size: 14px; }
.transfer .actions button { padding: 9px 22px; }

.badge { font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 9999px; background: var(--white); color: var(--ink-0); }
.badge.available, .badge.open, .badge.reserved { background: var(--white); color: var(--green-45); }
.badge.booked, .badge.requested { background: var(--white); color: var(--blue-45); }
.badge.proposed { background: var(--white); color: var(--plum-5); }
.badge.checking { background: var(--yellow-1); color: var(--yellow-45); }
.badge.refused, .badge.failed { background: var(--white); color: var(--coral-45); }
.badge.used, .badge.expired, .badge.declined, .badge.superseded { background: var(--white); color: var(--grey-text); }
.ok { color: var(--green-45); }
.reason { color: var(--coral-45); }
.replacement { color: var(--blue-45); }

.sites { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; margin: 20px 0; }
.site { border: 0; border-radius: var(--radius-tile); padding: 24px; background: var(--grey-1); }
.site.tint-blue { background: var(--blue-1); }
.site.tint-green { background: var(--green-1); }
.site.tint-pink { background: var(--pink-1); }
.site.down { background: var(--coral-1); }
.site h2 { font-size: 24px; margin: 0 0 4px; font-weight: 600; }
.site .source { color: var(--ink-0); opacity: 0.8; }
.site .stats { gap: 24px; margin: 16px 0; }
.site .stats div { display: flex; flex-direction: column; }
.site .stats strong { font-size: 40px; line-height: 1.05; font-weight: 700; }
.site .stats span { font-size: 14px; }
.site .stats .warn { color: var(--yellow-45); }
.table-wrap.inner { background: var(--white); border-radius: var(--radius-bubble); max-height: 320px; }
.table-wrap.inner th { background: var(--white); }
th, td { padding: 8px 12px; }
td.warn { color: var(--yellow-45); font-weight: 600; }

.courier { border: 0; border-radius: var(--radius-tile); padding: 24px; background: var(--blue-1); margin-bottom: 20px; }
.courier h2 { font-size: 24px; margin: 0 0 4px; }
.courier .table-wrap { background: var(--white); border-radius: var(--radius-bubble); margin-top: 12px; }
.courier .table-wrap th { background: var(--white); }
.tag.mock { background: var(--white); color: var(--yellow-45); font-size: 13px; padding: 3px 10px; border-radius: 9999px; }

.proof { border-top: 0; padding-top: 0; }
.proof summary { color: var(--plum-5); font-size: 14px; }
.proof-body { background: var(--ink-0); color: var(--grey-1); border-radius: var(--radius-bubble); padding: 14px 16px; margin-top: 8px; }
.proof-body .source { color: var(--grey-2); }
.proof-body pre { background: var(--plum-5); }
.proof-body strong { color: var(--white); }

/* Tighter nav on phones: links and actions each take one row */
@media (max-width: 767px) {
  .site-nav .inner { padding-top: 12px; padding-bottom: 12px; }
  .site-nav .brand { font-size: 22px; }
  .site-nav .synthetic { width: 100%; order: 3; font-size: 12px; }
  .site-nav .end { gap: 8px; }
  .site-nav .switcher { font-size: 0; }
  .site-nav .switcher select { font-size: 15px; }
  .site-nav button.secondary { padding: 8px 16px; }
  .plan { padding: 20px; }
  .transfers { grid-template-columns: 1fr; }
  .plan-summary .stat { min-width: 0; flex: 1 1 40%; }
}
.site .stats .lapsed, td.lapsed { color: var(--grey-text); }
.irr { font-size: 13px; font-weight: 600; color: var(--plum-5); }
.table-wrap.inner td:last-child { white-space: normal; }
.table-wrap.inner .for { display: block; font-size: 13px; color: var(--grey-text); margin-top: 2px; }
.table-wrap.inner th, .table-wrap.inner td { padding: 8px 9px; }

/* Step 3: lab inbox */
.inbox-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.count { font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 9999px; background: var(--grey-1); color: var(--grey-text); }
.count.has { background: var(--coral-3); color: var(--plum-5); }
.inbox-group { margin: 20px 0 8px; }
.inbox-group h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.inbox-group h3 .n { font-size: 13px; color: var(--grey-text); background: var(--grey-1); padding: 2px 9px; border-radius: 9999px; vertical-align: 2px; }
.transfer.state-empty { background: var(--purple-1); max-width: 560px; }
.progress { color: var(--yellow-45); font-weight: 600; }
.notes-panel { background: var(--pink-1); border-radius: var(--radius-tile); padding: 22px 24px; margin-top: 24px; }
.notes-panel h3 { font-size: 20px; margin: 0 0 4px; }
.notes-panel .tag { background: var(--white); color: var(--plum-5); font-size: 12px; padding: 3px 10px; border-radius: 9999px; }
.notes-panel .notes li { border-top: 1px solid var(--pink-2); }
.inbox-link { display: inline-block; margin: 2px 0 8px; font-weight: 600; color: var(--plum-5); text-underline-offset: 3px; }

/* Landing page */
.landing main { padding: 0; }
.l-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.l-hero { background: var(--plum-5); color: var(--blush-1); padding: 56px 0 72px; }
.l-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.l-hero h1 { color: var(--blush-1); font-size: 64px; line-height: 1.05; font-weight: 600; letter-spacing: -1px; }
.l-hero h1 .accent { color: var(--coral-3); }
.l-lead { font-size: 19px; line-height: 1.5; margin: 20px 0 28px; max-width: 34em; }
.l-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.l-textlink { color: var(--blush-1); font-weight: 600; font-size: 17px; text-underline-offset: 5px; }
.l-textlink::after { content: " \2192"; }
.l-built { margin: 36px 0 0; font-size: 14px; color: var(--blush-1); }
.l-built span { display: inline-block; margin-left: 14px; font-weight: 600; color: var(--white); }
.l-frame { position: relative; margin: 0; }
.l-frame img { display: block; width: 100%; height: auto; border-radius: var(--radius-tile); background: var(--white); }
.l-frame.narrow img { max-height: 620px; object-fit: cover; object-position: top; border: 1px solid var(--grey-2); }
.l-tag { position: absolute; top: 14px; right: 14px; background: var(--yellow-1); color: var(--yellow-45); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 9999px; }
.l-float { display: none; position: absolute; left: -36px; bottom: -40px; width: min(330px, 80%); background: var(--white); color: var(--ink-0); border-radius: var(--radius-bubble); padding: 16px 18px; box-shadow: 0 12px 32px rgba(26, 15, 28, .28); }
.l-float.on { display: block; }
.l-float p { margin: 0 0 8px; }
.l-float .from, .l-bubble .from { font-weight: 600; }
.l-float a { color: var(--plum-5); font-weight: 600; }

.l-section { padding: 80px var(--gutter); }
.l-h2 { font-size: 48px; line-height: 1.05; font-weight: 600; letter-spacing: -0.5px; margin: 0 0 12px; }
.l-note { color: var(--grey-text); margin: 0 0 28px; }
.l-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.l-tile { border-radius: var(--radius-tile); padding: 28px; min-height: 260px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.l-tile.blue { background: var(--blue-1); } .l-tile.green { background: var(--green-1); } .l-tile.yellow { background: var(--yellow-1); }
.l-tile.coral { background: var(--coral-1); } .l-tile.pink { background: var(--pink-1); } .l-tile.purple { background: var(--purple-1); }
.l-tile p { margin: 0; }
.l-tile a { color: var(--plum-5); font-weight: 600; text-underline-offset: 3px; }
.l-num { font-size: 32px; line-height: 1.15; font-weight: 600; margin: 0; }
.l-tile .l-num:only-child { color: var(--grey-text); animation: l-pulse 1.6s ease-in-out infinite; }
@keyframes l-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .l-tile .l-num:only-child { animation: none; } }
.l-rows { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.l-row { display: flex; gap: 12px; align-items: center; background: var(--white); border-radius: 12px; padding: 8px 12px; font-size: 14px; flex-wrap: wrap; }
.l-row .group { background: var(--plum-5); color: var(--white); border-radius: 9999px; padding: 1px 9px; font-weight: 600; }
.l-row .src { color: var(--grey-text); margin-left: auto; }
.l-bubble { background: var(--white); border-radius: var(--radius-bubble); padding: 14px 16px; }
.l-bubble p { margin: 0 0 6px; }
.l-bubble .meta, .l-small, .meta { color: var(--grey-text); font-size: 14px; }
.l-quote { margin: 0; background: var(--white); border-radius: var(--radius-bubble); padding: 12px 16px; font-style: normal; }
.l-bars { display: flex; gap: 14px; align-items: flex-end; height: 120px; margin-top: 6px; }
.l-bar { flex: 1; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; column-gap: 3px; align-items: end; }
.l-bar .b { display: block; border-radius: 6px 6px 0 0; min-height: 2px; }
.l-bar .g { grid-column: 1 / 3; text-align: center; font-size: 13px; font-weight: 600; padding-top: 4px; }
.b.none, .k.none { background: var(--purple-3); } .b.rule, .k.rule { background: var(--purple-5); }
.l-legend { font-size: 14px; color: var(--grey-text); }
.l-legend .k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 6px 0 0; vertical-align: 0; }
.l-legend .k.rule { margin-left: 14px; }

.l-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.l-before, .l-after { border-radius: var(--radius-tile); padding: 28px; }
.l-before { background: var(--coral-1); } .l-after { background: var(--green-1); }
.l-ba h3 { margin: 0 0 12px; font-size: 22px; }
.l-ba ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 17px; }
.l-before li::before { content: "\2013"; margin-right: 10px; color: var(--coral-45); font-weight: 700; }
.l-after li::before { content: "\2713"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: var(--green-45); color: var(--white); font-size: 13px; }

.l-band.purple { background: var(--purple-5); color: var(--blush-1); padding: 80px 0; }
.l-band .l-h2 { color: var(--blush-1); }
.l-steps { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 20px; }
.l-step { background: transparent; color: var(--blush-1); border: 1px solid var(--blush-1); }
.l-step[aria-selected="true"] { background: var(--blush-1); color: var(--purple-5); }
.l-step:focus-visible { outline-color: var(--white); }
.l-step-panel { max-width: 820px; font-size: 18px; }
.l-step-panel a { color: var(--white); font-weight: 600; }
.l-step-panel .meta { color: var(--blush-1); opacity: .9; }
.l-proof pre { background: var(--ink-0); color: var(--grey-1); border-radius: var(--radius-bubble); padding: 16px; font-size: 14px; white-space: pre-wrap; word-break: break-word; margin: 0; }

.l-why { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.l-why p { font-size: 18px; max-width: 36em; }
.l-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.l-fact { display: flex; flex-direction: column; gap: 8px; background: var(--grey-1); border-radius: var(--radius-tile); padding: 24px; color: var(--ink-0); text-decoration: none; }
.l-fact strong { font-size: 44px; line-height: 1; font-weight: 700; color: var(--plum-5); }
.l-fact span { text-decoration: underline; text-decoration-color: var(--grey-2); text-underline-offset: 4px; }
.l-fact:hover span { text-decoration-color: currentColor; }

.l-close { position: relative; overflow: hidden; background: var(--plum-5); color: var(--blush-1); text-align: center; padding: 96px var(--gutter);
  background-image: radial-gradient(circle at 8% 30%, var(--coral-3) 0 70px, transparent 71px), radial-gradient(circle at 92% 75%, var(--pink-3) 0 90px, transparent 91px), radial-gradient(circle at 80% 10%, var(--coral-3) 0 26px, transparent 27px); }
.l-close h2 { font-size: 56px; line-height: 1.05; font-weight: 600; margin: 0 0 28px; color: var(--blush-1); }
.l-footer { background: var(--plum-4); color: var(--blush-1); padding: 40px 0; }
.l-footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.l-footer .brand { color: var(--white); font-size: 24px; font-weight: 600; }
.l-footer .brand span { color: var(--coral-3); }
.l-footer p { margin: 6px 0 0; font-size: 14px; }
.l-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.l-footer a { color: var(--blush-1); font-weight: 600; }

@media (max-width: 900px) {
  .l-hero-grid, .l-why { grid-template-columns: 1fr; }
  .l-hero h1 { font-size: 44px; }
  .l-float { left: 12px; bottom: -32px; }
  .l-hero { padding-bottom: 64px; }
  .l-h2, .l-close h2 { font-size: 34px; }
  .l-tiles, .l-ba, .l-facts { grid-template-columns: 1fr; }
  .l-section { padding: 56px var(--gutter); }
  .l-why .l-frame { order: 2; max-width: 340px; }
}
.l-frame:not(.narrow) .l-tag { top: auto; bottom: 14px; }
.l-frame.narrow::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 90px; border-radius: 0 0 var(--radius-tile) var(--radius-tile); background: linear-gradient(transparent, var(--white)); pointer-events: none; }
@media (max-width: 900px) {
  .l-close { background-image: radial-gradient(circle at 0% 100%, var(--coral-3) 0 60px, transparent 61px), radial-gradient(circle at 100% 0%, var(--pink-3) 0 60px, transparent 61px); }
  .l-float { left: 12px; right: 12px; width: auto; }
}

/* Inner pages built from the landing parts */
.banner.sim { background: var(--purple-5); color: var(--blush-1); font-size: 14px; }
.l-sub-hero { padding: 56px 0 48px; }
.l-sub-hero.purple { background: var(--purple-1); color: var(--ink-0); }
.l-sub-hero.plum { background: var(--plum-5); color: var(--blush-1); }
.l-sub-hero h1 { font-size: 56px; line-height: 1.05; font-weight: 600; letter-spacing: -1px; margin: 0; color: inherit; }
.l-sub-hero.plum h1 .accent { color: var(--coral-3); }
.l-stats { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin: 8px 0 12px; }
.l-stat { background: var(--white); color: var(--ink-0); border-radius: var(--radius-tile); padding: 18px 22px; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.l-stat strong { font-size: 40px; line-height: 1; font-weight: 700; color: var(--purple-5); }
.l-stat span { color: var(--grey-text); }
.l-stat.pending strong { color: var(--grey-text); animation: l-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .l-stat.pending strong { animation: none; } }
.l-stats button { align-self: center; }
.l-tight { padding-top: 0; }
.l-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 6px 0 14px; vertical-align: -1px; }
.l-key.before, .l-groups .bar.before { background: var(--grey-2); }
.l-key.after, .l-groups .bar.after { background: var(--coral-3); }
.l-groups { max-height: none; }
.l-groups table { font-size: 16px; }
.l-groups td, .l-groups th { padding: 10px 12px; }
.l-groups .bar { height: 18px; border-radius: 6px; }
.l-groups .bar-cell { min-width: 200px; }
.l-list { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 12px; max-width: 860px; }
.l-list li { counter-increment: n; background: var(--grey-1); border-radius: var(--radius-bubble); padding: 14px 18px 14px 60px; position: relative; font-size: 17px; }
.l-list li::before { content: counter(n); position: absolute; left: 16px; top: 13px; width: 30px; height: 30px; border-radius: 50%; background: var(--plum-5); color: var(--white); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
@media (max-width: 900px) { .l-sub-hero h1 { font-size: 38px; } .l-stat { min-width: 0; flex: 1 1 140px; } .l-stat strong { font-size: 30px; } }
.l-sub-hero.plum .l-stat strong { color: var(--plum-5); font-size: 34px; }
.l-sub-hero.plum .l-stat { min-width: 0; }
.l-panel { border-radius: var(--radius-tile); padding: 28px; }
.l-panel.coral { background: var(--coral-1); }
.l-panel h2 { font-size: 28px; margin: 0 0 10px; }
.l-panel p { margin: 0; font-size: 17px; max-width: 60em; }
.l-rules { max-height: none; border-radius: var(--radius-tile); border: 1px solid var(--grey-2); }
.l-rules table { font-size: 15px; }
.l-rules td, .l-rules th { white-space: normal; padding: 12px 14px; vertical-align: top; }
.l-rules td:first-child { font-family: ui-monospace, monospace; font-weight: 600; white-space: nowrap; }
.l-checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; max-width: 900px; }
.l-checks li { background: var(--green-1); border-radius: var(--radius-bubble); padding: 14px 18px 14px 56px; position: relative; font-size: 17px; }
.l-checks li::before { content: "\2713"; position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--green-45); color: var(--white); display: grid; place-items: center; font-size: 14px; }
.l-checks a { color: var(--green-45); font-weight: 600; margin-left: 4px; }
.l-ctas.center { justify-content: center; }
.l-card-shot { justify-self: center; max-width: 360px; }
.l-card-shot img { background: transparent; }
.l-card-shot .l-tag { top: 14px; bottom: auto; }
.l-sub-hero.plum .l-stats { display: grid; grid-template-columns: 1fr 1fr; }
.l-404 { background: var(--plum-5); color: var(--blush-1); min-height: calc(100vh - 140px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px var(--gutter);
  background-image: radial-gradient(circle at 10% 85%, var(--coral-3) 0 60px, transparent 61px), radial-gradient(circle at 90% 20%, var(--pink-3) 0 70px, transparent 71px); }
.l-404 .code { font-size: 20px; font-weight: 600; color: var(--coral-3); margin: 0 0 8px; letter-spacing: 2px; }
.l-404 h1 { color: var(--blush-1); font-size: 56px; line-height: 1.05; font-weight: 600; margin: 0; max-width: 14em; }
.l-404 .l-lead { max-width: 30em; }
@media (max-width: 900px) { .l-404 h1 { font-size: 36px; } .l-404 { background-image: none; } }
.landing main.l-404 { padding: 64px var(--gutter); }
.source-sim { border: 1px dashed var(--plum-5); border-radius: var(--radius-bubble); padding: 12px 14px; display: grid; gap: 6px; justify-items: start; background: var(--white); }
.source-sim .label { margin: 0; font-size: 14px; font-weight: 600; text-transform: none; color: var(--plum-5); }
.source-sim .source { margin: 0; }
.source-sim button { padding: 7px 16px; font-size: 14px; }
.proof-step.direct { border-left: 3px solid var(--coral-3); padding-left: 10px; }

/* Keyboard users can jump past the nav on every page */
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 10; background: var(--white); color: var(--plum-5); font-weight: 600; padding: 10px 16px; border-radius: 9999px; text-decoration: none; }
.skip-link:focus { top: 12px; outline: 3px solid var(--blue-45); }
/* Tap targets of at least 24px */
.site-nav .links a { display: inline-block; padding: 4px 0; }
.l-footer nav a { display: inline-block; padding: 4px 0; }
.l-try { margin: 22px 0 0; font-size: 16px; line-height: 1.5; color: var(--blush-1); max-width: 34em; }
.l-try a { color: var(--white); font-weight: 600; text-decoration-color: var(--coral-3); text-decoration-thickness: 2px; text-underline-offset: 5px; margin-right: 6px; }
.l-try a::after { content: " \2192"; }
