/* ============================================================================
   Reusable Component Styles
   Shared patterns extracted from inline styles for better maintainability
   ========================================================================== */

/* ============================================================================
   BENTO-STYLE IMAGE HOVER EFFECTS
   ========================================================================== */
.bento-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-hover:hover .bento-image,
.project-card:hover .bento-image,
.feature-card:hover .bento-image,
.video-container:hover .bento-image {
  transform: scale(1.03);
  filter: grayscale(0%);
}

/* ============================================================================
   SECTION LAYOUTS
   ========================================================================== */
.section {
  padding: clamp(3rem, 8vw, 5rem) var(--gutter);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================================================
   FEATURE CARDS GRID
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.feature-card {
  padding: 2rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-accent);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: var(--primary-accent);
}

.feature-card:hover .feature-title,
.feature-card:hover .feature-description {
  color: var(--text-dark);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
  background: var(--text-dark);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--text-dark);
}

.feature-card:hover .feature-icon svg {
  fill: var(--primary-accent);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
  transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 3rem;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.stat-number {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary); /* Use text-primary - NO ORANGE */
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Dark mode: light text on dark bg */
:root .stat-number,
[data-theme="dark"] .stat-number {
  color: #FFFDF5; /* Cream white on dark bg - NO ORANGE */
}

:root .stat-label,
[data-theme="dark"] .stat-label {
  color: #F3F1EA; /* Slightly darker cream - NO ORANGE */
}

/* Light mode: dark text on light bg */
[data-theme="light"] .stat-number {
  color: #0e0e0e; /* Dark grey on light bg - NO ORANGE */
}

[data-theme="light"] .stat-label {
  color: #101010; /* Slightly lighter dark grey - NO ORANGE */
}

.stat-label {
  font-size: 0.875rem;
}

/* Mobile adjustments for stats */
@media (max-width: 48rem) {
  .stats-grid {
    gap: 2rem;
  }
}

/* ============================================================================
   TESTIMONIALS GRID
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.testimonial {
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.testimonial:hover {
  border-color: var(--primary-accent);
  transform: translateY(-2px);
}

.testimonial-text {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
}

/* ============================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-container {
  max-width: 50rem;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary-accent);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary-accent);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
  animation: slideDown 0.2s ease-out;
}

.faq-toggle {
  font-size: 1.25rem;
  color: var(--primary-accent);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   MODAL SYSTEM
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 32rem;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-primary);
  border-color: var(--primary-accent);
  transform: scale(1.05);
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  animation: celebrate 0.5s ease;
}

@keyframes celebrate {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-accent), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-message {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-highlight {
  background: var(--bg-tertiary);
  border-left: 3px solid var(--primary-accent);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.modal-highlight-title {
  font-weight: 600;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-highlight-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.modal-highlight-text strong {
  color: var(--text-primary);
}

.modal-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.modal-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.modal-benefit-icon {
  color: var(--primary-green);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.modal-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Mobile modal adjustments */
@media (max-width: 48rem) {
  .modal-content {
    padding: 2rem;
  }
}

/* ============================================================================
   FORM COMPONENTS
   ========================================================================== */
.form-group {
  margin-bottom: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

/* Light mode: ALL email inputs use F4EEE0 */
[data-theme="light"] .form-input,
[data-theme="light"] .signup-bar-input,
[data-theme="light"] .email-input,
[data-theme="light"] .popup-input,
[data-theme="light"] .gate-form input[type="email"] {
  background: #F4EEE0;
  border-color: rgba(244, 238, 224, 0.3);
}

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

[data-theme="light"] .form-input:focus {
  background: var(--bg-primary); /* Lighter on focus */
}

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

.form-title {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-align: center;
}

.form-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-subtitle strong {
  color: var(--primary-accent);
  font-weight: 600;
}

/* Honeypot field - hidden from view */
.hp-field {
  position: absolute;
  left: -10000px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Success/Error Messages */
.success-message {
  background: var(--bg-tertiary);
  border: 1px solid var(--primary-green);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
  color: var(--primary-green);
  text-align: center;
  font-size: 0.875rem;
  display: none;
}

.success-message.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.error-message {
  background: var(--bg-tertiary);
  border: 1px solid #ff5c5c;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
  color: #ff5c5c;
  text-align: center;
  font-size: 0.875rem;
  display: none;
}

.error-message.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

/* ============================================================================
   PROGRESS INDICATORS
   ========================================================================== */
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.progress-label strong {
  color: var(--primary-accent);
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 0.5rem;
  background: rgba(243, 241, 234, 0.3); /* Light grey for dark mode */
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

/* Light mode: use dark grey for unfilled part */
[data-theme="light"] .progress-bar {
  background: rgba(21, 21, 21, 0.2);
}

.progress-fill {
  height: 100%;
  background: var(--primary-accent);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================================
   TRUST INDICATORS
   ========================================================================== */
.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.trust-indicator {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.trust-indicator::before {
  content: "✓";
  color: var(--primary-green);
  font-weight: 600;
}

/* Mobile trust indicators */
@media (max-width: 48rem) {
  .trust-indicators {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

/* ============================================================================
   BADGES
   ========================================================================== */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-accent);
}

.badge-primary {
  background: var(--primary-accent);
  color: var(--text-dark);
  border-color: var(--primary-accent);
}

/* ============================================================================
   VIDEO/MEDIA CONTAINERS
   ========================================================================== */
.video-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.video-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================================
   CONTAINER UTILITIES
   ========================================================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Centered content with max-width */
.content-centered {
  max-width: 42rem;
  margin: 0 auto;
}

.content-wide {
  max-width: 56rem;
  margin: 0 auto;
}

/* ============================================================================
   UTILITIES (scoped, minimal)
   ========================================================================== */
.text-center { text-align: center; }
.muted { color: var(--text-secondary); }
.max-w-42 { max-width: 42rem; }
.max-w-48 { max-width: 48rem; }
.max-w-56 { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }
.card-accent {
  background: rgba(var(--primary-accent-rgb), 0.1);
  border: 1px solid rgba(var(--primary-accent-rgb), 0.3);
  border-radius: var(--radius-xl);
}

/* ============================================================================
   TUTORIAL PAGE PATTERNS (email gate, steps, helpers)
   Extracted from inline styles in tutorial.html for CSP compliance
   ========================================================================== */

/* Hero wrapper */
.tutorial-hero {
  background: var(--bg-primary);
  padding: var(--space-2xl) 0 var(--space-2xl);
}

/* Gated content (locks scroll and shows overlay prompt) */
.gated-content {
  position: relative;
  margin-top: 3.75rem; /* 60px */
}

.gated-content.locked {
  max-height: 400px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.gated-content.locked::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 300px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(26, 26, 26, 0.8) 40%,
    rgba(26, 26, 26, 0.95) 70%,
    var(--bg-primary) 100%);
  pointer-events: none;
}

/* Gate overlay panel */
.gate-overlay {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: var(--bg-secondary);
  border: 2px solid var(--primary-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  z-index: 9999;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.gate-overlay h3 {
  color: var(--primary-accent);
  font-size: 1.75rem; /* 28px */
  margin-bottom: var(--space-md);
}

.gate-overlay p {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  font-size: 1rem; /* 16px */
}

.gate-form {
  display: flex;
  gap: var(--space-md);
  margin: 0 auto var(--space-md);
  max-width: 400px;
}

.gate-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 16px;
}

.gate-form button {
  padding: 12px 24px;
  background: var(--primary-accent);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.gate-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.gate-benefits {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  font-size: 14px;
  color: var(--text-muted);
}

.gate-benefits span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gate-benefits span::before {
  content: '✓';
  color: var(--primary-green);
  font-weight: bold;
}

.gate-confirmation { text-align: center; }

.confirmation-icon {
  font-size: 3rem; /* 48px */
  margin-bottom: var(--space-md);
  animation: pulse 2s infinite;
}

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

.confirmation-email {
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  font-family: monospace;
  font-size: 14px;
  color: var(--primary-accent);
  word-break: break-all;
}

.confirmation-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.confirmation-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-align: left;
}

.step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-accent);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.confirmation-help {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.resend-btn {
  background: transparent;
  border: 1px solid var(--primary-accent);
  color: var(--primary-accent);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
  margin: var(--space-sm) 0;
}

.resend-btn:hover { background: var(--primary-accent); color: var(--bg-primary); }
.resend-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Tutorial meta and steps */
.tutorial-meta { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.tutorial-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  transition: all var(--transition-normal);
}
.tutorial-step:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--primary-accent);
  color: var(--bg-primary);
  border-radius: var(--radius-full);
  font-weight: 700; font-size: 18px;
  margin-bottom: var(--space-md);
}
.step-title { font-size: 24px; font-weight: 600; margin-bottom: var(--space-md); color: var(--text-primary); }
.step-description { color: var(--text-secondary); margin-bottom: var(--space-md); line-height: 1.7; }

.code-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-md) 0;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  font-size: 14px; line-height: 1.5;
  overflow-x: auto; position: relative;
}
.code-block::before {
  content: "BLUEPRINT";
  position: absolute; top: var(--space-sm); right: var(--space-lg);
  font-size: 11px; font-weight: 600; color: var(--primary-accent); opacity: 0.6; letter-spacing: 1px;
}
.code-keyword { color: #4FC3F7; }
.code-comment { color: var(--text-muted); font-style: italic; }
.code-value { color: var(--primary-accent); }

.math-box {
  background: rgba(var(--primary-accent-rgb), 0.1);
  border: 1px solid rgba(var(--primary-accent-rgb), 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-md) 0; position: relative;
}
.math-box::before {
  content: "Math Explained";
  display: block;
  background: rgba(var(--primary-accent-rgb), 0.2);
  border: 1px solid rgba(var(--primary-accent-rgb), 0.4);
  padding: 0.25rem 0.75rem; border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 600; color: var(--primary-accent);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; width: fit-content;
}
.math-box strong { color: var(--primary-accent); }

.tutorial-image {
  width: 100%; margin: var(--space-lg) 0;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-subtle); background: var(--bg-tertiary);
}
.tutorial-image img { max-width: 100%; width: auto; height: auto; display: block; margin: 0 auto; }
.image-placeholder {
  padding: var(--space-2xl); text-align: center; color: var(--text-muted); font-style: italic;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.02) 10px, rgba(255, 255, 255, 0.02) 20px);
}

.checklist {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}
.checklist h3 { color: var(--primary-green); margin-bottom: var(--space-lg); }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: var(--space-sm); margin-bottom: var(--space-sm); color: var(--text-secondary); }
.checklist li::before { content: "✓"; color: var(--primary-green); font-weight: bold; flex-shrink: 0; }

.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); margin: var(--space-xl) 0; }
.usage-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-lg); transition: var(--transition-normal); }
.usage-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.usage-card h4 { color: var(--primary-accent); margin-bottom: var(--space-sm); }

.gradient-text {
  color: var(--primary-accent);
}

.usage-card .btn-secondary { color: var(--primary-accent); border-color: var(--border-subtle); }
.usage-card .btn-secondary:hover { background: var(--primary-accent); color: var(--bg-primary); border-color: var(--primary-accent); }
.usage-card .btn-secondary:focus,
.usage-card .btn-secondary:focus-visible,
.usage-card .btn-secondary:active { outline: none; box-shadow: none; border: 1px solid var(--primary-accent); }

@media (max-width: 48rem) {
  .tutorial-meta { flex-direction: column; gap: var(--space-sm); }
  .tutorial-step { padding: var(--space-lg); }
  .usage-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   COURSES PAGE PATTERNS (cards reuse shared styles)
   ========================================================================== */
.page-header { text-align: center; max-width: 56rem; margin: 0 auto clamp(3rem, 6vw, 4rem); }
.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { color: var(--text-secondary); font-size: 1.125rem; line-height: 1.65; }

.course-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: var(--max-w); margin: 0 auto; }
@media (min-width: 48rem) { .course-grid { grid-template-columns: repeat(2, 1fr); } }

.course-card { padding: 2rem 1.5rem; background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.course-card:hover { transform: translateY(-4px); border-color: var(--primary-accent); box-shadow: 0 8px 25px rgba(0,0,0,0.3); background: var(--primary-accent); }
.course-card:hover h3 { color: var(--text-dark); }
.course-card:hover p, .course-card:hover ul { color: var(--text-dark); }
.course-card h3 { margin: 0 0 1rem 0; font-size: 1.25rem; font-weight: 600; color: var(--text-primary); transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.course-card p { margin: 0 0 1.5rem 0; color: var(--text-secondary); line-height: 1.6; transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.course-card p:last-child { margin-bottom: 0; }
.course-card ul { margin: 0 0 1.5rem 0; padding-left: 1.25rem; color: var(--text-secondary); line-height: 1.8; transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.course-card li { margin-bottom: 0.5rem; }

/* .form-input styles defined earlier in file */

.course-card:hover .btn.primary { background: var(--text-on-accent); color: var(--primary-accent); }
.course-card:hover .btn.primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }

.coming-soon-badge { display: inline-block; padding: 0.25rem 0.75rem; background: rgba(var(--primary-accent-rgb), 0.15); border: 1px solid var(--primary-accent); border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; color: var(--primary-accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.course-card:hover .coming-soon-badge { background: rgba(var(--primary-accent-rgb), 0.25); color: var(--text-on-accent); border-color: var(--text-on-accent); }
