/* ============================================================
   WPS AI — Global Stylesheet
   Design System: Clean, modern SaaS aesthetic
   Color tokens, typography, components, responsive
   ============================================================ */

/* --- Tokens --- */
:root {
  /* Primary palette */
  --purple-50: #EEEDFE; --purple-100: #CECBF6; --purple-200: #AFA9EC;
  --purple-400: #7F77DD; --purple-600: #534AB7; --purple-800: #3C3489; --purple-900: #26215C;
  --teal-50: #E1F5EE; --teal-100: #9FE1CB; --teal-200: #5DCAA5;
  --teal-400: #1D9E75; --teal-600: #0F6E56; --teal-800: #085041;
  --coral-50: #FAECE7; --coral-100: #F5C4B3; --coral-200: #F0997B;
  --coral-400: #D85A30; --coral-600: #993C1D; --coral-800: #712B13;
  --amber-50: #FAEEDA; --amber-100: #FAC775; --amber-200: #EF9F27;
  --amber-400: #BA7517; --amber-600: #854F0B; --amber-800: #633806;
  --blue-50: #E6F1FB; --blue-100: #B5D4F4; --blue-200: #85B7EB;
  --blue-400: #378ADD; --blue-600: #185FA5; --blue-800: #0C447C;
  --pink-50: #FBEAF0; --pink-400: #D4537E; --pink-600: #993556;

  --gray-50: #F1EFE8; --gray-100: #D3D1C7; --gray-200: #B4B2A9;
  --gray-400: #888780; --gray-600: #5F5E5A; --gray-800: #444441; --gray-900: #2C2C2A;

  /* Semantic */
  --bg: #FAFBFC; --surface: #FFFFFF;
  --text: #1A202C; --text-secondary: #4A5568; --text-muted: #A0AEC0;
  --border: #E2E8F0; --border-hover: #CBD5E0;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --transition: .15s ease;

  /* Layout */
  --nav-height: 60px;
  --max-width: 1160px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Noto Sans', sans-serif;
  color: var(--text); background: var(--bg);
  line-height: 1.65; font-size: 14px; min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple-800); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; font-size: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Utility --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.flex { display: flex; }
.grid { display: grid; }

/* --- Typography --- */
h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.25; letter-spacing: -.03em; }
h2 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 600; line-height: 1.3; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
h4 { font-size: 16px; font-weight: 600; line-height: 1.4; }

/* ============================================================
   NAVIGATION — Top Bar + Mega Menu
   ============================================================ */
.nav-wrapper {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-top {
  display: flex; align-items: center; height: var(--nav-height);
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  font-size: 18px; font-weight: 700; color: var(--purple-600);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  margin-right: 8px; flex-shrink: 0;
}
.nav-logo svg { width: 26px; height: 26px; }
.nav-logo:hover { color: var(--purple-800); }
.nav-links { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav-link {
  display: flex; align-items: center; height: 100%;
  padding: 0 16px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); transition: all var(--transition);
  border-bottom: 2px solid transparent; position: relative;
}
.nav-link:hover { color: var(--text); background: var(--purple-50); }
.nav-link.active { color: var(--purple-600); border-bottom-color: var(--purple-600); }
.nav-link.has-mega { padding-right: 20px; }
.nav-link.has-mega::after {
  content: ''; width: 5px; height: 5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 6px; transition: transform .15s;
}
.nav-link.has-mega:hover::after { transform: rotate(-135deg) translateY(-2px); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-text {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--radius-sm); transition: all var(--transition);
}
.btn-text:hover { background: var(--gray-50); color: var(--text); }
.btn-primary {
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  background: var(--purple-600); color: #fff; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--purple-800); color: #fff; }

/* Mega Menu */
.mega-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md); z-index: 999;
}
.mega-menu.show { display: block; animation: fadeSlideDown .18s ease; }
@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.mega-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  max-width: var(--max-width); margin: 0 auto; padding: 22px 24px;
}
.mc-col { padding: 0 16px; border-right: 1px solid #EDEDF4; }
.mc-col:last-child { border-right: none; }
.mc-head { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.mc-sub { font-size: 11.5px; color: var(--text-muted); margin-bottom: 12px; }
.mc-link {
  display: block; padding: 3.5px 0; font-size: 12.5px; color: var(--text-secondary);
  transition: color .1s;
}
.mc-link:hover { color: var(--purple-600); }
.mc-link.hot { font-weight: 500; }
.mc-link.dim { color: var(--text-muted); }
.mc-more {
  display: block; padding: 8px 0 2px; font-size: 11.5px; font-weight: 600;
  color: var(--purple-600);
}
.hot-badge {
  display: inline-block; background: var(--pink-50); color: var(--pink-600);
  font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 3px;
  margin-left: 4px; vertical-align: 1px;
}
/* Product category colors */
.c-pdf { color: var(--coral-600); } .c-doc { color: var(--teal-600); }
.c-ppt { color: var(--amber-600); } .c-sheet { color: var(--blue-600); } .c-ai { color: var(--pink-600); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-muted); padding: 16px 0 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--purple-600); }
.breadcrumb .sep { opacity: .4; font-size: 10px; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--gray-900); color: var(--gray-200); margin-top: auto; }
.footer-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
  max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 32px;
}
.footer-col h5 {
  font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 14px;
}
.footer-col a {
  display: block; padding: 3.5px 0; font-size: 12.5px; color: var(--gray-400); transition: color .1s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  max-width: var(--max-width); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--gray-400);
}

/* ============================================================
   PAGE LAYOUTS
   ============================================================ */

/* Main content area */
.main { flex: 1; padding-top: 20px; padding-bottom: 40px; }

/* Hero section (home page) */
.hero {
  text-align: center; padding: 60px 24px 48px;
  background: linear-gradient(135deg, var(--purple-50) 0%, var(--blue-50) 100%);
}
.hero h1 { margin-bottom: 12px; }
.hero p { font-size: 17px; color: var(--text-secondary); max-width: 640px; margin: 0 auto 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Tool page layout */
.tool-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.tool-main { min-width: 0; }
.tool-sidebar { position: sticky; top: calc(var(--nav-height) + 16px); }

/* Guide/Article layout with sidebar */
.article-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.article-sidebar { position: sticky; top: calc(var(--nav-height) + 16px); }

/* Hub page tool cards */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px; transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.card-h { height: 100%; display: flex; flex-direction: column; }

/* Tool card for hub pages */
.tool-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px; transition: all var(--transition);
  display: flex; flex-direction: column; cursor: pointer;
}
.tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--purple-200); }
.tool-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
  font-size: 20px;
}
.tool-card h4 { font-size: 14.5px; margin-bottom: 4px; }
.tool-card p { font-size: 12.5px; color: var(--text-secondary); flex: 1; }
.tool-card .badge-vol {
  display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 500;
  padding: 2px 8px; border-radius: 4px;
}

/* Buttons */
.btn-lg {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; font-size: 15px; font-weight: 600;
  border-radius: var(--radius-md); transition: all var(--transition);
}
.btn-purple { background: var(--purple-600); color: #fff; }
.btn-purple:hover { background: var(--purple-800); color: #fff; }
.btn-outline {
  border: 1.5px solid var(--border); background: transparent; color: var(--text);
}
.btn-outline:hover { border-color: var(--purple-400); color: var(--purple-600); background: var(--purple-50); }

/* Tags / Badges */
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.tag-pdf { background: var(--coral-50); color: var(--coral-600); }
.tag-doc { background: var(--teal-50); color: var(--teal-600); }
.tag-ppt { background: var(--amber-50); color: var(--amber-600); }
.tag-sheet { background: var(--blue-50); color: var(--blue-600); }
.tag-ai { background: var(--pink-50); color: var(--pink-600); }

/* Upload area (PDF tools) */
.upload-zone {
  border: 2px dashed var(--border-hover); border-radius: var(--radius-lg);
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--surface);
  position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--purple-400); background: var(--purple-50);
}
.upload-zone-icon { font-size: 40px; margin-bottom: 12px; opacity: .6; }
.upload-zone p { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }
.upload-zone .hint { font-size: 12.5px; color: var(--text-muted); }

/* Feature list on tool pages */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 0;
  font-size: 13.5px; color: var(--text-secondary);
}
.feature-item svg { flex-shrink: 0; margin-top: 2px; color: var(--teal-400); }

/* FAQ section */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--purple-600); }
.faq-q .faq-arrow { transition: transform .2s; }
.faq-item.open .faq-q .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  font-size: 13.5px; color: var(--text-secondary); line-height: 1.7;
  padding: 0 0;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 0 16px; }

/* Related Tools section */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.related-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 13px; color: var(--text-secondary);
  transition: all var(--transition); text-decoration: none;
}
.related-item:hover { border-color: var(--purple-200); color: var(--purple-600); background: var(--purple-50); }

/* Scenario Tab Navigator (template sub-pages) */
.scenario-nav {
  display: flex; gap: 0; overflow-x: auto; padding-bottom: 8px;
  border-bottom: 1px solid var(--border); margin-bottom: 20px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.scenario-nav::-webkit-scrollbar { display: none; }
.stab {
  padding: 9px 18px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); white-space: nowrap; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s;
}
.stab:hover { color: var(--text); }
.stab.active { color: var(--purple-600); border-bottom-color: var(--purple-600); }

/* Article Sidebar */
.aside-nav-title { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.aside-link {
  display: block; padding: 5px 0 5px 14px; font-size: 13px; color: var(--text-secondary);
  border-left: 2px solid transparent; transition: all .1s;
}
.aside-link:hover { color: var(--purple-600); }
.aside-link.active { color: var(--purple-600); border-left-color: var(--purple-600); font-weight: 500; }

/* Template grid cards */
.template-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; transition: all var(--transition); cursor: pointer;
}
.template-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.template-thumb {
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--text-muted);
}
.template-info { padding: 12px 14px; }
.template-info h4 { font-size: 13.5px; margin-bottom: 2px; }
.template-info p { font-size: 12px; color: var(--text-muted); }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--purple-600); }
.stat-label { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }

/* Pricing table */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; }
.pricing-card.featured { border: 2px solid var(--purple-400); position: relative; }
.pricing-card .plan-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pricing-card .plan-price { font-size: 36px; font-weight: 700; color: var(--purple-600); }
.pricing-card .plan-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.pricing-card .plan-features { list-style: none; margin: 20px 0; text-align: left; font-size: 13.5px; color: var(--text-secondary); }
.pricing-card .plan-features li { padding: 6px 0; display: flex; align-items: center; gap: 8px; }

/* Progress bar simulation */
.progress-bar { width: 100%; height: 8px; background: var(--gray-100); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--purple-400), var(--teal-400)); border-radius: 4px; transition: width .4s ease; width: 0; }

/* File list in uploader */
.file-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 10px; }
.file-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--coral-50); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.file-name { flex: 1; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 12px; color: var(--text-muted); }
.file-status { font-size: 12px; font-weight: 500; }

/* AI Writer textarea area */
.ai-input-area {
  width: 100%; min-height: 160px; padding: 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: 14px; resize: vertical;
  outline: none; transition: border-color var(--transition);
  font-family: inherit; line-height: 1.6;
}
.ai-input-area:focus { border-color: var(--purple-400); }
.ai-output-area {
  min-height: 160px; padding: 16px; background: var(--gray-50);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 14px; line-height: 1.7; white-space: pre-wrap;
}

/* QR Generator input */
.qr-input { width: 100%; max-width: 360px; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: 15px; outline: none; transition: border-color var(--transition); }
.qr-input:focus { border-color: var(--purple-400); }
.qr-display {
  margin-top: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); display: inline-block;
}

/* Section heading */
.section-header { margin-bottom: 24px; }
.section-header h2 { margin-bottom: 6px; }
.section-header p { color: var(--text-secondary); font-size: 14px; }

/* Language switcher (top right of nav) */
.lang-switcher {
  display: flex; align-items: center; gap: 4px; padding: 4px 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-secondary); cursor: pointer;
  background: var(--surface); transition: all var(--transition);
}
.lang-switcher:hover { border-color: var(--purple-200); color: var(--purple-600); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-sidebar { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .mega-grid { grid-template-columns: 1fr 1fr; padding: 18px 20px; }
  .mc-col { border-right: none !important; border-bottom: 1px solid #EDEDF4; padding-bottom: 14px; }
  .mc-col:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .feature-list { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; } /* Simplified nav for mobile */
  .hero { padding: 36px 16px 32px; }
  .hub-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .nav-top { padding: 0 16px; }
  .container { padding: 0 16px; }
}

/* ============================================================
   COMPONENT STYLES (matching components.js class names)
   ============================================================ */

/* --- Nav (components.js Nav.render) --- */
#wps-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; height: var(--nav-height);
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px; gap: 4px;
}
.nav-logo { display:flex; align-items:center; gap:8px; margin-right:16px; flex-shrink:0; }
.nav-logo svg { width:88px; height:24px; }
.nav-links { display:flex; align-items:center; height:100%; gap:2px; flex:1; }
.nav-item { position:relative; height:100%; display:flex; align-items:center; }
.nav-link {
  display:flex; align-items:center; gap:5px; padding:0 14px; height:100%;
  font-size:14px; font-weight:500; color:var(--text-secondary);
  transition:color var(--transition); white-space:nowrap;
}
.nav-link:hover { color:var(--text); }
.nav-link--btn {
  background:none; border:none; cursor:pointer;
  display:flex; align-items:center; gap:5px; padding:0 14px; height:100%;
  font-size:14px; font-weight:500; color:var(--text-secondary);
  transition:color var(--transition);
}
.nav-link--btn:hover { color:var(--text); }
.nav-link--btn[aria-expanded="true"] { color:var(--purple-600); }
.nav-actions { margin-left:auto; display:flex; align-items:center; gap:8px; }
.nav-lang-btn {
  display:flex; align-items:center; gap:5px; padding:5px 10px;
  border:1px solid var(--border); border-radius:var(--radius-sm);
  font-size:12px; font-weight:500; color:var(--text-secondary);
  background:none; cursor:pointer; transition:all var(--transition);
}
.nav-lang-btn:hover { border-color:var(--purple-200); color:var(--purple-600); }
.nav-btn {
  display:inline-flex; align-items:center; padding:8px 16px;
  font-size:13px; font-weight:600; border-radius:var(--radius-sm);
  transition:all var(--transition); white-space:nowrap;
}
.nav-btn--ghost { color:var(--text-secondary); }
.nav-btn--ghost:hover { color:var(--text); background:var(--gray-50); }
.nav-btn--primary { background:var(--purple-600); color:#fff; }
.nav-btn--primary:hover { background:var(--purple-800); color:#fff; }
.nav-mobile-toggle { display:none; padding:8px; color:var(--text-secondary); }
@media (max-width:768px) {
  .nav-links, .nav-actions { display:none; }
  .nav-mobile-toggle { display:flex; margin-left:auto; }
}

/* --- Mega Menu --- */
.mega-menu {
  display:none; position:fixed; top:var(--nav-height); left:0; right:0;
  background:var(--surface); border-bottom:1px solid var(--border);
  box-shadow:0 8px 24px rgba(0,0,0,.1); z-index:999;
  animation:megaSlide .15s ease;
}
.mega-menu.open { display:block; }
@keyframes megaSlide { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
.mega-inner {
  display:grid; grid-template-columns:repeat(5,1fr);
  max-width:var(--max-width); margin:0 auto; padding:24px;
  gap:0;
}
.mega-col { padding:0 20px; border-right:1px solid var(--border); }
.mega-col:last-child { border-right:none; }
.mega-cat-title {
  display:flex; align-items:flex-start; gap:12px; margin-bottom:12px;
  font-size:13px; color:var(--text);
}
.mega-cat-title strong { display:block; font-weight:600; font-size:13.5px; }
.mega-cat-icon { flex-shrink:0; margin-top:2px; }
.mega-cat-icon svg { width:20px; height:20px; }
.mega-cat-desc { display:block; font-size:11.5px; color:var(--text-muted); margin-top:2px; }
.mega-list { list-style:none; }
.mega-link { display:block; padding:4px 0; font-size:12.5px; color:var(--text-secondary); transition:color .1s; }
.mega-link:hover { color:var(--purple-600); }
.mega-link--see-all { font-weight:600; color:var(--purple-600); margin-top:6px; font-size:12px; }
.mega-section-label { font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--text-muted); font-weight:600; margin-bottom:10px; }
.mega-inner--slim { grid-template-columns:repeat(3,1fr); }

/* Lang dropdown */
.mega-menu--lang {
  position:fixed; top:var(--nav-height); right:0; left:auto;
  width:480px; padding:20px; border-radius:0 0 var(--radius-lg) var(--radius-lg);
}
.lang-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:4px; }
.lang-option {
  display:flex; align-items:center; gap:8px; padding:8px 10px;
  border-radius:var(--radius-sm); font-size:12.5px; color:var(--text-secondary);
  transition:all var(--transition);
}
.lang-option:hover { background:var(--purple-50); color:var(--purple-600); }
.lang-option--active { background:var(--purple-50); color:var(--purple-600); font-weight:600; }
.lang-flag { font-size:14px; }
.lang-name { white-space:nowrap; }

/* Nav Overlay */
.nav-overlay { display:none; position:fixed; inset:0; top:var(--nav-height); background:rgba(0,0,0,.2); z-index:998; }
.nav-overlay.active { display:block; }

/* Mobile drawer */
.nav-mobile-drawer {
  display:none; position:fixed; inset:0; background:var(--surface);
  z-index:1001; flex-direction:column; overflow-y:auto; padding:20px;
}
.nav-mobile-drawer.open { display:flex; }
.mobile-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.nav-mobile-close { padding:8px; color:var(--text-secondary); }
.mobile-nav { display:flex; flex-direction:column; gap:4px; }
.mobile-details summary { list-style:none; }
.mobile-details summary::-webkit-details-marker { display:none; }
.mobile-summary {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0; font-size:16px; font-weight:600; cursor:pointer; border-bottom:1px solid var(--border);
}
.mobile-submenu { list-style:none; padding:8px 0 8px 16px; }
.mobile-link {
  display:flex; align-items:center; gap:10px;
  padding:10px 0; font-size:15px; color:var(--text-secondary);
  border-bottom:1px solid var(--border);
}
.mobile-actions { margin-top:auto; padding-top:20px; display:flex; flex-direction:column; gap:10px; }
.mobile-btn-full { width:100%; justify-content:center; padding:13px; font-size:15px; border-radius:var(--radius-md); }

/* --- Breadcrumb (components.js) --- */
.breadcrumb { padding:16px 0 8px; }
.breadcrumb-list { display:flex; align-items:center; flex-wrap:wrap; list-style:none; gap:0; }
.breadcrumb-item { display:flex; align-items:center; font-size:12.5px; }
.breadcrumb-link { color:var(--text-secondary); }
.breadcrumb-link:hover { color:var(--purple-600); }
.breadcrumb-sep { color:var(--text-muted); display:flex; align-items:center; margin:0 4px; }
.breadcrumb-sep svg { width:12px; height:12px; }
.breadcrumb-item--current { color:var(--text); font-weight:500; }

/* --- Sidebar (components.js) --- */
.sidebar { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:16px; }
.sidebar-list { list-style:none; }
.sidebar-item { margin-bottom:2px; }
.sidebar-link { display:block; padding:6px 10px; font-size:13px; color:var(--text-secondary); border-radius:var(--radius-sm); border-left:2px solid transparent; transition:all .1s; }
.sidebar-link:hover { color:var(--purple-600); background:var(--purple-50); }
.sidebar-item--active .sidebar-link { color:var(--purple-600); border-left-color:var(--purple-600); background:var(--purple-50); font-weight:500; }
.sidebar-sub { list-style:none; padding-left:16px; margin-top:2px; }
.sidebar-sub-link { display:block; padding:4px 8px; font-size:12px; color:var(--text-muted); transition:color .1s; }
.sidebar-sub-link:hover { color:var(--purple-600); }

/* --- Scenario Tabs --- */
.scenario-tabs { display:flex; border-bottom:1px solid var(--border); overflow-x:auto; scrollbar-width:none; gap:0; }
.scenario-tabs::-webkit-scrollbar { display:none; }
.scenario-tab {
  padding:10px 20px; font-size:13.5px; font-weight:500; color:var(--text-secondary);
  white-space:nowrap; border-bottom:2px solid transparent; margin-bottom:-1px;
  cursor:pointer; transition:all .15s; display:flex; align-items:center; gap:6px;
}
.scenario-tab:hover { color:var(--text); }
.scenario-tab--active { color:var(--purple-600); border-bottom-color:var(--purple-600); }
.scenario-tab-icon { display:flex; align-items:center; }
.scenario-panel { padding:20px 0; }

/* --- Footer (components.js Footer.render) --- */
#wps-footer { margin-top:auto; }
.footer { background:var(--gray-900); color:var(--gray-200); padding:0; }
.footer-inner {
  display:grid; grid-template-columns:1.5fr repeat(4,1fr);
  gap:28px; max-width:var(--max-width); margin:0 auto; padding:48px 24px 32px;
}
.footer-brand .nav-logo svg { filter:brightness(2); }
.footer-tagline { font-size:13px; color:var(--gray-400); margin:12px 0 16px; max-width:200px; }
.footer-social { display:flex; gap:12px; }
.footer-social-link { color:var(--gray-400); transition:color .15s; }
.footer-social-link:hover { color:#fff; }
.footer-heading { font-size:13px; font-weight:600; color:#fff; margin-bottom:14px; }
.footer-links { list-style:none; }
.footer-links li { margin-bottom:6px; }
.footer-links a { font-size:12.5px; color:var(--gray-400); transition:color .1s; }
.footer-links a:hover { color:#fff; }
.footer-lang-select {
  background:var(--gray-800); color:var(--gray-200); border:1px solid var(--gray-600);
  border-radius:var(--radius-sm); padding:7px 10px; font-size:12.5px; width:100%;
}
.footer-bottom {
  max-width:var(--max-width); margin:0 auto; padding:16px 24px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:space-between;
  font-size:12px; color:var(--gray-400);
}
.footer-legal { display:flex; gap:16px; list-style:none; }
.footer-legal a { color:var(--gray-400); font-size:12px; }
.footer-legal a:hover { color:#fff; }
@media (max-width:900px) { .footer-inner { grid-template-columns:1fr 1fr; } .footer-col--lang { grid-column:span 2; } }
@media (max-width:600px) { .footer-inner { grid-template-columns:1fr; } .footer-col--lang { grid-column:span 1; } .footer-bottom { flex-direction:column; gap:12px; text-align:center; } }

/* --- Section & Layout Helpers --- */
.section { padding:48px 0; }
.section--alt { background:var(--gray-50); }
.section-title { text-align:center; margin-bottom:8px; }
.section-subtitle { text-align:center; color:var(--text-secondary); margin-bottom:32px; }

/* Hero */
.hero { text-align:center; padding:72px 24px 56px; background:linear-gradient(135deg, var(--purple-50) 0%, var(--blue-50) 100%); }
.hero-badge { display:inline-block; background:var(--purple-100); color:var(--purple-800); padding:4px 12px; border-radius:20px; font-size:12px; font-weight:600; margin-bottom:16px; }
.hero-title { font-size:clamp(28px,4vw,44px); font-weight:800; letter-spacing:-.04em; margin-bottom:16px; }
.hero-subtitle { font-size:18px; color:var(--text-secondary); max-width:640px; margin:0 auto 28px; }
.hero-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* Stats */
.stats-bar { background:var(--surface); border-bottom:1px solid var(--border); padding:24px 0; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.stat-item { text-align:center; padding:0 24px; border-right:1px solid var(--border); }
.stat-item:last-child { border-right:none; }
.stat-val { display:block; font-size:26px; font-weight:700; color:var(--purple-600); }
.stat-label { font-size:12px; color:var(--text-muted); }
@media(max-width:600px) { .stats-grid { grid-template-columns:repeat(2,1fr); } .stat-item { border-bottom:1px solid var(--border); padding:14px; } }

/* Products grid */
.products-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.product-card {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px;
  transition:all var(--transition); position:relative; overflow:hidden;
}
.product-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--card-color,var(--purple-400)); }
.product-card:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); }
.product-card-icon { margin-bottom:12px; }
.product-card-icon svg { width:28px; height:28px; }
.product-card h3 { font-size:14px; font-weight:600; margin-bottom:6px; }
.product-card p { font-size:12.5px; color:var(--text-secondary); }
.product-card-arrow { position:absolute; bottom:16px; right:16px; color:var(--text-muted); font-size:16px; }
@media(max-width:900px) { .products-grid { grid-template-columns:repeat(3,1fr); } }
@media(max-width:600px) { .products-grid { grid-template-columns:repeat(2,1fr); } }

/* Features grid */
.features-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.feature-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:24px; }
.feature-icon { margin-bottom:12px; color:var(--purple-600); }
.feature-icon svg { width:24px; height:24px; }
.feature-card h3 { font-size:15px; font-weight:600; margin-bottom:8px; }
.feature-card p { font-size:13px; color:var(--text-secondary); }
@media(max-width:900px) { .features-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px) { .features-grid { grid-template-columns:1fr; } }

/* CTA section */
.cta-section { background:linear-gradient(135deg,var(--purple-600),var(--purple-800)); color:#fff; text-align:center; padding:64px 24px; }
.cta-section h2 { color:#fff; margin-bottom:12px; }
.cta-section p { color:rgba(255,255,255,.85); margin-bottom:28px; font-size:16px; }

/* Buttons (btn system used in app.js) */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 20px; font-size:14px; font-weight:600; border-radius:var(--radius-sm); transition:all var(--transition); cursor:pointer; border:none; text-decoration:none; }
.btn--primary { background:var(--purple-600); color:#fff; }
.btn--primary:hover { background:var(--purple-800); color:#fff; }
.btn--secondary { background:var(--gray-50); color:var(--text); border:1px solid var(--border); }
.btn--secondary:hover { border-color:var(--purple-200); color:var(--purple-600); }
.btn--ghost { background:transparent; color:var(--text-secondary); }
.btn--ghost:hover { background:var(--gray-50); color:var(--text); }
.btn--lg { padding:13px 28px; font-size:16px; border-radius:var(--radius-md); }
.btn--sm { padding:6px 14px; font-size:12.5px; }
.btn-full { width:100%; }
.btn-icon { display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:var(--radius-sm); background:transparent; color:var(--text-secondary); transition:all .1s; }
.btn-icon:hover { background:var(--gray-50); color:var(--text); }

/* Hub hero */
.hub-hero { background:linear-gradient(135deg,var(--purple-50),var(--blue-50)); padding:48px 24px 36px; text-align:center; }
.hub-title { margin-bottom:10px; }
.hub-subtitle { color:var(--text-secondary); font-size:16px; max-width:560px; margin:0 auto; }

/* Tool grid (hub) */
.tool-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.tool-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:20px; display:flex; flex-direction:column; gap:10px; text-decoration:none; color:inherit; transition:all var(--transition); position:relative; }
.tool-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); border-color:var(--purple-200); }
.tool-card-icon { width:44px; height:44px; border-radius:10px; background:rgba(0,0,0,.04); display:flex; align-items:center; justify-content:center; }
.tool-card-icon svg { width:20px; height:20px; }
.tool-card-title { font-size:14.5px; font-weight:600; margin:0; }
.tool-card-desc { font-size:12.5px; color:var(--text-secondary); }
.tool-card-badge { position:absolute; top:12px; right:12px; background:var(--purple-100); color:var(--purple-700,var(--purple-600)); font-size:10px; font-weight:700; padding:2px 7px; border-radius:4px; }

/* Tool page */
.tool-hero { padding:40px 24px; background:var(--surface); border-bottom:1px solid var(--border); }
.tool-hero-inner { display:grid; grid-template-columns:1fr; gap:24px; }
.tool-hero h1 { margin-bottom:8px; }
.tool-hero-sub { font-size:17px; color:var(--text-secondary); margin-bottom:8px; }
.tool-hero-desc { font-size:14px; color:var(--text-muted); }
.tool-main-layout { display:grid; grid-template-columns:1fr 300px; gap:32px; align-items:start; }
.tool-info-col { display:flex; flex-direction:column; gap:16px; }
@media(max-width:900px) { .tool-main-layout { grid-template-columns:1fr; } }

/* Info cards (tool sidebar) */
.info-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:20px; }
.info-card h3 { font-size:14px; font-weight:600; margin-bottom:12px; }
.info-card h4 { font-size:13px; font-weight:600; margin-bottom:10px; }
.info-card--promo { background:var(--purple-50); border-color:var(--purple-200); text-align:center; }
.info-card--promo p { font-size:13px; color:var(--purple-800); margin-bottom:12px; }
.how-steps { list-style:none; display:flex; flex-direction:column; gap:10px; }
.how-steps li { display:flex; align-items:flex-start; gap:10px; font-size:13px; color:var(--text-secondary); }
.step-num { display:flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; background:var(--purple-100); color:var(--purple-700,var(--purple-600)); font-size:11px; font-weight:700; flex-shrink:0; }
.feature-list { list-style:none; display:flex; flex-direction:column; gap:8px; }
.feature-list li { display:flex; align-items:flex-start; gap:8px; font-size:13px; color:var(--text-secondary); }
.feature-list svg { flex-shrink:0; width:16px; height:16px; color:var(--teal-400); margin-top:2px; }

/* Upload area */
.upload-zone { border:2px dashed var(--border-hover); border-radius:var(--radius-lg); padding:48px 24px; text-align:center; cursor:pointer; transition:all var(--transition); background:var(--surface); }
.upload-zone:hover, .upload-zone.drag-over { border-color:var(--purple-400); background:var(--purple-50); }
.upload-icon { display:flex; justify-content:center; margin-bottom:16px; }
.upload-icon svg { width:48px; height:48px; }
.upload-title { font-size:18px; font-weight:600; margin-bottom:6px; }
.upload-sub { font-size:13px; color:var(--text-secondary); margin-bottom:12px; }
.upload-formats { font-size:12px; color:var(--text-muted); margin-bottom:16px; }
.upload-btn { display:inline-flex; align-items:center; gap:8px; padding:10px 20px; background:var(--purple-600); color:#fff; font-size:14px; font-weight:600; border-radius:var(--radius-sm); cursor:pointer; transition:background var(--transition); }
.upload-btn:hover { background:var(--purple-800); }
.upload-limit-note { margin-top:12px; font-size:11.5px; color:var(--text-muted); }
.processing-state { padding:32px; }
.processing-spinner { width:40px; height:40px; border:3px solid var(--purple-100); border-top-color:var(--purple-600); border-radius:50%; animation:spin 1s linear infinite; margin:0 auto 16px; }
@keyframes spin { to { transform:rotate(360deg); } }
.processing-filename { font-size:12px; color:var(--text-muted); margin-top:8px; }
.complete-state { padding:32px; text-align:center; }
.complete-icon { display:flex; justify-content:center; margin-bottom:12px; color:var(--teal-400); }
.complete-icon svg { width:32px; height:32px; }
.complete-title { font-size:18px; font-weight:600; margin-bottom:6px; color:var(--teal-600); }
.complete-filename { font-size:13px; color:var(--text-secondary); margin-bottom:16px; }
.complete-actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:12px; }
.upsell-note { font-size:12px; color:var(--text-muted); }

/* AI Widget */
.ai-widget { display:flex; flex-direction:column; gap:16px; }
.ai-textarea { width:100%; min-height:140px; padding:14px; border:1.5px solid var(--border); border-radius:var(--radius-md); font-size:14px; resize:vertical; outline:none; transition:border-color var(--transition); line-height:1.6; }
.ai-textarea:focus { border-color:var(--purple-400); }
.ai-controls { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.ai-selects { display:flex; gap:10px; flex-wrap:wrap; }
.ai-select-wrap { display:flex; flex-direction:column; gap:4px; }
.form-label { font-size:12px; font-weight:500; color:var(--text-secondary); }
.form-input { padding:8px 12px; border:1.5px solid var(--border); border-radius:var(--radius-sm); font-size:14px; outline:none; transition:border-color var(--transition); flex:1; }
.form-input:focus { border-color:var(--purple-400); }
.form-select { padding:7px 10px; border:1.5px solid var(--border); border-radius:var(--radius-sm); font-size:13px; background:var(--surface); color:var(--text); outline:none; cursor:pointer; }
.form-select--sm { padding:5px 8px; font-size:12px; }
.ai-generate-btn { display:flex; align-items:center; gap:6px; }
.ai-generate-btn svg { width:18px; height:18px; }
.ai-output-area { border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.ai-output-header { display:flex; align-items:center; justify-content:space-between; padding:10px 14px; background:var(--gray-50); border-bottom:1px solid var(--border); }
.ai-output-label { font-size:12px; font-weight:600; color:var(--text-secondary); }
.ai-output-actions { display:flex; gap:6px; }
.ai-output-content { padding:16px; font-size:14px; line-height:1.7; }
.ai-output-content p { margin-bottom:10px; }
.ai-upgrade-note { padding:10px 14px; background:var(--purple-50); font-size:12px; color:var(--purple-800); display:flex; align-items:center; gap:6px; }
.ai-upgrade-note svg { width:14px; height:14px; }

/* QR Widget */
.qr-widget { display:grid; grid-template-columns:1fr 300px; gap:24px; align-items:start; }
.qr-input-row { display:flex; gap:10px; margin-bottom:12px; }
.qr-options { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; }
.color-input { width:40px; height:32px; border:1px solid var(--border); border-radius:var(--radius-sm); cursor:pointer; padding:2px; }
.qr-preview-area { display:flex; flex-direction:column; align-items:center; gap:12px; }
.qr-preview { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:16px; display:inline-block; }
@media(max-width:768px) { .qr-widget { grid-template-columns:1fr; } }

/* FAQ */
.faq-list { max-width:720px; }
.faq-item { border-bottom:1px solid var(--border); }
.faq-q { padding:16px 0; font-size:14.5px; font-weight:500; cursor:pointer; display:flex; align-items:center; justify-content:space-between; transition:color var(--transition); }
.faq-q:hover { color:var(--purple-600); }
.faq-a { padding-bottom:16px; font-size:14px; color:var(--text-secondary); line-height:1.7; }

/* Template pages */
.template-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.filter-btn { padding:6px 16px; border:1.5px solid var(--border); border-radius:20px; font-size:13px; font-weight:500; color:var(--text-secondary); cursor:pointer; transition:all var(--transition); background:transparent; }
.filter-btn:hover { border-color:var(--purple-400); color:var(--purple-600); }
.filter-btn--active { background:var(--purple-600); color:#fff; border-color:var(--purple-600); }
.template-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; }
.template-card { border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; transition:all var(--transition); text-decoration:none; color:inherit; display:flex; flex-direction:column; }
.template-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.template-card-thumb { aspect-ratio:3/4; display:flex; align-items:center; justify-content:center; }
.template-thumb-placeholder svg { width:32px; height:32px; }
.template-card-info { padding:14px; background:var(--surface); flex:1; }
.template-card-name { font-size:14px; font-weight:600; margin-bottom:4px; }
.template-card-meta { font-size:12px; color:var(--text-muted); }
.template-detail-layout { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
.template-preview-thumb { aspect-ratio:3/4; border:1px solid var(--border); border-radius:var(--radius-lg); display:flex; align-items:center; justify-content:center; }
.template-detail-info h1 { margin-bottom:12px; }
.tpl-meta { display:flex; align-items:center; gap:8px; margin-bottom:20px; font-size:13px; color:var(--text-secondary); flex-wrap:wrap; }
.tpl-actions { display:flex; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
.tpl-sub { font-size:12.5px; color:var(--text-muted); }
@media(max-width:768px) { .template-detail-layout { grid-template-columns:1fr; } }

/* Badges */
.badge { display:inline-flex; align-items:center; padding:3px 10px; border-radius:4px; font-size:11.5px; font-weight:600; }
.badge--green { background:var(--teal-50); color:var(--teal-600); }
.badge--blue { background:var(--blue-50); color:var(--blue-600); }
.badge--purple { background:var(--purple-50); color:var(--purple-600); }

/* Guide pages */
.guide-layout { display:grid; grid-template-columns:1fr 280px; gap:40px; align-items:start; padding:32px 24px; }
.guide-article { max-width:720px; }
.guide-header { margin-bottom:24px; }
.guide-header h1 { margin:12px 0 8px; }
.guide-meta { font-size:12.5px; color:var(--text-muted); }
.guide-content h2 { font-size:20px; margin:28px 0 12px; }
.guide-content p { font-size:15px; line-height:1.8; margin-bottom:16px; }
.guide-cta-box { background:var(--purple-50); border:1px solid var(--purple-200); border-radius:var(--radius-md); padding:24px; text-align:center; margin-top:32px; }
.guide-cta-box h3 { margin-bottom:12px; }
.guide-sidebar { position:sticky; top:calc(var(--nav-height)+16px); }
.sidebar-toc { list-style:none; display:flex; flex-direction:column; gap:6px; }
.sidebar-toc a { font-size:13px; color:var(--text-secondary); }
.sidebar-toc a:hover { color:var(--purple-600); }
.guide-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.guide-card { border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; display:flex; flex-direction:column; text-decoration:none; color:inherit; transition:all var(--transition); }
.guide-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.guide-card-body { padding:20px; flex:1; }
.guide-card-title { font-size:15px; font-weight:600; margin:8px 0 8px; line-height:1.4; }
.guide-card-excerpt { font-size:13px; color:var(--text-secondary); }
.guide-card-footer { display:flex; align-items:center; justify-content:space-between; padding:12px 20px; border-top:1px solid var(--border); background:var(--gray-50); }
.guide-read-time { font-size:12px; color:var(--text-muted); }
.guide-read-link { font-size:12.5px; color:var(--purple-600); font-weight:500; }
.guide-cat-badge { display:inline-block; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; }
.guide-cat--pdf { background:var(--coral-50); color:var(--coral-600); }
.guide-cat--writing { background:var(--purple-50); color:var(--purple-600); }
.guide-cat--slides { background:var(--amber-50); color:var(--amber-600); }
.guide-cat--sheets { background:var(--teal-50); color:var(--teal-600); }
.guide-cat--tools { background:var(--blue-50); color:var(--blue-600); }
@media(max-width:900px) { .guide-layout { grid-template-columns:1fr; } .guide-sidebar { display:none; } }

/* Pricing */
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:start; max-width:900px; margin:0 auto; }
.pricing-card { background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius-lg); padding:28px 24px; position:relative; }
.pricing-card--popular { border-color:var(--purple-400); box-shadow:0 4px 20px rgba(83,74,183,.15); }
.pricing-popular-badge { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--purple-600); color:#fff; font-size:11px; font-weight:700; padding:3px 12px; border-radius:20px; white-space:nowrap; }
.pricing-plan { font-size:18px; font-weight:700; margin-bottom:16px; }
.pricing-price { margin-bottom:20px; }
.price-amount { font-size:36px; font-weight:800; color:var(--purple-600); }
.price-period { font-size:13px; color:var(--text-muted); }
.pricing-features { list-style:none; margin-bottom:24px; display:flex; flex-direction:column; gap:10px; }
.pricing-features li { display:flex; align-items:flex-start; gap:8px; font-size:13.5px; color:var(--text-secondary); }
.pricing-features svg { flex-shrink:0; width:16px; height:16px; color:var(--teal-400); margin-top:2px; }
@media(max-width:768px) { .pricing-grid { grid-template-columns:1fr; max-width:400px; margin-left:auto; margin-right:auto; } }

