/* ===== friendkeeper Landing Page Styles ===== */

/* --- Design Tokens --- */
:root {
  --coral: #E07A5F;
  --coral-light: #E8947D;
  --coral-dark: #C75B4A;
  --cream: #F5F0E8;
  --cream-dark: #EDE6D8;
  --sage: #8B9E7E;
  --sage-dark: #6E8462;
  --sage-light: #A3B496;
  --gold: #D4A852;
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --text-primary: #2C2420;
  --text-secondary: #7A6E66;
  --text-on-primary: #FFFFFF;
  --border: #E5DDD4;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1080px;
  --section-padding: 80px 24px;
}

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

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

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(224, 122, 95, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-on-primary);
  letter-spacing: -0.02em;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--text-on-primary);
  color: var(--coral);
  font-weight: 600;
  font-size: 14px;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Hero --- */
.hero {
  background: var(--coral);
  padding: 140px 24px 80px;
  text-align: center;
  color: var(--text-on-primary);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  border-radius: 40px 40px 0 0;
}

.hero-icon {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  margin: 0 auto 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.app-store-badge {
  height: 54px;
  transition: transform 0.2s;
}

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

.android-note {
  font-size: 14px;
  opacity: 0.75;
  font-style: italic;
}

/* --- Features --- */
.features {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
  background: var(--bg);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 12px;
}

.features h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  max-width: 500px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 36, 32, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-icon.coral {
  background: rgba(224, 122, 95, 0.12);
}

.feature-icon.sage {
  background: rgba(139, 158, 126, 0.12);
}

.feature-icon.gold {
  background: rgba(212, 168, 82, 0.12);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Screenshots --- */
.screenshots {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
  background: var(--cream);
  text-align: center;
  overflow: hidden;
}

.screenshots-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.screenshots h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.screenshots > .section-subtitle {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 48px;
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 16px;
}

.phone-frame {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(44, 36, 32, 0.1);
}

.phone-frame img {
  width: 100%;
  border-radius: 18px;
}

.phone-placeholder {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 18px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* --- Bottom CTA --- */
.bottom-cta {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
  background: var(--bg);
  text-align: center;
}

.bottom-cta-inner {
  max-width: 520px;
  margin: 0 auto;
}

.bottom-cta h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.bottom-cta p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 32px;
}

.bottom-cta .app-store-badge {
  margin: 0 auto;
}

.bottom-cta .android-note {
  margin-top: 12px;
  color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* --- Privacy Page --- */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.privacy-content h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.privacy-content .last-updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 40px;
}

.privacy-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
}

.privacy-content p,
.privacy-content ul {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.privacy-content ul {
  padding-left: 24px;
}

.privacy-content li {
  margin-bottom: 8px;
}

.privacy-content a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-content a:hover {
  color: var(--coral-dark);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 56px 20px;
  }

  .hero {
    padding: 120px 20px 64px;
  }

  .hero-icon {
    width: 110px;
    height: 110px;
    border-radius: 26px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .phone-frame {
    width: 180px;
  }

  .screenshots-scroll {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
  }

  .phone-frame {
    scroll-snap-align: center;
  }
}

@media (max-width: 480px) {
  .nav-logo span {
    display: none;
  }

  .hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .phone-frame {
    width: 160px;
  }
}
