:root {
  --green-900: #133326;
  --green-800: #1d4b37;
  --green-700: #2f6f4e;
  --green-100: #e6f0e7;
  --ball: #c9df43;
  --paper: #fbfaf5;
  --cream: #f4efe3;
  --stone: #d8d0bd;
  --ink: #17352a;
  --muted: #66746b;
  --coral: #c8634d;
  --aqua: #3a7f8f;
  --line: #e2ddcf;
  --shadow: 0 16px 45px rgba(25, 47, 38, .12);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(226, 221, 207, .78);
  background: rgba(251, 250, 245, .94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 2px solid #101a16;
  border-radius: 50%;
  background: var(--ball);
  box-shadow: 0 0 0 2px #fff, 0 5px 14px rgba(21, 61, 42, .2);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 42px;
  height: 54px;
  border: 2px solid rgba(10, 22, 17, .9);
  border-radius: 50%;
  pointer-events: none;
}

.brand-mark::before {
  left: -30px;
}

.brand-mark::after {
  right: -30px;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.25;
}

.main-nav,
.header-actions,
.site-footer nav,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav {
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav a,
.site-footer a {
  padding: 8px 9px;
  border-radius: 8px;
  color: #30483d;
  text-decoration: none;
  font-weight: 650;
  font-size: .92rem;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--green-100);
  color: var(--green-900);
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--green-700);
  border-radius: 8px;
  background: var(--green-700);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.btn:hover {
  background: var(--green-800);
}

.btn.light {
  border-color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .92);
  color: var(--green-900);
}

.btn.ghost {
  background: transparent;
  color: var(--green-800);
}

.btn.small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: .88rem;
}

.user-chip,
.pill,
.status,
.weather-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-800);
  font-size: .86rem;
  font-weight: 750;
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 84px 24px;
  color: #fff;
}

.hero img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(13, 39, 28, .78), rgba(13, 39, 28, .44) 42%, rgba(13, 39, 28, .08));
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--ball);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: 4.35rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.12rem;
}

.lede {
  max-width: 640px;
  margin: 18px 0 26px;
  font-size: 1.3rem;
  line-height: 1.45;
}

.band,
.feature-strip,
.cta-band,
.workspace,
.form-page,
.message-page {
  padding: 70px 24px;
}

.intro-grid,
.club-intro,
.info-section,
.map-section,
.pro-section,
.two-col,
.cta-band,
.preview-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.intro-grid,
.club-intro,
.info-section,
.map-section,
.pro-section,
.feature-strip,
.app-preview,
.two-col,
.cta-band,
.workspace,
.form-page,
.message-page {
  max-width: 1180px;
  margin: 0 auto;
}

.intro-grid p,
.club-intro p,
.info-section p,
.map-section p,
.pro-section p,
.two-col p,
.cta-band p,
.feature-card p,
.preview-points p,
.person-card p,
.rules-content p {
  color: var(--muted);
  line-height: 1.65;
}

.club-intro {
  border-bottom: 1px solid var(--line);
}

.info-section {
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 55, 38, .06);
}

.resource-card h3 {
  font-size: 1.02rem;
}

.resource-card p {
  margin-bottom: 0;
}

.map-section {
  border-bottom: 1px solid var(--line);
}

.map-section .btn {
  margin-top: 12px;
}

.map-frame {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 55, 38, .07);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.club-feature-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 55, 38, .07);
}

.club-feature-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.club-feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.club-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ball);
  box-shadow: 0 0 0 2px var(--green-700);
}

.pro-section {
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}

.pro-profile,
.pro-details {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 55, 38, .07);
}

.pro-profile {
  display: grid;
  grid-template-columns: minmax(150px, .52fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.pro-profile h2 {
  margin-bottom: 14px;
}

.pro-photo {
  margin: 0;
  align-self: stretch;
}

.pro-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  box-shadow: inset 0 0 0 1px rgba(19, 51, 38, .08);
}

.pro-profile .btn {
  margin-top: 12px;
}

.pro-details {
  display: grid;
  gap: 18px;
}

.pro-details article {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pro-details article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pro-details ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.feature-card,
.panel,
.auth-panel,
.person-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 55, 38, .07);
}

.feature-card {
  min-height: 176px;
  padding: 22px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-strip.compact .feature-card {
  min-height: 154px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.app-preview {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.phone-frame {
  width: min(360px, 100%);
  min-height: 590px;
  padding: 18px;
  border: 10px solid #183b2d;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.phone-top {
  width: 88px;
  height: 8px;
  margin: 0 auto 18px;
  border-radius: 8px;
  background: #a8b2a8;
}

.mini-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: .84rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.mini-grid span,
.mini-grid button {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.mini-grid span {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .78rem;
}

.mini-grid .filled {
  background: var(--green-700);
  color: #fff;
}

.mini-grid .invite {
  border-color: var(--aqua);
  background: #e7f4f5;
}

.mini-grid .machine {
  border-color: #a7932f;
  background: #fbf4c7;
}

.preview-points {
  display: grid;
  gap: 16px;
}

.preview-points article {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.heatmap-demo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.heat-cell {
  min-height: 105px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(47, 111, 78, .24);
  background: color-mix(in srgb, var(--green-700) var(--heat), #f7f1d8);
  color: var(--green-900);
}

.heat-cell span,
.stat span,
.reservation-item span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
}

.heat-cell strong {
  display: block;
  margin-top: 20px;
  font-size: 1.55rem;
}

.cta-band {
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 24px;
  border-top: 1px solid var(--line);
  background: var(--green-900);
  color: #fff;
}

.site-footer span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .72);
}

.site-footer a {
  color: #fff;
}

.auth-wrap {
  min-height: calc(100svh - 72px);
  display: grid;
  place-items: center;
  padding: 36px 18px;
  background: var(--cream);
}

.auth-panel {
  width: min(460px, 100%);
  padding: 28px;
}

.form-stack,
.application-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #334a3f;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfc8b8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.check-row {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.code-input {
  max-width: 180px;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
}

.form-foot {
  margin-bottom: 0;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 720;
  margin-bottom: 14px;
}

.alert.error {
  background: #fbe9e4;
  color: #873827;
  border: 1px solid #edc1b6;
}

.alert.success {
  background: #e5f3e8;
  color: var(--green-800);
  border: 1px solid #b9dbc3;
}

.club-contact {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-900);
}

.club-contact span {
  color: var(--muted);
  line-height: 1.35;
}

.workspace-head,
.grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.dashboard-grid,
.reservation-layout {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 20px;
}

.panel.wide {
  min-width: 0;
}

.role-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.balance-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--green-800);
  color: #fff;
}

.reservation-list,
.action-list {
  display: grid;
  gap: 10px;
}

.reservation-item,
.action-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.data-table th,
.data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.date-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.court-grid {
  display: grid;
  grid-template-columns: 96px repeat(3, minmax(210px, 1fr)) 96px;
  grid-auto-rows: 42px;
  min-width: 860px;
  border: 2px solid #b4b6b3;
  border-radius: 6px;
  overflow-x: auto;
  background: #cfcfcf;
}

.court-grid-head,
.time-cell,
.open-slot {
  min-height: 0;
  padding: 8px;
  border-right: 2px solid #b4b6b3;
  border-bottom: 2px solid #b4b6b3;
}

.court-grid-head {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #347f7a;
  color: #fff;
  font-weight: 850;
  text-align: center;
}

.workspace-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.reservation-board .grid-head h2 {
  font-size: 1.55rem;
}

.court-head {
  font-style: italic;
  font-size: 1.02rem;
}

.time-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3ed9e;
  color: #111;
  font-size: 1rem;
  font-weight: 800;
}

.right-time,
.right-time-head {
  border-right: 0;
}

.open-slot {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  align-items: center;
  background: #d1d1d1;
  color: #17352a;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
}

.open-slot span {
  opacity: 0;
  transition: opacity .15s ease;
}

.open-slot:hover {
  background: #e4f0df;
}

.open-slot:hover span,
.open-slot:focus-visible span {
  opacity: 1;
}

.reservation-block {
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 8px;
  border-right: 2px solid #b4b6b3;
  border-bottom: 2px solid #b4b6b3;
  background: #c7c29d;
  color: #111;
  text-align: center;
  font-size: 1rem;
  line-height: 1.2;
}

.reservation-block small {
  color: rgba(17, 17, 17, .72);
  font-size: .74rem;
  font-weight: 760;
}

.reservation-details-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-page {
  width: min(980px, 100%);
}

.form-page.narrow,
.public-narrow {
  width: min(760px, 100%);
}

.application-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.application-source-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 55, 38, .06);
}

.application-source-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.application-source-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.agreement {
  color: var(--ink);
  line-height: 1.45;
  font-weight: 650;
}

.message-page {
  min-height: 58svh;
}

.person-grid,
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.person-card,
.stat {
  padding: 18px;
}

.role-title {
  color: var(--coral);
  font-weight: 800;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
}

.heatmap-demo.report {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules-content {
  padding: 24px 0;
}

.muted {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  h1 {
    font-size: 3rem;
  }

  .feature-strip,
  .intro-grid,
  .club-intro,
  .info-section,
  .map-section,
  .pro-section,
  .two-col,
  .cta-band,
  .preview-shell,
  .dashboard-grid,
  .reservation-layout,
  .person-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .phone-frame {
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    min-height: 48px;
    padding: 6px 9px;
    overflow-x: auto;
  }

  .brand {
    flex: 0 0 auto;
    gap: 6px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-mark::before,
  .brand-mark::after {
    top: -8px;
    width: 34px;
    height: 44px;
  }

  .brand-mark::before {
    left: -24px;
  }

  .brand-mark::after {
    right: -24px;
  }

  .brand strong {
    font-size: .92rem;
  }

  .brand small {
    display: none;
  }

  .main-nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    grid-column: auto;
    gap: 2px;
    min-width: 0;
    overflow: visible;
  }

  .main-nav a {
    padding: 6px 7px;
    white-space: nowrap;
    font-size: .82rem;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 4px;
  }

  .header-actions .btn.small {
    min-height: 30px;
    padding: 6px 8px;
    font-size: .82rem;
  }

  .user-chip {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 48px);
    padding: 50px 18px;
  }

  .hero-shade {
    background: rgba(13, 39, 28, .64);
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .lede {
    font-size: 1.08rem;
  }

  .hero-actions,
  .workspace-head,
  .grid-head,
  .application-source-card,
  .balance-banner,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .band,
  .feature-strip,
  .cta-band,
  .workspace,
  .form-page,
  .message-page {
    padding: 46px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .court-grid {
    grid-template-columns: 72px repeat(3, 150px) 72px;
    min-width: 594px;
  }

  .date-picker {
    width: 100%;
  }

  .pro-profile {
    grid-template-columns: 1fr;
  }

  .pro-photo img {
    min-height: 300px;
    max-height: 430px;
  }
}
