/* ============================================
   Ridgeline Cyber Defence — Training Platform
   Light theme matching ridgelinecyber.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

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

:root {
  --bg-page: #faf9f6;
  --bg-white: #ffffff;
  --bg-warm: #f5f3ef;
  --bg-dark: #1a2332;
  --bg-dark-light: #243044;
  --bg-code: #1e2a3a;
  --border: #e5e2dc;
  --border-light: #eceae5;
  --border-dark: #2d3d52;
  --text-primary: #1a2332;
  --text-body: #3d4a5c;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-light: #f1f5f9;
  --accent: #e86c3a;
  --accent-hover: #d4592a;
  --accent-subtle: rgba(232, 108, 58, 0.08);
  --blue: #3b82f6;
  --blue-subtle: rgba(59, 130, 246, 0.08);
  --green: #16a34a;
  --green-subtle: rgba(22, 163, 74, 0.08);
  --green-border: rgba(22, 163, 74, 0.2);
  --amber: #d97706;
  --amber-subtle: rgba(217, 119, 6, 0.08);
  --font-heading: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Fira Code', monospace;
  --sidebar-width: 280px;
  --header-height: 64px;
  --max-content: 740px;
  --radius: 8px;
  --radius-lg: 12px;
}

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(232, 108, 58, 0.2); }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

/* --- Header (matches ridgelinecyber.com) --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 100%;
}
.site-logo {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  color: var(--text-primary); text-decoration: none;
}
.site-logo:hover { text-decoration: none; color: var(--text-primary); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: var(--accent);
  color: #fff; font-weight: 700; font-size: 0.85rem; border-radius: 6px;
}
.logo-accent { color: var(--text-secondary); font-weight: 400; }
.logo-text { display: none; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: color 0.15s; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); text-decoration: none; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 0.875rem;
  border-radius: var(--radius); padding: 0.6rem 1.4rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(232, 108, 58, 0.25); color: #fff; }
.btn-outline { background: var(--bg-white); color: var(--text-primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text-secondary); background: var(--bg-warm); color: var(--text-primary); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* --- Layout --- */
.site-wrapper { display: flex; min-height: calc(100vh - var(--header-height)); }
.content { flex: 1; min-width: 0; max-width: var(--max-content); margin: 0 auto; padding: 2.5rem 2rem 4rem; }

/* --- HOMEPAGE --- */
.hero {
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 5rem 2rem 3.5rem;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-eyebrow { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 1.25rem; }
.hero h1 { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; line-height: 1.15; margin-bottom: 1.25rem; color: #fff; letter-spacing: -0.01em; }
.hero-sub { font-size: 1.05rem; color: #94a3b8; max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; }

/* Stats bar */
.stats-bar { background: var(--bg-dark-light); padding: 1rem 2rem; border-bottom: 1px solid var(--border-dark); }
.stats-inner { max-width: 800px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.stat { font-size: 0.82rem; color: #94a3b8; white-space: nowrap; }
.stat strong { color: #fff; font-weight: 700; }
.stat-sep { width: 1px; height: 16px; background: #3d5068; flex-shrink: 0; }

/* Why section */
.home-section { padding: 4rem 2rem; }
.home-section.alt-bg { background: var(--bg-warm); }
.section-inner { max-width: 960px; margin: 0 auto; }
.home-section h2 { font-family: var(--font-heading); text-align: center; margin-bottom: 0.5rem; color: var(--text-primary); font-size: 1.5rem; font-weight: 700; }
.section-sub { text-align: center; color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 540px; margin-left: auto; margin-right: auto; font-size: 0.92rem; line-height: 1.65; }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.value-card { padding: 1.75rem; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: box-shadow 0.2s; }
.value-card:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }
.value-icon { color: var(--accent); margin-bottom: 0.75rem; }
.value-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }

/* Module cards */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.module-card { display: block; padding: 1.5rem; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; color: var(--text-primary); transition: box-shadow 0.2s, transform 0.15s; }
.module-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); text-decoration: none; color: var(--text-primary); }
.module-card.free { border-left: 3px solid var(--green); }
.module-card.flagship { border-left: 3px solid var(--amber); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.card-number { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--bg-warm); font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); }
.card-tier-badge { padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.card-tier-badge.free { background: var(--green-subtle); color: var(--green); }
.card-tier-badge.paid { background: var(--blue-subtle); color: var(--blue); }
.module-card h3, .module-card h4 { font-size: 0.95rem; margin-bottom: 0.4rem; line-height: 1.35; color: var(--text-primary); }
.module-card p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.5rem; line-height: 1.55; }
.card-meta { font-size: 0.72rem; color: var(--text-muted); }
.card-badge { display: inline-block; background: var(--amber-subtle); color: var(--amber); font-size: 0.65rem; font-weight: 700; padding: 0.12rem 0.45rem; border-radius: 3px; margin-top: 0.5rem; }

/* Track cards */
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.track-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; transition: box-shadow 0.2s; }
.track-card:hover { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); }
.track-card.featured { border: 2px solid var(--accent); }
.track-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; width: fit-content; }
.track-badge.core { background: var(--accent-subtle); color: var(--accent); }
.track-badge.coming-soon { background: var(--amber-subtle); color: var(--amber); }
.track-badge.toolkit { background: var(--green-subtle); color: var(--green); }
.track-card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.track-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.25rem; flex: 1; }
.track-pricing { margin-bottom: 1rem; }
.track-price { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.track-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-secondary); }
.track-alt { font-size: 0.78rem; color: var(--text-muted); display: block; margin-top: 0.15rem; }
.track-card .btn { width: fit-content; }

/* CTA */
.cta-block { text-align: center; }
.cta-block p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; }
.cta-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.75rem; }

/* --- COURSES PAGE --- */
.courses-page { max-width: 960px; margin: 0 auto; padding: 0 2rem 4rem; }
.courses-hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.courses-hero h1 { font-family: var(--font-heading); font-size: 1.6rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.courses-hero p { color: var(--text-secondary); font-size: 0.92rem; }
.course-section { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.course-label { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--accent-subtle); color: var(--accent); margin-bottom: 0.5rem; }
.course-label.coming-soon { background: var(--amber-subtle); color: var(--amber); }
.course-label.toolkit { background: var(--green-subtle); color: var(--green); }
.course-header { margin-bottom: 2rem; }
.course-header h2 { font-family: var(--font-heading); font-size: 1.35rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.course-header p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; max-width: 680px; }
.course-pricing { margin-top: 1rem; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.price-main { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.price-period { font-size: 0.85rem; font-weight: 400; color: var(--text-secondary); }
.price-alt { font-size: 0.8rem; color: var(--text-muted); }
.phase-group { margin-bottom: 2rem; }
.phase-group h3 { font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; color: var(--text-primary); }
.phase-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.module-grid.compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.coming-soon-modules { background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.coming-soon-modules p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.kit-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.kit-pack { background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.kit-pack h4 { font-size: 0.9rem; color: var(--text-primary); margin-bottom: 0.35rem; }
.kit-pack p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.section-badge { display: inline-block; padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.section-badge.free { background: var(--green-subtle); color: var(--green); }
.section-badge.paid { background: var(--blue-subtle); color: var(--blue); }

/* Modules index */
.modules-hero { text-align: center; padding: 2.5rem 2rem 1.5rem; }
.modules-hero h1 { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.modules-hero p { color: var(--text-secondary); }
.module-group { padding: 1.5rem 2rem; max-width: 960px; margin: 0 auto; }
.group-header { margin-bottom: 1rem; }
.group-header h2 { font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; color: var(--text-primary); }
.group-header p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }
.modules-cta { text-align: center; padding: 3rem 2rem; max-width: 960px; margin: 0 auto; }
.modules-cta p { color: var(--text-secondary); margin-bottom: 1.25rem; }

/* --- MODULE SIDEBAR --- */
.module-sidebar {
  width: var(--sidebar-width); min-width: var(--sidebar-width);
  background: var(--bg-white); border-right: 1px solid var(--border);
  padding: 1.25rem 0; overflow-y: auto;
  position: sticky; top: var(--header-height); height: calc(100vh - var(--header-height));
}
.sidebar-header { padding: 0 1rem 0.75rem; border-bottom: 1px solid var(--border); margin-bottom: 0.75rem; }
.sidebar-header h3 { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.sidebar-section { margin-bottom: 1rem; }
.sidebar-section-title { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 1rem; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.module-list { list-style: none; }
.module-item a { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; color: var(--text-secondary); font-size: 0.8rem; text-decoration: none; transition: all 0.1s; border-left: 2px solid transparent; }
.module-item a:hover { background: var(--bg-warm); color: var(--text-primary); text-decoration: none; }
.module-item.active a { background: var(--accent-subtle); color: var(--accent); border-left-color: var(--accent); font-weight: 500; }
.module-number { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--bg-warm); font-size: 0.65rem; font-weight: 700; flex-shrink: 0; color: var(--text-muted); }
.module-item.active .module-number { background: var(--accent-subtle); color: var(--accent); }
.module-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module-time { font-size: 0.65rem; color: var(--text-muted); flex-shrink: 0; }
.sidebar-cta { margin: 1.25rem 1rem 0; padding: 1rem; background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.sidebar-cta p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.6rem; }

/* --- MODULE CONTENT --- */
.module-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.module-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.module-badge { padding: 0.15rem 0.55rem; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.module-badge.free { background: var(--green-subtle); color: var(--green); }
.module-badge.paid { background: var(--blue-subtle); color: var(--blue); }
.module-domain { font-size: 0.8rem; color: var(--text-muted); }
.module-duration { font-size: 0.8rem; color: var(--text-muted); }
.module-header h1 { font-family: var(--font-heading); font-size: 1.65rem; line-height: 1.3; margin-bottom: 0.6rem; color: var(--text-primary); font-weight: 700; }
.module-description { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; }

.learning-outcomes { background: var(--bg-warm); border: 1px solid var(--green-border); border-left: 3px solid var(--green); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.learning-outcomes h2 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); margin-bottom: 0.75rem; border: none; padding: 0; }
.learning-outcomes ul { padding-left: 1.25rem; margin: 0; }
.learning-outcomes li { font-size: 0.9rem; color: var(--text-body); margin-bottom: 0.35rem; line-height: 1.6; }
.learning-outcomes li::marker { color: var(--green); }

.sc200-objectives { background: var(--bg-warm); border: 1px solid rgba(59, 130, 246, 0.2); border-left: 3px solid var(--blue); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.sc200-objectives h3 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); margin-bottom: 0.5rem; }
.sc200-objectives ul { padding-left: 1.25rem; margin: 0; }
.sc200-objectives li { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.2rem; }
.sc200-objectives li::marker { color: var(--blue); }

/* --- PROSE --- */
.module-body { font-size: 1rem; line-height: 1.85; color: var(--text-body); }
.module-body > *:first-child { margin-top: 0; }
.module-body h2 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-top: 3rem; margin-bottom: 0.85rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
.module-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); margin-top: 2rem; margin-bottom: 0.5rem; }
.module-body h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-top: 1.5rem; margin-bottom: 0.4rem; }
.module-body p { margin-bottom: 1.25rem; }
.module-body ul, .module-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.module-body li { margin-bottom: 0.35rem; line-height: 1.75; }
.module-body li::marker { color: var(--text-muted); }
.module-body strong { color: var(--text-primary); font-weight: 600; }
.module-body a { text-underline-offset: 3px; }

/* Blockquotes */
.module-body blockquote { border-left: 3px solid var(--accent); background: var(--accent-subtle); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.92rem; }
.module-body blockquote p { margin-bottom: 0.5rem; }
.module-body blockquote p:last-child { margin-bottom: 0; }
.module-body blockquote strong { color: var(--accent); }

.module-body img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin: 1.5rem 0; }

/* Inline code */
.module-body code { font-family: var(--font-mono); font-size: 0.84em; background: var(--bg-warm); border: 1px solid var(--border); padding: 0.15rem 0.4rem; border-radius: 4px; color: var(--accent); font-weight: 500; }

/* Code blocks — dark for contrast */
.module-body pre { background: var(--bg-code) !important; border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 1.25rem 1.5rem; overflow-x: auto; margin: 1.5rem 0; font-size: 0.85rem; line-height: 1.7; }
.module-body pre code { background: none; border: none; padding: 0; font-size: inherit; color: #e2e8f0; font-weight: 400; white-space: pre; }
.highlight { position: relative; margin: 1.5rem 0; }
.highlight pre { margin: 0; border-radius: var(--radius); }
.highlight .lnt, .highlight .ln { color: #64748b; padding-right: 1.25rem; user-select: none; opacity: 0.5; }
.highlight table { width: 100%; border: none; margin: 0; }
.highlight table td { border: none; padding: 0; background: none; }
.highlight table tr:nth-child(even) { background: none; }

/* Tables */
.module-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.88rem; line-height: 1.6; }
.module-body th { background: var(--bg-warm); font-weight: 600; text-align: left; padding: 0.6rem 0.85rem; border: 1px solid var(--border); color: var(--text-primary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.module-body td { padding: 0.5rem 0.85rem; border: 1px solid var(--border); vertical-align: top; }
.module-body tr:nth-child(even) { background: var(--bg-warm); }
.module-body td code { font-size: 0.82em; }
.module-body hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

.module-nav { display: flex; justify-content: space-between; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); gap: 1rem; }
.module-nav a { font-size: 0.85rem; color: var(--accent); }
.module-downloads { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.module-downloads h2 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--text-primary); border: none; padding: 0; }
.download-card { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.5rem; }
.download-name { font-size: 0.88rem; }

/* --- SUBSCRIBE --- */
.subscribe-form-wrapper { margin: 2rem 0; }
.subscribe-form { display: flex; gap: 0.75rem; max-width: 480px; }
.subscribe-input { flex: 1; padding: 0.6rem 1rem; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: border-color 0.15s; }
.subscribe-input:focus { border-color: var(--accent); }
.subscribe-input::placeholder { color: var(--text-muted); }
.subscribe-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; }

/* --- MOBILE NAV --- */
.mobile-nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text-secondary); border-radius: 1px; transition: all 0.2s; }
.mobile-nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translateY(6px); }
.mobile-nav-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translateY(-6px); }
.mobile-nav { display: none; flex-direction: column; background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 0.5rem 2rem 1rem; }
.mobile-nav.open { display: flex; }
.mobile-nav-link { padding: 0.6rem 0; color: var(--text-secondary); font-size: 0.9rem; text-decoration: none; border-bottom: 1px solid var(--border-light); }
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--text-primary); text-decoration: none; }

/* --- FOOTER (dark, matches ridgelinecyber.com) --- */
.site-footer { background: var(--bg-dark); border-top: 1px solid var(--border-dark); padding: 3rem 2rem 1.5rem; margin-top: 2rem; color: #94a3b8; }
.footer-inner { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; gap: 3rem; }
.footer-logo { font-weight: 700; font-size: 0.9rem; color: #f1f5f9; margin-bottom: 0.3rem; }
.footer-tagline { font-size: 0.78rem; color: #64748b; max-width: 260px; line-height: 1.5; }
.footer-links { display: flex; gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-col h4 { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; margin-bottom: 0.3rem; }
.footer-col a { font-size: 0.8rem; color: #94a3b8; }
.footer-col a:hover { color: #f1f5f9; text-decoration: none; }
.footer-bottom { max-width: 960px; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid #2d3d52; }
.footer-bottom p { font-size: 0.72rem; color: #64748b; }

/* --- GENERAL PAGES --- */
.page-content { max-width: var(--max-content); margin: 0 auto; padding: 2.5rem 2rem; }
.page-content h1 { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.page-content h2 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-primary); margin-top: 2rem; margin-bottom: 0.75rem; }
.page-content h3 { font-size: 1rem; color: var(--text-primary); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.page-content p { color: var(--text-body); margin-bottom: 1rem; line-height: 1.75; }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content li { margin-bottom: 0.3rem; line-height: 1.7; color: var(--text-body); }
.page-content strong { color: var(--text-primary); }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) { .module-sidebar { width: 240px; min-width: 240px; } }
@media (max-width: 900px) {
  .module-sidebar { display: none; }
  .content { padding: 2rem 1.5rem 3rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .footer-links { gap: 2rem; }
  .module-body h2 { font-size: 1.15rem; margin-top: 2.5rem; }
  .module-body pre { padding: 1rem; font-size: 0.82rem; }
  .module-header h1 { font-size: 1.4rem; }
  .site-nav { display: none; }
  .header-actions { display: none; }
  .mobile-nav-toggle { display: flex; }
  .track-grid, .value-grid, .kit-packs { grid-template-columns: 1fr; }
  .course-pricing { flex-direction: column; gap: 0.25rem; }
  .subscribe-form { flex-direction: column; }
  .logo-text { display: inline; }
}
@media (max-width: 600px) {
  .content { padding: 1.5rem 1rem 2.5rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .module-header h1 { font-size: 1.25rem; }
  .module-body { font-size: 0.95rem; }
  .module-body table { font-size: 0.82rem; }
  .module-body th, .module-body td { padding: 0.4rem 0.6rem; }
  .module-body pre { margin-left: -1rem; margin-right: -1rem; border-radius: 0; }
  .module-grid, .module-grid.compact { grid-template-columns: 1fr; }
  .courses-page { padding: 0 1.25rem 3rem; }
  .header-inner { padding: 0 1.25rem; }
  .stats-inner { gap: 0.75rem; }
  .stat-sep { display: none; }
}
