/* ==========================================================================
   matchwire design system
   --------------------------------------------------------------------------
   Aesthetic: flat poster. Warm amber field, white cards, heavy black type.
   Two colours only: amber and ink, plus warm off-whites for insets.
   Native CSS, no build step, no framework, no webfont link.

   Honest notes:
   - system font stack (SF Pro on Apple hardware), heavy weights for display
   - links are ink with an underline; there is no second hue that passes
     contrast on both amber and white, so nothing tries to be a link colour
   - single theme, on purpose. The amber field is the brand, so the page does
     not invert with the OS. color-scheme is locked to light. Text that needs
     contrast sits on a white surface.
   - the live board is plain text and real grid cells on purpose: a reader
     (human or model) gets the same information from the HTML that the design
     shows visually. Nothing meaningful is CSS-only. Every cell carries
     data-mw-* hooks so a feed can fill values without touching the markup.

   Shape rule (documented, one system):
     surfaces 24px, chips 8px, controls pill.
   ========================================================================== */

:root{
  color-scheme:light;

  --field:#f4f1ea;          /* the page field: a dull warm white. Not #fff (it
                               glares), not grey (it goes cold) — the cards read
                               as white paper laid on it. */
  --amber:#eeb02c;          /* accent marks on white surfaces (chips, badges) */
  --amber-deep:#d99a12;

  --surface:#ffffff;
  --surface-2:#fffdf5;
  --surface-3:#f3ecdb;

  --ink:#0b0b0c;
  --ink-2:#2f2f33;
  --ink-3:#5c5c61;
  --ink-amber:#3a2f10;      /* muted text that sits on amber */

  --ok:#12a150;             /* one semantic status colour: a venue feed that is
                               connected. Not a brand accent, so it is allowed to
                               be the only green on the page. */

  --line:#e9e4d7;
  --field-line:#8e8674;     /* form control borders. 3.0:1 on white, so the input edge is visible */
  --line-2:#d8d1c0;

  /* soft, wide shadows: the surfaces should feel lifted, not boxed */
  --shadow:0 1px 1px rgba(11,11,12,.04), 0 10px 24px -18px rgba(11,11,12,.35), 0 40px 70px -50px rgba(11,11,12,.55);
  --shadow-flat:0 1px 2px rgba(11,11,12,.10);

  --r-surface:24px;
  --r-inner:16px;           /* nested cards and form fields, one step in */
  --r-chip:8px;
  --r-pill:999px;

  --maxw:960px;
  --pad:clamp(18px,3.4vw,28px);
  --sec:clamp(36px,4.6vw,64px);

  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
}

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

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--field);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.6;
  letter-spacing:-.005em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img,svg{max-width:100%;display:block}

a{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px;border-radius:6px}

/* ---------- layout -------------------------------------------------------- */

.shell{max-width:var(--maxw);margin:0 auto;padding-inline:var(--pad)}

.section{padding-block:var(--sec)}
.section--tight{padding-block:clamp(26px,3.4vw,44px)}

.stack{display:grid;gap:18px}

.lede{color:var(--ink-2);font-size:1.0625rem;line-height:1.58;max-width:48ch}
.muted{color:var(--ink-amber);font-size:.875rem}

/* small caps label. Used sparingly, never above every section. */
.label{
  font-size:.6875rem;
  letter-spacing:.11em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--ink-3);
}

.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}

/* ---------- nav ----------------------------------------------------------- */

.nav{
  position:sticky;top:0;z-index:20;
  background:var(--surface);
  border-bottom:1px solid var(--line);
}
.nav__in{
  max-width:var(--maxw);margin:0 auto;
  padding:0 var(--pad);
  height:62px;
  display:flex;align-items:center;gap:clamp(14px,2vw,26px);
}
.brand{
  display:inline-flex;align-items:center;gap:9px;
  font-size:1.0625rem;font-weight:800;letter-spacing:-.03em;color:var(--ink);
  margin-right:auto;white-space:nowrap;
}
.brand__mark{
  width:25px;height:25px;flex:none;border-radius:50%;
  background:var(--amber);display:inline-grid;place-items:center;
}
.brand__mark svg{width:20px;height:20px;display:block}
.brand__w{font-weight:800;color:var(--ink);border-bottom:2px solid var(--amber)}
.brand:hover{text-decoration:none}
.brand:hover .brand__w{border-bottom-color:var(--amber-deep)}

.nav__links{display:flex;align-items:center;gap:clamp(13px,1.8vw,24px)}
.nav__links a{
  color:var(--ink-2);font-size:.9375rem;font-weight:500;
  text-decoration:none;white-space:nowrap;
}
.nav__links a:hover{color:var(--ink);text-decoration:underline}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:40px;padding:0 20px;
  border-radius:var(--r-pill);
  font-size:.9375rem;font-weight:600;letter-spacing:-.005em;
  border:2px solid transparent;
  text-decoration:none;
  transition:background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover{text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--ink);color:var(--surface)}
.btn--primary:hover{background:#26262a}
.btn--ghost{background:var(--surface);color:var(--ink);border-color:var(--ink)}
.btn--ghost:hover{background:var(--surface-3)}
.btn--nav{height:36px;padding:0 16px;font-size:.875rem}

/* ---------- hero: the claim, one line to the agent, then the board ------ */

.herocard{
  margin-top:clamp(16px,2.2vw,26px);
  background:var(--surface);
  border-radius:var(--r-surface);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.herocard__body{padding:clamp(16px,2.2vw,24px) clamp(18px,2.6vw,28px) clamp(12px,1.6vw,16px)}

.herocard h1{
  margin:0;
  font-size:clamp(1.375rem,2.1vw,1.75rem);
  line-height:1.16;letter-spacing:-.032em;font-weight:800;
}
.hero__sub{
  margin:6px 0 0;max-width:88ch;
  color:var(--ink-2);
  font-size:clamp(.875rem,.95vw,.9375rem);line-height:1.45;
}

/* the agent path: marks + sentence + copy are one object, inside an outline.
   Docs is a separate action, so it sits outside the box. */
.paste{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin:10px 0 0;
  font-size:.875rem;color:var(--ink-2);
}
.paste__box{
  display:inline-flex;align-items:center;gap:9px;flex-wrap:wrap;
  border:1px solid var(--line-2);
  border-radius:var(--r-pill);
  background:var(--surface-2);
  padding:3px 4px 3px 13px;
}
.paste__logos{display:inline-flex;align-items:center;gap:6px;flex:none}
.paste__logos svg{display:block}
.paste__text{line-height:1.4}
.paste__copy{height:27px;padding:0 13px;font-size:.6875rem;font-weight:700;margin-left:3px}
.paste__docs{font-size:.8125rem;font-weight:600}

/* ---------- live board: one event, every venue, both sides ------------- */
/* The page keeps its amber/ink identity; the board is the one dark surface on
   it — an instrument panel, the way a live terminal should read. */
:root{
  --panel:#14161b;
  --panel-2:#191d24;
  --panel-line:#2b303a;
  --panel-ink:#f4f2ec;
  --panel-ink-2:#a9a49b;
  --panel-ink-3:#918c83;      /* 5.4:1 on the panel, 5.1:1 on the header strip */
  --panel-amber:#e6c078;      /* side tokens only: keeps the brand alive on dark */
  --ok-live:#4ed07d;          /* feed connected / live. The one green on the page */
}

.boardcard{margin-top:clamp(10px,1.4vw,16px)}
.board{
  background:var(--panel);
  color:var(--panel-ink);
  border-radius:var(--r-surface);
  box-shadow:0 1px 2px rgba(24,20,10,.22),0 20px 44px -14px rgba(24,20,10,.5);
  overflow:hidden;
}

.board__bar{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:9px clamp(14px,2.2vw,24px);
  border-bottom:1px solid var(--panel-line);
}
/* live state integrated into the row, not a pill stamped on top of it */
.live{
  display:inline-flex;align-items:center;gap:7px;flex:none;
  font-size:.625rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase;
  color:var(--ok-live);
}
.live__dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--ok-live);
  box-shadow:0 0 0 3px rgba(78,208,125,.15);
}
.board__event{
  margin:0;
  font-size:.9375rem;font-weight:800;letter-spacing:-.022em;
  display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;
  color:var(--panel-ink);
}
.board__when{font-size:.8125rem;font-weight:500;color:var(--panel-ink-2);letter-spacing:0}
.board__meta{
  margin-left:auto;display:inline-flex;align-items:center;gap:8px;
  font-size:.75rem;color:var(--panel-ink-3);white-space:nowrap;
}
.board__note{
  margin-left:auto;
  font-size:.6875rem;color:var(--panel-ink-3);white-space:nowrap;
}

.board__grid{
  display:grid;
  grid-template-columns:minmax(118px,1fr) repeat(4,minmax(0,1fr));
}
.board__row{display:contents}

.board__head{
  padding:6px clamp(9px,1.3vw,15px);
  background:var(--panel-2);
  border-bottom:1px solid var(--panel-line);
  font-size:.625rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  color:var(--panel-ink-3);line-height:1.3;
}
.vhead{display:flex;align-items:center;gap:6px;min-width:0}
.vhead__name{overflow-wrap:anywhere;color:var(--panel-ink-2)}
.vhead__state{flex:none;display:inline-flex}
.vdot{
  width:6px;height:6px;border-radius:50%;
  background:var(--ok-live);
  box-shadow:0 0 0 2px rgba(78,208,125,.2);
}
.vlogo{display:inline-flex;flex:none;line-height:0}
.vlogo img{border-radius:4px}
.vhead__tag{
  flex:none;font-style:normal;
  font-size:.5rem;font-weight:800;letter-spacing:.04em;
  background:rgba(255,255,255,.15);color:var(--panel-ink);
  border-radius:3px;padding:1px 3px;line-height:1.2;
}
.board__head--label{color:#7b766d}

.board__label{
  padding:6px clamp(11px,1.5vw,17px);
  border-bottom:1px solid var(--panel-line);
  display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;
}
.mkt-name{
  font-size:.8125rem;font-weight:700;letter-spacing:-.012em;line-height:1.25;
  color:var(--panel-ink);
}
.mkt-sub{font-size:.75rem;color:var(--panel-ink-3);line-height:1.2}

.board__cell{
  padding:6px clamp(11px,1.5vw,17px);
  border-bottom:1px solid var(--panel-line);
  display:flex;align-items:baseline;gap:clamp(9px,1.3vw,16px);
}
/* both sides of every market, in the same order down every column */
.side{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap}
.side__k{
  font-size:.5rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--panel-amber);
}
.cell__venue{display:none}
.cell__price{
  font-size:.9375rem;font-weight:700;letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
  color:var(--panel-ink);
}
.cell__price--second{font-weight:500;color:var(--panel-ink-2)}
.cell__title{font-size:.6875rem;color:var(--panel-ink-3);line-height:1.35;overflow-wrap:anywhere}
/* a venue that does not carry the market says so, on both sides, never a blank */
.cell__price--none{font-size:.8125rem;font-weight:500;letter-spacing:0;color:var(--panel-ink-3)}

/* the last row closes on the panel edge, not on a hairline */
.board__grid>*:nth-last-child(-n+5){border-bottom:0}

/* ---------- selling points: stacked rows, one surface -------------------- */

.points{
  background:var(--surface);
  border-radius:var(--r-surface);
  box-shadow:var(--shadow);
  padding:clamp(22px,3vw,38px);
}
.points h2{
  margin:0 0 4px;
  font-size:clamp(1.25rem,1.9vw,1.625rem);
  letter-spacing:-.032em;font-weight:800;line-height:1.18;
  max-width:30ch;
}
.points__row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:clamp(14px,3vw,40px);
  align-items:start;
  padding-top:clamp(18px,2.4vw,26px);
  margin-top:clamp(18px,2.4vw,26px);
  border-top:1px solid var(--line);
}
.points__row h3{margin:0;font-size:1.0625rem;font-weight:800;letter-spacing:-.02em;line-height:1.3}
.points__row p{margin:0;color:var(--ink-2);font-size:.9375rem;line-height:1.58;max-width:52ch}
.points__row code{
  font-family:var(--mono);font-size:.8125rem;
  background:var(--surface-3);border-radius:6px;padding:1px 5px;
}

/* ---------- ways in: one panel, asymmetric cells -------------------------- */

.panel{
  display:grid;
  grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  background:var(--surface);
  border-radius:var(--r-surface);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.panel__main{
  padding:clamp(22px,3vw,36px);
  background:var(--surface-2);
  border-right:1px solid var(--line);
  display:grid;gap:10px;align-content:start;
}
.panel__title{
  display:block;
  font-size:clamp(1.1875rem,1.7vw,1.4375rem);
  letter-spacing:-.03em;font-weight:800;color:var(--ink);line-height:1.2;
}
.panel__text{display:block;color:var(--ink-2);font-size:.9375rem;max-width:36ch;line-height:1.55}
.panel__badge{
  justify-self:start;
  margin-bottom:4px;
  font-family:var(--mono);font-size:.6875rem;letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink);
  background:var(--amber);
  border-radius:var(--r-chip);
  padding:4px 10px;
  font-weight:700;
}
.panel__list{display:grid;grid-template-rows:1fr 1fr}
.row-link{
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"t v" "d v";
  gap:2px 16px;
  align-content:center;
  padding:clamp(18px,2.4vw,26px) clamp(20px,2.8vw,34px);
  border-top:1px solid var(--line);
  color:var(--ink);text-decoration:none;
}
.row-link:first-child{border-top:0}
.row-link:hover{background:var(--surface-3);text-decoration:none}
.row-link b{grid-area:t;font-size:1.0625rem;font-weight:700;letter-spacing:-.02em}
.row-link span{grid-area:d;color:var(--ink-2);font-size:.9375rem;line-height:1.5;max-width:44ch}
.row-link i{
  grid-area:v;align-self:center;
  font-style:normal;color:var(--ink-2);font-size:1.0625rem;
  transition:transform .18s ease;
}
.row-link:hover i{transform:translateX(3px)}

/* ---------- closing band -------------------------------------------------- */

.closing{
  background:var(--surface);
  border-radius:var(--r-surface);
  box-shadow:var(--shadow);
  padding:clamp(22px,3vw,38px);
  display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);
  gap:clamp(20px,4vw,56px);
  align-items:center;
}
.closing h2{
  margin:0 0 10px;
  font-size:clamp(1.375rem,2.1vw,1.8125rem);
  line-height:1.15;letter-spacing:-.033em;font-weight:800;
  max-width:24ch;
}
.closing p{margin:0;color:var(--ink-2);max-width:44ch}
.closing__aside{display:grid;gap:12px;align-content:center;justify-items:start}
.closing__aside p{font-size:.875rem}

/* ---------- content pages (white sheet on the amber field) ---------------- */

.page-head{padding-top:clamp(30px,4vw,54px)}
.page-head h1{
  margin:0;
  font-size:clamp(1.625rem,2.6vw,2.25rem);
  line-height:1.12;letter-spacing:-.035em;font-weight:800;
  max-width:26ch;
}
.page-head .lede{margin:14px 0 0;font-size:clamp(1rem,1.15vw,1.0938rem)}

.prose{
  background:var(--surface);
  border-radius:var(--r-surface);
  box-shadow:var(--shadow);
  padding:clamp(22px,3vw,40px);
  margin-block:clamp(20px,3vw,34px) 0;
}
.prose>*+*{margin-top:14px}
.prose h2{
  margin:clamp(30px,3.6vw,46px) 0 0;
  font-size:clamp(1.125rem,1.5vw,1.3125rem);
  letter-spacing:-.025em;font-weight:800;line-height:1.25;
}
.prose h2:first-child{margin-top:0}
.prose h2+p{margin-top:8px}
.prose p{color:var(--ink-2);margin:0}
.prose p b,.prose p strong{color:var(--ink);font-weight:650}
.prose ul{margin:8px 0 0;padding-left:1.15em;color:var(--ink-2)}
.prose li{margin:6px 0}
.prose li::marker{color:var(--ink-3)}

/* a TBD note stands in for content we refuse to invent */
.note{
  border-left:3px solid var(--amber);
  padding:2px 0 2px 16px;
  color:var(--ink-2);font-size:.9375rem;
}
.note .label{display:block;margin-bottom:5px;color:var(--ink-2)}

.stack-list{margin:0;padding:0;list-style:none}
.stack-list li{border-top:1px solid var(--line);padding:14px 0}
.stack-list li:first-child{border-top:0;padding-top:0}

/* FAQ: hairline above each item only, never boxed */
.faq{margin:14px 0 0;padding:0}
.faq dt{
  border-top:1px solid var(--line);
  padding-top:18px;margin-top:18px;
  font-weight:700;color:var(--ink);font-size:1.0625rem;letter-spacing:-.015em;
}
.faq dt:first-child{border-top:0;margin-top:0;padding-top:0}
.faq dd{margin:8px 0 0;color:var(--ink-2);font-size:1rem;line-height:1.58}

/* hub and spoke links */
.related{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:20px;margin-top:clamp(30px,3.6vw,46px);
  padding-top:clamp(20px,2.6vw,28px);
  border-top:1px solid var(--line);
}
.related div{display:grid;gap:8px;align-content:start}
.related a{font-size:.9375rem;font-weight:600}
.related .label{color:var(--ink-3)}

/* docs: inline code and copyable code blocks */
.prose code{
  font-family:var(--mono);font-size:.8125rem;
  background:var(--surface-3);border-radius:6px;padding:1px 5px;
}
.prose pre{
  background:var(--surface-2);border:1px solid var(--line);border-radius:10px;
  padding:14px 16px;overflow-x:auto;line-height:1.5;
}
.prose pre code{background:none;padding:0;font-size:.8125rem;white-space:pre}
.prose table code{white-space:nowrap}
@media (max-width:620px){.prose table{display:block;overflow-x:auto}}

/* docs: one page, sticky side menu, smooth jumps */
html{scroll-behavior:smooth}
.docgrid{display:grid;grid-template-columns:200px minmax(0,1fr);gap:clamp(20px,3vw,36px);align-items:start;margin-top:clamp(20px,3vw,34px)}
.docgrid .prose{margin-block:0}
.docside{position:sticky;top:80px;max-height:calc(100vh - 96px);overflow-y:auto;font-size:.875rem;padding:4px 0}
.docside .sh{color:var(--ink-3);font-size:.6875rem;letter-spacing:.09em;text-transform:uppercase;font-weight:700;margin:18px 0 6px}
.docside .sh:first-child{margin-top:0}
.docside a{display:block;color:var(--ink-2);text-decoration:none;padding:4px 0 4px 10px;border-left:2px solid transparent;line-height:1.35}
.docside a:hover{color:var(--ink)}
.docside a.active{color:var(--ink);font-weight:700;border-left-color:var(--amber)}
.docbody section{scroll-margin-top:80px}
.docbody section+section{margin-top:clamp(26px,3.2vw,40px);padding-top:clamp(22px,2.8vw,32px);border-top:1px solid var(--line)}
.docbody section>h2{margin-top:0}
.aibar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:2px solid var(--amber);background:var(--surface-2);border-radius:12px;padding:12px 16px;color:var(--ink-2);font-size:.9375rem}
.aibar button{background:var(--ink);color:#fff;border:0;border-radius:999px;padding:7px 18px;font-weight:650;cursor:pointer;font:inherit}
/* minmax(0,1fr), never 1fr: a plain 1fr track grows to the longest code line and widens the
   whole mobile page (it rendered 849px wide on a 375px phone). Long lines scroll inside their block. */
.docgrid>*{min-width:0}
.prose pre{max-width:100%}
@media (max-width:820px){.docgrid{grid-template-columns:minmax(0,1fr)}.docside{position:static;max-height:none;overflow:visible;border-bottom:1px solid var(--line);padding-bottom:12px;columns:2}.docside .sh{break-after:avoid}}
/* a short window: the menu would need its own scrollbar and catch the wheel, so it just scrolls with the page */
@media (max-height:640px){.docside{position:static;max-height:none;overflow:visible}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

table{width:100%;border-collapse:collapse;margin:16px 0 0;font-size:.9375rem}
th,td{text-align:left;padding:12px 14px 12px 0;vertical-align:top}
thead th{
  font-size:.6875rem;letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink-3);font-weight:700;border-bottom:1px solid var(--line-2);padding-bottom:8px;
}
tbody td{border-top:1px solid var(--line);color:var(--ink-2)}
tbody td:first-child{color:var(--ink);font-weight:600}
tbody tr:first-child td{border-top:1px solid var(--line-2)}
td:last-child,th:last-child{padding-right:0}

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

.footer{margin-top:var(--sec);padding-bottom:clamp(28px,4vw,48px)}
.footer__in{max-width:var(--maxw);margin:0 auto;padding-inline:var(--pad)}
.footer__cols{
  background:var(--surface);
  border-radius:var(--r-surface);
  box-shadow:var(--shadow);
  padding:clamp(22px,3vw,36px);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(20px,3vw,40px);
}
.footer h3{
  margin:0 0 12px;font-size:.6875rem;letter-spacing:.11em;text-transform:uppercase;
  color:var(--ink-3);font-weight:700;
}
.footer ul{margin:0;padding:0;list-style:none;display:grid;gap:9px}
.footer a{color:var(--ink-2);font-size:.9375rem;font-weight:500;text-decoration:none}
.footer a:hover{color:var(--ink);text-decoration:underline}
.footer__base{
  margin-top:18px;
  display:flex;gap:14px;justify-content:space-between;flex-wrap:wrap;
  color:var(--ink-amber);font-size:.8125rem;
}

/* ---------- anchors under the sticky nav ---------------------------------- */

[id]{scroll-margin-top:84px}

/* ---------- motion -------------------------------------------------------- */

/* the live badge is the one looping animation: it marks a real state
   (a board that fills from a feed), not decoration. */
@media (prefers-reduced-motion:no-preference){
  .rise{animation:rise .6s cubic-bezier(.16,1,.3,1) both}
  .rise--2{animation-delay:.07s}
  .rise--3{animation-delay:.14s}
  @keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
  .live__dot{animation:pulse 2s cubic-bezier(.16,1,.3,1) infinite}
  @keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
}

/* ---------- responsive ---------------------------------------------------- */

@media (max-width:1000px){
  .panel{grid-template-columns:1fr}
  .panel__main{border-right:0;border-bottom:1px solid var(--line)}
  .closing{grid-template-columns:1fr;gap:24px}
  .points__row{grid-template-columns:1fr;gap:10px}
}

@media (max-width:820px){
  .nav__links{display:none}
  .nav__in{height:58px}
  .brand__mark{width:23px;height:23px}
  .brand__mark svg{width:18px;height:18px}
}

/* narrow: the label takes its own row and the four venue columns stay put, so
   the board still reads as a matrix instead of a long stacked list */
@media (max-width:820px){
  .board__grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .board__label{grid-column:1/-1}
  .board__head{padding:4px 8px;font-size:.5rem;letter-spacing:.04em;line-height:1.2}
  .board__head--label{display:none}
  .board__label{
    background:var(--panel-2);
    padding:4px 12px 3px;
    border-bottom:0;border-top:1px solid var(--panel-line);
    gap:7px;
  }
  .board__grid>.board__row:first-child .board__label{border-top:0}
  .board__cell{padding:5px 12px;gap:9px;justify-content:space-between;flex-wrap:wrap}
  .cell__price{font-size:.875rem}
  .cell__price--none{font-size:.6875rem;font-weight:500}
  .cell__title,.cell__venue{display:none}
  .board__bar{padding:5px 12px;gap:7px}
  .board__event{font-size:.875rem}
  .board__meta{margin-left:0;width:100%;justify-content:space-between}
}

@media (max-width:640px){
  body{font-size:16px}
  .herocard{border-radius:20px}
  .herocard__body{padding:22px 18px 24px}
  .herocard h1{font-size:1.4375rem;letter-spacing:-.03em}
  .herocard,.board{border-radius:20px}
  .board__bar{padding:9px 16px;gap:8px}
  .board__meta,.board__note{margin-left:0}
  .footer__cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer__base{flex-direction:column;gap:6px}
}

/* ---------- white paper on a dull white field ------------------------------ */
/* With the amber field gone the surfaces no longer separate themselves by hue,
   so each one takes a hairline. The shadow stays soft; the line does the edge. */
.herocard,.points,.panel,.closing,.prose,.footer__cols{border:1px solid var(--line)}

/* ---------- pricing: three tiers, one dual path each ----------------------- */
.shell--wide{max-width:960px} /* desktop column matches the 960px site column: empty sides, less eye travel */

.pricing{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-surface);
  padding:clamp(20px,2.8vw,34px);
}
.pricing__head{margin-bottom:clamp(16px,2vw,24px)}
.pricing h2{
  margin:0 0 4px;
  font-size:clamp(1.25rem,1.9vw,1.625rem);
  letter-spacing:-.032em;line-height:1.15;
}
.pricing__head p{margin:0;color:var(--ink-2);font-size:.9375rem;line-height:1.5;max-width:70ch}
.pricing__foot{
  margin:clamp(16px,2vw,22px) 0 0;
  font-size:.8125rem;color:var(--ink-3);line-height:1.5;
}

.tiers{
  display:grid;
  /* Growth is deliberately narrower than its neighbours: a middle step, not a
     full plan card. The narrow column is the whole point of it. */
  grid-template-columns:minmax(0,.78fr) minmax(0,.78fr) minmax(0,1fr) minmax(0,1fr);
  gap:clamp(10px,1.2vw,14px);
}
.tier{
  position:relative;
  display:flex;flex-direction:column;gap:12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-inner);
  padding:clamp(16px,1.9vw,20px);
}
.tier--featured{border-color:var(--line-2);box-shadow:var(--shadow-flat)}
/* the skinny middle step: no description, no feature list, tighter everything */
.tier--skinny{padding:clamp(13px,1.5vw,16px);gap:9px;background:var(--surface-2)}
.tier--skinny .tier__amount{font-size:clamp(1.375rem,1.9vw,1.625rem)}
.tier--skinny .tier__per{font-size:.75rem}
.tier--skinny .tier__specs>div{padding:5px 9px;font-size:.6875rem;grid-template-columns:1fr}
.tier--skinny .tier__specs dt{font-size:.625rem;letter-spacing:.02em}
.tier--skinny .tier__specs dd{text-align:left;font-size:.8125rem}
.tier--skinny .tier__feats{gap:6px}
.tier--skinny .tier__feats li{font-size:.75rem;line-height:1.35}
.tier--skinny .tick{width:12px;height:12px;margin-top:2px}
.tier--skinny .tier__cta{gap:7px}
.tier--skinny .tier__pay{font-size:.75rem}
.tier__badge{
  position:absolute;top:-9px;left:clamp(16px,1.9vw,20px);
  background:var(--ink);color:var(--surface);
  font-size:.5625rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase;
  border-radius:var(--r-chip);padding:3px 7px;line-height:1.3;
}
.tier__name{margin:0;font-size:1rem;font-weight:800;letter-spacing:-.022em}
.tier__desc{margin:0;font-size:.8125rem;color:var(--ink-2);line-height:1.45;min-height:2.9em}
.tier__price{margin:0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.tier__amount{font-size:clamp(1.75rem,2.5vw,2.125rem);font-weight:800;letter-spacing:-.035em;line-height:1}
.tier__per{font-size:.8125rem;color:var(--ink-3)}
.tier__specs{
  margin:0;border:1px solid var(--line);border-radius:var(--r-chip);
  background:var(--surface-2);overflow:hidden;
}
.tier__specs>div{
  display:grid;grid-template-columns:auto 1fr;gap:10px;
  padding:6px 10px;
  font-size:.75rem;
}
.tier__specs>div+div{border-top:1px solid var(--line)}
.tier__specs dt{margin:0;color:var(--ink-3);font-weight:600}
.tier__specs dd{margin:0;text-align:right;font-weight:700;color:var(--ink)}
.tier__feats{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.tier__feats li{display:flex;gap:8px;font-size:.8125rem;color:var(--ink-2);line-height:1.4}
.tick{width:14px;height:14px;flex:none;margin-top:2px;color:var(--ok)}
.tier__cta{margin-top:auto;display:grid;gap:9px;justify-items:stretch}
.tier__btn{width:100%;justify-content:center}
.tier__pay{
  font-size:.8125rem;font-weight:600;text-align:center;color:var(--ink-2);
}

/* ---------- checkout step: opens from a plan, not from the page --------- */
/* A modal dialog, because choosing a plan is the entry point now: the email and
   the payment choice belong to the step after that click, not to the page. */
.checkout{
  width:min(520px, calc(100vw - 32px));
  padding:0;
  border:1px solid var(--line);
  border-radius:var(--r-surface);
  background:var(--surface);
  color:var(--ink);
  box-shadow:0 24px 60px -20px rgba(24,20,10,.45);
}
.checkout::backdrop{background:rgba(20,18,12,.42)}
.checkout__form{padding:clamp(20px,3vw,28px)}
/* .pay sets display:grid, which beats the user agent's [hidden] rule, so the
   attribute has to be enforced here or the payment choice shows on every path */
.checkout__form [hidden]{display:none !important}
.checkout__title{
  margin:0;
  font-size:clamp(1.125rem,1.7vw,1.375rem);
  letter-spacing:-.03em;line-height:1.2;
}
.checkout__sub{margin:6px 0 0;color:var(--ink-2);font-size:.875rem;line-height:1.5}
.checkout__field{margin:clamp(14px,2vw,18px) 0 0}
.checkout__label{
  display:block;margin-bottom:6px;
  font-size:.6875rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink-3);
}
.checkout input[type=email]{
  width:100%;height:46px;padding:0 14px;
  font:inherit;font-size:.9375rem;color:var(--ink);
  background:var(--surface);
  border:1px solid var(--field-line);
  border-radius:var(--r-inner);
}
.checkout textarea{
  width:100%;min-height:84px;padding:10px 14px;resize:vertical;
  font:inherit;font-size:.9375rem;line-height:1.45;color:var(--ink);
  background:var(--surface);
  border:1px solid var(--field-line);
  border-radius:var(--r-inner);
}
.checkout textarea::placeholder{color:var(--ink-3);opacity:1}
.checkout textarea:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.checkout input[type=email]::placeholder{color:var(--ink-3);opacity:1}
.checkout input[type=email]:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.checkout__form.is-invalid input[type=email]{border-color:#b3261e}

.pay{margin:clamp(14px,2vw,18px) 0 0;padding:0;border:0;display:grid;gap:8px}
.pay__legend{
  padding:0 0 6px;
  font-size:.6875rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink-3);
}
.pay__opt{
  display:flex;gap:10px;align-items:flex-start;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:var(--r-inner);
  cursor:pointer;
}
.pay__opt:hover{border-color:var(--line-2)}
.pay__opt:has(input:checked){border-color:var(--ink);background:var(--surface-2)}
.pay__opt:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}
.pay__opt input{margin:2px 0 0;accent-color:#0b0b0c;flex:none}
.pay__body{display:grid;gap:2px}
.pay__body b{font-size:.875rem;font-weight:700}
.pay__body span{font-size:.8125rem;color:var(--ink-2);line-height:1.45}

.checkout__actions{
  margin:clamp(14px,2vw,18px) 0 0;
  display:flex;gap:8px;align-items:center;
}
.checkout__go{flex:1 1 auto;height:44px}
.btn--plain{
  background:transparent;border:1px solid var(--line-2);color:var(--ink);
  height:44px;padding:0 16px;
}
.checkout__status{margin:10px 0 0;font-size:.8125rem;font-weight:700;min-height:1.2em;line-height:1.4}
.checkout__status.is-ok{color:#12703f}
.checkout__status.is-err{color:#b3261e}

/* the "pay now" line under each button is an action, so it is a button too */
.tier__pay{
  background:none;border:0;padding:0;cursor:pointer;
  font:inherit;font-size:.8125rem;font-weight:600;color:var(--ink-2);
  text-decoration:underline;text-underline-offset:3px;
  justify-self:center;
}
.tier__pay:hover{color:var(--ink)}

@media (max-width:900px){
  .tiers{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .tiers{grid-template-columns:1fr}
  .tier__desc{min-height:0}
}
@media (max-width:640px){
  .tier__badge{left:16px}
  .checkout__actions{flex-direction:column;align-items:stretch}
}

/* ---------- narrow screens: the prompt row and the venue header ---------- */
/* Why: below ~820px the venue name had `overflow-wrap:anywhere` inside an ~85px
   cell, so it stacked one character per line. Logos carry the header on a phone;
   the name survives as the image alt text, and the board never grows taller. */
@media (max-width:820px){
  .board__head{padding:5px 6px;font-size:.5625rem;letter-spacing:.03em}
  .vhead{justify-content:center;gap:5px;min-width:0}
  .vhead__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* the pulsing dot was the "flashing live" reading; the dot is status, not a beacon */
  .live__dot{animation:none}
}
@media (max-width:560px){
  .vhead__name{display:none}
  .board__head{padding:7px 4px}
  .vhead{gap:4px}
  .vlogo img{width:19px;height:19px}
  .vhead__tag{font-size:.5625rem;padding:1px 4px}
  /* the prompt: one full-width row, the link on its own line instead of a ragged wrap */
  .paste{flex-direction:column;align-items:stretch;gap:9px}
  .paste__box{display:flex;width:100%;justify-content:space-between;gap:8px;padding:4px 5px 4px 12px}
  .paste__text{font-size:.8125rem}
  .paste__copy{height:30px;padding:0 14px;margin-left:0}
  .paste__docs{align-self:flex-start}
}

/* on the smallest phones the prompt line and its button still fit one row if
   the type steps down once, rather than the button dropping under the text */
@media (max-width:420px){
  .paste__box{padding:4px 4px 4px 11px}
  .paste__text{font-size:.75rem;letter-spacing:-.01em}
  .paste__logos svg{width:13px;height:13px}
  .paste__copy{height:26px;padding:0 11px;font-size:.625rem}
}
