@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-700-latin.woff2") format("woff2");
}

:root {
  --th-navy: #071b33;
  --th-navy-2: #0d2a4a;
  --th-teal: #0a7c83;
  --th-teal-dark: #075b61;
  --th-gold: #ffc400;
  --th-ground: #f5f7fa;
  --th-paper: #ffffff;
  --th-ink: #101f30;
  --th-muted: #516175;
  --th-ice: #dff6f6;
  --th-rule: #c7d0da;
  --th-success: #147345;
  --th-danger: #a23a30;
  --th-navy-muted: #b9cadb;
  --th-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  --th-radius: 14px;
  --th-max: 1180px;
  --th-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --th-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  background: var(--th-ground);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--th-ground);
  color: var(--th-ink);
  font-family: var(--th-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--th-gold);
  color: var(--th-navy);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--th-ground);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--th-ground);
  border-radius: 999px;
  background: var(--th-teal);
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: var(--th-gold);
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--th-gold);
  outline-offset: 4px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  color: var(--th-navy);
  font-family: var(--th-display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  margin-block-end: 1.25rem;
  font-size: clamp(4.25rem, 9.2vw, 7.4rem);
}

h2 {
  max-width: 14ch;
  margin-block-end: 1.25rem;
  font-size: clamp(3rem, 5.6vw, 5rem);
}

h3 {
  margin-block-end: 0.65rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

p {
  max-width: 70ch;
  margin-block-end: 1.25rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  transform: translateY(-180%);
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--th-gold);
  color: var(--th-navy);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-block-end: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--th-navy);
  color: var(--th-paper);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: min(calc(100% - 2rem), var(--th-max));
  min-height: 78px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  color: var(--th-paper);
  font-family: var(--th-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border: 3px solid var(--th-gold);
  border-radius: 50% 50% 50% 12%;
  transform: rotate(-45deg);
}

.brand-mark::after {
  position: absolute;
  width: 8px;
  height: 3px;
  inset-inline-end: -7px;
  inset-block-start: 10px;
  background: var(--th-gold);
  content: "";
}

.brand-slash {
  color: var(--th-gold);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.85rem, 3vw, 2.25rem);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--th-navy-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--th-paper);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--th-gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.62rem;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 9px;
  background: var(--th-gold);
  color: var(--th-navy);
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease-out;
}

.button:hover,
button:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
  text-decoration: none;
}

.button-dark {
  background: var(--th-navy);
  color: var(--th-paper);
}

.button-line {
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
  color: var(--th-paper);
}

.header-cta {
  min-height: 44px;
  padding-inline: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--th-max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.6fr);
  align-items: end;
  gap: 2rem;
  margin-block-end: 3rem;
  border-block-end: 2px solid var(--th-navy);
}

.section-head p {
  justify-self: end;
  margin-block-end: 1.4rem;
  color: var(--th-muted);
  font-size: 1.08rem;
}

.home-hero,
.sport-hero {
  position: relative;
  overflow: clip;
  background: var(--th-navy);
  color: var(--th-paper);
}

.home-hero::before,
.sport-hero::before {
  position: absolute;
  inset: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  content: "";
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  min-height: 700px;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1,
.hero-copy h2 {
  color: var(--th-paper);
}

.hero-copy h1 strong {
  color: var(--th-gold);
  font-weight: inherit;
}

.hero-copy > p {
  max-width: 57ch;
  color: var(--th-navy-muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-note {
  margin-block-start: 1rem;
  color: var(--th-navy-muted);
  font-size: 0.9rem;
}

.hero-note strong {
  color: var(--th-paper);
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
  max-width: 39rem;
  margin-block-start: 2rem;
}

.form-status {
  flex: 1 0 100%;
  margin: 0;
  color: var(--th-paper);
  font-size: 0.85rem;
  font-weight: 700;
}

.form-status[hidden] {
  display: none;
}

.field {
  flex: 1 1 14rem;
}

.field label {
  display: block;
  margin-block-end: 0.45rem;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--th-rule);
  border-radius: 9px;
  background: var(--th-paper);
  color: var(--th-ink);
  caret-color: var(--th-teal);
}

.field input::placeholder {
  color: #687486;
  opacity: 1;
}

.hero-form .field label {
  color: var(--th-paper);
}

.hero-form button {
  align-self: end;
  min-height: 52px;
}

.device-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.device-stage::before {
  position: absolute;
  width: min(90%, 420px);
  aspect-ratio: 1;
  border: 2px solid var(--th-teal);
  border-radius: 50%;
  content: "";
}

.device-stage::after {
  position: absolute;
  width: 75%;
  height: 2px;
  background: var(--th-teal);
  transform: rotate(-13deg);
  content: "";
}

.phone {
  position: relative;
  z-index: 2;
  width: min(100%, 310px);
  padding: 0.65rem;
  border: 3px solid #a8b8c9;
  border-radius: 38px;
  background: #02101f;
  box-shadow: 16px 24px 48px rgba(0, 0, 0, 0.34);
  transform: rotate(2.5deg);
}

.phone::before {
  display: block;
  width: 34%;
  height: 5px;
  margin: 0.15rem auto 0.6rem;
  border-radius: 999px;
  background: #718196;
  content: "";
}

.phone-screen {
  overflow: hidden;
  min-height: 520px;
  border-radius: 27px;
  background: var(--th-ground);
  color: var(--th-ink);
}

.sample-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding-inline: 0.6rem;
  border-radius: 999px;
  background: var(--th-gold);
  color: var(--th-navy);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--th-navy);
  color: var(--th-paper);
}

.app-team {
  font-family: var(--th-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.app-body {
  padding: 1rem;
}

.app-date {
  color: var(--th-teal-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-card {
  margin-block: 0.5rem 1rem;
  padding: 1rem;
  border: 1px solid var(--th-rule);
  border-radius: 12px;
  background: var(--th-paper);
  box-shadow: 0 8px 18px rgba(7, 27, 51, 0.08);
}

.event-card-title {
  margin: 0;
  color: var(--th-navy);
  font-family: var(--th-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.025em;
}

.event-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-block-start: 0.85rem;
  font-size: 0.76rem;
}

.event-meta strong {
  display: block;
  color: var(--th-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsvp-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-block: 1rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 850;
}

.rsvp-row,
.mini-roster-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.62rem;
  border-block-end: 1px solid var(--th-rule);
  font-size: 0.8rem;
}

.avatar {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--th-navy);
  color: var(--th-paper);
  font-size: 0.72rem;
  font-weight: 850;
}

.status {
  margin-inline-start: auto;
  color: var(--th-success);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status.waiting {
  color: var(--th-danger);
}

.score-strip {
  border-block: 2px solid var(--th-navy);
  background: var(--th-gold);
  color: var(--th-navy);
}

.score-strip-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
}

.score-strip p {
  max-width: none;
  margin: 0;
  padding: 1.05rem 1.4rem;
  border-inline-end: 2px solid var(--th-navy);
  font-family: var(--th-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.score-strip p:last-child {
  border-inline-end: 0;
}

.feature-board {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
}

.feature-card {
  position: relative;
  min-height: 250px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  border: 2px solid var(--th-navy);
  border-radius: var(--th-radius);
  background: var(--th-paper);
}

.feature-card:nth-child(2),
.feature-card:nth-child(3) {
  background: var(--th-ice);
}

.feature-card:nth-child(3) {
  min-height: 330px;
}

.feature-card:nth-child(4) {
  min-height: 330px;
  background: var(--th-navy);
  color: var(--th-paper);
}

.feature-card:nth-child(4) h3 {
  color: var(--th-paper);
}

.feature-code {
  display: inline-flex;
  min-width: 3rem;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  margin-block-end: 2.2rem;
  border: 2px solid currentColor;
  color: var(--th-teal-dark);
  font-family: var(--th-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-card:nth-child(4) .feature-code {
  color: var(--th-gold);
}

.feature-card p {
  margin: 0;
  color: var(--th-muted);
}

.feature-card:nth-child(4) p {
  color: var(--th-navy-muted);
}

.feature-demo {
  display: grid;
  gap: 0.5rem;
  margin-block-start: 1.75rem;
}

.card-sample {
  margin-block-start: 1rem;
}

.feature-demo span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  padding-inline: 0.75rem;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 750;
}

.sport-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.sport-card {
  position: relative;
  display: flex;
  min-height: 480px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--th-radius);
  color: var(--th-paper);
  text-decoration: none;
}

.sport-card:hover {
  text-decoration: none;
}

.sport-card h3 {
  max-width: 8ch;
  color: var(--th-paper);
  font-size: clamp(3.2rem, 7vw, 5.75rem);
}

.sport-card p {
  color: var(--th-navy-muted);
}

.sport-card.hockey {
  background: var(--th-navy);
}

.sport-card.baseball {
  background: var(--th-teal-dark);
}

.sport-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--th-gold);
  text-underline-offset: 0.4rem;
}

.rink-lines,
.diamond-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.46;
}

.rink-lines::before {
  position: absolute;
  width: 64%;
  aspect-ratio: 1.65;
  inset-inline-end: -13%;
  inset-block-start: 17%;
  border: 2px solid var(--th-paper);
  border-radius: 45%;
  content: "";
}

.rink-lines::after {
  position: absolute;
  width: 2px;
  height: 100%;
  inset-inline-end: 31%;
  background: var(--th-teal);
  content: "";
}

.diamond-lines::before {
  position: absolute;
  width: 45%;
  aspect-ratio: 1;
  inset-inline-end: 4%;
  inset-block-start: 23%;
  border: 2px solid var(--th-paper);
  transform: rotate(45deg);
  content: "";
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--th-navy);
  border-radius: var(--th-radius);
  overflow: hidden;
}

.audience-panel {
  min-height: 380px;
  padding: clamp(2rem, 5vw, 4rem);
}

.audience-panel:first-child {
  border-inline-end: 2px solid var(--th-navy);
  background: var(--th-paper);
}

.audience-panel:last-child {
  background: var(--th-gold);
  color: var(--th-navy);
}

.check-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-inline-start: 1.75rem;
}

.check-list li::before {
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  inset-inline-start: 0;
  inset-block-start: 0.5rem;
  border: 2px solid var(--th-teal);
  transform: rotate(45deg);
  content: "";
}

.audience-panel:last-child .check-list li::before {
  border-color: var(--th-navy);
  background: var(--th-navy);
}

.signup-band {
  position: relative;
  overflow: hidden;
  background: var(--th-teal-dark);
  color: var(--th-paper);
}

.signup-band::after {
  position: absolute;
  width: 22rem;
  height: 22rem;
  inset-inline-end: -6rem;
  inset-block-end: -12rem;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.signup-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1fr);
  align-items: end;
  gap: 3rem;
}

.signup-grid h2 {
  color: var(--th-paper);
}

.signup-grid .field label {
  color: var(--th-paper);
}

.price-line {
  margin-block-start: 1rem;
  color: var(--th-gold);
  font-family: var(--th-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.site-footer {
  background: #031225;
  color: var(--th-paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: end;
  gap: 2rem;
  padding-block: 3.5rem;
}

.footer-grid p {
  margin: 0;
  color: var(--th-navy-muted);
  font-size: 0.88rem;
}

.footer-domain {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--th-gold);
  font-family: var(--th-display);
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.sport-hero .hero-shell {
  min-height: 630px;
}

.sport-hero .hero-copy h1 {
  max-width: 9ch;
}

.hockey-hero .device-stage::before {
  width: 96%;
  aspect-ratio: 1.7;
  border-radius: 48%;
}

.baseball-hero .device-stage::before {
  width: 58%;
  border-radius: 0;
  transform: rotate(45deg);
}

.workflow-list {
  border-block-start: 2px solid var(--th-navy);
}

.workflow-row {
  display: grid;
  grid-template-columns: 7rem minmax(14rem, 0.7fr) minmax(20rem, 1fr);
  align-items: center;
  gap: 2rem;
  min-height: 190px;
  padding-block: 2rem;
  border-block-end: 2px solid var(--th-navy);
}

.workflow-tag {
  color: var(--th-teal-dark);
  font-family: var(--th-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workflow-row h3,
.workflow-row p {
  margin: 0;
}

.workflow-row p {
  color: var(--th-muted);
}

.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(25rem, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.coach-board,
.scorebook-tablet {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 5px solid var(--th-navy);
  border-radius: var(--th-radius);
  background: var(--th-paper);
  box-shadow: var(--th-shadow);
}

.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1rem;
  padding-block-end: 0.8rem;
  border-block-end: 2px solid var(--th-navy);
}

.board-title {
  font-family: var(--th-display);
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
}

.line-units {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.line-unit {
  padding: 1rem;
  border: 1px solid var(--th-rule);
  border-radius: 10px;
  background: var(--th-ground);
}

.line-unit strong {
  display: block;
  margin-block-end: 0.7rem;
  color: var(--th-teal-dark);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-chip {
  display: block;
  margin-block: 0.35rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  background: var(--th-navy);
  color: var(--th-paper);
  font-size: 0.72rem;
}

.drill-rink {
  position: relative;
  min-height: 210px;
  margin-block-start: 1rem;
  overflow: hidden;
  border: 2px solid #7fa8c1;
  border-radius: 48%;
  background: #edf9fc;
}

.drill-rink::before,
.drill-rink::after {
  position: absolute;
  inset-block: 0;
  width: 2px;
  content: "";
}

.drill-rink::before {
  inset-inline-start: 34%;
  background: #d3564f;
}

.drill-rink::after {
  inset-inline-end: 34%;
  background: #3f87bb;
}

.drill-path {
  position: absolute;
  width: 42%;
  height: 44%;
  inset-inline-start: 28%;
  inset-block-start: 26%;
  border: 3px dashed var(--th-teal);
  border-radius: 50%;
}

.shiftframe {
  background: var(--th-navy);
  color: var(--th-paper);
}

.shiftframe-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1.2fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.shiftframe h2,
.shiftframe h3 {
  color: var(--th-paper);
}

.coming-soon {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-block-end: 2rem;
  padding-inline: 0.8rem;
  border: 2px solid var(--th-gold);
  color: var(--th-gold);
  font-family: var(--th-display);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.shiftframe-features {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.26);
}

.shiftframe-feature {
  padding: 1.5rem;
  background: var(--th-navy-2);
}

.shiftframe-feature p {
  margin: 0;
  color: var(--th-navy-muted);
}

.scorebook-phone .phone-screen {
  background: #f2efe7;
}

.scorekeeper {
  padding: 0.9rem;
}

.inning-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  border: 2px solid var(--th-navy);
  border-radius: 8px;
  background: var(--th-paper);
  font-size: 0.75rem;
  font-weight: 850;
}

.score-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--th-navy);
  color: var(--th-paper);
}

.bases {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 1.2rem auto;
  transform: rotate(45deg);
}

.base-path {
  position: absolute;
  inset: 20px;
  border: 3px solid #a68554;
}

.base {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 2px solid #8c754e;
  background: var(--th-paper);
}

.base.on {
  background: var(--th-gold);
}

.base.one { inset-inline-end: 8px; inset-block-start: 8px; }
.base.two { inset-inline-start: 8px; inset-block-start: 8px; }
.base.three { inset-inline-start: 8px; inset-block-end: 8px; }
.base.home { inset-inline-end: 8px; inset-block-end: 8px; }

.score-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.sample-action {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--th-navy);
  border-radius: 7px;
  background: var(--th-paper);
  font-size: 0.72rem;
  font-weight: 900;
}

.sample-action.primary {
  background: var(--th-teal-dark);
  color: var(--th-paper);
}

.sample-action.out {
  background: var(--th-danger);
  color: var(--th-paper);
}

.sample-action.undo {
  grid-column: span 2;
  border-style: dashed;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-block-start: 1.5rem;
}

.stat-block {
  padding: 1rem;
  border: 1px solid var(--th-rule);
  border-radius: 9px;
  background: var(--th-ground);
}

.stat-block strong {
  display: block;
  color: var(--th-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-block span {
  font-family: var(--th-display);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.box-score {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.box-score th,
.box-score td {
  padding: 0.7rem 0.55rem;
  border-block-end: 1px solid var(--th-rule);
  text-align: end;
}

.box-score th:first-child,
.box-score td:first-child {
  text-align: start;
}

.box-score th {
  color: var(--th-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pitch-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-block-start: 1.25rem;
  padding: 1rem;
  border: 2px solid #9a4b20;
  border-radius: 10px;
  background: #fff1d2;
  color: #4f230a;
}

.pitch-count {
  font-family: var(--th-display);
  font-size: 2rem;
  font-weight: 700;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-block-start: 1.5rem;
}

.report-actions .sample-action {
  min-width: 10rem;
  padding-inline: 1rem;
}

.legal-note {
  color: var(--th-muted);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding-block: 0.65rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    order: 3;
    border-block-start: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-shell,
  .signup-grid,
  .board-grid,
  .shiftframe-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
  }

  .device-stage {
    min-height: 560px;
  }

  .feature-board,
  .sport-pair,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-panel:first-child {
    border-inline-end: 0;
    border-block-end: 2px solid var(--th-navy);
  }

  .workflow-row {
    grid-template-columns: 6rem 1fr;
  }

  .workflow-row p {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-domain {
    grid-column: 1 / -1;
  }
}

@media (min-width: 901px) {
  .home-hero {
    overflow: visible;
  }

  .home-hero .device-stage {
    z-index: 4;
    transform: translateY(150px);
  }

  .score-strip {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(3.65rem, 18vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .nav-shell {
    width: min(calc(100% - 1rem), var(--th-max));
  }

  .brand {
    font-size: 1.45rem;
  }

  .header-cta {
    padding-inline: 0.75rem;
    font-size: 0.8rem;
  }

  .site-nav {
    gap: 0.25rem;
  }

  .site-nav a {
    justify-content: center;
    flex: 1 1 0;
    font-size: 0.72rem;
  }

  .home-hero::before,
  .sport-hero::before {
    inset: 0.5rem;
  }

  .hero-shell {
    width: min(calc(100% - 2rem), var(--th-max));
    padding-block-start: 3rem;
  }

  .home-hero .hero-shell {
    padding-block-start: 1.75rem;
  }

  .home-hero h1 {
    font-size: 3.4rem;
  }

  .home-hero .hero-copy > p {
    font-size: 1rem;
    line-height: 1.45;
  }

  .home-hero .signup-form {
    margin-block-start: 1.15rem;
  }

  .home-hero .device-stage {
    margin-block-start: -0.5rem;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form .field {
    flex: 0 1 auto;
    width: 100%;
  }

  .hero-form button {
    align-self: stretch;
  }

  .device-stage {
    min-height: 550px;
  }

  .phone {
    width: min(88%, 300px);
    transform: rotate(1deg);
  }

  .phone-screen {
    min-height: 505px;
  }

  .score-strip-inner,
  .section-head,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .score-strip p {
    border-inline-end: 0;
    border-block-end: 2px solid var(--th-navy);
  }

  .score-strip p:last-child {
    border-block-end: 0;
  }

  .section-head p {
    justify-self: start;
  }

  .feature-card,
  .feature-card:nth-child(3),
  .feature-card:nth-child(4) {
    min-height: 0;
  }

  .sport-card {
    min-height: 420px;
  }

  .workflow-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .workflow-row p {
    grid-column: auto;
  }

  .line-units,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .drill-rink {
    min-height: 160px;
  }

  .scorebook-tablet,
  .coach-board {
    padding: 1rem;
  }

  .score-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .sample-action.undo {
    grid-column: span 1;
  }

  .pitch-alert {
    grid-template-columns: auto 1fr;
  }

  .pitch-alert .pitch-count {
    grid-column: 1 / -1;
  }

  .footer-grid {
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
  }
}
