/* Guidecom Docs — shared stylesheet */

:root {
  --navy: #1e2a3a;
  --navy-light: #2a3a4f;
  --steel: #5b9bd5;
  --steel-light: #e8f1fa;
  --text: #1e2a3a;
  --text-muted: #5f6b7c;
  --text-light: #8b95a3;
  --bg: #fafbfc;
  --surface: #ffffff;
  --border: #e5e9ef;
  --border-strong: #d0d6de;
  --warning-bg: #fff8e7;
  --warning-border: #f5a623;
  --warning-text: #5c4015;
  --annotation: #e53935;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--steel);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ============ LAYOUT ============ */

.site {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* ============ SIDEBAR ============ */

.sidebar {
  background: var(--navy);
  color: #fff;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-logo a {
  color: var(--surface);
  font-family: "Plus Jakarta Sans", sans-serif !important;
  letter-spacing: -1.5px;
  font-size: 26px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.sidebar-logo a span {
  color: var(--steel);
}

.sidebar-logo p {
  font-size: 18px;
  color: rgba(255, 255, 255);
  margin-top: 4px;
  font-weight: 500;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0 24px;
  margin-bottom: 12px;
}

.sidebar-nav {
  list-style: none;
  padding: 0 12px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin: 1px 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.sidebar-nav a.current {
  background: var(--steel);
  color: #fff;
  font-weight: 600;
}

.sidebar-nav .step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  font-family: "Manrope", sans-serif;
}

.sidebar-nav a.current .step-num {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-footer {
  padding: 20px 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.sidebar-footer a {
  color: var(--steel);
}

/* ============ MAIN CONTENT ============ */

.main {
  background: var(--surface);
  min-height: 100vh;
}

.content-wrap {
  max-width: 760px;
  padding: 56px 56px 32px;
}

.step-badge {
  display: inline-block;
  background: var(--steel);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1.step-title {
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.15;
}

.step-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 620px;
  line-height: 1.5;
}

/* Section headings inside a step */
h2.section-title {
  font-size: 22px;
  color: var(--navy);
  margin: 40px 0 14px;
}

/* ============ BEFORE YOU START ============ */

.before-box {
  border-left: 3px solid var(--steel);
  background: var(--steel-light);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 36px;
}

.before-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.before-text {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.6;
}

/* ============ STEP ITEMS ============ */

.step-item {
  margin-bottom: 32px;
}

.step-item-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.step-number {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--steel);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  font-family: "Manrope", sans-serif;
}

.step-instruction {
  flex: 1;
  font-size: 15px;
  color: var(--text);
  padding-top: 4px;
  line-height: 1.55;
}

.ui-chip {
  background: var(--navy);
  color: #fff;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
  vertical-align: baseline;
}

/* ============ SCREENSHOTS ============ */

.screenshot-wrap {
  margin-left: 44px;
  max-width: 560px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.screenshot-wrap.narrow {
  max-width: 320px;
}

.screenshot-frame {
  position: relative;
  width: 100%;
  background: #f6f6f7;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-frame svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.screenshot-caption {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 14px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ============ CALLOUTS ============ */

.callout {
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.callout-label {
  font-weight: 600;
  margin-right: 6px;
}

.callout.warning {
  background: var(--warning-bg);
  border-left: 3px solid var(--warning-border);
  color: var(--warning-text);
}

.callout.tip {
  background: var(--steel-light);
  border-left: 3px solid var(--steel);
  color: var(--navy);
}

/* ============ WHAT JUST HAPPENED ============ */

.whathappened {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  margin-top: 36px;
}

.whathappened-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.whathappened-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* ============ FOOTER NAV ============ */

.footer-nav {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.footer-nav a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
  color: var(--text);
  min-width: 200px;
}

.footer-nav a:hover {
  border-color: var(--steel);
  background: var(--steel-light);
  text-decoration: none;
}

.footer-nav a.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.footer-nav .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.footer-nav .title {
  font-weight: 600;
  color: var(--navy);
}

.footer-nav a.next {
  text-align: right;
  margin-left: auto;
}

/* ============ STUB PAGE ============ */

.stub {
  text-align: center;
  padding: 80px 40px;
  max-width: 500px;
  margin: 0 auto;
}

.stub-icon {
  width: 56px;
  height: 56px;
  background: var(--steel-light);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  font-size: 24px;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
}

.stub h2 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 10px;
}

.stub p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ============ TAB TOUR (Step 4) ============ */

.tab-tour-item {
  margin-bottom: 36px;
}

.tab-tour-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.tab-tour-label {
  flex-shrink: 0;
  background: var(--steel-light);
  color: var(--steel);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: "Manrope", sans-serif;
}

.tab-tour-title {
  font-size: 20px;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.tab-tour-desc {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 620px;
}

/* ============ INDEX PAGE ============ */

.intro {
  padding: 72px 56px 48px;
  max-width: 720px;
}

.intro .step-badge {
  background: var(--navy);
}

.intro h1 {
  font-size: 42px;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.1;
}

.intro .lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 40px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 56px 72px;
  max-width: 960px;
}

.step-card {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.step-card:hover {
  border-color: var(--steel);
  background: var(--steel-light);
  text-decoration: none;
  transform: translateY(-1px);
}

.step-card-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.step-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  margin-bottom: 4px;
}

.step-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .site {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px 0;
  }
  .sidebar-nav a {
    font-size: 13px;
    padding: 7px 12px;
  }
  .content-wrap {
    padding: 32px 24px;
  }
  .intro {
    padding: 40px 24px 24px;
  }
  .step-grid {
    grid-template-columns: 1fr;
    padding: 0 24px 48px;
  }
  h1.step-title {
    font-size: 28px;
  }
  .step-subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .screenshot-wrap {
    margin-left: 0;
  }
  .step-item-header {
    flex-direction: column;
    gap: 8px;
  }
  .footer-nav {
    flex-direction: column;
  }
  .footer-nav a.next {
    text-align: left;
    margin-left: 0;
  }
}
