/* Custom FlowMate styles */

/* Hide Blowfish theme's default footer */
footer:not(.site-footer) {
  display: none !important;
}

/* Page Background Gradient */
html,
body {
  background: linear-gradient(135deg, 
    rgb(var(--color-neutral-800)) 0%, 
    rgb(var(--color-neutral-900)) 50%, 
    rgb(var(--color-primary-900)) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

/* Ensure main content area extends properly */
main {
  min-height: calc(100vh - 200px);
  background: transparent;
}

/* Ensure content is readable on gradient */
.article-content,
.prose {
  background: transparent;
}

/* Override Blowfish theme backgrounds to show gradient */
#main-content,
article,
.max-w-7xl,
.max-w-prose,
[class*="max-w-"],
.container,
section {
  background: transparent !important;
}

/* Ensure header/nav is transparent */
header,
nav,
.header {
  background: transparent !important;
}

/* Hide heading anchor links - AGGRESSIVE */
.prose h2 .anchor,
.prose h3 .anchor,
.prose h4 .anchor,
.prose h5 .anchor,
.prose h6 .anchor,
h2 .anchor,
h3 .anchor,
h4 .anchor,
h5 .anchor,
h6 .anchor,
.anchor,
a.anchor,
.heading-anchor,
h2 a[href^="#"],
h3 a[href^="#"],
h4 a[href^="#"],
.prose h2 a[href^="#"],
.prose h3 a[href^="#"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Reduce spacing above headings - AGGRESSIVE */
.prose h2,
.prose h3,
h2,
h3 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-block-start: 0 !important;
}

/* Remove extra space in card divs */
.prose > div {
  margin-top: 0 !important;
}

/* Hero Section with Image */
.hero-section {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
  position: relative;
  z-index: 0;
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  padding: 3rem;
  padding-right: 280px; /* Make room for smaller phone */
  background: linear-gradient(135deg, rgba(var(--color-primary-500), 0.1), rgba(var(--color-primary-400), 0.05));
  border-radius: 1rem;
  border: 1px solid rgba(var(--color-primary-500), 0.2);
  margin: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-lead strong {
  color: rgb(var(--color-primary-400)) !important;
  font-weight: 700;
}

.hero-mockup {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.mockup-phone {
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    min-height: auto;
  }
  
  .hero-lead {
    padding: 2rem;
    padding-right: 2rem; /* Remove extra padding on mobile */
    text-align: center;
  }
  
  .hero-mockup {
    position: static;
    transform: none;
    margin-top: 2rem;
    pointer-events: auto;
  }
  
  .mockup-phone {
    max-width: 250px;
    animation: none; /* Disable float on mobile */
  }
}

/* Header logo styling - Override Tailwind defaults */
.logo.max-h-\[5rem\],
.logo img,
img.logo {
  max-height: 40px !important;
  width: 40px !important;
  height: 40px !important;
  margin-right: 0.75rem !important;
  border-radius: 9px !important; /* iOS-style rounded corners (22.5% of 40px) */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  object-fit: cover !important;
}

/* Adjust logo in light mode if needed */
.light .logo img {
  filter: none; /* Keep original colors in light mode */
  opacity: 0.9;
}

/* Header logo link styling */
header .logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Site title in header - bigger and bolder, keep default color */
.main-menu nav a.text-base.font-medium,
header nav a.text-base.font-medium,
nav.flex.space-x-3 > a {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
}

/* Features Grid Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 0;
}

/* Feature Cards with alternating teal shades (like logo) */
.feature-card {
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(var(--color-primary-500), 0.2);
}

/* Shade 1 - Lightest teal */
.card-shade-1 {
  background: linear-gradient(135deg, 
    rgba(var(--color-primary-900), 0.3) 0%, 
    rgba(var(--color-primary-800), 0.2) 100%);
}

/* Shade 2 - Medium teal */
.card-shade-2 {
  background: linear-gradient(135deg, 
    rgba(var(--color-primary-800), 0.4) 0%, 
    rgba(var(--color-primary-700), 0.3) 100%);
}

/* Shade 3 - Deeper teal */
.card-shade-3 {
  background: linear-gradient(135deg, 
    rgba(var(--color-primary-700), 0.5) 0%, 
    rgba(var(--color-primary-600), 0.4) 100%);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--color-primary-400), 0.5);
  box-shadow: 0 8px 24px rgba(var(--color-primary-500), 0.2);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 56px;
  height: 56px;
  color: rgb(var(--color-primary-400));
  fill: currentColor;
}

.feature-card h3 {
  color: rgba(var(--color-primary-200), 1);
  margin-bottom: 0.75rem;
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
}

.feature-card p {
  color: rgba(var(--color-neutral-300), 1);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* Section spacing and separation */
.prose h2 {
  margin-top: 4rem !important;
  margin-bottom: 2rem !important;
  padding-top: 2rem;
  font-size: 2rem;
  text-align: center;
  color: rgba(var(--color-primary-300), 1);
}

.prose h2:first-of-type {
  margin-top: 2rem !important;
}

/* Lead section styling */
.lead {
  margin-bottom: 3rem !important;
  font-size: 1.25rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Waitlist container styling */
.waitlist-container {
  margin-top: 4rem !important;
  margin-bottom: 4rem !important;
  background: linear-gradient(135deg, 
    rgba(var(--color-primary-800), 0.3) 0%, 
    rgba(var(--color-primary-900), 0.4) 100%) !important;
  border: 1px solid rgba(var(--color-primary-500), 0.3) !important;
}

.waitlist-container h3 {
  color: rgba(var(--color-primary-200), 1) !important;
}

/* CTA Button */
.cta-button {
  background: linear-gradient(135deg, 
    rgba(var(--color-primary-500), 1) 0%, 
    rgba(var(--color-primary-600), 1) 100%) !important;
  color: white !important;
  border: none !important;
  padding: 1rem 2rem !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  border-radius: 0.5rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.cta-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(var(--color-primary-500), 0.4) !important;
  background: linear-gradient(135deg, 
    rgba(var(--color-primary-400), 1) 0%, 
    rgba(var(--color-primary-500), 1) 100%) !important;
}

/* FAQ section spacing */
.prose h2:has(+ .accordion) {
  margin-bottom: 2rem !important;
}

/* FAQ Accordion Styling */
.accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  background: linear-gradient(135deg, rgba(var(--color-primary-500), 0.08), rgba(var(--color-primary-400), 0.04)) !important;
  border: 1px solid rgba(var(--color-primary-500), 0.2) !important;
  border-radius: 0.75rem !important;
  margin-bottom: 1rem !important;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(var(--color-primary-500), 0.4) !important;
  box-shadow: 0 4px 12px rgba(var(--color-primary-500), 0.15);
  transform: translateY(-2px);
}

.accordion-item summary {
  padding: 1.25rem 1.5rem !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: rgb(var(--color-primary-400)) !important;
  cursor: pointer;
  transition: background 0.2s ease;
}

.accordion-item summary:hover {
  background: rgba(var(--color-primary-500), 0.1) !important;
  color: rgb(var(--color-primary-300)) !important;
}

.accordion-item[open] summary {
  background: rgba(var(--color-primary-500), 0.12) !important;
  border-bottom: 1px solid rgba(var(--color-primary-500), 0.2);
}

.accordion-item .accordion-content {
  padding: 1.25rem 1.5rem !important;
  color: rgb(var(--color-neutral-700)) !important;
  line-height: 1.7;
}

/* Add breathing room to main content */
.prose {
  line-height: 1.8;
}

.prose p {
  margin-bottom: 1.5rem;
}

/* Horizontal rule styling for extra separation */
.prose hr {
  margin-top: 4rem !important;
  margin-bottom: 4rem !important;
  border-color: rgba(var(--color-primary-500), 0.3);
  border-width: 1px;
}

/* Social Media Links */
.prose a[href*="bsky.app"],
.prose a[href*="youtube.com"] {
  text-decoration: none !important;
  color: rgb(var(--color-primary-400)) !important;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.prose a[href*="bsky.app"]:hover,
.prose a[href*="youtube.com"]:hover {
  color: rgb(var(--color-primary-300)) !important;
  background: rgba(var(--color-primary-500), 0.1);
  transform: translateY(-2px);
}

.prose a[href*="bsky.app"] svg,
.prose a[href*="youtube.com"] svg {
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.prose a[href*="bsky.app"]:hover svg,
.prose a[href*="youtube.com"]:hover svg {
  transform: scale(1.1);
}

/* Professional Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 1rem 2rem;
  border-top: 1px solid rgba(var(--color-primary-500), 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgb(var(--color-primary-400));
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  color: rgb(var(--color-primary-300));
  transform: translateY(-3px);
  filter: drop-shadow(0 4px 8px rgba(var(--color-primary-500), 0.4));
}

.footer-social svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.footer-social a:hover svg {
  transform: scale(1.15);
}

.footer-legal {
  color: rgb(var(--color-neutral-500));
  font-size: 0.9rem;
}

.footer-legal p {
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgb(var(--color-neutral-500));
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgb(var(--color-primary-400));
}

.footer-links span {
  color: rgb(var(--color-neutral-600));
}

/* How It Works Section */
.how-it-works {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.how-step {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(var(--color-primary-400), 0.15), rgba(var(--color-primary-500), 0.25));
  border: 2px solid rgb(var(--color-primary-400));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgb(var(--color-primary-400));
}

.step-arrow {
  position: absolute;
  top: 35px;
  right: -2.5rem;
  font-size: 2rem;
  color: rgb(var(--color-neutral-400));
  font-weight: 300;
}

.how-step:last-child .step-arrow {
  display: none;
}

.how-step h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: rgb(var(--color-neutral-700));
}

.how-step p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgb(var(--color-neutral-600));
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .how-it-works {
    flex-direction: column;
    align-items: center;
  }
  
  .step-arrow {
    display: none !important;
  }
  
  .how-step {
    max-width: 100%;
  }
}

/* Dark mode support */
:root[class*="dark"] .how-step h3 {
  color: rgb(var(--color-neutral-200));
}

:root[class*="dark"] .how-step p {
  color: rgb(var(--color-neutral-400));
}

/* Secondary CTA Button (outline style) hover effect */
a[href="#faq"]:hover,
a[href="#waitlist"]:hover {
  background: rgba(var(--color-primary-600), 0.1) !important;
  border-color: var(--color-primary-500) !important;
  color: var(--color-primary-600) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-600), 0.3);
}

