/* ==========================================================================
   Home page: LinkBuildingService.ae
   Page-level components are prefixed .home-*. Tokens only (no raw colour).
   ========================================================================== */

#main .section-head { margin-bottom: clamp(36px, 1.6rem + 2.4vw, 64px); }

/* ---------- Shared bits on this page ---------- */
.home-person { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.4; }
.home-person strong { color: var(--text); font-weight: 600; }
.home-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.home-avatar--lg { width: 48px; height: 48px; font-size: 15px; }
.home-person--dark { align-items: flex-start; color: var(--text-on-dark-2); }
.home-person--dark strong { color: var(--text-on-dark); }
.home-person--dark .home-avatar { background: var(--brand-bright); color: var(--ink); margin-top: 1px; }
.home-person--dark a { color: var(--text-on-dark); font-weight: 600; }

.home-form-error { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: var(--fs-xs); font-weight: 500; line-height: 1.5; color: var(--danger); }
.home-form-error::before { content: ""; width: 6px; height: 6px; margin-top: .5em; border-radius: 50%; background: currentColor; flex: none; }
.cta-band .home-form-error { color: var(--danger-on-dark); }
.home-nowrap { white-space: nowrap; }

.home-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.home-dot--live { background: var(--brand); }
.home-dot--review { background: var(--warn); }

.home-table-hint { display: none; margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }

/* ==========================================================================
   1. Hero
   ========================================================================== */
.home-hero { position: relative; overflow: hidden; padding-block: clamp(32px, .5rem + 3vw, 56px) clamp(64px, 2rem + 3.4vw, 88px); }
.home-hero__grid-bg { opacity: .6; }
.home-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(40px, 5.5vw, 88px); align-items: center; }
.home-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.home-hero__title { font-size: clamp(2.5rem, 1.2rem + 3vw, 3.75rem); max-width: 12.5em; }
.home-hero__title-muted { color: var(--text-3); }
.home-hero__lead { max-width: 33em; }
.home-hero__form { width: 100%; max-width: 580px; margin-top: 6px; }
.home-hero__form .domain-form { max-width: none; }
.home-hero__proof { display: flex; align-items: stretch; width: 100%; max-width: 580px; padding-top: 20px; border-top: 1px solid var(--line); }
.home-hero__proof > * + * { margin-left: 24px; padding-left: 24px; border-left: 1px solid var(--line); }
.home-proof { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.4; }
.home-proof.home-person { flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; }
.home-proof strong { color: var(--text); font-weight: 600; }
.home-proof.home-person .home-proof__text { display: flex; flex-direction: column; }
.home-proof__sub { font-size: var(--fs-xs); color: var(--text-3); }
.home-hero__proof .home-avatar { width: 36px; height: 36px; font-size: 12px; }

/* Product visual: live link report */
.home-hero__visual { position: relative; margin: 0; min-width: 0; }
.home-report { position: relative; z-index: 1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); overflow: hidden; }
.home-report__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.home-report__title { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.home-report__title .i { width: 18px; height: 18px; color: var(--text-2); }
.home-report__domain { min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--mist); font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; color: var(--text-2); }
.home-report__status { display: inline-flex; align-items: center; gap: 8px; flex: none; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); white-space: nowrap; }

/* KPI tiles share row tracks, so values line up even when only some labels wrap */
.home-report__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; row-gap: 3px; border-bottom: 1px solid var(--line); }
.home-kpi { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 3px; align-content: start; min-width: 0; padding: 12px 18px 13px; }
.home-kpi + .home-kpi { border-left: 1px solid var(--line); }
.home-kpi__label { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-kpi__value { font-size: 1.75rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.home-kpi__delta, .home-kpi__note { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.home-kpi__delta { color: var(--brand); }

/* Referring-domain chart: the plot stretches, labels and markers are HTML so text never scales */
.home-chart { padding: 14px 18px 46px; }
.home-chart__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.home-chart__head span:first-child { color: var(--text-2); }
.home-chart__frame { display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: 104px auto; column-gap: 10px; padding-right: 12px; }
.home-chart__y { position: relative; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.home-chart__y span { position: absolute; right: 0; top: calc(var(--p) * 1%); transform: translateY(-50%); line-height: 1; }
.home-chart__plot { position: relative; }
.home-chart__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.home-chart__grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.home-chart__base { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.home-chart__area { fill: var(--brand); fill-opacity: .09; }
.home-chart__line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.home-chart__dot { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--paper); transform: translate(-50%, -50%); pointer-events: none; }
.home-chart__dot--start { background: var(--paper); box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 2px var(--paper); }
.home-chart__val { position: absolute; left: var(--x); top: var(--y); transform: translate(calc(-100% - 10px), 6px); padding: 1px 5px; border-radius: var(--r-xs); background: var(--paper); font-size: 12.5px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; pointer-events: none; }
.home-chart__hit { position: absolute; top: 0; bottom: 0; left: calc(var(--x) - 10%); width: 20%; }
.home-chart__hit::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid var(--line-strong); opacity: 0; transition: opacity .15s var(--ease); }
.home-chart__hit:hover::after { opacity: 1; }
.home-chart__x { position: relative; grid-column: 2; height: 22px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.home-chart__x span { position: absolute; top: 9px; left: var(--x); transform: translateX(-50%); line-height: 1; }

/* Placement feed sliding out of the report */
.home-feed { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; margin: -30px 32px 0 -32px; }
.home-feed .placement { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 12px 14px; column-gap: 12px; }
.home-feed .placement__fav { width: 36px; height: 36px; font-size: 13px; }
.home-feed .placement__anchor { margin-top: 4px; padding-top: 8px; }
.home-feed .placement:first-child { box-shadow: var(--shadow-pop); }
.home-fav--a { background: var(--ink); }
.home-fav--b { background: var(--brand-ink); }
.home-fav--c { background: var(--text-2); }

/* ==========================================================================
   2. Logo strip
   ========================================================================== */
.home-logos { padding-block: 30px; border-top: 1px solid var(--line); }
.home-logos__inner { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 20px 56px; align-items: center; }
.home-logos__title { font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--text-3); }
.home-logos__list { display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; gap: 18px 24px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1200px) { .home-logos__list { grid-template-columns: repeat(3, auto); } }
.home-wm--lower { text-transform: lowercase; font-weight: 700; letter-spacing: -0.045em; }
.home-wm--caps { text-transform: uppercase; font-size: .92rem; letter-spacing: .09em; }
.home-wm--light { font-weight: 500; letter-spacing: -0.01em; }

/* ==========================================================================
   3. Outcome ledger
   ========================================================================== */
.home-outcomes { padding-block: clamp(64px, 3rem + 3.5vw, 104px); }
.home-ledger > * { padding-top: 28px; }
.home-ledger__time { margin-bottom: 18px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.home-ledger .stat__label { max-width: 26ch; }

/* ==========================================================================
   4. Vetting standard (ink)
   ========================================================================== */
.home-vetting__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.home-vetting__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; position: sticky; top: calc(var(--header-h) + 40px); }
.home-vetting__note { color: var(--text-on-dark); font-weight: 500; }
.home-vetting__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin: 8px 0 6px; border-top: 1px solid var(--ink-3); }
.home-vetting__stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 22px 20px 0 0; }
.home-vetting__stats > div + div { padding-left: 20px; border-left: 1px solid var(--ink-3); }
.home-vetting__stats dt { font-size: var(--fs-xs); color: var(--text-on-dark-2); line-height: 1.45; }
.home-vetting__stats dd { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--text-on-dark); }
.home-vetting__stats dd small { font-size: .45em; font-weight: 500; letter-spacing: 0; color: var(--text-on-dark-2); margin-left: 2px; }

.home-vet { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r-lg); overflow: hidden; font-size: var(--fs-sm); }
.home-vet__caption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--ink-3); font-family: var(--font-mono); font-size: 11.5px; color: var(--text-on-dark-2); }
.home-vet__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr); border-bottom: 1px solid var(--ink-3); }
.home-vet__row > * { min-width: 0; padding: 14px 20px; }
.home-vet__row > :nth-child(3) { background: color-mix(in srgb, var(--brand-bright) 6%, transparent); }
.home-vet__label { display: flex; flex-direction: column; gap: 2px; font-weight: 500; color: var(--text-on-dark); line-height: 1.4; }
.home-vet__label small { font-size: 12.5px; font-weight: 400; color: var(--text-on-dark-2); }
.home-vet__cell { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.home-vet__cell .i { width: 16px; height: 16px; margin-top: 2px; stroke-width: 2; }
.home-vet__cell.is-fail { color: var(--text-on-dark-2); }
.home-vet__cell.is-pass { color: var(--text-on-dark); }
.home-vet__cell.is-pass .i { color: var(--brand-bright); }
.home-vet__row--head > * { padding-block: 16px; }
.home-vet__row--head .home-vet__label { justify-content: center; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-on-dark-2); }
.home-vet__site { display: flex; align-items: center; gap: 10px; }
.home-vet__site strong { display: block; font-weight: 600; line-height: 1.3; color: var(--text-on-dark); }
.home-vet__site small { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-on-dark-2); }
.home-vet__fav { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--r-sm); background: var(--ink-3); color: var(--text-on-dark-2); font-size: 12px; font-weight: 700; }
.home-vet__fav--pass { background: var(--brand-bright); color: var(--ink); }
.home-vet__row--verdict { border-bottom: 0; }
.home-vet__row--verdict > * { padding-block: 16px; }
.home-vet__row--verdict .home-vet__label { justify-content: center; }
.home-vet__row--verdict .badge .i { width: 14px; height: 14px; margin: 0; }

/* ==========================================================================
   5. Services
   ========================================================================== */
.home-services__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 34ch; font-size: var(--fs-sm); }
.home-services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }

.home-svc-feature { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.home-svc-feature:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.home-svc-feature:hover .link-arrow .i { transform: translateX(3px); }
.home-mail { margin: 28px 28px 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-card); font-size: var(--fs-xs); }
.home-mail__row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.home-mail__row > :first-child { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.home-mail__row > :last-child { min-width: 0; overflow-wrap: anywhere; color: var(--text); }
.home-mail__row--subject > :last-child { font-weight: 600; }
.home-mail__body { padding: 12px 16px 16px; color: var(--text-2); line-height: 1.6; }
.home-svc-feature__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; }
.home-svc-feature__body h3 { margin-top: 4px; }
.home-svc-feature__link { color: inherit; text-decoration: none; }
.home-svc-feature__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.home-svc-feature__link:focus-visible { outline: none; }
.home-svc-feature:has(.home-svc-feature__link:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.home-svc-feature__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.home-price-from { font-size: var(--fs-sm); color: var(--text-2); }
.home-price-from strong { font-size: 1.125rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

.home-svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.home-svc-list li { border-bottom: 1px solid var(--line); }
.home-svc { display: grid; grid-template-columns: 44px minmax(0, 1fr) 132px 20px; gap: 20px; align-items: center; padding: 22px 0; color: inherit; text-decoration: none; }
.home-svc__text strong { display: block; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; transition: color .15s; }
.home-svc__text > span { display: block; margin-top: 3px; font-size: var(--fs-sm); color: var(--text-2); text-wrap: pretty; }
.home-svc__price { font-size: var(--fs-xs); color: var(--text-3); text-align: right; line-height: 1.4; }
.home-svc__price b { font-size: 1rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.home-svc__price small { display: block; font-size: var(--fs-xs); }
.home-svc__arrow { color: var(--text-3); transition: transform .2s var(--ease), color .2s; }
.home-svc:hover strong { color: var(--brand); }
.home-svc:hover .home-svc__arrow { color: var(--brand); transform: translateX(3px); }

/* ==========================================================================
   6. Process
   ========================================================================== */
.home-steps { --steps: 4; list-style: none; margin: 0; padding: 0; }
.home-steps .step { padding-bottom: 0; }
.home-steps .step__n { font-size: var(--fs-sm); font-weight: 500; }
.home-steps .step h3 { margin-top: 2px; }
.home-step__out { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); }
.home-step__out .i { width: 16px; height: 16px; color: var(--brand); }
@media (min-width: 901px) {
  .home-steps .step::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--mist); }
  .home-steps .step + .step::after { left: -5px; }
}

/* ==========================================================================
   7. Results
   ========================================================================== */
.home-cases { margin-bottom: clamp(40px, 4vw, 56px); }
.home-case { gap: 18px; }
.home-case__tag { display: flex; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.home-case__tag span + span::before { content: "·"; margin-right: 8px; }
.home-case__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px; border-top: 1px solid var(--line); }
.home-case__stats > div { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.home-case__stats > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.home-case__stats > div:nth-child(even) { padding-left: 16px; }
.home-case__stats dt { font-size: var(--fs-xs); color: var(--text-3); }
.home-case__stats dd { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 1.75rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.home-case__to { font-size: 1.125rem; font-weight: 400; color: var(--text-3); }
@media (min-width: 961px) { .home-case h3 { min-height: 3.9em; } }
@media (min-width: 1200px) { .home-case h3 { min-height: 2.6em; } }

.home-report-table { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.home-report-table__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.home-report-table__head .h4 { margin-bottom: 4px; }
.home-report-table__legend { display: flex; gap: 18px; font-size: var(--fs-xs); color: var(--text-2); }
.home-report-table__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.home-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: var(--fs-sm); }
.home-table th, .home-table td { padding: 14px 16px; text-align: left; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid var(--line); }
.home-table th:first-child, .home-table td:first-child { padding-left: 24px; }
.home-table th:last-child, .home-table td:last-child { padding-right: 24px; }
.home-table thead th { background: var(--mist); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.home-table tbody th { font-weight: 500; }
.home-table tbody td { color: var(--text-2); }
.home-table tbody tr:last-child > * { border-bottom: 0; }
.home-table .is-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.home-table .mono { font-size: 12.5px; }
.home-table code { padding: 2px 6px; border-radius: var(--r-xs); background: var(--brand-tint); font-family: var(--font-mono); font-size: 12px; color: var(--brand-ink); }
.home-table code.home-ar { font-family: var(--font-arabic); font-size: 13px; }
.home-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); }
.home-status.is-review { color: var(--warn); }
.home-report-table .home-table-hint { margin: 0; padding: 10px 24px; border-top: 1px solid var(--line); }

/* Mid-page CTA band */
.home-cta { margin-top: clamp(56px, 6vw, 96px); }
.home-cta .eyebrow { color: var(--text-on-dark-2); }
.home-cta .eyebrow::before { background: var(--brand-bright); }
.home-cta .h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.625rem); line-height: 1.08; }
.home-cta .domain-form { max-width: none; }
.home-cta__trust { gap: 8px 18px; font-size: var(--fs-xs); }
.home-cta__trust .i { width: 16px; height: 16px; }

/* ==========================================================================
   8. Pricing
   ========================================================================== */
.home-pricing__switch { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.home-pricing__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.home-pricing .price-card { gap: 22px; }
.home-tier__head { display: flex; flex-direction: column; gap: 6px; }
.home-tier__head p, .home-custom__name p { text-wrap: pretty; }
.home-tier__price { display: flex; flex-direction: column; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.home-tier__unit { font-family: var(--font-mono); font-size: 12px; color: var(--brand); }
.home-drmix { display: flex; flex-direction: column; gap: 10px; }
.home-drmix__count { font-size: var(--fs-sm); color: var(--text-2); }
.home-drmix__count strong { font-weight: 600; color: var(--text); }
.home-drmix__bar { display: flex; gap: 2px; height: 8px; }
.home-drmix__bar span { flex: var(--n) 1 0; min-width: 0; }
.home-drmix__bar span:first-child { border-radius: 4px 0 0 4px; }
.home-drmix__bar span:last-child { border-radius: 0 4px 4px 0; }
.home-drmix .is-30 { background: var(--line-strong); }
.home-drmix .is-50 { background: var(--text-3); }
.home-drmix .is-70 { background: var(--ink); }
.home-drmix__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); }
.home-drmix__legend > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.home-drmix__legend i { width: 8px; height: 8px; border-radius: 2px; }
.home-tier__inherit { margin-bottom: -8px; font-size: var(--fs-sm); font-weight: 600; }
.home-pricing .check-list li > span { min-width: 0; }
/* Desktop: cards share row tracks so prices, DR mix, lists and buttons line up across tiers */
@media (min-width: 961px) {
  .home-pricing__grid { grid-template-rows: repeat(6, auto); row-gap: 0; }
  .home-pricing .price-card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 22px; align-content: start; }
  .home-pricing .price-card > .btn { align-self: end; }
}

.home-assure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(16px, 2vw, 24px); list-style: none; margin: 40px 0 0; padding: 0; }
.home-assure li { display: flex; align-items: flex-start; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.home-assure .i { width: 22px; height: 22px; margin-top: 1px; color: var(--brand); }
.home-assure strong { display: block; font-weight: 600; text-wrap: balance; }
.home-assure li > div > span { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--text-2); text-wrap: pretty; }

.home-custom { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px 40px; align-items: center; margin-top: 40px; padding: 24px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.home-custom__name { display: flex; flex-direction: column; gap: 4px; }
.home-pricing__guide { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: var(--fs-sm); color: var(--text-2); }
.home-pricing__guide .i { width: 18px; height: 18px; color: var(--text-3); }
.home-pricing__guide a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); }
.home-pricing__guide a:hover { text-decoration-color: currentColor; }
.home-custom__price { font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; }
.home-custom__price strong { font-size: 1.25rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   9. Comparison
   ========================================================================== */
.home-compare__table { min-width: 880px; }
.home-compare__table th:first-child { position: sticky; left: 0; z-index: 1; width: 22%; background: var(--paper); }
.home-compare__table thead th { vertical-align: bottom; }
.home-compare__table thead .is-us { font-size: var(--fs-xs); }
.home-compare__table td { color: var(--text-2); }
.home-compare__group > * { padding-top: 28px; padding-bottom: 10px; }
.home-compare__group th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3); }
.home-cmp { display: inline-flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.home-cmp > span { min-width: 0; }
.home-cmp .i { margin-top: 1px; stroke-width: 2; }
.home-cmp.part { color: var(--text-2); }
.home-cmp.part .i { color: var(--text-3); }
.home-cmp.no { color: var(--text-3); }
.home-cmp.yes { color: var(--text); }
.home-cmp.yes .i { color: var(--brand); }
.compare td.is-us .home-cmp { color: var(--brand-ink); }
.compare td.is-us .home-cmp .i { color: var(--brand); }
.home-compare__cost > * { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.home-compare__cost td { white-space: nowrap; }
.home-compare__table tbody:last-child tr:last-child > * { border-bottom: 0; }
.home-compare__table tbody:last-child tr:last-child .is-us { border-radius: 0 0 var(--r-md) var(--r-md); }

/* ==========================================================================
   10. Testimonials
   ========================================================================== */
.home-rating-card { display: flex; align-items: center; gap: 18px; padding: 16px 24px 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.home-rating-card__score { font-size: 3rem; font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
.home-rating-card .small { margin-top: 2px; color: var(--text); font-weight: 500; }
.home-voices__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.home-quote-feature { justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 52px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); }
.home-quote-feature__mark { width: 36px; height: 36px; color: var(--line-strong); }
.home-quote-feature .quote__text { font-size: clamp(1.375rem, 1rem + 1.15vw, 2rem); line-height: 1.32; letter-spacing: -0.022em; text-wrap: pretty; }
.home-quote-feature__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.home-quote-feature__result { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); text-wrap: balance; }
.home-voices .quote__who strong { color: var(--text); }
.home-voices .quote__who > span:last-child > span { display: block; }
.home-voices__side { display: flex; flex-direction: column; justify-content: center; }
.home-voices__side .quote { padding-block: 28px; }
.home-voices__side .quote:first-child { padding-top: 8px; }
.home-voices__side .quote + .quote { border-top: 1px solid var(--line-strong); }
.home-quote-sm { font-size: 1.1875rem; }

/* ==========================================================================
   11. Industries + locations directory
   ========================================================================== */
.home-dir__block { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px clamp(32px, 4vw, 64px); padding-block: 32px 8px; border-top: 1px solid var(--line); }
.home-dir__block + .home-dir__block { margin-top: 32px; }
.home-dir__label { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.home-dir__label p { text-wrap: pretty; }
.home-dir__label .link-arrow { margin-top: 4px; }
.home-dir__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; list-style: none; margin: 0; padding: 0; }
.home-dir__item { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 0 18px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
@media (min-width: 641px) {
  .home-dir__list li:nth-last-child(-n+3) .home-dir__item { border-bottom: 0; }
  .home-dir__list li:nth-child(-n+3) .home-dir__item { padding-top: 0; }
}
.home-dir__name { display: flex; align-items: center; gap: 10px; font-weight: 600; transition: color .15s; }
.home-dir__name .i { width: 18px; height: 18px; color: var(--text-3); transition: color .15s; }
.home-dir__copy { padding-left: 28px; font-size: var(--fs-sm); color: var(--text-2); text-wrap: pretty; }
.home-dir__item:hover .home-dir__name, .home-dir__item:hover .home-dir__name .i { color: var(--brand); }

/* ==========================================================================
   12. FAQ
   ========================================================================== */
.home-faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.home-faq__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: sticky; top: calc(var(--header-h) + 40px); }
.home-contact-card { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 400px; margin-top: 12px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.home-contact-card .home-person > span:last-child { display: flex; flex-direction: column; }
.home-contact-card .home-person strong { font-size: 1rem; }
.home-contact-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.home-contact-card__actions .btn { padding-inline: 12px; }
@media (max-width: 1100px) and (min-width: 961px), (max-width: 400px) { .home-contact-card__actions { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Responsive (widest first; ranges use min/max so later rules never undo earlier ones)
   ========================================================================== */
@media (max-width: 1279px) {
  .home-table th, .home-table td { padding-inline: 12px; }
}
@media (max-width: 1219px) {
  .home-table-hint { display: block; }
}

@media (max-width: 1160px) {
  .home-pricing__switch { align-items: flex-start; }
}

@media (max-width: 1140px) {
  .home-kpi__label { white-space: normal; line-height: 1.3; }
}
/* The rating and strategist only fit side by side from 1240px; below that they stack */
@media (min-width: 961px) and (max-width: 1239px) {
  .home-hero__proof { flex-direction: column; gap: 14px; }
  .home-hero__proof > * + * { margin-left: 0; padding-left: 0; border-left: 0; }
}

/* Short desktop and laptop screens (1366x768 and 1440x900 browser windows are 650–790px tall):
   top-align the copy so the audit form sits higher, and below 760px tall (or on narrow two-column
   layouts) move the lead under the trust row so the form stays clear of the first-visit cookie notice */
@media (min-width: 961px) and (max-height: 860px) {
  .home-hero { padding-top: 28px; }
  .home-hero__inner { align-items: start; }
}
@media (min-width: 961px) and (max-height: 760px), (min-width: 961px) and (max-width: 1239px) and (max-height: 860px) {
  .home-hero__copy { gap: 18px; }
  .home-hero__form { order: 1; margin-top: 4px; }
  .home-hero__copy > .trust-list { order: 2; }
  .home-hero__lead { order: 3; }
  .home-hero__proof { order: 4; }
}

@media (max-width: 1100px) {
  .home-feed { margin-left: -16px; margin-right: 20px; }
  .home-vetting__grid { grid-template-columns: minmax(0, 1fr); }
  .home-vetting__copy { position: static; max-width: 720px; }
  .home-cta .cta-band__grid { grid-template-columns: minmax(0, 1fr); }
  .home-cta .cta-band__grid > :last-child { max-width: 600px; }
}

@media (max-width: 960px) {
  .home-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .home-hero__visual { max-width: 600px; }
  .home-feed { margin: -30px 16px 0; }
  .home-services__grid, .home-voices__grid, .home-faq__grid { grid-template-columns: minmax(0, 1fr); }
  .home-faq__aside { position: static; }
  .home-pricing__grid { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .home-custom { grid-template-columns: minmax(0, 1fr) auto; }
  .home-custom__name { grid-column: 1 / -1; }
  .home-dir__block { grid-template-columns: minmax(0, 1fr); }
  .home-logos__inner { grid-template-columns: minmax(0, 1fr); }
}

/* Tablet: case cards and price cards run horizontally, side quotes sit in two columns */
@media (min-width: 641px) and (max-width: 960px) {
  .home-cases { grid-template-columns: minmax(0, 1fr); }
  .home-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "tag stats" "title stats" "link stats"; grid-template-rows: auto auto 1fr; gap: 12px 40px; }
  .home-case__tag { grid-area: tag; }
  .home-case h3 { grid-area: title; }
  .home-case__stats { grid-area: stats; margin-top: 0; }
  .home-case .card__foot { grid-area: link; align-self: end; }

  .home-pricing .price-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 20px 40px; }
  .home-pricing .home-tier__head { grid-column: 1; grid-row: 1; }
  .home-pricing .home-tier__price { grid-column: 1; grid-row: 2; }
  .home-pricing .home-drmix { grid-column: 1; grid-row: 3; }
  .home-pricing .price-card > .btn { grid-column: 1; grid-row: 4; align-self: end; }
  .home-pricing .home-tier__inherit { grid-column: 2; grid-row: 1; align-self: end; margin: 0; }
  .home-pricing .price-card > .check-list { grid-column: 2; grid-row: 2 / span 3; align-self: start; }

  .home-voices__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 8px; }
  .home-voices__side .quote, .home-voices__side .quote:first-child { justify-content: space-between; padding: 0; }
  .home-voices__side .quote + .quote { border-top: 0; }
}

@media (max-width: 900px) {
  .home-steps .step { padding-bottom: 28px; }
  .home-steps .step:last-child { padding-bottom: 0; }
}

@media (max-width: 760px) {
  .home-assure { grid-template-columns: minmax(0, 1fr); }
  .home-custom { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .home-custom__name { grid-column: auto; }
  .home-custom .btn { width: 100%; }
  .home-logos__list { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .home-vet__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-vet__row > * { padding: 12px 16px; }
  .home-vet__label { grid-column: 1 / -1; padding-bottom: 2px !important; }
  .home-vet__row > .home-vet__cell { padding-top: 6px; }
  /* the "Check" and "Verdict" headers drop out visually but stay in the table for screen readers */
  .home-vet__row--head .home-vet__label, .home-vet__row--verdict .home-vet__label { position: absolute; width: 1px; height: 1px; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .home-vet__row--head > *, .home-vet__row--verdict > * { padding-block: 14px !important; }
  .home-vet__row > :nth-child(3) { background: color-mix(in srgb, var(--brand-bright) 6%, transparent); }
  .home-vet__caption { padding: 12px 16px; }
  .home-vet__site { align-items: flex-start; }
  /* touch targets: standalone text links and small buttons reach 44px */
  #main .link-arrow { min-height: 44px; }
  .home-contact-card__actions .btn { min-height: 44px; }
}

@media (max-width: 640px) {
  .home-hero__title { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 2.75rem); }
  .home-report__bar { padding: 10px 14px; }
  .home-report__date { display: none; }
  .home-kpi { padding: 12px; }
  .home-kpi__value { font-size: 1.5rem; }
  .home-chart { padding: 14px 14px 48px; }
  .home-feed { margin: -30px 10px 0; }
  .home-svc { grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 8px 16px; align-items: start; padding: 20px 0; }
  .home-svc .icon-tile { grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; }
  .home-svc__text { grid-column: 2; grid-row: 1; }
  .home-svc__price { grid-column: 2; grid-row: 2; text-align: left; }
  .home-svc__price small { display: inline; margin-left: 4px; }
  .home-svc__arrow { grid-column: 3; grid-row: 1; margin-top: 4px; }
  .home-mail { margin: 20px 20px 0; }
  .home-svc-feature__body { padding: 24px 20px; }
  .home-svc-feature__foot { flex-wrap: wrap; }
  .home-dir__list { grid-template-columns: minmax(0, 1fr); }
  .home-dir__item { padding: 16px 0 14px; }
  .home-dir__list li:first-child .home-dir__item { padding-top: 0; }
  .home-dir__list li:last-child .home-dir__item { border-bottom: 0; }
  .home-rating-card { padding: 14px 18px; }
  .home-report-table__head { padding: 18px 16px; }
  .home-table th:first-child, .home-table td:first-child { padding-left: 16px; }
  .home-report-table .home-table-hint { padding-inline: 16px; }
  .home-compare__table { min-width: 720px; }
  .home-compare__table th, .home-compare__table td { padding: 14px 12px; }
  .home-compare__table th:first-child { width: 120px; min-width: 120px; padding-left: 0; box-shadow: 1px 0 0 var(--line); }
  .home-compare__table tbody tr:not(.home-compare__group) th:first-child { font-size: var(--fs-xs); }
}

/* Compare: align the table's outer edges with the container, even out the option columns */
@media (min-width: 641px) {
  .home-compare__table { table-layout: fixed; }
  .home-compare__table th:first-child { padding-left: 0; }
  .home-compare__table thead th:not(:first-child) { width: 19.5%; }
  .home-compare__table th:last-child, .home-compare__table td:last-child { padding-right: 0; }
}

@media (max-width: 520px) {
  .home-hero__proof { flex-direction: column; gap: 14px; }
  .home-hero__proof > * + * { margin-left: 0; padding-left: 0; border-left: 0; }
}

@media (max-width: 480px) {
  .home-feed .placement__domain { white-space: normal; line-height: 1.3; }
  .home-feed .placement__meta > :nth-child(4) { display: none; }
  .home-vet__row--verdict .badge { height: auto; min-height: 26px; padding-block: 4px; white-space: normal; line-height: 1.3; text-wrap: balance; }
}

/* Phones: the audit form sits right under the headline (lead moves below the trust row)
   so the CTA stays above the first-visit cookie notice on 667px-tall screens */
@media (max-width: 480px) {
  .home-hero__form { order: 1; }
  .home-hero__copy > .trust-list { order: 2; }
  .home-hero__lead { order: 3; }
  .home-hero__proof { order: 4; }
}
@media (max-width: 400px) {
  .home-hero { padding-top: 24px; }
  .home-hero__copy { gap: 18px; }
  .home-hero__form { margin-top: 2px; }
  .home-kpi { padding: 10px; }
  .home-kpi__delta, .home-kpi__note { white-space: normal; line-height: 1.3; }
  .home-feed { margin: -24px 0 0; }
  .home-feed .placement { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "fav domain domain" "fav meta meta" "anchor anchor status"; }
  .home-feed .placement__status { align-self: stretch; display: flex; align-items: center; margin: 4px 0 0 -12px; padding: 8px 0 0 12px; border-top: 1px dashed var(--line); }
  .home-feed__anchor-label { display: none; }
}
@media (max-width: 360px) {
  .home-hero { padding-top: 16px; }
  .home-hero__eyebrow-tail, .home-report__domain { display: none; }
  .home-hero__title { font-size: 2.125rem; }
}
