/* ============================================================
   LANDING PAGE — Section-specific styles
   ============================================================ */

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-section);
  overflow: hidden;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__mesh::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  top: -20%;
  left: -10%;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.12) 0%, transparent 60%);
  filter: blur(60px);
}

.hero__mesh::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -10%;
  right: -5%;
  background: radial-gradient(ellipse, rgba(251, 191, 36, 0.08) 0%, transparent 60%);
  filter: blur(60px);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  width: fit-content;
  padding: 0.375rem 0.875rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

.hero__eyebrow span {
  color: var(--primary);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__title em {
  font-style: normal;
  color: var(--primary);
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 0.5vw + 0.9375rem, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 44ch;
}

.hero__ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

.hero__trust-icon {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: var(--radius-full);
  background: var(--primary-muted);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  flex-shrink: 0;
}

/* Phone Mockup */
.hero__phone-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__phone {
  position: relative;
  width: 280px;
  border-radius: 40px;
  background: var(--bg-secondary);
  border: 3px solid var(--bg-elevated);
  box-shadow: var(--shadow-lg),
              inset 0 0 0 1px var(--glass-border),
              0 0 80px rgba(52, 211, 153, 0.08);
  overflow: hidden;
}

.hero__phone-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 37px;
}

/* Floating decorative badges */
.hero__floating-badge {
  position: absolute;
  padding: 0.5rem 0.875rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.hero__floating-badge--protein {
  top: 15%;
  right: -10%;
  transform: rotate(3deg);
  color: var(--primary);
}

.hero__floating-badge--streak {
  bottom: 18%;
  left: -8%;
  transform: rotate(-3deg);
  color: var(--amber-400);
}

@media (max-width: 960px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    align-items: center;
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__phone-wrapper {
    margin-top: var(--space-2xl);
  }

  .hero__phone {
    width: 220px;
    border-radius: 32px;
  }

  .hero__phone-screenshot {
    border-radius: 29px;
  }

  .hero__floating-badge--protein {
    right: 5%;
  }

  .hero__floating-badge--streak {
    left: 5%;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
  }

  .hero__phone {
    width: 180px;
    border-radius: 28px;
  }

  .hero__phone-screenshot {
    border-radius: 25px;
  }
}

/* ========================
   FEATURES
   ======================== */
.features {
  position: relative;
}

/* ========================
   HOW IT WORKS
   ======================== */
.how-it-works {
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl);
  position: relative;
}

/* Connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 2.25rem;
  left: calc(16.67% + 1.5rem);
  right: calc(16.67% + 1.5rem);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0,
    var(--border) 8px,
    transparent 8px,
    transparent 16px
  );
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xl);
  position: relative;
}

.step__number {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}

.step__icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 28ch;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
  }

  .steps::before {
    top: 0;
    bottom: 0;
    left: 1.5rem;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(
      180deg,
      var(--border) 0,
      var(--border) 8px,
      transparent 8px,
      transparent 16px
    );
  }

  .step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .step__number {
    flex-shrink: 0;
    box-shadow: 0 0 0 6px var(--bg);
  }

  .step__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .step__desc {
    margin-inline: 0;
  }
}

/* ========================
   PRO SHOWCASE
   ======================== */
.pro-section {
  position: relative;
  overflow: hidden;
}

.pro-section__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pro-section__mesh::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -20%;
  right: -10%;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
  filter: blur(60px);
}

.pro-section__mesh::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: -10%;
  left: -5%;
  background: radial-gradient(ellipse, rgba(192, 132, 252, 0.06) 0%, transparent 60%);
  filter: blur(60px);
}

.pro-section__content {
  position: relative;
  z-index: 1;
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .pro-grid {
    grid-template-columns: 1fr;
  }
}

/* Trial Timeline */
.timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: var(--space-4xl);
  padding: var(--space-2xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  flex: 0 0 auto;
  min-width: 100px;
}

.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  border: 3px solid;
  position: relative;
}

.timeline__dot--active {
  border-color: var(--primary);
  background: var(--primary);
}

.timeline__dot--warn {
  border-color: var(--amber-400);
  background: var(--amber-400);
}

.timeline__dot--muted {
  border-color: var(--text-tertiary);
  background: var(--text-tertiary);
}

.timeline__line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 40px;
}

.timeline__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text);
}

.timeline__sublabel {
  font-size: var(--text-caption);
  color: var(--text-tertiary);
}

@media (max-width: 480px) {
  .timeline {
    flex-direction: column;
    gap: var(--space-lg);
  }
  .timeline__line {
    width: 2px;
    height: 24px;
    min-width: auto;
  }
}

/* ========================
   PRICING
   ======================== */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  max-width: 720px;
  margin-inline: auto;
}

.pricing-card {
  position: relative;
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 40px rgba(52, 211, 153, 0.08);
}

.pricing-card__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.pricing-card__original {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.pricing-card__save {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: var(--primary-muted);
  color: var(--primary);
  font-size: var(--text-caption);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing-card__check {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.pricing-note {
  text-align: center;
  width: 100%;
  margin-top: var(--space-2xl);
  margin-inline: auto;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

@media (max-width: 640px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* ========================
   FINAL CTA
   ======================== */
.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.final-cta__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.final-cta__mesh::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(52, 211, 153, 0.1) 0%, transparent 60%);
}

.final-cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}

.final-cta__title {
  max-width: 16ch;
  margin-inline: auto;
}

.final-cta__subtitle {
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 40ch;
}

.app-store-badge {
  display: inline-flex;
  height: 54px;
  transition: transform var(--duration-fast) var(--ease-spring),
              opacity var(--duration-fast);
}

.app-store-badge:hover {
  transform: scale(1.05);
}

.app-store-badge svg {
  height: 100%;
  width: auto;
}

.final-cta__note {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ========================
   FAQ (Landing)
   ======================== */
.faq--landing {
  max-width: 720px;
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  background: var(--card);
  transition: border-color var(--duration-fast);
}

.faq__item[open] {
  border-color: var(--primary-muted);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text);
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  transition: color var(--duration-fast);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-tertiary);
  transition: transform var(--duration-normal) var(--ease-out),
              color var(--duration-fast);
  flex-shrink: 0;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: '\2212';
  color: var(--primary);
}

.faq__item summary:hover {
  color: var(--primary);
}

.faq__answer {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq__answer p {
  max-width: none;
  margin-bottom: var(--space-md);
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

.faq-more {
  text-align: center;
  margin-top: var(--space-3xl);
  font-size: var(--text-sm);
}

.faq-more a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.faq-more a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========================
   FOOTER
   ======================== */
