/*
 * Homepage Styles
 * Landing page specific styles using design system tokens
 */

/* ==========================================================================
   Homepage Layout
   ========================================================================== */

.homepage {
  /* Main homepage content wrapper */
}

/* Fixed header for homepage */
body:has(.homepage) .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 242, 235, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Ensure burger menu lines are visible on homepage */
body:has(.homepage) .nav-toggle span {
  display: block !important;
  width: 24px !important;
  height: 2px !important;
  background: #3d3d3d !important;
}

/* Hero starts at top of viewport - fixed header overlays it */
.hp-hero {
  margin-top: 0;
}

/* ==========================================================================
   Homepage Container
   ========================================================================== */

.hp-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ==========================================================================
   Section Header (shared)
   ========================================================================== */

.hp-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.hp-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.hp-section-header p {
  color: var(--color-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hp-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem var(--space-6) 4rem;
  position: relative;
  overflow: hidden;
}

.hp-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  /* Atmospheric depth with layered gradients */
  background: 
    radial-gradient(ellipse at top, rgba(196, 132, 108, 0.05) 0%, transparent 50%),
    linear-gradient(165deg, #f5f2eb 0%, #e8e2d5 50%, #f0ebe0 100%);
}

.hp-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hp-hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
}

.hp-hero-mark {
  margin-bottom: var(--space-6);
}

.hp-hero-mark svg {
  width: 80px;
  height: 80px;
}

.hp-hero-icon {
  width: 50vw;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-3);
  color: var(--color-text);
  font-style: italic;
}

.hp-hero-emphasis {
  /* "What remains" - 66% bigger than base h1 */
  font-size: clamp(4.15rem, 10vw, 5.81rem);
  display: inline-block;
  white-space: nowrap;
}

.hp-hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-6);
  color: #7A6558;
}

.hp-hero-description {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Rotating text animation */
.hp-rotating-text {
  position: relative;
  height: 3.5em;
  /* Fixed height to prevent layout shift */
}

.hp-rotating-text__item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  animation: rotateText 12s infinite;
}

.hp-rotating-text__item:nth-child(1) {
  animation-delay: 0s;
}

.hp-rotating-text__item:nth-child(2) {
  animation-delay: 4s;
}

.hp-rotating-text__item:nth-child(3) {
  animation-delay: 8s;
}

@keyframes rotateText {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  5% {
    opacity: 1;
    transform: translateY(0);
  }

  28% {
    opacity: 1;
    transform: translateY(0);
  }

  33% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 0;
  }
}

/* Reduced motion: show all sentences stacked instead of animating */
@media (prefers-reduced-motion: reduce) {
  .hp-rotating-text {
    height: auto;
  }

  .hp-rotating-text__item {
    position: static;
    opacity: 1;
    animation: none;
    margin-bottom: 0.5em;
  }

  .hp-rotating-text__item:last-child {
    margin-bottom: 0;
  }
}

.hp-hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hp-hero-cta .btn-primary--large {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  min-height: 56px;
  background: #3d3d3d;
  color: #fff;
  white-space: nowrap;
}

.hp-hero-cta .btn-primary--large:hover {
  background: #2a2a2a;
}

.hp-hero-cta-secondary {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
  transition: opacity var(--transition-fast);
}

.hp-hero-cta-secondary:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Hero Testimonial Snippet (near hero)
   ========================================================================== */

.hp-hero-testimonial {
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.hp-hero-testimonial-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hp-hero-testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-4);
  display: block;
}

.hp-hero-testimonial-quote {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.hp-hero-testimonial-author {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-accent);
  margin: 0;
}

/* ==========================================================================
   What is Weloved Section
   ========================================================================== */

.hp-what-is {
  padding: var(--space-16) var(--space-6);
  /* Warm tinted background to stand out from surrounding sections */
  background: 
    radial-gradient(at 20% 30%, rgba(196, 132, 108, 0.08) 0%, transparent 60%),
    #f0e8df;
  border-bottom: 1px solid var(--color-border);
}

.hp-what-is-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hp-what-is-icon {
  display: block;
  margin: 0 auto var(--space-6);
  max-width: 180px;
  height: auto;
}

.hp-what-is h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.hp-what-is p {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.hp-how-it-works {
  padding: var(--space-16) var(--space-6);
  /* Atmospheric gradient positioned differently for variety */
  background: 
    radial-gradient(at 80% 70%, rgba(212, 205, 196, 0.08) 0%, transparent 50%),
    var(--color-surface);
  scroll-margin-top: 80px;
  /* Account for fixed header */
}

/* ==========================================================================
   WhatsApp Feature
   ========================================================================== */

.hp-whatsapp-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  max-width: 1000px;
  margin: 0 auto var(--space-12);
  align-items: center;
}

.hp-whatsapp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.hp-whatsapp-badge svg {
  width: 20px;
  height: 20px;
}

.hp-whatsapp-explanation h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.hp-whatsapp-explanation p {
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

/* Phone mockup */
.hp-whatsapp-demo {
  display: flex;
  justify-content: center;
}

.hp-phone-frame {
  background: #e5ddd5;
  border-radius: 24px;
  padding: 0;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.hp-phone-header {
  background: #075e54;
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hp-phone-contact {
  font-weight: 600;
}

.hp-chat-messages {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 350px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hp-chat-bubble {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.hp-chat-bubble--bot {
  background: white;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.hp-chat-bubble--user {
  background: #dcf8c6;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

/* ==========================================================================
   Simple Steps
   ========================================================================== */

.hp-steps-simple {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 3rem;
  max-width: 700px;
  margin: 0 auto;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.hp-step-simple {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hp-step-num {
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.hp-step-simple p {
  font-size: 0.95rem;
  color: var(--color-text);
}

.hp-step-simple strong {
  color: var(--color-text);
}

/* Discovery section */
.discovery-section {
  padding: 5rem 2rem;
}

.discovery-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.discovery-text h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.discovery-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.discovery-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.discovery-images img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.discovery-images img:nth-child(1) {
  height: 200px;
}

.discovery-images img:nth-child(2) {
  height: 200px;
}

.discovery-images img:nth-child(3) {
  grid-column: span 2;
  height: 160px;
}

/* ==========================================================================
   Example Page Section
   ========================================================================== */

.hp-example-section {
  padding: var(--space-16) var(--space-6);
  /* Gentle atmospheric depth */
  background: 
    radial-gradient(at 40% 60%, rgba(196, 132, 108, 0.05) 0%, transparent 55%),
    var(--color-bg);
}

.hp-example-container {
  max-width: 900px;
  margin: 0 auto;
}

.hp-example-page-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.hp-example-page {
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-example-page-link:hover .hp-example-page {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.hp-example-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.hp-example-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-example-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: white;
}

.hp-example-hero-overlay h3 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: white;
}

.hp-example-dates {
  opacity: 0.9;
  font-size: 0.95rem;
  color: white;
}

.hp-example-content {
  padding: var(--space-6);
}

.hp-example-tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  text-align: center;
}

.hp-example-memory {
  padding: var(--space-4);
  background: var(--color-bg);
  border-radius: 12px;
  margin-bottom: var(--space-4);
}

.hp-example-memory p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.hp-example-attribution {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.hp-example-cta-hint {
  text-align: center;
  padding-top: var(--space-4);
  color: var(--color-accent);
  font-weight: 600;
}

.hp-example-cta-hint span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.hp-example-page-link:hover .hp-example-cta-hint span {
  transform: translateX(4px);
}

/* ==========================================================================
   Why It Matters Section
   ========================================================================== */

.hp-why-it-matters {
  padding: var(--space-16) var(--space-6);
  /* Layered atmospheric gradients for depth */
  background: 
    radial-gradient(at 15% 50%, rgba(196, 132, 108, 0.06) 0%, transparent 50%),
    radial-gradient(at 85% 30%, rgba(212, 205, 196, 0.05) 0%, transparent 50%),
    var(--color-surface);
}

.hp-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-10);
  max-width: 1000px;
  margin: var(--space-8) auto 0;
}

.hp-why-item {
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.hp-why-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.hp-why-item p {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.hp-why-item p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .hp-why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.hp-testimonials {
  padding: var(--space-16) var(--space-6);
  /* Subtle gradient for warmth */
  background: 
    radial-gradient(at 50% 20%, rgba(196, 132, 108, 0.03) 0%, transparent 60%),
    var(--color-bg);
}

/* Carousel container */
.hp-testimonials-carousel {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  min-height: 180px;
}

/* Testimonial cards - stacked and fade in/out */
.hp-testimonial {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.hp-testimonial--active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hp-testimonial-quote {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  font-style: italic;
  text-align: center;
}

.hp-testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.hp-testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hp-testimonial-author {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-accent);
  margin: 0;
}

/* Navigation dots */
.hp-testimonials-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.hp-testimonial-dot {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px;
  min-height: 10px;
  max-width: 10px;
  max-height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hp-testimonial-dot:hover {
  background: var(--color-accent);
  transform: scale(1.2);
}

.hp-testimonial-dot--active {
  background: var(--color-accent);
}

.hp-testimonial-dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .hp-testimonials-carousel {
    min-height: 220px;
  }
  
  .hp-testimonial-quote {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Trust Badge Section
   ========================================================================== */

.hp-trust-badge {
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.hp-trust-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  text-align: left;
}

.hp-trust-icon {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.hp-trust-text {
  flex: 1;
}

.hp-trust-title {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.hp-trust-description {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .hp-trust-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .hp-trust-icon {
    margin-top: 0;
  }
}

/* ==========================================================================
   Philosophy Section
   ========================================================================== */

.hp-philosophy {
  padding: var(--space-16) var(--space-6);
  /* Atmospheric depth with dual gradients */
  background: 
    radial-gradient(at 60% 25%, rgba(196, 132, 108, 0.05) 0%, transparent 50%),
    radial-gradient(at 20% 75%, rgba(212, 205, 196, 0.06) 0%, transparent 50%),
    var(--color-surface);
}

.hp-philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.hp-philosophy-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.hp-philosophy-text p {
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.hp-philosophy-text p:last-of-type {
  margin-bottom: 0;
}

.hp-philosophy-image {
  border-radius: 16px;
  overflow: hidden;
}

.hp-philosophy-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.hp-pricing {
  padding: var(--space-16) var(--space-6);
  /* Keep pricing clean with minimal gradient */
  background: 
    radial-gradient(at 70% 40%, rgba(212, 205, 196, 0.04) 0%, transparent 60%),
    var(--color-bg);
}

.hp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.hp-pricing-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hp-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hp-pricing-card--popular {
  border-color: var(--color-accent);
}

.hp-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  padding: 0.4rem 1.25rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.hp-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hp-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.hp-subtitle {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.hp-price-block {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.hp-price-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.hp-currency {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-right: 0.25rem;
}

.hp-amount {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
}

.hp-price-context {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.hp-pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  padding: 0;
}

.hp-pricing-features li {
  padding: 0.6rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.hp-check {
  color: var(--color-accent);
  font-weight: bold;
  flex-shrink: 0;
}

.hp-testimonial {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.hp-testimonial p {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.hp-attribution {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.hp-pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.hp-contribution-callout {
  background: #fde8e8;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid #e8a0a0;
}

.hp-contribution-callout h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #5C2A2A;
}

.hp-contribution-callout p {
  color: #5C2A2A;
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ==========================================================================
   Reminders Section
   ========================================================================== */

.hp-reminders {
  padding: 5rem 2rem;
  background: #C4846C;
}

.hp-reminders-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.hp-reminders-date {
  text-align: center;
  padding-top: 0.5rem;
}

.hp-reminders-date-month {
  display: block;
  font-family: 'Bitter', serif;
  font-size: 1rem;
  color: #3d3d3d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.hp-reminders-date-day {
  display: block;
  font-family: 'Bitter', serif;
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1;
  color: #fff;
}

.hp-reminders-date-note {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
  font-style: italic;
}

.hp-reminders-text h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hp-reminders-lead {
  font-family: 'Bitter', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.hp-reminders-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.hp-reminders-text p:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .hp-reminders-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hp-reminders-date {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    justify-content: center;
  }

  .hp-reminders-date-month {
    font-size: 0.875rem;
  }

  .hp-reminders-date-day {
    font-size: 3rem;
  }

  .hp-reminders-date-note {
    display: none;
  }

  .hp-reminders-text {
    text-align: left;
  }
}


/* ==========================================================================
   Final CTA Section
   ========================================================================== */

.hp-final-cta {
  padding: var(--space-16) var(--space-6);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--color-accent);
}

.hp-final-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hp-final-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-final-cta-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Dark overlay with warm tint for readability */
  background: linear-gradient(
    to bottom,
    rgba(80, 45, 30, 0.65) 0%,
    rgba(80, 45, 30, 0.75) 100%
  );
}

.hp-final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.hp-final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hp-final-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
  font-size: 1.1rem;
}

.hp-final-cta .btn-secondary {
  background: white;
  color: var(--color-accent);
  border: none;
}

.hp-final-cta .btn-secondary:hover {
  background: var(--color-surface);
}

/* ==========================================================================
   Homepage Focus Styles - Keyboard Accessibility
   ========================================================================== */

/* Example page cards - interactive links */
.hp-example-page-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 16px;
}

.hp-example-page-link:focus-visible .hp-example-page {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Pricing cards (contain buttons, but ensure card focus is visible) */
.hp-pricing-card:focus-within {
  border-color: var(--color-accent);
}

/* WhatsApp CTA button gets extra prominent focus */
.hp-whatsapp-cta:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Hero CTA buttons - ensure they're highly visible */
.hp-hero-cta .btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(196, 132, 108, 0.2);
}

/* Step elements - if they become interactive in future */
.hp-step-simple:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 640px) {

  .hp-pricing-grid,
  .discovery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
  }

  .hp-pricing-card--popular {
    order: -1; /* Show popular option first on mobile */
  }
}

@media (max-width: 768px) {

  /* More opaque header background on mobile for better burger visibility */
  body:has(.homepage) .site-header {
    background: rgba(245, 242, 235, 0.98);
  }

  /* Ensure burger menu is visible on mobile */
  body:has(.homepage) .nav-toggle,
  body:has(.homepage) .nav-toggle.hide-desktop {
    display: flex !important;
  }

  .hp-hero {
    padding: 6rem var(--space-6, 1.5rem) 3rem;
    min-height: 100vh;
    min-height: 100dvh;
    /* Use dynamic viewport height for mobile browsers */
  }

  .hp-hero h1 {
    font-size: 1.75rem;
    letter-spacing: -0.03em;
  }

  .hp-hero-emphasis {
    font-size: clamp(2.8rem, 11vw, 4.15rem);
    letter-spacing: -0.04em;
    white-space: normal;
  }

  .hp-hero-subtitle {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
  }

  .hp-tagline {
    font-size: 1rem;
  }

  /* Reduced horizontal margins on mobile */
  .hp-container {
    padding: 0 var(--space-4);
  }

  .hp-section-header {
    margin-bottom: var(--space-8);
  }

  .hp-whatsapp-feature {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hp-whatsapp-demo {
    order: -1;
  }

  .hp-steps-simple {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hp-philosophy-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hp-philosophy-image {
    order: -1;
  }

  .hp-philosophy-image img {
    height: 280px;
  }

  .hp-example-hero {
    height: 240px;
  }

  /* Reduce section padding on mobile */
  .hp-how-it-works,
  .hp-example-section,
  .hp-philosophy,
  .hp-pricing,
  .hp-final-cta {
    padding: var(--space-10) var(--space-4);
  }

  .hp-final-cta {
    min-height: 320px;
  }
}
