:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --bg-color: #f8fafc;
  --text-color: #1e293b;
  --card-bg: #ffffff;
  --accent-color: #ec4899;
  --font-family: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: var(--card-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  nav {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    font-size: 1rem;
  }

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

  .links a {
    margin-left: 0;
    font-size: 0.9rem;
  }
}

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

.logo img {
  height: 40px;
  width: auto;
  display: block;
  /* Ensure no weird spacing */
}

.links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s;
}

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

.links .btn {
  color: white;
}

.github-link {
  color: var(--text-color);
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    text-align: center;
    justify-content: center;
    padding: 0;
    /* Remove all padding */
    align-items: stretch;
    /* Make children stretch to full height */
  }

  .hero-content {
    max-width: 600px;
    align-self: center;
    /* Vertically center the content */
    padding: 6rem 2rem;
    /* Add padding to content instead */
  }

  .hero-image {
    width: 40%;
    /* Take up 40% of hero width */
    max-width: 40%;
    display: flex;
    align-items: stretch;
    /* Stretch to full height */
    margin: 0;
    padding: 0;
  }
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111827;
}

.hero p {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

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

@media (min-width: 768px) {
  .cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .cta-buttons {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .store-badge-link img {
    width: 100%;
    height: auto;
    max-width: 206px;
  }
}

.btn {
  display: inline-flex;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  height: 58px;
  /* Match Chrome badge height */
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

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

.primary-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.secondary-btn {
  background-color: white;
  color: var(--text-color);
  border: 1px solid #e2e8f0;
}

.secondary-btn:hover {
  background-color: #f1f5f9;
}

/* Mobile only - border radius and shadow */
@media (max-width: 767px) {
  .hero-image img {
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* Simple Grey Placeholder */
.hero-placeholder-box {
  width: 100%;
  height: 400px;
  min-height: 400px;
  background-color: #cbd5e1;
  /* Slightly darker grey for visibility */
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: block;
  border: 2px dashed #94a3b8;
  /* Dashed border to make it obvious */
}

/* CSS UI Placeholder */
.hero-ui-placeholder {
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.placeholder-header {
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background-color: #ef4444;
}

.dot.yellow {
  background-color: #f59e0b;
}

.dot.green {
  background-color: #22c55e;
}

.placeholder-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-line {
  height: 12px;
  background-color: #e2e8f0;
  border-radius: 6px;
}

.skeleton-line.title {
  width: 60%;
  height: 20px;
  margin-bottom: 1rem;
}

.skeleton-grid {
  display: flex;
  gap: 1rem;
}

.skeleton-card {
  flex: 1;
  height: 80px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.skeleton-chart {
  height: 120px;
  background-color: #f1f5f9;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.skeleton-chart::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Decision Tree Section */
.decision-section {
  padding: 4rem 2rem;
  background-color: var(--bg-color);
}

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

.decision-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 3rem;
}

.decision-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: none;
  background-color: white;
  color: var(--text-color);
  border-radius: 2rem;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.filter-btn:hover {
  background-color: #f1f5f9;
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

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

.card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, opacity 0.3s;
  border: 1px solid #e2e8f0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card.hidden {
  display: none;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.card-desc {
  color: #64748b;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.examples {
  list-style: none;
  margin-bottom: 1.5rem;
}

.examples li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: #475569;
  font-size: 0.9rem;
}

.examples li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.recommendation {
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  color: #334155;
}

.recommendation strong {
  color: var(--primary-color);
  display: block;
  font-size: 1.1rem;
}

/* Features Section */
.features {
  padding: 4rem 2rem;
  background-color: white;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
}

.feature-item .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background-color: #eff6ff;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

.feature-item h3 {
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.feature-item p {
  color: #64748b;
}

/* Footer */
footer {
  background-color: #f8fafc;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}

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

.heart {
  color: var(--accent-color);
}

/* Privacy Page Specifics */
.privacy-content {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.privacy-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.privacy-content section {
  margin-bottom: 2.5rem;
}

.privacy-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.privacy-content p,
.privacy-content ul {
  color: #4b5563;
  margin-bottom: 1rem;
}

.privacy-content ul {
  padding-left: 1.5rem;
}

/* In-Situ Wizard */
.wizard-trigger-container {
  text-align: center;
  margin-bottom: 2rem;
}

.in-situ-wizard {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.in-situ-wizard.hidden {
  display: none;
}

.wizard-step h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.wizard-explanation {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.wizard-options-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  /* More margin above buttons */
}

.wizard-btn-inline {
  min-width: 200px;
  background-color: #f8fafc;
  /* Subtle secondary color */
  border: 1px solid #cbd5e1;
  color: #334155;
}

.wizard-btn-inline:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}

.wizard-message {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.wizard-reset-btn {
  margin-top: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.badge.supported {
  background-color: #dcfce7;
  color: #166534;
}

.badge.unsupported {
  background-color: #f1f5f9;
  color: #64748b;
}

.supported-badge {
  color: #166534;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.unsupported-badge {
  color: #991b1b;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Hero Screenshot */
.hero-screenshot {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  /* Center on mobile */
}

@media (min-width: 768px) {
  .hero-screenshot {
    width: 100%;
    /* Fill the full width of hero-image container (40%) */
    max-width: none;
    height: auto;
    /* Auto height to show full image */
    max-height: 80vh;
    /* Limit height to 80% of viewport height */
    object-fit: contain;
    margin: 0;
    border-radius: 0;
    /* No border radius */
    box-shadow: none;
    /* No shadow */
  }
}

/* Screenshots Section */
.screenshots-section {
  padding: 4rem 2rem;
  background-color: #f8fafc;
}

.screenshots-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

.screenshot-item {
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

.screenshot-item h3 {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  font-size: 1.25rem;
  color: #1e293b;
}

.screenshot-item p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #64748b;
  font-size: 0.95rem;
}