/* ============================================================
   Distance Time Pace Calculator — Shared Stylesheet
   Theme: Purple gradient  #8E25B0 → #AC35C8
   ============================================================ */

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

:root {
  /* Brand purples */
  --purple-950: #4A0E6A;
  --purple-900: #6A1A85;
  --purple-800: #8E25B0;   /* primary */
  --purple-600: #AC35C8;   /* accent */
  --purple-400: #C96BE0;
  --purple-200: #E8B5F5;
  --purple-100: #F3D8FA;
  --purple-50:  #FAF0FC;

  /* Gradients */
  --grad-main:    linear-gradient(135deg, #6A1A85 0%, #8E25B0 55%, #AC35C8 100%);
  --grad-hero:    linear-gradient(150deg, #4A0E6A 0%, #8E25B0 50%, #AC35C8 100%);
  --grad-subtle:  linear-gradient(135deg, #8E25B0 0%, #AC35C8 100%);

  /* Neutral */
  --text-dark:  #0F0716;
  --text-mid:   #3B2448;
  --text-light: #7A6587;
  --white:      #ffffff;
  --surface:    #FDFAFF;
  --border:     #EBD8F5;

  /* UI */
  --radius:     14px;
  --radius-sm:  8px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 3px rgba(142,37,176,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 20px rgba(142,37,176,.14);
  --shadow-lg:  0 12px 48px rgba(142,37,176,.18);
  --glow:       0 0 40px rgba(172,53,200,.35);
  --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(--purple-800); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--purple-900);
  text-decoration: none;
}
.nav__brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.nav__brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav__links a {
  font-size: .875rem;
  color: var(--text-mid);
  font-weight: 500;
  transition: color .15s;
}
.nav__links a:hover { color: var(--purple-800); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding-block: 5.5rem 0;
  background: var(--grad-hero);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 1.1rem;
}
.hero__title em {
  font-style: normal;
  color: var(--purple-200);
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .925rem;
  padding: .8rem 1.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary {
  background: var(--white);
  color: var(--purple-900);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.btn--primary:hover { box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.btn--outline {
  background: rgba(255,255,255,.10);
  border: 2px solid rgba(255,255,255,.55);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,.18); }

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* ---------- Mockup / Screenshot ---------- */
.hero__mockup {
  display: flex;
  justify-content: center;
  padding-top: .5rem;
}
.mockup {
  position: relative;
  width: 270px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.45), var(--glow);
  border: 7px solid rgba(255,255,255,.18);
}
.mockup img {
  width: 100%;
  display: block;
  border-radius: 33px;
}
.mockup__placeholder {
  width: 270px;
  aspect-ratio: 9 / 19.5;
  background: rgba(255,255,255,.07);
  border: 2px dashed rgba(255,255,255,.32);
  border-radius: 33px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  text-align: center;
  padding: 2rem 1.5rem;
}
.mockup__placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: .25rem;
  box-shadow: var(--shadow-md);
}
.mockup__placeholder-icon img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Features ---------- */
.features__intro {
  text-align: center;
  margin-bottom: 3.25rem;
}
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple-800);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.022em;
  color: var(--text-dark);
  margin-bottom: .8rem;
}
.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(275px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-subtle);
  opacity: 0;
  transition: opacity .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }
.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--purple-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}
.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .4rem;
}
.feature-card__desc {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--grad-main);
  color: var(--white);
  text-align: center;
  padding-block: 4.5rem;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.07) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.022em;
  margin-bottom: .75rem;
}
.cta-banner__sub {
  color: rgba(255,255,255,.8);
  margin-bottom: 2.25rem;
  font-size: 1rem;
}
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: .85rem 1.75rem;
  color: var(--purple-900);
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  transition: transform .15s, box-shadow .15s;
}
.play-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  text-decoration: none;
  color: var(--purple-900);
}
.play-badge__icon { width: 28px; height: 28px; flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.55);
  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 {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  color: var(--white);
  font-size: .925rem;
  text-decoration: none;
}
.footer__brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.footer__brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer__links a { color: rgba(255,255,255,.55); transition: color .15s; }
.footer__links a:hover { color: var(--white); text-decoration: none; }

/* ---------- Privacy Policy ---------- */
.policy-hero {
  background: var(--grad-main);
  color: var(--white);
  padding-block: 3.75rem 3.25rem;
  text-align: center;
}
.policy-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.022em;
  margin-bottom: .5rem;
}
.policy-hero__meta { color: rgba(255,255,255,.72); font-size: .9rem; }

.policy-body { padding-block: 3.75rem; }
.policy-body .container { max-width: 780px; }
.policy-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 2.5rem;
  margin-bottom: .65rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--purple-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(--purple-800); }
.policy-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--purple-800);
  margin-top: 2.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav__links { display: none; }
  .section     { padding-block: 3.25rem; }
  .hero        { padding-block: 3.75rem 0; }
  .hero__cta   { margin-bottom: 2.5rem; }
  .mockup, .mockup__placeholder { width: 228px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__brand { justify-content: center; }
  .footer__links { justify-content: center; }
}
