@import "tailwindcss";

:root {
  /* Colori primari - Teal (allineato a cuttalo.com) */
  --teal-400: #6fd8d1;
  --teal-500: #4ecdc4;
  --teal-600: #3dbdb4;
  --teal-700: #2ca9a0;

  /* Colori secondari */
  --red-500: #ed1e24;
  --red-600: #d91920;

  /* Dark Theme */
  --gray-900: #0a0a0a;
  --gray-800: #1a1a1a;
  --gray-700: #2a2a2a;
  --gray-600: #3a3a3a;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;

  /* Semantic */
  --foreground: #ededed;
  --background: #0a0a0a;
  --card-bg: #1a1a1a;
  --border: #2a2a2a;
}

body {
  color: var(--foreground);
  background: var(--background);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-800);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-600);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Selection - Teal */
::selection {
  background: rgba(78, 205, 196, 0.3);
  color: #fff;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

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

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

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

.scale-in {
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Gradient text - Teal */
.gradient-text {
  background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-red {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient backgrounds */
.gradient-teal {
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 100%);
}

.gradient-teal-subtle {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(61, 189, 180, 0.1) 100%);
}

/* Card hover effect */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Teal glow effect */
.teal-glow {
  box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

.teal-glow-lg {
  box-shadow: 0 0 40px rgba(78, 205, 196, 0.4);
}

/* Button shine effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

/* Pulse animation */
.pulse-teal {
  animation: pulseTeal 2s infinite;
}

@keyframes pulseTeal {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(78, 205, 196, 0);
  }
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* Hover underline effect */
.hover-underline {
  position: relative;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal-500);
  transition: width 0.3s ease;
}

.hover-underline:hover::after {
  width: 100%;
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.badge-teal {
  background: rgba(78, 205, 196, 0.1);
  color: var(--teal-500);
  border: 1px solid rgba(78, 205, 196, 0.2);
}

.badge-teal:hover {
  background: rgba(78, 205, 196, 0.2);
}

/* Stat counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number {
  animation: countUp 0.8s ease-out forwards;
}

/* Grid patterns */
.grid-pattern {
  background-image:
    linear-gradient(rgba(78, 205, 196, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 205, 196, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Prose styling for blog content */
.prose {
  color: var(--gray-300);
  line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: white;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.875rem; }
.prose h3 { font-size: 1.5rem; }
.prose h4 { font-size: 1.25rem; }

.prose p {
  margin-bottom: 1.25rem;
}

.prose a {
  color: var(--teal-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--teal-400);
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose ul li::marker {
  color: var(--teal-500);
}

.prose ol li::marker {
  color: var(--teal-500);
}

.prose blockquote {
  border-left: 4px solid var(--teal-500);
  padding-left: 1rem;
  font-style: italic;
  color: var(--gray-400);
  margin: 1.5rem 0;
}

.prose code {
  background: var(--gray-800);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background: var(--gray-800);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
}

.prose img {
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th, .prose td {
  border: 1px solid var(--gray-700);
  padding: 0.75rem;
  text-align: left;
}

.prose th {
  background: var(--gray-800);
  font-weight: 600;
  color: white;
}

/* Sticky sidebar */
.sticky-sidebar {
  position: sticky;
  top: 100px;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== COMPONENTI CONTENUTI CMS ===== */

/* Lead paragraph - testo introduttivo */
.prose .lead,
.prose p.lead {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--gray-300);
  margin-bottom: 1.5rem;
}

/* CTA Box - Call to Action nel contenuto */
.prose .cta-box {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(61, 189, 180, 0.05) 100%);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.prose .cta-box h3 {
  color: var(--teal-400);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.prose .cta-box p {
  margin-bottom: 0.75rem;
}

.prose .cta-box p:last-child {
  margin-bottom: 0;
}

.prose .cta-box ul {
  margin-bottom: 1rem;
}

/* Buttons nel contenuto */
.prose .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.prose .btn-primary {
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.prose .btn-primary:hover {
  background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-700) 100%);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.prose .btn-secondary {
  background: var(--gray-800);
  color: white;
  border: 1px solid var(--gray-700);
}

.prose .btn-secondary:hover {
  background: var(--gray-700);
  border-color: var(--teal-500);
  color: white;
  text-decoration: none;
}

/* Info box */
.prose .info-box {
  background: var(--gray-800);
  border-left: 4px solid var(--teal-500);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.prose .info-box h4 {
  color: var(--teal-400);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Warning box */
.prose .warning-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid #f59e0b;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.prose .warning-box h4 {
  color: #f59e0b;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Feature grid */
.prose .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.prose .feature-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.prose .feature-card:hover {
  border-color: rgba(78, 205, 196, 0.5);
  transform: translateY(-2px);
}

.prose .feature-card h4 {
  color: white;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Improved tables */
.prose table {
  font-size: 0.95rem;
}

.prose table th {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-700) 100%);
  color: var(--teal-400);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.prose table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.prose table tr:hover {
  background: rgba(78, 205, 196, 0.05);
}

/* Numbered steps */
.prose ol {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

.prose ol > li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
}

.prose ol > li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 100%);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== TUTORIAL & GUIDE STYLES ===== */

/* Table of Contents - Indice navigabile */
.prose .toc {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.prose .toc h4 {
  color: var(--teal-400);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose .toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .toc li {
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.prose .toc a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--gray-300);
}

.prose .toc a:hover {
  background: rgba(78, 205, 196, 0.1);
  color: var(--teal-400);
}

.prose .toc .toc-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--gray-700);
  color: var(--teal-400);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

/* Tutorial Section - Sezioni con lettere */
.prose .tutorial-section {
  position: relative;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 1rem;
  padding: 2rem;
  margin: 2.5rem 0;
  transition: border-color 0.3s ease;
}

.prose .tutorial-section:hover {
  border-color: rgba(78, 205, 196, 0.3);
}

.prose .tutorial-section .section-letter {
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 100%);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.prose .tutorial-section h3 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding-right: 3rem;
}

.prose .tutorial-section p:last-child {
  margin-bottom: 0;
}

/* Tutorial Section Alternate (dark/light) */
.prose .tutorial-section.alt {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.05) 0%, rgba(78, 205, 196, 0.02) 100%);
  border-color: rgba(78, 205, 196, 0.2);
}

/* Image Gallery */
.prose .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.prose .gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-700);
  transition: all 0.3s ease;
  margin: 0;
  cursor: pointer;
}

.prose .gallery img:hover {
  transform: scale(1.02);
  border-color: var(--teal-500);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.prose .gallery-2 {
  grid-template-columns: repeat(2, 1fr);
}

.prose .gallery-3 {
  grid-template-columns: repeat(3, 1fr);
}

.prose .gallery-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .prose .gallery-3,
  .prose .gallery-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Image with caption */
.prose figure {
  margin: 2rem 0;
}

.prose figure img {
  margin: 0;
  border-radius: 0.75rem;
}

.prose figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Comparison boxes - Before/After */
.prose .comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.prose .comparison-item {
  background: var(--gray-800);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-700);
}

.prose .comparison-item.correct {
  border-color: rgba(34, 197, 94, 0.3);
}

.prose .comparison-item.correct::before {
  content: '✓ Corretto';
  display: block;
  color: #22c55e;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.prose .comparison-item.wrong {
  border-color: rgba(239, 68, 68, 0.3);
}

.prose .comparison-item.wrong::before {
  content: '✗ Sbagliato';
  display: block;
  color: #ef4444;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

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

/* Tip box */
.prose .tip-box {
  background: rgba(34, 197, 94, 0.1);
  border-left: 4px solid #22c55e;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.prose .tip-box h4 {
  color: #22c55e;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.prose .tip-box::before {
  content: '💡 ';
}

/* Materials showcase */
.prose .materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.prose .material-item {
  text-align: center;
  padding: 1rem;
  background: var(--gray-800);
  border-radius: 0.75rem;
  border: 1px solid var(--gray-700);
  transition: all 0.3s ease;
}

.prose .material-item:hover {
  border-color: var(--teal-500);
  transform: translateY(-2px);
}

.prose .material-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  border-radius: 0.5rem;
}

.prose .material-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-300);
}

/* Step indicator */
.prose .step {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--gray-800);
  border-radius: 1rem;
  border: 1px solid var(--gray-700);
}

.prose .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 100%);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.prose .step-content h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.prose .step-content p:last-child {
  margin-bottom: 0;
}

/* Highlight box */
.prose .highlight-box {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15) 0%, rgba(78, 205, 196, 0.05) 100%);
  border: 2px solid var(--teal-500);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
}

.prose .highlight-box h3 {
  color: var(--teal-400);
  margin-top: 0;
}

/* Inline image with text */
.prose .image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.prose .image-text.reverse {
  direction: rtl;
}

.prose .image-text.reverse > * {
  direction: ltr;
}

.prose .image-text img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 0;
}

@media (max-width: 768px) {
  .prose .image-text,
  .prose .image-text.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* Dimension/spec table */
.prose .specs-table {
  margin: 1.5rem 0;
}

.prose .specs-table table {
  font-size: 0.9rem;
}

.prose .specs-table td:first-child {
  font-weight: 600;
  color: var(--teal-400);
  white-space: nowrap;
}

/* Section divider */
.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-600), transparent);
  margin: 3rem 0;
}

/* Intro section for tutorials */
.prose .intro-section {
  background: linear-gradient(135deg, var(--gray-800) 0%, rgba(78, 205, 196, 0.1) 100%);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(78, 205, 196, 0.2);
}

.prose .intro-section h2 {
  margin-top: 0;
  color: var(--teal-400);
}

/* Mini CTA within sections */
.prose .mini-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gray-700);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-300);
  transition: all 0.2s ease;
  text-decoration: none;
  margin-top: 1rem;
}

.prose .mini-cta:hover {
  background: var(--teal-500);
  color: white;
}

/* ===== MOBILE RESPONSIVE FIXES ===== */

/* Tables: scrollable on all screens (can't wrap in div since content is from CMS) */
.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose table thead,
.prose table tbody,
.prose table tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.prose table thead {
  display: table-header-group;
}

.prose table tbody {
  display: table-row-group;
}

/* Tablet breakpoint */
@media (max-width: 768px) {
  .prose h1 {
    font-size: 1.75rem;
  }

  .prose h2 {
    font-size: 1.5rem;
  }

  .prose h3 {
    font-size: 1.25rem;
  }

  .prose .lead,
  .prose p.lead {
    font-size: 1.1rem;
  }

  .prose .tutorial-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .prose .intro-section {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .prose .cta-box {
    padding: 1.25rem;
  }

  .prose .toc {
    padding: 1.25rem;
  }

  .prose .highlight-box {
    padding: 1.25rem;
  }

  .prose .step {
    padding: 1.25rem;
  }

  .prose .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .prose .feature-card {
    padding: 1.25rem;
  }

  .prose .gallery-2 {
    grid-template-columns: 1fr;
  }

  .prose .gallery img {
    height: 160px;
  }

  .prose table thead,
  .prose table tbody,
  .prose table tr {
    table-layout: auto;
  }

  .prose .specs-table td:first-child {
    white-space: normal;
  }

  .prose .materials-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .prose hr {
    margin: 2rem 0;
  }
}

/* Small phone breakpoint */
@media (max-width: 480px) {
  .prose h1 {
    font-size: 1.5rem;
  }

  .prose h2 {
    font-size: 1.3rem;
  }

  .prose h3 {
    font-size: 1.125rem;
  }

  .prose .lead,
  .prose p.lead {
    font-size: 1rem;
  }

  .prose .tutorial-section {
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
  }

  .prose .tutorial-section .section-letter {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    top: -0.75rem;
    left: 1rem;
  }

  .prose .tutorial-section h3 {
    font-size: 1.1rem;
    padding-right: 0;
  }

  .prose .intro-section {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .prose .cta-box {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .prose .toc {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .prose .toc a {
    padding: 0.4rem 0.5rem;
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .prose .toc .toc-letter {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }

  .prose .highlight-box {
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: left;
  }

  .prose .highlight-box h3 {
    font-size: 1.1rem;
  }

  .prose .step {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }

  .prose .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .prose .feature-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .prose .feature-card {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .prose .gallery-3,
  .prose .gallery-4 {
    grid-template-columns: 1fr;
  }

  .prose .gallery img {
    height: 180px;
  }

  .prose .info-box,
  .prose .warning-box,
  .prose .tip-box {
    padding: 0.875rem 1rem;
  }

  .prose .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
    justify-content: center;
  }

  .prose table {
    font-size: 0.8rem;
  }

  .prose th, .prose td {
    padding: 0.5rem;
  }

  .prose .comparison {
    gap: 1rem;
  }

  .prose .comparison-item {
    padding: 1rem;
  }

  .prose .image-text {
    gap: 1rem;
  }

  .prose ol > li {
    padding-left: 2.5rem;
  }

  .prose ol > li::before {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }

  .prose figure {
    margin: 1.5rem 0;
  }

  .prose .materials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .prose .material-item {
    padding: 0.75rem 0.5rem;
  }

  .prose .material-item img {
    width: 40px;
    height: 40px;
  }

  .prose .material-item span {
    font-size: 0.7rem;
  }

  .prose .mini-cta {
    width: 100%;
    justify-content: center;
  }
}
