/* GymSync marketing — matches app palette (constants/colors.ts) */
:root {
  --bg: #0a0a0a;
  --card: #1a1a1a;
  --text: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.6);
  --dim: rgba(255, 255, 255, 0.4);
  --faint: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #f9c38e;
  --accent-2: #959bff;
  --mint: #93e2d5;
  --radius: 16px;
  --radius-sm: 12px;
  --max: 920px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Quicksand", system-ui, sans-serif;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 20% -10%, rgba(249, 195, 142, 0.14), transparent),
    radial-gradient(ellipse 60% 50% at 100% 20%, rgba(149, 155, 255, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(147, 226, 213, 0.07), transparent),
    var(--bg);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0a0a0a;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.35rem 0;
}

nav a:hover {
  color: var(--text);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.hero {
  padding: 2rem 0 3rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
  font-weight: 500;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: rgba(26, 26, 26, 0.85);
  color: var(--muted);
}

.pill.accent {
  border-color: rgba(249, 195, 142, 0.35);
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.25rem;
}

.card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.orange {
  background: var(--accent);
}
.dot.purple {
  background: var(--accent-2);
}
.dot.mint {
 background: var(--mint);
}
.dot.pink {
  background: #ff9b9b;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin: 3rem 0 1rem;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--faint);
  color: var(--dim);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--muted);
}

/* Legal / support pages */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.prose {
  color: var(--muted);
  font-size: 1rem;
}

.prose h2 {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.contact-box p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.contact-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column;
    height: auto;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    align-items: flex-start;
  }

  header {
    height: auto;
  }

  nav ul {
    justify-content: flex-start;
  }
}
