/* Club Court Manager — marketing / onboarding pages */
:root {
  --navy: #1b3a6b;
  --teal: #2a9d8f;
  --gold: #e9c46a;
  --warm: #f9f6f0;
  --text: #1a2332;
  --muted: #5c6678;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  background: var(--warm);
  line-height: 1.5;
}

a { color: var(--teal); }

.site-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 24px;
}
.site-header .inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .brand {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}
.site-header .brand-wordmark {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}
.site-header .brand-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-header .brand-logo {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
}
.site-header .brand-product {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.site-header .brand-product-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(240px, 58vw);
  object-fit: contain;
}
.site-header nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  margin-left: 16px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.site-header nav a:hover { color: #fff; }
.site-header nav a.active { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 0;
  max-width: 100%;
}
.site-header nav .nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  flex-wrap: wrap;
}
.site-header nav .nav-app { margin-left: 12px; }
.site-header nav .btn-nav {
  padding: 8px 14px;
  font-size: 0.85rem;
  margin-left: 4px;
  white-space: nowrap;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.container.wide { max-width: 960px; }

.hero {
  text-align: center;
  padding: 48px 20px 32px;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  margin: 0 0 12px;
  font-weight: 600;
}
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero-company .company-hero-logo {
  display: block;
  max-width: min(480px, 92vw);
  height: auto;
  margin: 0 auto 20px;
}

.product-card .product-logo {
  display: block;
  max-width: min(320px, 92vw);
  height: auto;
  margin: 0 0 16px;
}

.product-card .product-logo-on-white {
  max-width: min(200px, 56vw);
}

.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.05); }
.btn.secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(27, 58, 107, 0.08);
  margin-bottom: 20px;
}
.card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--navy);
}
.muted { color: var(--muted); font-size: 0.95rem; }

label {
  display: block;
  font-weight: 500;
  margin: 16px 0 6px;
  font-size: 0.9rem;
}
input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
input:focus, select:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}

.slug-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.slug-row input { flex: 1; min-width: 120px; border-radius: 8px 0 0 8px; }
.slug-suffix {
  padding: 10px 12px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.slug-hint { font-size: 0.85rem; margin-top: 6px; }
.slug-hint.ok { color: var(--teal); }
.slug-hint.err { color: #c0392b; }

.sport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.sport-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 400;
}
.sport-grid label:has(input:checked) {
  border-color: var(--teal);
  background: rgba(42, 157, 143, 0.08);
}

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.step-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #e5e7eb;
  color: var(--muted);
}
.step-pill.active { background: var(--navy); color: #fff; }
.step-pill.done { background: var(--teal); color: #fff; }

.msg {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 16px 0;
  display: none;
}
.msg.show { display: block; }
.msg.ok { background: #d1fae5; color: #065f46; }
.msg.err { background: #fee2e2; color: #991b1b; }

.row-btns {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.feature {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(27, 58, 107, 0.06);
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--navy);
}

footer.site a { color: var(--teal); }

.page-hero {
  text-align: center;
  padding: 36px 20px 20px;
  max-width: 640px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--navy);
  margin: 0 0 10px;
  font-weight: 600;
}
.page-hero p { color: var(--muted); margin: 0; }

.cta-band {
  text-align: center;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  margin: 32px 0 8px;
}
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: 1.35rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0 0 20px; }
.cta-band .btn { background: var(--teal); }
.cta-band .btn.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  margin-left: 10px;
}

.feature-group { margin-bottom: 28px; }
.feature-group h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(42, 157, 143, 0.25);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.feature-list li {
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(27, 58, 107, 0.06);
  font-size: 0.95rem;
}
.feature-list strong { color: var(--navy); display: block; margin-bottom: 2px; }

.steps-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
}
.steps-list li { margin-bottom: 10px; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 12px;
}
.compare-table th,
.compare-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
}
.compare-table th { background: #f3f4f6; color: var(--navy); }
.compare-table td:first-child { font-weight: 500; }

.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: #fff;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 1px 4px rgba(27, 58, 107, 0.06);
}
.faq-list summary {
  padding: 14px 16px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary { border-bottom: 1px solid #e5e7eb; }
.faq-list .faq-body {
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.screenshot-placeholder {
  background: linear-gradient(135deg, #e8f4fc 0%, #f3f4f6 100%);
  border: 2px dashed #c5d0de;
  border-radius: 12px;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 16px 0;
}

.plan-card .plan-price {
  margin: 12px 0 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
}
.plan-card .plan-note { margin: 4px 0 0; font-size: 0.85rem; }

#planGrid .feature,
#planGrid .plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#planGrid .plan-cta {
  margin-top: auto;
  padding-top: 16px;
}

footer.site {
  text-align: center;
  padding: 24px 20px 40px;
  color: var(--muted);
  font-size: 0.85rem;
}
footer.site a { color: var(--teal); }
footer.site .footer-links { margin-top: 8px; font-size: 0.85rem; }

.legal-doc h2 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--navy);
}
.legal-doc h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--navy);
}
.legal-doc p, .legal-doc li {
  line-height: 1.6;
}
.legal-doc p { margin: 0 0 0.75rem; }
.legal-doc code {
  font-size: 0.88em;
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 4px;
}
.feature-list.compact {
  margin: 0;
  padding-left: 1.1rem;
}
.feature-list.compact li {
  margin-bottom: 6px;
  padding: 0;
  border: none;
  background: none;
}
.security-layers .feature { margin-bottom: 0; }
.security-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 12px 0;
}
.security-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 12px 0 16px;
}
.security-table th,
.security-table td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.security-table th {
  background: #f8fafc;
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 720px) {
  .security-cols { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header .inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .site-header nav {
    justify-content: center;
    gap: 8px 12px;
  }
  .site-header nav a { margin-left: 0; }
  .site-header nav .nav-cta {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 4px;
  }
  .cta-band .btn.secondary { margin-left: 0; margin-top: 10px; display: inline-block; }
  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 8px; }
}

@media (max-width: 600px) {
  .site-header nav a { font-size: 0.85rem; }
}

.header-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  min-height: 56px;
}
.header-preview strong {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}
.header-preview img {
  max-height: 48px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  display: block;
}
.header-preview .hide { display: none !important; }

.brand-setup input[type="file"] { margin-top: 6px; }
