/* ============================================================================
   PolicyPulse — Professional Insurance Dashboard Landing Page
   Design: Teal/Navy palette with clean, trustworthy aesthetic
   ============================================================================ */

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

:root {
  --primary-color: #0d7a7a;
  --secondary-color: #1e3a5f;
  --accent-color: #00a78e;
  --light-teal: #f0f9f8;
  --light-gray: #f8f9fa;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --border-color: #e0e0e0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
}

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

/* ============================================================================
   Navigation
   ============================================================================ */

.navbar {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.logo svg {
  color: var(--accent-color);
}

.site-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
}

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

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--secondary-color);
  color: #ffffff;
}

.btn-secondary:hover {
  opacity: 0.9;
}

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

.btn-outline:hover {
  background: var(--light-teal);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

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

.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--light-teal), #ffffff);
}

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

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.email-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.email-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: var(--transition);
}

.email-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 122, 122, 0.1);
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Dashboard Preview */

.dashboard-preview {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.8s ease 0.2s both;
}

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

.preview-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.preview-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--border-color);
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.policy-card {
  padding: 1rem;
  border-left: 4px solid var(--accent-color);
  background: var(--light-gray);
  border-radius: 0.5rem;
  transition: var(--transition);
}

.policy-card:hover {
  transform: translateX(4px);
  background: var(--light-teal);
}

.policy-card.alert {
  border-left-color: var(--warning-color);
}

.policy-badge {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.policy-card.alert .policy-badge {
  color: var(--warning-color);
}

.policy-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============================================================================
   Social Proof
   ============================================================================ */

.social-proof {
  padding: 5rem 0;
  background: var(--light-gray);
}

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

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

.testimonial {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-name {
  font-weight: 700;
  color: var(--text-dark);
}

.author-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.how-it-works {
  padding: 5rem 0;
  background: #ffffff;
}

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

.step {
  text-align: center;
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
}

.step h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.step p {
  color: var(--text-muted);
  line-height: 1.7;
}

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

.pricing {
  padding: 5rem 0;
  background: var(--light-gray);
}

.pricing-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

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

.pricing-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--primary-color);
}

.pricing-card.featured {
  border-color: var(--accent-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
  border-color: var(--primary-color);
}

.pricing-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.pricing-price {
  margin-bottom: 0.5rem;
}

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

.period {
  color: var(--text-muted);
  font-size: 1rem;
  margin-left: 0.5rem;
}

.pricing-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

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

.pricing-features li {
  padding: 0.75rem 0;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding-left: 1.75rem;
}

.pricing-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 800;
}

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

/* ============================================================================
   AI Demo
   ============================================================================ */

.ai-demo {
  padding: 5rem 0;
  background: #ffffff;
}

.demo-content {
  max-width: 600px;
  margin: 3rem auto;
}

.demo-label {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.ai-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-form input {
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: var(--transition);
}

.ai-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 122, 122, 0.1);
}

.ai-form button {
  align-self: flex-start;
}

#ai-response {
  background: var(--light-teal);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.demo-loading {
  text-align: center;
  padding: 2rem;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================================
   FAQ
   ============================================================================ */

.faq {
  padding: 5rem 0;
  background: var(--light-gray);
}

.faq-items {
  max-width: 700px;
  margin: 3rem auto;
}

.faq-item {
  margin-bottom: 1rem;
  background: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  text-align: left;
}

.faq-question:hover {
  background: var(--light-teal);
}

.faq-question svg {
  transition: var(--transition);
  flex-shrink: 0;
  color: var(--primary-color);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  background: var(--light-gray);
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.8;
}

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

.final-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  text-align: center;
}

.final-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.final-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.final-cta .btn-primary {
  background: #ffffff;
  color: var(--primary-color);
}

.final-cta .btn-primary:hover {
  transform: translateY(-2px);
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  background: var(--secondary-color);
  color: #ffffff;
  padding: 3rem 0 1rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-logo svg {
  color: var(--accent-color);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-email-form input {
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.footer-email-form input::placeholder {
  color: var(--text-muted);
}

.footer-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.75rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

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

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .email-form {
    flex-direction: column;
  }

  .email-form input {
    width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .final-cta h2 {
    font-size: 1.75rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .amount {
    font-size: 2rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
  }

  .nav-content {
    padding: 0.75rem 0;
  }

  .logo {
    gap: 0.5rem;
    font-size: 1rem;
  }

  .hero-subtitle {
    margin-bottom: 1.5rem;
  }

  .social-proof,
  .how-it-works,
  .pricing,
  .ai-demo,
  .faq,
  .final-cta {
    padding: 3rem 0;
  }
}
