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

:root {
  --bg:         #f8f5f1;
  --bg2:        #f0ebe3;
  --surface:    #ffffff;
  --border:     rgba(0,0,0,0.08);
  --border-hi:  rgba(0,0,0,0.13);
  --text:       #1a1209;
  --text-2:     #6b5540;
  --text-3:     #9e8068;
  --amber:      #ea6c0a;
  --amber-glow: rgba(249,115,22,0.10);
  --green:      #16a34a;
  --green-glow: rgba(22,163,74,0.10);
  --red:        #dc2626;
  --red-glow:   rgba(220,38,38,0.08);
  --r:          14px;
  --r-lg:       20px;
  --sidebar-w:  260px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04; pointer-events: none; z-index: 1000;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0;
  z-index: 200;
  padding: 0 32px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(248,245,241,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 17px;
}
.nav-logo img { width: 26px; height: 26px; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #eab308);
  color: #ffffff; font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.88; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 6px 14px; border-radius: 8px;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--text-2); text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--bg2); }
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px;
  border: none; background: transparent; cursor: pointer;
  border-radius: 8px; padding: 6px; transition: background 0.15s;
}
.nav-burger:hover { background: var(--bg2); }
.nav-burger span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ── GUIDES LAYOUT ── */
.guides-layout {
  display: flex;
  min-height: calc(100vh - 60px);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── SIDEBAR ── */
.guides-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 24px 0 48px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--border-hi) transparent;
}
.guides-sidebar::-webkit-scrollbar { width: 4px; }
.guides-sidebar::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 4px; }

.sidebar-header {
  padding: 0 16px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.sidebar-section {
  margin-bottom: 4px;
}

.sidebar-category {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 8px 16px;
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--text-2);
  background: none; border: none; cursor: pointer;
  text-align: left; border-radius: 0;
  transition: color 0.15s, background 0.15s;
  gap: 8px;
}
.sidebar-category:hover { color: var(--text); background: var(--bg2); }
.sidebar-category.open { color: var(--text); }
.sidebar-category-icon {
  font-size: 14px; flex-shrink: 0;
}
.sidebar-category-text { flex: 1; }
.sidebar-chevron {
  font-size: 10px; color: var(--text-3);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.sidebar-category.open .sidebar-chevron { transform: rotate(180deg); }

.sidebar-items {
  display: none;
  padding: 2px 0;
}
.sidebar-items.open { display: block; }

.sidebar-item {
  display: flex; align-items: center;
  padding: 6px 16px 6px 36px;
  font-size: 13px; color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
  margin-left: 0;
}
.sidebar-item:hover { color: var(--text); background: var(--bg2); }
.sidebar-item.active {
  color: var(--amber);
  border-left-color: var(--amber);
  background: var(--amber-glow);
  font-weight: 500;
}

/* ── MAIN CONTENT ── */
.guides-content {
  flex: 1;
  min-width: 0;
  padding: 32px 48px 80px;
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-3);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--text-3); text-decoration: none;
  transition: color 0.15s;
}
.breadcrumbs a:hover { color: var(--amber); }
.breadcrumbs .sep { color: var(--border-hi); }
.breadcrumbs .current { color: var(--text-2); }

/* ── ARTICLE CONTENT ── */
.guide-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--amber-glow); color: var(--amber);
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 16px;
}

.guides-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 16px; color: var(--text);
}
.guides-content h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #ea6c0a, #eab308);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guide-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-3);
  margin-bottom: 32px; flex-wrap: wrap;
}
.guide-meta span { display: flex; align-items: center; gap: 5px; }

.guide-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex; flex-direction: column; gap: 8px;
}
.guide-intro-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-2);
}
.guide-intro-row strong { color: var(--text); white-space: nowrap; }

.article-body h2 {
  font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700;
  margin: 36px 0 12px; color: var(--text);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; border-top: none; }
.article-body h3 {
  font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700;
  margin: 24px 0 8px; color: var(--text);
}
.article-body h4 {
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700;
  margin: 20px 0 6px; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px;
}
.article-body p { margin-bottom: 16px; color: var(--text); }
.article-body p:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol {
  padding-left: 20px; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.article-body li { color: var(--text); }
.article-body a { color: var(--amber); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { font-weight: 600; color: var(--text); }
.article-body code {
  font-family: 'Courier New', monospace;
  background: var(--bg2); color: var(--amber);
  padding: 1px 6px; border-radius: 4px; font-size: 13px;
}

/* ── STEP BLOCKS ── */
.step-block {
  display: flex; gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.step-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea6c0a, #eab308);
  color: #fff; font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-body { flex: 1; }
.step-body h3 {
  font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 700;
  margin-bottom: 8px; color: var(--text);
}
.step-body p { font-size: 14px; color: var(--text-2); margin-bottom: 0; }
.step-body ul {
  font-size: 14px; color: var(--text-2);
  padding-left: 16px; margin-top: 8px;
  display: flex; flex-direction: column; gap: 4px;
}

/* ── SCREENSHOT PLACEHOLDER ── */
.screenshot-placeholder {
  width: 100%;
  background: var(--bg2);
  border: 2px dashed var(--border-hi);
  border-radius: var(--r);
  padding: 32px 24px;
  text-align: center;
  margin: 16px 0;
  color: var(--text-3);
  font-size: 13px;
}
.screenshot-placeholder .ph-icon { font-size: 28px; margin-bottom: 8px; }
.screenshot-placeholder .ph-label {
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 13px;
  color: var(--text-2);
}

/* ── CALLOUTS ── */
.callout {
  padding: 14px 18px; border-radius: var(--r);
  margin: 20px 0; border-left: 3px solid;
}
.callout-title {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.callout p { font-size: 14px; margin-bottom: 0; }
.callout.warning { background: var(--amber-glow); border-color: var(--amber); }
.callout.warning .callout-title { color: var(--amber); }
.callout.success { background: var(--green-glow); border-color: var(--green); }
.callout.success .callout-title { color: var(--green); }
.callout.danger { background: var(--red-glow); border-color: var(--red); }
.callout.danger .callout-title { color: var(--red); }
.callout.info {
  background: rgba(59,130,246,0.07); border-color: #3b82f6;
}
.callout.info .callout-title { color: #2563eb; }

/* ── CHECKLIST ── */
.checklist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin: 24px 0;
}
.checklist h3 {
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-3); margin-bottom: 14px;
}
.checklist-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-2);
}
.checklist-item:last-child { border-bottom: none; padding-bottom: 0; }
.checklist-item::before {
  content: '☐';
  font-size: 16px; color: var(--border-hi); flex-shrink: 0; margin-top: 1px;
}

/* ── FAQ ── */
.faq-section { margin-top: 48px; }
.faq-section > h2 {
  font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700;
  margin-bottom: 16px; color: var(--text);
}
.faq { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; padding: 16px 20px;
  text-align: left; background: var(--surface);
  border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--text); display: flex; justify-content: space-between; align-items: center;
  gap: 12px; transition: background 0.15s;
}
.faq-q:hover { background: var(--bg2); }
.faq-chevron { font-size: 12px; color: var(--text-3); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  display: none; padding: 0 20px 16px;
  font-size: 14px; color: var(--text-2); line-height: 1.7;
  background: var(--surface);
}
.faq-item.open .faq-a { display: block; }

/* ── NEXT/PREV NAVIGATION ── */
.guide-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 48px;
}
.guide-nav-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.guide-nav-card:hover {
  border-color: var(--amber);
  box-shadow: 0 2px 12px var(--amber-glow);
}
.guide-nav-card.prev { align-items: flex-start; }
.guide-nav-card.next { align-items: flex-end; text-align: right; }
.guide-nav-card.placeholder { opacity: 0; pointer-events: none; }
.guide-nav-label {
  font-size: 11px; color: var(--text-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.guide-nav-title {
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--text);
}

/* ── GUIDES INDEX PAGE ── */
.guides-index-header {
  padding: 32px 0 24px;
}
.guides-index-header h1 {
  font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 800;
  margin-bottom: 8px;
}
.guides-index-header p {
  font-size: 15px; color: var(--text-2); max-width: 480px;
}
.guides-section {
  margin-bottom: 40px;
}
.guides-section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700;
  margin-bottom: 12px; color: var(--text);
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.guides-section-icon { font-size: 20px; }
.guides-cards {
  display: flex; flex-direction: column; gap: 8px;
}
.guides-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.guides-card:hover {
  border-color: var(--amber);
  box-shadow: 0 2px 12px var(--amber-glow);
}
.guides-card-num {
  flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg2); color: var(--text-2);
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.guides-card-body { flex: 1; }
.guides-card-title {
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--text); margin-bottom: 2px;
}
.guides-card-desc { font-size: 13px; color: var(--text-3); }
.guides-card-arrow { color: var(--text-3); font-size: 16px; flex-shrink: 0; }
.guides-card:hover .guides-card-arrow { color: var(--amber); }
.guides-card:hover .guides-card-num {
  background: var(--amber-glow); color: var(--amber);
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin-top: 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px;
  color: #fff; margin-bottom: 16px;
}
.footer-logo img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.footer-tagline {
  font-size: 13px; line-height: 1.65;
  color: rgba(255,255,255,0.45); max-width: 260px; margin: 0;
}
.footer-cols { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 4px;
}
.footer-col a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 14px; transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-cta-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-cta-col p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; margin: 0; }
.footer-cta-btn {
  display: inline-flex; align-items: center;
  padding: 9px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #eab308);
  color: #fff; font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: opacity 0.2s; white-space: nowrap;
}
.footer-cta-btn:hover { opacity: 0.88; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 32px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.3);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; padding: 40px 24px 32px; }
  .footer-bottom { padding: 16px 24px; }
}
@media (max-width: 480px) {
  .footer-cols { gap: 32px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .guides-sidebar {
    display: none;
  }
  .guides-content {
    padding: 24px 24px 60px;
  }
}

@media (max-width: 560px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .guide-nav { grid-template-columns: 1fr; }
  .guides-content { padding: 20px 16px 48px; }
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  position: absolute; top: 60px; left: 0; right: 0;
  background: rgba(248,245,241,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  gap: 4px; z-index: 150;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link {
  padding: 10px 14px; font-size: 15px; border-radius: var(--r);
}
.nav-drawer .nav-cta {
  margin-top: 8px; padding: 12px 18px;
  border-radius: var(--r); justify-content: center;
}
