/* Revv's website. Every colour, face, size and radius is the app's own, from
   revv-mobile/lib/design/tokens.dart and widgets.dart. The site adds room, not a new look. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* RC */
  --ground: #f2f1f6;
  --card: #ffffff;
  --ink: #17141f;
  --ink-2: #5a5666;
  --ink-3: #8f8b9b;
  --line: #e4e2ec;
  --well: #f6f5f9;
  --spare: #ffe27a;
  --tech: #dccbff;
  --mind: #ffc4c9;
  --tour: #bdebd9;
  --go: #3ddc84;
  --go-deep: #12a150;
  --miss: #ff8f8f;
  --up: #006300;
  --down: #b42318;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --on-block: rgba(255, 255, 255, 0.6);
  --pip-empty: rgba(23, 20, 31, 0.1);

  /* RS */
  --gutter: 18px;
  --radius: 22px;
  --tile-radius: 18px;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;

  --page: 1120px;
  --side: 32px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-optical-sizing: auto; }

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

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

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.h1 {
  font-family: var(--display);
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.h2 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.num {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tab-figs { font-variant-numeric: tabular-nums; }

/* The site's own sizes: the app's faces and tracking, larger. */
.display-xl {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 78px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.display-l {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.45; color: var(--ink-2); max-width: 36em; }
.lede strong { color: var(--ink); font-weight: 700; }

/* ---------- the kit ---------- */

.card { background: var(--card); border-radius: var(--radius); padding: 16px; }
.block { border-radius: var(--radius); padding: 18px; }
.block.spare { background: var(--spare); }
.block.tech { background: var(--tech); }
.block.mind { background: var(--mind); }
.block.tour { background: var(--tour); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--card);
  font: 700 16px/1.2 var(--body);
  padding: 15px 22px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn:focus-visible, .chip:focus-visible, .seg button:focus-visible, .pin:focus-visible, .field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.link { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 999px;
  background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: 600 14px/1.2 var(--body);
  padding: 9px 14px;
  cursor: pointer; white-space: nowrap;
}
.chip.sm { padding: 7px 12px; font-size: 13px; }
.chip.on { background: var(--ink); color: var(--card); box-shadow: none; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; background: var(--well);
  font-size: 12px; font-weight: 600; line-height: 1.2;
  padding: 5px 10px; white-space: nowrap;
}
.tag.on-block { background: var(--on-block); }
.tag.dark { background: var(--ink); color: var(--card); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 6px 12px;
  font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap;
}
.pill.tour { background: var(--tour); }
.pill.spare { background: var(--spare); }
.pill.tech { background: var(--tech); }
.pill.mind { background: var(--mind); }
.pill.well { background: var(--well); }
.pill.dark { background: var(--ink); color: var(--card); }
.pill.outline { box-shadow: inset 0 0 0 1.5px var(--line); }
.pill .arrow { font-weight: 500; }

.seg {
  display: flex; gap: 0; padding: 4px;
  background: var(--well); border-radius: 999px;
}
.seg button {
  flex: 1; border: 0; background: transparent; border-radius: 999px;
  font: 600 14px/1.2 var(--body); color: var(--ink-2);
  padding: 9px 12px; cursor: pointer; white-space: nowrap;
}
.seg button[aria-pressed="true"], .seg button.on { background: var(--card); color: var(--ink); }

.tile { background: var(--card); border-radius: var(--tile-radius); padding: 12px; }
.tile .label { font-size: 14px; color: var(--ink); }
.tile .value { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 4px; }
.tile .sub { font-size: 13px; color: var(--ink-2); }

.meter { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; padding: 7px 0; }
.meter .track { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter .fill { height: 100%; border-radius: 999px; background: var(--ink); width: var(--w); transition: width 1s cubic-bezier(.2,.7,.2,1) .15s; }
.meter .val { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.meter .val span { color: var(--ink-3); font-weight: 500; }

.ring { position: relative; width: 84px; height: 84px; }
.ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring .arc { stroke-dasharray: var(--a) 241.9; transition: stroke-dasharray 1.1s cubic-bezier(.2,.7,.2,1) .15s; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 22px/1 var(--display); letter-spacing: -0.03em; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--card);
  display: grid; place-items: center;
  font: 700 18px/1 var(--display);
}

.ball {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #4a4658 0%, var(--ink) 70%);
  color: var(--card); display: grid; place-items: center;
  font: 700 12px/1 var(--display); letter-spacing: 0;
}
.ball.sm { width: 20px; height: 20px; font-size: 8px; }

.rule-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rule-row:first-child { border-top: 0; padding-top: 0; }

/* rep strip: made ink, missed a miss ring, not yet bowled ink at 10% */
.strip { display: grid; grid-template-columns: auto repeat(10, 1fr); gap: 6px 6px; align-items: center; }
.strip .lab { font-size: 12px; font-weight: 600; color: var(--ink-2); padding-right: 4px; }
.dot { width: 100%; max-width: 26px; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.dot.miss { background: var(--card); box-shadow: inset 0 0 0 3px var(--miss); }
.dot.empty { background: var(--pip-empty); }

/* scorecard */
.scorecard { display: grid; grid-template-columns: repeat(9, 1fr) 1.5fr; gap: 4px; }
.frame { background: var(--well); border-radius: 8px; padding: 6px 2px 5px; text-align: center; min-width: 0; }
.on-block .frame, .frame.on-block { background: var(--on-block); }
.frame .marks { font: 700 12px/1.1 var(--body); letter-spacing: 0.02em; display: flex; justify-content: center; gap: 4px; }
.frame .marks .split { display: inline-grid; place-items: center; width: 17px; height: 17px; margin: -2px -1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--miss); }
.frame .marks .nopocket { color: var(--ink-3); }
.frame .run { font-size: 12px; color: var(--ink-2); margin-top: 3px; font-variant-numeric: tabular-nums; }
.frame.now { box-shadow: inset 0 0 0 2px var(--ink); }
.racks { display: grid; grid-template-columns: repeat(9, 1fr) 1.5fr; gap: 4px; margin-bottom: 4px; }
.rack { display: flex; justify-content: center; height: 22px; }
.rack svg { height: 22px; width: auto; }

/* ---------- page furniture ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 241, 246, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top nav a.btn { color: var(--card); }
.top .btn { padding: 10px 18px; font-size: 14px; }

.wordmark {
  display: inline-flex; align-items: baseline; text-decoration: none;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink);
}
.wordmark svg { width: 0.5em; height: 0.5em; margin-left: 0.06em; display: inline-block; }

section { scroll-margin-top: 80px; }
.section { padding: 112px 0 0; }
.section-head { max-width: 760px; }
.section-head .eyebrow { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-head .eyebrow i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.section-head .lede { margin-top: 18px; }

/* hero */
.hero { padding: 56px 0 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 18px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.hero .note i { width: 9px; height: 9px; border-radius: 50%; background: var(--go); display: inline-block; }

/* a phone: the app at 360 wide, inside an ink edge */
.phone {
  width: 360px; max-width: 100%;
  border-radius: 46px;
  background: var(--ink);
  padding: 9px;
  margin: 0 auto;
}
.phone .screen {
  background: var(--ground);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
}
.phone .status { height: 30px; display: flex; justify-content: space-between; align-items: center; padding: 6px 26px 0; font-size: 12px; font-weight: 700; }
.phone .status .dots { display: flex; gap: 4px; align-items: center; }
.phone .status .dots span { width: 15px; height: 9px; border-radius: 3px; background: var(--ink); opacity: 0.85; }
.phone .status .dots span:first-child { width: 12px; border-radius: 6px 6px 2px 2px; }
.phone .body { padding: 8px var(--gutter) 18px; }

.page-top { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.circle-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  display: grid; place-items: center; flex: none;
}

/* throw page, as in the app */
.throw { display: grid; grid-template-columns: 1fr 128px; gap: 12px; align-items: stretch; }
.throw .lanecard { background: var(--card); border-radius: var(--radius); padding: 8px 6px; }
.figs { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.fig .k { font-size: 13px; }
.fig .v { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; line-height: 1.05; margin: 2px 0 1px; font-variant-numeric: tabular-nums; }
.fig .v small { font-size: 0.62em; letter-spacing: -0.01em; }
.fig .s { font-size: 12px; color: var(--ink-2); line-height: 1.3; }

.lane-svg { width: 100%; height: auto; overflow: visible; }

/* ---------- shot tracker ---------- */

.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 48px; }
.feature { padding: 26px; }
.feature .h1 { margin: 12px 0 10px; }
.feature p { color: var(--ink-2); font-size: 16px; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; }
.feature li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.feature li span:last-child { color: var(--ink-2); text-align: right; }

.st-live { margin-top: 48px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.lanecard.tall { background: var(--card); border-radius: var(--radius); padding: 14px 12px; justify-self: center; }
.lanecard.tall svg { height: 640px; width: auto; max-width: none; }
.st-live .lanecard.tall { align-self: start; }
.lanecard.tall.short svg { height: 600px; }
.st-side .st-grid { margin-top: 0; }
.st-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.st-side .card { padding: 22px; }
.st-figs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.st-figs .fig .v { font-size: 30px; }
.st-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.st-controls .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-controls .seg { min-width: 220px; }

.quote { padding: 28px; }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.1vw, 25px); letter-spacing: -0.02em; line-height: 1.25; }
.quote .who { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.quote .who .avatar { width: 30px; height: 30px; font-size: 14px; }

.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.uses .card { padding: 22px; }
.uses .h2 { margin: 10px 0 8px; }
.uses p { color: var(--ink-2); }

.shape { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.shape .card { padding: 22px; }

/* ---------- why ---------- */

/* Each row: the old steps appear, get struck through, then Revv's one step lands. */
.before-after { display: grid; gap: 14px; margin-top: 44px; }
.ba {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 28px 230px; align-items: center; gap: 16px;
  background: var(--card); border-radius: var(--radius); padding: 20px 22px;
}
.ba .was { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.ba .was span {
  position: relative; display: inline-flex; align-items: center;
  border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: opacity .35s ease, transform .35s ease, color .3s ease;
  transition-delay: calc(var(--i, 0) * 260ms + var(--j, 0) * 110ms);
}
.ba .was span::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--miss);
  transform: scaleX(1); transform-origin: left center; transition: transform .35s ease;
  transition-delay: calc(var(--i, 0) * 260ms + 650ms + var(--j, 0) * 60ms);
}
.ba .was span { color: var(--ink-3); }
.ba .arrow { font: 700 22px/1 var(--display); color: var(--ink-3); text-align: center; }
.ba .now .pill { font-size: 15px; padding: 10px 16px; transition: opacity .35s ease, transform .45s cubic-bezier(.3,1.5,.5,1); transition-delay: calc(var(--i, 0) * 260ms + 1050ms); }

/* ---------- compete ---------- */

/* The words sit level with the top of their picture and stay in view beside a tall one. */
.row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; margin-top: 96px; }
.row .copy { position: sticky; top: 110px; padding-top: 18px; max-width: 30em; }
.row.flip > :first-child { order: 2; }
.row .copy .h1 { margin: 10px 0 12px; }
.row .copy .keys { margin-top: 20px; }
.row .copy p { color: var(--ink-2); font-size: 16px; }
.row .copy p + p { margin-top: 12px; }
.row .copy .quote-inline { margin-top: 22px; padding-left: 14px; border-left: 3px solid var(--tour); color: var(--ink); font-size: 15.5px; }
.row .copy .quote-inline span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); }

.deck-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 4px; }
.deck { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.deck .r { display: flex; gap: 10px; }
.pin {
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  font: 700 18px/1 var(--display); color: var(--ink-3); cursor: pointer;
  transition: transform 0.1s;
}
.pin:active { transform: scale(0.94); }
.pin.up { background: var(--ink); color: var(--card); box-shadow: none; }
.deck-hint { font-size: 13px; color: var(--ink-2); text-align: center; }
.deck-chips { display: flex; gap: 8px; justify-content: center; }
.deck-chips .chip { cursor: default; }
.tap-pair { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 14px; }
.tap-pair button {
  border: 0; border-radius: 26px; padding: 18px 10px;
  font: 700 22px/1 var(--display); letter-spacing: -0.02em; cursor: pointer;
}
.tap-pair .neg { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.tap-pair .pos { background: var(--ink); color: var(--card); }
.tap-pair .pos.strike { background: var(--go); color: var(--ink); }
.undo-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

.notes-card { padding: 18px; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.qnote { display: grid; grid-template-columns: 50px 1fr; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.qnote:first-of-type { border-top: 0; padding-top: 4px; }
.qnote .time { font-size: 14px; color: var(--ink-2); padding-top: 6px; }
.qnote .time small { display: block; font-size: 12px; color: var(--ink-3); }
.frames { display: flex; align-items: center; gap: 10px; }
.fbox { width: 66px; border-radius: 12px; background: var(--well); padding: 7px 6px 7px; text-align: center; }
.fbox .w { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.fbox .m { font: 700 14px/1 var(--body); margin-top: 4px; letter-spacing: 0.04em; }
.fbox svg { height: 22px; margin: 5px auto 0; }
.fbox.after { background: var(--ink); color: var(--card); }
.fbox.after .w { color: var(--ink-3); }
.fbox.after .pad { background: var(--card); border-radius: 7px; padding: 3px 0; margin-top: 5px; }
.fbox.after .pad svg { margin-top: 0; }
.frames .to { color: var(--ink-3); }
.qnote .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qnote .words { margin-top: 10px; font-size: 14.5px; }

.ballpage { padding: 18px; }
.ballhead { display: flex; align-items: center; gap: 14px; }
.ballhead .ball { width: 56px; height: 56px; font-size: 17px; }
.ballhead .h1 { font-size: 26px; }
.list-title { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 8px; }
.mini-note { background: var(--well); border-radius: 16px; padding: 12px 14px; }
.mini-note + .mini-note { margin-top: 8px; }
.mini-note .eyebrow { font-size: 11px; }
.mini-note p { margin-top: 4px; font-size: 14px; }
.ref { display: inline-flex; background: var(--ink); color: var(--card); border-radius: 999px; padding: 1px 8px; font-size: 12.5px; font-weight: 700; }

.summary { padding: 20px; }
.summary .title { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin: 6px 0 10px; }
.summary .hd { font-size: 13px; font-weight: 700; margin-top: 12px; }
.summary ul { margin: 6px 0 0; padding: 0; list-style: none; }
.summary li { position: relative; padding-left: 16px; margin-top: 6px; font-size: 15px; }
.summary li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.summary .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.stats-wrap { margin-top: 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.stats-wrap .tiles { grid-column: span 12; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stats-wrap .tiles .tile { padding: 18px; border-radius: var(--radius); }
.stats-wrap .tiles .value { font-size: clamp(34px, 4vw, 48px); }
.stats-wrap .firstball { grid-column: span 5; padding: 22px; }
.stats-wrap .spares { grid-column: span 7; padding: 22px; }
.stats-wrap .bymq { grid-column: span 12; padding: 22px; }
.rings { display: flex; justify-content: space-around; gap: 10px; margin-top: 18px; text-align: center; }
.rings .k { font-weight: 700; margin-top: 8px; }
.rings .s { font-size: 13px; color: var(--ink-2); }
.table { width: 100%; border-collapse: collapse; margin-top: 14px; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: right; padding: 11px 8px; border-top: 1px solid var(--line); font-size: 15px; }
.table th { font-size: 13px; font-weight: 600; color: var(--ink-2); border-top: 0; }
.table td:first-child, .table th:first-child { text-align: left; padding-left: 0; }
.table td:last-child, .table th:last-child { padding-right: 0; }
.table .gamecells { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table .gamecells span { background: var(--well); border-radius: 8px; padding: 3px 7px; font-size: 13px; font-weight: 600; }
.table .gamecells span.hi { background: var(--ink); color: var(--card); }

/* ---------- also in revv ---------- */

.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }

/* Locker: the shape map as the app draws it, with the ball picked beside it and the whole arsenal under */
.locker { margin-top: 48px; padding: 26px; }
.locker-head { max-width: 40em; }
.locker-head .h1 { margin: 12px 0 8px; }
.locker-head p { color: var(--ink-2); }
.locker-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; margin-top: 24px; }
.locker .map { max-width: 440px; aspect-ratio: auto; width: 100%; }
.locker .map svg { width: 100%; height: auto; overflow: visible; }
.map .b { cursor: pointer; outline: none; }
.map .b:focus-visible .ring-focus { stroke: var(--ink); }
.picked { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.picked .h1 { font-size: 28px; }
.ball.lg { width: 72px; height: 72px; }
.locker-side .meter, .ballshape .meter { grid-template-columns: 70px 1fr 28px; }
.locker-side .meter .val, .ballshape .meter .val { text-align: right; }
.proposed { color: var(--ink-2); min-height: 1.3em; margin-top: 6px; }
[data-b="proposed"] { margin: 0 0 4px; }
.arsenal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.arsenal button { border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; aspect-ratio: 1; transition: transform .1s; }
.arsenal button:active { transform: scale(0.94); }
.arsenal button img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.arsenal button.on { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.arsenal button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img.ball { background: none; object-fit: cover; display: block; }
.ballshape { margin-top: 12px; }
.locker .map > circle { transition: cx .25s ease, cy .25s ease, opacity .3s ease 1.2s; }
.js .locker:not(.in) .map > circle { opacity: 0; }
.more { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.more .h1 { font-size: 26px; }
.more p { color: var(--ink-2); }
.more .demo { margin: auto 0; }
.more .demo.map { margin: auto; width: 100%; }
.bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; height: 132px; }
.bars .col { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; }
.bars .pair { display: flex; gap: 5px; align-items: flex-end; justify-content: center; height: 100%; }
.bars .bar { width: 14px; border-radius: 7px 7px 0 0; height: var(--h); transition: height .9s cubic-bezier(.2,.7,.2,1); }
.bars .col:nth-child(2) .bar { transition-delay: .12s; }
.bars .col:nth-child(3) .bar { transition-delay: .24s; }
.bars .m { text-align: center; font-size: 12px; color: var(--ink-3); }
.legend span { white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; row-gap: 4px; gap: 16px; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.sync { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.sync i { width: 9px; height: 9px; border-radius: 50%; background: var(--go); display: inline-block; }

.map { position: relative; aspect-ratio: 1.15; }
.map svg { width: 100%; height: 100%; }

/* ---------- founder ---------- */

.founder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.founder .photo { padding: 0; overflow: hidden; position: relative; }
.founder .photo img { width: 100%; height: 600px; object-fit: cover; object-position: center top; }
.founder .photo .badge { position: absolute; left: 16px; bottom: 16px; }
.founder-side .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.founder-side .eyebrow i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.founder-side .lede { margin-top: 14px; }
.timeline { list-style: none; margin: 30px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding: 0 0 18px 30px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2.5px var(--ink); }
.timeline li.now::before { background: var(--go); box-shadow: none; }
.timeline b { font: 700 18px/1 var(--display); letter-spacing: -0.02em; width: 44px; }
.timeline span:not(.tag) { font-weight: 600; }
.timeline .tags { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding-left: 56px; }
.timeline .tag { white-space: normal; }
.founder .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.map { max-width: 360px; }
.toast { background: var(--ink); color: var(--card); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; }

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

.closing { margin-top: 112px; }
.closing .card { padding: clamp(28px, 5vw, 56px); text-align: center; }
.closing h2 { max-width: 15em; margin: 14px auto 0; }
.closing .lede { margin: 16px auto 0; }
.waitlist { display: flex; gap: 10px; max-width: 480px; margin: 30px auto 0; }
.field { flex: 1; }
.field input {
  width: 100%; height: 52px; border: 0; border-radius: 999px;
  background: var(--well); box-shadow: inset 0 0 0 1.5px var(--line);
  padding: 0 20px; font: 500 16px var(--body); color: var(--ink);
}
.field input::placeholder { color: var(--ink-3); }
.waitlist .btn { flex: none; }
.done { margin: 30px auto 0; display: none; max-width: 420px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--ink-2); min-height: 1.3em; margin: 10px auto 0; }
.form-error:empty { min-height: 0; margin: 0; }
.done.show { display: block; }
.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stores .tag { padding: 7px 12px; font-size: 13px; }

footer { padding: 72px 0 48px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer .small { color: var(--ink-3); }

/* ---------- pieces that replace words ---------- */

.how { list-style: none; margin: 0; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 14px; }
.how .ico { background: var(--well); }
.how li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.how li.to { color: var(--ink-3); font: 700 20px/1 var(--display); }
.how .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.how .ico.go { background: var(--go); }
.how .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.how .ico svg .f { fill: var(--ink); stroke: none; }
.how .ico svg .o { stroke-width: 2.6; }

#st-panel .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sell { padding: 22px; display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; }
.st-live { align-items: stretch; }
.st-live .two { flex: 1; }
.sell .tag { align-self: flex-start; }
.sell .h1 { font-size: 26px; }
.sell p, .uses p { margin-top: 8px; font-size: 14.5px; line-height: 1.4; }
.shape .card p.muted { max-width: 34em; }
.stats-head p { margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 34em; }
.more .h1 + p { margin-top: -6px; }
.caption { font-size: 13px; color: var(--ink-3); }

.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 0; }
.uses .block { padding: 18px; display: flex; flex-direction: column; gap: 14px; justify-content: flex-start; }
.uses .tag { align-self: flex-start; }

.legend i.band { width: 18px; height: 10px; border-radius: 3px; background: rgba(235, 104, 52, 0.18); vertical-align: -1px; }
.legend i.line { width: 18px; height: 3px; border-radius: 2px; background: var(--series-2); vertical-align: 2px; }

.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.keys .chip { cursor: default; }
.key { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-right: 10px; }
.key i { width: 14px; height: 14px; border-radius: 50%; display: inline-grid; place-items: center; }
.key .k-picked { background: var(--go-deep); }
.key .k-left { box-shadow: inset 0 0 0 2px var(--ink); }
.key .k-split { width: 20px; height: 20px; box-shadow: inset 0 0 0 1.5px var(--miss); font: 700 11px/1 var(--body); font-style: normal; }

.flowline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.flowline .dash { width: 26px; height: 2px; background: var(--ink-3); border-radius: 2px; }
.fbox.mini { width: auto; padding: 8px 12px; display: inline-flex; background: var(--card); }
.fbox.mini.after { background: var(--ink); }
.copy .pill.well, .copy .pill.outline { background: var(--card); }
.fbox.mini b { font-size: 13px; }

.stack { display: grid; gap: 20px; }
.stats-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-top: 88px; }
.stats-head .h1 { margin-top: 10px; }
.stats-head .tag { font-size: 13px; padding: 7px 12px; background: var(--card); }

.toast-row { display: flex; justify-content: center; margin-top: 16px; }
.offline .sync i { background: var(--spare); transition: background .3s; }
.offline.synced .sync i { background: var(--go); }

/* ---------- motion ----------
   Everything is drawn in its final state; only with scripts on does a part start hidden and come in
   when it scrolls into view. Short and eased, like the app's own taps. */

.js [data-reveal] { transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal]:not(.in) { opacity: 0; transform: translateY(22px); }

.js [data-stagger] > * { transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
.js [data-stagger]:not(.in) > * { opacity: 0; transform: translateY(8px) scale(0.97); }
.js .racks[data-stagger] > *, .js .scorecard[data-stagger] > * { transition-delay: calc(var(--i, 0) * 110ms + 200ms); }

.js [data-reveal]:not(.in) .fill { width: 0; }
.js [data-reveal]:not(.in) .arc { stroke-dasharray: 0 241.9; }
.js [data-reveal]:not(.in) .bar { height: 0; }

.js .ba:not(.in) .was span { opacity: 0; transform: translateY(6px); color: var(--ink-2); }
.js .ba:not(.in) .was span::after { transform: scaleX(0); }
.js .ba:not(.in) .now .pill { opacity: 0; transform: scale(0.6); }

.strip .dot { transition: transform .3s cubic-bezier(.3,1.5,.5,1); transition-delay: calc(var(--i, 0) * 45ms + 200ms); }
.js [data-reveal]:not(.in) .strip .dot { transform: scale(0); }
.goal { transition: opacity .3s, transform .4s cubic-bezier(.3,1.5,.5,1); transition-delay: 1.3s; }
.js [data-reveal]:not(.in) .goal { opacity: 0; transform: scale(0.6); }

.map .balls > g { transform-box: fill-box; transform-origin: center; transition: opacity .3s, transform .4s cubic-bezier(.3,1.5,.5,1); transition-delay: calc(var(--i, 0) * 80ms + 200ms); }
.js [data-reveal]:not(.in) .map .balls > g { opacity: 0; transform: scale(0.3); }

.toast { transition: opacity .35s, transform .45s cubic-bezier(.2,.7,.2,1); }
.js .offline:not(.synced) .toast { opacity: 0; transform: translateY(14px); }

.timeline li { transition: opacity .4s ease, transform .4s ease; }

.pin.tapped { transform: scale(0.88); }
.tap-pair button { transition: transform .1s; }
.tap-pair button.tapped { transform: scale(0.96); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- privacy page ---------- */

.doc { max-width: 720px; padding-top: 48px; }
.doc h1 { margin: 12px 0 14px; }
.doc .card { padding: 26px; margin-top: 20px; }
.doc .card h2 { margin-bottom: 10px; }
.doc .card p, .doc .card li { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.doc .card p + p { margin-top: 10px; }
.doc .card ul { margin: 8px 0 0; padding-left: 20px; }
.doc .card li + li { margin-top: 6px; }
.doc .card strong { color: var(--ink); }

/* ---------- smaller screens ---------- */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .st-grid, .shape, .founder, .more-grid { grid-template-columns: 1fr; }
  .st-live { grid-template-columns: 1fr; }
  .shape > .lanecard { order: -1; }
  .lanecard.tall svg, .lanecard.tall.short svg { height: 600px; }
  .ba { grid-template-columns: 1fr; gap: 12px; }
  .ba .arrow { display: none; }
  .founder { gap: 28px; }
  .locker-body { grid-template-columns: 1fr; gap: 28px; }
  .locker .map { margin: 0 auto; }
  .founder .photo img { height: 460px; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 28px; margin-top: 72px; }
  .row.flip > :first-child { order: 0; }
  .row .copy { position: static; padding-top: 0; }
  .stats-wrap .firstball, .stats-wrap .spares { grid-column: span 12; }
  .top nav a:not(.btn) { display: none; }
}

@media (max-width: 640px) {
  .arsenal { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  :root { --side: 16px; }
  .section { padding-top: 84px; }
  .hero { padding-top: 28px; }
  .st-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .st-figs .fig .v { font-size: 24px; white-space: nowrap; }
  .stats-wrap .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stats-wrap .tiles .tile { padding: 12px; }
  .stats-wrap .tiles .value { font-size: 26px; }
  .stats-wrap .tiles .label { font-size: 13px; }
  .waitlist { flex-direction: column; }
  .uses, .two { grid-template-columns: 1fr; }
  .uses .block, .sell { min-height: 0; gap: 12px; }
  .how .to { display: none; }
  .founder .photo img { height: 420px; }
  .meter { grid-template-columns: 80px 1fr auto; gap: 10px; }
  .table .gamecells { display: none; }
  .phone { border-radius: 40px; padding: 7px; }
  .phone .screen { border-radius: 33px; }
  .pin { width: 46px; height: 46px; font-size: 16px; }
  .throw { grid-template-columns: 1fr 112px; }
  .lanecard.tall svg, .lanecard.tall.short svg { height: 480px; }
}
