/* ============================================
   PackFam Marketing Site
   Aesthetic: Editorial / Magazine — Warm Utility
   Palette: Parchment + espresso text + terracotta/sage accents
   Fonts: Instrument Serif (display) + Outfit (body)
   Aligned with DESIGN.md — warm earth tones, no teal
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-bg: #FAF8F4;
  --color-bg-alt: #F0EBE3;
  --color-text: #2C2520;
  --color-text-muted: #8A7E74;
  --color-text-light: #B0A79D;
  --color-accent: #C2603F;
  --color-accent-hover: #A34E30;
  --color-accent-light: rgba(194, 96, 63, 0.08);
  --color-sage: #7A8B6F;
  --color-sage-light: rgba(122, 139, 111, 0.10);
  --color-border: #E5DFD6;
  --color-white: #FFFFFF;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  --container-max: 780px;
  --container-wide: 960px;
  --section-gap: 140px;
  --section-gap-mobile: 80px;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-white);
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

em {
  font-family: var(--font-display);
  font-style: italic;
}


/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}


/* --- Divider --- */
.divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-border);
  margin: 0 auto 60px;
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 16px 36px;
  border-radius: 6px;
  font-size: 1.0625rem;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(194, 96, 63, 0.25);
}

.btn-primary .arrow {
  transition: transform 0.25s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(3px);
}


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.35s ease;
  background-color: transparent;
}

.nav.scrolled {
  background-color: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.nav-cta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 8px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.25s ease;
}

.nav-cta:hover {
  border-bottom-color: var(--color-accent);
}


/* ============================================
   HERO — PUSH: Pain Recognition
   ============================================ */
.hero {
  padding: 180px 0 var(--section-gap);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 32px;
}

.hero-headline em {
  color: var(--color-accent);
}

.hero-sub {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  font-weight: 300;
  letter-spacing: 0.02em;
}


/* ============================================
   PUSH DEEPER — Three pain points
   ============================================ */
.push {
  padding-bottom: var(--section-gap);
}

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

.push-card {
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.push-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.push-headline em {
  color: var(--color-accent);
}

.push-body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  font-weight: 300;
}


/* ============================================
   THE TURN — Problem → Solution
   ============================================ */
.turn {
  padding-bottom: var(--section-gap);
  text-align: center;
}

.turn-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.turn-headline em {
  color: var(--color-accent);
}

.turn-body {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}


/* ============================================
   FEATURES — Pull (what PackFam offers)
   ============================================ */
.features {
  padding-bottom: var(--section-gap);
}

.feature {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 24px;
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.feature:first-child {
  border-top: 1px solid var(--color-border);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-sage);
  opacity: 0.4;
  padding-top: 4px;
}

.feature-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  font-weight: 300;
  max-width: 580px;
}


/* ============================================
   HABIT BREAKER — Why current solutions fail
   ============================================ */
.habit {
  padding-bottom: var(--section-gap);
  text-align: center;
}

.habit-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.habit-list {
  display: inline-block;
  text-align: left;
  margin-bottom: 48px;
}

.habit-list li {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  font-weight: 300;
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.habit-list li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--color-text-light);
}

.habit-turn {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.habit-turn em {
  color: var(--color-accent);
}


/* ============================================
   PRICING — The Pull of honest pricing
   ============================================ */
.pricing {
  padding-bottom: var(--section-gap);
  text-align: center;
}

.pricing-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.pricing-headline em {
  color: var(--color-accent);
}

.pricing-compare {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 56px;
  font-weight: 300;
}

.pricing-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 580px;
  margin: 0 auto 56px;
}

.tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 36px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  position: relative;
  background-color: var(--color-white);
}

.tier-lifetime {
  border-color: var(--color-accent);
}

.tier-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.tier-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.tier-lifetime .tier-price {
  color: var(--color-accent);
}

.tier-detail {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 8px;
}

.tier-note {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  font-weight: 300;
}

.pricing-promise {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 460px;
  margin: 0 auto;
}


/* ============================================
   ANXIETY KILLERS — Remove fear of switching
   ============================================ */
.anxiety {
  padding-bottom: var(--section-gap);
}

.anxiety-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 56px;
}

.anxiety-headline em {
  color: var(--color-text-muted);
}

.anxiety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  max-width: 640px;
  margin: 0 auto;
}

.anxiety-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.anxiety-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-sage-light);
  color: var(--color-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

.anxiety-label {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 2px;
}

.anxiety-detail {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.5;
}


/* ============================================
   MANIFESTO — The brand promise
   ============================================ */
.manifesto {
  padding-bottom: var(--section-gap);
  text-align: center;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.manifesto-quote strong {
  color: var(--color-accent);
  font-weight: 400;
}


/* ============================================
   FINAL CTA — Download with iPhone mockup
   ============================================ */
.cta-final {
  padding-bottom: var(--section-gap);
  text-align: center;
}

/* --- CSS-only iPhone mockup --- */
.phone-mockup {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 260px;
  background-color: var(--color-white);
  border: 2.5px solid var(--color-text);
  border-radius: 36px;
  padding: 16px 16px 20px;
  position: relative;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.08),
    0 32px 64px rgba(0, 0, 0, 0.06);
}

.phone-island {
  width: 80px;
  height: 20px;
  background-color: var(--color-text);
  border-radius: 10px;
  margin: 0 auto 20px;
}

.phone-screen {
  padding: 0 8px;
}

.phone-header {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-align: left;
  margin-bottom: 2px;
}

.phone-subheader {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: left;
  margin-bottom: 12px;
  font-weight: 300;
}

.phone-weather {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  color: var(--color-accent);
  background-color: var(--color-accent-light);
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 500;
}

.phone-weather-icon {
  font-size: 0.875rem;
}

.phone-list {
  margin-bottom: 16px;
}

.phone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.8125rem;
}

.phone-item:last-child {
  border-bottom: none;
}

.phone-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  flex-shrink: 0;
  position: relative;
}

.phone-item.checked .phone-check {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.phone-item.checked .phone-check::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5.5px;
  width: 4.5px;
  height: 8px;
  border: solid #FAF8F4;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.phone-item.checked .phone-item-text {
  color: var(--color-text-light);
  text-decoration: line-through;
  text-decoration-color: var(--color-border);
}

.phone-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.phone-progress {
  flex: 1;
  height: 4px;
  background-color: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.phone-progress-bar {
  width: 50%;
  height: 100%;
  background-color: var(--color-accent);
  border-radius: 2px;
  transition: width 1s ease 0.5s;
}

.phone-progress-label {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  font-weight: 300;
}


/* --- CTA text + App Store button --- */
.cta-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 32px;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 12px 24px 12px 18px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.btn-appstore:hover {
  background-color: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.appstore-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1;
}

.appstore-small {
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.appstore-big {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 300;
  font-style: italic;
  font-family: var(--font-display);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-entity {
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 300;
}


/* ============================================
   SUBPAGES — Privacy, Support (prose layout)
   ============================================ */
.page-content {
  padding: 140px 0 80px;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-meta {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  font-weight: 300;
  margin-bottom: 40px;
}

.page-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.page-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 48px;
  margin-bottom: 16px;
}

.page-content h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.4;
  margin-top: 32px;
  margin-bottom: 8px;
}

.page-content p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 16px;
}

.page-content ul {
  margin-bottom: 16px;
  padding-left: 0;
}

.page-content li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  font-weight: 300;
  padding: 4px 0 4px 24px;
  position: relative;
}

.page-content li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--color-text-light);
}

.page-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(194, 96, 63, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.page-content a:hover {
  text-decoration-color: var(--color-accent);
}

.page-content strong {
  font-weight: 500;
  color: var(--color-text);
}

.support-email {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.page-footer-note {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.page-footer-note p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}


/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.push-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.push-card.reveal:nth-child(3) { transition-delay: 0.2s; }

.feature.reveal:nth-child(2) { transition-delay: 0.05s; }
.feature.reveal:nth-child(3) { transition-delay: 0.1s; }
.feature.reveal:nth-child(4) { transition-delay: 0.15s; }

.anxiety-item:nth-child(2) { transition-delay: 0.05s; }
.anxiety-item:nth-child(3) { transition-delay: 0.1s; }
.anxiety-item:nth-child(4) { transition-delay: 0.15s; }
.anxiety-item:nth-child(5) { transition-delay: 0.2s; }
.anxiety-item:nth-child(6) { transition-delay: 0.25s; }


/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-gap: var(--section-gap-mobile);
  }

  .hero {
    padding: 140px 0 var(--section-gap-mobile);
    min-height: auto;
  }

  .push-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .push-card:nth-child(n) {
    transition-delay: 0s;
  }

  .feature {
    grid-template-columns: 48px 1fr;
    gap: 0 16px;
    padding: 36px 0;
  }

  .feature-number {
    font-size: 2rem;
  }

  .pricing-tiers {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .anxiety-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* ============================================
   RESPONSIVE — Small mobile
   ============================================ */
@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-sub {
    font-size: 1.0625rem;
  }

  .push-headline {
    font-size: 1.375rem;
  }

  .feature-headline {
    font-size: 1.375rem;
  }

  .phone-frame {
    width: 230px;
  }

  .manifesto-quote {
    font-size: 1.375rem;
  }
}


/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
