/* ============================================
   RayMacGuide.com — "Warm Command Center" Theme
   Fonts: Space Grotesk (headings) + Work Sans (body)
   Colors: Orange #f97316, Plum #3b0764, Cream #fffbf0, Charcoal #1c1917
   ============================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-Latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-Italic-Latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  --orange: #f97316;
  --orange-light: #fb923c;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --plum: #3b0764;
  --plum-light: #581c87;
  --cream: #fffbf0;
  --cream-dark: #fef3e2;
  --charcoal: #1c1917;
  --charcoal-light: #292524;
  --charcoal-mid: #44403c;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --white: #ffffff;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 24px rgba(249,115,22,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.25s ease;
  /* Light theme defaults */
  --bg-primary: var(--cream);
  --bg-secondary: var(--white);
  --bg-tertiary: var(--cream-dark);
  --text-primary: var(--charcoal);
  --text-secondary: var(--stone-600);
  --text-heading: var(--plum);
  --border-color: var(--stone-200);
  --card-bg: var(--white);
  --card-border: var(--stone-200);
  --code-bg: #1e1e2e;
  --code-text: #cdd6f4;
  --nav-bg: rgba(255,251,240,0.92);
  --footer-bg: var(--plum);
  --footer-text: var(--cream);
}

[data-theme="dark"] {
  --bg-primary: var(--charcoal);
  --bg-secondary: var(--charcoal-light);
  --bg-tertiary: #1a1715;
  --text-primary: var(--cream);
  --text-secondary: var(--stone-400);
  --text-heading: var(--orange-light);
  --border-color: var(--charcoal-mid);
  --card-bg: var(--charcoal-light);
  --card-border: var(--charcoal-mid);
  --nav-bg: rgba(28,25,23,0.95);
  --footer-bg: #0f0d0c;
  --footer-text: var(--stone-300);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }
blockquote {
  border-left: 4px solid var(--orange);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-tertiary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
hr { border: none; border-top: 1px solid var(--border-color); margin: 2rem 0; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Reading Progress Bar --- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--violet));
  z-index: 10000;
  width: 0;
  transition: width 0.1s linear;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--orange);
  background: rgba(249,115,22,0.08);
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition);
  font-family: var(--font-body);
}
.theme-toggle:hover { border-color: var(--orange); }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero-bg-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.blob-1 { width: 500px; height: 500px; background: var(--orange); top: -100px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--violet); bottom: -80px; left: -80px; }
.blob-3 { width: 300px; height: 300px; background: var(--amber); top: 50%; left: 50%; transform: translate(-50%,-50%); }
[data-theme="dark"] .blob { opacity: 0.15; }
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 3.25rem;
  background: linear-gradient(135deg, var(--plum) 0%, var(--orange) 60%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}
[data-theme="dark"] .hero h1 {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--amber) 60%, var(--cream) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* --- Command Palette Animation --- */
.command-palette {
  max-width: 580px;
  margin: 0 auto 3rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  position: relative;
}
.command-palette-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}
.palette-dots { display: flex; gap: 6px; }
.palette-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.palette-dots .dot-red { background: #ef4444; }
.palette-dots .dot-yellow { background: #eab308; }
.palette-dots .dot-green { background: #22c55e; }
.palette-shortcut {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.command-palette-body {
  padding: 1rem 1.25rem;
}
.palette-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.palette-search-icon { font-size: 1.2rem; color: var(--stone-400); }
.palette-typed-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
  flex: 1;
  min-height: 1.5em;
}
.palette-typed-text .cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background: var(--orange);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.palette-results {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}
.palette-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.palette-result-item.highlighted {
  background: rgba(249,115,22,0.08);
}
.palette-result-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: white; flex-shrink: 0;
}
.palette-result-text { font-size: 0.95rem; font-weight: 500; }
.palette-result-hint { margin-left: auto; font-size: 0.8rem; color: var(--stone-400); }

/* Floating orbit icons */
.orbit-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  height: 0;
  pointer-events: none;
}
.orbit-icon {
  position: absolute;
  width: 44px; height: 44px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.orbit-icon:nth-child(1) { top: -80px; left: -30px; animation-delay: 0s; }
.orbit-icon:nth-child(2) { top: -60px; right: -30px; animation-delay: 1s; }
.orbit-icon:nth-child(3) { top: 20px; left: -50px; animation-delay: 2s; }
.orbit-icon:nth-child(4) { top: 20px; right: -50px; animation-delay: 3s; }
.orbit-icon:nth-child(5) { top: -30px; left: 50%; transform: translateX(-50%); animation-delay: 0.5s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.orbit-icon:nth-child(5) {
  animation: float5 6s ease-in-out 0.5s infinite;
}
@keyframes float5 {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}

/* --- Workflow Cards Section --- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-secondary); }
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}
.section-header h2 { margin-top: 0; }
.section-header p { color: var(--text-secondary); }
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

/* Workflow cards */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.workflow-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.workflow-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-3px);
}
.workflow-card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: white;
  margin-bottom: 1.25rem;
}
.workflow-card h3 { font-size: 1.2rem; margin-top: 0; margin-bottom: 0.5rem; }
.workflow-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.25rem; }
.workflow-steps {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.step-arrow { color: var(--orange); font-weight: 700; font-size: 0.85rem; }
.workflow-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* --- Stats Section --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}
.stat-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  margin-top: 1rem;
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  width: 0;
  transition: width 1.5s ease;
}

/* --- Guide Cards (featured) --- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.guide-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.guide-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.guide-card-header {
  padding: 2rem 1.5rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.guide-card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: white; flex-shrink: 0;
}
.guide-card-meta { flex: 1; }
.guide-card-meta h3 { font-size: 1.1rem; margin: 0 0 0.25rem; }
.guide-card-meta span { font-size: 0.8rem; color: var(--text-secondary); }
.guide-card-body { padding: 0 1.5rem 1.5rem; flex: 1; }
.guide-card-body p { font-size: 0.92rem; color: var(--text-secondary); }
.guide-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.guide-card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  background: rgba(249,115,22,0.08);
  color: var(--orange);
}

/* --- Newsletter Section --- */
.newsletter-section {
  background: linear-gradient(135deg, var(--plum) 0%, var(--plum-light) 100%);
  padding: 4rem 0;
  color: white;
}
.newsletter-section h2 { color: white; margin-top: 0; }
.newsletter-section p { color: rgba(255,255,255,0.8); }
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.3);
  color: white;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--orange);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border: 2px solid var(--orange);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--orange);
  color: white;
}

/* --- Guide Layout (Two-Column) --- */
.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}
.sidebar-toc {
  position: sticky;
  top: 84px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.sidebar-toc h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin: 0 0 1rem;
}
.sidebar-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-toc li {
  margin-bottom: 0.15rem;
}
.sidebar-toc a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition);
}
.sidebar-toc a:hover,
.sidebar-toc a.active {
  color: var(--orange);
  background: rgba(249,115,22,0.06);
  border-left-color: var(--orange);
}
.guide-content {
  min-width: 0;
}

/* Guide hero */
.guide-hero {
  padding: 3rem 0 1rem;
}
.guide-hero h1 { margin-bottom: 0.75rem; }
.guide-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.guide-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* --- Mac Terminal Code Blocks --- */
.code-block {
  background: var(--code-bg);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.code-block-header {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-dots .dot-r { background: #ef4444; }
.code-dots .dot-y { background: #eab308; }
.code-dots .dot-g { background: #22c55e; }
.code-block-title {
  margin-left: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-body);
}
.code-copy-btn {
  margin-left: auto;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.code-copy-btn:hover { background: rgba(255,255,255,0.15); color: white; }
.code-copy-btn.copied { color: #22c55e; }
.code-block pre {
  padding: 1rem 1.25rem;
  margin: 0;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--code-text);
}
.code-block code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* Inline code */
:not(pre) > code {
  background: var(--bg-tertiary);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--orange);
}

/* --- Keyboard Keys (3D Physical) --- */
kbd {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--stone-200) 100%);
  border: 1px solid var(--stone-300);
  border-bottom: 3px solid var(--stone-400);
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
  color: var(--charcoal);
  line-height: 1.4;
  white-space: nowrap;
}
[data-theme="dark"] kbd {
  background: linear-gradient(180deg, var(--charcoal-mid) 0%, var(--charcoal-light) 100%);
  border-color: var(--charcoal-mid);
  border-bottom-color: var(--stone-600);
  color: var(--cream);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* --- Tables --- */
.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.guide-content th, .guide-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.guide-content th {
  background: var(--bg-tertiary);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.85rem;
}
.guide-content tr:hover td { background: rgba(249,115,22,0.03); }

/* --- Callout / Tip Boxes --- */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border-left: 4px solid;
  display: flex;
  gap: 0.75rem;
}
.callout-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.callout-body { flex: 1; }
.callout-body p { margin: 0; font-size: 0.93rem; }
.callout-body p + p { margin-top: 0.5rem; }
.callout.tip { border-color: #22c55e; background: rgba(34,197,94,0.06); }
.callout.tip .callout-icon { color: #22c55e; }
.callout.warning { border-color: var(--amber); background: rgba(245,158,11,0.06); }
.callout.warning .callout-icon { color: var(--amber); }
.callout.info { border-color: #3b82f6; background: rgba(59,130,246,0.06); }
.callout.info .callout-icon { color: #3b82f6; }
.callout.important { border-color: #ef4444; background: rgba(239,68,68,0.06); }
.callout.important .callout-icon { color: #ef4444; }

/* --- Footer --- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col a:hover { color: var(--orange); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--orange); }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: all var(--transition);
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 1.25rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); flex: 1; }
.cookie-inner a { color: var(--orange); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.75rem; }
.cookie-btns button {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}
.cookie-accept {
  background: var(--orange);
  color: white;
  border: none;
}
.cookie-accept:hover { background: var(--orange-dark); }
.cookie-decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.cookie-decline:hover { border-color: var(--text-secondary); }

/* --- Contact Form --- */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* Response time cards */
.response-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.response-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}
.response-card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.response-card h4 { margin: 0 0 0.25rem; font-size: 1rem; }
.response-card p { margin: 0; font-size: 0.85rem; color: var(--text-secondary); }

/* --- Legal pages --- */
.legal-content { max-width: 800px; padding: 2.5rem 0 4rem; }
.legal-content h1 { margin-bottom: 0.5rem; }
.legal-content .legal-updated { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.4rem; }
.legal-content h3 { font-size: 1.15rem; }

/* --- About Page --- */
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.value-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.value-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.value-card h3 { margin-top: 0; font-size: 1.1rem; }
.value-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* Workflow diagram (about page) */
.workflow-diagram {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2.5rem 0;
  text-align: center;
}
.workflow-diagram-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.wd-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.wd-step-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: white;
}
.wd-step-label { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.wd-arrow { font-size: 1.5rem; color: var(--orange); padding-top: 0.5rem; }

/* --- Mobile Responsive --- */
@media (max-width: 991px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-toc {
    position: static;
    max-height: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    gap: 0;
    z-index: 999;
  }
  .nav-links.open a {
    padding: 0.75rem 1rem;
    width: 100%;
  }
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 3rem 0 2.5rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  body { font-size: 16px; }
  .command-palette { margin: 0 auto 2rem; }
  .orbit-icon { display: none; }
  .workflow-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.85rem; }
  .stats-grid { grid-template-columns: 1fr; }
}
