/* ─── JogMe Website ─── */

:root {
  --primary: #674fa3;
  --primary-light: #f5f0ff;
  --primary-border: #d8c8ff;
  --primary-muted: #9b8bc5;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --border: #ececec;
  --text: #111111;
  --text-secondary: #666666;
  --text-muted: #999999;
  --green: #1e7a38;
  --green-bg: #eaf7ee;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --teal: #0d9488;
  --teal-bg: #f0fdfa;
  --orange: #b54708;
  --orange-bg: #fff7ed;
  --red: #b42318;
  --red-bg: #fff1f1;
  --radius: 16px;
  --radius-sm: 12px;
  --max-width: 960px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

/* ─── Nav ─── */

.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s;
}

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

.nav-links a.active {
  color: var(--primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }
}

/* ─── Hero ─── */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #8b6fc0 100%);
  color: white;
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  background: white;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }
}

/* ─── Sections ─── */

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

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ─── Cards grid ─── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Steps ─── */

.steps {
  display: flex;
  gap: 24px;
  counter-reset: step;
}

.step {
  flex: 1;
  text-align: center;
  counter-increment: step;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .steps {
    flex-direction: column;
    gap: 32px;
  }
}

/* ─── Page content (privacy, terms, etc.) ─── */

.page-header {
  background: var(--primary);
  color: white;
  padding: 48px 24px;
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 800;
}

.page-header p {
  font-size: 15px;
  opacity: 0.85;
  margin-top: 8px;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.page-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 12px;
}

.page-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}

.page-content p,
.page-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.page-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content a {
  color: var(--primary);
  font-weight: 600;
}

/* ─── Info boxes ─── */

.info-box {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box.green {
  background: var(--green-bg);
  border-color: #b9e3c6;
}

.info-box.orange {
  background: var(--orange-bg);
  border-color: #fed7aa;
}

.info-box.red {
  background: var(--red-bg);
  border-color: #fecaca;
}

.info-box h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.info-box p {
  font-size: 14px;
  margin-bottom: 0;
}

/* ─── FAQ ─── */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  margin-top: 0;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ─── Contact card ─── */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 32px 0;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card a {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

/* ─── Footer ─── */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ─── Utility ─── */

.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 40px;
}

.mb-lg {
  margin-bottom: 40px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.badge-purple {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-green {
  background: var(--green-bg);
  color: var(--green);
}

.badge-blue {
  background: var(--blue-bg);
  color: var(--blue);
}
