/* InfiniChat AI — Pure static site styles (ported from design system) */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

:root {
  --background: 30 50% 92%;
  --foreground: 20 15% 25%;
  --card: 30 50% 95%;
  --card-foreground: 20 15% 25%;
  --primary: 20 87% 68%;
  --primary-dark: 16 100% 66%;
  --primary-foreground: 0 0% 100%;
  --secondary: 10 75% 75%;
  --secondary-foreground: 0 0% 100%;
  --success: 140 50% 50%;
  --success-foreground: 0 0% 100%;
  --muted: 30 20% 88%;
  --muted-foreground: 20 10% 45%;
  --accent: 16 100% 66%;
  --destructive: 0 70% 60%;
  --border: 30 25% 85%;
  --radius: 0.75rem;
  --gradient-primary: linear-gradient(135deg, hsl(20 87% 68%), hsl(16 100% 66%));
  --gradient-secondary: linear-gradient(135deg, hsl(10 75% 75%), hsl(5 70% 68%));
  --shadow-soft: 0 2px 8px hsla(20 87% 68% / 0.1);
  --shadow-medium: 0 4px 16px hsla(20 87% 68% / 0.15);
  --shadow-large: 0 8px 32px hsla(20 87% 68% / 0.2);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1400px;
  --page-gutter: 1.25rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 480px) {
  :root { --page-gutter: 1.5rem; }
}

@media (min-width: 768px) {
  :root { --page-gutter: 2rem; }
}

@media (min-width: 1280px) {
  :root { --page-gutter: 2.5rem; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: clip;
}

main {
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.025em; margin: 0; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
}

.min-h-screen { min-height: 100vh; }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

/* Colors */
.bg-background { background: hsl(var(--background)); }
.bg-muted-30 { background: hsl(var(--muted) / 0.3); }
.bg-card { background: hsl(var(--card)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-success { color: hsl(var(--success)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-foreground { color: hsl(var(--foreground)); }
.border-t { border-top: 1px solid hsl(var(--border)); }
.border { border: 1px solid hsl(var(--border)); }

/* Gradients & utilities */
.gradient-primary { background: var(--gradient-primary); color: hsl(var(--primary-foreground)); }
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hover-lift { transition: var(--transition-smooth); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-large); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  font-family: inherit;
  min-height: 44px;
}
.btn-sm { font-size: 0.875rem; padding: 0.5rem 1rem; }
.btn-md { font-size: 1rem; padding: 0.625rem 1.25rem; }
.btn-lg { font-size: 1rem; padding: 0.75rem 1.5rem; min-height: 3rem; }
.btn-xl { font-size: 1.125rem; padding: 0.875rem 2rem; min-height: 3.5rem; }
.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-outline:hover { background: hsl(var(--muted) / 0.5); }
.btn-full { width: 100%; }
.btn-icon {
  width: 3rem; height: 3rem; padding: 0; border-radius: 9999px;
  position: fixed;
  bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
  z-index: 40;
  box-shadow: var(--shadow-large);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.badge-success { background: hsl(var(--success) / 0.1); color: hsl(var(--success)); border-color: hsl(var(--success) / 0.2); }
.badge-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.badge-secondary { background: hsl(var(--secondary) / 0.2); color: hsl(var(--foreground)); }

/* Cards */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header { padding: 1.25rem 1.25rem 0; }
.card-content { padding: 1.25rem; }
@media (min-width: 640px) {
  .card-header { padding: 1.5rem 1.5rem 0; }
  .card-content { padding: 1.5rem; }
}
.card-title { font-size: 1.25rem; font-weight: 600; }
.card-desc { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

/* Section spacing */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }
.section-compact { padding: 4rem 0; }
@media (min-width: 768px) { .section-compact { padding: 5rem 0; } }
.section-header { text-align: center; margin-bottom: 4rem; padding-inline: 0.25rem; }
.section-header h2 { font-size: 1.5rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .section-header h2 { font-size: 1.875rem; } }
@media (min-width: 768px) { .section-header h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-header h2 { font-size: 3rem; } }
.section-header p { color: hsl(var(--muted-foreground)); max-width: 42rem; margin: 0 auto; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2-sm { grid-template-columns: repeat(2, 1fr); }
  .grid-4-sm { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-2-md { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3-lg { grid-template-columns: repeat(3, 1fr); }
  .grid-4-lg { grid-template-columns: repeat(4, 1fr); }
  .grid-2-lg { grid-template-columns: repeat(2, 1fr); }
}

/* Header */
.skip-link {
  position: absolute; left: -9999px; z-index: 100;
}
.skip-link:focus {
  left: 1rem; top: 1rem;
  padding: 0.5rem 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: var(--radius);
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo img { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.logo span { font-size: 1.25rem; font-weight: 700; }
.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a { font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-desktop a:hover { color: hsl(var(--primary)); }
@media (min-width: 768px) { .nav-desktop { display: flex; } .nav-mobile-btn { display: none; } }
.nav-mobile-btn {
  background: none; border: none; padding: 0.5rem; cursor: pointer;
  color: hsl(var(--foreground)); min-width: 44px; min-height: 44px;
}
.nav-mobile {
  display: none;
  border-top: 1px solid hsl(var(--border));
  padding-top: 0.75rem;
  padding-bottom: 1.25rem;
  padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
  background: hsl(var(--background));
}
.nav-mobile.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: slideUp 0.6s ease-out;
}
.nav-mobile a:not(.btn) {
  display: block;
  padding: 0.875rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:not(.btn):hover {
  color: hsl(var(--primary));
  background: hsl(var(--muted) / 0.35);
}
.nav-mobile .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  text-align: center;
}

/* Hero */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .hero .container {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.05), hsl(var(--background)), hsl(var(--primary-dark) / 0.05));
}
.hero-grid {
  display: grid; gap: 2rem; align-items: start;
  max-width: 80rem; margin: 0 auto;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 2fr 1fr; gap: 3rem; }
}
.hero-content { text-align: center; animation: fadeIn 0.6s ease-out; width: 100%; }
@media (min-width: 1024px) { .hero-content { text-align: left; } }
.hero-cta { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; width: 100%; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; justify-content: center; flex-wrap: wrap; } }
@media (min-width: 1024px) { .hero-cta { justify-content: flex-start; } }
.hero-cta .btn { width: 100%; max-width: 100%; }
@media (min-width: 640px) {
  .hero-cta .btn { width: auto; max-width: none; }
}
.hero h1 {
  font-size: 1.875rem; line-height: 1.2; margin: 1.5rem 0;
}
@media (min-width: 640px) { .hero h1 { font-size: 2.25rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1280px) { .hero h1 { font-size: 4.5rem; } }
.hero-lead {
  color: hsl(var(--muted-foreground)); font-size: 1rem; max-width: 42rem;
  margin: 0 auto 1rem;
}
@media (min-width: 640px) { .hero-lead { font-size: 1.125rem; } }
@media (min-width: 768px) { .hero-lead { font-size: 1.25rem; } }
@media (min-width: 1024px) { .hero-lead { margin: 0 0 1rem; font-size: 1.5rem; } }
.hero-cta { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; justify-content: center; } }
@media (min-width: 1024px) { .hero-cta { justify-content: flex-start; } }
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.5rem;
  font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 1rem;
}
@media (min-width: 640px) { .hero-trust { font-size: 0.875rem; } }
@media (min-width: 1024px) { .hero-trust { justify-content: flex-start; } }
.trust-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: hsl(var(--success)); animation: pulse 2s infinite;
}
.hero-phone { display: flex; justify-content: center; animation: fadeIn 0.6s ease-out 0.2s both; }
@media (min-width: 1024px) { .hero-phone { justify-content: flex-end; } }
.phone-frame {
  position: relative; max-width: 24rem; width: 100%;
  border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
@media (max-width: 1023px) { .phone-frame { transform: scale(0.85); } }

.hero-ph-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1.5rem;
  text-align: center;
}
.hero-ph-badge a {
  display: inline-block;
}
@media (min-width: 1024px) {
  .hero-ph-badge {
    justify-content: flex-start;
    text-align: left;
  }
}

/* Feature icon box */
.icon-box {
  width: 3rem; height: 3rem; border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.icon-box svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--primary)); }
.step-icon {
  width: 4rem; height: 4rem; border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step-icon svg { width: 2rem; height: 2rem; color: hsl(var(--primary)); }

/* Pricing */
.pricing-grid {
  align-items: stretch;
  padding-top: 0.875rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: visible;
  border-radius: var(--radius);
}

.pricing-card.featured {
  border-color: hsl(var(--primary));
  position: relative;
}

.pricing-badge-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 2;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: var(--shadow-medium);
}

@media (min-width: 640px) {
  .pricing-badge-top {
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
  }
}

.pricing-card .card-header {
  flex-shrink: 0;
}

.pricing-card .card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pricing-price { font-size: 2rem; font-weight: 700; }
.pricing-list { list-style: none; flex: 1; margin: 0 0 1.5rem; }
.pricing-list li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  margin-bottom: 0.75rem; font-size: 0.875rem;
}
.pricing-list li:last-child { margin-bottom: 0; }
.pricing-list svg { flex-shrink: 0; margin-top: 0.125rem; }
.pricing-cta { margin-top: auto; width: 100%; }

/* Comparison table */
.comparison-wrap { max-width: 75rem; margin: 0 auto; overflow-x: auto; }
.comparison-table {
  background: hsl(var(--card)); border-radius: var(--radius);
  border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-medium);
  min-width: 320px;
}
.comparison-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem; padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row.header { background: hsl(var(--muted) / 0.5); font-weight: 600; }
.comparison-row:hover:not(.header) { background: hsl(var(--muted) / 0.3); }
.comparison-cell { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
@media (min-width: 640px) { .comparison-row { padding: 1rem 1.5rem; gap: 1rem; } .comparison-cell { font-size: 0.875rem; } }

/* Testimonials */
.testimonial-stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.testimonial-stars svg { width: 1rem; height: 1rem; fill: hsl(var(--primary)); color: hsl(var(--primary)); }
.avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; overflow: hidden;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-value { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .stat-value { font-size: 2.25rem; } }

/* FAQ accordion */
.faq-list { max-width: 48rem; margin: 0 auto; }
.faq-item { border: 1px solid hsl(var(--border)); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; background: none; border: none; cursor: pointer;
  font-size: 0.875rem; font-weight: 500; text-align: left;
  color: hsl(var(--foreground)); font-family: inherit; min-height: 44px;
}
@media (min-width: 640px) { .faq-trigger { font-size: 1rem; } }
.faq-trigger:hover { color: hsl(var(--primary)); }
.faq-trigger svg { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-panel {
  padding: 0 1.5rem 1rem;
  color: hsl(var(--muted-foreground)); font-size: 0.875rem;
}
@media (min-width: 640px) { .faq-panel { font-size: 1rem; } }
.faq-panel[hidden] { display: none; }

/* CTA section */
.cta-section {
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.1), hsl(var(--background)), hsl(var(--primary-dark) / 0.1));
}

/* Problem box */
.problem-box {
  background: hsl(var(--destructive) / 0.1);
  border: 1px solid hsl(var(--destructive) / 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem;
}
@media (min-width: 640px) {
  .problem-box { padding: 1.5rem 2rem; }
}

/* Footer */
.site-footer { border-top: 1px solid hsl(var(--border)); background: hsl(var(--muted) / 0.3); padding: 2rem 0 3rem; }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 2fr; gap: 3rem; } }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-links h3 { font-size: 0.875rem; margin-bottom: 0.75rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: hsl(var(--muted-foreground)); transition: color 0.2s; }
.footer-links a:hover { color: hsl(var(--primary)); }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a { color: hsl(var(--muted-foreground)); transition: color 0.2s; }
.social-links a:hover { color: hsl(var(--primary)); }
.social-links svg { width: 1.25rem; height: 1.25rem; }
.footer-copy { border-top: 1px solid hsl(var(--border)); padding-top: 1.5rem; text-align: center; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 768px) { .footer-copy { font-size: 0.875rem; } }

/* Language switcher (footer) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: hsl(var(--muted-foreground));
  transition: var(--transition-smooth);
}
@media (min-width: 768px) {
  .lang-switcher-btn { font-size: 0.8125rem; }
}
.lang-switcher-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.35);
}
.lang-switcher-btn.is-active {
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  pointer-events: none;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  padding-top: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border)); box-shadow: var(--shadow-large);
  animation: slideUp 0.6s ease-out;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { max-width: 72rem; margin: 0 auto; }
.cookie-flex { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .cookie-flex { flex-direction: row; align-items: center; } }
.cookie-actions { display: flex; gap: 0.75rem; width: 100%; }
@media (min-width: 768px) { .cookie-actions { width: auto; } .cookie-close-btn { display: none; } }

/* Page content */
.page-main { padding-top: 3rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .page-main { padding-top: 5rem; padding-bottom: 8rem; } }
.page-main-narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding-top: 3rem;
  padding-bottom: 5rem;
}
.page-main-wide { max-width: 72rem; margin: 0 auto; }
.page-main-medium { max-width: 64rem; margin: 0 auto; }
.page-title { font-size: 1.875rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .page-title { font-size: 2.25rem; } }
@media (min-width: 768px) { .page-title { font-size: 3rem; } }
.content-section { margin-bottom: 2rem; color: hsl(var(--muted-foreground)); }
.content-section h2 { color: hsl(var(--foreground)); font-size: 1.5rem; margin-bottom: 1rem; }
.content-section ul, .content-section ol { padding-left: 1.5rem; margin: 1rem 0; }
.content-section li { margin-bottom: 0.5rem; }
.content-section a:not(.btn) { color: hsl(var(--primary)); text-decoration: underline; }
.cta-box {
  background: hsl(var(--muted) / 0.3); border-radius: var(--radius);
  padding: 1.5rem 1.25rem; text-align: center; margin-top: 3rem;
}
@media (min-width: 640px) {
  .cta-box { padding: 2rem; }
}
.cta-box h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cta-box-btns { display: flex; flex-direction: column; gap: 1rem; justify-content: center; margin-top: 1rem; }
@media (min-width: 640px) { .cta-box-btns { flex-direction: row; } }

/* Articles */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }
.breadcrumb a:hover { color: hsl(var(--primary)); }
.breadcrumb svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.article-meta { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 2.5rem; }
.article-card { display: block; height: 100%; transition: box-shadow 0.2s; }
.article-card:hover .article-card-title { color: hsl(var(--primary)); }
.article-card:hover { box-shadow: var(--shadow-medium); }
.article-card-title { font-size: 1.125rem; transition: color 0.2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-desc { font-size: 0.875rem; color: hsl(var(--muted-foreground)); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-cta {
  margin: 3rem 0; border-radius: var(--radius); border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.4); padding: 1.25rem 1.25rem; text-align: center;
}
@media (min-width: 640px) {
  .article-cta { padding: 1.5rem 2rem; }
}
.related-section { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid hsl(var(--border)); }

/* Prose */
.prose { max-width: none; color: hsl(var(--muted-foreground)); }
.prose h2 { color: hsl(var(--foreground)); font-size: 1.5rem; margin: 2rem 0 1rem; scroll-margin-top: 6rem; }
.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose a:not(.btn) { color: hsl(var(--primary)); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; }

/* Screenshot gallery */
.screenshot-grid { display: grid; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 1024px) { .screenshot-grid { grid-template-columns: repeat(2, 1fr); } }
.screenshot-item { text-align: center; }
.screenshot-frame { background: hsl(var(--muted) / 0.3); border-radius: var(--radius); padding: 1rem; }
@media (min-width: 640px) {
  .screenshot-frame { padding: 1rem 1.5rem; }
}
.screenshot-frame img { border-radius: 0.5rem; box-shadow: var(--shadow-medium); max-width: 28rem; margin: 0 auto; }

/* 404 */
.not-found {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: hsl(var(--muted) / 0.5); text-align: center;
  padding: var(--page-gutter);
}
.not-found h1 { font-size: 2.25rem; margin-bottom: 1rem; }
.not-found a { color: hsl(var(--primary)); text-decoration: underline; }

/* Scroll to top */
.scroll-top { display: none; }
.scroll-top.is-visible { display: inline-flex; animation: fadeIn 0.4s ease-out; }

/* Icon sizes */
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Utility spacing */
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-8 { margin-top: 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.link-primary { color: hsl(var(--primary)); text-decoration: underline; }
.link-primary:hover { opacity: 0.9; }
.max-w-3xl { max-width: 48rem; margin-inline: auto; }
.max-w-5xl { max-width: 64rem; margin-inline: auto; }
.text-left { text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
