/* tr8ck / track.health — shared stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #06090f;
  --pink: #f472b6;
  --purple: #a855f7;
  --cyan: #06b6d4;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.10);
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.55);
  --grad: linear-gradient(135deg, #f472b6, #a855f7);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* Background blobs */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 65% 55% at 5% 90%, rgba(167,85,247,0.15) 0%, transparent 55%),
    radial-gradient(ellipse 55% 65% at 95% 10%, rgba(244,114,182,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 45% 45% at 55% 50%, rgba(6,182,212,0.08) 0%, transparent 55%),
    var(--bg);
  pointer-events: none;
}

/* Nav */
.nav-wrap { position: sticky; top: 0; z-index: 50; background: rgba(6,9,15,0.88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem; height: 60px;
  display: flex; align-items: center; gap: 0;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; margin-right: 2rem; }
.nav-logo img { height: 32px; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; flex: 1; }
.nav-link {
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.55);
  text-decoration: none; padding: 0.375rem 0.75rem; border-radius: 0.5rem;
  transition: color 0.18s, background 0.18s; white-space: nowrap;
}
.nav-link:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.06); }
.nav-link.active { color: white; }
.nav-cta {
  background: var(--grad); flex-shrink: 0;
  color: white; font-weight: 600; font-size: 0.875rem;
  padding: 0.5rem 1.25rem; border-radius: 0.75rem;
  text-decoration: none; transition: opacity 0.2s; white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; }
@media (max-width: 560px) {
  .nav-link:not(:first-child) { display: none; }
  .nav-logo { margin-right: auto; }
}

/* Main */
main { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }

/* Glass card */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-top-color: rgba(255,255,255,0.18);
  border-radius: 1.25rem;
  padding: 1.75rem;
  backdrop-filter: blur(48px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.card + .card { margin-top: 1.25rem; }
.card-strong {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.13);
}

/* Typography */
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 0.75rem; }
h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 0.9375rem; font-weight: 500; margin-bottom: 0.25rem; }
p { color: var(--text-muted); line-height: 1.65; }
.intro { font-size: 1rem; margin-bottom: 2rem; max-width: 600px; }

/* Form controls */
.field { margin-bottom: 1rem; }
label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.35rem; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; }
input[type=number], input[type=text], input[type=email], input[type=time], select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 0.75rem;
  color: white;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
input:focus, select:focus { border-color: rgba(244,114,182,0.5); }
input::placeholder { color: rgba(255,255,255,0.2); }
select option { background: #1a1a2e; }

/* Toggle buttons */
.toggle-group { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.toggle-btn {
  padding: 0.375rem 1rem; border-radius: 0.625rem;
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.toggle-btn.active { background: var(--grad); color: white; border-color: transparent; }
.toggle-btn:hover:not(.active) { background: rgba(255,255,255,0.1); color: white; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .grid-2 { grid-template-columns: 1fr; } }

/* Result */
.result-num { font-size: 3rem; font-weight: 700; line-height: 1; }
.result-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }
.result-hidden { display: none; }

/* Button */
.btn {
  display: inline-block; width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--grad); color: white;
  font-weight: 600; font-size: 0.9375rem;
  border: none; border-radius: 0.875rem;
  cursor: pointer; text-align: center;
  text-decoration: none; transition: opacity 0.2s;
  margin-top: 1rem;
}
.btn:hover { opacity: 0.85; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; width: auto; margin-top: 0; }

/* Email capture */
.email-form { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }
.email-form input { flex: 1; min-width: 200px; margin: 0; }
.email-form button { flex-shrink: 0; padding: 0.625rem 1.25rem; background: var(--grad); color: white; font-weight: 600; font-size: 0.875rem; border: none; border-radius: 0.75rem; cursor: pointer; }
.email-success { color: #4ade80; font-size: 0.9rem; margin-top: 0.5rem; display: none; }

/* Bar */
.bar-track { height: 0.625rem; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 0.5rem 0; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--grad); transition: width 0.5s ease; }

/* FAQ */
.faq-item { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-q { font-weight: 500; color: white; margin-bottom: 0.35rem; }
.faq-a { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* Related links */
.related { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.related a {
  padding: 0.375rem 0.875rem; border-radius: 0.625rem;
  font-size: 0.8125rem; color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  text-decoration: none; transition: background 0.2s;
}
.related a:hover { background: rgba(255,255,255,0.1); color: white; }

/* CTA block */
.cta-block { text-align: center; padding: 2rem; }
.cta-block p { margin-bottom: 1rem; }
.cta-block .btn { width: auto; display: inline-block; }



/* Utility */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.text-pink { color: var(--pink); }
.text-purple { color: var(--purple); }
.text-cyan { color: var(--cyan); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Multi-column footer */
footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 1.5rem 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  text-align: left;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  line-height: 1.65;
  max-width: 220px;
  margin: 0;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.35rem;
}
.footer-col a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: white; }
.footer-all-link { color: var(--pink) !important; font-weight: 500; }
.footer-all-link:hover { opacity: 0.8; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.2);
  text-align: center;
  font-size: 0.8rem;
}
footer a { color: rgba(255,255,255,0.4); text-decoration: none; }
footer a:hover { color: white; }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; }
}
