/* ===================================================
   The Ultimate Running Calculator — Shared Stylesheet
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #1b4332;
  --green-700: #2d6a4f;
  --green-500: #40916c;
  --green-400: #52b788;
  --green-100: #d8f3dc;
  --green-50:  #f0faf3;
  --text-dark:  #111827;
  --text-mid:   #374151;
  --text-light: #6b7280;
  --white:      #ffffff;
  --radius:     12px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
  --max-w:      1100px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-500); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: 4.5rem; }
.section--alt { background: var(--green-50); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .9rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-900);
  text-decoration: none;
}
.nav__brand-icon {
  width: 32px;
  height: 32px;
  background: var(--green-500);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
}
.nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav__links a {
  font-size: .9rem;
  color: var(--text-mid);
  font-weight: 500;
}
.nav__links a:hover { color: var(--green-500); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding-block: 5rem 4rem;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-500) 100%);
  color: var(--white);
  text-align: center;
}
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.hero__title span { color: var(--green-100); }
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn--primary { background: var(--white); color: var(--green-900); }
.btn--outline { background: transparent; border: 2px solid rgba(255,255,255,.6); color: var(--white); }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Screenshot / Mockup ---------- */
.mockup-wrap {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}
.mockup {
  position: relative;
  width: 260px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  border: 8px solid rgba(255,255,255,.15);
}
.mockup img {
  width: 100%;
  border-radius: 28px;
  display: block;
}
.mockup__placeholder {
  width: 260px;
  aspect-ratio: 9/19.5;
  background: rgba(255,255,255,.08);
  border: 2px dashed rgba(255,255,255,.35);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  text-align: center;
  padding: 2rem;
}
.mockup__placeholder-icon { font-size: 2.5rem; }

/* ---------- Features ---------- */
.features__intro {
  text-align: center;
  margin-bottom: 3rem;
}
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text-dark);
  margin-bottom: .75rem;
}
.section-desc {
  color: var(--text-light);
  max-width: 520px;
  margin-inline: auto;
  font-size: 1.025rem;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .35rem;
}
.feature-card__desc {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: var(--white);
  text-align: center;
  padding-block: 4rem;
}
.cta-banner__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.cta-banner__sub {
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.android-badge {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: .75rem 1.5rem;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s;
}
.android-badge:hover { background: rgba(255,255,255,.22); text-decoration: none; }
.android-badge svg { flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.65);
  padding-block: 2.5rem;
  font-size: .875rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__brand {
  font-weight: 700;
  color: var(--white);
  font-size: .95rem;
}
.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer__links a { color: rgba(255,255,255,.65); }
.footer__links a:hover { color: var(--white); text-decoration: none; }

/* ---------- Privacy Policy ---------- */
.policy-hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: var(--white);
  padding-block: 3.5rem 3rem;
  text-align: center;
}
.policy-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .5rem;
}
.policy-hero__meta { color: rgba(255,255,255,.75); font-size: .9rem; }

.policy-body { padding-block: 3.5rem; }
.policy-body .container { max-width: 780px; }
.policy-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 2.5rem;
  margin-bottom: .6rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--green-100);
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body p { color: var(--text-mid); margin-bottom: .9rem; }
.policy-body ul {
  color: var(--text-mid);
  margin-bottom: .9rem;
  padding-left: 1.4rem;
}
.policy-body li { margin-bottom: .4rem; }
.policy-body a { color: var(--green-500); }
.policy-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--green-500);
  margin-top: 2.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav__links { display: none; }
  .section { padding-block: 3rem; }
  .hero { padding-block: 3.5rem 3rem; }
  .mockup, .mockup__placeholder { width: 220px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
