/* ===== Philosophy Guide — Shared Styles ===== */
/* Uses site CSS custom properties: --bg, --fg, --muted, --brand, --brand-2, --card, --border, --ok, --gradient */

:root {
  --bg: #ffffff;
  --fg: #0d0f13;
  --muted: #64748b;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --card: #f8fafc;
  --border: #e2e8f0;
  --ok: #10b981;
  --warn: #f59e0b;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
}
[data-theme="dark"] {
  --bg: #0a0a0f;
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --brand: #818cf8;
  --brand-2: #22d3ee;
  --card: #151520;
  --border: #1e293b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px) saturate(1.5);
  background: color-mix(in oklab, var(--bg), transparent 15%);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 800; font-size: 1.1rem; color: var(--fg); }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--gradient); }
.nav-links { display: flex; align-items: center; gap: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s; cursor: pointer;
}
.btn:hover { background: var(--card); text-decoration: none; }
.btn-primary { background: var(--brand); color: white; border-color: var(--brand); }
.btn-primary:hover { filter: brightness(1.1); text-decoration: none; }
.btn-active { background: var(--brand); color: white; border-color: var(--brand); }
.switch {
  cursor: pointer; border: 1px solid var(--border); border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.switch span { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); }
.hamburger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); align-items: center; justify-content: center; cursor: pointer; }
.hamburger svg { width: 24px; height: 24px; }
.mobile-menu {
  position: fixed; inset: 60px 0 auto 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: translateY(-10px); opacity: 0; pointer-events: none;
  transition: all 0.2s; z-index: 99;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu .menu-inner { padding: 1rem; display: grid; gap: 0.5rem; }
.mobile-menu a { display: block; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-weight: 600; text-align: center; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding: 1rem 0; font-size: 0.9rem; color: var(--muted);
}
.breadcrumb a { color: var(--brand); font-weight: 500; }
.breadcrumb .sep { color: var(--muted); opacity: 0.5; }

/* ===== Hero ===== */
.phil-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand), transparent 96%) 0%, var(--bg) 100%);
}
.phil-hero-content { text-align: center; max-width: 700px; margin: 0 auto; }
.phil-hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 50px;
  background: color-mix(in oklab, var(--brand), transparent 90%);
  color: var(--brand); font-weight: 600; font-size: 0.85rem;
  margin-bottom: 1.25rem;
}
.phil-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.1; margin: 0 0 1rem;
}
.phil-hero h1 .gradient {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.phil-hero-sub { color: var(--muted); font-size: 1.1rem; margin: 0 0 2rem; }

/* ===== Hero Video ===== */
.phil-hero-video {
  max-width: 800px;
  margin: 0 auto 2rem;
}
.phil-hero-video-inner {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.phil-hero-video-inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.phil-hero-video-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

/* ===== Stats Bar ===== */
.phil-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; max-width: 700px; margin: 0 auto 1.5rem;
}
.phil-stat {
  text-align: center; padding: 1rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
}
.phil-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.phil-stat-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
@media (max-width: 600px) {
  .phil-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Progress Bar ===== */
.phil-progress-wrap {
  max-width: 500px; margin: 0 auto;
  text-align: center;
}
.phil-progress-label {
  font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; font-weight: 600;
}
.phil-progress-bar {
  width: 100%; height: 10px; border-radius: 99px;
  background: var(--border); overflow: hidden;
}
.phil-progress-fill {
  height: 100%; border-radius: 99px;
  background: var(--gradient);
  transition: width 0.5s ease;
}
.phil-progress-pct {
  font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem;
}

/* ===== Prose Content Blocks ===== */
.phil-prose {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--fg);
}
.phil-prose p {
  margin: 0 0 1.25rem;
}
.phil-prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--brand);
}
.phil-prose ul {
  margin: 0.75rem 0 1.5rem;
  padding-left: 1.5rem;
}
.phil-prose ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.phil-prose strong {
  color: var(--fg);
  font-weight: 700;
}
.phil-prose em {
  font-style: italic;
  color: var(--muted);
}
.phil-prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in oklab, var(--brand), transparent 60%);
}
.phil-prose a:hover {
  text-decoration-color: var(--brand);
}

/* ===== Section Nav (sticky) ===== */
.phil-section-nav {
  position: sticky; top: 60px; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.phil-section-nav::-webkit-scrollbar { display: none; }
.phil-section-nav-inner {
  display: flex; gap: 0.25rem;
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  white-space: nowrap;
}
.phil-section-nav a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--muted); background: transparent;
  transition: all 0.2s; white-space: nowrap;
}
.phil-section-nav a:hover { background: var(--card); color: var(--fg); text-decoration: none; }
.phil-section-nav a.active { background: color-mix(in oklab, var(--brand), transparent 88%); color: var(--brand); }

/* ===== Sections ===== */
.phil-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 120px;
}
.phil-section:first-of-type { border-top: none; }
.phil-section-header {
  max-width: 780px;
  margin: 0 auto 2rem;
}
.phil-section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; margin: 0 0 0.5rem;
}
.phil-section-header p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ===== Card Grid ===== */
.phil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.phil-grid-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.phil-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 600px) {
  .phil-grid, .phil-grid-2, .phil-grid-3 { grid-template-columns: 1fr; }
}

/* ===== Cards ===== */
.phil-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.phil-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--brand);
}
.phil-card-icon {
  font-size: 2rem; margin-bottom: 0.75rem;
}
.phil-card h3 {
  font-size: 1.15rem; font-weight: 700; margin: 0 0 0.5rem;
}
.phil-card p {
  color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; line-height: 1.6;
}
.phil-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.phil-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--border);
  margin-top: auto;
}
.phil-card-link {
  font-weight: 600; font-size: 0.9rem; color: var(--brand);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.phil-card-link:hover { text-decoration: underline; }

/* Featured Card (larger) */
.phil-card-featured {
  border-left: 4px solid var(--brand);
  background: linear-gradient(135deg, color-mix(in oklab, var(--brand), transparent 96%), var(--card));
}

/* ===== Nav Card (landing page category navigation) ===== */
.phil-nav-card {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 160px; cursor: pointer;
}
.phil-nav-card .phil-card-count {
  font-size: 0.85rem; color: var(--muted); font-weight: 500;
}

/* ===== Badges ===== */
.phil-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.65rem; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600;
  background: color-mix(in oklab, var(--brand), transparent 88%);
  color: var(--brand);
}
.phil-badge-magazine { background: color-mix(in oklab, #f59e0b, transparent 85%); color: #b45309; }
.phil-badge-peer-reviewed { background: color-mix(in oklab, #10b981, transparent 85%); color: #047857; }
.phil-badge-conference { background: color-mix(in oklab, #8b5cf6, transparent 85%); color: #6d28d9; }
.phil-badge-reference { background: color-mix(in oklab, #06b6d4, transparent 85%); color: #0e7490; }
.phil-badge-podcast { background: color-mix(in oklab, #f97316, transparent 85%); color: #c2410c; }
.phil-badge-video { background: color-mix(in oklab, #ef4444, transparent 85%); color: #b91c1c; }
.phil-badge-beginner { background: color-mix(in oklab, #10b981, transparent 85%); color: #047857; }
.phil-badge-intermediate { background: color-mix(in oklab, #f59e0b, transparent 85%); color: #b45309; }
.phil-badge-advanced { background: color-mix(in oklab, #ef4444, transparent 85%); color: #b91c1c; }
.phil-badge-primary { background: color-mix(in oklab, var(--brand), transparent 85%); color: var(--brand); }

[data-theme="dark"] .phil-badge-magazine { background: rgba(245,158,11,0.15); color: #fbbf24; }
[data-theme="dark"] .phil-badge-peer-reviewed { background: rgba(16,185,129,0.15); color: #34d399; }
[data-theme="dark"] .phil-badge-conference { background: rgba(139,92,246,0.15); color: #a78bfa; }
[data-theme="dark"] .phil-badge-reference { background: rgba(6,182,212,0.15); color: #22d3ee; }
[data-theme="dark"] .phil-badge-podcast { background: rgba(249,115,22,0.15); color: #fb923c; }
[data-theme="dark"] .phil-badge-video { background: rgba(239,68,68,0.15); color: #f87171; }
[data-theme="dark"] .phil-badge-beginner { background: rgba(16,185,129,0.15); color: #34d399; }
[data-theme="dark"] .phil-badge-intermediate { background: rgba(245,158,11,0.15); color: #fbbf24; }
[data-theme="dark"] .phil-badge-advanced { background: rgba(239,68,68,0.15); color: #f87171; }

/* ===== Tags ===== */
.phil-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.phil-tag {
  padding: 0.15rem 0.5rem; border-radius: 4px;
  font-size: 0.7rem; font-weight: 500;
  background: var(--border); color: var(--muted);
}

/* ===== Filter Bar ===== */
.phil-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.phil-filter-btn {
  padding: 0.45rem 1rem; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg); color: var(--muted);
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer; transition: all 0.2s;
}
.phil-filter-btn:hover { border-color: var(--brand); color: var(--fg); }
.phil-filter-btn.active {
  background: color-mix(in oklab, var(--brand), transparent 88%);
  color: var(--brand); border-color: var(--brand);
}

/* ===== Mark as Read Button ===== */
.phil-mark-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg); color: var(--muted);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.phil-mark-btn:hover { border-color: var(--ok); color: var(--ok); }
.phil-mark-btn.marked {
  background: color-mix(in oklab, var(--ok), transparent 88%);
  color: var(--ok); border-color: var(--ok);
}
.phil-mark-btn .check { display: none; }
.phil-mark-btn.marked .check { display: inline; }
.phil-mark-btn.marked .uncheck { display: none; }

/* ===== Learning Path Cards ===== */
.phil-path-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.phil-path-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--brand);
}
.phil-path-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.phil-path-icon { font-size: 1.75rem; }
.phil-path-title { font-size: 1.15rem; font-weight: 700; }
.phil-path-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.phil-path-progress {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
}
.phil-path-bar {
  flex: 1; height: 6px; border-radius: 99px;
  background: var(--border); overflow: hidden;
}
.phil-path-bar-fill {
  height: 100%; border-radius: 99px;
  background: var(--gradient);
  transition: width 0.4s ease;
}
.phil-path-count { font-size: 0.8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.phil-path-steps { list-style: none; padding: 0; margin: 0 0 1rem; }
.phil-path-step {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--fg);
}
.phil-path-step:last-child { border-bottom: none; }
.phil-path-step-icon {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; flex-shrink: 0;
  transition: all 0.2s;
}
.phil-path-step.done .phil-path-step-icon {
  background: var(--ok); border-color: var(--ok); color: white;
}
.phil-path-step.done { color: var(--muted); }
.phil-path-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 8px;
  background: var(--brand); color: white;
  font-weight: 600; font-size: 0.9rem;
  border: none; cursor: pointer; transition: all 0.2s;
}
.phil-path-cta:hover { filter: brightness(1.1); text-decoration: none; color: white; }

/* ===== Founder Page ===== */
.phil-bio-section {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.phil-bio-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
}
.phil-bio-card h3 {
  font-size: 1.3rem; font-weight: 700; margin: 0 0 1rem;
  color: var(--brand);
}
.phil-bio-card p { color: var(--muted); margin: 0 0 1rem; line-height: 1.7; }
.phil-bio-card ul { padding-left: 1.5rem; margin: 0; }
.phil-bio-card li { margin-bottom: 0.5rem; color: var(--muted); line-height: 1.6; }

/* Pillar Cards */
.phil-pillar-card {
  background: linear-gradient(135deg, color-mix(in oklab, var(--brand), transparent 94%), color-mix(in oklab, var(--brand-2), transparent 94%));
  border: 1px solid color-mix(in oklab, var(--brand), transparent 75%);
  border-radius: 16px; padding: 1.5rem; text-align: center;
}
.phil-pillar-card h4 {
  font-size: 1.1rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--brand);
}
.phil-pillar-card p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Timeline */
.phil-timeline {
  position: relative; padding-left: 2rem;
  border-left: 3px solid var(--brand); margin: 2rem 0;
}
.phil-timeline-item {
  position: relative; padding: 0 0 2rem 1rem;
}
.phil-timeline-item:last-child { padding-bottom: 0; }
.phil-timeline-item::before {
  content: ''; position: absolute; left: -2.35rem; top: 0.4rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); border: 2px solid var(--bg);
}
.phil-timeline-item h4 {
  font-size: 1rem; font-weight: 700; margin: 0 0 0.35rem; color: var(--brand);
}
.phil-timeline-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ===== Thought Leader Profile ===== */
.phil-profile-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}
.phil-profile-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.phil-profile-name { font-size: 1.1rem; font-weight: 700; margin: 0; }
.phil-profile-role { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ===== Organization Region Header ===== */
.phil-region-header {
  font-size: 1.15rem; font-weight: 700;
  padding-bottom: 0.5rem; margin: 2rem 0 1rem;
  border-bottom: 2px solid var(--brand);
  color: var(--fg);
}
.phil-region-header:first-of-type { margin-top: 0; }

/* ===== Dashboard ===== */
.phil-dashboard {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.phil-dashboard-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
}
.phil-dashboard-card h3 {
  font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem;
}
@media (max-width: 700px) {
  .phil-dashboard { grid-template-columns: 1fr; }
}

/* Recent items scroll */
.phil-recent-scroll {
  display: flex; gap: 1rem; overflow-x: auto;
  padding-bottom: 0.5rem; scrollbar-width: thin;
}
.phil-recent-item {
  min-width: 200px; padding: 1rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; font-size: 0.85rem; flex-shrink: 0;
}
.phil-recent-item-title { font-weight: 600; margin-bottom: 0.25rem; }
.phil-recent-item-type { font-size: 0.75rem; color: var(--muted); }

/* Suggestions */
.phil-suggestion-list { list-style: none; padding: 0; margin: 0; }
.phil-suggestion-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.phil-suggestion-item:last-child { border-bottom: none; }
.phil-suggestion-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: color-mix(in oklab, var(--brand), transparent 88%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}

/* ===== Empty State ===== */
.phil-empty {
  text-align: center; padding: 3rem 1rem; color: var(--muted);
}
.phil-empty p { font-size: 1rem; }

/* ===== Footer ===== */
.phil-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0; margin-top: 3rem;
  text-align: center; color: var(--muted); font-size: 0.9rem;
}
.phil-footer a { color: var(--brand); }

/* ===== FAQ Accordion ===== */
.phil-faq {
  margin-top: 3rem; padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.phil-faq-header {
  display: flex; align-items: center; gap: 0.75rem;
  max-width: 780px; margin: 0 auto 2rem;
}
.phil-faq-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0;
}
.phil-faq-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: color-mix(in oklab, var(--brand), transparent 88%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.phil-faq-icon svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; }
.phil-faq-list { list-style: none; padding: 0; margin: 0 auto; max-width: 780px; }
.phil-faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 0.75rem; overflow: hidden;
  transition: border-color 0.2s;
}
.phil-faq-item:hover { border-color: color-mix(in oklab, var(--brand), transparent 50%); }
.phil-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; cursor: pointer;
  font-weight: 600; font-size: 1rem; color: var(--fg);
  background: var(--card); border: none; width: 100%; text-align: left;
  transition: background 0.2s;
}
.phil-faq-q:hover { background: color-mix(in oklab, var(--brand), transparent 96%); }
.phil-faq-q .phil-faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform 0.3s ease; stroke: var(--muted);
}
.phil-faq-item.open .phil-faq-q .phil-faq-chevron { transform: rotate(180deg); }
.phil-faq-item.open .phil-faq-q { color: var(--brand); }
.phil-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.phil-faq-item.open .phil-faq-a {
  max-height: 500px;
}
.phil-faq-a-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted); line-height: 1.7; font-size: 0.95rem;
}
.phil-faq-a-inner a { color: var(--brand); font-weight: 500; }
.phil-faq-a-inner ul { padding-left: 1.5rem; margin: 0.5rem 0; }
.phil-faq-a-inner li { margin-bottom: 0.35rem; }

/* ===== Interlink / Related Content Sections ===== */
.phil-interlinks {
  margin-top: 3rem; padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.phil-interlinks-header {
  display: flex; align-items: center; gap: 0.75rem;
  max-width: 780px; margin: 0 auto 1.5rem;
}
.phil-interlinks-header h2 {
  font-size: 1.5rem; font-weight: 800; margin: 0;
}
.phil-interlink-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: color-mix(in oklab, var(--brand-2), transparent 88%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.phil-interlink-icon svg { width: 20px; height: 20px; stroke: var(--brand-2); fill: none; }
.phil-interlink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.phil-interlink-card {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.25rem; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none; color: inherit;
  transition: all 0.2s;
}
.phil-interlink-card:hover {
  border-color: var(--brand); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06); text-decoration: none;
}
.phil-interlink-card-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
  background: color-mix(in oklab, var(--brand), transparent 90%);
}
.phil-interlink-card-icon.enc { background: color-mix(in oklab, #8b5cf6, transparent 88%); }
.phil-interlink-card-icon.vid { background: color-mix(in oklab, #ef4444, transparent 88%); }
.phil-interlink-card-icon.prac { background: color-mix(in oklab, #10b981, transparent 88%); }
.phil-interlink-card-icon.blog { background: color-mix(in oklab, #f59e0b, transparent 88%); }
.phil-interlink-card-icon.seg { background: color-mix(in oklab, #06b6d4, transparent 88%); }
.phil-interlink-card h4 {
  font-size: 0.9rem; font-weight: 600; margin: 0 0 0.15rem; color: var(--fg);
}
.phil-interlink-card p {
  font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.4;
}

/* ===== Section Visual Dividers ===== */
.phil-section-divider {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
}
.phil-section-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--gradient);
}
.phil-section-icon svg { width: 24px; height: 24px; stroke: white; fill: none; stroke-width: 2; }
.phil-section-icon.alt { background: linear-gradient(135deg, var(--brand-2) 0%, #4f46e5 100%); }

/* ===== Visual Card Decorations ===== */
.phil-card-decorated::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient); border-radius: 16px 16px 0 0;
}
.phil-card-glow {
  box-shadow: 0 0 0 1px var(--border), 0 4px 24px rgba(79,70,229,0.08);
}

/* ===== Stat Icons ===== */
.phil-stat-icon {
  width: 32px; height: 32px; border-radius: 8px; margin: 0 auto 0.5rem;
  display: flex; align-items: center; justify-content: center;
}
.phil-stat-icon svg { width: 18px; height: 18px; stroke: var(--brand); fill: none; }

/* ===== Pillar Card Visual Enhancement ===== */
.phil-pillar-card .phil-pillar-icon {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 0.75rem;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--brand), transparent 82%);
}
.phil-pillar-card .phil-pillar-icon svg {
  width: 24px; height: 24px; stroke: var(--brand); fill: none;
}

/* ===== Animations ===== */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.phil-card, .phil-path-card { animation: fadeIn 0.3s ease; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .phil-interlink-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .phil-hero h1 { font-size: 1.75rem; }
  .phil-section { padding: 2rem 0; }
  .phil-card { padding: 1.25rem; }
  .phil-path-card { padding: 1.25rem; }
  .phil-faq-q { padding: 1rem; font-size: 0.95rem; }
  .phil-faq-a-inner { padding: 0 1rem 1rem; }
}
