/* ==========================================
   SpeakMate Landing Page Styles
   ========================================== */

/* CSS Variables */
:root {
  --primary: #2563EB;
  --secondary: #10B981;
  --background: #F5F7FA;
  --text: #1E293B;
  --text-light: #64748B;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --gradient: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.125rem;
  width: 100%;
  justify-content: center;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: #FFFFFF;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.phone-mockup {
  position: relative;
  max-width: 650px;
  margin: -30px auto 0;
}

.phone-mockup img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.screenshot-placeholder {
  background: linear-gradient(135deg, #f5f7fa 0%, #e2e8f0 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screenshot-placeholder p {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 12px;
}

.screenshot-placeholder small {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Problem Section */
.problem {
  padding: 80px 0;
  background: var(--white);
}

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

.problem-card {
  text-align: center;
  padding: 32px;
  border-radius: 16px;
  background: var(--background);
  transition: transform 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
}

.problem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.problem-card p {
  color: var(--text-light);
}

/* Solution Section */
.solution {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 24px;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-light);
}

/* Pricing */
.pricing {
  padding: 80px 0;
}

.pricing-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border: 3px solid var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 32px;
  background: var(--gradient);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.price span {
  font-size: 1.25rem;
  color: var(--text-light);
  font-weight: 500;
}

.price-save {
  font-size: 0.875rem;
  color: var(--secondary);
  font-weight: 600;
  margin: 16px 0 24px;
  text-align: center;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

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

/* FAQ */
.faq {
  padding: 80px 0;
  background: var(--white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--background);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-item summary {
  padding: 24px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 24px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Download */
.download {
  padding: 80px 0;
  text-align: center;
}

.download-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.download-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.store-button img {
  height: 60px;
  transition: transform 0.3s ease;
}

.store-button:hover img {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 60px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo {
  margin-bottom: 16px;
}

.logo-text-large {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
}

.logo-image {
  height: 140px;
  width: auto;
}

.footer-logo {
  height: 100px;
  /* Tighter container to pull text up */
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 8px;
}

.footer-logo-image {
  height: 300px;
  /* User requested 300px */
  width: auto;
  margin-top: 0;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0;
  padding-left: 35px;
  /* Adjusted visual alignment */
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Premium Page */
.premium-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--background);
}

.premium-card {
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
}

.premium-header {
  text-align: center;
  margin-bottom: 32px;
}

.premium-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 16px;
}

.premium-header h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.premium-header p {
  color: var(--text-light);
}

.premium-benefits {
  margin-bottom: 32px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.benefit:last-child {
  border-bottom: none;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.premium-price {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--background);
  border-radius: 16px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

.price-period {
  font-size: 1.25rem;
  color: var(--text-light);
}

.prodamus-widget {
  margin-bottom: 24px;
}

.payment-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 16px;
}

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

.premium-footer code {
  background: var(--background);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Monaco', monospace;
  font-size: 0.875rem;
}

.premium-footer .small {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* Success/Error Pages */
.success-container,
.error-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--background);
}

.success-card,
.error-card {
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.success-icon,
.error-icon {
  font-size: 5rem;
  display: block;
  margin-bottom: 24px;
}

.success-card h1,
.error-card h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.success-card p,
.error-card p {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 1.125rem;
}

/* Responsive Styles */

/* Prevent horizontal scroll on body */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* Tablet & Smaller Desktop (max-width: 1080px) */
@media (max-width: 1080px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero .container {
    padding: 0 40px;
  }
}

/* Tablet Portrait (max-width: 992px) */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .phone-mockup {
    max-width: 450px;
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    /* 2 columns on tablet */
    gap: 20px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .header .container {
    padding: 0 20px;
  }

  .nav-link {
    display: none;
  }

  .hero-title {
    font-size: 2.25rem;
    /* Smaller font for mobile */
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero .container {
    padding: 0 16px;
    gap: 30px;
    width: 100%;
    max-width: 100%;
  }

  /* Reset container padding for sections if needed */
  .pricing .container {
    padding: 0;
    /* Let grid handle padding */
    max-width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  /* Pricing Carousel for Mobile */
  .pricing-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    /* No gap for seamless swipe */
    padding: 20px 0 40px;
    margin: 0 -20px;
    /* Compensate for container padding if any remains, or ensure full bleeding */
    -webkit-overflow-scrolling: touch;
    width: calc(100% + 40px);
    /* Ensure it bleeds out of any parent padding */
    justify-content: flex-start;
  }

  /* Remove pseudo-elements spacing */
  .pricing-grid::before,
  .pricing-grid::after {
    display: none;
  }

  .pricing-card {
    flex: 0 0 100%;
    /* Strictly full width */
    width: 100%;
    min-width: unset;
    max-width: none;

    scroll-snap-align: start;
    /* Snap to start */
    margin-bottom: 0;

    /* Ensure content doesn't hit edges */
    padding: 32px 24px;
    box-sizing: border-box;

    box-shadow: none;
    /* Flatten for full width or keep minimal */
    border-radius: 0;
    /* Full width usually implies no side radius */
    border-left: none;
    border-right: none;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fff;
  }

  /* Ensure other grids stack vertically */
  .problem-grid,
  .features-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

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

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .phone-mockup {
    width: 240px;
  }
}

/* NUCLEAR OPTION: Forced Mobile Styles for Pricing */
@media (max-width: 768px) {

  /* Force container to allow full width children */
  body .pricing .container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Force Grid to behave as Flex Carousel */
  body .pricing-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 20px 0 40px !important;
    width: 100% !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    justify-content: flex-start !important;
    grid-template-columns: none !important;
  }

  /* Force Cards to be Full Width */
  body .pricing-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    scroll-snap-align: start !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    background: #fff !important;
    /* Internal padding for content */
    padding: 32px 24px !important;
    box-sizing: border-box !important;
  }
}