:root {
  --surface-0: #f4f5f7;
  --surface-1: #ffffff;
  --surface-2: #eef0f3;
  --surface-3: #e3e6ec;
  --line: rgba(16,19,24,0.08);
  --line-strong: rgba(16,19,24,0.15);
  --ink: #101318;
  --ink-muted: #59616d;
  --ink-faint: #6f7782;
  --signal: #c8202f;
  --signal-ink: #ffffff;
  --signal-soft: rgba(200,32,47,0.10);
  --signal-text: #bf1f2d;
  --hit: #157a43;
  --hit-soft: rgba(21,122,67,0.10);
  --miss: #b2321f;
  --miss-soft: rgba(178,50,31,0.10);
  --pr: #8a6400;
  --pr-soft: rgba(138,100,0,0.10);
  --deload: #2448a8;
  --deload-soft: rgba(36,72,168,0.10);
  --focus: #1f4fbf;
  --glass: rgba(255,255,255,0.8);
  --surface-island: #0b0d10;
  --ink-island: #f1f3f6;
  --graphite: #20252c;
  --plate-red: #e5323b;
  --plate-blue: #4f7ff0;
  --plate-yellow: #f2c234;
  --plate-green: #2fa866;
  --plate-white: #e9ecf0;
  --plate-iron: #8b929c;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-btn: 16px;
  --radius-pill: 999px;
  --radius-xl: 24px;
  --radius-dock: 26px;
  --radius-sheet: 28px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-14: 56px;
  --tap-min: 48px;
  --row-min: 64px;
  --button-lg: 56px;
  --icon: 22px;
  --shadow-raised: 0 1px 2px rgba(16,19,24,0.05), 0 10px 28px rgba(16,19,24,0.09);
  --shadow-sheet: 0 -10px 40px rgba(16,19,24,0.14);
  --font-display: "Barlow Condensed";
  --font-sans: "IBM Plex Sans";
  --font-mono: "IBM Plex Mono";
  --numeral-style: tabular-nums;
  --numeral-hero-font-family: var(--font-display);
  --numeral-hero-font-size: 92px;
  --numeral-hero-line-height: 84px;
  --numeral-hero-font-weight: 600;
  --numeral-hero-font-variant-numeric: tabular-nums;
  --numeral-xl-font-family: var(--font-display);
  --numeral-xl-font-size: 56px;
  --numeral-xl-line-height: 56px;
  --numeral-xl-font-weight: 600;
  --numeral-xl-font-variant-numeric: tabular-nums;
  --numeral-lg-font-family: var(--font-display);
  --numeral-lg-font-size: 28px;
  --numeral-lg-line-height: 28px;
  --numeral-lg-font-weight: 600;
  --numeral-lg-font-variant-numeric: tabular-nums;
  --title-lg-font-family: var(--font-display);
  --title-lg-font-size: 34px;
  --title-lg-line-height: 36px;
  --title-lg-font-weight: 700;
  --title-lg-font-variant-numeric: tabular-nums;
  --title-lg-text-transform: none;
  --title-md-font-family: var(--font-display);
  --title-md-font-size: 24px;
  --title-md-line-height: 28px;
  --title-md-font-weight: 700;
  --title-md-font-variant-numeric: tabular-nums;
  --title-md-text-transform: none;
  --body-lg-font-family: var(--font-sans);
  --body-lg-font-size: 17px;
  --body-lg-line-height: 26px;
  --body-lg-font-weight: 400;
  --body-font-family: var(--font-sans);
  --body-font-size: 15px;
  --body-line-height: 22px;
  --body-font-weight: 400;
  --body-strong-font-family: var(--font-sans);
  --body-strong-font-size: 15px;
  --body-strong-line-height: 22px;
  --body-strong-font-weight: 600;
  --section-font-family: var(--font-sans);
  --section-font-size: 13px;
  --section-line-height: 18px;
  --section-font-weight: 600;
  --caption-font-family: var(--font-sans);
  --caption-font-size: 13px;
  --caption-line-height: 18px;
  --caption-font-weight: 400;
  --micro-font-family: var(--font-sans);
  --micro-font-size: 11px;
  --micro-line-height: 14px;
  --micro-font-weight: 600;
  --data-font-family: var(--font-mono);
  --data-font-size: 14px;
  --data-line-height: 20px;
  --data-font-weight: 500;
}
@media (prefers-color-scheme: dark) {:root {
  --surface-0: #0b0d10;
  --surface-1: #14171c;
  --surface-2: #1c2027;
  --surface-3: #252a33;
  --line: rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.13);
  --ink: #f1f3f6;
  --ink-muted: #9aa3b0;
  --ink-faint: #79828e;
  --signal: #ff4b55;
  --signal-ink: #0b0d10;
  --signal-soft: rgba(255,75,85,0.14);
  --signal-text: #ff5a63;
  --hit: #3dd68c;
  --hit-soft: rgba(61,214,140,0.14);
  --miss: #ff8a75;
  --miss-soft: rgba(255,138,117,0.14);
  --pr: #f5c542;
  --pr-soft: rgba(245,197,66,0.14);
  --deload: #86a8ff;
  --deload-soft: rgba(134,168,255,0.14);
  --focus: #86a8ff;
  --glass: rgba(20,23,28,0.74);
  --surface-island: #0b0d10;
  --ink-island: #f1f3f6;
  --graphite: #262b33;
  --plate-red: #e5323b;
  --plate-blue: #4f7ff0;
  --plate-yellow: #f2c234;
  --plate-green: #2fa866;
  --plate-white: #e9ecf0;
  --plate-iron: #8b929c;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-btn: 16px;
  --radius-pill: 999px;
  --radius-xl: 24px;
  --radius-dock: 26px;
  --radius-sheet: 28px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-14: 56px;
  --tap-min: 48px;
  --row-min: 64px;
  --button-lg: 56px;
  --icon: 22px;
  --shadow-raised: 0 1px 0 rgba(255,255,255,0.04) inset, 0 10px 28px rgba(0,0,0,0.42);
  --shadow-sheet: 0 -10px 40px rgba(0,0,0,0.5);
  --font-display: "Barlow Condensed";
  --font-sans: "IBM Plex Sans";
  --font-mono: "IBM Plex Mono";
  --numeral-style: tabular-nums;
  --numeral-hero-font-family: var(--font-display);
  --numeral-hero-font-size: 92px;
  --numeral-hero-line-height: 84px;
  --numeral-hero-font-weight: 600;
  --numeral-hero-font-variant-numeric: tabular-nums;
  --numeral-xl-font-family: var(--font-display);
  --numeral-xl-font-size: 56px;
  --numeral-xl-line-height: 56px;
  --numeral-xl-font-weight: 600;
  --numeral-xl-font-variant-numeric: tabular-nums;
  --numeral-lg-font-family: var(--font-display);
  --numeral-lg-font-size: 28px;
  --numeral-lg-line-height: 28px;
  --numeral-lg-font-weight: 600;
  --numeral-lg-font-variant-numeric: tabular-nums;
  --title-lg-font-family: var(--font-display);
  --title-lg-font-size: 34px;
  --title-lg-line-height: 36px;
  --title-lg-font-weight: 700;
  --title-lg-font-variant-numeric: tabular-nums;
  --title-lg-text-transform: none;
  --title-md-font-family: var(--font-display);
  --title-md-font-size: 24px;
  --title-md-line-height: 28px;
  --title-md-font-weight: 700;
  --title-md-font-variant-numeric: tabular-nums;
  --title-md-text-transform: none;
  --body-lg-font-family: var(--font-sans);
  --body-lg-font-size: 17px;
  --body-lg-line-height: 26px;
  --body-lg-font-weight: 400;
  --body-font-family: var(--font-sans);
  --body-font-size: 15px;
  --body-line-height: 22px;
  --body-font-weight: 400;
  --body-strong-font-family: var(--font-sans);
  --body-strong-font-size: 15px;
  --body-strong-line-height: 22px;
  --body-strong-font-weight: 600;
  --section-font-family: var(--font-sans);
  --section-font-size: 13px;
  --section-line-height: 18px;
  --section-font-weight: 600;
  --caption-font-family: var(--font-sans);
  --caption-font-size: 13px;
  --caption-line-height: 18px;
  --caption-font-weight: 400;
  --micro-font-family: var(--font-sans);
  --micro-font-size: 11px;
  --micro-line-height: 14px;
  --micro-font-weight: 600;
  --data-font-family: var(--font-mono);
  --data-font-size: 14px;
  --data-line-height: 20px;
  --data-font-weight: 500;
}}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light dark;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--ink);
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: var(--body-lg-font-size);
  line-height: var(--body-lg-line-height);
}
a {
  color: inherit;
  text-underline-offset: var(--space-1);
}
a:hover {
  color: var(--signal-text);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: var(--space-1);
}
main:focus {
  outline: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
h1 {
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: clamp(
    var(--title-lg-font-size),
    6vw,
    calc(var(--numeral-xl-font-size) * 1.3)
  );
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-6);
}
h2 {
  font-size: clamp(var(--title-md-font-size), 3vw, var(--title-lg-font-size));
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h3 {
  font-size: var(--title-md-font-size);
  line-height: var(--title-md-line-height);
}
em {
  color: var(--signal-text);
  font-style: normal;
}
p {
  margin-bottom: var(--space-5);
}
.site-header,
main,
footer {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  font-size: var(--title-md-font-size);
  font-weight: var(--title-md-font-weight);
  min-height: var(--tap-min);
}
.brand-mark {
  background: var(--signal);
  color: var(--signal-ink);
  border-radius: var(--radius-sm);
  width: var(--tap-min);
  height: var(--tap-min);
  display: grid;
  place-items: center;
}
nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
nav a,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  text-decoration: none;
  font-size: var(--body-font-size);
  font-weight: var(--body-strong-font-weight);
}
.nav-beta {
  color: var(--signal-text);
}
section {
  padding-block: calc(var(--space-14) * 1.4);
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-14);
  align-items: center;
  padding-top: var(--space-14);
}
.eyebrow,
.feature-number {
  color: var(--signal-text);
  font-size: var(--body-font-size);
  font-weight: var(--body-strong-font-weight);
  margin-bottom: var(--space-6);
}
.lede {
  color: var(--ink-muted);
  font-size: var(--body-lg-font-size);
  line-height: 1.6;
  max-width: 52ch;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--button-lg);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-btn);
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: var(--body-strong-font-weight);
  text-decoration: none;
}
.button:hover {
  background: var(--ink);
  color: var(--surface-0);
}
.caption,
figcaption {
  font-size: var(--caption-font-size);
  line-height: var(--caption-line-height);
  color: var(--ink-muted);
}
.hero .caption {
  margin-top: var(--space-4);
}
.muted {
  color: var(--ink-muted);
}
.card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  padding: var(--space-8);
}
figcaption {
  margin: 0;
}
.promise {
  text-align: center;
  border-block: 1px solid var(--line);
  padding-block: var(--space-8);
}
.promise p {
  color: var(--ink-muted);
  margin-bottom: var(--space-2);
}
.section-heading {
  max-width: 64ch;
  margin-bottom: var(--space-8);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.plans .card {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: var(--space-6);
}
.plans .eyebrow {
  color: var(--signal-text);
}
.plans .button,
.plans .text-link {
  margin-top: auto;
}
.price {
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: var(--numeral-xl-font-size);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.price small {
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  letter-spacing: normal;
}
.narrow {
  max-width: 75ch;
  margin-inline: auto;
}
details {
  border-bottom: 1px solid var(--line-strong);
}
summary {
  cursor: pointer;
  min-height: var(--tap-min);
  padding-block: var(--space-5);
  font-weight: var(--body-strong-font-weight);
}
details p {
  color: var(--ink-muted);
}
.closing {
  text-align: center;
  padding-bottom: calc(var(--space-14) * 2);
}
.closing h2 {
  font-size: var(--numeral-xl-font-size);
}
.page-intro {
  max-width: 80ch;
  padding-bottom: var(--space-8);
}
.founding {
  margin-block: var(--space-14);
  padding: var(--space-8);
  background: var(--signal-soft);
  border-radius: var(--radius-lg);
}
.founding p:last-child {
  margin-bottom: 0;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--body-font-size);
}
caption {
  text-align: left;
  padding-block: var(--space-4);
  color: var(--ink-muted);
}
th,
td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--line-strong);
  vertical-align: top;
  min-width: 150px;
}
thead {
  background: var(--surface-2);
}
tbody th {
  font-weight: var(--body-strong-font-weight);
}
.prose {
  max-width: 76ch;
  margin: var(--space-14) auto calc(var(--space-14) * 2);
  overflow-wrap: anywhere;
}
.prose h2 {
  margin-top: var(--space-8);
}
.prose a {
  color: var(--signal-text);
  display: inline-block;
  padding-block: var(--space-3);
}
.prose code {
  font-family: var(--font-mono), monospace;
  font-size: var(--data-font-size);
}
.prose li {
  margin-block: var(--space-3);
}
blockquote {
  margin-inline: 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--line-strong);
}
footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-8);
  border-top: 1px solid var(--line);
  padding-block: var(--space-14);
}
footer nav {
  align-items: start;
  flex-direction: column;
  gap: 0;
}
footer p {
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}
.skip {
  position: absolute;
  top: var(--space-2);
  left: var(--space-5);
  transform: translateY(-200%);
  padding: var(--space-4);
  background: var(--surface-1);
  z-index: 2;
  min-height: var(--tap-min);
}
.skip:focus {
  transform: none;
}
.card p {
  color: var(--ink-muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Glass box: three camps and six wedges */
.camps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.camp {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  min-width: 0;
}
.camp.us {
  background: var(--signal-soft);
  outline: 2px solid var(--signal);
}
.camp strong {
  font-size: var(--title-md-font-size);
  line-height: var(--title-md-line-height);
}
.camp-name {
  color: var(--ink-muted);
  font-weight: var(--body-strong-font-weight);
}
.camp.us .camp-name {
  color: var(--signal-text);
}
.wedges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.wedge {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: var(--shadow-raised);
}
.wedge h3,
.wedge p {
  margin: 0;
}
.wedge p {
  color: var(--ink-muted);
}
.wedge .vs {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: var(--caption-font-size);
}
.wedge-tag {
  align-self: start;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--signal-soft);
  color: var(--signal-text);
  font-size: var(--caption-font-size);
  font-weight: var(--body-strong-font-weight);
}

/* Feature rows pair a scene with its copy */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-14);
  align-items: center;
  margin-top: var(--space-14);
}
.feature-row.flip .scene {
  order: 2;
}
.feature-row .copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.feature-row .copy h3,
.feature-row .copy ul {
  margin: 0;
}
.feature-row ul {
  padding-left: var(--space-5);
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.chart-block {
  margin-top: var(--space-14);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: var(--shadow-raised);
}
.chart-block h3 {
  margin-bottom: var(--space-4);
}
.chart-block .eyebrow {
  margin-bottom: var(--space-2);
}

/* Comparison */
.cmp {
  background: var(--surface-1);
  box-shadow: var(--shadow-raised);
}
.cmp table {
  min-width: 640px;
}
.cmp .us {
  background: var(--signal-soft);
}
.cmp thead .us {
  color: var(--signal-text);
}
.cmp .y {
  color: var(--hit);
  font-weight: var(--body-strong-font-weight);
}
.cmp .n {
  color: var(--ink-muted);
}
.cmp .p {
  color: var(--miss);
}
.foot {
  margin-top: var(--space-3);
  max-width: 80ch;
}

/* Library stats and the two side-by-side scenes */
.statrow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: var(--shadow-raised);
}
.stat b {
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 600;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.stat span {
  color: var(--ink-muted);
}
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

/* Scenes */
.scene {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.scene-who {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--caption-font-size);
}
.scene-ctrl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.scene-ctrl:empty {
  display: none;
}
.scene-chip {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: var(--caption-font-size);
}
.pause {
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: var(--body-font-size);
  font-weight: var(--body-strong-font-weight);
  cursor: pointer;
}
.pause:hover {
  background: var(--surface-3);
}
.pause[hidden] {
  display: none;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--body-font-size);
  color: var(--ink-muted);
}
.steps li {
  transition: color 0.3s;
}
.steps li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: var(--space-2);
  border-radius: 50%;
  background: var(--surface-3);
  vertical-align: 2px;
  transition: background 0.3s;
}
.steps li.on {
  color: var(--ink);
}
.steps li.on::before {
  background: var(--signal);
}

/* The phone: a decorative frame around the app's own screens */
.phone {
  width: min(300px, 100%);
  margin-inline: auto;
  aspect-ratio: 300 / 600;
  padding: 10px;
  border-radius: 42px;
  background: var(--graphite);
  box-shadow: var(--shadow-raised);
  color: var(--ink);
}
.screen {
  position: relative;
  height: 100%;
  padding: 34px var(--space-4) var(--space-4);
  border-radius: 33px;
  background: var(--surface-0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.4;
}
.screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: 999px;
  background: var(--graphite);
}
.screen p {
  margin: 0;
}
.ph-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.ph-sm {
  font-size: 12px;
  color: var(--ink-muted);
}
.ph-title {
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.ph-strong {
  font-weight: 600;
}
.ph-chip {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ph-chip.hit {
  background: var(--hit-soft);
  color: var(--hit);
}
.ph-chip.deload {
  background: var(--deload-soft);
  color: var(--deload);
}
.ph-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: 14px;
  background: var(--surface-1);
  box-shadow: var(--shadow-raised);
}
.ph-card.tight {
  gap: 6px;
}
.ph-sets {
  border-radius: 14px;
  background: var(--surface-1);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}
.ph-set {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--space-3);
  border-top: 1px solid var(--line);
  transition: background 0.3s;
}
.ph-set:first-child {
  border-top: 0;
}
.ph-w {
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ph-tick {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--surface-2);
  color: transparent;
  font-weight: 700;
  transition:
    background 0.25s,
    transform 0.25s;
}
.ph-set.done {
  background: var(--hit-soft);
}
.ph-set.done .ph-tick {
  background: var(--hit);
  color: var(--surface-0);
  transform: scale(1.06);
}
.ph-set.missed {
  background: var(--miss-soft);
}
.ph-set.missed .ph-tick {
  background: var(--miss);
  color: var(--surface-0);
}
.ph-next {
  transition:
    opacity 0.45s,
    transform 0.45s;
}
.ph-next.pre {
  transform: translateY(14px);
}
.ph-num {
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: 54px;
  font-weight: 600;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.ph-num small {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-muted);
}
.ph-why {
  min-height: 3.6em;
  padding: 2px 0 2px 10px;
  border-left: 3px solid var(--signal);
}
.ph-why b {
  display: block;
  margin-bottom: 2px;
  color: var(--signal-text);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ph-toast {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  padding: 10px var(--space-3);
  border-radius: 12px;
  background: var(--ink);
  color: var(--surface-0);
  font-weight: 600;
  text-align: center;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.ph-toast.pre {
  transform: translateY(10px);
}
.ph-rule {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-3);
  border-radius: 14px;
  background: var(--surface-1);
  box-shadow: var(--shadow-raised);
}
.ph-rule.tight {
  gap: 2px;
}
.ph-rule-line {
  padding: 6px var(--space-2);
  border-radius: var(--space-2);
  outline: 1.5px solid transparent;
  transition:
    background 0.3s,
    outline-color 0.3s;
}
.ph-rule-line.hl {
  background: var(--deload-soft);
  outline-color: var(--deload);
}
.ph-sentence {
  padding: 10px var(--space-3);
  border-radius: 12px;
  background: var(--signal-soft);
  font-weight: 500;
}
.ph-sentence b {
  transition: color 0.3s;
}
.ph-sentence b.chg {
  color: var(--hit);
}
.ph-eqrow {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}
.ph-eq {
  padding: 3px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: 11.5px;
  transition:
    background 0.25s,
    color 0.25s;
}
.ph-eq.on {
  background: var(--signal-soft);
  color: var(--signal-text);
}
.ph-tok {
  padding: 0 6px;
  border-radius: 6px;
  background: var(--signal-soft);
  color: var(--signal-text);
  font-weight: 600;
  transition: transform 0.2s;
}
.ph-tok.edit {
  outline: 2px solid var(--signal);
  transform: scale(1.06);
}
.ph-bars {
  width: 100%;
  height: auto;
  display: block;
}
.ph-bar {
  fill: var(--signal);
  transition:
    y 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ph-bar-val {
  fill: var(--ink);
  font:
    600 13px var(--font-display),
    system-ui,
    sans-serif;
}
.ph-bar-wk {
  fill: var(--ink-muted);
  font:
    11px var(--font-sans),
    system-ui,
    sans-serif;
}
.ph-ltag {
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  transition:
    background 0.3s,
    color 0.3s;
}
.ph-ltag.on {
  background: var(--signal-soft);
  color: var(--signal-text);
}
[data-style],
[data-saved] {
  transition: opacity 0.3s;
}
.pre {
  opacity: 0;
}
.dim {
  opacity: 0.35;
}
.caret::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  background: var(--signal);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* The 12-week chart */
.chart {
  width: 100%;
  min-width: 520px;
  height: auto;
  display: block;
}
.chart-block .scene-root {
  overflow-x: auto;
}
.chart .grid {
  stroke: var(--line-strong);
  stroke-width: 1;
}
.chart .axis {
  fill: var(--ink-muted);
  font:
    12px var(--font-sans),
    system-ui,
    sans-serif;
}
.chart .area {
  fill: var(--signal-soft);
}
.chart .lineP {
  fill: none;
  stroke: var(--signal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 4.6s linear;
}
.chart .lineP.pre {
  opacity: 1;
  stroke-dashoffset: 1;
  transition: none;
}
.chart .pt {
  fill: var(--surface-1);
  stroke: var(--signal);
  stroke-width: 2.5;
  transition: opacity 0.3s;
}
.chart .ann {
  transition: opacity 0.4s;
}
.chart .annbg {
  fill: var(--surface-1);
  stroke: var(--line-strong);
}
.chart .anntx {
  fill: var(--ink);
  font:
    600 12.5px var(--font-sans),
    system-ui,
    sans-serif;
}
.chart .anntx.hit {
  fill: var(--hit);
}
.chart .anntx.deload {
  fill: var(--deload);
}
.chart .anntx.pr {
  fill: var(--pr);
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .hero > div {
    max-width: 65ch;
  }
  .plans,
  .camps,
  .feature-row,
  .pair {
    grid-template-columns: 1fr;
  }
  .wedges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-row {
    gap: var(--space-8);
  }
  .feature-row.flip .scene {
    order: 0;
  }
  footer {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .wedges,
  .statrow {
    grid-template-columns: 1fr;
  }
  .site-header {
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: var(--space-3);
  }
  section {
    padding-block: var(--space-14);
  }
  .hero {
    padding-top: var(--space-8);
  }
  footer {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .closing h2 {
    font-size: var(--title-lg-font-size);
  }
}
/* Library, clip, friends and coach scenes */
.ph-search {
  padding: 9px var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  font-weight: 600;
}
.ph-search::before {
  content: "⌕ ";
  color: var(--ink-muted);
}
.ph-row.spread {
  text-transform: none;
  letter-spacing: 0;
}
.ph-msg {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
}
.ph-msg > .ph-chip.end {
  margin-left: auto;
}
.ph-av {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: var(--space-2);
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
}
.ph-av.hit {
  background: var(--hit-soft);
  color: var(--ink);
}
.ph-av.miss {
  background: var(--miss-soft);
}
.ph-av.deload {
  background: var(--deload-soft);
}
.ph-chip.miss {
  background: var(--miss-soft);
  color: var(--ink);
}
.ph-chip.pr {
  background: var(--pr-soft);
  color: var(--ink);
}
.ph-chip.live {
  background: var(--signal-soft);
  color: var(--signal-text);
}
.ph-bubble {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg)
    var(--radius-sm);
  background: var(--surface-2);
}
.ph-photo {
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.ph-photo svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70px;
}
.ph-photo .ph-chip {
  position: absolute;
  left: 6px;
  bottom: 6px;
}
.ph-ph-floor {
  fill: var(--surface-3);
}
.ph-ph-post {
  fill: var(--ink-faint);
}
.ph-ph-arm {
  fill: var(--ink-muted);
}
.ph-ph-plate {
  fill: none;
  stroke: var(--signal);
  stroke-width: 5;
}
.ph-cam {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--signal-ink);
}
.ph-thumb {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--graphite);
  color: var(--ink-island);
  font-size: 11px;
  font-weight: 600;
}
.ph-cheer {
  padding: 4px var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--pr-soft);
  font-weight: 700;
}
[data-res],
[data-mk],
[data-photo],
[data-jump],
[data-share],
[data-reply],
[data-best],
[data-prog],
[data-live],
[data-clients],
[data-assign],
[data-note],
.ph-cam,
.ph-thumb,
.ph-chip {
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.ph-cam.pre,
.ph-thumb.pre {
  display: none;
}
.ph-cam:not(.pre) ~ .ph-thumb {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
