/* ----------------------------------------------------------------
   Hoops Hero Stats — site styles
---------------------------------------------------------------- */

:root {
  --bg: #F4EFF3;
  --text: #1F1B1D;
  --text-muted: #5C5359;
  --accent: #D87C3F;
  --accent-hover: #B8632A;
  --surface: #FFFFFF;
  --border: #E5DDE2;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(31, 27, 29, 0.06);
  --shadow-md: 0 6px 24px rgba(31, 27, 29, 0.08);
  --container: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--text-muted); }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 16px; }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 48px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ----------------------------------------------------------------
   Header
---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 243, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.site-logo img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { color: var(--text); font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.site-nav a.btn-primary { color: white; }
.site-nav a.btn-primary:hover { color: white; }

@media (max-width: 600px) {
  .site-nav a:not(.btn-primary) { display: none; }
}

/* ----------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.site-footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
  margin-top: 80px;
}
.site-footer-brand img { height: 100px; width: auto; }
.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.site-footer-brand .footer-tagline {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.site-footer-cols h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.site-footer-cols a {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.site-footer-cols a:hover { color: var(--accent); }
.site-footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .site-footer-inner { grid-template-columns: 1fr; }
  .site-footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ----------------------------------------------------------------
   Hero
---------------------------------------------------------------- */
.hero { padding: 64px 0 80px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 { letter-spacing: -0.02em; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-fineprint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 520px;
}
.waitlist-form input[type="email"] {
  flex: 1 1 240px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: white;
}
.waitlist-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.waitlist-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-status {
  flex-basis: 100%;
  margin: 8px 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.form-status.is-success { color: #2C7A4B; }
.form-status.is-error { color: #B8392A; }

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
}

/* ----------------------------------------------------------------
   Features
---------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(216, 124, 63, 0.12);
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-muted); margin: 0; }

@media (max-width: 700px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   Screenshots
---------------------------------------------------------------- */
.screenshots-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.phone {
  background: #1F1B1D;
  border-radius: 32px;
  padding: 8px;
  box-shadow: var(--shadow-md);
}
.phone img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

@media (max-width: 800px) {
  .screenshots-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 12px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .phone {
    flex: 0 0 75%;
    scroll-snap-align: center;
  }
}

/* ----------------------------------------------------------------
   How it works
---------------------------------------------------------------- */
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.how-steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.how-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.how-steps h3 { margin-bottom: 8px; }
.how-steps p { color: var(--text-muted); margin: 0; }

@media (max-width: 800px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   Contact
---------------------------------------------------------------- */
.container.narrow { max-width: 640px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-card label {
  display: block;
  margin-bottom: 16px;
}
.form-card label span {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-card input[type="text"],
.form-card input[type="email"],
.form-card textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: white;
  resize: vertical;
}
.form-card input:focus,
.form-card textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.form-card .btn { margin-top: 8px; }
.form-fallback {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------
   Legal pages
---------------------------------------------------------------- */
.legal-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.legal-body h1 { font-size: 2rem; margin-top: 0; }
.legal-body h2 { font-size: 1.4rem; margin-top: 2em; }
.legal-body h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal-body p,
.legal-body li { color: var(--text); }
.legal-body ul, .legal-body ol { padding-left: 1.5em; }
.legal-body strong { font-weight: 600; }
.legal-body code {
  background: rgba(31, 27, 29, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
