/*
 * ========================================================================
 * ANALYTIC ENDEAVORS - GUIDE PAGE DIAGRAMS
 * Reusable diagram and visual component styles shared across guide pages
 * Copyright (c) 2024-2025 Analytic Endeavors Inc. All Rights Reserved.
 * ========================================================================
 *
 * Provides: fieldset frames, icon grids, diagram flows, two-column layouts,
 *           comparison panels, feature cards, badges, checklist grids.
 *
 * Load order: After guide-components.css, before presentation.css
 */


/* =====================================================================
   1. FIELDSET CARD FRAMES
   Bordered fieldset containers with colored legends, gradients, and glow
   ===================================================================== */

.frame {
  border-radius: 14px;
  padding: 20px;
  position: relative;
  width: 100%;
  transition: box-shadow 0.3s;
  margin: 0; /* fieldset reset */
}

.frame-legend {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 8px;
  color: var(--frame-color);
}

.frame-connector {
  width: 2px;
  height: 24px;
  background: #2a3a4e;
  flex-shrink: 0;
}

/* -- Teal variant -- */
.frame--teal {
  --frame-color: var(--teal);
  --frame-rgb: 0,153,153;
  border: 2px solid var(--teal);
  background: linear-gradient(180deg, rgba(0,153,153,0.1) 0%, rgba(0,153,153,0.03) 100%);
}
.frame--teal .frame-legend { color: var(--teal); }
.frame--teal:hover {
  border-color: #00b3b3;
  box-shadow: 0 0 24px rgba(0,153,153,0.1);
}

/* -- Blue variant -- */
.frame--blue {
  --frame-color: #4db8ff;
  --frame-rgb: 77,184,255;
  border: 1.5px solid #4db8ff;
  background: linear-gradient(180deg, rgba(77,184,255,0.05) 0%, rgba(77,184,255,0.012) 100%);
}
.frame--blue .frame-legend { color: #4db8ff; }
.frame--blue:hover {
  border-color: #7ccbff;
  box-shadow: 0 0 20px rgba(77,184,255,0.08);
}

/* -- Orange variant -- */
.frame--orange {
  --frame-color: var(--orange);
  --frame-rgb: 255,140,66;
  border: 1.5px solid var(--orange);
  background: linear-gradient(180deg, rgba(255,140,66,0.06) 0%, rgba(255,140,66,0.015) 100%);
}
.frame--orange .frame-legend { color: var(--orange); }
.frame--orange:hover {
  border-color: #ffa366;
  box-shadow: 0 0 20px rgba(255,140,66,0.08);
}

/* -- Gold variant -- */
.frame--gold {
  --frame-color: var(--gold);
  --frame-rgb: 244,208,63;
  border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, rgba(244,208,63,0.06) 0%, rgba(244,208,63,0.015) 100%);
}
.frame--gold .frame-legend { color: var(--gold); }
.frame--gold:hover {
  border-color: #f7dc6f;
  box-shadow: 0 0 20px rgba(244,208,63,0.08);
}

/* -- Purple variant -- */
.frame--purple {
  --frame-color: var(--purple);
  --frame-rgb: 107,91,149;
  border: 1.5px solid var(--purple);
  background: linear-gradient(180deg, rgba(107,91,149,0.06) 0%, rgba(107,91,149,0.015) 100%);
}
.frame--purple .frame-legend { color: var(--purple); }
.frame--purple:hover {
  border-color: var(--purple-light);
  box-shadow: 0 0 20px rgba(107,91,149,0.08);
}

/* Generic hover glow fallback */
.frame:hover {
  box-shadow: 0 0 18px rgba(var(--frame-rgb, 255,255,255), 0.08);
}


/* =====================================================================
   2. ICON GRID
   Grid of small icon cards (engines, workloads, etc.)
   ===================================================================== */

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

.icon-grid--4col {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.icon-card {
  background: rgba(13,13,26,0.7);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transition: transform 0.3s;
}

.icon-card:hover {
  transform: translateY(-3px);
}

.icon-card svg {
  width: 26px;
  height: 26px;
  color: var(--frame-color, var(--text-secondary));
}

.icon-card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}


/* =====================================================================
   3. DIAGRAM FLOW
   Horizontal node + arrow diagrams for data flow / architecture visuals
   ===================================================================== */

.diagram-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--card-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
  width: 170px;
  min-height: 120px;
  text-align: center;
  justify-content: center;
  --node-accent: var(--teal);
  --node-glow: rgba(0,153,153,0.15);
}

.diagram-node:hover {
  transform: translateY(-3px);
  border-color: var(--node-accent);
  box-shadow: 0 8px 24px var(--node-glow);
}

/* -- Node color variants -- */
.diagram-node--teal {
  border-color: var(--teal);
  background: #0c1618;
  --node-accent: var(--teal);
  --node-glow: rgba(0,153,153,0.2);
}

.diagram-node--orange {
  border-color: var(--orange);
  background: #14100c;
  --node-accent: var(--orange);
  --node-glow: rgba(255,140,66,0.2);
}

.diagram-node--blue {
  border-color: var(--blue);
  background: #0c1018;
  --node-accent: var(--blue);
  --node-glow: rgba(0,88,124,0.2);
}

.diagram-node--gold {
  border-color: var(--gold);
  background: #13120c;
  --node-accent: var(--gold);
  --node-glow: rgba(244,208,63,0.2);
}

.diagram-node--danger {
  border-color: var(--danger);
  background: #140c0e;
  --node-accent: var(--danger);
  --node-glow: rgba(255,107,107,0.2);
}

.diagram-node--muted {
  border-color: var(--border);
  opacity: 0.5;
}

/* -- Node inner elements -- */
.diagram-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-icon svg {
  width: 36px;
  height: 36px;
}

.diagram-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.diagram-sublabel {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: -0.3rem;
}

/* -- Arrow system -- */
.diagram-arrow {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  position: relative;
}

.diagram-arrow svg {
  width: 72px;
  height: 32px;
  overflow: visible;
}

.diagram-arrow-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Arrow sub-element base styles */
.arrow-shaft { stroke-linecap: round; }
.arrow-glow  { stroke-linecap: round; }
.arrow-head  { transition: opacity 0.3s; }

/* Import arrow: solid orange with glow */
.arrow-import .arrow-glow  { stroke: var(--orange); stroke-width: 8; opacity: 0.08; }
.arrow-import .arrow-shaft { stroke: var(--orange); stroke-width: 2; }
.arrow-import .arrow-head  { fill: var(--orange); opacity: 0.85; }
.arrow-import .diagram-arrow-label { color: var(--orange); }
.arrow-import svg { filter: drop-shadow(0 0 6px rgba(255,140,66,0.2)); }

/* DirectQuery arrow: animated dashed blue */
.arrow-dq .arrow-glow  { stroke: var(--blue); stroke-width: 8; opacity: 0.1; }
.arrow-dq .arrow-shaft { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 8 4; }
.arrow-dq .arrow-head  { fill: var(--blue); opacity: 0.85; }
.arrow-dq .diagram-arrow-label { color: var(--blue); }
.arrow-dq svg { animation: arrowFlow 1.2s linear infinite; }

/* Direct Lake arrow: animated teal flow */
.arrow-dl .arrow-glow  { stroke: var(--teal); stroke-width: 8; opacity: 0.1; }
.arrow-dl .arrow-shaft { stroke: var(--teal); stroke-width: 2; stroke-dasharray: 10 5; }
.arrow-dl .arrow-head  { fill: var(--teal-light); opacity: 0.9; }
.arrow-dl .diagram-arrow-label { color: var(--teal-light); }
.arrow-dl svg { animation: arrowFlow 2s linear infinite; }

/* Neutral arrow: subtle muted */
.arrow-neutral .arrow-glow  { stroke: var(--text-muted); stroke-width: 6; opacity: 0.05; }
.arrow-neutral .arrow-shaft { stroke: var(--text-muted); stroke-width: 1.5; }
.arrow-neutral .arrow-head  { fill: var(--text-muted); opacity: 0.6; }
.arrow-neutral .diagram-arrow-label { color: var(--text-muted); }

@keyframes arrowFlow {
  to { stroke-dashoffset: -30; }
}


/* =====================================================================
   4. TWO-COLUMN LAYOUT
   Side-by-side process steps + benefit cards with colored accents
   ===================================================================== */

.two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.two-col-section > div {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  gap: 1.85rem;
}

.two-col-section .step { display: flex; margin: 0; }
.two-col-section .process-card,
.two-col-section .benefit-card { margin-bottom: 0; flex: 1; }

.col-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.col-header--teal   { color: var(--teal-light);   border-bottom-color: var(--teal); }
.col-header--purple { color: var(--purple-light); border-bottom-color: var(--purple); }
.col-header--blue   { color: #4db8ff;             border-bottom-color: var(--blue); }
.col-header--orange { color: var(--orange);        border-bottom-color: var(--orange); }

/* -- Process cards (numbered steps) -- */
.process-card {
  background: var(--card-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.process-card:hover {
  border-color: var(--teal);
  transform: translateX(4px);
}

.process-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}

.process-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-light);
  margin-bottom: 0.25rem;
}

.process-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* -- Benefit cards (left-border accent) -- */
.benefit-card {
  background: var(--card-surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.benefit-card:hover {
  transform: translateX(4px);
}

.benefit-card--teal   { border-left-color: var(--teal); }
.benefit-card--teal:hover   { border-color: var(--teal); }
.benefit-card--green  { border-left-color: var(--green); }
.benefit-card--green:hover  { border-color: var(--green); }
.benefit-card--orange { border-left-color: var(--orange); }
.benefit-card--orange:hover { border-color: var(--orange); }
.benefit-card--purple { border-left-color: var(--purple); }
.benefit-card--purple:hover { border-color: var(--purple); }

.benefit-icon-wrap {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(var(--frame-rgb, 0,153,153), 0.12);
}

.benefit-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.benefit-icon-wrap--teal   { background: rgba(0, 153, 153, 0.15); }
.benefit-icon-wrap--green  { background: rgba(0, 135, 90, 0.15); }
.benefit-icon-wrap--orange { background: rgba(255, 140, 66, 0.15); }
.benefit-icon-wrap--purple { background: rgba(107, 91, 149, 0.15); }

.benefit-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.benefit-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.benefit-card .footnote {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-style: italic;
}


/* =====================================================================
   5. COMPARISON PANEL
   Side-by-side comparison with VS divider and status badges
   ===================================================================== */

.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-panel {
  background: var(--card-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.comparison-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.comparison-vs {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
}

.comparison-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.comparison-badge--stale {
  background: rgba(255, 107, 107, 0.15);
  color: var(--danger);
}

.comparison-badge--fresh {
  background: rgba(0, 153, 153, 0.15);
  color: var(--teal-light);
}


/* =====================================================================
   6. FEATURE CARDS
   Grid of feature/storage comparison cards with colored top borders
   ===================================================================== */

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-color, var(--border));
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

/* Color variants */
.feature-card--teal   { --card-color: var(--teal); }
.feature-card--blue   { --card-color: var(--blue); }
.feature-card--orange { --card-color: var(--orange); }
.feature-card--gold   { --card-color: var(--gold); }
.feature-card--purple { --card-color: var(--purple); }
.feature-card--danger { --card-color: var(--danger); }

.feature-card--teal:hover   { border-color: var(--teal); }
.feature-card--blue:hover   { border-color: var(--blue); }
.feature-card--orange:hover { border-color: var(--orange); }
.feature-card--gold:hover   { border-color: var(--gold); }
.feature-card--purple:hover { border-color: var(--purple); }
.feature-card--danger:hover { border-color: var(--danger); }

/* Emphasized card with glow */
.feature-card--teal {
  box-shadow: 0 0 20px rgba(0,153,153,0.08);
}

.feature-card-header {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  color: var(--card-color, var(--text-primary));
}

.feature-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.feature-row-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.feature-row-label svg {
  width: 14px;
  height: 14px;
}

.feature-row-value {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Value status colors */
.val-good { color: var(--green) !important; }
.val-warn { color: var(--orange) !important; }
.val-bad  { color: var(--danger) !important; }

/* Tooltip underline color: match parent card theme */
.feature-card--teal [data-tooltip]   { text-decoration-color: rgba(0, 153, 153, 0.6); }
.feature-card--blue [data-tooltip]   { text-decoration-color: rgba(0, 88, 124, 0.6); }
.feature-card--orange [data-tooltip] { text-decoration-color: rgba(255, 140, 66, 0.6); }
.feature-card--purple [data-tooltip] { text-decoration-color: rgba(180, 142, 255, 0.6); }
.feature-card--gold [data-tooltip]   { text-decoration-color: rgba(244, 208, 63, 0.6); }
.feature-card--danger [data-tooltip] { text-decoration-color: rgba(255, 107, 107, 0.6); }

.feature-card--teal [data-tooltip]::after   { border-color: rgba(0, 153, 153, 0.2); }
.feature-card--blue [data-tooltip]::after   { border-color: rgba(0, 88, 124, 0.2); }
.feature-card--orange [data-tooltip]::after { border-color: rgba(255, 140, 66, 0.2); }
.feature-card--purple [data-tooltip]::after { border-color: rgba(180, 142, 255, 0.2); }
.feature-card--gold [data-tooltip]::after   { border-color: rgba(244, 208, 63, 0.2); }
.feature-card--danger [data-tooltip]::after { border-color: rgba(255, 107, 107, 0.2); }

/* Value-status tooltip colors (works inside any container, not just feature-cards) */
.val-bad [data-tooltip]  { text-decoration-color: rgba(255, 107, 107, 0.6); }
.val-bad [data-tooltip]::after  { border-color: rgba(255, 107, 107, 0.2); }
.val-good [data-tooltip] { text-decoration-color: rgba(0, 200, 83, 0.6); }
.val-good [data-tooltip]::after { border-color: rgba(0, 200, 83, 0.2); }
.val-warn [data-tooltip] { text-decoration-color: rgba(255, 140, 66, 0.6); }
.val-warn [data-tooltip]::after { border-color: rgba(255, 140, 66, 0.2); }


/* =====================================================================
   7. BADGE SYSTEM
   Inline status/mode badges with colored backgrounds and borders
   ===================================================================== */

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
}

.badge--teal {
  background: rgba(0, 153, 153, 0.15);
  color: var(--teal-light);
  border-color: var(--teal);
}

.badge--blue {
  background: rgba(0, 88, 124, 0.2);
  color: var(--blue);
  border-color: var(--blue);
}

.badge--orange {
  background: rgba(255, 140, 66, 0.15);
  color: var(--orange);
  border-color: var(--orange);
}

.badge--gold {
  background: rgba(244, 208, 63, 0.15);
  color: var(--gold);
  border-color: var(--gold);
}

.badge--purple {
  background: rgba(107, 91, 149, 0.15);
  color: var(--purple-light);
  border-color: var(--purple);
}

.badge--danger {
  background: rgba(255, 107, 107, 0.15);
  color: var(--danger);
  border-color: var(--danger);
}


/* =====================================================================
   8. CHECKLIST GRID
   2-column grid of requirement/checklist cards with check icons
   ===================================================================== */

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

.checklist-card {
  background: var(--card-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  transition: border-color 0.3s, transform 0.3s;
}

.checklist-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.checklist-check {
  flex-shrink: 0;
  color: var(--gold);
}

.checklist-check svg {
  width: 24px;
  height: 24px;
}

.checklist-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.checklist-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.checklist-callout {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(244, 208, 63, 0.06);
  border: 1px solid rgba(244, 208, 63, 0.15);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checklist-callout strong {
  color: var(--gold);
}


/* =====================================================================
   LIGHT MODE OVERRIDES
   ===================================================================== */

/* Frames */
[data-theme="light"] .frame--teal   { background: rgba(0,153,153,0.04); }
[data-theme="light"] .frame--blue   { background: rgba(77,184,255,0.04); }
[data-theme="light"] .frame--orange { background: rgba(255,140,66,0.04); }
[data-theme="light"] .frame--gold   { background: rgba(244,208,63,0.04); }
[data-theme="light"] .frame--purple { background: rgba(107,91,149,0.04); }

/* Icon grid */
[data-theme="light"] .icon-card { background: rgba(255,255,255,0.7); }

/* Diagram nodes */
[data-theme="light"] .diagram-node        { background: var(--card-bg); }
[data-theme="light"] .diagram-node--teal   { background: rgba(0, 153, 153, 0.06); }
[data-theme="light"] .diagram-node--orange { background: rgba(255, 140, 66, 0.06); }
[data-theme="light"] .diagram-node--blue   { background: rgba(0, 88, 124, 0.06); }
[data-theme="light"] .diagram-node--gold   { background: rgba(244, 208, 63, 0.06); }

/* Arrow strokes: thicker for visibility on light backgrounds */
[data-theme="light"] .arrow-import .arrow-shaft  { stroke-width: 2.5; }
[data-theme="light"] .arrow-dq .arrow-shaft      { stroke-width: 2.5; }
[data-theme="light"] .arrow-dl .arrow-shaft      { stroke-width: 2.5; }
[data-theme="light"] .arrow-neutral .arrow-shaft { stroke-width: 2; }

/* Two-column cards */
[data-theme="light"] .process-card { background: var(--card-bg); }
[data-theme="light"] .benefit-card { background: var(--card-bg); }

/* Comparison */
[data-theme="light"] .comparison-panel { background: var(--card-bg); }

/* Feature cards */
[data-theme="light"] .feature-card { background: var(--card-bg); }
[data-theme="light"] .feature-card--blue [data-tooltip]   { text-decoration-color: rgba(0, 88, 124, 0.4); }
[data-theme="light"] .feature-card--orange [data-tooltip] { text-decoration-color: rgba(255, 140, 66, 0.4); }
[data-theme="light"] .feature-card--purple [data-tooltip] { text-decoration-color: rgba(139, 92, 246, 0.4); }

/* Checklist */
[data-theme="light"] .checklist-card { background: var(--card-bg); }


/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 1100px) {
  .diagram-flow {
    gap: 1rem;
    padding: 1.5rem;
  }
  .diagram-node {
    min-width: 110px;
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .icon-grid,
  .icon-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
  .diagram-flow {
    gap: 1rem;
  }
  .two-col-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .comparison {
    grid-template-columns: 1fr;
  }
  .comparison-vs {
    margin: 0 auto;
  }
  .feature-cards {
    grid-template-columns: 1fr;
  }
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}
