/* The buyer's guide (templates/website/choose_provider.html). Loads after
   landing.css and borrows its glossary hero. */
.guide-inner { max-width: 780px; margin: 0 auto; }
.guide-title { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.08; }
.guide-body { background: #f8fafc; padding: clamp(48px, 6vw, 80px) 24px; }

.guide-q { padding: 26px 0; border-bottom: 1px solid rgba(10,22,40,0.1); }
.guide-q:first-of-type { padding-top: 0; }
.guide-q summary {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a1628;
  cursor: pointer;
  margin: 0 0 12px;
}
.guide-q p { font-size: 1.02rem; line-height: 1.7; color: rgba(10,22,40,0.78); margin: 0 0 12px; text-wrap: pretty; }
.guide-q .guide-us {
  background: #ffffff;
  border-left: 3px solid #f59e0b;
  border-radius: var(--oi-r-ctl);
  padding: 14px 16px;
  margin: 0;
  color: #0a1628;
}
.guide-q a, .guide-next a { color: #0a1628; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #f59e0b; }
.guide-next { margin: 40px 0 0; font-size: 1.05rem; color: rgba(10,22,40,0.78); }

@media (max-width: 720px) {
  .guide-body { padding: 40px 16px; }
}

/* The method page (templates/website/framework_method.html): numbered steps. */
.method-steps { list-style: none; counter-reset: step; margin: 0 0 56px; padding: 0; }
.method-step {
  counter-increment: step;
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(10,22,40,0.08);
  border-radius: var(--oi-r-card);
  padding: 24px 24px 12px 76px;
  margin: 0 0 16px;
}
.method-step::before {
  content: counter(step);
  position: absolute; left: 24px; top: 22px;
  width: 34px; height: 34px;
  border-radius: var(--oi-r-pill);
  background: #0a1628; color: #f59e0b;
  font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.method-step h2 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 800; letter-spacing: -0.02em; color: #0a1628; margin: 4px 0 12px; }
.method-step p { font-size: 1.02rem; line-height: 1.7; color: rgba(10,22,40,0.78); margin: 0 0 12px; text-wrap: pretty; }
.method-step a { color: #0a1628; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #f59e0b; }
.method-codes { margin: 0 0 12px; padding-left: 20px; color: rgba(10,22,40,0.78); line-height: 1.7; }
.method-faq-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: #0a1628; margin: 0 0 24px; }

@media (max-width: 720px) {
  .method-step { padding: 64px 18px 8px; }
  .method-step::before { left: 18px; top: 18px; }
}

/* Pinned rail beside the steps (desktop). The step being read lights up
   in the rail and the other cards step back. Dimming is keyed on an
   `.is-active` step existing, which only motion.js sets — so with the
   script blocked every step stays at full strength. */
.method-pin { max-width: 780px; margin: 0 auto; }
.method-rail { display: none; }

@media (min-width: 1000px) {
  .method-pin {
    max-width: 1060px;
    display: grid;
    grid-template-columns: 220px minmax(0, 780px);
    gap: 56px;
    align-items: start;
  }
  .method-rail { display: block; position: sticky; top: 120px; }
  .method-rail ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgba(10,22,40,0.08); }
  .method-rail li {
    position: relative;
    padding: 10px 0 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(10,22,40,0.42);
  }
  .method-rail li span { display: inline-block; width: 30px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; color: rgba(10,22,40,0.3); }
  .method-rail li::before {
    content: "";
    position: absolute; left: -2px; top: 6px; bottom: 6px;
    width: 2px;
    background: #f59e0b;
    transform: scaleY(0);
  }
  .method-rail li.is-active { color: #0a1628; }
  .method-rail li.is-active span { color: #f59e0b; }
  .method-rail li.is-active::before { transform: none; }

  .method-pin:has(.method-step.is-active) .method-step:not(.is-active) { opacity: 0.5; }
  .method-step.is-active {
    border-color: rgba(245,158,11,0.45);
    box-shadow: 0 18px 40px -24px rgba(245,158,11,0.35), 0 10px 24px -18px rgba(10,22,40,0.2);
  }
}

@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .method-rail li, .method-rail li span { transition: color 300ms ease; }
  .method-rail li::before { transition: transform 360ms cubic-bezier(0.16,1,0.3,1); }
  .method-step { transition: opacity 420ms cubic-bezier(0.16,1,0.3,1), border-color 300ms ease, box-shadow 420ms ease; }
}
