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

/* Custom Properties for Home Page Only */
.home-page {
  --home-cream: #FFFBF7;
  --home-warm-gray: #F5F0EB;
  --home-peach: #FFF5EB;
  --home-soft-orange: rgba(245, 132, 31, 0.08);
  --font-display: 'Lora', Georgia, serif;
  scroll-behavior: smooth;
}

/* ===========================================
   Hero Section
   =========================================== */
.hero {
  background: linear-gradient(160deg, #FFFCFA 0%, #FFF8F2 100%);
  padding: 0 24px 0;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0;
}

.hero-text {
  padding-right: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.btn-hero {
  padding: 18px 36px;
  font-size: 17px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-hero .mdi {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.btn-hero:hover .mdi {
  transform: translateX(4px);
}

/* Hero Visual - Floating Cards */
.hero-visual {
  position: relative;
  height: 420px;
  min-width: 540px;
}

.hero-card {
  position: absolute;
  background: white;
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.hero-card-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-card-icon .mdi {
  font-size: 22px;
  color: var(--primary);
}

.hero-card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 3px;
}

.hero-card-meta {
  font-size: 12px;
  color: var(--text-light);
}

.hero-card-quote-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}

/* Card Positions - scattered but not overlapping */
.hero-card-quote {
  top: 10px;
  left: 20px;
  max-width: 190px;
  transform: rotate(-3deg);
  animation: float1 5s ease-in-out infinite;
}

.hero-card-recipe {
  top: 0;
  left: 220px;
  transform: rotate(2deg);
  animation: float2 6s ease-in-out infinite;
}

.hero-card-event {
  top: 135px;
  left: 250px;
  transform: rotate(-2deg);
  animation: float3 5.5s ease-in-out infinite;
}

.hero-card-milestone {
  top: 160px;
  left: 50px;
  transform: rotate(3deg);
  animation: float4 6.5s ease-in-out infinite;
}

.hero-card-letter {
  bottom: 10px;
  left: 10px;
  transform: rotate(-2deg);
  animation: float5 5s ease-in-out infinite;
}

.hero-card-photo {
  bottom: 30px;
  left: 200px;
  transform: rotate(2deg);
  animation: float6 6s ease-in-out infinite;
}

.hero-card-family {
  top: 5px;
  left: 400px;
  transform: rotate(-2deg);
  animation: float7 5.5s ease-in-out infinite;
}

.hero-card-tree {
  top: 140px;
  left: 420px;
  transform: rotate(3deg);
  animation: float8 6.2s ease-in-out infinite;
}

.hero-card-post {
  bottom: 40px;
  left: 390px;
  transform: rotate(-1deg);
  animation: float9 5.8s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(-3deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(-2deg); }
}
@keyframes float4 {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}
@keyframes float5 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
}
@keyframes float6 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-9px) rotate(2deg); }
}
@keyframes float7 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(-2deg); }
}
@keyframes float8 {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}
@keyframes float9 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}

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

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

.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);
}

/* Secondary button - Scoped to home page */
.home-page .btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 14px 28px;
  border-radius: 32px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.home-page .btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================
   Pain Section
   =========================================== */
.pain-section {
  background: white;
  padding: 100px 24px;
  overflow: hidden;
}

.pain-content {
  max-width: 1100px;
  margin: 0 auto;
}

.pain-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 56px;
  text-align: center;
}

.pain-quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.pain-quote {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pain-quote-bubble {
  position: relative;
  background: white;
  padding: 28px 32px 28px 48px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pain-quote-bubble:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.pain-quote-mark {
  position: absolute;
  top: 20px;
  left: 16px;
  font-size: 24px;
  color: var(--primary);
  opacity: 0.5;
}

.pain-quote-bubble p {
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.pain-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 8px;
}

.pain-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.pain-quote-author span {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Alternate colors for variety */
.pain-quote-2 .pain-quote-bubble {
  border-left-color: #6366F1;
}
.pain-quote-2 .pain-quote-mark {
  color: #6366F1;
}
.pain-quote-2 .pain-avatar {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
}

.pain-quote-3 .pain-quote-bubble {
  border-left-color: #0EA5E9;
}
.pain-quote-3 .pain-quote-mark {
  color: #0EA5E9;
}
.pain-quote-3 .pain-avatar {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
}

.pain-quote-4 .pain-quote-bubble {
  border-left-color: #10B981;
}
.pain-quote-4 .pain-quote-mark {
  color: #10B981;
}
.pain-quote-4 .pain-avatar {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.pain-solution {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.pain-solution p {
  font-size: 20px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pain-solution p:first-child {
  font-size: 24px;
  margin-bottom: 8px;
}

.pain-solution strong {
  color: var(--text);
}

.pain-solution .btn-primary {
  margin-top: 28px;
}

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

.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.1em;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-headline {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

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

.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 Links Container */
.feature-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.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;
}

/* Quotes Feature */
.feature-quotes {
  background: var(--home-cream);
}

.quotes-showcase {
  position: relative;
  height: 380px;
}

.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: 320px;
  transition: transform 0.3s ease;
}

.quote-bubble:hover {
  transform: scale(1.03) rotate(0deg) !important;
}

.quote-bubble p {
  font-family: var(--font-display);
  font-size: 17px;
  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: 20px;
  transform: rotate(-2deg);
  z-index: 3;
}

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

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

/* Letters Feature */
.feature-letters {
  background: white;
}

.letter-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.letter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--home-warm-gray);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.letter-tag .mdi {
  font-size: 14px;
  color: var(--primary);
}

.letter-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 40px;
}

.letter-envelope {
  position: relative;
  width: 320px;
  height: 220px;
  background: linear-gradient(135deg, #F8F4F0 0%, #F0EBE5 100%);
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F0EB 100%);
  clip-path: polygon(0 0, 50% 70%, 100% 0);
  z-index: 2;
}

.envelope-body {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.envelope-body .mdi {
  font-size: 48px;
  color: var(--primary);
  opacity: 0.2;
  margin-bottom: 8px;
}

.envelope-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 4px;
}

.envelope-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.letter-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245, 132, 31, 0.4);
  z-index: 3;
}

.letter-seal .mdi {
  font-size: 28px;
  color: white;
}

/* Recipes Feature */
.feature-recipes {
  background: var(--home-cream);
}

.recipe-card-visual {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
  max-width: 360px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

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

.recipe-card-header {
  background: linear-gradient(135deg, var(--home-warm-gray) 0%, var(--home-cream) 100%);
  padding: 100px 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recipe-difficulty {
  background: var(--success);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.recipe-time {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 13px;
}

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

.recipe-card-content h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  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-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--text-secondary);
}

.recipe-meta .mdi {
  color: var(--primary);
  font-size: 18px;
}

/* ===========================================
   Shared Feature Components
   =========================================== */
.feature-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.benefit-item .mdi {
  color: var(--success);
  font-size: 20px;
}

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

/* ===========================================
   Family Groups Feature
   =========================================== */
.feature-groups {
  background: white;
}

.groups-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.group-circle {
  position: absolute;
  background: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.group-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.group-circle-1 {
  width: 180px;
  height: 180px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-soft) 0%, white 100%);
  z-index: 3;
}

.group-circle-2 {
  width: 150px;
  height: 150px;
  bottom: 40px;
  left: 20px;
  background: linear-gradient(135deg, var(--home-peach) 0%, white 100%);
  z-index: 2;
}

.group-circle-3 {
  width: 140px;
  height: 140px;
  bottom: 60px;
  right: 20px;
  background: linear-gradient(135deg, var(--home-warm-gray) 0%, white 100%);
  z-index: 1;
}

.group-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 8px;
}

.group-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  text-align: center;
}

.group-count {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ===========================================
   Events Feature
   =========================================== */
.feature-events {
  background: var(--home-cream);
}

.event-card-visual {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
  max-width: 340px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.event-card-visual:hover {
  transform: translateY(-8px);
}

.event-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 40px 24px;
  display: flex;
  justify-content: center;
}

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

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

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

.event-card-content {
  padding: 28px;
}

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

.event-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.event-location .mdi {
  color: var(--primary);
  font-size: 18px;
}

.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: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  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 {
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
}

/* ===========================================
   Milestones Feature
   =========================================== */
.feature-milestones {
  background: white;
}

.milestone-types {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.milestone-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--home-warm-gray);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.milestone-type .mdi {
  font-size: 16px;
  color: var(--primary);
}

.milestones-timeline {
  position: relative;
  padding-left: 30px;
}

.milestones-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--primary-light) 70%, var(--border) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

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

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(245, 132, 31, 0.3);
}

.timeline-content {
  background: white;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease;
}

.timeline-content:hover {
  transform: translateX(4px);
}

.timeline-icon {
  font-size: 24px;
  color: var(--primary);
}

.timeline-text {
  flex: 1;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.timeline-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.timeline-item-future .timeline-dot {
  background: var(--border);
  box-shadow: none;
}

.timeline-item-future .timeline-content {
  opacity: 0.6;
}

/* ===========================================
   Photos Feature
   =========================================== */
.feature-photos {
  background: var(--home-cream);
}

.photos-grid-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
  padding: 16px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
}

.photo-grid-item {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--home-warm-gray) 0%, var(--home-cream) 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.photo-grid-item:hover {
  transform: scale(1.05);
}

.photo-grid-item .mdi {
  font-size: 32px;
  color: var(--primary);
  opacity: 0.4;
}

.photo-grid-large {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-grid-large .mdi {
  font-size: 56px;
}

.photo-grid-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 500;
}

.photos-privacy-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.photos-privacy-badge .mdi {
  font-size: 14px;
  color: var(--success);
}

/* ===========================================
   Family Tree Feature
   =========================================== */
.feature-tree {
  background: white;
}

.tree-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.tree-level {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tree-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.tree-node:hover {
  transform: translateY(-4px);
}

.tree-node-gp {
  background: var(--home-warm-gray);
}

.tree-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tree-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.tree-node-you {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--home-peach) 100%);
  position: relative;
}

.tree-you-badge {
  position: absolute;
  bottom: -12px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.tree-connector-h {
  width: 24px;
  height: 2px;
  background: var(--border);
}

.tree-connector-v {
  width: 2px;
  height: 24px;
  background: var(--border);
}

/* ===========================================
   Mobile Feature
   =========================================== */
.feature-mobile {
  background: var(--home-cream);
}

.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-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: #1A1A1A;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  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-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(--primary-soft);
  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;
}

/* ===========================================
   Why We're Different Section
   =========================================== */
.different-section {
  background: var(--home-warm-gray);
  padding: 100px 24px;
}

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

.different-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.different-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

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

.different-card {
  background: white;
  padding: 32px 24px;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s 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.1);
}

.different-card-icon {
  width: 64px;
  height: 64px;
  background: var(--home-warm-gray);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.2s ease;
}

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

.different-card-icon .mdi {
  font-size: 32px;
  color: #666;
  transition: color 0.2s ease;
}

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

.different-card-title {
  font-size: 18px;
  font-weight: 600;
  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;
}

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

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

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

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

.privacy-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.privacy-description strong {
  color: white;
}

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

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

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

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

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

/* ===========================================
   Testimonial Section
   =========================================== */
.testimonial-section {
  background: var(--home-warm-gray);
  padding: 100px 24px;
}

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

.testimonial-heading {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  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: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.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;
}

/* ===========================================
   CTA Section
   =========================================== */
.cta {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--home-peach) 50%, var(--home-cream) 100%);
  padding: 120px 24px;
  text-align: center;
}

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

.cta-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.15;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
  display: inline-flex;
}

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

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
    padding: 70px 0;
  }

  .hero-text {
    padding-right: 0;
  }

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

  .hero-visual {
    height: 380px;
    max-width: 560px;
    min-width: auto;
    margin: 0 auto;
  }

  .hero-card-family {
    left: 380px;
  }

  .hero-card-tree {
    left: 400px;
  }

  .hero-card-post {
    left: 370px;
  }

  .hero-card {
    padding: 14px 18px;
  }

  .hero-card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
  }

  .hero-card-icon .mdi {
    font-size: 18px;
  }

  .hero-card-quote {
    max-width: 170px;
  }

  .hero-card-quote-text {
    font-size: 14px;
  }

  .hero-card-title {
    font-size: 13px;
  }

  .hero-card-meta {
    font-size: 11px;
  }

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

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

  .feature-headline {
    font-size: 36px;
  }

  .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-content {
    padding: 50px 0;
    gap: 50px;
  }

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

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

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

  .hero-visual {
    height: auto;
    min-width: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }

  .hero-card {
    position: static;
    transform: none !important;
    animation: none;
    padding: 16px;
  }

  .hero-card-quote {
    grid-column: span 3;
    max-width: 100%;
  }

  .hero-card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
  }

  .hero-card-icon .mdi {
    font-size: 20px;
  }

  .hero-card-title {
    font-size: 14px;
  }

  .hero-card-quote-text {
    font-size: 15px;
  }

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

  .pain-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

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

  .pain-quote-bubble {
    padding: 24px 28px 24px 44px;
  }

  .pain-quote-bubble p {
    font-size: 17px;
  }

  .pain-solution p {
    font-size: 18px;
  }

  .pain-solution p:first-child {
    font-size: 20px;
  }

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

  .feature-headline {
    font-size: 30px;
  }

  .feature-headline br {
    display: none;
  }

  .quotes-showcase {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

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

  .letter-envelope {
    width: 280px;
    height: 190px;
  }

  /* Groups visual mobile */
  .groups-visual {
    height: auto;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
  }

  .group-circle {
    position: static;
    transform: none;
  }

  .group-circle-1,
  .group-circle-2,
  .group-circle-3 {
    width: 140px;
    height: 140px;
  }

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

  /* Milestones visual mobile */
  .milestone-types {
    justify-content: center;
  }

  .milestones-timeline {
    padding-left: 24px;
  }

  .timeline-content {
    flex-wrap: wrap;
    gap: 8px;
  }

  .timeline-text {
    width: 100%;
  }

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

  .photo-grid-item .mdi {
    font-size: 24px;
  }

  .photo-grid-large .mdi {
    font-size: 40px;
  }

  /* Tree visual mobile */
  .tree-visual {
    transform: scale(0.85);
    transform-origin: center center;
  }

  .tree-node {
    padding: 12px 16px;
  }

  .tree-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* 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;
  }

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

  .different-title {
    font-size: 28px;
  }

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

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

  .different-card-icon {
    width: 56px;
    height: 56px;
  }

  .different-card-icon .mdi {
    font-size: 28px;
  }

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

  .privacy-title {
    font-size: 32px;
  }

  .privacy-title br {
    display: none;
  }

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

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

  .testimonial-heading {
    font-size: 28px;
  }

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

  .cta {
    padding: 80px 20px;
  }

  .cta-title {
    font-size: 32px;
  }

  .cta-title br {
    display: none;
  }
}

/* ===========================================
   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: 600;
  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;
}

/* ===========================================
   Animations on Scroll (Progressive Enhancement)
   Scoped to home-page
   =========================================== */
@media (prefers-reduced-motion: no-preference) {
  .home-page .pain-quote,
  .home-page .testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
  }

  .home-page .pain-quote:nth-child(1) { animation-delay: 0.1s; }
  .home-page .pain-quote:nth-child(2) { animation-delay: 0.2s; }
  .home-page .pain-quote:nth-child(3) { animation-delay: 0.3s; }
  .home-page .pain-quote:nth-child(4) { animation-delay: 0.4s; }

  .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;
  }

  .home-page .feature-quotes { animation-delay: 0.1s; }
  .home-page .feature-letters { animation-delay: 0.1s; }
  .home-page .feature-recipes { animation-delay: 0.1s; }
  .home-page .feature-groups { animation-delay: 0.1s; }
  .home-page .feature-events { animation-delay: 0.1s; }
  .home-page .feature-milestones { animation-delay: 0.1s; }
  .home-page .feature-photos { animation-delay: 0.1s; }
  .home-page .feature-tree { animation-delay: 0.1s; }
  .home-page .feature-mobile { animation-delay: 0.1s; }
}
