/* ─────────────────────────────────────────────────────────
   Entour landing — redesign layer (POC)
   Loaded AFTER style.css to override/extend the base theme.
   Light, Astro-inspired: soft glow, gradient accents, depth.
   ───────────────────────────────────────────────────────── */

:root {
  /* Existing brand purple + a complementary accent for gradients */
  --accent: #8b5cf6;
  --accent-light: #b388ff;
  --glow: rgba(94, 53, 177, 0.14);
  --shadow-glow: 0 8px 24px rgba(94, 53, 177, 0.25);
  --shadow-soft: 0 10px 40px rgba(31, 18, 66, 0.12), 0 2px 8px rgba(31, 18, 66, 0.06);

  /* Firmer card border + resting shadow for separation on light bg */
  --card-border: #e4e1ee;
  --shadow-card: 0 1px 2px rgba(31, 18, 66, 0.05), 0 6px 20px rgba(31, 18, 66, 0.07);

  /* Faint purple-tinted band to alternate with white sections */
  --band: #f5f2fb;

  /* Fluid spacing scale */
  --section-y: clamp(48px, 9vw, 96px);
}

/* ── Alternating section bands (depth + rhythm) ──────── */
.levels,
.bento {
  background: var(--band);
}
.showcase,
.why {
  background: #fff;
}
.connect {
  background: var(--band);
}


/* ── Scroll-aware nav ────────────────────────────────── */
.nav {
  transition: box-shadow var(--transition), background var(--transition);
}
.nav.scrolled {
  box-shadow: 0 1px 0 var(--border), 0 6px 24px rgba(31, 18, 66, 0.06);
  background: rgba(255, 255, 255, 0.92);
}

/* ── Hero: glow + gradient headline + product shot ───── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 12vw, 120px) 0 var(--section-y);
  background:
    radial-gradient(60% 55% at 50% -5%, var(--glow), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--text);
}

/* Gradient-filled keyword inside the headline */
.hero h1 .gradient {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 55%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
}

.hero .hero-detail {
  max-width: 540px;
  margin: 0 auto 36px;
}

/* Buttons/badges with lift */
.badges img {
  height: 50px;
  filter: drop-shadow(0 6px 14px rgba(31, 18, 66, 0.14));
  transition: transform var(--transition), filter var(--transition);
}
.badges a:hover img {
  transform: translateY(-3px);
  filter: drop-shadow(0 10px 20px rgba(94, 53, 177, 0.22));
}

/* Hero product mockup */
.hero-product {
  margin: 48px auto 0;
  width: min(300px, 72vw);
  position: relative;
}

/* Hero photo band — real runners carry the emotion.
   Drop the group photo in at public/img/hero-run.jpg; until then a
   purple gradient placeholder shows (missing file degrades gracefully). */
.hero-photo {
  position: relative;
  margin: 48px auto 0;
  width: 100%;
  max-width: 980px;
  height: clamp(240px, 42vw, 460px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background:
    /* subtle brand vignette for cohesion + legibility */
    linear-gradient(180deg, rgba(31, 18, 66, 0) 55%, rgba(69, 39, 160, 0.28) 100%),
    url('/img/hero-run2.jpg') center 40% / cover no-repeat,
    /* fallback if the photo is missing */
    linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
}
.hero-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 70%;
  height: 46px;
  transform: translateX(-50%);
  background: var(--glow);
  filter: blur(30px);
  border-radius: 50%;
  z-index: -1;
}
/* Subtle photographer credit, bottom-right of the hero image */
.hero-credit {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(21, 19, 31, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-credit svg { opacity: 0.85; }
.hero-product::after {
  /* soft glow pooled under the phone */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 78%;
  height: 48px;
  transform: translateX(-50%);
  background: var(--glow);
  filter: blur(28px);
  border-radius: 50%;
  z-index: -1;
}
.hero-product img {
  width: 100%;
  display: block;
  border-radius: 34px;
  border: 6px solid #15131f;
  background: #15131f;
  box-shadow: var(--shadow-soft);
}

/* ── Proof strip (one warm line under hero) ──────────── */
.proof-strip {
  padding: clamp(8px, 3vw, 24px) 0 clamp(36px, 7vw, 64px);
  text-align: center;
  background: transparent;
}
.proof-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(94, 53, 177, 0.18);
  color: var(--text);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  box-shadow: 0 10px 30px rgba(94, 53, 177, 0.18);
}
.proof-line strong {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
/* live pulse dot */
.proof-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5);
  animation: proof-pulse 2.2s ease-out infinite;
}
@keyframes proof-pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .proof-dot { animation: none; }
}

/* ── Section eyebrow (label + dot) ───────────────────── */
.showcase-label {
  position: relative;
  padding-left: 22px;
  background: transparent;
  color: var(--primary);
}
.showcase-label::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(120deg, var(--primary), var(--accent));
}

/* ── Section titles + centered section heads ─────────── */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 10px 0 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(32px, 6vw, 56px);
}

/* ── For every runner (levels) ───────────────────────── */
.levels {
  padding: var(--section-y) 0;
  text-align: center;
}
.levels .showcase-label { margin-bottom: 8px; }
.levels .section-title { max-width: 640px; margin: 10px auto 0; }
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: clamp(32px, 6vw, 48px) 0 28px;
  text-align: left;
}
.level-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.level-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.level-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border: 1px solid var(--border);
}
.level-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }
.level-card p { font-size: 0.95rem; color: var(--text-secondary); margin: 0; line-height: 1.65; }
.levels-footer {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

/* ── Why Entour (differentiator) ─────────────────────── */
.why { padding: var(--section-y) 0; }
.why-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(32px, 6vw, 56px);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 90% at 50% 0%, var(--glow), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.why-card .section-title { margin-top: 10px; }
.why-card p {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 14px auto 0;
  max-width: 600px;
}

/* ── Run with friends (connect spotlight) ────────────── */
.connect { padding: var(--section-y) 0; }
.connect-inner {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.connect-text { flex: 1 1 52%; }
.connect-text .section-title { margin-top: 10px; }
.connect-text > p {
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 14px 0 22px;
}
.connect-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.connect-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}
.connect-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--accent));
}
.connect-media { flex: 0 0 300px; }
.connect-media .showcase-phone { width: min(300px, 70vw); margin: 0 auto; }

@media (max-width: 860px) {
  .connect-inner { flex-direction: column; text-align: center; }
  .connect-text { flex: none; }
  .connect-list { text-align: left; max-width: 420px; margin: 0 auto; }
  .connect-media { flex: none; order: -1; }
}

/* ── Showcase phone depth ────────────────────────────── */
.showcase { padding: var(--section-y) 0; }
.showcase-phone {
  border-radius: 34px;
  border-width: 6px;
  box-shadow: var(--shadow-soft);
}

/* ── Bento feature grid ──────────────────────────────── */
.bento {
  padding: var(--section-y) 0;
  text-align: center;
}
.bento .showcase-label { margin-bottom: 8px; }
.bento .section-title { max-width: 640px; margin: 10px auto 0; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: clamp(32px, 6vw, 48px);
  text-align: left;
}
.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.bento-card::before {
  /* subtle gradient border on hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
}
.bento-card:hover::before { opacity: 1; }
.bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  font-size: 1.4rem;
  background: var(--primary-light);
}
.bento-card h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
.bento-card p { font-size: 0.92rem; color: var(--text-secondary); margin: 0; }

/* ── Primary button glow ─────────────────────────────── */
.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-glow);
  /* Drop the base 2px transparent border — with a gradient fill it leaves a
     hairline "cut" at the rounded corners. Bump padding to keep height. */
  border: none;
  padding: 16px 34px;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.03); }

/* ── Bottom CTA glow ─────────────────────────────────── */
.cta-bottom {
  padding: var(--section-y) 0 calc(var(--section-y) + 8px);
  background:
    radial-gradient(60% 60% at 50% 110%, var(--glow), transparent 70%),
    linear-gradient(0deg, var(--primary-light) 0%, var(--bg) 100%);
}
.cta-bottom h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

/* ── Inner-page cohesion (match homepage design language) ─ */
/* Subtle brand glow at the top of content / CTA / FAQ sections */
.content-section,
.cta-section,
.faq-section {
  position: relative;
  background: radial-gradient(55% 45% at 50% 0%, var(--glow), transparent 70%);
}

/* FAQ: center the heading and give it homepage rhythm */
.faq-section {
  padding: var(--section-y) 0;
  text-align: center;
}
.faq-section .accordion {
  text-align: left;
  margin-top: clamp(28px, 5vw, 44px);
}

/* CTA pages (support/auth/activity) breathing room */
.cta-section {
  padding: var(--section-y) 0;
}

/* Fluid, modern headings to match the homepage */
.content-card h1,
.cta-section h2,
.faq-section h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Unified card depth across inner pages */
.content-card {
  border-color: var(--card-border);
  box-shadow: var(--shadow-card);
}
.accordion-item {
  border-color: var(--card-border);
}

/* ── Sticky mobile download bar ──────────────────────── */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  gap: 10px;
  justify-content: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(31, 18, 66, 0.08);
}
.mobile-cta a { flex: 1 1 0; max-width: 180px; }
.mobile-cta img { width: 100%; height: auto; display: block; }

/* ── Mobile polish ───────────────────────────────────── */
@media (max-width: 600px) {
  .mobile-cta { display: flex; }

  /* keep the sticky bar from covering the footer content */
  .footer { padding-bottom: 88px; }

  .hero { padding-top: clamp(48px, 14vw, 80px); }
  .hero .badges,
  .cta-bottom .badges { display: none; } /* store badges live in the sticky bar on mobile */

  .hero-product { width: min(260px, 70vw); }

  .showcase-item,
  .showcase-item--reverse { gap: 28px; }
  .showcase-phone { width: min(78vw, 280px); }

  .bento-grid { gap: 14px; }
}

/* Larger, easier-to-hit mobile menu links */
@media (max-width: 600px) {
  .nav-links a { padding: 16px 20px; font-size: 1.05rem; }
}
