/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FAFAF8; color: #1D1D1F;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

/* ─── GRID OVERLAY ─── */
#grid-overlay {
  position: fixed; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle 220px at -400px -400px, black 0%, rgba(0,0,0,0.2) 100%);
  mask-image: radial-gradient(circle 220px at -400px -400px, black 0%, rgba(0,0,0,0.2) 100%);
  pointer-events: none; z-index: 0;
}

/* ─── NAV ─── */
.nav-outer { position: sticky; top: 14px; z-index: 1000; padding: 0 20px; }
nav.topnav {
  max-width: 1080px; margin: 0 auto;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0,0,0,0.09); border-radius: 18px;
  padding: 10px 20px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 24px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 30px; height: 30px; background: #0057FF; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.logo-text { font-size: 16px; font-weight: 700; color: #1D1D1F; letter-spacing: -0.3px; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.btn-ghost { font-size: 14px; font-weight: 500; color: #3C3C43; text-decoration: none; padding: 7px 14px; border-radius: 100px; transition: background .18s; }
.btn-ghost:hover { background: rgba(0,0,0,0.05); }
.btn-nav-primary { font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; padding: 8px 17px; background: #16A34A; border-radius: 100px; transition: background .18s, transform .15s; box-shadow: 0 2px 8px rgba(22,163,74,0.28); border: none; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; }
.btn-nav-primary:hover { background: #0F8A3A; transform: translateY(-1px); }

/* ─── CONTAINER ─── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }

/* ─── TUTORIAL HERO ─── */
.tut-hero { padding: 56px 20px 36px; position: relative; z-index: 4; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #8E8E93; margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: #6E6E73; text-decoration: none; font-weight: 500; transition: color .15s; }
.breadcrumb a:hover { color: #0057FF; }
.breadcrumb svg { width: 12px; height: 12px; color: #C7C7CC; flex-shrink: 0; }
.breadcrumb .current { color: #1D1D1F; font-weight: 600; }

.tut-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,87,255,0.08); border: 1px solid rgba(0,87,255,0.18); border-radius: 100px;
  padding: 5px 12px 5px 10px; font-size: 12px; font-weight: 700; color: #0057FF;
  margin-bottom: 18px; letter-spacing: 0.02em;
}
.tut-hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #0057FF; }

.tut-hero h1 {
  font-size: clamp(34px, 5.2vw, 54px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.04; color: #1D1D1F; margin-bottom: 16px;
  max-width: 720px;
}
.tut-hero-sub { font-size: 17.5px; color: #6E6E73; line-height: 1.6; max-width: 620px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: #3C3C43;
  background: white; border: 1px solid rgba(0,0,0,0.08);
  padding: 7px 13px; border-radius: 100px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.meta-chip svg { width: 14px; height: 14px; color: #6E6E73; }
.meta-chip.live svg { color: #16A34A; }

/* ─── LAYOUT ─── */
.tut-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-bottom: 100px; }

/* ─── SIDEBAR TOC ─── */
.tut-side { position: sticky; top: 96px; height: fit-content; padding-top: 4px; }
.side-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8E8E93; margin-bottom: 14px; padding-left: 16px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
.side-nav::before { content: ''; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 1.5px; background: rgba(0,0,0,0.08); }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: #6E6E73; text-decoration: none; position: relative; transition: color .15s, background .15s; }
.side-link:hover { color: #1D1D1F; background: rgba(0,0,0,0.03); }
.side-link .num {
  position: relative; z-index: 1;
  width: 22px; height: 22px; border-radius: 50%;
  background: white; border: 1.5px solid rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #8E8E93;
  flex-shrink: 0; transition: all .2s;
}
.side-link.active { color: #0057FF; background: rgba(0,87,255,0.06); font-weight: 700; }
.side-link.active .num { background: #0057FF; border-color: #0057FF; color: white; box-shadow: 0 0 0 4px rgba(0,87,255,0.12); }
.side-link.done .num { background: #16A34A; border-color: #16A34A; color: white; }

/* ─── MAIN CONTENT ─── */
.tut-main { min-width: 0; }
.tut-step { padding: 40px 0; border-bottom: 1px solid rgba(0,0,0,0.06); scroll-margin-top: 96px; }
.tut-step:first-child { padding-top: 8px; }
.tut-step:last-child { border-bottom: none; }

.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.step-num-lg {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #0057FF 0%, #3B7DFF 100%);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(0,87,255,0.28);
  flex-shrink: 0;
}
.step-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #0057FF; }
.step-title { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.035em; color: #1D1D1F; line-height: 1.15; margin-bottom: 12px; }
.step-body { font-size: 15.5px; color: #3C3C43; line-height: 1.65; max-width: 620px; }
.step-body p { margin-bottom: 12px; }
.step-body p:last-child { margin-bottom: 0; }
.step-body strong { font-weight: 700; color: #1D1D1F; }
.step-body code { background: rgba(0,87,255,0.08); color: #0057FF; padding: 1px 6px; border-radius: 5px; font-size: 13px; font-weight: 600; font-family: inherit; }
.step-body a { color: #0057FF; text-decoration: none; font-weight: 600; border-bottom: 1px dashed rgba(0,87,255,0.3); }
.step-body a:hover { border-bottom-style: solid; }
.step-body ul { margin: 0 0 12px 18px; padding: 0; color: #3C3C43; line-height: 1.75; }
.step-body li { margin-bottom: 4px; }

/* ─── CALLOUT ─── */
.callout {
  display: flex; gap: 12px;
  background: linear-gradient(180deg, rgba(0,87,255,0.05) 0%, rgba(0,87,255,0.02) 100%);
  border: 1px solid rgba(0,87,255,0.15); border-radius: 14px;
  padding: 14px 16px; margin-top: 20px;
  max-width: 620px;
}
.callout-ic { width: 26px; height: 26px; border-radius: 8px; background: #0057FF; color: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.callout-ic svg { width: 14px; height: 14px; }
.callout-t { font-size: 13.5px; color: #1D1D1F; line-height: 1.55; }
.callout-t b { font-weight: 700; }
.callout-t code { background: rgba(0,87,255,0.12); color: #0057FF; padding: 1px 5px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.callout-t a { color: #0057FF; font-weight: 600; text-decoration: none; border-bottom: 1px dashed rgba(0,87,255,0.3); }

/* ─── STEP MOCKUP FRAME ─── */
.step-visual {
  margin-top: 26px;
  background: linear-gradient(180deg, #F5F5F2 0%, #EFEFEC 100%);
  border: 1px solid rgba(0,0,0,0.07); border-radius: 18px;
  padding: 32px 28px; overflow: hidden; position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.step-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 24px 24px; pointer-events: none;
}

/* ─── JTEK APP FRAME ─── */
.jtek-frame {
  position: relative; z-index: 1;
  background: white; border: 1px solid rgba(0,0,0,0.08); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  display: grid; grid-template-columns: 180px 1fr;
  min-height: 360px;
}

/* Sidebar — dark theme */
.jtek-side {
  background: #1C1C1E; border-right: 1px solid rgba(255,255,255,0.06);
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.jtek-side-head { display: flex; align-items: center; gap: 7px; padding: 4px 8px 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.jtek-side-logo { width: 22px; height: 22px; background: #0057FF; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: white; font-size: 11px; font-weight: 800; }
.jtek-side-name { font-size: 12px; font-weight: 700; color: #F5F5F7; }
.jtek-side-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.42); cursor: default; position: relative; }
.jtek-side-item.active { background: rgba(255,255,255,0.08); color: white; font-weight: 600; }
.jtek-side-item.highlight { background: rgba(255,255,255,0.1); color: white; font-weight: 600; box-shadow: 0 0 0 2px rgba(255,255,255,0.22); animation: highlightPulse 2.4s ease-in-out infinite; }
@keyframes highlightPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,255,255,0.22); }
  50% { box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
}
.jtek-side-item svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Main panel */
.jtek-main { padding: 18px 22px; background: white; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.jtek-topbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.jtek-crumb { font-size: 12px; color: #8E8E93; }
.jtek-crumb b { color: #1D1D1F; font-weight: 700; }
.jtek-btn-primary {
  position: relative;
  background: #0057FF; color: white;
  padding: 7px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,87,255,0.3);
  display: inline-flex; align-items: center; gap: 6px;
}
.jtek-btn-primary.highlight::after {
  content: ''; position: absolute; inset: -5px; border-radius: 100px;
  border: 2px solid #0057FF; opacity: 0;
  animation: btnPulse 2.6s ease-out infinite;
}
@keyframes btnPulse {
  0%, 55% { transform: scale(1); opacity: 0; }
  70% { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(1.35); opacity: 0; }
}
.jtek-btn-primary svg { width: 12px; height: 12px; }
.jtek-btn-ghost {
  background: #F5F5F2; color: #1D1D1F; padding: 7px 13px; border-radius: 100px;
  font-size: 12px; font-weight: 600; border: 1px solid rgba(0,0,0,0.06);
  display: inline-flex; align-items: center; gap: 5px;
}
.jtek-btn-ghost svg { width: 11px; height: 11px; }

/* Tabs */
.jtek-compose-tabs { display: flex; gap: 4px; }
.jtek-compose-tab { padding: 5px 11px; border-radius: 7px; font-size: 11px; font-weight: 600; color: #6E6E73; }
.jtek-compose-tab.on { background: white; color: #0057FF; box-shadow: 0 1px 3px rgba(0,0,0,0.08); font-weight: 700; }

/* Generic list (rows) */
.jtek-list { display: flex; flex-direction: column; gap: 6px; }
.jtek-list-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #FAFAF8; border: 1px solid rgba(0,0,0,0.04); }
.jtek-list-row.selected { background: rgba(0,87,255,0.05); border-color: rgba(0,87,255,0.2); }
.jtek-list-chk { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid rgba(0,0,0,0.15); background: white; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.jtek-list-chk.on { background: #0057FF; border-color: #0057FF; color: white; }
.jtek-list-chk svg { width: 10px; height: 10px; }
.jtek-list-name { font-size: 12.5px; font-weight: 600; color: #1D1D1F; flex: 1; }
.jtek-list-meta { font-size: 11px; color: #8E8E93; }

/* Generic tag pills */
.jtek-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 100px; font-size: 10px; font-weight: 600; }
.jtek-tag.blue { background: rgba(0,87,255,0.1); color: #0057FF; }
.jtek-tag.green { background: rgba(24,163,74,0.1); color: #18A34A; }
.jtek-tag.amber { background: rgba(245,158,11,0.14); color: #B45309; }
.jtek-tag.pink { background: rgba(236,72,153,0.1); color: #EC4899; }
.jtek-tag.purple { background: rgba(107,63,255,0.1); color: #6B3FFF; }

/* Common field */
.jtek-field { background: #FAFAF8; border: 1px solid rgba(0,0,0,0.06); border-radius: 9px; padding: 8px 12px; }
.jtek-field-lbl { font-size: 10px; font-weight: 700; color: #8E8E93; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px; }
.jtek-field-val { font-size: 12.5px; font-weight: 600; color: #1D1D1F; }

/* ─── CTA + RELATED ─── */
.tut-cta-block {
  background: linear-gradient(135deg, #0057FF 0%, #3B7DFF 100%);
  border-radius: 22px; padding: 40px; color: white;
  position: relative; overflow: hidden;
  margin-bottom: 48px;
}
.tut-cta-block::before {
  content: ''; position: absolute; top: -40%; right: -20%; width: 60%; height: 180%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.tut-cta-block h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 10px; max-width: 520px; position: relative; }
.tut-cta-block p { font-size: 15px; line-height: 1.6; opacity: 0.9; max-width: 520px; margin-bottom: 22px; position: relative; }
.tut-cta-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: white; color: #0057FF;
  padding: 11px 20px; border-radius: 100px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform .15s, box-shadow .2s;
  position: relative;
  border: none; cursor: pointer; font-family: inherit;
}
.tut-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.18); }
.tut-cta-btn svg { width: 14px; height: 14px; }

.related-h { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: #1D1D1F; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 60px; }
.related-card { background: white; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; padding: 20px; text-decoration: none; color: inherit; box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: transform .22s cubic-bezier(0.34,1.56,0.64,1), box-shadow .22s; display: flex; flex-direction: column; gap: 10px; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.09); }
.related-steps { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; width: fit-content; }
.related-card[data-acc="blue"]    .related-steps { color: #0057FF; background: rgba(0,87,255,0.10); }
.related-card[data-acc="green"]   .related-steps { color: #18A34A; background: rgba(24,163,74,0.10); }
.related-card[data-acc="orange"]  .related-steps { color: #F97316; background: rgba(249,115,22,0.10); }
.related-card[data-acc="purple"]  .related-steps { color: #6B3FFF; background: rgba(107,63,255,0.10); }
.related-card[data-acc="ink"]     .related-steps { color: #1D1D1F; background: rgba(0,0,0,0.06); }
.related-card[data-acc="pink"]    .related-steps { color: #EC4899; background: rgba(236,72,153,0.10); }
.related-card[data-acc="teal"]    .related-steps { color: #0EA5A5; background: rgba(14,165,165,0.10); }
.related-card[data-acc="magenta"] .related-steps { color: #D6249F; background: rgba(214,36,159,0.10); }
.related-card[data-acc="amber"]   .related-steps { color: #B45309; background: rgba(245,158,11,0.14); }
.related-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: #1D1D1F; line-height: 1.3; }
.related-sub { font-size: 12.5px; color: #6E6E73; line-height: 1.5; }
.related-arrow { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #1D1D1F; margin-top: auto; opacity: 0.7; transition: opacity .2s, transform .2s; }
.related-card:hover .related-arrow { opacity: 1; transform: translateX(2px); }
.related-arrow svg { width: 12px; height: 12px; }

/* ─── FOOTER ─── */
.footer { text-align: center; padding: 40px 20px; border-top: 1px solid rgba(0,0,0,0.06); font-size: 13px; color: #8E8E93; }
.footer a { color: #0057FF; text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }

/* ─── HIDE GHL CHAT ─── */
#lc_chat_layout, .lc_chat_widget, [id^="lc_"], [class*="lc_chat"], [class*="lc-chat"],
[class*="chat-bubble"], [class*="chat-launcher"],
[class*="leadConnector"], iframe[src*="leadconnectorhq"], chat-widget { display: none !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .tut-layout { grid-template-columns: 1fr; gap: 28px; }
  .tut-side { position: static; padding-bottom: 8px; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .side-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .side-nav::before { display: none; }
  .side-link { flex-shrink: 0; white-space: nowrap; padding: 8px 12px; }
  .jtek-frame { grid-template-columns: 1fr; min-height: auto; }
  .jtek-side { display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tut-hero { padding: 40px 20px 28px; }
  .related-grid { grid-template-columns: 1fr; }
  .tut-cta-block { padding: 28px; }
  .tut-cta-block h3 { font-size: 22px; }
  .step-visual { padding: 18px; }
  .container { padding: 0 16px; }
}
