/*
 * suubbs — guide and comparison pages.
 *
 * Only what the landing and buy stylesheets have no rule for. Everything else
 * on these pages — .nav, .section, .section-head, .kicker, .lede, .feature-grid,
 * .steps, .faq, .local-note, .cta-band, .footer, .btn, .chip, .cap-* — is reused
 * from landing.css and buy-page.css unchanged, so a change to the site's look
 * carries here without being re-made.
 *
 * Nothing in this file overrides a landing.css or buy-page.css rule.
 *
 * What is actually new here is small: these pages are read rather than scanned,
 * so they need a running-text column the marketing pages never wanted, and the
 * comparison pages need a table, which the site had no rule for at all.
 */

/* ================= breadcrumb ================= */

/*
 * Present for the reader first — these pages are landed on cold from a search
 * result, with no idea what the rest of the site is. It doubles as the trail
 * Google renders in place of a raw URL.
 */
.crumbs {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(88px, 13vh, 132px) clamp(20px, 4vw, 48px) 0;
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.crumbs a { color: var(--ink-3); transition: color 0.2s ease; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line-strong); }
.crumbs [aria-current="page"] { color: var(--ink-2); }

/* ================= guide hero ================= */

.guide-hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 48px) clamp(28px, 4vh, 44px);
}

.guide-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  /* Matches .buy-hero: the .cap-lime mark needs leading that clears the box. */
  line-height: 1.36;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.guide-hero h1 .cap-lime {
  padding: 0.04em 0.24em 0.08em;
  border-radius: 0.14em;
}

.guide-hero .lede {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
}

.guide-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ================= running text ================= */

/*
 * 66ch, not the 52ch the marketing ledes use. Those are two-sentence
 * paragraphs sitting beside a graphic; these are pages someone reads to the
 * end, and a measure that short turns a real paragraph into a ladder.
 */
.prose {
  max-width: 66ch;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prose > h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 3.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 26px 0 -4px;
  color: var(--ink);
}

.prose > h2:first-child { margin-top: 0; }

.prose > h3 {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 14px 0 -6px;
  color: var(--ink);
}

.prose p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink-2);
}

.prose strong { color: var(--ink); font-weight: 600; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.2s ease;
}
.prose a:hover { text-decoration-color: var(--ink); }

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.prose li::marker { color: var(--ink-3); }

.prose code {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 1.5px 6px;
  border-radius: 5px;
  background: var(--card);
  color: var(--ink);
  word-break: break-word;
}

/* A command someone is meant to copy, rather than read past. */
.prose pre {
  margin: 4px 0;
  padding: 16px 18px;
  border-radius: var(--r-s);
  background: var(--ink);
  color: #d9fdb4;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
}

.prose pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
  word-break: normal;
}

/* ================= comparison table ================= */

/*
 * Scrolls inside its own box. A comparison table has a minimum readable width
 * that a phone does not have, and the alternative to scrolling it here is the
 * whole page scrolling sideways.
 */
.cmp-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}

.cmp {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
}

.cmp th,
.cmp td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.5;
  vertical-align: top;
}

.cmp thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper-2);
  white-space: nowrap;
}

/* The suubbs column, marked the way the site marks anything it wants read. */
.cmp thead th.is-us {
  color: var(--ink);
  background: color-mix(in srgb, var(--lime) 30%, var(--paper-2));
}

.cmp tbody th {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.cmp td { color: var(--ink-2); }
.cmp td.is-us { color: var(--ink); background: color-mix(in srgb, var(--lime) 12%, transparent); }

.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td { border-bottom: 0; }

.cmp .n { color: var(--ink-3); }

/* ================= verdict ================= */

/*
 * The honest paragraph at the end of a comparison. Coral rule rather than the
 * lime used everywhere else, because its job is to slow the reader down on the
 * one section that tells them not to buy.
 */
.verdict {
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: var(--r-m);
  background: var(--paper-2);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 66ch;
}

.verdict h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

.verdict p {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-2);
}

/* ================= related pages ================= */

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vh, 44px);
}

.related-card {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 20px 22px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.35s var(--ease-spring);
}

.related-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.related-card b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.related-card span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
