/* Shared stylesheet for the manual pages — reuses landing/index.html's design tokens. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #3b82f6;
  --brand-dark:   #2563eb;
  --brand-light:  #eff6ff;
  --accent:       #6366f1;
  --success:      #22c55e;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --text-h:       #0f172a;
  --text-b:       #334155;
  --text-m:       #64748b;
  --bg:           #f8fafc;
  --card:         #ffffff;
  --border:       #e2e8f0;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:    0 16px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.07);
  --radius:       12px;
  --radius-lg:    18px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-b);
  line-height: 1.6;
}

a { color: var(--brand); }

/* ── NAV ─────────────────────────────────────────────── */
.manual-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.manual-nav-logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; color: var(--text-h); text-decoration: none; }
.manual-nav-links { display: flex; align-items: center; gap: 1.8rem; }
.manual-nav-links a { color: var(--text-m); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .15s; }
.manual-nav-links a:hover, .manual-nav-links a.active { color: var(--brand); }
.manual-nav-cta { background: var(--brand); color: #fff !important; border: none; padding: .45rem 1.1rem; border-radius: 8px; font-size: .875rem; font-weight: 600; text-decoration: none; }

/* ── LAYOUT ──────────────────────────────────────────── */
.manual-container { max-width: 880px; margin: 0 auto; padding: 3.5rem 1.5rem 6rem; }
.manual-eyebrow { display: inline-block; background: var(--brand-light); color: var(--brand); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.manual-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--text-h); letter-spacing: -.03em; line-height: 1.2; margin-bottom: 1rem; }
.manual-lede { font-size: 1.05rem; color: var(--text-m); max-width: 640px; line-height: 1.7; margin-bottom: 2rem; }

/* ── SECTION CARD GRID (manual hub) ─────────────────── */
.manual-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.manual-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; text-decoration: none; display: block;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.manual-card.available { cursor: pointer; }
.manual-card.available:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(59,130,246,.35); }
.manual-card.soon { cursor: default; opacity: .6; }
.manual-card-icon { font-size: 1.6rem; margin-bottom: .75rem; }
.manual-card-title { font-size: 1rem; font-weight: 700; color: var(--text-h); margin-bottom: .35rem; }
.manual-card-desc { font-size: .85rem; color: var(--text-m); line-height: 1.55; margin-bottom: .75rem; }
.manual-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; }
.manual-badge.available { background: #f0fdf4; color: #15803d; }
.manual-badge.soon { background: #f1f5f9; color: #64748b; }

/* ── STEP LIST (manual page) ──────────────────────────── */
.manual-banner {
  display: flex; align-items: center; gap: .75rem;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2.5rem;
  font-size: .9rem; line-height: 1.5;
}
.manual-step { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.manual-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.manual-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-size: .85rem; font-weight: 800; margin-right: .6rem; flex-shrink: 0;
}
.manual-step-title { display: flex; align-items: center; font-size: 1.2rem; font-weight: 700; color: var(--text-h); margin-bottom: .75rem; }
.manual-step-body { font-size: .95rem; color: var(--text-b); line-height: 1.7; }
.manual-step-body p { margin-bottom: .9rem; }
.manual-step-body p:last-child { margin-bottom: 0; }
.manual-step-body code { background: #f1f5f9; padding: .1rem .4rem; border-radius: 4px; font-size: .85em; }
.manual-step-body ul { margin: .5rem 0 .9rem 1.25rem; }
.manual-step-body li { margin-bottom: .35rem; }

/* ── SCREENSHOT PLACEHOLDER ───────────────────────────── */
.shot-placeholder {
  border: 2px dashed #cbd5e1; border-radius: var(--radius);
  background: #f8fafc; padding: 2.5rem 1.5rem; text-align: center; margin-top: 1.25rem;
}
.shot-placeholder .shot-icon { font-size: 1.8rem; margin-bottom: .5rem; opacity: .5; }
.shot-placeholder .shot-caption { font-size: .85rem; color: var(--text-m); font-weight: 600; }
.shot-placeholder .shot-viewport { font-size: .75rem; color: #94a3b8; margin-top: .25rem; font-family: monospace; }

/* ── SCREENSHOT (real) ────────────────────────────────── */
.shot { margin-top: 1.25rem; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.shot figcaption {
  font-size: .85rem; color: var(--text-m); font-weight: 600;
  text-align: center; margin-top: .6rem;
}
.shot figcaption .shot-viewport {
  display: block; font-size: .75rem; color: #94a3b8; font-weight: 400;
  margin-top: .2rem; font-family: monospace;
}

/* ── FOOTER ──────────────────────────────────────────── */
.manual-footer {
  background: #0f172a; color: #475569; padding: 2.5rem 2rem;
  text-align: center; font-size: .85rem; line-height: 1.8;
}
.manual-footer a { color: #64748b; text-decoration: none; }
.manual-footer a:hover { color: #94a3b8; }

@media (max-width: 640px) {
  .manual-nav-links a:not(.manual-nav-cta) { display: none; }
  .manual-container { padding: 2.5rem 1.25rem 4rem; }
}
