/* ───────────────────────────────────────────────────────────────
   DeftBid — Marketing site ("Ink" direction)
   Secondary pages (/faq, /contractor-estimating-software) — page header band,
   FAQ section index + question list, and the step flow list.
   Consumes the A1 tokens + base/sections vocabulary; no raw brand hex.
   ─────────────────────────────────────────────────────────────── */

/* ── Header band: same canvas as the hero, shorter ────────────── */
.page-hero {
  /* Clear the 70px fixed nav that overlays this canvas (mirrors .hero). */
  padding-top: calc(70px + clamp(40px, 6vw, 76px));
  padding-bottom: clamp(40px, 5vw, 64px);
}
.page-hero__eyebrow {
  font-family: var(--font-mono, 'Spline Sans Mono', monospace);
  font-weight: 600; font-size: 12.5px;
  letter-spacing: var(--tracking-eyebrow, 0.16em); text-transform: uppercase;
  color: var(--on-dark, #6FA0FF);
  margin-bottom: 18px;
}
.page-hero__title {
  font-family: var(--font-sans, 'Archivo', sans-serif); font-weight: 900;
  font-size: clamp(36px, 5.6vw, 64px); letter-spacing: var(--tracking-hero, -0.04em);
  line-height: 1.0; color: #fff; max-width: 760px;
}
.page-hero__title .accent { color: var(--on-dark, #6FA0FF); }
.page-hero__lede {
  font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.55;
  color: var(--text-on-dark, rgba(255,255,255,0.66));
  max-width: 620px; margin-top: 20px;
}

/* ── Body: index rail + questions ─────────────────────────────── */
.faq__grid {
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px); align-items: start;
}

/* Section index — sticks under the fixed nav on wide screens. */
.faq-index { position: sticky; top: 94px; }
.faq-index__label {
  font-family: var(--font-mono, monospace); font-weight: 600; font-size: 11.5px;
  letter-spacing: var(--tracking-eyebrow, 0.16em); text-transform: uppercase;
  color: var(--muted, #586170); margin-bottom: 10px;
}
.faq-index ul { list-style: none; display: flex; flex-direction: column; }
.faq-index a {
  display: inline-flex; align-items: center; min-height: 44px;   /* ≥44px tap target */
  font-size: 15px; font-weight: 600; color: var(--muted, #586170);
  text-decoration: none; transition: color .15s ease;
}
.faq-index a:hover { color: var(--ink, #14171C); }
.faq-index a:focus-visible { outline: 2px solid var(--cobalt, #2D6BF0); outline-offset: 3px; border-radius: 6px; }

/* Topic groups */
.faq-group + .faq-group { margin-top: clamp(48px, 6vw, 72px); }
/* Anchored headings land below the 70px fixed nav instead of under it. */
.faq-group__title, .faq-item { scroll-margin-top: 94px; }
.faq-group__title {
  font-family: var(--font-sans, 'Archivo', sans-serif); font-weight: 800;
  font-size: clamp(24px, 3vw, 32px); letter-spacing: var(--tracking-section, -0.03em);
  line-height: 1.1; color: var(--ink, #14171C);
  padding-bottom: 16px; border-bottom: 1px solid var(--line, rgba(20,23,28,0.10));
}

/* One question. Plain headings + paragraphs (not collapsed) so every answer is
   readable, indexable, and findable with the browser's own page search. */
.faq-item { padding: 26px 0; border-bottom: 1px solid var(--line-2, rgba(20,23,28,0.06)); }
.faq-item:last-child { border-bottom: 0; }
.faq-item__q {
  font-weight: 700; font-size: 19px; letter-spacing: -0.015em; line-height: 1.3;
  color: var(--ink, #14171C);
}
.faq-item__q a { text-decoration: none; }
.faq-item__q a:hover { text-decoration: underline; text-decoration-color: var(--cobalt, #2D6BF0); text-underline-offset: 3px; }
.faq-item__q a:focus-visible { outline: 2px solid var(--cobalt, #2D6BF0); outline-offset: 3px; border-radius: 6px; }
.faq-item__a { margin-top: 10px; }
.faq-item__a p { font-size: 16px; line-height: 1.6; color: var(--muted, #586170); max-width: 66ch; }
.faq-item__a p + p { margin-top: 10px; }
.faq-item__a a { color: var(--bid-text, #1B4DC2); text-decoration: underline; text-underline-offset: 3px; }
.faq-item__a a:hover { color: var(--solid, #2052D6); }
.faq-item__a a:focus-visible { outline: 2px solid var(--cobalt, #2D6BF0); outline-offset: 2px; border-radius: 4px; }
.faq-item__a strong { color: var(--ink, #14171C); font-weight: 700; }
.faq-item__a ul { margin-top: 10px; padding-left: 22px; max-width: 66ch; }
.faq-item__a li { font-size: 16px; line-height: 1.6; color: var(--muted, #586170); }
.faq-item__a li + li { margin-top: 6px; }

@media (max-width: 880px) {
  .faq__grid { grid-template-columns: 1fr; gap: 28px; }
  /* Index becomes a wrapped row of jump links above the content. */
  .faq-index { position: static; }
  .faq-index ul { flex-direction: row; flex-wrap: wrap; gap: 4px 22px; }
}

/* ── Step flow (numbered, vertical) — the SEO page's "How DeftBid works" ── */
.flow { list-style: none; counter-reset: flow; max-width: 720px; margin: 44px auto 0; }
.flow__step {
  counter-increment: flow; display: grid; grid-template-columns: 50px 1fr; gap: 18px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--line-2, rgba(20,23,28,0.06));
}
.flow__step:first-child { border-top: 0; }
.flow__step::before {
  content: counter(flow, decimal-leading-zero);
  font-family: var(--font-mono, monospace); font-weight: 600; font-size: 14px; letter-spacing: .05em;
  color: var(--bid-text, #1B4DC2); background: rgba(45,107,240,0.10); border-radius: 14px;
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
}
.flow__title { font-weight: 800; font-size: 19px; letter-spacing: -0.015em; color: var(--ink, #14171C); margin-top: 12px; }
.flow__body { font-size: 15.5px; line-height: 1.55; color: var(--muted, #586170); margin-top: 6px; max-width: 60ch; }

/* ── Two-column prose block: section head left, points right ── */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 68px); align-items: start; }
.split .client-points { margin-top: 0; }
.split__note { font-size: 15px; line-height: 1.55; color: var(--muted, #586170); margin-top: 22px; max-width: 46ch; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* ── Audience chips ── */
.audience { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; max-width: 760px; margin-inline: auto; }
.audience li {
  list-style: none; font-weight: 600; font-size: 15px; color: var(--ink, #14171C);
  background: var(--card, #fff); border: 1px solid var(--line, rgba(20,23,28,0.10));
  border-radius: 999px; padding: 10px 16px;
}

/* ── Prose (About page body, blog posts) ─────────────────────── */
.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--font-sans, 'Archivo', sans-serif); font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.025em; line-height: 1.15;
  color: var(--ink, #14171C); margin-top: 40px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 700; font-size: 19px; letter-spacing: -0.015em; color: var(--ink, #14171C); margin-top: 28px; }
.prose p { font-size: 17px; line-height: 1.65; color: var(--muted, #586170); margin-top: 14px; }
.prose ul, .prose ol { margin-top: 14px; padding-left: 22px; }
.prose li { font-size: 17px; line-height: 1.65; color: var(--muted, #586170); }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink, #14171C); font-weight: 700; }
.prose a { color: var(--bid-text, #1B4DC2); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--solid, #2052D6); }
.prose a:focus-visible { outline: 2px solid var(--cobalt, #2D6BF0); outline-offset: 2px; border-radius: 4px; }
.prose blockquote {
  margin-top: 18px; padding: 4px 0 4px 20px; border-left: 3px solid var(--cobalt, #2D6BF0);
  font-size: 18px; line-height: 1.55; color: var(--ink, #14171C);
}

/* ── Blog ─────────────────────────────────────────────────────── */
.post-meta {
  font-family: var(--font-mono, monospace); font-weight: 600; font-size: 12.5px;
  letter-spacing: var(--tracking-eyebrow, 0.16em); text-transform: uppercase;
  color: var(--muted, #586170);
}
.page-hero .post-meta { color: var(--on-dark, #6FA0FF); margin-bottom: 18px; }
.post-list { list-style: none; display: grid; gap: 22px; max-width: 760px; }
.post-card {
  display: block; background: var(--card, #fff); border-radius: var(--radius-card, 22px); padding: 28px;
  border: 1px solid var(--line-2, rgba(20,23,28,0.06)); box-shadow: var(--shadow-card);
  text-decoration: none; transition: transform .12s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-elevated); }
.post-card:focus-visible { outline: 2px solid var(--cobalt, #2D6BF0); outline-offset: 3px; }
.post-card__title { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink, #14171C); margin-top: 10px; }
.post-card__excerpt { font-size: 15.5px; line-height: 1.55; color: var(--muted, #586170); margin-top: 8px; }
.post-card__more { font-weight: 700; font-size: 15px; color: var(--bid-text, #1B4DC2); margin-top: 14px; display: inline-block; }
.post-foot { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line, rgba(20,23,28,0.10)); }
.post-foot a { font-weight: 700; color: var(--bid-text, #1B4DC2); text-decoration: none; }
.post-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Comparison page (/deftbid-vs-joist) ─────────────────────── */
.verdicts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.verdict {
  background: var(--card, #fff); border-radius: var(--radius-card, 22px); padding: 30px 28px;
  border: 1px solid var(--line-2, rgba(20,23,28,0.06)); box-shadow: var(--shadow-card);
}
.verdict--deftbid { border-color: rgba(45,107,240,0.35); box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(45,107,240,0.25); }
.verdict__eyebrow {
  font-family: var(--font-mono, monospace); font-weight: 600; font-size: 12px;
  letter-spacing: var(--tracking-eyebrow, 0.16em); text-transform: uppercase; color: var(--bid-text, #1B4DC2);
}
.verdict__title { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink, #14171C); margin-top: 10px; }
.verdict ul { margin-top: 14px; padding-left: 20px; }
.verdict li { font-size: 15.5px; line-height: 1.55; color: var(--muted, #586170); }
.verdict li + li { margin-top: 6px; }
@media (max-width: 760px) { .verdicts { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; } }

/* The table scrolls inside its own box on narrow screens; the page never scrolls sideways. */
.compare-wrap { overflow-x: auto; margin-top: 44px; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--card, #fff); border-radius: var(--radius-card, 22px); overflow: hidden; box-shadow: var(--shadow-card); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line-2, rgba(20,23,28,0.06)); font-size: 15px; line-height: 1.5; }
.compare thead th { font-family: var(--font-mono, monospace); font-weight: 600; font-size: 12px; letter-spacing: var(--tracking-eyebrow, 0.16em); text-transform: uppercase; color: var(--muted, #586170); background: var(--card-2, #F4F7FB); }
.compare thead th.is-deftbid { color: var(--bid-text, #1B4DC2); }
.compare tbody th { font-weight: 700; color: var(--ink, #14171C); width: 24%; }
.compare td { color: var(--muted, #586170); width: 38%; }
.compare td.is-deftbid { color: var(--ink, #14171C); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--go, #157A52); font-weight: 700; }
.compare .no { color: var(--muted, #586170); }
.compare__note { font-size: 13.5px; line-height: 1.5; color: var(--muted, #586170); margin-top: 14px; max-width: 70ch; }

/* Marketing's one-line positioning statement under the page title (FAQ). */
.page-hero__tagline { font-weight: 700; font-size: clamp(17px, 1.7vw, 20px); color: #fff; margin-top: 18px; letter-spacing: -0.01em; }
.page-hero__tagline + .page-hero__lede { margin-top: 10px; }
