/* Flettons v2 — guidance pages (compare surveys, survey costs, sample reports, FAQs)
   Only what site.css lacks. Page-specific rules are scoped under body.route-guidance-*. */

/* Utilities ---------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Shared guidance blocks ---------------------------------------------------- */
.plan__badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; line-height: 1.3; text-transform: uppercase; }
.g-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.g-foot { margin-top: 30px; color: var(--muted); font-size: 0.98rem; }
.g-foot a { color: var(--accent-ink); font-weight: 600; }
.g-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.g-related { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.page-hero__aside dd { line-height: 1.45; }
.page-hero__aside dd span.g-sub { display: block; margin-top: 2px; font-weight: 400; color: var(--on-dark-muted); font-size: 0.92rem; }
.cta .page-hero__meta { margin-top: 26px; }
.cta p.g-cta-note { margin-top: 20px; font-size: 0.98rem; }
.g-cta-note a { color: var(--on-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Level cards (short "which level" summaries) */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); column-gap: 20px; row-gap: 0; }
.level { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; align-content: start; padding: 30px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.45); }
.level h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.95rem); line-height: 1.12; letter-spacing: -0.01em; font-variation-settings: "SOFT" 40, "opsz" 48; }
.level__best { font-weight: 600; }
.level p { color: var(--muted); font-size: 0.96rem; }
.level p.level__best { color: var(--text); font-size: 1rem; }
.level .link { margin-top: 6px; font-size: 0.95rem; }
.level--featured { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.level--featured p { color: var(--on-dark-muted); }
.level--featured p.level__best { color: var(--on-dark); }
.level--featured .g-tag, .level--featured .link { color: var(--accent-bright); }
.level--featured .plan__badge { background: var(--accent-bright); color: var(--ink); }

/* Report covers */
.covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.cover { margin: 0; display: grid; gap: 18px; align-content: start; }
.cover__frame { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink); }
.cover__frame img { width: 100%; height: auto; aspect-ratio: 595 / 842; object-fit: cover; transition: transform .45s ease; }
a.cover__frame:hover img { transform: scale(1.015); }
.cover figcaption { display: grid; gap: 8px; }
.cover h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 1.2rem + 0.7vw, 1.85rem); line-height: 1.15; font-variation-settings: "SOFT" 40, "opsz" 48; }
.cover p { color: var(--muted); font-size: 0.96rem; }
.cover__meta { font-size: 0.85rem !important; }
.cover .link { margin-top: 4px; font-size: 0.95rem; }
.evidence__cover { justify-self: center; width: 100%; max-width: 460px; }

/* 1. Compare surveys ------------------------------------------------------- */
.route-guidance-compareSurveys .compare-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.compare-hint { display: none; margin: 0 0 12px; font-size: 0.85rem; color: var(--muted); }
.compare-wrap:focus-visible { outline-offset: 6px; }
.compare { table-layout: fixed; min-width: 720px; }
.compare col.compare__label { width: 40%; }
.compare thead th { top: 0; background: var(--bone-2); padding-top: 26px; padding-bottom: 22px; vertical-align: bottom; }
.compare thead th.is-featured { background: var(--ink); border-radius: var(--r) var(--r) 0 0; }
.compare__name { display: block; }
.compare__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 10px; font-family: var(--sans); }
.compare__price .price-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.compare__price .price { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--text); font-variation-settings: "SOFT" 20, "opsz" 72; }
.compare thead .is-featured .price-label { color: var(--on-dark-muted); }
.compare thead .is-featured .price { color: var(--on-dark); }
.compare thead th:not(:first-child), .compare td { text-align: center; }
.compare__price { justify-content: center; }
.compare tbody th, .compare td { vertical-align: middle; }
.compare tbody th { font-weight: 500; }
.compare tbody th strong { display: block; font-weight: 500; }
.compare tbody th span { display: block; margin-top: 2px; font-size: 0.86rem; font-weight: 400; color: var(--muted); }
.compare tbody td.is-featured { background: rgba(224, 16, 107, 0.08); }
.compare .compare__group th { padding-top: 34px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); background: var(--bone-2); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); text-align: left; }
.compare .compare__group th.is-featured { background: rgba(224, 16, 107, 0.08); }
.compare__note { font-size: 0.94rem; font-weight: 600; color: var(--text); }
.compare__extra { display: grid; justify-items: center; gap: 2px; font-size: 0.94rem; font-weight: 600; color: var(--text); }
.compare__extra small { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.compare tbody:last-child tr:last-child th, .compare tbody:last-child tr:last-child td { border-bottom-color: var(--ink); }
.compare-help { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; margin-top: clamp(40px, 5vw, 64px); padding: 30px 34px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bone); }
.compare-help h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.15; font-variation-settings: "SOFT" 40, "opsz" 48; }
.compare-help p { margin-top: 6px; color: var(--muted); }
.compare-help__links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.route-guidance-compareSurveys .evidence { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.route-guidance-compareSurveys .evidence h2 { margin-bottom: 20px; }
.route-guidance-compareSurveys .evidence .sec__intro + .link { margin-top: 26px; }

/* 2. Survey costs ---------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); column-gap: 20px; row-gap: 0; }
.tier { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; padding: 34px 32px 32px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.45); }
.tier h3 { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); line-height: 1.1; letter-spacing: -0.01em; font-variation-settings: "SOFT" 40, "opsz" 48; }
.tier__best { margin-top: 16px; font-weight: 600; }
.tier__copy { margin-top: 8px; color: var(--muted); font-size: 0.96rem; }
.tier__price { display: flex; align-items: baseline; gap: 10px; margin-top: 26px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tier__price .price-label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tier__price .price-value { font-family: var(--serif); font-size: clamp(2.4rem, 1.8rem + 1.6vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; font-variation-settings: "SOFT" 20, "opsz" 96; }
.tier .checks { margin: 24px 0 30px; font-size: 0.98rem; }
.tier .btn { align-self: end; }
.tier--featured { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.tier--featured .g-tag { color: var(--accent-bright); }
.tier--featured .plan__badge { background: var(--accent-bright); color: var(--ink); }
.tier--featured .tier__copy, .tier--featured .tier__price .price-label { color: var(--on-dark-muted); }
.tier--featured .tier__price { border-color: var(--line-dark); }
.tier--featured .checks li::before { border-color: var(--accent-bright); }
.route-guidance-surveyCosts .factors { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.route-guidance-surveyCosts .factors h2 { margin-bottom: 22px; }
.route-guidance-surveyCosts .factors .spec__row dt .icon { width: 26px; height: 26px; }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.outcome { display: grid; gap: 12px; align-content: start; padding: 32px 32px 8px 0; }
.outcome + .outcome { padding-left: 32px; border-left: 1px solid var(--line); }
.outcome .outcome__figure { font-family: var(--serif); font-size: clamp(2.6rem, 1.8rem + 2.2vw, 3.8rem); line-height: 1; letter-spacing: -0.02em; color: var(--text); font-variation-settings: "SOFT" 20, "opsz" 96; }
.outcome h3 { margin-top: 10px; font-size: 1.15rem; }
.outcome p { color: var(--muted); font-size: 0.96rem; }
.outcome .link { margin-top: 4px; font-size: 0.95rem; }

/* 3. Sample reports -------------------------------------------------------- */
.route-guidance-sampleReports .report-inside { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.route-guidance-sampleReports .report-inside > .cover { position: sticky; top: calc(var(--header-h) + 24px); max-width: 440px; }
.route-guidance-sampleReports .report-inside h2 { margin-bottom: 22px; }
.route-guidance-sampleReports .report-inside .spec { margin-top: 40px; }
.route-guidance-sampleReports .standout { margin-top: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 40px; align-items: start; }
.route-guidance-sampleReports .standout h3 { grid-column: 1 / -1; }
.route-guidance-sampleReports .standout__contact { display: grid; gap: 14px; align-content: start; }
.route-guidance-sampleReports .standout__contact .btn { justify-self: start; margin-top: 4px; }
.route-guidance-sampleReports .standout .link { color: var(--accent-bright); }

/* 4. FAQs ------------------------------------------------------------------ */
.qa { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 110px); align-items: start; }
.qa-nav { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 16px; }
.qa-search { position: relative; }
.qa-search label { display: block; margin-bottom: 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.qa-search__field { position: relative; }
.qa-search__field .icon { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.qa-search input { width: 100%; min-height: 52px; padding: 12px 14px 12px 44px; border: 1.5px solid var(--bone-3); border-radius: var(--r); background: #fff; color: var(--text); font: inherit; font-size: 1rem; transition: border-color .15s ease; }
.qa-search input::placeholder { color: var(--muted); }
.qa-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 16, 107, 0.18); }
.qa-feedback { font-size: 0.9rem; color: var(--muted); }
.qa-topics { display: grid; margin-top: 8px; border-top: 1px solid var(--ink); }
.qa-topics a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; font-weight: 500; transition: color .15s ease; }
.qa-topics a span { flex: none; min-width: 28px; font-size: 0.82rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.qa-topics a:hover, .qa-topics a:focus-visible { color: var(--accent-ink); }
.qa-topics a:hover span { color: var(--accent-ink); }
.qa-group { scroll-margin-top: calc(var(--header-h) + 28px); }
.qa-group + .qa-group { margin-top: clamp(52px, 5vw, 76px); }
.qa-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.qa-group__head h2 { font-size: clamp(1.8rem, 1.35rem + 1.3vw, 2.6rem); }
.qa-group__head p { flex: none; font-size: 0.9rem; color: var(--muted); }
.qa-answer { display: grid; gap: 12px; }
.qa-answer ul { display: grid; gap: 8px; }
.qa-answer li { position: relative; padding-left: 24px; }
.qa-answer li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.route-guidance-faqs .faq summary { min-height: 44px; line-height: 1.4; }
.route-guidance-faqs .faq summary:hover { color: var(--accent-ink); }
.qa-empty { display: grid; gap: 12px; justify-items: start; padding: 32px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.45); }
.qa-empty h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); }
.qa-empty p { color: var(--muted); }
.qa-help { margin-top: clamp(56px, 6vw, 88px); grid-template-columns: minmax(0, 1fr) auto; gap: 18px 48px; align-items: center; padding: 34px 36px; }
.qa-help h3 { margin-bottom: 8px; }
.qa-help__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.qa-help__actions .btn--ghost { backdrop-filter: none; }
.route-guidance-faqs .reviews-intro .link { margin-top: 22px; }
.route-guidance-faqs .sec:has(.qa-widget) .sec__head { margin-bottom: 0; }
.qa-widget { min-width: 0; }
.qa-widget:has(> :not(script):not(:empty)) { margin-top: clamp(44px, 5vw, 72px); }

/* Responsive ----------------------------------------------------------------- */
@media (max-width: 1279px) {
  .tiers { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 20px; max-width: 720px; }
  .tier { grid-row: auto; grid-template-rows: none; }
  .route-guidance-surveyCosts .factors, .route-guidance-compareSurveys .evidence { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; }
  .outcome, .outcome + .outcome { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .route-guidance-sampleReports .report-inside { grid-template-columns: 1fr; }
  .route-guidance-sampleReports .report-inside > .cover { position: static; }
  .qa { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); }
  .qa-help { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) {
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa { grid-template-columns: 1fr; }
  .qa-nav { position: static; }
  .qa-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}

@media (max-width: 820px) {
  .levels { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 20px; }
  .level { grid-row: auto; grid-template-rows: none; }
  .tier { padding: 28px 22px 24px; }
  .compare-hint { display: block; }
  .compare { min-width: 520px; }
  .compare col.compare__label { width: 150px; }
  .compare th, .compare td { padding: 12px 8px; }
  .compare tbody th, .compare thead th:first-child, .compare .compare__group th:first-child { padding-left: 0; }
  .compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bone-2); }
  .compare thead th:first-child { z-index: 3; }
  .compare .compare__group th { position: static; }
  .compare .compare__group th:first-child { position: sticky; left: 0; }
  .compare__price .price { font-size: 1.3rem; }
  .compare-help { grid-template-columns: 1fr; padding: 24px 22px; }
  .compare-help__links .btn { width: 100%; }
  .covers { grid-template-columns: 1fr; gap: 48px; }
  .covers .cover__frame { max-width: 440px; }
  .compare .compare__group th:first-child { white-space: nowrap; }
  .route-guidance-sampleReports .standout { grid-template-columns: 1fr; }
  .qa-topics { grid-template-columns: 1fr; }
  .qa-group__head { flex-direction: column; gap: 4px; }
  .qa-help { padding: 28px 22px; }
  .qa-help__actions .btn { width: 100%; }
  .route-guidance-faqs .faq summary { font-size: 1rem; padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cover__frame img, .qa-topics a, .qa-search input { transition: none; }
}
