/* ===========================================================
   JAMM Traffic — Guide shared stylesheet
   Used on /traffic/guide/ hub + step pages + /traffic/faq/
   =========================================================== */

:root {
  --bg: #0a0f0d;
  --bg-card: #11181a;
  --bg-code: #070b0a;
  --border: #1d2723;
  --border-strong: #2a3935;
  --text: #e8eef0;
  --text-muted: #8aa097;
  --text-dim: #5a6b66;

  --accent: #06B57F;
  --accent-bright: #10B981;
  --accent-soft: #6CE3B7;
  --accent-deep: #024D34;
  --accent-glow: rgba(6, 181, 127, 0.16);

  --team: #10B981;
  --team-deep: #0E221B;

  --white: #FFFFFF;
  --warning: #F59E0B;
  --danger: #EF4444;

  --font-display: 'Comfortaa', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.8; }
code, pre, .mono { font-family: var(--font-mono); }
img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: 1200px; margin: 0 auto; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 40px; height: 40px; flex-shrink: 0; }
.brand-logo img { width: 100%; height: 100%; }
.brand-text {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text .sub {
  color: var(--text-muted); font-weight: 400; font-size: 12px;
  display: block; margin-top: 2px;
}
.header-nav { display: flex; gap: 4px; }
.header-nav a {
  color: var(--text-muted); font-size: 13px; padding: 8px 12px; border-radius: 8px;
  font-weight: 500; transition: all 0.15s;
}
.header-nav a:hover { color: var(--text); background: var(--bg-card); opacity: 1; }
.header-nav a.active { color: var(--accent); }
.header-cta {
  padding: 9px 16px; background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: 8px; color: var(--text); font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: border-color 0.15s;
}
.header-cta:hover { border-color: var(--accent); opacity: 1; }
@media (max-width: 720px) {
  .header-inner { padding: 10px 16px; gap: 10px; }
  .header-nav { display: none; }
  .brand-text .sub { display: none; }
  .header-cta { padding: 8px 12px; font-size: 12px; }
}

/* ===== Progress bar (step pages) ===== */
.progress-bar {
  position: relative; height: 3px; background: var(--border);
  width: 100%;
}
.progress-bar .fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transition: width 0.4s ease;
}

/* ===== Hero ===== */
.hero {
  padding: 96px 0 72px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 40% at 80% 20%, rgba(6,181,127,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 20% 100%, rgba(2,77,52,0.22) 0%, transparent 60%);
}
.hero.compact { padding: 56px 0 40px; }
.hero-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45;
  pointer-events: none; z-index: 0;
  animation: float-orb 14s ease-in-out infinite;
}
.hero-orb.o1 { width: 380px; height: 380px; background: var(--accent); top: -80px; right: -60px; }
.hero-orb.o2 { width: 320px; height: 320px; background: var(--accent-bright); bottom: -80px; left: -40px; animation-delay: -5s; opacity: 0.32; }
.hero-orb.o3 { width: 260px; height: 260px; background: var(--accent-deep); top: 40%; left: 55%; animation-delay: -9s; opacity: 0.4; }
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -35px) scale(1.05); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 0 24px; }
.hero-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(6,181,127,0.10); border: 1px solid rgba(6,181,127,0.28);
  font-size: 11px; font-weight: 500; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 22px; font-family: var(--font-mono);
}
.hero-tagline::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero h1 {
  font-size: clamp(28px, 5vw, 50px); line-height: 1.13; letter-spacing: -0.02em;
  font-weight: 700; margin-bottom: 22px;
}
.hero.compact h1 { font-size: clamp(24px, 4vw, 38px); margin-bottom: 14px; }
.hero h1 .accent {
  background: linear-gradient(120deg, #06B57F 0%, #6CE3B7 40%, #06B57F 60%, #10B981 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 0; } }
.hero-sub {
  font-size: clamp(15px, 2vw, 19px); color: var(--text-muted); max-width: 640px;
  margin-bottom: 28px; font-weight: 400;
}
.hero-credo {
  font-size: 11px; color: var(--text-dim); margin-bottom: 32px;
  letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-mono);
}
.hero-credo span { color: var(--accent); margin: 0 6px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Step page hero meta row */
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: 12px; color: var(--text-dim); font-family: var(--font-mono);
  letter-spacing: 0.06em; text-transform: uppercase; margin-top: 8px;
}
.hero-meta .pip {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-meta .pip::before {
  content: '·'; color: var(--accent); font-weight: 700; font-size: 14px;
}
.hero-meta .pip:first-child::before { content: ''; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.15s;
  cursor: pointer; border: 0; font-family: var(--font-display);
  line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-primary {
  background: linear-gradient(135deg, #06B57F 0%, #10B981 100%);
  color: #02180f;
  box-shadow: 0 4px 22px rgba(6,181,127,0.28);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(6,181,127,0.40); opacity: 1; }
.btn-dark {
  background: linear-gradient(135deg, #08120e 0%, #0f1f1a 60%, #133029 100%);
  color: var(--accent);
  border: 1px solid rgba(6,181,127,0.36);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(6,181,127,0.10);
  padding: 14px 24px;
}
.btn-dark:hover {
  border-color: rgba(6,181,127,0.7);
  box-shadow: 0 6px 28px rgba(6,181,127,0.18), inset 0 1px 0 rgba(6,181,127,0.14);
  opacity: 1;
}
.btn-secondary {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); opacity: 1; }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); opacity: 1; }
.btn .ico { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.btn .ico img { width: 100%; height: 100%; }

/* ===== Sections ===== */
section { position: relative; }
.section-pad { padding: 64px 0; }
.section-pad-sm { padding: 48px 0; }
.section-pad-lg { padding: 80px 0; }
@media (max-width: 720px) {
  .section-pad { padding: 48px 0; }
  .section-pad-lg { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
  .hero.compact { padding: 40px 0 28px; }
}
.section-label {
  font-size: 11px; color: var(--accent); letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-mono);
  text-align: center;
}
.section-heading {
  font-size: clamp(24px, 3.6vw, 36px); letter-spacing: -0.02em;
  font-weight: 700; margin-bottom: 18px; line-height: 1.2; text-align: center;
}
.section-heading.left { text-align: left; }
.section-sub {
  text-align: center; color: var(--text-muted); max-width: 640px; margin: 0 auto 36px;
  font-size: 16px;
}
.section-sub.left { text-align: left; margin-left: 0; }

/* ===== Cards generic ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
}
.card.bordered { border-color: rgba(6,181,127,0.32); }
.card.danger { border-color: rgba(239,68,68,0.32); background: linear-gradient(180deg, rgba(239,68,68,0.04) 0%, var(--bg-card) 100%); }
.card.success { border-color: rgba(6,181,127,0.32); background: linear-gradient(180deg, rgba(6,181,127,0.04) 0%, var(--bg-card) 100%); }
.card-title {
  font-size: 18px; font-weight: 700; margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.card-title.with-tag { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
}
.tag.neutral { background: rgba(138,160,151,0.12); color: var(--text-muted); }
.tag.accent { background: rgba(6,181,127,0.16); color: var(--accent); }
.tag.team { background: rgba(16,185,129,0.18); color: var(--team); }
.tag.warning { background: rgba(245,158,11,0.14); color: var(--warning); }
.tag.danger { background: rgba(239,68,68,0.14); color: var(--danger); }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 8px 0 8px 28px; position: relative;
  color: var(--text-muted); font-size: 14.5px; line-height: 1.55;
}
.check-list li.pro::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  color: var(--accent); font-weight: 700; font-size: 14px;
}
.check-list li.con::before {
  content: '✗'; position: absolute; left: 0; top: 8px;
  color: var(--danger); font-weight: 700; font-size: 14px;
}
.check-list li.dot::before {
  content: '•'; position: absolute; left: 6px; top: 6px;
  color: var(--accent); font-weight: 700;
}
.check-list li strong { color: var(--text); font-weight: 600; }

/* ===== Tabs (Threads / TikTok) ===== */
.tabs {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.tabs-head {
  display: flex; border-bottom: 1px solid var(--border);
  background: var(--bg-code);
}
.tabs-head button {
  flex: 1; padding: 14px 20px; font: inherit;
  background: transparent; color: var(--text-muted);
  border: 0; cursor: pointer;
  font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: color 0.15s, background 0.15s;
  border-bottom: 2px solid transparent;
  position: relative;
}
.tabs-head button:hover { color: var(--text); background: rgba(6,181,127,0.05); }
.tabs-head button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--bg-card);
}
.tabs-head button .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-dim); transition: background 0.15s;
}
.tabs-head button.active .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tabs-body { padding: 24px; }
.tabs-pane { display: none; }
.tabs-pane.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
  .tabs-head button { padding: 12px 14px; font-size: 13px; }
  .tabs-body { padding: 20px 18px; }
}

/* ===== Accordion (FAQ) ===== */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.15s;
}
.accordion-item.open { border-color: rgba(6,181,127,0.36); }
.accordion-head {
  width: 100%; text-align: left; cursor: pointer;
  padding: 18px 22px; background: transparent; border: 0; color: var(--text);
  font: inherit; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  letter-spacing: -0.01em;
}
.accordion-head:hover { color: var(--accent); }
.accordion-head .chev {
  flex-shrink: 0; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 18px;
  transition: transform 0.2s;
}
.accordion-item.open .accordion-head .chev { transform: rotate(45deg); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-item.open .accordion-body { max-height: 1200px; }
.accordion-body-inner {
  padding: 0 22px 20px; color: var(--text-muted); font-size: 14.5px; line-height: 1.65;
}
.accordion-body-inner p + p { margin-top: 12px; }
.accordion-body-inner ul { margin: 12px 0; padding-left: 20px; }
.accordion-body-inner li { margin-bottom: 6px; }
.accordion-body-inner strong { color: var(--text); font-weight: 600; }
@media (max-width: 720px) {
  .accordion-head { padding: 16px 18px; font-size: 14px; }
  .accordion-body-inner { padding: 0 18px 18px; font-size: 14px; }
}

/* ===== Compare grid (good vs bad / solo vs team / threads vs tiktok) ===== */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.compare-grid.with-vs {
  grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0;
}
.compare-grid.with-vs .vs-mark {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: var(--accent); padding: 0 16px;
  letter-spacing: 0.1em;
}
@media (max-width: 720px) {
  .compare-grid, .compare-grid.with-vs { grid-template-columns: 1fr; gap: 14px; }
  .compare-grid.with-vs .vs-mark { padding: 4px 0; text-align: center; }
}

/* ===== Step navigation (sticky bottom + step list nav) ===== */
.step-nav {
  position: sticky; bottom: 0; z-index: 40;
  background: rgba(10, 15, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.step-nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.step-nav .nav-link {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  color: var(--text-muted); font-size: 13px;
  padding: 8px 12px; border-radius: 8px;
  transition: all 0.15s;
}
.step-nav .nav-link:hover { color: var(--text); background: var(--bg-card); opacity: 1; }
.step-nav .nav-link.disabled { opacity: 0.35; pointer-events: none; }
.step-nav .nav-link .arrow { color: var(--accent); font-size: 18px; }
.step-nav .nav-link .label { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.step-nav .nav-link .label .step { font-size: 10px; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.step-nav .nav-link .label .title {
  font-weight: 600; color: var(--text); font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 240px;
}
.step-nav .nav-link.next { text-align: right; flex-direction: row-reverse; }
.step-nav .nav-link.next .label { align-items: flex-end; }
.step-nav .nav-counter {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .step-nav-inner { padding: 10px 12px; gap: 8px; }
  .step-nav .nav-link .label .title { max-width: 110px; font-size: 12px; }
  .step-nav .nav-link { padding: 8px 6px; }
  .step-nav .nav-counter { display: none; }
}

/* ===== Step ToC (used inside step page near top) ===== */
.toc-strip {
  background: var(--bg-code); border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: relative;
}
.toc-strip-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none;
}
.toc-strip-inner::-webkit-scrollbar { display: none; }
.toc-chip {
  padding: 8px 14px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.toc-chip:hover { color: var(--text); border-color: var(--border-strong); opacity: 1; }
.toc-chip.active {
  background: rgba(6,181,127,0.12); color: var(--accent); border-color: rgba(6,181,127,0.42);
}
.toc-chip .num {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-dim);
  font-weight: 700;
}
.toc-chip.active .num { color: var(--accent); }

/* ===== Funnel ===== */
.funnel-flow {
  display: flex; align-items: stretch; gap: 8px;
  max-width: 880px; margin: 0 auto 32px; flex-wrap: wrap;
  justify-content: center;
}
.funnel-step {
  flex: 1; min-width: 140px;
  padding: 18px 16px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(6,181,127,0.10) 0%, rgba(6,181,127,0.03) 100%);
  border: 1px solid rgba(6,181,127,0.25);
  text-align: center;
}
.funnel-step .num {
  font-family: var(--font-mono); color: var(--accent); font-size: 11px;
  letter-spacing: 0.12em; margin-bottom: 6px;
}
.funnel-step .label { font-size: 17px; font-weight: 700; color: var(--text); }
.funnel-arrow {
  display: flex; align-items: center; color: var(--accent);
  font-size: 22px; padding: 0 4px;
}
@media (max-width: 720px) {
  .funnel-arrow { transform: rotate(90deg); padding: 4px 0; width: 100%; justify-content: center; }
  .funnel-step { width: 100%; }
}

/* ===== Metric tiles ===== */
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 880px; margin: 0 auto;
}
@media (max-width: 760px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
.metric-tile {
  padding: 18px 16px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  text-align: center;
}
.metric-tile .name { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.metric-tile .desc { font-size: 12px; color: var(--text-muted); line-height: 1.45; }

.formula {
  margin-top: 24px; padding: 16px 22px; max-width: 880px; margin-left: auto; margin-right: auto;
  background: linear-gradient(135deg, rgba(6,181,127,0.12) 0%, rgba(6,181,127,0.04) 100%);
  border: 1px solid rgba(6,181,127,0.32);
  border-radius: 12px; text-align: center;
  font-family: var(--font-mono); font-size: 15px; color: var(--text);
  letter-spacing: 0.04em;
}
.formula .accent { color: var(--accent); font-weight: 700; }
.formula .dim { color: var(--text-dim); }

/* ===== Steps grid (hub) ===== */
.steps-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  max-width: 1000px; margin: 0 auto;
}
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  display: flex; gap: 18px; padding: 22px 22px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; text-decoration: none; color: var(--text);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.step-card:hover { border-color: var(--accent); transform: translateY(-2px); opacity: 1; background: linear-gradient(180deg, rgba(6,181,127,0.04) 0%, var(--bg-card) 100%); }
.step-card.disabled {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
  background: var(--bg-card);
}
.step-card.disabled .step-num { background: var(--bg-code); color: var(--text-dim); border-color: var(--border); }
.step-card.completed .step-num {
  background: linear-gradient(135deg, rgba(6,181,127,0.32) 0%, rgba(6,181,127,0.10) 100%);
  border-color: var(--accent);
}
.step-card.current {
  border-color: rgba(6,181,127,0.5);
  background: linear-gradient(180deg, rgba(6,181,127,0.06) 0%, var(--bg-card) 100%);
}
.step-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(6,181,127,0.18) 0%, rgba(6,181,127,0.04) 100%);
  border: 1px solid rgba(6,181,127,0.32);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 18px; font-weight: 700;
  color: var(--accent);
}
.step-meta { flex: 1; min-width: 0; }
.step-title {
  font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.step-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(245,158,11,0.12); color: var(--warning);
  border: 1px solid rgba(245,158,11,0.3);
}
.step-badge.start { background: rgba(6,181,127,0.14); color: var(--accent); border-color: rgba(6,181,127,0.32); }
.step-badge.team { background: rgba(16,185,129,0.14); color: var(--team); border-color: rgba(16,185,129,0.36); }
.step-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.step-foot {
  display: flex; gap: 14px; font-size: 11px; color: var(--text-dim);
  font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.step-foot .arrow { color: var(--accent); margin-left: auto; }

/* ===== Earnings calculator ===== */
.earnings-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 880px; margin: 0 auto;
}
@media (max-width: 720px) { .earnings-grid { grid-template-columns: 1fr; } }
.earn-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 22px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.earn-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.earn-card.featured {
  border-color: rgba(6,181,127,0.45);
  background: linear-gradient(180deg, rgba(6,181,127,0.05) 0%, var(--bg-card) 100%);
}
.earn-time {
  font-size: 12px; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase;
  font-family: var(--font-mono); margin-bottom: 12px;
}
.earn-time .big {
  font-size: 28px; display: block; color: var(--text);
  letter-spacing: 0; text-transform: none; font-weight: 700;
  line-height: 1; margin-bottom: 4px; font-family: var(--font-display);
}
.earn-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-top: 1px solid var(--border); margin-top: 8px;
}
.earn-row:first-of-type { margin-top: 14px; }
.earn-label { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.earn-value { font-size: 16px; color: var(--text); font-weight: 600; }
.earn-disclaim {
  text-align: center; color: var(--text-dim); font-size: 12px;
  margin-top: 22px; max-width: 720px; margin-left: auto; margin-right: auto;
  font-family: var(--font-mono); line-height: 1.6;
}

/* ===== Decision helper list ===== */
.decision-list { max-width: 720px; margin: 0 auto; list-style: none; padding: 0; }
.decision-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  margin-bottom: 10px; gap: 16px;
  transition: border-color 0.15s;
}
.decision-list li:hover { border-color: var(--accent); }
.decision-q { color: var(--text); font-size: 15px; flex: 1; }
.decision-a {
  color: var(--accent); font-family: var(--font-mono); font-size: 13px;
  white-space: nowrap; font-weight: 500;
}

/* ===== Final CTA block ===== */
.cta-block {
  max-width: 760px; margin: 0 auto;
  padding: 40px 32px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top right, rgba(16,185,129,0.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(6,181,127,0.05) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(6,181,127,0.32);
  text-align: center;
}
.cta-block h2 {
  font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 12px; letter-spacing: -0.02em;
  font-weight: 700;
}
.cta-block p { color: var(--text-muted); margin-bottom: 26px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Code-style snippet (CTA examples, sample messages) ===== */
.snippet {
  display: block; padding: 14px 18px; border-radius: 10px;
  background: var(--bg-code); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 14px;
  color: var(--text); line-height: 1.5;
  position: relative;
}
.snippet + .snippet { margin-top: 8px; }
.snippet .copy-btn {
  position: absolute; top: 8px; right: 8px;
  padding: 5px 10px; font: inherit; font-size: 11px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-muted); cursor: pointer;
  transition: all 0.15s;
}
.snippet .copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.snippet .copy-btn.copied { color: var(--accent); border-color: var(--accent); }
.snippet-list { display: flex; flex-direction: column; gap: 10px; }

/* ===== Callouts ===== */
.callout {
  padding: 18px 20px; border-radius: 12px; margin: 18px 0;
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.55;
}
.callout.warn {
  background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.3);
  color: var(--text);
}
.callout.warn::before { content: '⚠'; color: var(--warning); font-size: 18px; line-height: 1.5; flex-shrink: 0; }
.callout.tip {
  background: rgba(6,181,127,0.06); border: 1px solid rgba(6,181,127,0.28);
  color: var(--text);
}
.callout.tip::before { content: '💡'; font-size: 16px; line-height: 1.5; flex-shrink: 0; }
.callout.note {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted);
}
.callout.note::before { content: 'i'; color: var(--accent); font-style: italic; font-weight: 700; font-size: 16px; line-height: 1.5; flex-shrink: 0; padding: 0 4px; }
.callout strong { color: var(--text); font-weight: 600; }

/* ===== Big arrow into next step (end of step page) ===== */
.next-step-card {
  margin: 28px auto 0; max-width: 760px;
  padding: 22px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; gap: 16px;
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none; color: var(--text);
}
.next-step-card:hover { border-color: var(--accent); opacity: 1; transform: translateY(-2px); }
.next-step-card .num {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(6,181,127,0.16) 0%, rgba(6,181,127,0.04) 100%);
  border: 1px solid rgba(6,181,127,0.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-family: var(--font-mono); font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.next-step-card .label { flex: 1; min-width: 0; }
.next-step-card .label .small { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.next-step-card .label .title { font-size: 16px; font-weight: 600; margin-top: 2px; }
.next-step-card .arrow { color: var(--accent); font-size: 22px; flex-shrink: 0; }

/* ===== Quote / pull-quote ===== */
.pull {
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  font-size: 17px; color: var(--text); line-height: 1.5;
  background: rgba(6,181,127,0.04);
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-code);
}
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand-text { font-size: 14px; color: var(--text); font-weight: 600; }
.footer-brand-text .sub { color: var(--text-muted); font-size: 12px; display: block; font-weight: 400; margin-top: 2px; }
.footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-disc {
  font-size: 12px; color: var(--text-dim); line-height: 1.65;
  border-top: 1px solid var(--border); padding-top: 20px;
}
.footer-disc a { color: var(--text-muted); }
.footer-disc .sep { margin: 0 8px; opacity: 0.4; }
@media (max-width: 720px) {
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-orb, .hero-tagline::before, .hero h1 .accent { animation: none; }
}

/* ===== Tooltips (term hover) ===== */
.term {
  border-bottom: 1px dashed rgba(6,181,127,0.5);
  cursor: help;
  position: relative;
}
.term:hover { color: var(--accent); }
.term::after {
  content: attr(data-term);
  position: absolute;
  bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 8px 12px; border-radius: 8px;
  font-size: 12.5px; line-height: 1.5; font-weight: 400;
  white-space: normal; width: max-content; max-width: 280px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s;
  z-index: 60;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.term:hover::after { opacity: 1; }
@media (max-width: 720px) {
  .term::after { display: none; }
}

/* ===== Utility ===== */
.center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.divider { height: 1px; background: var(--border); margin: 32px 0; max-width: 760px; margin-left: auto; margin-right: auto; }
