/* ============================================
   IntegrativePracticeTech Design System
   Organic, earthy, modern wellness + tech
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #fffbf5;
  --color-bg-warm: #f8f3ec;
  --color-forest: #1b4332;
  --color-forest-light: #2d6a4f;
  --color-terracotta: #c1694f;
  --color-terracotta-light: #d4856e;
  --color-sage: #a3b18a;
  --color-sage-light: #c5d1b3;
  --color-tan: #ddd5c8;
  --color-tan-light: #eae5dc;
  --color-text: #2d2418;
  --color-text-muted: #5c5143;
  --color-olive: #6b705c;
  --color-white: #ffffff;
  --color-cream: #faf7f2;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-blob: 42% 58% 62% 38% / 45% 55% 45% 55%;

  --shadow-sm: 0 1px 3px rgba(45, 36, 24, 0.06);
  --shadow-md: 0 4px 16px rgba(45, 36, 24, 0.08);
  --shadow-lg: 0 8px 32px rgba(45, 36, 24, 0.10);
  --shadow-xl: 0 16px 48px rgba(45, 36, 24, 0.12);

  --max-width: 1200px;
  --content-width: 800px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  /* Subtle grain texture */
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(163, 177, 138, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(193, 105, 79, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(45, 36, 24, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 4px 4px;
}

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

a {
  color: var(--color-forest);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-terracotta);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-forest);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 1.5rem;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-forest);
  color: var(--color-white);
  border-color: var(--color-forest);
}

.btn-primary:hover {
  background: var(--color-forest-light);
  border-color: var(--color-forest-light);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
}

.btn-secondary:hover {
  background: var(--color-terracotta-light);
  border-color: var(--color-terracotta-light);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-forest);
  border-color: var(--color-forest);
}

.btn-outline:hover {
  background: var(--color-forest);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  color: var(--color-terracotta);
  padding: 0.5rem 0.75rem;
  border: none;
}

.btn-text:hover {
  color: var(--color-forest);
}

.btn-block {
  display: flex;
  width: 100%;
  margin-bottom: 0.5rem;
}

/* --- Header --- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-tan);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 251, 245, 0.92);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-forest);
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.6rem;
  color: var(--color-sage);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-forest);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--color-forest);
  background: var(--color-tan-light);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-forest);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(165deg, var(--color-bg) 0%, var(--color-tan-light) 50%, var(--color-bg-warm) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.blob {
  position: absolute;
  border-radius: var(--radius-blob);
  opacity: 0.4;
  pointer-events: none;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-sage-light) 0%, transparent 70%);
  top: -100px;
  right: -150px;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-tan) 0%, transparent 70%);
  bottom: -80px;
  left: -100px;
  animation: blobFloat 25s ease-in-out infinite reverse;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--color-sage-light) 0%, transparent 70%);
  top: 50px;
  left: -80px;
  opacity: 0.25;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -20px) rotate(5deg); }
  66% { transform: translate(-15px, 15px) rotate(-3deg); }
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--color-forest);
}

.hero h1 em {
  color: var(--color-terracotta);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Page Hero --- */
.page-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(170deg, var(--color-bg) 0%, var(--color-tan-light) 100%);
  border-bottom: 1px solid var(--color-tan);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 700px;
  line-height: 1.8;
}

/* --- Breadcrumb --- */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-olive);
}

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

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

.breadcrumb span[aria-hidden] {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* --- Sections --- */
.section {
  padding: 4rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.section-subtitle {
  margin: 3rem 0 1.5rem;
  font-family: var(--font-heading);
  color: var(--color-forest);
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* --- Leaf/Nature Divider --- */
.section + .section::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-sage), transparent);
  margin: 0 auto;
  position: relative;
  top: -2rem;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-tan-light);
  transition: all 0.3s ease;
}

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

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* --- Review Cards (Home) --- */
.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-tan-light);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.review-card-featured {
  border-color: var(--color-forest);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--color-terracotta);
  color: var(--color-white);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.review-rank {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-olive);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.review-card-header h3 {
  flex: 1;
  font-size: 1.3rem;
}

.review-card-header h3 a {
  color: var(--color-forest);
}

.review-card-header h3 a:hover {
  color: var(--color-terracotta);
}

.review-score-big {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--color-forest);
  flex-shrink: 0;
  line-height: 1;
}

.review-score-big span {
  font-size: 0.9rem;
  color: var(--color-olive);
  font-weight: 400;
}

.review-tagline {
  color: var(--color-terracotta);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.pros-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.pros-list li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pros-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-sage);
  font-weight: 700;
}

.review-card .btn {
  margin-top: auto;
}

.review-card .btn + .btn {
  margin-top: 0.5rem;
}

/* --- Reviews List Page --- */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.review-list-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-tan-light);
  display: flex;
  gap: 2rem;
  transition: box-shadow 0.3s ease;
}

.review-list-item:hover {
  box-shadow: var(--shadow-md);
}

.review-list-featured {
  border-color: var(--color-forest);
  border-width: 2px;
  background: linear-gradient(135deg, var(--color-white) 0%, rgba(163, 177, 138, 0.06) 100%);
}

.review-list-rank {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 0.25rem;
}

.rank-number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-olive);
  background: var(--color-tan-light);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-list-featured .rank-number {
  background: var(--color-forest);
  color: var(--color-white);
}

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

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

.review-list-header h2 {
  flex: 1;
  font-size: 1.5rem;
}

.review-list-header h2 a {
  color: var(--color-forest);
}

.review-list-header h2 a:hover {
  color: var(--color-terracotta);
}

.review-list-score {
  flex-shrink: 0;
}

.score-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2rem;
  color: var(--color-forest);
  line-height: 1;
}

.score-max {
  font-size: 1rem;
  color: var(--color-olive);
}

.review-list-tagline {
  color: var(--color-terracotta);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* --- Score Bars --- */
.review-scores-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0;
}

.score-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score-label {
  font-size: 0.8rem;
  color: var(--color-olive);
  min-width: 110px;
  flex-shrink: 0;
}

.score-bar {
  flex: 1;
  height: 8px;
  background: var(--color-tan-light);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-sage), var(--color-forest));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.score-bar-label {
  position: absolute;
  right: -36px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-forest);
  width: 30px;
  text-align: left;
}

.score-item {
  padding-right: 40px;
}

.review-list-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* --- Review Detail --- */
.review-hero {
  padding-bottom: 2rem;
}

.review-hero-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.review-hero-rank {
  display: inline-block;
  background: var(--color-terracotta);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.review-hero-tagline {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.review-hero-score {
  text-align: center;
  flex-shrink: 0;
}

.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-forest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.score-number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--color-white);
  line-height: 1;
}

.score-of {
  font-size: 0.85rem;
  color: var(--color-sage-light);
}

.score-label-text {
  font-size: 0.8rem;
  color: var(--color-olive);
  font-weight: 700;
}

.review-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.review-summary-box {
  background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-tan-light) 100%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}

.review-summary-box h2 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.review-summary-box .btn {
  margin-top: 0.75rem;
}

.review-body {
  line-height: 1.8;
}

.review-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-tan-light);
}

.review-body p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.review-body a {
  color: var(--color-terracotta);
  text-decoration: underline;
  text-decoration-color: var(--color-tan);
  text-underline-offset: 3px;
}

.review-body a:hover {
  color: var(--color-forest);
  text-decoration-color: var(--color-forest);
}

.review-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pros-box, .cons-box {
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.pros-box {
  background: rgba(163, 177, 138, 0.1);
  border: 1px solid var(--color-sage-light);
}

.cons-box {
  background: rgba(193, 105, 79, 0.06);
  border: 1px solid var(--color-tan);
}

.pros-box h3, .cons-box h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding: 0;
  border: none;
}

.pros-box ul, .cons-box ul {
  list-style: none;
  padding: 0;
}

.pros-box li, .cons-box li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pros-box li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-sage);
  font-weight: 700;
}

.cons-box li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--color-terracotta-light);
  font-weight: 700;
}

/* --- Sidebar --- */
.review-sidebar, .guide-sidebar {
  position: sticky;
  top: 100px;
}

.scores-card {
  background: var(--color-white);
  border: 1px solid var(--color-tan-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.scores-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-tan-light);
}

.sidebar-score {
  margin-bottom: 0.75rem;
}

.sidebar-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  color: var(--color-olive);
}

.sidebar-score-header strong {
  color: var(--color-forest);
}

.sidebar-score .score-bar {
  height: 6px;
}

.sidebar-score .score-bar-label {
  display: none;
}

.sidebar-cta, .sidebar-links {
  background: var(--color-white);
  border: 1px solid var(--color-tan-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.sidebar-cta h4, .sidebar-links h4 {
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--color-forest);
}

.sidebar-cta p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.sidebar-links ul {
  list-style: none;
  padding: 0;
}

.sidebar-links li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-tan-light);
}

.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.sidebar-links a:hover {
  color: var(--color-forest);
}

/* --- Guides --- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-tan-light);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.guide-category {
  display: inline-block;
  background: var(--color-sage-light);
  color: var(--color-forest);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.guide-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.guide-card h3 a {
  color: var(--color-forest);
}

.guide-card h3 a:hover {
  color: var(--color-terracotta);
}

.guide-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.guide-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-olive);
  margin: 0.75rem 0;
}

.guide-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.guides-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.guide-list-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-tan-light);
}

.guide-list-item h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.guide-list-item h2 a {
  color: var(--color-forest);
}

.guide-list-item h2 a:hover {
  color: var(--color-terracotta);
}

.guide-list-item p {
  color: var(--color-text-muted);
}

/* --- Guide Detail --- */
.guide-hero {
  padding-bottom: 2rem;
}

.guide-hero-excerpt {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 1rem 0;
  max-width: 700px;
  line-height: 1.8;
}

.guide-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.guide-content.prose {
  line-height: 1.85;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

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

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

.prose a {
  color: var(--color-terracotta);
  text-decoration: underline;
  text-decoration-color: var(--color-tan);
  text-underline-offset: 3px;
}

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

.prose strong {
  color: var(--color-forest);
}

/* --- Integration Cards --- */
.integration-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.integration-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-tan-light);
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.integration-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--color-text);
}

.integration-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.integration-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.integration-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* --- Integration Table --- */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-tan-light);
}

.integration-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 0.85rem;
}

.integration-table th,
.integration-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-tan-light);
}

.integration-table thead th {
  background: var(--color-forest);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.8rem;
  position: sticky;
  top: 0;
  white-space: nowrap;
}

.integration-table thead th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.integration-table thead th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

.integration-table tbody tr:hover {
  background: var(--color-cream);
}

.integration-table td:first-child {
  min-width: 180px;
}

.integration-table td strong {
  display: block;
  color: var(--color-forest);
}

.lab-category {
  display: block;
  font-size: 0.72rem;
  color: var(--color-olive);
  margin-top: 0.15rem;
}

.notes-cell {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 300px;
}

/* --- Status Badges --- */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-full {
  background: rgba(27, 67, 50, 0.12);
  color: var(--color-forest);
}

.status-partial {
  background: rgba(163, 177, 138, 0.25);
  color: var(--color-olive);
}

.status-manual {
  background: rgba(193, 105, 79, 0.12);
  color: var(--color-terracotta);
}

.status-none {
  background: var(--color-tan-light);
  color: var(--color-olive);
  opacity: 0.7;
}

/* --- Status Legend --- */
.status-legend {
  margin: 2rem 0;
}

.status-legend h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.legend-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.legend-item .status-badge {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.legend-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- EMR Notes --- */
.emr-notes {
  margin-top: 2.5rem;
}

.emr-notes h3 {
  margin-bottom: 1.25rem;
}

.emr-note-item {
  padding: 1.25rem;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--color-sage);
}

.emr-note-item h4 {
  margin-bottom: 0.5rem;
}

.emr-note-item h4 a {
  color: var(--color-forest);
}

.emr-note-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- Dispensary Cards --- */
.dispensary-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.dispensary-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-tan-light);
}

.dispensary-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.dispensary-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.feature-list li {
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-sage);
  font-weight: 700;
}

.dispensary-pricing {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-tan-light);
  font-size: 0.88rem;
}

/* --- CTA Section --- */
.cta-section {
  padding: 2rem 0 4rem;
}

.cta-box {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-light) 100%);
  color: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--color-sage-light);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-box .btn-primary {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

.cta-box .btn-primary:hover {
  background: var(--color-terracotta-light);
  border-color: var(--color-terracotta-light);
}

/* --- About Page --- */
.about-layout {
  max-width: var(--content-width);
  margin: 0 auto;
}

.about-content.prose h2 {
  margin-top: 2.5rem;
}

.about-content.prose h2:first-child {
  margin-top: 0;
}

/* --- Legal Content --- */
.legal-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-forest);
  color: var(--color-sage-light);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(163, 177, 138, 0.2);
}

.footer-brand .logo-icon {
  color: var(--color-sage);
}

.footer-brand .logo-text {
  color: var(--color-white);
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-sage-light);
  line-height: 1.7;
}

.footer-links h4 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--color-sage-light);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(163, 177, 138, 0.7);
  margin-bottom: 0.5rem;
}

/* --- Why Different (nature divider between hero and section) --- */
.why-different {
  background: var(--color-bg);
  position: relative;
}

.why-different::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  background:
    radial-gradient(ellipse 20px 12px at 30% 50%, var(--color-sage) 0%, transparent 100%),
    radial-gradient(ellipse 24px 10px at 60% 40%, var(--color-sage-light) 0%, transparent 100%),
    radial-gradient(ellipse 16px 14px at 75% 60%, var(--color-sage) 0%, transparent 100%);
  opacity: 0.5;
}

/* --- Guides Section background --- */
.guides-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-warm) 100%);
  position: relative;
  overflow: hidden;
}

/* --- Stars --- */
.stars {
  color: var(--color-terracotta);
}

.star.full { opacity: 1; }
.star.half { opacity: 0.6; }
.star.empty { opacity: 0.25; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .review-layout {
    grid-template-columns: 1fr;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .review-sidebar, .guide-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-tan);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    text-align: center;
  }

  .review-hero-content {
    flex-direction: column;
  }

  .review-pros-cons {
    grid-template-columns: 1fr;
  }

  .review-list-item {
    flex-direction: column;
    gap: 1rem;
  }

  .review-list-rank {
    align-self: flex-start;
  }

  .review-scores-mini {
    grid-template-columns: 1fr;
  }

  .review-cards {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    margin-bottom: 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

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

  .dispensary-platforms {
    grid-template-columns: 1fr;
  }

  .integration-table {
    font-size: 0.75rem;
  }

  .integration-table th,
  .integration-table td {
    padding: 0.6rem 0.5rem;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }

  .legend-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }

  .container { padding: 0 1rem; }

  .logo-text { font-size: 1rem; }

  .review-card, .guide-card, .guide-list-item, .review-list-item {
    padding: 1.5rem;
  }

  .score-circle {
    width: 80px;
    height: 80px;
  }

  .score-number {
    font-size: 1.8rem;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header, .site-footer, .cta-section, .sidebar-cta, .btn {
    display: none;
  }

  .review-layout, .guide-layout {
    grid-template-columns: 1fr;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}
