/* -------------------------------------------------------------------------- */
/*                           FONT-FACE DECLARATIONS                           */
/* -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Merriweather';
  src: url('fonts/Merriweather_24pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('fonts/Merriweather_24pt-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('fonts/Merriweather_24pt-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('fonts/Merriweather_24pt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('fonts/Oswald-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('fonts/Oswald-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('fonts/Oswald-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('fonts/Oswald-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('fonts/Oswald-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('fonts/Oswald-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}



/* Subscription Plans Page Styles */

:root {
  /* Primary Color System from Extension */
  --color-1: #292929;  /* very dark gray */
  --color-2: #1D6AFF; /* blue  */
  --color-3: #FFFFFF; /* white */
  --color-4: #f0f0f0; /* very light gray */
  --color-5: #e0e0e0; /* light gray */
  --color-6: #ECF1FC; /* pale blue */
  --color-7: #788092; /* blue gray */
  --color-8: #949494; /* dark gray */
  --color-1-rgb: 41, 41, 41;

  /* Legacy color mappings for existing styles */
  --primary-color: var(--color-2);
  --secondary-color: var(--color-1);
  --accent-color: #f72585;
  --light-bg: var(--color-4);
  --dark-bg: var(--color-1);
  --text-color: var(--color-1);
  --light-text: var(--color-3);
  --border-color: var(--color-5);
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  
  /* Updated gray scale to match extension */
  --gray-100: var(--color-4);
  --gray-200: var(--color-5);
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: var(--color-8);
  --gray-600: var(--color-7);
  --gray-700: #495057;
  --gray-800: var(--color-1);
  --gray-900: var(--color-1);

  /* Font Sizes */
  --font-size-xs: 12px;     /* Extra Small - captions, fine print */
  --font-size-sm: 14px;     /* Small - secondary text, labels */
  --font-size-base: 16px;   /* Base - body text, default */
  --font-size-lg: 18px;     /* Large - emphasis text, buttons */
  --font-size-xl: 20px;     /* Extra Large - subheadings */
  --font-size-2xl: 24px;    /* 2X Large - section headings */
  --font-size-3xl: 30px;    /* 3X Large - page titles */
  --font-size-4xl: 36px;    /* 4X Large - main headings */
  --font-size-5xl: 48px;    /* 5X Large - hero text */
  --font-size-6xl: 60px;    /* 6X Large - display text */
  --font-size-7xl: 72px;    /* 7X Large - jumbo display */

  /* Font Weight for specific sizes */
  --font-weight-lg: 400;    /* Regular weight for 18px text */

  /* Font Family Variables */
  --font-primary: 'Merriweather', serif;
  --font-secondary: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Oswald', sans-serif;
  
  /* Font Weights */
  --font-weight-extralight: 200;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Button Variables from Extension */
  --button-font-size-large: 18px;
  --button-font-size-medium: 16px;
  --button-font-size-small: 14px;
  --button-padding-large: 12px 24px;
  --button-padding-medium: 10px 20px;
  --button-padding-small: 8px 16px;
  --button-background-color: var(--color-2);
  --button-text-color: var(--color-3);
  --button-border-color: var(--color-2);
  --button-hover-background-color: var(--color-1);
  --button-hover-text-color: var(--color-3);
  --button-height-large: 48px;
  --button-height-medium: 40px;
  --button-height-small: 32px;
  --button-border-radius: 5px;

  /* Input Form Styles from Extension */
  --input-padding: 10px 16px;
  --input-font-size: 16px;
  --input-border-radius: 5px;
  --input-border-color: var(--color-5);
  --input-background-color: var(--color-3);
  --input-text-color: var(--color-1);
  --input-focus-border-color: var(--color-2);
  --input-placeholder-color: var(--color-5);
}

*, *::before, *::after {
  box-sizing: border-box;
}


html {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  font-synthesis-weight: none;
  font-synthesis-style: none;
}


body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  margin: 0;
  padding: 0;
  position: relative;

}
/* -------------------------------------------------------------------------- */
/*                           NEW SECTION STYLES                               */
/* -------------------------------------------------------------------------- */

/* Hero Section - Takes up 85% of viewport */
.hero-section {
  height: 85vh;
  min-height: 500px;
  border: 1px solid var(--color-2);
  display: flex;
  flex-direction: column;
  padding: 0 2rem 2rem 2rem;
}

.hero-section .container {
  padding-top: 0;
  margin-top: 0;
}

.hero-nav {
  border: 1px solid var(--color-7);
  padding: 1rem 0;
  margin: 0 calc(-50vw + 50%) 2rem calc(-50vw + 50%);
  width: 100vw;
  position: relative;
  top: 0;
}

.hero-nav .header-content {
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.hero-nav .logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-1);
  text-decoration: none;
}

.hero-nav nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.hero-nav nav ul li a {
  color: var(--color-1);
  text-decoration: none;
  font-weight: 500;
}

.hero-nav nav ul li a:hover {
  color: var(--color-2);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  transform: translateY(5%);
}

/* Chrome CTA Button Styles - Should be placed BEFORE the media query */
.chrome-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2074ff, #1a5ed9);
  color: white;
  border: 1px solid var(--color-2);
  border-radius: 16px;
  padding: 16px 24px;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 1.1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 180px;
}

.chrome-cta-btn:hover {
  background: linear-gradient(145deg, #1a5ed9, #1653c7);
  border-color: var(--color-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: white;
}

.chrome-btn-content {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.chrome-icon {
  flex-shrink: 0;
}

.chrome-cta-btn span {
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

/* Features Section - Large section below hero */
.features-section {
  height: 85vh;
  min-height: 500px;
  border: 1px solid var(--success-color);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 2rem;
}

.features-section .container {
  margin-left: 0;
}

.features-content {
  text-align: left;
  max-width: 50%;
  position: absolute;
  left: 150px;
  border: 1px solid blue;
}

.features-content h2 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-family: var(--font-primary);
  line-height: 1.2;
  color: var(--color-1);
  white-space: nowrap;
  width: max-content;
  border: 1px solid red;
}


.h2-subhead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-7);
  margin: 0;
  display: inline-block;
  width: 0;
  min-width: 100%;
  border: 1px solid yellow;
}

/* Demo Section - Third section */
.demo-section {
  height: 85vh;
  min-height: 500px;
  border: 1px solid var(--error-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3rem 2rem;
}

.demo-content {
  text-align: left;
  max-width: 50%;
  margin-left: 50%;
}

.demo-content h2 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-family: var(--font-primary);
  line-height: 1.2;
  color: var(--color-1);
  white-space: nowrap;
  width: max-content;
  border: 1px solid red;
}

.demo-content {
  border: 1px solid blue;
}

.demo-content h2,
.demo-content .h2-subhead {
  display: inline-block;
  width: max-content;
}

.demo-content .h2-subhead {
  width: 100%;
  max-width: 100%;
}

/* Testimonials Section - Fourth section */
.testimonials-section {
  height: 85vh;
  min-height: 500px;
  border: 1px solid var(--warning-color);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 2rem;
}

.testimonials-section .container {
  margin-left: 0;
}

.testimonials-content {
  text-align: left;
  max-width: 50%;
  position: absolute;
  left: 150px;
}

.testimonials-content h2 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-family: var(--font-primary);
  line-height: 1.2;
  color: var(--color-1);
  white-space: nowrap;
  width: max-content;
  border: 1px solid red;
}

/* Bottom content styling */
.bottom-content {
  margin-top: 4rem;
}




/* Headings use Oswald */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-medium);
}

/* Header Styles - Same as page background */
header {
  background-color: var(--light-bg);
  color: var(--color-1);
  padding: 0.2rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: var(--font-weight-semibold);
}

.logo a {
  color: var(--color-1);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--color-7);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  font-weight: var(--font-weight-medium);
}

nav a:hover {
  background-color: var(--color-6);
  color: var(--color-2);
  text-decoration: none;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 1.2rem 2rem 3rem 2rem;
}

.page-title {
  font-family: var(--font-primary);
  font-size: 3.6rem;
  color: var(--gray-800);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-align: center;
  width: 100%;
  margin: 0 auto 1rem auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.page-subtitle {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: var(--font-weight-regular);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
  text-align: center;
}

.plans-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

.plan-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  width: 320px;
  border: 1px solid var(--color-5);
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-2);
}

.plan-header {
  padding: 1.5rem;
  background-color: white;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 0.1rem;
}

.free-plan .plan-header {
  background-color: white;
}

.standard-plan .plan-header {
  background-color: white;
}

.premium-plan .plan-header {
  background-color: white;
}

.plan-name {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
}

.price-period {
  font-size: 1rem;
  opacity: 0.8;
}

.plan-description {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  font-size: 18px;
}

.features-list {
  padding: 1.5rem;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

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

.feature-icon {
  color: var(--success-color);
  font-size: 1.2rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.95rem;
}

.plan-footer {
  padding: 1.5rem;
  text-align: center;
  background-color: var(--gray-100);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 1.1rem;
  padding: 16px 32px;
  height: auto;
  background: linear-gradient(145deg, #2074ff, #1a5ed9);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  width: auto;
  box-shadow: 
    0 4px 12px rgba(32, 116, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: linear-gradient(145deg, #1a5ed9, #1548b3);
  transform: translateY(-1px);
  box-shadow: 
    0 6px 16px rgba(32, 116, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0px);
  box-shadow: 
    0 2px 8px rgba(32, 116, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--button-border-color);
  border: 1px solid var(--button-border-color);
}

.btn-outline:hover {
  background-color: var(--button-hover-background-color);
  color: var(--button-hover-text-color);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 3rem 2rem;
  background-color: white;
  border-radius: 10px;
  border: 1px solid var(--color-5);
  margin: 3rem auto;
  max-width: 800px;
}

.cta-section .section-title {
  font-size: 2rem;
  color: var(--gray-800);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  width: auto;
  min-width: 180px;
  padding: var(--button-padding-large);
  font-size: var(--button-font-size-large);
  height: 60px;
  font-weight: var(--font-weight-medium);
  font-family: var(--font-primary);
}

.current-plan {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--success-color);
}

.current-plan::before {
  content: 'Current Plan';
  position: absolute;
  top: 25px;
  right: -30px;
  background-color: var(--success-color);
  color: white;
  padding: 5px 0;
  width: 150px;
  text-align: center;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 1;
}

.free-plan .btn {
  background-color: var(--gray-600);
}

.free-plan .btn:hover {
  background-color: var(--gray-700);
}

.standard-plan .btn {
  background-color: var(--primary-color);
}

.standard-plan .btn:hover {
  background-color: var(--secondary-color);
}

.premium-plan .btn {
  background-color: var(--accent-color);
}

.premium-plan .btn:hover {
  background-color: #d91a6f;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 3rem;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-5);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.comparison-table th {
  background-color: var(--gray-200);
  font-weight: bold;
}

.comparison-table tr:nth-child(even) {
  background-color: var(--gray-100);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

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

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

.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.5rem;
  background-color: var(--gray-100);
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  padding: 1rem 1.5rem;
  display: none;
  border-top: 1px solid var(--border-color);
}

.faq-question.active + .faq-answer {
  display: block;
}

footer {
  background-color: white;
  color: black;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  font-size: 14px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: black;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  header {
    padding: 0.75rem 0;
  }
  
  /* Mobile Hero Section */
  .hero-section {
    height: auto;
    min-height: 70vh;
    padding: 1rem;
  }
  
  .hero-nav {
    margin: 0 calc(-50vw + 50%) 1rem calc(-50vw + 50%);
  }
  
  .hero-nav .header-content {
    padding: 0 1rem;
  }
  
  .hero-content {
    transform: translateY(0%);
    padding: 2rem 0;
  }



  
  .page-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }
  
  .page-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 90%;
  }
  
  /* Mobile Sections */
  .features-section,
  .demo-section,
  .testimonials-section {
    height: auto;
    min-height: 50vh;
    padding: 3rem 1rem;
  }
  
  .features-content,
  .demo-content,
  .testimonials-content {
    position: static;
    left: auto;
    max-width: 100%;
    margin-left: 0;
  }
  

  
  .h2-subhead {
    width: auto;
    min-width: auto;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  
  .demo-content h2,
  .demo-content .h2-subhead {
    display: block;
    width: auto;
  }
  
  .demo-content .h2-subhead {
    width: auto;
    max-width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    min-width: 200px;
  }
  
  .cta-section {
    margin: 2rem auto;
    padding: 2rem 1.5rem;
  }
  
  .plans-container {
    flex-direction: column;
    align-items: center;
  }
  
  .plan-card {
    width: 100%;
    max-width: 350px;
  }
  
  .comparison-table {
    font-size: 0.9rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
}

#error-message {
  display: none;
  background-color: var(--error-color);
  color: white;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  text-align: center;
}

#success-message {
  display: none;
  background-color: var(--success-color);
  color: white;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  text-align: center;
}

.loading {
  text-align: center;
  margin: 2rem 0;
  font-size: 1.2rem;
  color: var(--gray-600);
}

/* Premium Badge Styling */
.premium-badge {
  background: #ff6b35;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateY(-4px);
  display: inline-block;
}

.loading:after {
  content: "...";
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { content: "."; }
  40% { content: ".."; }
  60%, 100% { content: "..."; }
}
/* Sign-up page – enforce Merriweather + tame autofill (using color system) */
.signup-page h2.create-account-heading,
.signup-page .signup-form label,
.signup-page .signup-form button,
.signup-page .signup-form input {
  font-family: 'Merriweather', serif !important;
}

/* Base input look (typed/fresh states) */
.signup-page .signup-form input {
  background-color: var(--input-background-color);
  color: var(--input-text-color);
  caret-color: var(--input-text-color);
  font-size: 16px; /* prevents iOS zoom */
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}


.btn:focus-visible,
.signup-page .signup-form input:focus-visible {
  outline: 2px solid var(--input-focus-border-color);
  outline-offset: 2px;
}
/* Placeholder */
.signup-page .signup-form input::placeholder {
  color: var(--input-placeholder-color);
  opacity: 1; /* Firefox */
  font-family: 'Merriweather', serif;
}

/* Autofill (Chrome/Safari + Firefox) */
.signup-page .signup-form input:-webkit-autofill,
.signup-page .signup-form input:-webkit-autofill:hover,
.signup-page .signup-form input:-webkit-autofill:focus,
.signup-page .signup-form input:-moz-autofill {
  font-family: 'Merriweather', serif !important;
  -webkit-text-fill-color: var(--input-text-color) !important; /* WebKit */
  -moz-text-fill-color: var(--input-text-color) !important;    /* Firefox */
  box-shadow: 0 0 0 1000px var(--input-background-color) inset !important;
  -webkit-box-shadow: 0 0 0 1000px var(--input-background-color) inset !important;
  transition: background-color 9999ms ease-out, color 9999ms ease-out !important;
}

/* Safari autofill first line size/face */
.signup-page .signup-form input:-webkit-autofill::first-line {
  font-size: 16px !important;
  font-family: 'Merriweather', serif !important;
}


/* Pick your voice page font overrides to restore original Merriweather fonts */
.onboarding-container h1 {
  font-family: 'Merriweather', serif !important;
}

.onboarding-container p {
  font-family: 'Merriweather', serif !important;
}

.voice-name {
  font-family: 'Merriweather', serif !important;
}

.form-button {
  font-family: 'Merriweather', serif !important;
}

/* Pick your voice page background color */
body:has(.onboarding-container) {
  background-color: var(--color-3) !important;
}

/* Choose plan page overrides to restore original fonts and colors from 3 commits ago */
body[style*="background-color: var(--color-7)"] {
  background-color: #ffffff !important;
}

/* Restore original choose_plan page styling */
.onboarding-container .stripe-disclaimer {
  font-family: 'Merriweather', serif !important;
}

.onboarding-container .form-button {
  background: #4361ee !important;
}

.onboarding-container .form-button:hover {
  background: #3f37c9 !important;
}

.onboarding-container .success-message {
  color: #4361ee !important;
}

/* Restore original plan card colors */
.plan-header {
  background-color: #4361ee !important;
}

.standard-plan .plan-header {
  background-color: #4361ee !important;
}

.btn {
  background-color: #4361ee !important;
}

.btn:hover {
  background-color: #3f37c9 !important;
}

.standard-plan .btn {
  background-color: #4361ee !important;
}

.standard-plan .btn:hover {
  background-color: #3f37c9 !important;
}

/* -------------------------------------------------------------------------- */
/*                        NEW BABBLE LAYOUT STYLES                           */
/* -------------------------------------------------------------------------- */

/* Layout variables */
:root {
  --babble-pad: clamp(20px, 4vw, 64px);
  --babble-maxw: 1600px;
  --babble-accent: #28a745;
}




.babble_nav {
  position: relative;
  padding: 20px;
  z-index: 100;
}

.babble_logo {
  width: 120px;
  height: auto;
}

/* Debug borders removed for production */

/* Section heights */
.babble_hero { height: 85vh; }
.babble_section_1,
.babble_section_2,
.babble_section_3 { 
  min-height: 60vh;  /* mobile: shorter sections */
}
.babble_section_4 { height: 25vh; }

/* Hero layout (centered) */
.babble_hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--babble-pad);
}

.babble_hero h1 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 60px);
  line-height: 120%;
  margin: 0 0 24px;
  text-wrap: balance;
}

.babble_hero h2 {
  font-family: 'Merriweather', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 120%;
  color: var(--color-7);
  margin: 0 0 20px;
}

.babble_hero_subheadline {
  font-family: 'Merriweather', serif;
  font-size: 25px;
  font-weight: 100;
  line-height: 130%;
  color: var(--color-8);
  margin: 0 0 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile-only message */
.babble_mobile_notice {
  display: block;
  margin: 0 auto;
}

.babble_mobile_notice_container {
  border: 2px solid #333333;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.babble_desktop_only_message {
  font-family: 'Merriweather', serif !important;
  font-size: 18px !important;
  line-height: 130% !important;
  color: var(--color-7) !important; 
  text-align: center !important;
  margin: 0 !important;
}

.babble_mobile_notice_bottom {
  display: block;
  margin: 0 auto;
}

/* Hide CTA buttons on mobile */
.cta-buttons {
  display: none;
}

/* Inner grid for sections 1–3 fills the section height */
.babble_section_inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;  /* mobile: stacked */
  gap: 20px;  /* mobile: smaller gap */
  align-items: center;
  padding: var(--babble-pad);
  max-width: var(--babble-maxw);
  margin: 0 auto;
}

.babble_copy {
  max-width: 48ch;
}

.babble_copy h2 {
  font-family: 'Merriweather', serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 12px 0;
  font-size: clamp(18px, 5vw, 41px);
  line-height: 120%;
}

/* Mobile-only adjustments */
@media (max-width: 767px) {
  .babble_copy h2 {
    font-size: clamp(22px, 5vw, 41px);
  }
  
  .babble_hero_subheadline {
    font-size: 18px; /* 30% smaller than 25px */
  }
}

.babble_copy p {
  font-family: 'Merriweather', serif;
  margin: 0;
  color: var(--color-8);
  font-size: clamp(17px, 2.2vw, 22px);  /* mobile: 20% bigger (14px -> 17px) */
  line-height: 1.35;
}

.babble_media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ddd;
  border-radius: 8px;
}

.babble_section_1 .babble_media[data-image="adhd-brain"] {
  background-image: url('/images/adhd_brain.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.babble_section_1 .babble_media[data-image="save-time"] {
  background-image: url('/images/save_time.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.babble_section_2 .babble_media {
  background-image: url('/images/pill.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.babble_section_3 .babble_media {
  background-image: url('/images/human_voices.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Bottom CTA centered */
.babble_section_4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 var(--babble-pad);
  gap: 2rem;
}

.babble_cta_heading {
  font-family: 'Merriweather', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 500;
  line-height: 120%;
  color: var(--color-1); 
  text-align: center;
  margin: 0;
}

/* Split columns on tablet/desktop; flip section 2 media */
@media (min-width: 768px) {
  .babble_section_1,
  .babble_section_2,
  .babble_section_3 { 
    height: 85vh;  /* desktop: full height */
  }
  
  .babble_section_inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);  /* desktop: larger gap */
  }
  .babble_section_2 .babble_media { 
    order: -1; 
  }
  
  /* Show CTA buttons on desktop */
  .cta-buttons {
    display: block;
  }
  
  /* Hide mobile messages on desktop */
  .babble_mobile_notice,
  .babble_mobile_notice_bottom {
    display: none;
  }
}

@media (min-width: 1280px) {
  .babble_copy h2 { 
    font-size: clamp(30px, 5vw, 46px); 
  }
  .babble_copy p { 
    font-size: clamp(18px, 1.6vw, 24px); 
  }
}