/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === NEUTRAL VARIABLES (home + privacy pages) === */
:root {
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --border: #E5E7EB;
  --text: #1C1C1E;
  --text-muted: #6B7280;
  --accent: #1C1C1E;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max-width: 1080px;
  --section-pad: 5rem 1.5rem;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; margin-bottom: 0.375rem; }
p { color: var(--text-muted); line-height: 1.75; }

/* === LAYOUT === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
section { padding: var(--section-pad); }

/* === NAV === */
.nav-toggle { display: none; }
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.nav-brand {
  font-weight: 700; font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-toggle-label {
  display: none; cursor: pointer;
  font-size: 1.35rem; line-height: 1;
  color: var(--text); padding: 0.25rem;
  user-select: none;
}

@media (max-width: 600px) {
  .nav-toggle-label { display: block; }
  .nav-links {
    display: none; width: 100%;
    flex-direction: column; align-items: flex-start;
    gap: 0.875rem; padding: 1rem 0 1.25rem;
    border-top: 1px solid var(--border);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* === HERO (home) === */
.hero {
  padding: 6rem 1.5rem;
  text-align: center;
  background: var(--surface);
}
.hero-inner { max-width: 600px; margin: 0 auto; }
.hero h1 { margin-bottom: 1rem; }
.hero > .hero-inner > p { font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

/* === APP HERO === */
.app-hero {
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  background: var(--hero-bg, var(--surface));
}
.app-hero-inner { max-width: 580px; margin: 0 auto; }
.app-hero h1 { color: var(--hero-text, var(--text)); margin-bottom: 0.75rem; }
.app-hero .tagline {
  font-size: 1.15rem;
  color: var(--hero-text, var(--text-muted));
  opacity: var(--hero-p-opacity, 1);
  margin-bottom: 2.25rem;
}
.coming-soon {
  display: block; margin-top: 1rem;
  font-size: 0.75rem; font-weight: 500;
  color: var(--hero-text, var(--text-muted));
  opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { opacity: 0.85; }
.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Store badges */
.store-badges { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn-store {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 600;
  background: var(--store-bg, #1C1C1E);
  color: var(--store-text, #fff);
  transition: opacity 0.2s; white-space: nowrap;
}
.btn-store:hover { opacity: 0.8; }
.btn-store .store-label { display: flex; flex-direction: column; line-height: 1.2; }
.btn-store .store-sub { font-size: 0.625rem; font-weight: 400; opacity: 0.75; }
.btn-store .store-name { font-size: 0.875rem; font-weight: 700; }

/* === SECTION HEADER === */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 520px; margin: 0.5rem auto 0; }
.divider { width: 40px; height: 3px; border-radius: 2px; background: var(--accent); margin: 0.875rem auto 0; }

/* === APP CARDS (home page) === */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.app-card-cadence .app-card-header { background: linear-gradient(135deg, #FFD8E4, #EFC5D1); }
.app-card-waypoint .app-card-header { background: linear-gradient(135deg, #2E7D6F, #1B5E55); }
.app-card-waypoint .app-card-header h3 { color: #fff; }
.app-card-header { padding: 1.75rem 1.5rem 1.5rem; }
.app-card-header h3 { font-size: 1.5rem; }
.app-card-body { padding: 0 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.app-card-body p { font-size: 0.9rem; flex: 1; }
.app-card-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--text);
  transition: gap 0.2s;
}
.app-card-cadence .app-card-link { color: #803450; }
.app-card-waypoint .app-card-link { color: #2E7D6F; }
.app-card-link:hover { gap: 0.6rem; }

/* === FEATURES GRID === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-icon { font-size: 2rem; margin-bottom: 0.875rem; }
.feature-card h3 { font-size: 1rem; }
.feature-card p { font-size: 0.875rem; margin-top: 0.25rem; }

/* === ABOUT === */
.about-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.about-inner p { font-size: 1.05rem; }
.about-inner p + p { margin-top: 1rem; }

/* === CONTACT === */
.contact-inner { text-align: center; }
.contact-email {
  display: inline-block; margin-top: 1.25rem;
  font-size: 1rem; font-weight: 500;
  color: var(--text);
  text-decoration: underline; text-underline-offset: 4px;
  transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.65; }

/* === PRIVACY === */
.privacy-header {
  padding: 4rem 1.5rem 3rem;
  background: var(--surface); text-align: center;
}
.privacy-header h1 { margin-bottom: 0.5rem; }
.privacy-header .meta { font-size: 0.875rem; }
.privacy-body { padding: 3rem 1.5rem 5rem; }
.privacy-content { max-width: 700px; margin: 0 auto; }
.privacy-content .policy-section {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.privacy-content .policy-section:last-child { border-bottom: none; }
.privacy-content h2 {
  font-size: 1rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  margin-bottom: 0.875rem; font-weight: 600;
}
.privacy-content p, .privacy-content li {
  font-size: 0.9375rem; color: var(--text-muted);
}
.privacy-content p + p { margin-top: 0.75rem; }
.privacy-content ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.privacy-content li { margin-bottom: 0.375rem; }
.privacy-content strong { color: var(--text); font-weight: 600; }
.privacy-content .highlight {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 0.75rem 0;
  border-left: 3px solid var(--border);
}

/* === FOOTER === */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer-links {
  display: flex; gap: 1.5rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 0.75rem;
}
.footer-links a {
  font-size: 0.875rem; color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
footer .copyright { font-size: 0.8125rem; color: var(--text-muted); }

/* === SURFACE SECTION === */
.bg-surface { background: var(--surface); }
