/* Agent Pong marketing site: "The Rally".
   The page is a table-tennis table seen from above: tournament green, white edge lines, a centre line and a
   real net. Display full stops are balls. Rubber red marks the outage (the ping) and is only used on balls and
   bounce marks, never for text on green (coral is the text colour for the outage side). Big Shoulders Display
   for display type, Archivo for text and UI, Doto only for big scoreboard numerals. Product mocks use the real
   product's own look (status page: status.css tokens and Geist; dashboard: tokens.css).
   Also styles the public auth pages (body.rally.auth). */

:root {
  --table: #0B5E46;
  --deep: #08483A;
  --line: #FFFFFF;
  --rubber: #D7222B;
  --coral: #FFC2BA;          /* outage text on green: 5.06:1 on --table */
  --ink: #000000;
  --post: #2A302D;           /* net posts */
  --board: #050807;          /* scoreboard face */
  --board-cell: #0E1412;
  --text: #FFFFFF;
  --mute: #D3E2DE;           /* body copy on green: 5.8:1 */
  --faint: #B8D3CB;          /* small meta on green: 4.9:1 */
  --rule: rgba(255, 255, 255, .28);

  /* status page mock: the tokens of public/assets/status.css (light theme) */
  --sp-bg: #f6f6f7;
  --sp-surface: #ffffff;
  --sp-surface-2: #fafafb;
  --sp-line: #e5e5e8;
  --sp-line-soft: #eeeef0;
  --sp-ink: #18181b;
  --sp-ink-2: #3f3f46;
  --sp-muted: #64646e;
  --sp-faint: #6b6b76;
  --acme: #1F5C8F;           /* the example product's accent */
  --ok: #16a34a;      --ok-ink: #15803d;
  --minor: #eab308;   --minor-ink: #a16207;
  --major: #ea580c;   --major-ink: #c2410c;
  --critical: #dc2626; --critical-ink: #b91c1c;
  --maint: #2563eb;   --maint-ink: #1d4ed8;
  --info: #0284c7;    --info-ink: #0369a1;
  --nodata: #d4d4d8;
  --ok-bar: color-mix(in oklab, var(--ok) 58%, #fff);
  --minor-bar: color-mix(in oklab, var(--minor) 75%, #fff);
  --major-bar: color-mix(in oklab, var(--major) 75%, #fff);

  /* dashboard mock: the tokens of public/assets/tokens.css */
  --app-paper: #F4F1EA;
  --app-paper-2: #ECE7DC;
  --app-card: #FBF9F4;
  --app-ink: #16150F;
  --app-ink-2: #3A382F;
  --app-muted: #6E6A5E;
  --app-line: #D9D2C3;
  --app-accent: #C8552A;

  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-board: "Doto", ui-monospace, "SF Mono", Menlo, monospace;
  --f-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-code: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --edge: 8px;               /* table edge lines */
  --rim: 24px;               /* floor visible beside the table */
  --gut: clamp(24px, 4.4vw, 64px);
  --max: 1240px;
  --net: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.rally {
  margin: 0;
  background: var(--deep);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.rally a { color: inherit; }
:where(.rally) :where(p, h1, h2, h3, h4, figure, blockquote) { margin: 0; }
:where(.rally) :where(ul[role="list"], ol[role="list"]) { margin: 0; padding: 0; list-style: none; }
.rally img, .rally svg { display: block; max-width: 100%; }
.rally code { font-family: var(--f-code); font-size: .86em; }
.rally :focus-visible { outline: 3px solid var(--line); outline-offset: 3px; }
/* white sheets (docs, legal) and white product cards: a green focus ring, never white on white */
.rally .sheet :focus-visible, .rally .paper :focus-visible { outline-color: var(--table); }
.vh { 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: -60px; z-index: 50; background: var(--line); color: var(--ink) !important; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

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

/* ---------------------------------------------------------------- display type + the ball full stop */
.d1, .d2, .d3 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  letter-spacing: 0; line-height: .86; font-kerning: normal; color: var(--text);
}
.d1 { font-size: clamp(64px, 9vw, 132px); }
.d2 { font-size: clamp(52px, 6.2vw, 96px); }
.d3 { font-size: clamp(32px, 3.2vw, 46px); line-height: .92; font-weight: 800; }
.stop {
  display: inline-block; width: .2em; height: .2em; margin-left: .045em;
  border-radius: 50%; background: var(--line); vertical-align: baseline;
}
.d3 .stop { width: .17em; height: .17em; }
.lede { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; color: var(--mute); max-width: 36ch; }
.copy { color: var(--mute); max-width: 44ch; }
.copy + .copy { margin-top: 14px; }
.copy strong, .lede strong { color: var(--text); font-weight: 650; }
.link { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 600; }
.link:hover { text-decoration-thickness: 4px; }

/* ---------------------------------------------------------------- buttons: court lines, square */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font-family: var(--f-text); font-stretch: 125%; font-weight: 750; font-size: 15px; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 3px solid var(--line); border-radius: 0; background: transparent; color: var(--line);
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-solid { background: var(--line); color: var(--ink) !important; }
.btn-solid:hover { box-shadow: inset 0 -5px 0 var(--table); }
.btn-line:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 13.5px; border-width: 2px; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------- header (on the floor, above the table) */
.top { position: relative; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 28px; height: 80px; padding: 0 calc(var(--rim) + var(--edge) + 18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--line); flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word { width: auto; height: 22px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 20px; }
.nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; font-size: 15px; font-weight: 550; text-decoration: none; color: var(--mute); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--line); box-shadow: inset 0 -3px 0 var(--line); }
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 15px; font-weight: 550; text-decoration: none; color: var(--mute); }
.signin:hover { color: var(--line); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.menu-btn { display: none; }

/* ---------------------------------------------------------------- the table frame */
.table {
  position: relative; display: block;
  margin: 0 var(--rim);
  background: var(--table);
  border: var(--edge) solid var(--line);
}
.sec { position: relative; padding: clamp(52px, 4.4vw, 64px) 0; }
.nw { white-space: nowrap; }
.sec + .sec { border-top: var(--edge) solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(32px, 3.4vw, 48px); }
.sec-head.wide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.sec-head.wide .copy { max-width: 60ch; }
.sec-head .copy { padding-bottom: 6px; }

/* the net, seen from above: a black mesh strip, the white headband along its top edge and white caps where it
   meets the table edge; the posts are small clamps sitting on the white edge line */
.net {
  position: relative; z-index: 3; width: var(--net);
  background:
    linear-gradient(90deg, var(--line) 0 6px, transparent 6px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .36) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .36) 0 1px, transparent 1px 6px),
    var(--ink);
  background-position: 0 0, 6px 0, 6px 0, 0 0;
  box-shadow: inset 0 6px 0 var(--line), inset 0 -6px 0 var(--line);
}
.net::before, .net::after {   /* posts: clamps on the table edge */
  content: ""; position: absolute; left: 50%; width: calc(var(--net) - 8px); height: 18px; margin-left: calc((var(--net) - 8px) / -2);
  background: var(--post); outline: 2px solid var(--line);
}
.net::before { top: calc(-1 * var(--edge) / 2 - 9px); }
.net::after { bottom: calc(-1 * var(--edge) / 2 - 9px); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--net) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  min-height: min(calc(100svh - 80px - var(--edge)), 820px);
}
.hero .net { grid-column: 2; grid-row: 1 / -1; }
.hero-cline { grid-column: 1 / -1; grid-row: 2; height: 4px; background: var(--line); margin: 30px 0; z-index: 1; }
.hero-h { grid-column: 1; grid-row: 1; align-self: end; padding: 150px 32px 0 clamp(28px, 4.6vw, 72px); }
.hero-sub { grid-column: 1; grid-row: 3; align-self: start; padding: 0 32px 52px clamp(28px, 4.6vw, 72px); }
.hero-sub .lede { margin-bottom: 30px; }
.hero-side { grid-column: 3; grid-row: 1 / -1; align-self: start; position: relative; z-index: 2; padding: 106px clamp(24px, 4vw, 64px) 36px; }
.hero-h .d1 > span { display: block; white-space: nowrap; }

/* trajectory: a coaching diagram, drawn from real element positions by rally.js */
.trail { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; overflow: visible; }
.trail path { fill: none; stroke: var(--line); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0.1 11; }
.trail path.on-paper { stroke: var(--ink); }
.mark-bounce circle.r { fill: var(--table); stroke: var(--line); stroke-width: 3; }
.mark-bounce circle.c { fill: var(--line); }
.mark-bounce.on-paper circle.r { fill: #fff; stroke: var(--ink); }
.mark-bounce.on-paper circle.c { fill: var(--rubber); }
.ball {
  position: absolute; left: 0; top: 0; z-index: 5; width: 18px; height: 18px; border-radius: 50%;
  background: var(--line); box-shadow: 0 0 0 2px var(--ink);
  offset-rotate: 0deg; offset-anchor: center; pointer-events: none; opacity: 0;
}
.ripple { position: absolute; z-index: 5; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid var(--rubber); opacity: 0; pointer-events: none; }
.ripple.go { animation: ripple .7s ease-out; }
@keyframes ripple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }

/* ---------------------------------------------------------------- product mocks: flat paper on the table */
.paper { background: var(--sp-bg); color: var(--sp-ink); font-family: var(--f-ui); font-size: 14px; line-height: 1.45; border: 3px solid var(--ink); }
.chrome { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; background: #ececee; border-bottom: 1px solid var(--sp-line); }
.chrome .dots { display: flex; gap: 6px; flex: none; width: 40px; }
.chrome .dots i { width: 9px; height: 9px; border-radius: 50%; background: #c9c9cf; }
.chrome .url { flex: 1; max-width: 260px; margin: 0 auto; height: 22px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--sp-line); border-radius: 5px; font-size: 12px; color: var(--sp-muted); white-space: nowrap; overflow: hidden; }
.chrome .chrome-end { flex: none; width: 40px; }

.t-ok { --tone: var(--ok); --tone-ink: var(--ok-ink); }
.t-minor { --tone: var(--minor); --tone-ink: var(--minor-ink); }
.t-major { --tone: var(--major); --tone-ink: var(--major-ink); }
.t-critical { --tone: var(--critical); --tone-ink: var(--critical-ink); }
.t-maint { --tone: var(--maint); --tone-ink: var(--maint-ink); }
.t-info { --tone: var(--info); --tone-ink: var(--info-ink); }
.ic { flex: none; color: var(--tone); display: inline-block; vertical-align: middle; }
.ic .ic-ring { fill: color-mix(in oklab, var(--tone) 14%, transparent); stroke: none; }
.ic.t-ok .ic-ring { fill: var(--tone); }
.ic.t-ok path { stroke: #fff; }

.spx-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 18px; background: color-mix(in oklab, #fff 55%, var(--sp-bg)); border-bottom: 1px solid var(--sp-line-soft); }
.spx-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 650; letter-spacing: -.015em; }
.spx-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--acme); color: #fff; font-weight: 700; font-size: 13px; }
.spx-hd-r { display: inline-flex; align-items: center; gap: 10px; }
.spx-link { font-size: 13px; color: var(--sp-muted); font-weight: 500; }
.spx-subscribe { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--acme); color: #fff; font-size: 13px; font-weight: 550; white-space: nowrap; }
.spx-main { padding: 14px 16px 16px; }
.spx-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; padding: 14px 16px; border-radius: 14px; background: color-mix(in oklab, var(--tone) 7%, #fff); border: 1px solid color-mix(in oklab, var(--tone) 22%, var(--sp-line)); }
.spx-glyph { display: grid; place-items: center; }
.spx-hero-b b { display: block; font-size: 18px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; }
.spx-hero-b span { display: block; margin-top: 2px; font-size: 13px; color: var(--sp-muted); }
.spx-meta { font-size: 12px; color: var(--sp-muted); white-space: nowrap; align-self: start; padding-top: 3px; }
.spx-sec-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 2px 8px; }
.spx-sec-hd b { font-size: 13.5px; font-weight: 620; letter-spacing: -.01em; }
.spx-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 5px; font-size: 11px; color: var(--sp-muted); }
.spx-legend i { width: 7px; height: 7px; border-radius: 2px; margin-left: 6px; }
.spx-legend i:first-child { margin-left: 0; }
.lg-ok { background: var(--ok-bar); } .lg-minor { background: var(--minor-bar); } .lg-major { background: var(--major-bar); }
.lg-critical { background: var(--critical); } .lg-maint { background: var(--maint); }
.spx-inc { position: relative; padding: 13px 14px 13px 22px; background: #fff; border: 1px solid var(--sp-line); border-radius: 14px; }
.spx-inc::before { content: ""; position: absolute; left: 8px; top: 13px; bottom: 13px; width: 4px; border-radius: 4px; background: var(--tone); }
.spx-inc-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.spx-inc-hd b { font-size: 14.5px; line-height: 1.35; font-weight: 620; letter-spacing: -.012em; }
.spx-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 22px; padding: 0 9px; border-radius: 999px; background: color-mix(in oklab, var(--tone) 12%, #fff); color: var(--tone-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.spx-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--tone); }
.spx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 0; padding: 0; list-style: none; }
.spx-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px 1px 7px; border-radius: 999px; border: 1px solid var(--sp-line); background: var(--sp-surface-2); font-size: 12px; color: var(--sp-ink-2); }
.spx-chips i { width: 7px; height: 7px; border-radius: 2px; background: var(--tone); }
.spx-latest { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--sp-line); }
.spx-latest p { font-size: 13px; color: var(--sp-ink-2); }
.spx-incm { display: flex; gap: 8px; margin-top: 5px; font-size: 12px; color: var(--sp-muted) !important; }
.spx-incm span:first-child { color: var(--sp-ink-2); font-weight: 550; }
.spx-incm span + span::before { content: "\00b7"; margin-right: 8px; }
.spx-window { margin-top: 5px; font-size: 13px; color: var(--sp-ink-2); }
.spx-count { margin-left: 8px; color: var(--sp-muted); }
.spx-card { background: #fff; border: 1px solid var(--sp-line); border-radius: 14px; }
.spx-grp { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; font-size: 13.5px; color: var(--sp-ink); }
.spx-grp b { font-weight: 620; }
.spx-grp .chev { color: var(--sp-muted); }
.spx-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--sp-line-soft); color: var(--sp-ink-2); font-size: 11px; font-weight: 600; }
.spx-grp + .spx-cmp, .spx-cmp + .spx-cmp, .spx-cmp + .spx-grp { border-top: 1px solid var(--sp-line-soft); }
.spx-cmp { padding: 11px 16px 9px; }
.spx-cmp-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spx-name { font-size: 13.5px; font-weight: 580; letter-spacing: -.008em; }
.spx-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sp-muted); }
.spx-st > span { display: inline-flex; align-items: center; gap: 6px; }
.spx-st .bad-t { color: var(--tone-ink); font-weight: 550; }
.spx-bars { display: flex; align-items: center; gap: 2px; height: 24px; margin-top: 8px; }
.spx-bars i { flex: 1 1 0; min-width: 0; height: 100%; border-radius: 3px; background: var(--ok-bar); }
.spx-bars i.s-minor { background: var(--minor-bar); }
.spx-bars i.s-major { background: var(--major-bar); }
.spx-bars i.s-critical { background: var(--critical); }
.spx-bars i.s-maint { background: var(--maint); }
.big-mock .spx-bars { gap: 1.5px; height: 22px; }
.big-mock .spx-bars i { border-radius: 2px; }
.spx-ft { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--sp-faint); white-space: nowrap; }
.spx-ft > i { flex: 1; height: 1px; background: var(--sp-line-soft); }
.spx-ft .up { color: var(--sp-muted); font-family: var(--f-code); font-size: 10.5px; }
.spx-ft .d30 { display: none; }

/* hero card: two states. Without JS (and after the serve) it shows the answered outage. The incident slot keeps its
   height in both states, so the card never changes size. */
.hero-card { width: 100%; max-width: 540px; margin: 0 auto; position: relative; }
.hero-card .spx-hero { --tone: var(--major); --tone-ink: var(--major-ink); }
.hero-card .c-hit { --tone: var(--major); --tone-ink: var(--major-ink); }
.hero-card .ok-t { display: none; }
.hero-card .spx-slot { margin-top: 12px; margin-bottom: 12px; }
.hero-card .spx-inc { transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.js .hero-card.is-quiet .spx-hero, .js .hero-card.is-quiet .c-hit { --tone: var(--ok); --tone-ink: var(--ok-ink); }
.js .hero-card.is-quiet .bad-t { display: none; }
.js .hero-card.is-quiet .ok-t { display: inline-flex; }
.js .hero-card.is-quiet .spx-hero-b .ok-t { display: block; }
.js .hero-card.is-quiet .c-hit .spx-bars i:last-child { background: var(--ok-bar); }
.js .hero-card:not(.is-answered) .spx-inc { opacity: 0; transform: translateY(6px); }

/* ---------------------------------------------------------------- 2. status pages + scoreboard */
.score-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.score-left .d2 { margin-bottom: 18px; }
.score-left .copy { margin-bottom: 24px; }

.board {
  background: var(--board); color: #fff; border: 3px solid var(--ink);
  outline: 2px solid #2B312E; outline-offset: -8px; padding: 18px;
}
.board-h { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; font-size: 14px; color: #C8D1CD; }
.board-h a { color: #fff; font-weight: 650; text-decoration: none; }
.board-h a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lamp { width: 12px; height: 12px; border-radius: 50%; background: #3DDC84; flex: none; }
.lamp.deg { background: #F2B630; }
.lamp.out { background: #FF5A52; }
.lamp.mnt { background: #7DB0FF; }
.lamp.off { background: #4B5552; }
.board-state { margin-left: auto; color: #fff; font-weight: 600; }
.board-nums { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px; }
.board-num { background: var(--board-cell); padding: 14px 14px 12px; min-width: 0; }
.board-num b { display: block; font-family: var(--f-board); font-weight: 900; font-size: clamp(48px, 5.4vw, 80px); line-height: .95; letter-spacing: .01em; color: #fff; white-space: nowrap; }
.board-num span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.3; color: #B7C2BE; }
.board-rows { margin: 4px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.board-rows li { display: flex; align-items: center; gap: 9px; padding: 8px 12px; font-size: 14px; background: var(--board-cell); min-width: 0; }
.board-rows .n { color: #fff; font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-rows .s { margin-left: auto; color: #B7C2BE; font-size: 12.5px; white-space: nowrap; }
.board-foot { padding: 12px 6px 2px; font-size: 13px; color: #9FB0A9; }

/* ---------------------------------------------------------------- 3. the incident rally */
.court { position: relative; --gap-net: 176px; --leg: 42px; }
.court-sides { display: grid; grid-template-columns: minmax(0, 1fr) var(--gap-net) minmax(0, 1fr); margin-bottom: 12px; }
.court-sides span { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.court-sides .s-ping { color: var(--coral); text-align: right; }
.court-sides .s-pong { grid-column: 3; }
.court-play { position: relative; }
.court-net { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 20px; margin-left: -10px; z-index: 1;
  background: linear-gradient(90deg, var(--line) 0 5px, transparent 5px), repeating-linear-gradient(0deg, rgba(255,255,255,.36) 0 1px, transparent 1px 6px), repeating-linear-gradient(90deg, rgba(255,255,255,.36) 0 1px, transparent 1px 6px), var(--ink);
  background-position: 0 0, 5px 0, 5px 0, 0 0;
  box-shadow: inset 0 5px 0 var(--line), inset 0 -5px 0 var(--line); }
.court-net::before, .court-net::after { content: ""; position: absolute; left: 3px; right: 3px; height: 14px; background: var(--post); outline: 2px solid var(--line); }
.court-net::before { top: -12px; } .court-net::after { bottom: -12px; }
.ex { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--gap-net) minmax(0, 1fr); padding-bottom: 16px; }
.ex:last-child { padding-bottom: 0; }
.shot { position: relative; min-width: 0; }
.shot-ping { grid-column: 1; grid-row: 1; text-align: right; padding-top: 4px; }
.shot-pong { grid-column: 3; grid-row: 1; margin-top: var(--leg); }
.shot .t { display: block; font-family: var(--f-display); font-weight: 800; font-size: 32px; line-height: 1; margin-bottom: 8px; }
.shot .t .who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shot-ping .t { color: var(--coral); }
.shot-ping p { font-size: 19px; line-height: 1.45; font-weight: 500; max-width: 30ch; margin-left: auto; }
.rally .diag { display: none; }
/* a public update, as the status page's timeline shows it */
.upd { background: #fff; color: var(--sp-ink); font-family: var(--f-ui); border: 3px solid var(--ink); padding: 12px 16px 14px; max-width: 470px; }
.upd-hd { display: flex; align-items: baseline; gap: 10px; }
.upd-st { font-size: 14px; font-weight: 620; color: var(--tone-ink); }
.upd-t { font-size: 12.5px; color: var(--sp-muted); }
.upd p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--sp-ink-2); }
/* legs of the trajectory between shots, inside the net gutter */
.leg { position: absolute; z-index: 2; left: calc(50% - var(--gap-net) / 2 + 14px); width: calc(var(--gap-net) - 28px); overflow: visible; pointer-events: none; }
.leg path { fill: none; stroke: var(--line); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0.1 11; vector-effect: non-scaling-stroke; }
.leg-a { top: 22px; height: var(--leg); }
.leg-b { top: calc(22px + var(--leg)); height: calc(100% - var(--leg)); }
.ex:last-child .leg-b { display: none; }
.hit { position: absolute; z-index: 3; width: 16px; height: 16px; border-radius: 50%; top: 14px; }
.shot-ping .hit { right: -22px; background: var(--rubber); box-shadow: 0 0 0 3px var(--line); }
.shot-pong .hit { left: -22px; background: var(--line); box-shadow: 0 0 0 3px var(--ink); }
.point { position: relative; z-index: 2; margin: 22px auto 0; max-width: 1040px; text-align: center; background: var(--table); padding: 12px 24px 0; }
.point .d3 { margin: 0 0 12px; }
.point .copy { margin: 0 auto; max-width: 52ch; }

/* the composer mock: the dashboard's "Declare incident" form (tokens.css look) */
.appx { background: var(--app-paper); color: var(--app-ink); font-family: var(--f-ui); font-size: 13px; line-height: 1.4; border: 3px solid var(--ink); max-width: 500px; }
.appx-crumb { padding: 9px 16px; border-bottom: 1px solid var(--app-line); font-size: 12.5px; color: var(--app-muted); }
.appx-crumb i { font-style: normal; margin: 0 4px; opacity: .6; }
.appx-crumb b { color: var(--app-ink); font-weight: 550; }
.appx-body { padding: 14px 16px 14px; }
.appx-h { font-family: "Instrument Serif", Georgia, serif; font-size: 27px; line-height: 1.05; letter-spacing: -.01em; margin-bottom: 8px; }
.appx-tpl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 10px; border: 1px dashed var(--app-line); border-radius: 8px; margin-bottom: 4px; }
.appx-tpl-l { font-size: 12.5px; color: var(--app-ink-2); }
.appx-select { flex: 0 1 230px; padding: 4px 10px; border: 1px solid var(--app-line); border-radius: 6px; background: var(--app-card); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appx-l { margin: 8px 0 4px; font-size: 12.5px; font-weight: 550; color: var(--app-ink); }
.appx-in { padding: 7px 10px; border: 1px solid var(--app-line); border-radius: 7px; background: var(--app-card); font-size: 13.5px; }
.appx-ta { color: var(--app-ink-2); }
.appx-segs { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 12px; margin-top: 10px; }
.appx-segs .appx-l { margin: 0; }
.appx-segs .appx-seg { justify-self: start; }
.appx-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border: 1px solid var(--app-line); border-radius: 8px; background: var(--app-paper-2); }
.appx-seg span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 12px; color: var(--app-ink-2); white-space: nowrap; }
.appx-seg span.on { background: var(--app-card); color: var(--app-ink); box-shadow: 0 0 0 1px var(--app-line); font-weight: 550; }
.appx-seg i { width: 6px; height: 6px; border-radius: 50%; }
.d-minor { background: #D9A21B; } .d-major { background: var(--major); } .d-critical { background: #D8432F; } .d-info { background: var(--info); }
.appx-pick { border: 1px solid var(--app-line); border-radius: 8px; background: var(--app-card); overflow: hidden; }
.appx-pg { display: flex; align-items: center; gap: 6px; padding: 7px 10px; font-size: 12.5px; border-top: 1px solid var(--app-line); }
.appx-pg:first-child { border-top: 0; }
.appx-pg b { font-weight: 600; }
.appx-pg .chev { color: var(--app-muted); }
.appx-cnt { margin-left: auto; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, var(--app-accent) 12%, transparent); color: #8F3A1B; font-size: 11.5px; font-weight: 550; }
.appx-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 10px 5px 30px; font-size: 12.5px; color: var(--app-ink-2); }
.appx-cb { width: 13px; height: 13px; border: 1.5px solid var(--app-line); border-radius: 3px; background: #fff; flex: none; }
.appx-row.on .appx-cb { background: var(--app-ink); border-color: var(--app-ink); box-shadow: inset 0 0 0 2.5px var(--app-ink), inset 0 0 0 6px #fff; }
.appx-row.on { color: var(--app-ink); }
.appx-imp { margin-left: auto; flex: none; white-space: nowrap; padding: 2px 8px; border: 1px solid var(--app-line); border-radius: 6px; background: #fff; font-size: 12px; }
.appx-sum { padding: 8px 10px; border-top: 1px solid var(--app-line); background: var(--app-paper-2); font-size: 12.5px; color: var(--app-ink-2); }
.appx-sum b { color: var(--app-ink); font-weight: 600; }
.appx-go { margin-top: 10px; display: flex; justify-content: flex-end; }
.appx-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 8px; background: var(--app-accent); color: #FFF8F2; font-size: 13.5px; font-weight: 600; }

/* ---------------------------------------------------------------- 4. health checks + API */
.api-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.api-more { margin-top: 16px; font-size: 15.5px; }
.code {
  margin: 0; background: var(--ink); color: #E8EEEB; border: 3px solid var(--ink);
  font-family: var(--f-code); font-size: 13.5px; line-height: 1.65; padding: 18px 22px; overflow-x: auto; position: relative;
  tab-size: 2;
}
.code code { font-size: inherit; white-space: pre; }
.code .k { color: #9BE7C4; }
.code .s { color: #FFC2BA; }
.code .c { color: #8FA39B; }
.code .v { color: #FFFFFF; font-weight: 700; }
.code-cap { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; font-size: 14px; color: var(--faint); }
.code-cap b { color: var(--text); font-weight: 650; }
.code-box { position: relative; }
.code-box .code { padding-right: 92px; }
.prose .code-box { margin-top: 16px; }
.prose .code-box .code { margin-top: 0; }
.copy-btn { position: absolute; top: 8px; right: 8px; z-index: 2; min-height: 32px; padding: 4px 12px; font: 650 12.5px var(--f-text); color: #fff; background: #000; border: 2px solid #59625E; cursor: pointer; }
.copy-btn:hover { border-color: #fff; }
.endpoints { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 2px solid var(--rule); }
.endpoints li { padding: 9px 0; border-bottom: 2px solid var(--rule); font-size: 14.5px; color: var(--mute); display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.endpoints code { color: #fff; font-size: 13px; white-space: nowrap; }
.endpoints .m { font-family: var(--f-code); font-size: 11.5px; font-weight: 700; color: var(--ink); background: var(--line); padding: 1px 5px; flex: none; }

.try { margin-top: 26px; border: 3px solid var(--line); padding: 18px 20px 20px; }
.try h3 { font-size: 17px; font-weight: 700; font-stretch: 125%; margin-bottom: 4px; }
.try > p { color: var(--mute); font-size: 15px; margin-bottom: 14px; }
.try-row { display: flex; gap: 0; }
.try-row input { flex: 1; min-width: 0; }
.try-row .btn { min-height: 50px; border-left-width: 0; }
.try-out { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--board); border: 3px solid var(--ink); padding: 4px; }
.try-out[hidden] { display: none; }
.try-out div { background: var(--board-cell); padding: 10px 12px; min-width: 0; }
.try-out b { display: block; font-family: var(--f-board); font-weight: 900; font-size: 34px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.try-out b small { font-family: var(--f-text); font-size: 13px; font-weight: 600; margin-left: 3px; }
.try-out span { display: block; margin-top: 6px; font-size: 12.5px; color: #B7C2BE; }
.try-msg { margin-top: 12px; font-size: 15px; color: var(--mute); min-height: 1.5em; display: flex; gap: 10px; align-items: flex-start; }
.try-msg .ball-i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); flex: none; margin-top: 6px; }
.try-msg.is-bad .ball-i { background: var(--rubber); box-shadow: 0 0 0 2px var(--line); }
.try-msg:empty { display: none; }

/* ---------------------------------------------------------------- 5. closing */
.serve { padding: clamp(52px, 4.6vw, 68px) 0 clamp(40px, 3.6vw, 52px); }
.serve-h { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: .8; font-size: clamp(88px, 11vw, 164px); white-space: nowrap; }
.serve .d2 { line-height: .86; }
.serve-row { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 4px solid var(--line); }
.serve-row .lede { max-width: 40ch; }

/* ---------------------------------------------------------------- footer (the floor): one court-line row */
.foot { padding: 30px 0 30px; font-size: 15px; color: var(--mute); }
.foot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 36px; padding-bottom: 18px; border-bottom: 4px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-links a, .foot-legal a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--mute); }
.foot-links a:hover, .foot-legal a:hover { color: var(--line); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 4px 24px; flex-wrap: wrap; padding-top: 8px; font-size: 13.5px; color: var(--faint); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-legal a { color: var(--faint); }

/* ---------------------------------------------------------------- inner pages */
.page-head { padding: clamp(52px, 5.6vw, 80px) 0 clamp(36px, 3.6vw, 52px); }
.page-head .d2 { margin-bottom: 20px; }
.page-head .lede { max-width: 52ch; }
.page-head .lede code { font-size: .8em; background: rgba(0, 0, 0, .28); padding: 1px 6px; overflow-wrap: anywhere; }
.sheet { background: #fff; color: #14201B; border: 3px solid var(--ink); }
.docs { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: clamp(56px, 6vw, 96px); }
.toc { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; font-size: 14.5px; padding-right: 6px; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc > ol { border-top: 3px solid var(--line); }
.toc > ol > li { border-bottom: 2px solid var(--rule); padding: 8px 0; }
.toc ol ol { padding: 4px 0 2px 12px; }
.toc ol ol li { padding: 2px 0; }
.toc a { color: var(--mute); text-decoration: none; }
.toc > ol > li > a { color: var(--text); font-weight: 650; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }

.prose { padding: clamp(24px, 4vw, 56px); font-size: 16.5px; line-height: 1.65; min-width: 0; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 3.4vw, 48px); line-height: .95; margin-top: 56px; padding-top: 28px; border-top: 4px solid #14201B; scroll-margin-top: 16px; }
.prose > h2:first-child, .prose > .note:first-child + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.prose > .note:first-child + h2 { margin-top: 28px; }
.prose h3 { font-size: 19px; font-weight: 750; font-stretch: 112%; margin-top: 34px; scroll-margin-top: 16px; }
.prose h4 { font-size: 16px; font-weight: 700; margin-top: 22px; }
.prose p, .prose li { max-width: 72ch; color: #26332D; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose ul > li::marker { color: var(--table); }
.prose a { color: #0A5A43; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-thickness: 3px; }
.prose code { background: #EEF3F1; padding: 1px 5px; color: #0E1B16; font-size: .86em; }
.prose strong { color: #0E1B16; }
.prose .code { margin-top: 16px; }
.prose .code code { background: none; padding: 0; color: inherit; }
/* notes: a black-bordered white box with a small red ball */
.prose .note { position: relative; border: 3px solid #0E1B16; padding: 12px 16px 12px 42px; background: #fff; color: #14201B; }
.prose .note::before { content: ""; position: absolute; left: 15px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--rubber); }
.tbl-wrap { overflow-x: auto; margin-top: 16px; border: 2px solid #14201B; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid #D9E1DD; }
.tbl th { background: #14201B; color: #fff; font-weight: 650; font-size: 13.5px; }
.tbl tr:last-child td { border-bottom: 0; }
.ep { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding: 9px 12px; background: #0E1B16; color: #fff; font-family: var(--f-code); font-size: 14px; }
.ep + .ep { margin-top: 4px; }
.ep .m { font-weight: 800; font-size: 12px; padding: 2px 7px; background: #fff; color: #000; min-width: 58px; text-align: center; }
.ep .m.post { background: #9BE7C4; }
.ep .m.patch { background: #FDE68A; }
.ep .m.delete { background: #FFC2BA; }

/* ---------------------------------------------------------------- pricing */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 4px solid var(--line); border-bottom: 4px solid var(--line); }
.lane { padding: 30px 32px 34px; display: flex; flex-direction: column; min-width: 0; }
.lane + .lane { border-left: 4px solid var(--line); }
.lane .d3 { margin-bottom: 12px; }
.lane .for { color: var(--mute); font-size: 16px; min-height: 3em; }
.lane .quote { margin: 16px 0 16px; padding: 10px 0; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); font-weight: 650; font-size: 15px; }
.lane ul { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 9px; flex: 1; align-content: start; }
.lane li { position: relative; padding-left: 22px; font-size: 15.5px; color: var(--mute); }
.lane li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lane li strong { color: var(--text); font-weight: 650; }
.lane li.soon::before { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.lane .btn { align-self: flex-start; }
.soon-t { color: var(--coral); font-weight: 650; }
.cmp-wrap { margin-top: clamp(52px, 5.6vw, 80px); }
.cmp-wrap .d3 { margin-bottom: 10px; }
.cmp-note { color: var(--mute); font-size: 15px; margin-bottom: 20px; }
.cmp-board { background: var(--board); border: 3px solid var(--ink); padding: 6px; overflow-x: auto; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0 3px; font-size: 15px; }
.cmp th, .cmp td { padding: 11px 16px; text-align: left; background: var(--board-cell); color: #D9E2DE; }
.cmp thead th { background: transparent; font-family: var(--f-display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: #fff; padding-top: 14px; padding-bottom: 8px; }
.cmp td:not(:first-child), .cmp thead th:not(:first-child) { text-align: center; width: 17%; }
.cmp tbody th { font-weight: 500; }
.cmp .grp th { background: transparent; color: #fff; font-family: var(--f-text); font-stretch: 125%; font-weight: 750; font-size: 14px; padding-top: 20px; }
.yes { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #fff; vertical-align: middle; }
.no { display: inline-block; width: 14px; height: 3px; background: #6B7672; vertical-align: middle; }
.cmp .soon { color: var(--coral); font-weight: 650; font-size: 13.5px; }
.cmp .txt { font-size: 14px; color: #fff; }
.faq { margin-top: clamp(52px, 5.6vw, 80px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 56px; }
.faq-list { border-top: 4px solid var(--line); }
.faq details { border-bottom: 2px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 650; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--line); flex: none; }
.faq details[open] summary::after { background: var(--line); }
.faq details p { padding: 0 0 18px; color: var(--mute); max-width: 62ch; }

/* ---------------------------------------------------------------- forms (contact + auth): court-line fields */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .lbl { font-weight: 650; font-size: 15px; color: var(--text); }
.field .opt { font-weight: 450; color: var(--faint); font-size: 13.5px; margin-left: 4px; }
.req { color: var(--coral); }
.rally input[type="text"], .rally input[type="email"], .rally input[type="password"], .rally input[type="url"], .rally select, .rally textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; border-radius: 0;
  font: 500 16px/1.4 var(--f-text); color: var(--line);
  background: var(--deep); border: 3px solid var(--line);
  -webkit-appearance: none; appearance: none;
}
.rally textarea { min-height: 132px; resize: vertical; }
.rally select { background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.rally select option { color: #000; background: #fff; }
.rally ::placeholder { color: #9FBDB3; opacity: 1; }
.rally input:focus-visible, .rally select:focus-visible, .rally textarea:focus-visible { outline: 3px solid var(--coral); outline-offset: 0; }
.rally input[aria-invalid="true"] { border-color: var(--coral); }
.hint { font-size: 13.5px; color: var(--faint); }
.err-t { font-size: 14px; color: var(--coral); font-weight: 600; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 3px solid var(--line); background: var(--deep); font-weight: 600; font-size: 15.5px; margin-bottom: 22px; }
.alert::before { content: ""; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: var(--rubber); box-shadow: 0 0 0 2px var(--line); flex: none; }
.alert.ok::before { background: var(--line); box-shadow: none; }
.alert[hidden] { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; margin-top: 24px; }
.form-actions .hint { max-width: 44ch; }
.hint a, .alt a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; padding-bottom: clamp(56px, 6vw, 96px); }
.next { border-top: 4px solid var(--line); padding-top: 4px; }
.next h2 { font-size: 17px; font-weight: 750; font-stretch: 125%; padding: 14px 0 8px; }
.next p { color: var(--mute); font-size: 15.5px; }
.next p + p { margin-top: 12px; }
.alt { margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--rule); color: var(--mute); font-size: 15px; }

/* end pages (404, thanks): the court, with the net, the centre line and one ball */
.end { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--net) minmax(0, 1fr); grid-template-rows: auto auto auto; min-height: calc(100svh - 240px); }
.end .net { grid-column: 2; grid-row: 1 / -1; }
.end-h { grid-column: 1; grid-row: 1; align-self: end; padding: 96px 32px 0 clamp(28px, 4.6vw, 72px); }
.end-cline { grid-column: 1 / -1; grid-row: 2; height: 4px; background: var(--line); margin: 28px 0; }
.end-sub { grid-column: 1; grid-row: 3; padding: 0 32px 72px clamp(28px, 4.6vw, 72px); }
.end .d1 { font-size: clamp(60px, 7.6vw, 116px); }
.end .lede { margin-bottom: 28px; max-width: 40ch; }
.end-court { grid-column: 3; grid-row: 1 / -1; position: relative; z-index: 2; }
.end-path { position: absolute; inset: 14% 0 14% 0; width: 100%; height: 72%; overflow: visible; }
.end-path path { fill: none; stroke: var(--line); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0.1 11; vector-effect: non-scaling-stroke; }
.rally .end-tall { display: none; }
.end-ball { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 2px var(--ink); }
.end-gone { left: calc(100% + var(--edge) + var(--rim) / 2); top: calc(14% + 72% * .6); }
.end-bounce { position: absolute; left: 60%; top: calc(14% + 72% * .74); width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid var(--line); }
.end-rest { left: calc(60% + 34px); top: calc(14% + 72% * .74 + 8px); }

/* ---------------------------------------------------------------- auth pages (src/auth) */
/* the auth pages also load tokens.css (shared Layout): neutralise its generic form and heading rules here */
body.rally.auth { background: var(--deep); color: var(--text); font-family: var(--f-text); font-feature-settings: normal; }
.rally .table { width: auto; font-size: inherit; }
.rally .field + .field { margin-top: 0; }
.rally label { margin-bottom: 0; display: block; }
.rally input:focus, .rally select:focus, .rally textarea:focus { box-shadow: none; border-color: var(--line); }
.rally :focus-visible { border-radius: 0; }
.rally .hint { margin-top: 0; }
.rally ::selection { background: var(--line); color: var(--ink); }
.auth .brand-word { height: 22px; width: auto; }
.auth-table { display: grid; grid-template-columns: minmax(0, 1fr) var(--net) minmax(0, 1fr); min-height: calc(100svh - 80px - var(--rim)); margin-bottom: var(--rim); }
.auth-table .net { grid-column: 2; }
.auth-main { grid-column: 1; padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.auth-box { width: 100%; max-width: 430px; }
.auth-box .d2 { font-size: clamp(52px, 5.6vw, 84px); margin-bottom: 14px; }
.auth-box .lede { font-size: 17px; margin-bottom: 26px; }
.auth-box .lede + .lede { margin-top: -12px; }
.auth-box form { display: grid; gap: 16px; }
.auth-box .btn-block { margin-top: 6px; }
.auth-switch { margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--rule); font-size: 15px; color: var(--mute); }
.auth-switch a, .auth-sales a { color: var(--text); font-weight: 650; }
.auth-sales { font-size: 15px; color: var(--mute); }
/* the other half of the court: the centre line and the ball at rest */
.auth-side { grid-column: 3; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 clamp(24px, 4vw, 64px) 32px; }
.auth-side::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--line); }
.auth-ball { position: absolute; left: 34%; top: calc(50% + 64px); width: 22px; height: 22px; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 2px var(--ink); }
.auth-side .cap { position: relative; font-size: 14px; color: var(--faint); max-width: 34ch; }
.auth-foot { padding: 0 calc(var(--rim) + var(--edge) + 18px) 28px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13.5px; color: var(--faint); }
.auth-foot a { display: inline-flex; align-items: center; min-height: 32px; color: var(--faint); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav a { padding: 0 9px; font-size: 14.5px; }
  .score-grid { grid-template-columns: minmax(0, 1fr); }
  .score-left { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
  .score-left .d2, .score-left .copy { grid-column: 1; }
  .score-left .board { grid-column: 2; grid-row: 1 / span 3; }
  .big-mock { max-width: 760px; }
  .court { --gap-net: 128px; }
}

@media (max-width: 980px) {
  .nav, .top-actions .signin { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
    font: 700 14px var(--f-text); color: var(--line); background: transparent; border: 2px solid var(--line); border-radius: 0; cursor: pointer;
  }
  .menu-btn i { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: var(--rim); right: var(--rim); top: 80px; margin: 0;
    background: var(--ink); border: 3px solid var(--line); padding: 8px 0; z-index: 30;
  }
  .nav.is-open a { height: 50px; padding: 0 20px; font-size: 17px; color: var(--line); }
  .nav.is-open a:hover { box-shadow: inset 4px 0 0 var(--line); }
  .nav .nav-m { display: inline-flex; }
  /* no JavaScript: no menu button, the links wrap under the logo instead */
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .top-in { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 10px; row-gap: 4px; }
  html:not(.js) .nav { display: flex; flex-wrap: wrap; gap: 0 4px; order: 3; width: 100%; margin-left: -12px; }
  html:not(.js) .nav a { height: 40px; }
  .api-grid { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .toc ol ol { display: none; }
  .toc > ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .lane + .lane { border-left: 0; border-top: 4px solid var(--line); }
  .lane .for { min-height: 0; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .auth-table { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .auth-table .net, .auth-side { display: none; }
}
@media (min-width: 981px) { .nav .nav-m { display: none; } }

@media (max-width: 860px) {
  :root { --edge: 5px; --rim: 10px; --gut: 18px; --net: 22px; }
  body.rally { font-size: 17px; }
  .top-in { height: 68px; padding: 0 calc(var(--rim) + 8px); gap: 12px; }
  .nav.is-open { top: 68px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { height: 18px; }
  .top-actions { gap: 10px; }
  .top-actions .btn-sm { padding: 0 12px; }

  /* the table rotates: ping half on top, net across, pong half below */
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto var(--net) auto; min-height: 0; }
  .hero-h { grid-column: 1; grid-row: 1; padding: 40px 18px 0; }
  .hero-cline { display: none; }
  .hero-sub { grid-column: 1; grid-row: 2; padding: 22px 18px 76px; }
  .hero .net, .end .net {
    grid-column: 1; grid-row: 3; width: auto; height: var(--net); margin: 0;
    background:
      linear-gradient(180deg, var(--line) 0 5px, transparent 5px),
      repeating-linear-gradient(0deg, rgba(255,255,255,.36) 0 1px, transparent 1px 6px),
      repeating-linear-gradient(90deg, rgba(255,255,255,.36) 0 1px, transparent 1px 6px),
      var(--ink);
    background-position: 0 0, 0 5px, 0 5px, 0 0;
    box-shadow: inset 5px 0 0 var(--line), inset -5px 0 0 var(--line);
  }
  .hero .net::before, .hero .net::after, .end .net::before, .end .net::after { top: 50%; bottom: auto; width: 14px; height: calc(var(--net) - 6px); margin: calc((var(--net) - 6px) / -2) 0 0; }
  .hero .net::before, .end .net::before { left: calc(-1 * var(--edge) / 2 - 7px); }
  .hero .net::after, .end .net::after { left: auto; right: calc(-1 * var(--edge) / 2 - 7px); }
  .hero-side { grid-column: 1; grid-row: 4; padding: 52px 14px 30px; }
  .hero-side::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--line); z-index: -1; }
  .d1 { font-size: clamp(56px, 19vw, 120px); }
  .ctas .btn { flex: 1 1 auto; }
  .hero-card .hide-s { display: none; }
  .spx-hd { padding: 0 12px; height: 48px; }
  .spx-main { padding: 12px 12px 14px; }
  .spx-hero { padding: 12px 12px; gap: 2px 10px; grid-template-columns: auto minmax(0, 1fr); }
  .spx-hero .spx-meta { display: none; }
  .spx-hero .ic { width: 26px; height: 26px; }
  .spx-hero-b b { font-size: 16px; }
  .hero-card .spx-hero-b span { min-height: 2.9em; }   /* both states take two lines: the card keeps its height */
  .spx-link { display: none; }
  .spx-cmp { padding: 11px 12px 9px; }
  .spx-grp { padding: 0 12px; }
  .big-mock .spx-bars i:nth-child(-n+60) { display: none; }
  .big-mock .spx-bars { gap: 2px; }
  .spx-ft .d90 { display: none; }
  .spx-ft .d30 { display: inline; }
  .spx-sec-hd { flex-wrap: wrap; }
  .spx-legend { display: none; }

  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .d2 { font-size: clamp(42px, 12vw, 80px); }
  .score-left { display: block; }
  .board { padding: 10px; outline-offset: -5px; }
  .board-h { flex-wrap: wrap; row-gap: 4px; }
  .board-state { margin-left: 22px; flex-basis: 100%; font-weight: 500; color: #C8D1CD; }
  .board-nums { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .board-num:first-child { grid-column: 1 / -1; }
  .board-num { padding: 10px 10px 9px; }
  .board-num b { font-size: clamp(30px, 10vw, 44px); }
  .board-num span { font-size: 12px; }
  .board-rows { grid-template-columns: minmax(0, 1fr); }

  /* rally: the net runs down the left; outage and you alternate, joined by short dotted diagonals */
  .court { --gap-net: 0px; padding-left: 30px; }
  .court-sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 14px; }
  .court-sides .s-ping { text-align: left; }
  .court-sides .s-pong { grid-column: 2; text-align: right; }
  .court-sides span { font-size: 24px; }
  .court-net { left: -30px; top: 0; margin-left: 0; width: 14px; box-shadow: inset 0 4px 0 var(--line), inset 0 -4px 0 var(--line); }
  .court-net::before, .court-net::after { left: 2px; right: 2px; height: 10px; }
  .court-net::before { top: -9px; } .court-net::after { bottom: -9px; }
  .ex { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .shot-ping, .shot-pong { grid-column: 1; grid-row: auto; text-align: left; margin-top: 0; }
  .shot-ping { padding-right: 16%; }
  .shot-pong { padding-left: 10%; }
  .shot-pong .t { text-align: right; }
  .rally .diag { display: block; width: 100%; height: 30px; margin: 6px 0; overflow: visible; }
  .diag path { fill: none; stroke: var(--line); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0.1 11; vector-effect: non-scaling-stroke; }
  .shot .t { font-size: 26px; }
  .shot-ping p { margin-left: 0; font-size: 17px; max-width: none; }
  .leg { display: none; }
  .shot-ping .hit, .shot-pong .hit { left: -31px; right: auto; top: 5px; }
  .upd, .appx { max-width: none; }
  .appx-body { padding: 12px 12px 14px; }
  .point { text-align: left; padding: 14px 0 0; margin-top: 30px; }

  .endpoints { grid-template-columns: minmax(0, 1fr); }
  .endpoints code { white-space: normal; word-break: break-all; }
  .code { font-size: 12.5px; padding: 16px; }
  .code-cap span { display: none; }
  .try { padding: 16px; }
  .try-row { flex-direction: column; gap: 10px; }
  .try-row .btn { border-left-width: 3px; }
  .try-out b { font-size: 26px; }
  .serve-h { font-size: clamp(68px, 21vw, 120px); white-space: normal; }
  .serve-row .ctas { width: 100%; }

  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .prose { padding: 22px 16px; font-size: 16px; }
  .toc > ol { grid-template-columns: minmax(0, 1fr); }
  .lane { padding: 26px 18px 28px; }
  .cmp thead th { font-size: 20px; }
  .auth-main { padding: 36px 18px 48px; }
  .auth-foot { padding: 0 calc(var(--rim) + 8px) 24px; }
  .foot-row { gap: 10px 24px; }
  .foot-links { gap: 0 18px; }

  .end { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto var(--net) 170px; min-height: 0; }
  .end-h { padding: 52px 18px 0; }
  .end-cline { display: none; }
  .end-sub { grid-column: 1; grid-row: 2; padding: 22px 18px 44px; }
  .end-court { grid-column: 1; grid-row: 4; }
  .rally .end-wide { display: none; }
  .rally .end-tall { display: block; inset: 0 12% 0 12%; width: 76%; height: 100%; }
  .end-gone { left: calc(12% + 76% * .62); top: calc(100% + var(--edge) + 6px); }
  .end-bounce { left: calc(12% + 76% * .6); top: 62%; }
  .end-rest { left: calc(12% + 76% * .6 + 30px); top: calc(62% + 6px); }
}

/* the plan comparison on phones: each feature over a three-column row of plan values */
@media (max-width: 720px) {
  .cmp-board { padding: 4px; overflow: visible; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp { border-spacing: 0; font-size: 14.5px; }
  .cmp tbody tr:not(.grp) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2px; margin-top: 3px; background: var(--board-cell); }
  .cmp tbody tr:not(.grp) th { grid-column: 1 / -1; padding: 10px 12px 4px; background: transparent; color: #fff; }
  .cmp tbody tr:not(.grp) td { width: auto; padding: 6px 4px 10px; background: transparent; text-align: center; }
  .cmp tbody tr:not(.grp) td::before { content: attr(data-plan); display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; color: #9FB0A9; }
  .cmp .grp th { padding: 18px 8px 6px; }
}

@media (max-width: 600px) {
  .code code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .code-box .code { padding-right: 16px; padding-top: 50px; }
}

@media (max-width: 520px) {
  .top-actions .btn-sm { display: none; }
  .appx-seg span.hide-xs { display: none; }
  .appx-segs { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .appx-segs .appx-l { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card .spx-inc, .btn { transition: none; }
  .ripple.go { animation: none; }
}
