/* Guide page — builds on style.css tokens and base styles. */

.guide-wrap { max-width: 840px; }

/* ---------- top navigation ---------- */

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 44px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.brand .logo { width: 30px; height: 20px; }
.brand:hover { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.back {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.back:hover { color: var(--accent); }
.guide-lang { position: static; }

/* ---------- hero ---------- */

.guide-hero { margin-bottom: 34px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.guide-hero h1 {
  display: block;
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.guide-hero .lede {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.guide-cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: filter .15s, transform .05s;
}
.guide-cta:hover { filter: brightness(1.07); }
.guide-cta:active { transform: translateY(1px); }

/* ---------- table of contents ---------- */

.toc {
  margin-bottom: 42px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.toc h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.toc ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 26px;
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
}
.toc a {
  color: var(--fg);
  text-decoration: none;
}
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- sections ---------- */

.guide-section {
  margin-bottom: 40px;
  scroll-margin-top: 24px;
}
.guide-section h2 {
  margin: 0 0 12px;
  font-size: 21px;
  letter-spacing: -.01em;
}
.guide-section p {
  margin: 0 0 12px;
  line-height: 1.75;
}
.guide-section p:last-child { margin-bottom: 0; }
.guide-section .spaced { margin-top: 16px; }

/* ---------- why cards ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}
.why-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.why-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- steps ---------- */

.steps {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 38px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 13%, var(--panel));
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.steps strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}
.steps span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.note-box {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ---------- closing CTA ---------- */

.guide-cta-box {
  margin-top: 48px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}
.guide-cta-box h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -.01em;
}
.guide-cta-box p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.guide-footer {
  margin-top: 34px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .guide-nav { margin-bottom: 30px; }
  .nav-right { width: 100%; justify-content: space-between; }
  .back { order: 2; }
  .guide-hero h1 { font-size: 30px; }
  .guide-hero .lede { font-size: 15px; }
  .toc ol { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .guide-section h2 { font-size: 19px; }
}
