/* ===========================================
   KinPatch Home Page Styles
   Warm, Clean, Elegant Design
   ALL STYLES SCOPED UNDER .home-page
   =========================================== */

/* Smooth scroll for anchor links */
html:has(.home-page) {
  scroll-behavior: smooth;
}

/* Custom Properties */
.home-page {
  --home-cream: #FDF8F3;
  --home-warm-bg: #FBF5EF;
  --home-warm-gray: #F5F0EB;
  --home-peach: #FFF5EB;
  --home-soft-orange: rgba(245, 132, 31, 0.08);
  --font-display: 'Inter', -apple-system, sans-serif;
}

/* ===========================================
   Shared Section Title
   =========================================== */
.home-page .section-title {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.home-page .section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================================
   Primary Button
   =========================================== */
.home-page .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 16px 32px;
  box-shadow: 0 4px 14px rgba(245, 132, 31, 0.3);
  transition: all 0.25s ease;
  text-decoration: none;
}

.home-page .btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(245, 132, 31, 0.4);
  transform: translateY(-2px);
}

.home-page .btn-primary:active {
  transform: translateY(0);
}

.home-page .btn-primary .mdi {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.home-page .btn-primary:hover .mdi {
  transform: translateX(3px);
}

/* ===========================================
   Hero Section — Immersive centered layout
   =========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  margin-top: -64px;
  padding-top: 64px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 18vh;
  overflow: hidden;
}

/* Dark overlay for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1060px;
  padding: 0 24px;
}

/* Title */
.hero-title {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title .hero-accent {
  color: var(--primary);
}

/* Subtitle */
.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Trust line */
.hero-trust-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
}

.hero-trust-line .mdi {
  font-size: 18px;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.home-page .btn-hero {
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 40px;
  width: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 16px 32px;
  border-radius: 40px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  width: auto;
  flex-shrink: 0;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
}

.btn-play-icon .mdi {
  font-size: 18px;
}

.btn-play-icon .mdi-play {
  margin-left: 2px;
}

/* ===========================================
   Sound Familiar Section
   =========================================== */
.sound-familiar {
  background: var(--home-warm-bg);
  padding: 100px 24px 120px;
}

.sound-familiar-inner {
  max-width: 960px;
  margin: 0 auto;
}

.sound-familiar-title {
  text-align: center;
  margin-bottom: 12px;
}

.sound-familiar-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 56px;
}

/* 2x2 card grid */
.familiar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

/* Card */
.familiar-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.familiar-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Avatar circle */
.familiar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.familiar-avatar-orange { background: var(--primary); }
.familiar-avatar-blue { background: #5B8DEF; }
.familiar-avatar-teal { background: #2BB5A0; }
.familiar-avatar-green { background: #4CAF50; }

.familiar-card-info {
  display: flex;
  flex-direction: column;
}

.familiar-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.familiar-card-role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Quote text */
.familiar-card-quote {
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.familiar-card-quote em {
  font-style: normal;
  font-weight: 700;
  color: var(--text);
}

/* Resolve / CTA area */
.familiar-resolve {
  text-align: center;
}

.familiar-resolve-title {
  margin-bottom: 12px;
}

.familiar-resolve-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.familiar-resolve-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.familiar-resolve-text a:hover {
  color: var(--primary-dark);
}

.home-page .btn-familiar {
  display: inline-flex;
  width: auto;
  padding: 18px 40px;
  border-radius: 40px;
  font-size: 17px;
}

/* ===========================================
   Feature Sections (Shared)
   =========================================== */
.feature-section {
  padding: 120px 24px;
  overflow: hidden;
}

.feature-section-alt {
  background: var(--home-cream);
}

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-inner-reverse {
  direction: rtl;
}

.feature-inner-reverse > * {
  direction: ltr;
}

.feature-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 16px;
  background: var(--home-soft-orange);
  padding: 6px 14px;
  border-radius: 20px;
}

.feature-headline {
  margin-bottom: 24px;
}

.feature-headline em,
.feature-headline .accent {
  font-style: normal;
  color: var(--primary);
}

.feature-description {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* Feature Check List */
.feature-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.feature-checks li .mdi {
  color: #22C55E;
  font-size: 20px;
  flex-shrink: 0;
}

/* Feature Links */
.feature-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: gap 0.2s ease;
}

.feature-link:hover {
  gap: 12px;
}

.feature-link .mdi {
  font-size: 18px;
}

.feature-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.feature-link-secondary:hover {
  color: var(--primary);
  gap: 8px;
}

.feature-link-secondary .mdi {
  font-size: 16px;
}

/* ===========================================
   Letters / Time Capsule Mockup
   =========================================== */
.letter-mockup {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  max-width: 420px;
  margin: 0 auto;
}

.letter-locked-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #22C55E;
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.letter-locked-badge .mdi {
  font-size: 13px;
}

.letter-mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 20px;
}

.letter-mockup-avatar {
  width: 44px;
  height: 44px;
  background: var(--home-warm-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.letter-mockup-avatar .mdi {
  font-size: 24px;
  color: var(--text-light);
}

.letter-mockup-info {
  flex: 1;
}

.letter-mockup-info strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.letter-mockup-info span {
  font-size: 13px;
  color: var(--text-secondary);
}

.letter-mockup-mail {
  font-size: 24px;
  color: var(--primary);
}

/* Blurred content lines */
.letter-mockup-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding: 4px 0;
}

.letter-line {
  height: 10px;
  background: var(--home-warm-gray);
  border-radius: 5px;
}

.letter-line-full {
  width: 100%;
}

.letter-line-medium {
  width: 80%;
}

.letter-line-short {
  width: 55%;
}

/* Progress footer */
.letter-mockup-footer {
  background: var(--home-cream);
  border-radius: 14px;
  padding: 18px 20px;
}

.letter-unlock-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.letter-unlock-time {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.letter-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--home-warm-gray);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.letter-progress-fill {
  width: 15%;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}

.letter-unlock-date {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
}

/* ===========================================
   Quotes Showcase
   =========================================== */
.quotes-showcase {
  position: relative;
  height: 400px;
}

.quote-bubble {
  position: absolute;
  background: white;
  padding: 24px 28px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-bubble:hover {
  transform: scale(1.03) rotate(0deg) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.quote-bubble p {
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
}

.quote-bubble span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.quote-bubble-1 {
  top: 0;
  left: 10px;
  transform: rotate(-2deg);
  z-index: 3;
}

.quote-bubble-2 {
  top: 130px;
  right: 0;
  transform: rotate(2deg);
  z-index: 2;
}

.quote-bubble-3 {
  bottom: 0;
  left: 40px;
  transform: rotate(-1deg);
  z-index: 1;
}

/* ===========================================
   Recipe Card Visual
   =========================================== */
.recipe-card-visual {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  max-width: 380px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.recipe-card-visual:hover {
  transform: translateY(-6px);
}

.recipe-card-hero {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
}

.recipe-difficulty {
  background: #3B7A3B;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.recipe-time {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  align-self: flex-end;
  margin-top: auto;
}

.recipe-time .mdi {
  font-size: 14px;
}

.recipe-card-content {
  padding: 24px;
}

.recipe-card-content h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.recipe-story {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Recipe Card Footer */
.recipe-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--divider);
}

.recipe-shared {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recipe-avatars {
  display: flex;
}

.recipe-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  margin-left: -6px;
  border: 2px solid white;
}

.recipe-avatar:first-child {
  margin-left: 0;
}

.recipe-avatar-blue { background: #5B8DEF; }
.recipe-avatar-orange { background: var(--primary); }

.recipe-avatar-more {
  background: var(--home-warm-gray);
  color: var(--text-secondary);
  font-size: 11px;
}

.recipe-shared-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.recipe-heart {
  font-size: 22px;
  color: #E53935;
}

/* ===========================================
   Family Groups — Molecular Diagram
   Diagonal layout, upper-left → lower-right
   ~15% overlap between adjacent circles
   White borders, dark gradients, white text
   =========================================== */
.family-map {
  position: relative;
  width: 520px;
  height: 480px;
  margin: 0 auto;
}

/* ---- Shared node ---- */
.family-node {
  position: absolute;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 15%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  border: 3px solid #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.family-node::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 40%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.family-node > * {
  position: relative;
  z-index: 2;
}

.family-node:hover {
  transform: scale(1.05);
}

.family-node-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.family-node-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* =========================================
   PRIMARY — warm golden, center
   200 px · center (260, 230)
   ========================================= */
.family-node-primary {
  width: 200px;
  height: 200px;
  top: 130px;
  left: 160px;
  background-color: #D4A05A;
  box-shadow: 0 8px 32px rgba(160, 120, 60, 0.25);
  z-index: 4;
}

.family-node-primary .family-node-name {
  font-size: 15px;
  max-width: 140px;
}

.family-node-primary .family-node-label {
  font-size: 10px;
  margin-top: 4px;
}

.family-node-primary:hover {
  box-shadow: 0 12px 40px rgba(160, 120, 60, 0.35);
}

/* =========================================
   ORIGIN — earthy sage / olive tones
   My Parents: 150 px · center (138, 128)
   Wife Parents: 145 px · center (375, 330)
   ========================================= */
.family-node-origin {
  background-color: #8A9A6A;
  z-index: 3;
  justify-content: center;
  padding-bottom: 0;
}

.family-node-origin .family-node-name {
  font-size: 12px;
  max-width: 120px;
}

.family-node-origin .family-node-label {
  font-size: 8px;
  margin-top: 2px;
}

.family-node-my-origin {
  width: 150px;
  height: 150px;
  top: 53px;
  left: 63px;
  box-shadow: 0 6px 24px rgba(100, 120, 70, 0.22);
}

.family-node-my-origin:hover {
  box-shadow: 0 10px 32px rgba(100, 120, 70, 0.30);
}

.family-node-wife-origin {
  width: 145px;
  height: 145px;
  top: 258px;
  left: 302px;
  box-shadow: 0 6px 24px rgba(100, 120, 70, 0.22);
}

.family-node-wife-origin:hover {
  box-shadow: 0 10px 32px rgba(100, 120, 70, 0.30);
}

/* =========================================
   EXTENDED — cool gray-teal
   MyBro:  85 px · center (72, 38)
   HerBro: 80 px · center (468, 280)
   HerSis1:78 px · center (310, 400)
   HerSis2:78 px · center (405, 420)
   ========================================= */
.family-node-extended {
  background-color: #8A9E98;
  z-index: 2;
  justify-content: center;
  padding-bottom: 0;
}

.family-node-extended::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.15) 100%);
}

.family-node-extended .family-node-name {
  font-size: 8px;
  font-weight: 700;
  max-width: 60px;
  line-height: 1.2;
}

.family-node-extended .family-node-label {
  font-size: 5.5px;
  margin-top: 1px;
  padding: 1px 4px;
}

/* My brother — upper-left off my-origin */
.family-node-my-brother {
  width: 85px;
  height: 85px;
  top: 0px;
  left: 30px;
  box-shadow: 0 4px 16px rgba(90, 120, 110, 0.18);
}

.family-node-my-brother:hover {
  box-shadow: 0 8px 24px rgba(90, 120, 110, 0.28);
}

/* Her brother — right of wife-origin */
.family-node-her-brother {
  width: 80px;
  height: 80px;
  top: 240px;
  left: 428px;
  box-shadow: 0 4px 16px rgba(90, 120, 110, 0.18);
}

.family-node-her-brother:hover {
  box-shadow: 0 8px 24px rgba(90, 120, 110, 0.28);
}

/* Her sister 1 — below-left of wife-origin */
.family-node-her-sister-1 {
  width: 78px;
  height: 78px;
  top: 365px;
  left: 270px;
  box-shadow: 0 4px 16px rgba(90, 120, 110, 0.18);
}

.family-node-her-sister-1:hover {
  box-shadow: 0 8px 24px rgba(90, 120, 110, 0.28);
}

/* Her sister 2 — below-right of wife-origin */
.family-node-her-sister-2 {
  width: 78px;
  height: 78px;
  top: 388px;
  left: 365px;
  box-shadow: 0 4px 16px rgba(90, 120, 110, 0.18);
}

.family-node-her-sister-2:hover {
  box-shadow: 0 8px 24px rgba(90, 120, 110, 0.28);
}

/* ===========================================
   Events Card Visual
   =========================================== */
.event-card-visual {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  max-width: 400px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card-visual:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Hero image with date badge + location pill */
.event-card-hero {
  position: relative;
  height: 240px;
  background-size: cover;
  background-position: center;
}

.event-date-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: white;
  border-radius: 14px;
  padding: 10px 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.event-month {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-day {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-top: 2px;
}

.event-location-pill {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 24px;
}

.event-location-pill .mdi {
  font-size: 16px;
}

/* Card content below image */
.event-card-content {
  padding: 24px 28px 28px;
}

.event-card-content h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.event-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* RSVP footer */
.event-rsvps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.rsvp-avatars {
  display: flex;
}

.rsvp-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--home-soft-orange);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  margin-left: -8px;
  border: 2px solid white;
}

.rsvp-avatar:first-child {
  margin-left: 0;
}

.rsvp-more {
  background: var(--home-warm-gray);
  color: var(--text-secondary);
}

.rsvp-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #22C55E;
}

.rsvp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
}

/* ===========================================
   Milestones Timeline Visual
   =========================================== */
.milestones-timeline {
  position: relative;
  padding: 8px 0 8px 68px;
  max-width: 420px;
}

.timeline-line {
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #E8D5BE, #D4C4A8 70%, transparent);
  border-radius: 1px;
}

.timeline-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-entry-1 { animation-delay: 0.1s; }
.timeline-entry-2 { animation-delay: 0.25s; }
.timeline-entry-3 { animation-delay: 0.4s; }
.timeline-entry-4 { animation-delay: 0.55s; }

.timeline-dot {
  position: absolute;
  left: -68px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5841F 0%, #E07018 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 132, 31, 0.3);
  z-index: 1;
}

.timeline-dot .mdi {
  font-size: 16px;
  color: #fff;
}

.timeline-dot-upcoming {
  background: linear-gradient(135deg, #D4C4A8 0%, #C0B090 100%);
  box-shadow: 0 2px 8px rgba(180, 160, 130, 0.25);
}

.timeline-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 16px 20px;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.timeline-card-upcoming {
  background: linear-gradient(135deg, #FFFDF9, #FDF8F0);
  border: 1px dashed rgba(212, 196, 168, 0.5);
}

.timeline-date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline-card-upcoming .timeline-date {
  color: #B0A080;
}

.timeline-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

.timeline-card-upcoming h4 {
  color: #A09070;
}

/* Milestone type tags */
.milestone-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.milestone-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: rgba(245, 132, 31, 0.08);
  border: 1px solid rgba(245, 132, 31, 0.12);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #C06A10;
}

.milestone-type .mdi {
  font-size: 15px;
}

/* ===========================================
   Photos Visual — Fanned Card Stack
   =========================================== */
.photos-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 420px;
}

.photos-stack {
  position: relative;
  width: 360px;
  height: 380px;
}

.photo-card {
  position: absolute;
  width: 220px;
  height: 300px;
  border-radius: 18px;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-card-img .mdi {
  font-size: 48px;
  opacity: 0.3;
}

/* Far left card */
.photo-card-far-left {
  left: -10px;
  top: 30px;
  transform: rotate(-12deg);
  z-index: 1;
  width: 190px;
  height: 260px;
}

/* Left card */
.photo-card-left {
  left: 15px;
  top: 15px;
  transform: rotate(-6deg);
  z-index: 2;
  width: 200px;
  height: 275px;
}

/* Center card — front and prominent */
.photo-card-center {
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  z-index: 5;
  width: 230px;
  height: 310px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.photo-card-center:hover {
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Right card */
.photo-card-right {
  right: 15px;
  top: 15px;
  transform: rotate(6deg);
  z-index: 2;
  width: 200px;
  height: 275px;
}

/* Far right card */
.photo-card-far-right {
  right: -10px;
  top: 30px;
  transform: rotate(12deg);
  z-index: 1;
  width: 190px;
  height: 260px;
}

/* Card image backgrounds */
.photo-img-1 {
  background: linear-gradient(160deg, #E8DECC, #D5CDB8);
  color: #A09070;
}

.photo-img-2 {
  background: linear-gradient(160deg, #D5DCC0, #C4CEAE);
  color: #8A9668;
}

.photo-img-3 {
  background-size: cover;
  background-position: center;
  background-color: #E8DECC;
}

.photo-img-4 {
  background: linear-gradient(160deg, #F5DEC4, #EDD3B5);
  color: #B8956A;
}

.photo-img-5 {
  background: linear-gradient(160deg, #C4D6D0, #B0C4BC);
  color: #7A9A8E;
}

/* Security badge on center card */
.photo-card-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.photo-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(245, 132, 31, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.photo-badge-icon .mdi {
  font-size: 16px;
  color: var(--primary);
}

.photo-badge-text {
  display: flex;
  flex-direction: column;
}

.photo-badge-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-badge-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}


/* ===========================================
   Family Tree Visual
   =========================================== */
.tree-visual {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 420px;
  position: relative;
}

/* Vertical timeline connecting generation icons — stops at last icon */
.tree-visual::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 18px;
  height: calc(100% - 18px);
  width: 2px;
  background: linear-gradient(to bottom, rgba(245, 132, 31, 0.2), rgba(245, 132, 31, 0.15), rgba(245, 132, 31, 0.25));
  border-radius: 1px;
  z-index: 0;
}

/* Last generation clips the line at its icon */
.tree-generation:last-child {
  position: relative;
}

.tree-generation:last-child::after {
  content: '';
  position: absolute;
  left: 0;
  top: 36px;
  bottom: 0;
  width: 36px;
  background: var(--home-cream);
  z-index: 0;
}

.tree-generation {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Generation header */
.tree-gen-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tree-gen-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid;
  z-index: 1;
  position: relative;
}

.tree-gen-icon .mdi {
  font-size: 16px;
}

.tree-gen-icon-founding {
  border-color: rgba(245, 132, 31, 0.25);
  color: var(--primary);
  background: #FDF5ED;
}

.tree-gen-icon-building {
  border-color: rgba(245, 132, 31, 0.25);
  color: var(--primary);
  background: #FDF5ED;
}

.tree-gen-icon-current {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.tree-gen-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tree-gen-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 2px 0 0;
  line-height: 1.25;
}

/* Person cards row */
.tree-gen-cards {
  display: flex;
  gap: 10px;
  margin-left: 48px;
}

.tree-person-card {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tree-person-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tree-person-card-highlight {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #fff, #FFF8F2);
  max-width: 240px;
}

.tree-person-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tree-person-card-highlight .tree-person-header {
  border-bottom: none;
  margin-bottom: 8px;
  padding-bottom: 0;
}

/* Person avatars */
.tree-person-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.tree-person-avatar-gp {
  background: rgba(245, 132, 31, 0.1);
  border: 2px solid rgba(245, 132, 31, 0.2);
  color: var(--primary);
}

.tree-person-avatar-parent {
  background: rgba(245, 132, 31, 0.12);
  border: 2px solid rgba(245, 132, 31, 0.25);
  color: var(--primary);
}

.tree-person-avatar-child {
  background: rgba(245, 132, 31, 0.12);
  border: 2px solid rgba(245, 132, 31, 0.3);
  color: var(--primary);
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.tree-person-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.tree-person-role {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

/* Detail line */
.tree-person-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888;
}

.tree-person-detail .mdi {
  font-size: 14px;
  color: #bbb;
}

/* You badge */
.tree-you-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.tree-you-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  display: inline-block;
}

/* Stats row on child card */
.tree-person-stats {
  display: flex;
  gap: 8px;
}

.tree-stat {
  flex: 1;
  background: rgba(0, 0, 0, 0.025);
  border-radius: 8px;
  padding: 8px 10px;
}

.tree-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.tree-stat-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Divider between generations */
.tree-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, #E0D5C8, transparent);
  border-radius: 1px;
  margin-left: 48px;
}

/* ===========================================
   More Features Grid
   =========================================== */
.more-features {
  background: var(--home-warm-bg);
  padding: 100px 24px;
}

.more-features-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.more-features-title {
  margin-bottom: 48px;
}

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

.more-feature-card {
  background: white;
  padding: 36px 28px;
  border-radius: 16px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.more-feature-icon {
  width: 56px;
  height: 56px;
  background: var(--home-soft-orange);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.more-feature-icon .mdi {
  font-size: 28px;
  color: var(--primary);
}

.more-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.more-feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===========================================
   Why We're Different Section
   =========================================== */
.different-section {
  background: white;
  padding: 120px 24px;
}

.different-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.different-title {
  margin-bottom: 16px;
}

.different-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 56px;
  line-height: 1.6;
}

.different-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.different-card {
  background: var(--home-cream);
  padding: 32px 24px;
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.different-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.different-card-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.25s ease;
}

.different-card:hover .different-card-icon {
  background: var(--home-soft-orange);
}

.different-card-icon .mdi {
  font-size: 28px;
  color: #888;
  transition: color 0.25s ease;
}

.different-card:hover .different-card-icon .mdi {
  color: var(--primary);
}

.different-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.different-card-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.different-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s ease;
}

.different-card:hover .different-card-link {
  gap: 8px;
}

.different-card-link .mdi {
  font-size: 18px;
}

/* ===========================================
   Mobile / App Section
   =========================================== */
.app-store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.app-badge:hover {
  background: #333;
  transform: translateY(-2px);
}

.app-badge .mdi {
  font-size: 28px;
}

.app-badge-text {
  display: flex;
  flex-direction: column;
}

.app-badge-small {
  font-size: 10px;
  opacity: 0.8;
  line-height: 1;
}

.app-badge-large {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

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

.phone-frame {
  width: 280px;
  height: 540px;
  background: #1A1A1A;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1A1A1A;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 32px;
  overflow: hidden;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.phone-header {
  background: var(--primary);
  padding: 48px 20px 20px;
}

.phone-title {
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.phone-content {
  padding: 16px;
}

.phone-post {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.phone-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--home-soft-orange);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.phone-post-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-post-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.phone-post-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.phone-quote-mini {
  background: var(--home-cream);
  padding: 16px;
  border-radius: 16px;
  margin-left: 52px;
}

.phone-quote-mini .mdi {
  font-size: 20px;
  color: var(--primary);
  opacity: 0.4;
  display: block;
  margin-bottom: 4px;
}

.phone-quote-mini p {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
}

/* ===========================================
   Privacy Section
   =========================================== */
.privacy-section {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  padding: 120px 24px;
  text-align: center;
}

.privacy-inner {
  max-width: 700px;
  margin: 0 auto;
}

.privacy-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

.privacy-icon .mdi {
  font-size: 40px;
  color: var(--primary);
}

.home-page .privacy-title {
  color: white;
  margin-bottom: 20px;
}

.privacy-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 40px;
}

.privacy-description strong {
  color: white;
}

.privacy-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.privacy-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 20px;
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 500;
}

.privacy-badge .mdi {
  font-size: 18px;
}

.privacy-badge-yes {
  background: rgba(245, 132, 31, 0.15);
  color: var(--primary-light);
}

.privacy-badge-yes .mdi {
  color: var(--primary);
}

/* ===========================================
   Testimonials Section
   =========================================== */
.testimonial-section {
  background: var(--home-cream);
  padding: 120px 24px;
}

.testimonial-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-heading {
  text-align: center;
  margin-bottom: 56px;
}

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

.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.testimonial-stars {
  margin-bottom: 16px;
}

.testimonial-stars .mdi {
  font-size: 18px;
  color: #FFB800;
}

.testimonial-text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ===========================================
   Final CTA Section
   =========================================== */
.cta {
  background: var(--home-cream);
  padding: 100px 24px 120px;
  text-align: center;
}

.home-page .cta-title {
  color: var(--text);
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  padding: 20px 40px;
  font-size: 17px;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
}

.cta-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* ===========================================
   Animations (Progressive Enhancement)
   =========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-page .familiar-card,
  .home-page .testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
  }

  .home-page .familiar-card:nth-child(1) { animation-delay: 0.1s; }
  .home-page .familiar-card:nth-child(2) { animation-delay: 0.3s; }
  .home-page .familiar-card:nth-child(3) { animation-delay: 0.5s; }
  .home-page .familiar-card:nth-child(4) { animation-delay: 0.7s; }

  .home-page .testimonial-card:nth-child(1) { animation-delay: 0.1s; }
  .home-page .testimonial-card:nth-child(2) { animation-delay: 0.2s; }
  .home-page .testimonial-card:nth-child(3) { animation-delay: 0.3s; }

  .home-page .feature-section {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
  }
}

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 52px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .feature-inner,
  .feature-inner-reverse {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .feature-inner-reverse {
    direction: ltr;
  }

  .home-page .section-title {
    font-size: 36px;
  }

  .familiar-grid {
    gap: 20px;
  }

  .more-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .different-cards {
    grid-template-columns: repeat(2, 1fr);
  }


}

@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    min-height: 90dvh;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
    max-width: 100%;
  }

  .hero-trust-line {
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-actions .btn-hero,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
  }

  .sound-familiar {
    padding: 80px 20px;
  }

  .home-page .section-title {
    font-size: 28px;
  }

  .familiar-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto 72px;
  }

  .feature-section {
    padding: 80px 20px;
  }

  .feature-headline br {
    display: none;
  }

  /* Quotes visual mobile */
  .quotes-showcase {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .quote-bubble {
    position: static;
    transform: none !important;
    max-width: 100%;
  }

  /* Letter mockup mobile */
  .letter-mockup {
    max-width: 100%;
  }

  /* Family map mobile — uniform scale keeps proportions */
  .family-map {
    transform: scale(0.6);
    transform-origin: top left;
    height: 288px;          /* 480 * 0.6 */
    margin-left: calc(50% - 156px); /* (520*0.6)/2 = 156 */
  }

  /* Events visual mobile */
  .event-card-visual {
    max-width: 100%;
  }

  /* Milestones timeline mobile */
  .milestones-timeline {
    max-width: 100%;
  }

  .milestone-types {
    justify-content: center;
  }

  /* Photos visual mobile */
  .photos-visual {
    max-width: 100%;
  }

  .photos-stack {
    width: 280px;
    height: 300px;
    transform: scale(0.8);
    transform-origin: top center;
  }

  /* Tree visual mobile */
  .tree-visual {
    max-width: 100%;
  }

  .tree-gen-cards {
    flex-direction: column;
  }

  .tree-gen-title {
    font-size: 17px;
  }

  /* Recipe visual mobile */
  .recipe-card-visual {
    max-width: 100%;
  }

  /* Phone visual mobile */
  .phone-frame {
    width: 240px;
    height: 480px;
  }

  .phone-quote-mini {
    margin-left: 0;
    margin-top: 12px;
  }

  /* App badges mobile */
  .app-store-badges {
    justify-content: center;
  }

  /* More features mobile */
  .more-features {
    padding: 80px 20px;
  }

  .more-features-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  /* Different section mobile */
  .different-section {
    padding: 80px 20px;
  }

  .different-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .different-card {
    padding: 24px 20px;
  }

  /* Privacy mobile */
  .privacy-section {
    padding: 80px 20px;
  }

  .privacy-title br {
    display: none;
  }

  .privacy-badges {
    flex-direction: column;
    align-items: center;
  }

  /* Testimonials mobile */
  .testimonial-section {
    padding: 80px 20px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* CTA mobile */
  .cta {
    padding: 80px 20px;
  }

  .cta-title br {
    display: none;
  }

  .btn-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================================
   Page Content (for contact, privacy pages)
   Scoped to home-page to prevent conflicts
   =========================================== */
.home-page .page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
  flex: 1;
}

.home-page .page-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.home-page .page-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Contact Cards */
.home-page .contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-page .contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-page .contact-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.home-page .contact-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.home-page .contact-card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.home-page .contact-icon {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.home-page .contact-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.home-page .contact-card a {
  font-size: 15px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.home-page .contact-card a:hover {
  text-decoration: underline;
}

/* Legal Content */
.home-page .legal-content {
  max-width: 700px;
}

.home-page .legal-section {
  margin-bottom: 32px;
}

.home-page .legal-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.home-page .legal-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.home-page .legal-section ul {
  margin: 12px 0;
  padding-left: 24px;
}

.home-page .legal-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.home-page .legal-section a {
  color: var(--primary);
  text-decoration: none;
}

.home-page .legal-section a:hover {
  text-decoration: underline;
}
