/* ══════════════════════════════════════════════════════
   ACTIVA – Showcase Website Styles
   Design inspired by the Food N Fit Flutter app
   Colors: violetDark #7168D3 · violetLight #B8B3ED
           backgroundVioletLight #F2F1F9 · blackLight #171433
           blueLight #7FE4F0 · cyan #2C98BA · pink #EB5BE4
           yellow #FFCD1D · green #57B138
   Font: Barlow
══════════════════════════════════════════════════════ */

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

:root {
  --violet-dark: #7168d3;
  --violet-light: #b8b3ed;
  --violet-bg: #f2f1f9;
  --violet-bg-d: #e6e4f6;
  --black-light: #171433;
  --blue-light: #7fe4f0;
  --cyan: #2c98ba;
  --pink: #eb5be4;
  --yellow: #ffcd1d;
  --green: #57b138;
  --white: #ffffff;
  --grey-text: #93999a;
  --radius-card: 20px;
  --radius-btn: 12px;
  --shadow-card: 0 8px 32px rgba(113, 104, 211, 0.12);
  --shadow-hover: 0 16px 48px rgba(113, 104, 211, 0.22);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Barlow", system-ui, sans-serif;
  background: var(--white);
  color: var(--black-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ─────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  color: #4a4a6a;
}

/* ── Buttons ────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--violet-dark), #9b93ee);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: "Barlow", sans-serif;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(113, 104, 211, 0.4);
}
.btn-primary.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 14px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet-dark);
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: "Barlow", sans-serif;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid var(--violet-bg-d);
}
.btn-ghost:hover {
  background: var(--violet-bg);
  border-color: var(--violet-light);
}

.btn-outline {
  display: block;
  text-align: center;
  color: var(--violet-dark);
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-family: "Barlow", sans-serif;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid var(--violet-light);
  width: 100%;
}
.btn-outline:hover {
  background: var(--violet-bg);
}

/* ── Section Helpers ───────────────────────── */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-badge {
  display: inline-block;
  background: var(--violet-bg);
  color: var(--violet-dark);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-subtitle {
  max-width: 540px;
  margin: 12px auto 0;
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(113, 104, 211, 0.1);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(113, 104, 211, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--violet-dark);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: #4a4a6a;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.nav-links a:hover {
  color: var(--violet-dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  background: var(--violet-bg);
  border-radius: 30px;
  padding: 4px;
  gap: 2px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--grey-text);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: "Barlow", sans-serif;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--violet-dark);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  background: linear-gradient(
    160deg,
    var(--white) 0%,
    var(--violet-bg) 50%,
    var(--violet-bg-d) 100%
  );
  overflow: hidden;
}

/* Background blobs */
.hero-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--violet-light) 0%, transparent 70%);
  top: -200px;
  right: -150px;
}
.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue-light) 0%, transparent 70%);
  bottom: 50px;
  left: -100px;
}
.blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  top: 40%;
  right: 20%;
  opacity: 0.15;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero Text */
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--violet-bg-d), var(--violet-bg));
  color: var(--violet-dark);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid var(--violet-light);
}
.hero-title {
  background: linear-gradient(
    135deg,
    var(--black-light) 0%,
    var(--violet-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(113, 104, 211, 0.1);
  backdrop-filter: blur(8px);
  width: fit-content;
}
.stat {
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--violet-dark);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--grey-text);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--violet-bg-d);
}

/* Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
}
.phone-frame {
  width: 260px;
  height: 520px;
  background: var(--black-light);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(23, 20, 51, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: var(--black-light);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 36px;
  overflow: hidden;
}
.app-screen {
  background: var(--violet-bg);
  min-height: 100%;
  padding: 32px 12px 12px;
}
.app-header {
  margin-bottom: 12px;
}
.app-greeting {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black-light);
}
.app-date {
  font-size: 0.7rem;
  color: var(--grey-text);
}

/* Dashboard cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.dash-card {
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(113, 104, 211, 0.08);
}
.dash-icon {
  font-size: 1rem;
  margin-bottom: 2px;
}
.dash-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--black-light);
}
.dash-label {
  font-size: 0.6rem;
  color: var(--grey-text);
  margin-bottom: 4px;
}
.progress-bar {
  height: 3px;
  background: var(--violet-bg-d);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}
.cal-fill {
  background: linear-gradient(90deg, var(--violet-dark), #9b93ee);
}
.steps-fill {
  background: linear-gradient(90deg, var(--cyan), var(--blue-light));
}
.water-fill {
  background: linear-gradient(90deg, var(--blue-light), #3ee5f5);
}
.prot-fill {
  background: linear-gradient(90deg, var(--pink), #d062cc);
}

/* Macro section */
.macro-section {
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.macro-ring-wrap {
  flex-shrink: 0;
}
.macro-ring {
  display: block;
}
.macro-labels {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.macro-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.macro-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.macro-name {
  font-size: 0.55rem;
  color: var(--grey-text);
  flex: 1;
}
.macro-val {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--black-light);
}

/* Phone shadow */
.phone-shadow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 40px;
  background: radial-gradient(
    ellipse,
    rgba(113, 104, 211, 0.3) 0%,
    transparent 70%
  );
}

/* Floating chips */
.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(113, 104, 211, 0.15);
  border: 1px solid rgba(113, 104, 211, 0.1);
  animation: float 4s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
.floating-chip span {
  font-size: 1.2rem;
}
.chip-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--black-light);
}
.chip-lbl {
  font-size: 0.65rem;
  color: var(--grey-text);
}

.chip-sleep {
  top: 80px;
  right: -20px;
  animation-delay: 0s;
}
.chip-heart {
  bottom: 120px;
  right: -30px;
  animation-delay: 1.3s;
}
.chip-workout {
  bottom: 60px;
  left: -40px;
  animation-delay: 2.6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Wave */
.wave-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
}
.wave-separator svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ═══════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════ */
.features {
  background: var(--violet-bg);
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid rgba(113, 104, 211, 0.06);
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet-dark), var(--violet-light));
  opacity: 0;
  transition: var(--transition);
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feat-card:hover::before {
  opacity: 1;
}

.feat-large {
  grid-column: span 2;
}

.feat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feat-emoji {
  font-size: 1.5rem;
}

.feat-card h3 {
  margin-bottom: 8px;
  color: var(--black-light);
}
.feat-card p {
  font-size: 0.92rem;
}

.feat-tag {
  display: inline-block;
  margin-top: 14px;
  background: var(--violet-bg);
  color: var(--violet-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.feat-stats-row {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--violet-bg-d);
}
.feat-stat-val {
  font-size: 1rem;
  font-weight: 800;
}
.feat-stat-lbl {
  font-size: 0.72rem;
  color: var(--grey-text);
  margin-top: 2px;
}

/* Integration logos */
.integration-logos {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.int-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}
.int-logo.apple {
  background: #000;
  color: #fff;
}
.int-logo.google {
  background: #f1f8e9;
  color: #2e7d32;
}

/* Apple HealthKit compatibility badge */
.healthkit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #fce4ec, #fde8f5);
  border: 1px solid rgba(235, 91, 228, 0.25);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c0184e;
  letter-spacing: 0.02em;
}

/* HealthKit line in pricing */
.feat-healthkit {
  color: #c0184e;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════ */
.how-it-works {
  background: var(--white);
}

.steps-wrapper {
  position: relative;
  margin-bottom: 56px;
}
.steps-connector {
  position: absolute;
  top: 68px;
  left: calc(16.666% + 20px);
  right: calc(16.666% + 20px);
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--violet-light),
    var(--violet-dark),
    var(--violet-light)
  );
  z-index: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}
.step-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-card);
  background: var(--violet-bg);
  border: 1px solid var(--violet-bg-d);
  transition: var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.step-card-highlight {
  background: linear-gradient(160deg, var(--violet-dark), #9b93ee);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 20px 48px rgba(113, 104, 211, 0.35);
}
.step-card-highlight p {
  color: rgba(255, 255, 255, 0.8);
}
.step-card-highlight h3 {
  color: var(--white);
}

.step-number {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--violet-dark);
  margin-bottom: 16px;
}
.step-card-highlight .step-number {
  color: rgba(255, 255, 255, 0.7);
}
.step-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 {
  margin-bottom: 8px;
  color: var(--black-light);
}
.step-card p {
  font-size: 0.9rem;
}

/* Onboarding screens */
.onboarding-screens {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ob-screen {
  width: 200px;
  background: var(--violet-bg);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid transparent;
  transition: var(--transition);
}
.ob-screen:hover {
  border-color: var(--violet-light);
  box-shadow: var(--shadow-card);
}
.ob-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.ob-badge.violet {
  background: var(--violet-dark);
}
.ob-badge.cyan {
  background: var(--cyan);
}
.ob-badge.pink {
  background: var(--pink);
}
.ob-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--black-light);
  margin-bottom: 8px;
}
.ob-check {
  font-size: 0.78rem;
  color: var(--grey-text);
  height: 20px;
}
.ob-check.active {
  color: var(--green);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════ */
.testimonials {
  background: var(--violet-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.testi-featured {
  background: linear-gradient(160deg, var(--violet-dark), #9b93ee);
  color: var(--white);
}
.testi-featured p,
.testi-featured .testi-role {
  color: rgba(255, 255, 255, 0.8);
}
.testi-featured .testi-name,
.testi-featured .testi-stars {
  color: var(--white);
}

.testi-stars {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: 2px;
}
.testi-text {
  font-size: 0.95rem;
  font-style: italic;
  flex: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testi-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--black-light);
}
.testi-role {
  font-size: 0.75rem;
  color: var(--grey-text);
}

/* ═══════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════ */
.pricing {
  position: relative;
  background: var(--white);
  overflow: hidden;
}
.pricing-bg-blob {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--violet-bg) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.price-card {
  background: var(--white);
  border: 1px solid rgba(113, 104, 211, 0.15);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
}
.price-card:hover {
  box-shadow: var(--shadow-hover);
}

.price-featured {
  background: linear-gradient(160deg, var(--violet-dark), #9b93ee);
  border: none;
  transform: scale(1.04);
  box-shadow: 0 24px 64px rgba(113, 104, 211, 0.4);
  color: var(--white);
}
.price-featured:hover {
  transform: scale(1.06);
}

.price-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--black-light);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.price-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(113, 104, 211, 0.1);
}
.price-featured .price-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.price-plan {
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-text);
  margin-bottom: 8px;
}
.price-featured .price-plan {
  color: rgba(255, 255, 255, 0.8);
}
.price-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  margin: 8px 0;
}
.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 8px;
}
.price-value {
  font-size: 3.5rem;
  font-weight: 800;
}
.price-cents {
  font-size: 1.8rem;
}
.price-period {
  font-size: 0.82rem;
  color: var(--grey-text);
}
.price-featured .price-period {
  color: rgba(255, 255, 255, 0.7);
}
.price-featured .price-currency,
.price-featured .price-value {
  color: var(--white);
}

.price-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-features li {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feat-yes {
  color: var(--black-light);
}
.price-featured .feat-yes {
  color: rgba(255, 255, 255, 0.9);
}
.feat-no {
  color: var(--grey-text);
}

.price-featured .btn-primary {
  background: var(--white);
  color: var(--violet-dark);
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 14px;
}
.price-featured .btn-primary:hover {
  background: var(--violet-bg);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.price-savings {
  text-align: center;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   DOWNLOAD CTA
═══════════════════════════════════════════════ */
.download-cta {
  position: relative;
  background: linear-gradient(135deg, var(--black-light), #2a2460);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0;
}
.download-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(113, 104, 211, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(127, 228, 240, 0.2) 0%,
      transparent 40%
    );
  pointer-events: none;
}

.download-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.download-text h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.download-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.store-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.store-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.store-badge.coming-soon {
  position: relative;
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}
.store-badge.coming-soon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}
.coming-soon-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ffd166;
  color: #1a1a2e;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.store-sub {
  font-size: 0.7rem;
  opacity: 0.7;
}
.store-name {
  font-size: 1rem;
  font-weight: 700;
}

/* Download phones illustration */
.download-visual {
  display: flex;
  justify-content: center;
}
.download-phones {
  position: relative;
  width: 260px;
  height: 300px;
}
.dl-phone {
  position: absolute;
  width: 160px;
  height: 280px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.dl-phone-back {
  left: 0;
  top: 20px;
  transform: rotate(-8deg);
}
.dl-phone-front {
  right: 0;
  top: 0;
  transform: rotate(4deg);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}
.dl-phone-screen {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  margin: 8px;
  height: calc(100% - 16px);
}

.dl-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
  padding: 4px 0;
}
.dl-bar {
  flex: 1;
  border-radius: 3px;
  min-height: 8px;
}

.dl-ring-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

/* ═══════════════════════════════════════════════
   LEGAL
═══════════════════════════════════════════════ */
.legal {
  background: linear-gradient(180deg, #fbfaff 0%, #f5f3fe 100%);
  border-top: 1px solid var(--violet-bg-d);
  border-bottom: 1px solid var(--violet-bg-d);
}
.legal-header {
  margin-bottom: 40px;
}
.legal-subtitle {
  max-width: 760px;
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.legal-card {
  background: var(--white);
  border: 1px solid var(--violet-bg-d);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(113, 104, 211, 0.08);
}
.legal-card h3 {
  color: var(--violet-dark);
  margin-bottom: 14px;
}
.legal-card p {
  font-size: 0.92rem;
  color: #4a4a6a;
}
.legal-card p + p {
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: #0d0b24;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand .nav-logo .logo-text {
  color: var(--white);
}
.footer-tagline {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--violet-dark);
  color: var(--white);
  border-color: var(--violet-dark);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.87rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--violet-light);
}

/* Formula column in footer */
.footer-col-science .formula-block {
  margin-bottom: 18px;
}
.footer-col-science .formula-label {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.footer-col-science .formula-eq {
  font-family: "Barlow", monospace;
  font-size: 0.82rem;
  color: var(--violet-light);
  background: rgba(113, 104, 211, 0.15);
  border: 1px solid rgba(113, 104, 211, 0.3);
  border-radius: 6px;
  padding: 5px 10px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.footer-col-science .formula-scale {
  list-style: none;
  padding: 0;
  margin: 0 0 6px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-col-science .formula-scale li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-col-science .scale-range {
  display: inline-block;
  min-width: 72px;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.footer-col-science .scale-low {
  background: rgba(127, 228, 240, 0.15);
  color: #7fe4f0;
}
.footer-col-science .scale-ok {
  background: rgba(87, 177, 56, 0.2);
  color: #57b138;
}
.footer-col-science .scale-warn {
  background: rgba(255, 205, 29, 0.15);
  color: #ffcd1d;
}
.footer-col-science .scale-high {
  background: rgba(235, 91, 228, 0.15);
  color: #eb5be4;
}
.footer-col-science .formula-source {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.28);
  font-style: italic;
  margin: 2px 0 0;
}
.footer-formulas-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--violet-light);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity var(--transition);
}
.footer-formulas-cta:hover {
  opacity: 1;
}

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}
.footer-made {
  color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feat-large {
    grid-column: span 2;
  }
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  /* Nav */
  .nav-links {
    display: none;
  }
  .nav-right {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .nav-inner {
    gap: 0;
  }

  /* Mobile menu open */
  .navbar.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--violet-bg-d);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  .navbar.menu-open .nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: calc(72px + 16px * 3 + 80px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 0 24px 24px;
    gap: 12px;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-text {
    order: 1;
  }
  .hero-visual {
    order: 2;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-stats {
    margin: 0 auto;
  }
  .chip-workout {
    left: -10px;
  }
  .chip-heart {
    right: -10px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feat-large {
    grid-column: span 1;
  }

  /* Steps */
  .steps-connector {
    display: none;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .price-featured {
    transform: none;
    order: -1;
  }
  .price-featured:hover {
    transform: none;
  }

  /* Download */
  .download-inner {
    grid-template-columns: 1fr;
  }
  .download-visual {
    display: none;
  }
  .legal-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  /* Onboarding screens */
  .onboarding-screens {
    gap: 10px;
  }
  .ob-screen {
    width: 160px;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
  .stat-divider {
    width: 80%;
    height: 1px;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
  .phone-frame {
    width: 220px;
    height: 440px;
  }
  .chip-sleep {
    top: 60px;
    right: 0;
  }
  .chip-heart {
    right: 0;
  }
  .chip-workout {
    left: 0;
  }
  .store-badges {
    flex-direction: column;
  }
}
