/* ═══════════════════════════════════════════════════════════════
   Lifeprint — Landing Page Styles
   "Where plans become practice"
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

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

:root {
  /* Accent */
  --accent: #E8573D;
  --accent-hover: #EF6E56;
  --accent-pressed: #D04430;
  --accent-light: #FEF2F0;
  --accent-100: #FDE1DC;

  /* Grays */
  --bg: #F8F9FA;
  --card: #FFFFFF;
  --card-alt: #F1F3F5;
  --border: #E2E6EA;
  --heading: #404A54;
  --body: #5A6570;
  --muted: #7C8894;
  --subtle: #A4ADB8;

  /* Semantic */
  --success: #22C55E;
  --info: #3B82F6;
  --warning: #F59E0B;

  /* Surfaces */
  --dark-bg: #181D23;
  --dark-card: #2A3139;

  /* Typography */
  --font-display: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container: 1120px;
  --container-narrow: 720px;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0px 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0px 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0px 12px 32px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
}

img {
  max-width: 100%;
}

img, svg {
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.2s; }
.reveal-d3 { animation-delay: 0.3s; }
.reveal-d4 { animation-delay: 0.4s; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav__logo span {
  color: var(--accent);
}

.nav__icon {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--heading);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: white !important;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: background 0.2s, transform 0.15s;
}

.nav__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}


@media (max-width: 640px) {
  .nav__links li:not(:last-child) {
    display: none;
  }

  .nav__links {
    gap: 0;
  }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: calc(64px + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-100);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.hero__pill svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.hero__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ── Store Badges ───────────────────────────────────────────── */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  background: var(--dark-bg);
  color: white;
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.store-badge:hover {
  background: var(--dark-card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-badge__text {
  text-align: left;
  line-height: 1.2;
}

.store-badge__label {
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-badge__store {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ── Section Base ───────────────────────────────────────────── */
.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background: var(--card);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin: var(--space-sm) auto 0;
  line-height: 1.6;
}

/* ── Feature Cards ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
}

.section--alt .feature-card {
  background: var(--bg);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__icon--accent {
  background: var(--accent-light);
  color: var(--accent);
}

.feature-card__icon--info {
  background: #EFF6FF;
  color: var(--info);
}

.feature-card__icon--success {
  background: #F0FDF4;
  color: var(--success);
}

.feature-card__icon--warning {
  background: #FFFBEB;
  color: var(--warning);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

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

/* ── Steps ──────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
}

/* Connecting line behind steps */
.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: var(--border);
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border: 2px solid var(--accent-100);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .steps::before {
    display: none;
  }
}

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-card {
  background: var(--dark-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 87, 61, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card__content {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.cta-card p {
  color: var(--subtle);
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
}

.cta-card .store-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-card .store-badge:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
}

.footer__brand span {
  color: var(--accent);
}

.footer__icon {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  border-radius: 5px;
  flex-shrink: 0;
  object-fit: contain;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--heading);
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--subtle);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

/* ── Legal Pages ────────────────────────────────────────────── */
.legal {
  padding: calc(64px + var(--space-xl)) 0 var(--space-3xl);
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.legal__date {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: var(--space-xl);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.legal p {
  margin-bottom: var(--space-sm);
  line-height: 1.75;
}

.legal ul, .legal ol {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
}

.legal li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--accent-pressed);
}

.legal strong {
  color: var(--heading);
  font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --space-3xl: 4rem;
    --space-2xl: 3rem;
    --space-xl: 2rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero__badges {
    flex-direction: column;
    align-items: stretch;
  }

  .store-badge {
    justify-content: center;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }
}
