/* ==========================================================================
   Flettons v2 — survey pages (dark)
   Level 2, Level 3 and Level 3+ landing pages plus the all-services index.
   Loaded after site.css and holds only what site.css lacks. The specialist
   survey pages load this sheet before surveys-other.css, so the shared
   blocks keep their class names: .related, .report-cover, .included, .why,
   .scope-foot, .fit, .cta--price and .price-band*.
   ========================================================================== */

/* Copy -------------------------------------------------------------------- */
.page-hero__lead, .sec__intro, .feature p, .aside-card p, .spec__row dd, .level-card__best, .route-card p { text-wrap: pretty; }

/* Hero: the level's periodic tile sits above the eyebrow --------------------- */
.level-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 26px; }
.page-hero__aside .price-label { vertical-align: 0.35em; }

/* Tap targets: inline links keep their layout but gain a 44px hit area ------- */
.crumbs a, .sec__intro .link, .levels__foot a, .price-band__actions p a, .quote footer .link { padding-block: 12px; margin-block: -12px; }
.crumbs a, .levels__foot a, .price-band__actions p a { display: inline-block; }
.crumbs a { padding-inline: 2px; margin-inline: -2px; }
.trust a.trust__item { min-height: 44px; margin-block: -4px; }
.scope-foot .link, .plus-case__body .link { min-height: 44px; }

/* Related guidance links under a section ------------------------------------ */
.related { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.related .link { min-height: 44px; }

/* Illustrative sample report pages (fictional property, never a client file) - */
.report-cover { margin: 0; }
.report-cover__stack { position: relative; display: block; width: 100%; max-width: 540px; aspect-ratio: 1 / 1; }
.report-cover__page { position: absolute; width: 58%; height: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.75); transition: border-color .15s ease; }
.report-cover__page--back { left: 0; top: 0; }
.report-cover__page--front { right: 0; bottom: 0; }
.report-cover__stack:hover .report-cover__page, .report-cover__stack:focus-visible .report-cover__page { border-color: var(--line-strong); }
.report-cover__pill { position: absolute; left: 0; bottom: 4px; }
.report-cover figcaption { margin-top: 20px; max-width: 32rem; font-size: 0.92rem; line-height: 1.5; color: var(--text-2); }
.report-cover figcaption .link { font-size: 0.92rem; margin-top: 6px; min-height: 44px; }

/* "What's included" column ------------------------------------------------- */
.included { margin-top: 30px; }
.why { margin-top: 40px; }
.why .feature { padding: 22px; gap: 10px; }
.why .feature h3 { font-size: 1.02rem; }
.why .feature p { font-size: 0.92rem; }

/* Scope of inspection ---------------------------------------------------------- */
.spec--2col .spec__row dt { align-items: flex-start; }
.spec--2col .spec__row dt .icon { margin-top: 1px; color: var(--text-2); }
.scope-foot { margin-top: 28px; }

/* "Is it the right level?" + sticky help card ------------------------------- */
.fit { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.fit__list { margin-top: 30px; }
.fit .aside-card { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card .icon-tile { margin-bottom: 4px; }
.aside-card .link { font-size: 0.95rem; min-height: 44px; }

/* Level 3+: what it adds ------------------------------------------------------ */
.plus-adds { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.plus-adds__fig { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.plus-adds__fig img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--line); }
.plus-adds__fig figcaption { margin-top: 14px; font-size: 0.9rem; line-height: 1.5; color: var(--text-2); }
.plus-adds__fig figcaption span { margin-right: 8px; color: var(--text); font-weight: 600; }
.plus-adds .feature { padding: 24px; }
.plus-case { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 32px; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.plus-case__figure { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plus-case__body h3 { margin-bottom: 8px; }
.plus-case__body p { color: var(--text-2); font-size: 0.98rem; }
.plus-case__body .link { margin-top: 14px; }

/* Closing price band ----------------------------------------------------------- */
.cta--price { padding: clamp(56px, 7vw, 88px) 0; }
.price-band { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(280px, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: center; max-width: none; }
.price-band h2 { margin-bottom: 16px; }
.price-band > div > p { color: var(--text-2); font-size: 1.08rem; max-width: 30rem; }
.price-band .page-hero__meta { margin-top: 20px; }
.price-band__price { display: grid; justify-items: start; gap: 6px; padding: 0 clamp(24px, 3vw, 48px); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.price-band__price .price-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.price-band__price .price { font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-band__rating { margin-top: 8px; font-size: 0.9rem; color: var(--text-2); }
.price-band__rating .stars { margin-right: 6px; }
.price-band__note { font-size: 0.9rem; color: var(--text-2); }
.price-band__actions { display: grid; gap: 12px; min-width: 0; }
.price-band__actions .btn, .aside-card .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
.price-band__actions p { margin-top: 6px; font-size: 0.92rem; color: var(--text-2); text-align: center; }
.price-band__actions p a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }

/* All services: the three levels with their prices ----------------------------- */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.level-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); transition: border-color .15s ease; }
.level-card:hover { border-color: var(--line-strong); }
.level-card--featured { border-color: var(--line-strong); background: var(--surface-2); }
.level-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.level-card h3 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); line-height: 1.12; }
.level-card__best { margin-top: 8px; min-height: 3.1em; color: var(--text-2); font-size: 0.96rem; line-height: 1.5; }
.level-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 22px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.level-card__price .price-label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.level-card__price .price { font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.level-card .checks { flex: 1 0 auto; align-content: start; margin-top: 20px; gap: 10px; font-size: 0.96rem; }
.level-card__foot { display: grid; gap: 6px; margin-top: 26px; }
.level-card__foot .link { justify-self: start; min-height: 44px; font-size: 0.92rem; }
.levels__foot { margin-top: 28px; color: var(--text-2); font-size: 0.97rem; max-width: 60rem; }
.levels__foot a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* All services: short comparison ----------------------------------------------- */
.compare--essentials { min-width: 560px; }
.compare--essentials thead th { position: static; background: transparent; white-space: nowrap; }
/* The section is --surface, so the featured column needs the next step up to read as highlighted. */
.compare--essentials .is-featured, .compare--essentials thead .is-featured { background: var(--surface-2); }
.compare-hint { display: none; margin-top: 12px; font-size: 0.86rem; color: var(--text-2); }
.compare--essentials tbody th { font-size: 0.98rem; }
.compare--essentials .compare__opt { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.compare-wrap:focus-visible { outline-offset: 6px; }

/* All services: specialist routes ----------------------------------------------- */
.routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.route-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); transition: border-color .15s ease; }
.route-card:hover { border-color: var(--line-strong); }
.route-card__label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.route-card h3 { font-size: 1.15rem; }
.route-card p { color: var(--text-2); font-size: 0.95rem; }
.route-card .checks { gap: 8px; font-size: 0.93rem; }
.route-card .link { margin-top: auto; padding-top: 10px; min-height: 54px; font-size: 0.95rem; }

/* All services: how to choose ----------------------------------------------------- */
.choose__intro { margin-top: 22px; max-width: 34rem; color: var(--text-2); font-size: 1.1rem; }
.choose .aside-card { margin-top: 40px; max-width: 30rem; }
.choose .spec__row dt { align-items: flex-start; }
.choose .spec__row dt .icon { margin-top: 1px; color: var(--text-2); }
.quote footer .link { margin-left: 12px; }

/* Page-specific photo framing ------------------------------------------------------ */
body.route-survey-level2 .page-hero__bg { object-position: 50% 42%; }
body.route-survey-level3 .page-hero__bg { object-position: 55% 30%; }
body.route-survey-level3plus .page-hero__bg { object-position: 70% 35%; }
body.route-survey-all .page-hero__bg { object-position: 60% 25%; }
body.route-survey-all .cta__bg { object-position: center 12%; }

/* Responsive ------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  .fit { grid-template-columns: 1fr; }
  .fit .aside-card { position: static; }
  .plus-adds { grid-template-columns: 1fr; }
  .plus-adds__fig { position: static; }
  .plus-adds__fig img { aspect-ratio: 16 / 9; }
  .price-band { grid-template-columns: 1fr 1fr; }
  .price-band > div:first-child { grid-column: 1 / -1; }
  .price-band__price { border-right: 0; }
  .levels { grid-template-columns: 1fr; }
  .level-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; column-gap: clamp(24px, 4vw, 48px); }
  .level-card__head, .level-card h3, .level-card__best, .level-card__price { grid-column: 1; }
  .level-card__best { min-height: 0; }
  .level-card .checks { grid-column: 2; grid-row: 1 / 5; margin-top: 0; align-self: center; }
  .level-card__foot { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; }
  .level-card__foot .link { justify-self: end; }
  .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .level-mark { margin-bottom: 22px; }
  .price-band { grid-template-columns: 1fr; gap: 32px; }
  .price-band__price { padding: 28px 0 0; border: 0; border-top: 1px solid var(--line); }
  .related { gap: 0 22px; }
  .plus-case { grid-template-columns: 1fr; }
  .level-card { display: flex; padding: 22px; }
  .level-card .checks { margin-top: 20px; align-self: stretch; }
  .compare-hint { display: block; }
  /* Fixed layout keeps the feature column to 40% so the Level 2 ticks are visible before scrolling, even at 320px. */
  .compare--essentials { min-width: 460px; table-layout: fixed; }
  .compare--essentials th:first-child { width: 40%; }
  .level-card__foot { display: grid; grid-template-columns: 1fr; }
  .level-card__foot .link { justify-self: start; }
  .routes { grid-template-columns: 1fr; }
  .route-card { padding: 22px; }
  .choose .aside-card { max-width: none; }
  .quote footer .link { display: flex; margin: 10px 0 0; justify-content: center; }
}
