/* ==========================================================================
   DropDial Setup Guide - Ultra-Clean, Minimal & Modern Design
   Inspired by Apple, Raycast & Stripe Developer Documentation
   ========================================================================== */

/* Layout & Spacing */
.guide-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Header & Intro */
.guide-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.15s ease;
}

.guide-back:hover {
  color: var(--ink);
}

.guide-title {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.guide-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Minimal Tab Switcher */
.guide-tabs {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  margin-top: 28px;
}

.guide-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 550;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.guide-tab-btn:hover {
  color: var(--ink);
}

.guide-tab-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .guide-tab-btn.active {
  background: #ffffff;
  color: #141618;
}

/* Step Flow Container */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Step Block */
.step-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.step-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
}

/* 2-Column Side-by-Side Grid */
.step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Flow Filter Toggles */
body[data-flow="mac"] .step-grid {
  grid-template-columns: 1fr;
}
body[data-flow="mac"] .step-card.win {
  display: none !important;
}

body[data-flow="win"] .step-grid {
  grid-template-columns: 1fr;
}
body[data-flow="win"] .step-card.mac {
  display: none !important;
}

/* Step Card */
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease;
}

.step-card:hover {
  border-color: rgba(255, 101, 0, 0.35);
}

/* Card Header */
.step-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.step-card.mac .platform-pill {
  color: #38bdf8;
}

.step-card.win .platform-pill {
  color: #0078d4;
}

.badge-subtle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.badge-subtle.highlight {
  color: #ff6500;
  border-color: rgba(255, 101, 0, 0.3);
  background: rgba(255, 101, 0, 0.08);
}

/* Clean Instructions List */
.step-card ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-card li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
}

.step-card li strong {
  font-weight: 650;
}

.step-card li p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 3px;
  line-height: 1.4;
}

/* Clean Terminal Snippet */
.cmd-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 6px;
}

.cmd-box code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 0;
  white-space: nowrap;
  overflow-x: auto;
}

.copy-mini-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.copy-mini-btn:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* Card Bottom Action / Notice */
.step-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.step-card-foot .hint {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-card-foot a.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.step-card-foot a.btn-mini:hover {
  opacity: 0.9;
}

/* Quick Reference Table */
.guide-summary-section {
  margin-top: 60px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}

.guide-summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.guide-summary-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.clean-table th {
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.clean-table td {
  padding: 12px 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.clean-table tr:last-child td {
  border-bottom: none;
}

/* Simple FAQ Section */
.guide-faq-section {
  margin-top: 48px;
}

.guide-faq-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 20px;
}

.faq-simple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-simple-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}

.faq-simple-card h4 {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.faq-simple-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* Responsive */
@media (max-width: 800px) {
  .step-grid {
    grid-template-columns: 1fr;
  }
  .faq-simple-grid {
    grid-template-columns: 1fr;
  }
  .guide-page {
    padding: 24px 16px 60px;
  }
  .clean-table {
    display: block;
    overflow-x: auto;
  }
}
