/**
 * CareClearly Static SEO CSS
 * 
 * Compiled CSS for static HTML pages that matches the SPA design system.
 * This file contains CSS custom properties and utility classes needed for
 * marketing pages to render identically to the SPA.
 */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Base colors - warm, caring teal palette */
  --background: 220 17% 97%;
  --foreground: 210 15% 20%;

  --card: 0 0% 100%;
  --card-foreground: 210 15% 20%;

  --popover: 0 0% 100%;
  --popover-foreground: 210 15% 20%;

  /* Primary - logo green */
  --primary: 169 35% 45%;
  --primary-foreground: 0 0% 100%;
  --primary-hover: 169 35% 38%;

  /* Secondary - soft green-teal */
  --secondary: 169 25% 96%;
  --secondary-foreground: 169 35% 25%;

  /* Accent - warm coral for emphasis */
  --accent: 15 85% 65%;
  --accent-foreground: 0 0% 100%;

  /* Muted - subtle grays */
  --muted: 210 15% 96%;
  --muted-foreground: 210 15% 45%;

  /* Success - reassuring green */
  --success: 145 45% 45%;
  --success-foreground: 0 0% 100%;

  /* Warning - soft amber */
  --warning: 40 90% 55%;
  --warning-foreground: 0 0% 100%;

  /* Destructive - gentle red */
  --destructive: 0 70% 55%;
  --destructive-foreground: 0 0% 100%;

  /* Borders and inputs */
  --border: 210 20% 88%;
  --input: 210 20% 88%;
  --ring: 169 35% 45%;

  --radius: 0.75rem;

  /* Shadows - gentle and caring */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-card: 0 2px 8px 0 rgb(0 0 0 / 0.06);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================
   Layout Utilities
   ============================================ */
.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1 1 0%;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-flex {
  display: inline-flex;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-50 {
  z-index: 50;
}

/* ============================================
   Spacing Utilities
   ============================================ */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }

.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }

.m-0 { margin: 0; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }

.mr-1\.5 { margin-right: 0.375rem; }
.mr-2 { margin-right: 0.5rem; }

.ml-4 { margin-left: 1rem; }
.ml-6 { margin-left: 1.5rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ============================================
   Sizing Utilities
   ============================================ */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }

.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-56 { height: 14rem; }
.h-72 { height: 18rem; }

.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

.min-w-0 { min-width: 0; }

.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

.overflow-hidden { overflow: hidden; }

/* ============================================
   Typography Utilities
   ============================================ */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

.tracking-tight { letter-spacing: -0.025em; }

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

.underline { text-decoration: underline; }
.underline-offset-2 { text-underline-offset: 2px; }

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

.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
.list-none { list-style-type: none; }

/* ============================================
   Color Utilities
   ============================================ */
.bg-background { background-color: hsl(var(--background)); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary\/5 { background-color: hsl(var(--primary) / 0.05); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/15 { background-color: hsl(var(--primary) / 0.15); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-muted\/30 { background-color: hsl(var(--muted) / 0.3); }
.bg-muted\/40 { background-color: hsl(var(--muted) / 0.4); }
.bg-slate-900 { background-color: rgb(15 23 42); }
.bg-slate-800 { background-color: rgb(30 41 59); }
.bg-white { background-color: white; }
.bg-blue-50 { background-color: rgb(239 246 255); }
.bg-amber-50 { background-color: rgb(255 251 235); }
.bg-green-50 { background-color: rgb(240 253 244); }
.bg-transparent { background-color: transparent; }

.text-foreground { color: hsl(var(--foreground)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-muted-foreground\/70 { color: hsl(var(--muted-foreground) / 0.7); }
.text-white { color: white; }
.text-slate-400 { color: rgb(148 163 184); }
.text-blue-800 { color: rgb(30 64 175); }
.text-amber-800 { color: rgb(146 64 14); }
.text-green-800 { color: rgb(22 101 52); }
.text-green-600 { color: rgb(22 163 74); }

/* ============================================
   Border Utilities
   ============================================ */
.border { border-width: 1px; border-style: solid; border-color: hsl(var(--border)); }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: hsl(var(--border)); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: hsl(var(--border)); }
.border-l { border-left-width: 1px; border-left-style: solid; border-left-color: hsl(var(--border)); }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }

.border-border { border-color: hsl(var(--border)); }
.border-border\/30 { border-color: hsl(var(--border) / 0.3); }
.border-border\/50 { border-color: hsl(var(--border) / 0.5); }
.border-primary { border-color: hsl(var(--primary)); }
.border-primary\/20 { border-color: hsl(var(--primary) / 0.2); }
.border-primary\/30 { border-color: hsl(var(--primary) / 0.3); }
.border-primary\/40 { border-color: hsl(var(--primary) / 0.4); }
.border-slate-800 { border-color: rgb(30 41 59); }
.border-blue-200 { border-color: rgb(191 219 254); }
.border-amber-200 { border-color: rgb(253 230 138); }
.border-green-200 { border-color: rgb(187 247 208); }

.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-r-lg { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }

/* ============================================
   Shadow Utilities
   ============================================ */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-card { box-shadow: var(--shadow-card); }

/* ============================================
   Gradient Utilities
   ============================================ */
.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-primary\/5 {
  --tw-gradient-from: hsl(var(--primary) / 0.05);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.from-primary\/10 {
  --tw-gradient-from: hsl(var(--primary) / 0.1);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.from-primary\/20 {
  --tw-gradient-from: hsl(var(--primary) / 0.2);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.via-primary\/5 {
  --tw-gradient-via: hsl(var(--primary) / 0.05);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to, transparent);
}

.via-primary\/15 {
  --tw-gradient-via: hsl(var(--primary) / 0.15);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to, transparent);
}

.to-transparent {
  --tw-gradient-to: transparent;
}

.to-primary\/10 {
  --tw-gradient-to: hsl(var(--primary) / 0.1);
}

/* ============================================
   Interactive Utilities
   ============================================ */
.cursor-pointer { cursor: pointer; }

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 { transition-duration: 300ms; }

.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:text-primary\/80:hover { color: hsl(var(--primary) / 0.8); }
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.hover\:text-white:hover { color: white; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-primary:hover { background-color: hsl(var(--primary)); }
.hover\:bg-primary\/90:hover { background-color: hsl(var(--primary) / 0.9); }
.hover\:bg-accent:hover { background-color: hsl(var(--accent)); }
.hover\:bg-muted:hover { background-color: hsl(var(--muted)); }
.hover\:shadow-md:hover { box-shadow: var(--shadow-md); }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }

.group:hover .group-hover\:text-primary { color: hsl(var(--primary)); }
.group:hover .group-hover\:shadow-lg { box-shadow: var(--shadow-lg); }

/* ============================================
   Container
   ============================================ */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

@media (min-width: 640px) {
  .container { max-width: 640px; }
}

@media (min-width: 768px) {
  .container { max-width: 768px; padding-right: 2rem; padding-left: 2rem; }
}

@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1400px; }
}

/* ============================================
   Components: Header
   ============================================ */
.site-header {
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  height: 4rem;
  align-items: center;
}

.site-header .logo {
  height: 2rem;
}

.site-header nav {
  display: none;
}

.site-header .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  transition: background-color 150ms, color 150ms;
}

.site-header .nav-link:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* ============================================
   Mobile Navigation (Static HTML Fallback)
   ============================================ */
.site-header .container {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  min-height: 4rem;
  align-items: center;
}

.mobile-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid hsl(var(--border));
  grid-column: 1 / -1;
}

.mobile-nav a {
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  text-decoration: none;
}

.mobile-nav a:hover {
  color: hsl(var(--primary));
}

.mobile-nav .btn {
  margin-left: auto;
}

@media (min-width: 1024px) {
  .site-header .container {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    height: 4rem;
  }
  
  .mobile-nav { 
    display: none !important; 
  }
  
  .site-header nav.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
  }
}

/* ============================================
   Screen-reader only utility
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   Mobile Hamburger Menu (details/summary)
   ============================================ */
.mobile-menu {
  position: relative;
  justify-self: end;
}

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

.mobile-menu summary {
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.hamburger-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hamburger-btn:hover {
  background-color: hsl(var(--accent));
}

.hamburger-lines {
  position: relative;
  width: 1.25rem;
  height: 2px;
  background: hsl(var(--foreground));
  display: block;
}

.hamburger-lines::before,
.hamburger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.25rem;
  height: 2px;
  background: hsl(var(--foreground));
}

.hamburger-lines::before { top: -6px; }
.hamburger-lines::after { top: 6px; }

.mobile-menu-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(90vw, 18rem);
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 60;
}

.mobile-menu[open] .mobile-menu-panel {
  display: block;
}

.mobile-menu-link {
  display: block;
  padding: 0.75rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 500;
}

.mobile-menu-link:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.mobile-menu-panel .btn {
  width: 100%;
  margin-top: 0.5rem;
  text-decoration: none;
}

.mobile-menu-separator {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 0.5rem 0;
}

/* ============================================
   Components: Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  min-height: 2.5rem;
  transition: all 150ms;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

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

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--muted));
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  min-height: 2rem;
}

/* ============================================
   Components: Badge
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.badge-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

/* ============================================
   Components: Card
   ============================================ */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: all 300ms;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  padding: 0.75rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375;
  transition: color 150ms;
}

.group:hover .card-title {
  color: hsl(var(--primary));
}

/* ============================================
   Components: Article / Prose
   ============================================ */
.prose-article {
  color: hsl(var(--foreground));
  line-height: 1.625;
}

.prose-article h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
}

.prose-article h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
  letter-spacing: -0.01em;
}

.prose-article h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.prose-article p {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.prose-article .lead {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.prose-article ul,
.prose-article ol {
  margin-bottom: 1.25rem;
  margin-left: 1rem;
}

.prose-article li {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 0.375rem;
}

.prose-article ul li {
  list-style-type: disc;
}

.prose-article ol li {
  list-style-type: decimal;
}

.prose-article blockquote {
  border-left: 4px solid hsl(var(--primary) / 0.4);
  padding-left: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: hsl(var(--muted-foreground));
  background-color: hsl(var(--muted) / 0.3);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding-right: 0.75rem;
  font-size: 0.875rem;
}

.prose-article strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.prose-article a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms;
}

.prose-article a:hover {
  color: hsl(var(--primary) / 0.8);
}

@media (min-width: 768px) {
  .prose-article h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .prose-article h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
  }

  .prose-article h4 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
  }

  .prose-article p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
  }

  .prose-article .lead {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

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

  .prose-article li {
    font-size: 1rem;
  }

  .prose-article blockquote {
    padding-left: 1.5rem;
    margin: 2rem 0;
    padding-right: 1rem;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .prose-article h2 { font-size: 1.875rem; }
  .prose-article h3 { font-size: 1.5rem; }
  .prose-article h4 { font-size: 1.125rem; }
  .prose-article p { font-size: 1.125rem; }
  .prose-article .lead { font-size: 1.25rem; }
  .prose-article li { font-size: 1.125rem; }
}

/* ============================================
   Components: Article Callout
   ============================================ */
.article-callout {
  padding: 1rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.article-callout.info {
  background-color: rgb(239 246 255);
  border-left-color: rgb(59 130 246);
}

.article-callout.tip {
  background-color: rgb(240 253 244);
  border-left-color: rgb(34 197 94);
}

.article-callout.warning {
  background-color: rgb(255 251 235);
  border-left-color: rgb(245 158 11);
}

.article-callout-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-callout.info .article-callout-title { color: rgb(30 64 175); }
.article-callout.tip .article-callout-title { color: rgb(22 101 52); }
.article-callout.warning .article-callout-title { color: rgb(146 64 14); }

.article-callout p {
  font-size: 0.875rem;
  line-height: 1.625;
  margin: 0;
}

.article-callout.info p { color: rgb(30 64 175); }
.article-callout.tip p { color: rgb(22 101 52); }
.article-callout.warning p { color: rgb(146 64 14); }

@media (min-width: 768px) {
  .article-callout { padding: 1.25rem; margin: 2rem 0; }
  .article-callout p { font-size: 1rem; }
}

/* ============================================
   Components: Checklist Box
   ============================================ */
.checklist-box {
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.checklist-box-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.checklist-item:last-child {
  margin-bottom: 0;
}

.checklist-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.checklist-item-title {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.checklist-item-desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .checklist-box { padding: 2rem; }
  .checklist-box-title { font-size: 1.25rem; }
}

/* ============================================
   Components: Key Takeaways
   ============================================ */
.key-takeaways {
  background-color: hsl(var(--muted) / 0.4);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.key-takeaways-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.key-takeaways-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
}

.key-takeaways ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.key-takeaways li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  line-height: 1.5;
}

.key-takeaways li:last-child {
  margin-bottom: 0;
}

.key-takeaways li::before {
  content: "✓";
  color: hsl(var(--primary));
  font-weight: 600;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .key-takeaways { padding: 2rem; }
  .key-takeaways-title { font-size: 1.25rem; }
  .key-takeaways li { font-size: 1rem; }
}

/* ============================================
   Components: Article CTA
   ============================================ */
.article-cta {
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.1), hsl(var(--primary) / 0.15), hsl(var(--primary) / 0.1));
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

/* Remove underline from CTA buttons */
.article-cta .btn,
.article-cta .btn:hover,
.footer-cta .btn,
.footer-cta .btn:hover {
  text-decoration: none !important;
}

/* Add gap between button text and icon */
.article-cta .btn svg,
.footer-cta .btn svg {
  margin-left: 0.5rem;
}

/* Back link spacing - arrow before text */
.back-link .btn svg {
  margin-right: 0.5rem;
  margin-left: 0;
}

.article-cta-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.article-cta-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.25rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .article-cta { padding: 2.5rem; border-radius: 1rem; }
  .article-cta-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
  .article-cta-desc { font-size: 1rem; margin-bottom: 1.5rem; }
}

@media (min-width: 1024px) {
  .article-cta-title { font-size: 1.5rem; }
}

/* ============================================
   Components: FAQ Section
   ============================================ */
.faq-section {
  margin: 2rem 0;
}

.faq-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.faq-item {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  margin: 0;
}

@media (min-width: 768px) {
  .faq-section { margin: 3rem 0; }
  .faq-section-title { font-size: 1.5rem; margin-bottom: 2rem; padding-bottom: 0.75rem; }
  .faq-item { padding: 1.25rem; margin-bottom: 1rem; }
  .faq-question { font-size: 1.125rem; }
  .faq-answer { font-size: 1rem; }
}

@media (min-width: 1024px) {
  .faq-section-title { font-size: 1.875rem; }
}

/* ============================================
   Components: Template Form Fields
   ============================================ */
.template-form-section {
  background-color: rgb(239 246 255);
  border-left: 4px solid rgb(59 130 246);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
}

.template-form-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(30 64 175);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.template-grid {
  display: grid;
  gap: 1rem;
}

.template-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

@media (max-width: 640px) {
  .template-grid-2,
  .template-grid-3 {
    grid-template-columns: 1fr;
  }
}

.template-field {
  margin-bottom: 0.5rem;
}

.template-field-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: rgb(30 64 175);
  margin-bottom: 0.25rem;
}

.template-field-line {
  color: hsl(var(--muted-foreground));
  border-bottom: 1px dashed hsl(var(--border));
  padding-bottom: 0.25rem;
  font-size: 0.875rem;
}

.template-field-line.full-width {
  grid-column: 1 / -1;
}

.template-allergy {
  color: hsl(var(--destructive));
  font-weight: 600;
}

.template-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}

.template-table th {
  text-align: left;
  font-weight: 500;
  padding-bottom: 0.5rem;
  color: rgb(30 64 175);
}

.template-table td {
  border-bottom: 1px dashed hsl(var(--border));
  padding: 0.5rem 0.5rem 0.5rem 0;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .template-form-section { padding: 1.25rem; margin: 1.5rem 0; }
  .template-form-title { font-size: 1.125rem; }
}

/* ============================================
   Components: Related Content
   ============================================ */
.related-content {
  padding: 2rem 0;
  border-top: 1px solid hsl(var(--border) / 0.5);
}

.related-content-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.related-content-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.related-content-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .related-content { padding: 2.5rem 0; }
  .related-content-title { font-size: 1.25rem; margin-bottom: 0.375rem; }
  .related-content-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
  .related-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}

@media (min-width: 1024px) {
  .related-content-title { font-size: 1.5rem; }
  .related-content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================
   Components: Footer CTA
   ============================================ */
.footer-cta {
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.1), hsl(var(--primary) / 0.15), hsl(var(--primary) / 0.1));
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.footer-cta-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.footer-cta-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.25rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .footer-cta { padding: 2.5rem; border-radius: 1rem; }
  .footer-cta-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
  .footer-cta-desc { font-size: 1rem; margin-bottom: 1.5rem; }
}

@media (min-width: 1024px) {
  .footer-cta-title { font-size: 1.5rem; }
}

/* ============================================
   Components: Site Footer
   ============================================ */
.site-footer {
  background-color: rgb(15 23 42);
  padding: 4rem 1rem;
  color: rgb(148 163 184);
}

.site-footer .container {
  max-width: 72rem;
}

.site-footer .logo {
  height: 4rem;
  margin-bottom: 1.5rem;
}

.site-footer .tagline {
  font-size: 0.875rem;
  color: rgb(148 163 184);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.site-footer nav a {
  color: rgb(148 163 184);
  transition: color 150ms;
}

.site-footer nav a:hover {
  color: white;
}

.site-footer .copyright {
  border-top: 1px solid rgb(30 41 59);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .site-footer nav {
    justify-content: flex-end;
  }
}

/* ============================================
   Responsive Visibility
   ============================================ */
@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:grid { display: grid; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  
  .md\:h-72 { height: 18rem; }
  .md\:h-3\.5 { height: 0.875rem; }
  .md\:h-4 { height: 1rem; }
  .md\:h-5 { height: 1.25rem; }
  .md\:w-3\.5 { width: 0.875rem; }
  .md\:w-4 { width: 1rem; }
  .md\:w-5 { width: 1.25rem; }
  
  .md\:p-2\.5 { padding: 0.625rem; }
  .md\:pb-3 { padding-bottom: 0.75rem; }
  .md\:pt-5 { padding-top: 1.25rem; }
  .md\:pt-8 { padding-top: 2rem; }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  
  .md\:mb-5 { margin-bottom: 1.25rem; }
  .md\:mb-6 { margin-bottom: 1.5rem; }
  .md\:mb-8 { margin-bottom: 2rem; }
  .md\:mb-10 { margin-bottom: 2.5rem; }
  .md\:mb-16 { margin-bottom: 4rem; }
  .md\:mt-1 { margin-top: 0.25rem; }
  .md\:mt-1\.5 { margin-top: 0.375rem; }
  .md\:mt-8 { margin-top: 2rem; }
  .md\:mt-10 { margin-top: 2.5rem; }
  .md\:mr-2 { margin-right: 0.5rem; }
  .md\:ml-6 { margin-left: 1.5rem; }
  
  .md\:gap-3 { gap: 0.75rem; }
  .md\:gap-4 { gap: 1rem; }
  
  .md\:rounded-2xl { border-radius: 1rem; }
  
  .md\:min-h-\[40px\] { min-height: 40px; }
}

@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  
  .lg\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .lg\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .lg\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

/* ============================================
   SVG Icons (inline)
   ============================================ */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-xs { width: 0.75rem; height: 0.75rem; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

/* ============================================
   Article Container & Layout
   ============================================ */
.article-container {
  padding: 2rem 1rem;
}

.article-content {
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .article-container {
    padding: 4rem 1rem;
  }
}

/* ============================================
   Breadcrumb Navigation
   ============================================ */
.breadcrumb {
  margin-bottom: 1.25rem;
}

.breadcrumb-link {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 150ms;
}

.breadcrumb-link:hover {
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .breadcrumb {
    margin-bottom: 2rem;
  }
  .breadcrumb-link {
    font-size: 0.875rem;
    gap: 0.5rem;
  }
}

/* ============================================
   Article Header
   ============================================ */
.article-header {
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.reading-time {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.article-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  border-top: 1px solid hsl(var(--border) / 0.5);
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .article-header {
    margin-bottom: 2rem;
  }
  .article-meta {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .reading-time {
    font-size: 0.875rem;
  }
  .article-title {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
  }
  .article-date {
    gap: 1rem;
    font-size: 0.875rem;
    padding-top: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .article-title {
    font-size: 2.25rem;
  }
}

/* ============================================
   Hero Image
   ============================================ */
.hero-image {
  position: relative;
  height: 14rem;
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--primary) / 0.2), hsl(var(--primary) / 0.05), transparent);
}

@media (min-width: 768px) {
  .hero-image {
    height: 18rem;
    margin-bottom: 2.5rem;
  }
}

/* ============================================
   Callout Component (inline style)
   ============================================ */
.callout {
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.callout-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.callout-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

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

.callout-title {
  font-weight: 600;
  margin-bottom: 0.375rem;
  font-size: 1rem;
  color: hsl(var(--foreground));
}

.callout p {
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.9);
  margin: 0;
  line-height: 1.625;
}

.callout-info {
  background-color: hsl(var(--muted));
  border-left-color: hsl(var(--muted-foreground) / 0.3);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.callout-info .callout-icon svg {
  color: hsl(var(--muted-foreground));
}

.callout-tip {
  background-color: hsl(var(--primary) / 0.05);
  border-left-color: hsl(var(--primary));
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.callout-tip .callout-icon svg {
  color: hsl(var(--primary));
}

.callout-warning {
  background-color: hsl(var(--warning) / 0.1);
  border-left-color: hsl(var(--warning));
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.callout-warning .callout-icon svg {
  color: hsl(var(--warning));
}

.callout-success {
  background-color: hsl(var(--success) / 0.1);
  border-left-color: hsl(var(--success));
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.callout-success .callout-icon svg {
  color: hsl(var(--success));
}

@media (min-width: 768px) {
  .callout {
    padding: 1.25rem;
    margin: 2rem 0;
    gap: 1rem;
  }
  .callout-icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  .callout-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
  .callout p {
    font-size: 1rem;
  }
}

/* ============================================
   Checklist with title
   ============================================ */
.checklist-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-desc {
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .checklist-title {
    font-size: 1.25rem;
  }
}

/* ============================================
   Key Takeaways (alternate styles)
   ============================================ */
.key-takeaways {
  background-color: hsl(var(--primary) / 0.05);
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.key-takeaways-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.key-takeaways-header svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
}

.key-takeaways-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: hsl(var(--foreground));
}

.key-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-takeaways li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  line-height: 1.5;
}

.key-takeaways li:last-child {
  margin-bottom: 0;
}

.key-takeaways li::before {
  content: "•";
  color: hsl(var(--primary));
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

@media (min-width: 768px) {
  .key-takeaways {
    padding: 2rem;
  }
  .key-takeaways-header h3 {
    font-size: 1.25rem;
  }
  .key-takeaways li {
    font-size: 1rem;
  }
}

/* ============================================
   Article CTA (inline style)
   ============================================ */
.article-cta h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.article-cta p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.25rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

/* Ensure CTA button text is always white on primary background */
.article-cta .btn-primary,
.article-cta .btn-primary:hover,
.footer-cta .btn-primary,
.footer-cta .btn-primary:hover {
  color: white !important;
}

.article-cta .btn-primary svg,
.footer-cta .btn-primary svg {
  stroke: white;
}

@media (min-width: 768px) {
  .article-cta h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  .article-cta p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .article-cta h3 {
    font-size: 1.5rem;
  }
}

/* ============================================
   FAQ Section (inline style)
   ============================================ */
.faq-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  line-height: 1.375;
}

.faq-item p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  margin: 0;
}

@media (min-width: 768px) {
  .faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
  }
  .faq-list {
    gap: 1rem;
  }
  .faq-item {
    padding: 1.25rem 1.5rem;
  }
  .faq-item h3 {
    font-size: 1.125rem;
  }
  .faq-item p {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .faq-section h2 {
    font-size: 1.875rem;
  }
}

/* ============================================
   Related Section
   ============================================ */
.related-section {
  padding: 2rem 0;
  border-top: 1px solid hsl(var(--border) / 0.5);
}

.related-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.related-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  margin-top: -0.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.related-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
  padding: 0.75rem;
  transition: box-shadow 300ms, transform 300ms;
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-card-icon {
  padding: 0.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--primary) / 0.1);
  flex-shrink: 0;
}

.related-card-icon svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
}

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

.related-card-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
  line-height: 1.375;
  transition: color 150ms;
}

.related-card:hover .related-card-content h3 {
  color: hsl(var(--primary));
}

.related-card-content p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .related-section {
    padding: 2.5rem 0;
  }
  .related-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  .related-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    margin-top: -1rem;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .related-card {
    gap: 1rem;
    padding: 0.75rem;
  }
  .related-card-icon {
    padding: 0.625rem;
  }
  .related-card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .related-card-content h3 {
    font-size: 1.125rem;
  }
  .related-card-content p {
    font-size: 0.875rem;
    margin-top: 0.375rem;
  }
}

@media (min-width: 1024px) {
  .related-section h2 {
    font-size: 1.5rem;
  }
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Footer CTA (inline h3/p)
   ============================================ */
.footer-cta h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.footer-cta p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.25rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .footer-cta h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  .footer-cta p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-cta h3 {
    font-size: 1.5rem;
  }
}

/* ============================================
   Back Link
   ============================================ */
.back-link {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
}

@media (min-width: 768px) {
  .back-link {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }
}

/* ============================================
   Footer Content Layout
   ============================================ */
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 4rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgb(148 163 184);
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.footer-nav a {
  color: rgb(148 163 184);
  transition: color 150ms;
}

.footer-nav a:hover {
  color: white;
}

.footer-copyright {
  border-top: 1px solid rgb(30 41 59);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
  }
  .footer-nav {
    justify-content: flex-end;
  }
}

/* ============================================
   Components: Comparison Box (Side by Side)
   ============================================ */
.comparison-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .comparison-box {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.comparison-column {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
}

.comparison-column h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .comparison-column h4 {
    font-size: 1rem;
  }
}

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

.comparison-column li {
  font-size: 0.75rem;
  color: hsl(var(--foreground) / 0.8);
  padding: 0.25rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .comparison-column li {
    font-size: 0.875rem;
  }
}

.comparison-column li::before {
  content: "•";
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* Left column - Less effective (red/destructive) */
.comparison-left {
  background-color: hsl(var(--destructive) / 0.05);
  border: 1px solid hsl(var(--destructive) / 0.2);
}

.comparison-left h4 {
  color: hsl(var(--destructive));
}

.comparison-left h4::before {
  content: "✗";
  font-size: 1rem;
}

.comparison-left li::before {
  color: hsl(var(--destructive) / 0.6);
}

/* Right column - More effective (green/success) */
.comparison-right {
  background-color: hsl(var(--success) / 0.05);
  border: 1px solid hsl(var(--success) / 0.2);
}

.comparison-right h4 {
  color: hsl(var(--success));
}

.comparison-right h4::before {
  content: "✓";
  font-size: 1rem;
}

.comparison-right li::before {
  color: hsl(var(--success) / 0.6);
}
