/* Active Study Guides - Storefront Styles */
/* Clean, professional design with light/dark mode support */

:root {
  /* Color scheme support */
  color-scheme: light dark;

  /* Brand Colors - Actual brand turquoise */
  --primary: #3dc2c8;
  --primary-dark: #1e7e7f;
  --primary-light: #5ed4d9;
  --primary-lighter: #8de3e7;
  --primary-subtle: rgba(61, 194, 200, 0.1);
  --primary-gradient: linear-gradient(135deg, #3dc2c8 0%, #1e7e7f 100%);

  /* Light Mode - Proper use of grays, not all-white */
  --bg-page: #e2e8f0;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --bg-elevated: #ffffff;

  /* Section hierarchy - medium grays for depth */
  --bg-section-high: #cbd5e1;
  --bg-section-medium: #e2e8f0;
  --bg-section-low: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-primary: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;

  /* Legacy gray scale - for backward compatibility with inline styles */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Footer */
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;

  /* Semantic */
  --success: #059669;
  --success-light: #d1fae5;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --error: #dc2626;
  --error-light: #fee2e2;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Mode - Slate with brand turquoise accents */
    --bg-page: #0f172a;
    --bg-card: #1e293b;
    --bg-card-alt: #334155;
    --bg-elevated: #1e293b;

    /* Section hierarchy - grays only */
    --bg-section-high: #334155;
    --bg-section-medium: #151f2e;
    --bg-section-low: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-on-primary: #ffffff;
    --border-color: #334155;
    --border-subtle: #1e293b;

    /* Legacy gray scale - inverted for dark mode */
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;

    /* Footer */
    --footer-bg: #020617;
    --footer-text: #64748b;

    /* Brighter brand turquoise for dark mode visibility */
    --primary: #5ed4d9;
    --primary-dark: #3dc2c8;
    --primary-light: #8de3e7;
    --primary-subtle: rgba(61, 194, 200, 0.15);
    --primary-gradient: linear-gradient(135deg, #5ed4d9 0%, #3dc2c8 100%);

    /* Adjusted shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  }
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  height: 48px;
  width: auto;
}

@media (min-width: 768px) {
  .logo {
    height: 64px;
  }
}

@media (min-width: 1024px) {
  .logo {
    height: 72px;
  }
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-on-primary);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-on-primary);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-on-primary);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--primary);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background: var(--bg-card-alt);
  border-color: var(--primary);
  text-decoration: none;
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-on-primary);
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 1.5rem;
}

/* Product Cards */
.products-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--bg-card);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

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

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

.product-card.featured::before {
  content: 'BEST VALUE';
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 0.25rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  transform: rotate(45deg);
}

.product-header {
  padding: 1.5rem;
  text-align: center;
  background: var(--bg-card-alt);
}

.product-header h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

.product-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.product-body {
  padding: 1.5rem;
  flex-grow: 1;
}

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

.product-features li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-secondary);
}

.product-features li::before {
  content: '\\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.product-footer {
  padding: 1.5rem;
  padding-top: 0;
}

/* Sections - Variable contrast based on importance */
.section {
  padding: 4rem 0;
  background: var(--bg-section-low);
}

/* High importance - draws attention (Choose Path, key decisions) */
.section-high {
  background: var(--bg-section-high);
}

/* Medium importance - value props, explanations */
.section-medium {
  background: var(--bg-section-medium);
}

/* Low importance - downsells, secondary (default, matches page) */
.section-low,
.section-alt {
  background: var(--bg-section-low);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Content Section (used in gameplan, crossword-book, start pages) */
.content-section {
  padding: 3rem 0;
  background: var(--bg-section-low);
}

.content-section.section-high {
  background: var(--bg-section-high);
}

.content-section.section-medium {
  background: var(--bg-section-medium);
}

.content-section.section-low,
.content-section.section-alt {
  background: var(--bg-section-low);
}

.content-section h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.content-section h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.content-section p,
.content-section li {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Features */
.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--text-on-primary);
}

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

.feature p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Testimonials */
.testimonial {
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.testimonial-content {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer a {
  color: var(--footer-text);
}

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

.footer .logo {
  height: 80px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

@media (min-width: 768px) {
  .footer .logo {
    height: 100px;
  }
}

/* Success Page */
.success-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.success-card {
  background: var(--bg-card);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  border: 1px solid var(--border-color);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--text-on-primary);
}

.success-card h1 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.success-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Email Capture Form */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.email-form input {
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--bg-card);
  color: var(--text-primary);
}

.email-form input:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* Loading Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden { display: none; }

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  .nav {
    display: none;
  }

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

  .section {
    padding: 2rem 0;
  }
}

/* Small screens (phones) */
@media (max-width: 480px) {
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }

  .path-exam-badge {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
  }

  .status-badge {
    font-size: 0.75rem;
  }

  .path-price-note {
    font-size: 0.875rem;
  }

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

  .final-cta .btn {
    width: 100%;
  }

  .container, .container-narrow {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ===== INDEX PAGE SPECIFIC STYLES ===== */
/* .path-card styles are in index.html inline <style> (cover-image layout) */

.path-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.path-progression {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.path-exams {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.path-exam-badge {
  background: var(--bg-card-alt);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

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

.path-price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.path-card-footer {
  margin-top: auto;
  text-align: center;
}

/* Vault Box */
.vault-box {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.vault-box p {
  color: var(--text-secondary);
}

.vault-box strong {
  color: var(--text-primary);
}

.vault-features {
  text-align: left;
  margin: 1.5rem 0;
}

.vault-features li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.vault-features li::marker {
  color: var(--primary);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--text-on-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Owner Callout */
.owner-callout {
  background: var(--primary-subtle);
  border: 2px solid var(--primary-light);
  border-radius: 12px;
  padding: 2.5rem;
  margin-top: 3rem;
}

.owner-callout h3 {
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.owner-callout p,
.owner-callout li {
  color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
  .owner-callout {
    background: var(--primary-subtle);
    border-color: var(--primary);
  }
  .owner-callout h3,
  .owner-callout p,
  .owner-callout li {
    color: var(--text-primary);
  }
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

.comparison-col {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.comparison-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

.comparison-col li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.comparison-col.bad li::before {
  content: "\\2717";
  position: absolute;
  left: 0;
  color: var(--error);
}

.comparison-col.good li::before {
  content: "\\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Final CTA */
.final-cta {
  background: var(--primary);
  color: var(--text-on-primary);
  text-align: center;
  padding: 4rem 0;
}

.final-cta h2 {
  color: var(--text-on-primary);
  margin-bottom: 1rem;
}

.final-cta p {
  color: var(--text-on-primary);
  opacity: 0.95;
  margin-bottom: 2rem;
}

.final-cta a {
  color: var(--text-on-primary);
}

.final-cta .btn-secondary {
  background: white;
  color: var(--primary-dark);
  border-color: white;
  font-weight: 700;
}

.final-cta .btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
}

/* ===== GAMEPLAN/CROSSWORD/START PAGE STYLES ===== */

/* Value Stack */
.value-stack {
  list-style: none;
  margin: 0;
  padding: 0;
}

.value-stack > li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}

.value-stack > li:last-child {
  border-bottom: none;
}

.value-stack h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-primary);
}

.value-stack h3::before {
  content: "\\2713";
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

.value-stack p {
  margin: 0.5rem 0 0 1.75rem;
  color: var(--text-secondary);
}

/* Who List */
.who-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.who-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-secondary);
}

.who-list li::before {
  content: "\\2713";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Guarantee Box */
.guarantee-box {
  background: var(--bg-card);
  border: 2px solid var(--success);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.guarantee-box h3 {
  color: var(--success);
  margin-bottom: 1rem;
}

.guarantee-box p {
  color: var(--text-secondary);
}

/* FAQ Items */
.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item > strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--text-secondary);
}

/* Upsell Box */
.upsell-box {
  background: var(--primary-subtle);
  border: 2px solid var(--primary-light);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.upsell-box h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.upsell-box p,
.upsell-box li {
  color: var(--text-secondary);
}

.upsell-box ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

/* Downsell Section */
.downsell-section {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
}

.downsell-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Final CTA Section (for subpages) */
.final-cta-section {
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 3rem 0;
  text-align: center;
}

.final-cta-section h2 {
  color: var(--text-on-primary);
  margin-bottom: 0.5rem;
}

.final-cta-section p {
  color: var(--text-on-primary);
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* Loading/Error States */
.loading-state {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
}

.error-state {
  text-align: center;
  padding: 4rem 0;
  color: var(--error);
}

/* Form Elements */
.form-error {
  background: var(--error-light);
  border: 1px solid var(--error);
  color: var(--error);
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.form-success {
  background: var(--success-light);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .form-error {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
  }
  .form-success {
    background: rgba(5, 150, 105, 0.2);
    color: #6ee7b7;
  }
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

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

/* ========================================
   Exam Search Component
   ======================================== */

.exam-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.exam-search-input {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-left: 2.75rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.exam-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.exam-search-input::placeholder {
  color: var(--text-muted);
}

.exam-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.exam-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.exam-search-dropdown.open {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-subtle);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
  background: var(--bg-card-alt);
}

.result-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-icon.path-icon {
  background: var(--primary-subtle);
  color: var(--primary);
}

.result-icon.exam-icon {
  background: var(--bg-card-alt);
  color: var(--text-secondary);
}

.result-content {
  flex: 1;
  min-width: 0;
}

.result-title {
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-title mark {
  background: var(--warning-light);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.result-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  background: var(--bg-card-alt);
  border-radius: 4px;
  flex-shrink: 0;
}

.status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.status-badge.coming-soon {
  background: var(--warning-light);
  color: var(--warning);
}

.status-badge.live {
  background: var(--success-light);
  color: var(--success);
}

.search-no-results {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .result-title mark {
    background: rgba(217, 119, 6, 0.3);
  }
}

/* ===== PRODUCT PREVIEW CAROUSEL ===== */

/* Hero Carousel (replaces single cover image in hero section) */
.hero-carousel {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.hero-carousel__main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  aspect-ratio: 8.5 / 11;
  background: #fff;
}

.hero-carousel__slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero-carousel__slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: white;
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
  font-size: 1rem;
  line-height: 1;
}

.hero-carousel__arrow:hover {
  background: rgba(0,0,0,0.75);
}

.hero-carousel__arrow--prev { left: 8px; }
.hero-carousel__arrow--next { right: 8px; }

.hero-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.hero-carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-carousel__dot.active {
  background: white;
  transform: scale(1.3);
}

.hero-carousel__thumbs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

.hero-carousel__thumb {
  width: 48px; height: 62px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
}

.hero-carousel__thumb.active {
  border-color: white;
  opacity: 1;
}

.hero-carousel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: white;
}

/* Preview Gallery Section */
.preview-gallery {
  padding: 3rem 0;
}

.preview-gallery__header {
  text-align: center;
  margin-bottom: 2rem;
}

.preview-gallery__header h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.preview-gallery__header p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.preview-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.preview-gallery__item {
  background: var(--bg-card, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--border-color, #e5e5e5);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.preview-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.preview-gallery__item img {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color, #e5e5e5);
  background: white;
}

.preview-gallery__label {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* Lightbox */
.preview-lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.preview-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.preview-lightbox__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-lightbox__close:hover {
  background: rgba(255,255,255,0.3);
}

.preview-lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.preview-lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: white;
}

.preview-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1001;
}

.preview-lightbox__nav:hover {
  background: rgba(255,255,255,0.3);
}

.preview-lightbox__nav--prev { left: 1rem; }
.preview-lightbox__nav--next { right: 1rem; }

.preview-lightbox__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
}

.preview-lightbox__label {
  font-weight: 500;
}

.preview-lightbox__counter {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .preview-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .preview-lightbox__nav--prev { left: 0.5rem; }
  .preview-lightbox__nav--next { right: 0.5rem; }
  .preview-lightbox img {
    max-width: 85vw;
    max-height: 75vh;
  }
}

/* Carousel responsive */
@media (max-width: 768px) {
  .hero-carousel {
    max-width: 260px;
  }
  .hero-carousel__thumbs {
    display: none;
  }
  .preview-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .preview-gallery__grid {
    gap: 0.75rem;
    padding: 0 1rem;
  }
  .hero-carousel__arrow {
    width: 30px; height: 30px;
    font-size: 0.85rem;
  }
}
