/* Basil AI - Main Stylesheet */

:root {
  --basil-green: #52C41A;
  --accent-red: #FF4444;
  --text-primary: #000000;
  --text-secondary: #666666;
  --bg-white: #FFFFFF;
  --bg-light: #F5F5F5;
  --bg-dark: #1A1A1A;
  --border-color: #E0E0E0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--basil-green);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
nav {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo img {
  height: 36px;
  width: auto;
  margin-right: 0.5rem;
}

.logo span {
  font-size: 2rem;
  margin-right: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-red);
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
}

.hero-content {
  flex: 1;
  text-align: left;
}

.hero-video {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-buttons-centered {
  justify-content: center;
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-features span {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-red);
  color: white;
}

.btn-primary:hover {
  background: #CC0000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-red);
  color: var(--accent-red);
}

.btn-outline:hover {
  background: var(--accent-red);
  color: white;
}

/* Video in Hero */
.hero .video-container {
  max-width: 320px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero .promo-video {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Features Grid */
.features {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  gap: 2.5rem;
  align-items: center;
  padding: 2rem;
  margin-top: 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbf3 100%);
  border: 1px solid rgba(82, 196, 26, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.spotlight-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(82, 196, 26, 0.12);
  color: #2f7d12;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.spotlight-copy h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.spotlight-copy p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.spotlight-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.spotlight-list li {
  margin-bottom: 0.75rem;
}

.spotlight-image {
  display: flex;
  justify-content: center;
}

.spotlight-image img {
  width: 100%;
  max-width: 360px;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-carousel {
  margin-top: 3rem;
}

.feature-carousel-stage {
  position: relative;
  min-height: 480px;
}

.feature-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
  gap: 2.5rem;
  align-items: center;
  padding: 2.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbf3 100%);
  border: 1px solid rgba(82, 196, 26, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.feature-slide.is-active {
  display: grid;
}

.feature-slide-copy h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-slide-copy p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.feature-slide-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-slide-visual img {
  width: 100%;
  max-width: 320px;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-carousel-button {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-carousel-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(82, 196, 26, 0.35);
}

.feature-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.feature-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.feature-carousel-dot.is-active {
  background: var(--basil-green);
  transform: scale(1.15);
}

.feature-card {
  padding: 2rem;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
}

/* Pricing Section */
.pricing {
  padding: 4rem 0;
  background: var(--bg-light);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--accent-red);
  transform: scale(1.05);
}

.pricing-card.featured .badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--accent-red);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

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

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

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

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

.price-features {
  list-style: none;
  margin: 2rem 0;
}

.price-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.price-features li:before {
  content: "✓ ";
  color: var(--basil-green);
  font-weight: bold;
  margin-right: 0.5rem;
}

.price-features li.disabled {
  color: #999;
  text-decoration: line-through;
}

.price-features li.disabled:before {
  content: "✗ ";
  color: #999;
}

/* Screenshots Gallery */
.screenshots {
  padding: 4rem 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.screenshot {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.screenshot:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-caption {
  padding: 0.75rem;
  background: var(--bg-light);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #999;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #999;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 20px;
}

.legal-content h1 {
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.legal-content ul, .legal-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--bg-light);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .nav-container {
    padding: 1rem 20px;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .hero {
    padding: 3rem 0;
  }

  .hero-container {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

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

  .hero .video-container {
    max-width: 280px;
  }

  .spotlight-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .spotlight-copy {
    text-align: left;
  }

  .feature-carousel-stage {
    min-height: auto;
  }

  .feature-slide {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .feature-slide-copy h3 {
    font-size: 1.6rem;
  }

  .feature-slide-visual img {
    max-width: 280px;
  }

  .feature-carousel-controls {
    flex-direction: column;
  }
  
  .features-grid,
  .pricing-cards,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
}

.mobile-nav.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
}

.mobile-nav li {
  margin: 1rem 0;
}

.mobile-nav a {
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
}

.close-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: white;
  padding: 1rem;
  display: none;
  z-index: 10000;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-buttons button {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.accept-cookies {
  background: var(--accent-red);
  color: white;
}

.reject-cookies {
  background: transparent;
  color: white;
  border: 1px solid white;
}
/* ==========================================
   WEB APP SPECIFIC STYLES
   ========================================== */

/* iOS App Promotion Banner */
.ios-app-banner {
  background: linear-gradient(135deg, var(--basil-green) 0%, #389e0d 100%);
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.ios-app-banner .banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.ios-app-banner .banner-text {
  flex: 1;
  color: white;
}

.ios-app-banner .banner-text strong {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 5px;
}

.ios-app-banner .banner-text p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.95;
}

.ios-app-banner .banner-cta {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.ios-app-banner .banner-cta:hover {
  transform: scale(1.05);
}

/* Browser Compatibility Banner */
.compatibility-banner {
  background: #FFF3CD;
  border: 1px solid #FFE69C;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.compatibility-banner.warning {
  background: #FFF3CD;
  border-color: #FFE69C;
}

.compatibility-banner .icon {
  font-size: 1.5rem;
}

.compatibility-banner .message {
  flex: 1;
  color: #856404;
  font-size: 0.95rem;
}

/* Loading Status - Compact Version */
.loading-status-compact {
  background: white;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 0.85rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.status-text {
  color: var(--text-primary);
  font-weight: 600;
}

.status-text.ready {
  color: var(--basil-green);
}

.status-text.loading {
  color: #3b82f6;
}

.progress-bar-mini {
  width: 80px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-left: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--basil-green) 0%, #389e0d 100%);
  width: 0%;
  transition: width 0.3s ease;
}

/* Control Section */
.control-section {
  margin-bottom: 40px;
}

.control-and-waveform {
  display: flex;
  gap: 30px;
  align-items: center;
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.record-btn, .stop-btn {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.record-btn {
  background: linear-gradient(135deg, var(--accent-red) 0%, #dc2626 100%);
  color: white;
}

.record-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(255, 68, 68, 0.4);
}

.record-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.stop-btn {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
}

.stop-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.mic-icon, .stop-icon {
  width: 48px;
  height: 48px;
}

.btn-text {
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.recording-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-red);
  font-weight: 600;
  font-size: 1.1rem;
}

.pulse {
  width: 12px;
  height: 12px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Audio Visualizer */
.audio-visualizer {
  background: white;
  border-radius: 12px;
  padding: 20px;
  flex: 1;
  box-shadow: var(--shadow);
  min-width: 0;
}

.visualizer-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

#waveform-canvas {
  width: 100%;
  height: 100px;
  background: #1f2937;
  border-radius: 8px;
  display: block;
}

/* Transcription Container */
.transcription-container {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.transcription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.transcription-header h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timer {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--basil-green);
}

.transcription-display {
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  padding: 20px;
  background: var(--bg-light);
  border-radius: 8px;
}

.transcription-display .placeholder {
  color: var(--text-secondary);
  font-size: 1rem;
  text-align: center;
  padding: 60px 20px;
}

.transcript-text {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.interim-transcript {
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.7;
}

.transcript-break {
  display: block;
  margin: 15px 0;
}

/* Summary Container */
.summary-container {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.summary-header h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.summary-display {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.summary-display .placeholder {
  color: var(--text-secondary);
  text-align: center;
  padding: 40px 20px;
}

.summary-item {
  margin-bottom: 20px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 4px solid var(--basil-green);
}

.summary-item h3 {
  font-size: 1rem;
  color: var(--basil-green);
  margin-bottom: 10px;
  font-weight: 600;
}

.summary-item p {
  margin: 0;
  color: var(--text-primary);
}

/* Download Section */
.download-section {
  background: white;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.download-section h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.download-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.download-btn {
  background: linear-gradient(135deg, var(--basil-green) 0%, #389e0d 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

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

/* Information Sections */
.info-sections {
  margin-top: 60px;
}

.info-section {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.info-section h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.info-section h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 30px;
  margin-bottom: 15px;
}

.info-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.info-section ul {
  margin-left: 25px;
  margin-bottom: 20px;
}

.info-section ul li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.info-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.info-section a {
  color: var(--basil-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.info-section a:hover {
  color: #389e0d;
  text-decoration: underline;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 30px 0;
}

.comparison-item {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 25px;
}

.comparison-item strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.comparison-item ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comparison-item ul li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

/* Scrollbar Styling for Transcription */
.transcription-display::-webkit-scrollbar {
  width: 8px;
}

.transcription-display::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.transcription-display::-webkit-scrollbar-thumb {
  background: var(--basil-green);
  border-radius: 4px;
}

.transcription-display::-webkit-scrollbar-thumb:hover {
  background: #389e0d;
}

/* Web App Responsive Overrides */
@media (max-width: 768px) {
  .ios-app-banner .banner-content {
    flex-direction: column;
    text-align: center;
  }

  .ios-app-banner .banner-text strong {
    font-size: 1.1rem;
  }

  .ios-app-banner .banner-text p {
    font-size: 0.95rem;
  }

  .loading-status-compact {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .control-and-waveform {
    flex-direction: column;
    gap: 20px;
  }

  .audio-visualizer {
    width: 100%;
  }

  .record-btn, .stop-btn {
    width: 160px;
    height: 160px;
  }

  .mic-icon, .stop-icon {
    width: 40px;
    height: 40px;
  }

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

  .info-section {
    padding: 30px 20px;
  }

  .info-section h2 {
    font-size: 1.6rem;
  }

  .info-section h3 {
    font-size: 1.3rem;
  }

  .info-section p,
  .info-section ul li {
    font-size: 1rem;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================
   EMAIL POPUP STYLES
   ========================================== */

/* Overlay */
.email-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.email-popup-overlay.show {
  display: flex;
  opacity: 1;
}

/* Modal Card */
.email-popup {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close Button */
.email-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
}

.email-popup-close:hover {
  color: var(--text-primary);
}

/* Header */
.email-popup-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.email-popup h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.email-popup-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Form */
.email-popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.email-popup-form input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-popup-form input[type="email"]:focus {
  border-color: var(--basil-green);
  box-shadow: 0 0 0 3px rgba(82, 196, 26, 0.15);
}

.email-popup-form input[type="email"].error {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.15);
}

.email-popup-error {
  color: var(--accent-red);
  font-size: 0.85rem;
  margin: 0;
  display: none;
}

.email-popup-error.show {
  display: block;
}

.email-popup-form button[type="submit"] {
  background: var(--accent-red);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.email-popup-form button[type="submit"]:hover:not(:disabled) {
  background: #e03030;
  transform: translateY(-1px);
}

.email-popup-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Privacy Note */
.popup-privacy {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.popup-privacy a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.popup-privacy a:hover {
  color: var(--text-primary);
}

/* Success State */
.email-popup-success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.email-popup-success.show {
  display: block;
}

.email-popup-success .success-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.email-popup-success h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.email-popup-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .email-popup {
    padding: 2rem 1.5rem;
    max-width: 95%;
    border-radius: 14px;
  }

  .email-popup h3 {
    font-size: 1.3rem;
  }

  .email-popup-subtitle {
    font-size: 0.9rem;
  }

  .email-popup-form input[type="email"],
  .email-popup-form button[type="submit"] {
    padding: 0.8rem 1rem;
  }
}
