/* Search pages (rate-app.com/<slug>, built by scripts/seo/build-guides.mjs).
   One readable column on the site's tokens (styles.css): the same nav,
   footer, buttons and FAQ cards as the landing page. */

.guide-page { background: var(--bg); }

.guide {
  max-width: 760px;
  margin: 0 auto;
  padding: 104px var(--gutter) 24px;
}

.guide-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 26px;
}
.guide-crumbs a { color: var(--text-2); }
.guide-crumbs a:hover { color: var(--text); }

.guide-hero { padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.guide-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(34px, 6.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}
.guide-lede {
  margin-top: 20px;
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 640px;
}
.guide-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 28px;
}
.guide-cta-note { font-size: 13px; color: var(--text-3); }

.guide-section { padding-top: 44px; }
.guide-section h2,
.guide-block h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 16px;
}
.guide-section p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 16px;
}
.guide-section ul {
  list-style: none;
  margin: 6px 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.guide-section li {
  position: relative;
  padding-left: 24px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.guide-section li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.66em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

.guide-block { padding-top: 56px; }

/* "How RATE works": three numbered cards. */
.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}
.guide-steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 64px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}
.guide-steps li strong { display: block; color: var(--text); font-size: 16.5px; margin-bottom: 2px; }
.guide-steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: var(--gradient);
}

.guide-block .faq-list { margin-top: 8px; max-width: none; }

.guide-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.guide-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.guide-related a::after { content: '\203A'; color: var(--salmon); font-size: 20px; line-height: 1; }
.guide-related a:hover { border-color: rgba(226,121,102,0.4); transform: translateY(-1px); }

.guide-final {
  margin: 64px 0 40px;
  padding: 36px 26px;
  text-align: center;
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(226,121,102,0.16), rgba(226,121,102,0) 60%),
    var(--card);
  border: 1px solid rgba(226,121,102,0.25);
}
.guide-final h2 {
  font-weight: 900;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
}
.guide-final p {
  margin: 12px auto 22px;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
}

@media (min-width: 640px) {
  .guide-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
