/* IvI SEO tools. Builds on /styles.css (tokens: --ink, --yellow, --surface,
   --white, --muted, --line, --display, --body). */
:root {
  --rank-good: #46d17a;
  --rank-ok: #ffe34a;
  --rank-weak: #ff9a3c;
  --rank-none: #ff5c5c;
  --rank-locked: #5a5a52;
}

.tools-page h1 { font-size: 72px; line-height: .98; }
.tools-page h1 > span { color: var(--yellow); white-space: normal; }
.tools-page h2 { font-size: 44px; line-height: 1.05; }
.tools-page .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--yellow); }
.tools-page .tool-card .eyebrow, .tools-page .offer-card .eyebrow { color: var(--yellow); margin-bottom: 10px; }

/* Landing */
.tool-hero { border-bottom: 1px solid var(--line); }
.tool-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); gap: 56px; align-items: start; padding-block: 56px 72px; }
.tool-lead { font-size: 18px; font-weight: 500; color: var(--muted); margin-top: 24px; max-width: 540px; }
.tool-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.tool-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.tool-points svg { color: var(--yellow); }
.tool-card { background: var(--surface); border: 1px solid var(--yellow); border-radius: 6px; padding: 28px; box-shadow: 7px 7px 0 var(--yellow); }
.tool-card h2 { font-size: 31px; line-height: 1.1; margin-bottom: 18px; }
.tool-form .button { width: 100%; margin-top: 6px; }
.tool-form .button[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.tool-sub { color: var(--muted); font-size: 14px; margin: -8px 0 14px; }
.tool-hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.tool-error { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--rank-none); border-radius: 3px; color: #ffd0d0; font-size: 14px; }
.tool-back { background: none; border: 0; color: var(--white); cursor: pointer; margin-top: 10px; padding-inline: 0; }

.business-list { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; max-height: 330px; overflow-y: auto; }
.business-option { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 12px; border: 1px solid #73736a; border-radius: 4px; cursor: pointer; background: var(--ink); }
.business-option:hover { border-color: var(--yellow); }
.business-option:has(input:checked) { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.business-option input { margin-top: 5px; accent-color: var(--yellow); }
.business-option strong { display: block; font-size: 15px; line-height: 1.35; }
.business-option small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 2px; }
.not-listed { margin-bottom: 16px; font-size: 14px; }
.not-listed summary { cursor: pointer; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.find-row { display: flex; gap: 8px; margin-top: 10px; }
.find-row input { flex: 1; min-width: 0; height: 43px; border: 1px solid #73736a; border-radius: 3px; background: var(--ink); color: var(--white); padding: 10px 12px; font: 14px/1.5 var(--body); }
.button-quiet { min-height: 43px; padding: 10px 16px; background: transparent; color: var(--yellow); }
.button-quiet:hover { background: #ffe34a1a; }

.tool-offer h2, .tool-steps h2, .tool-faq h2 { margin-bottom: 32px; }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.offer-card { border: 1px solid var(--line); border-radius: 6px; padding: 28px; background: var(--surface); }
.offer-card-paid { border-color: var(--yellow); }
.offer-card h3 { font: 700 26px/1.15 var(--display); margin-bottom: 14px; }
.offer-card ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.offer-card-paid ul { color: var(--white); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; border-top: 2px solid var(--yellow); padding-top: 18px; color: var(--muted); }
.steps li::before { content: counter(step); display: block; font: 800 40px/1 var(--display); color: var(--yellow); margin-bottom: 12px; }
.steps strong { display: block; color: var(--white); margin-bottom: 4px; }
.tool-faq details { border-bottom: 1px solid var(--line); padding-block: 18px; max-width: 860px; }
.tool-faq summary { cursor: pointer; font: 700 21px/1.3 var(--display); }
.tool-faq details p { margin-top: 10px; color: var(--muted); max-width: 720px; }
.tool-more { margin-top: 28px; color: var(--muted); }
.tool-more a, .thanks-copy a, .thanks-small a, .fix a, .report-cta a.inline { color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }

/* Report */
.report { padding-block: 48px 80px; }
.report h1 { font-size: 56px; overflow-wrap: anywhere; }
.report-context { color: var(--muted); margin-top: 14px; max-width: 760px; }
.score-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.score { border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; background: var(--surface); }
.score b { display: block; font: 800 40px/1.05 var(--display); }
.score span { color: var(--muted); font-size: 14px; }
.score-good b { color: var(--rank-good); }
.score-bad b { color: var(--rank-none); }
.scan-status { margin-top: 18px; color: var(--muted); font-size: 14px; min-height: 22px; }
.map-wrap { margin-top: 8px; }
.rank-map { height: 520px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 2px solid #141414; }
.dot-good { background: var(--rank-good); } .dot-ok { background: var(--rank-ok); } .dot-weak { background: var(--rank-weak); }
.dot-none { background: var(--rank-none); } .dot-locked { background: var(--rank-locked); position: relative; }
.dot-locked::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 9px/1 var(--body); color: #f5f5ef; }
.rank-pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #141414; color: #141414; font: 800 14px/1 var(--body); box-shadow: 0 2px 6px #0007; }
.rank-pin.good { background: var(--rank-good); } .rank-pin.ok { background: var(--rank-ok); } .rank-pin.weak { background: var(--rank-weak); }
.rank-pin.none { background: var(--rank-none); font-size: 11px; } .rank-pin.locked { background: var(--rank-locked); color: #f5f5ef; width: 26px; height: 26px; font-size: 13px; }
.rank-pin.empty { background: transparent; border: 2px dashed #8a8a80; width: 20px; height: 20px; box-shadow: none; }
.dot-empty { background: transparent; border: 2px dashed #8a8a80; }
.rank-pin.pending { background: #2c2c29; border-color: var(--yellow); animation: pin-pulse 1.1s ease-in-out infinite; }
.rank-pin.error { background: #2c2c29; color: var(--muted); }
.rank-pin.home { outline: 3px solid var(--white); outline-offset: 2px; }
@keyframes pin-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .rank-pin.pending { animation: none; } }
.leaflet-container { font-family: var(--body); }

.unlock { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--yellow); border-radius: 6px; padding: 32px; box-shadow: 7px 7px 0 var(--yellow); }
.unlock h2 { font-size: 36px; }
.money { margin-top: 40px; border: 1px solid var(--yellow); border-radius: 6px; padding: 28px; background: var(--surface); }
.money h2 { font-size: 38px; }
.money-lead { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 760px; }
.money-lead strong { color: var(--white); }
.money-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.money-stat { border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; background: var(--ink); }
.money-stat b { display: block; font: 800 40px/1.05 var(--display); color: var(--rank-weak); }
.money-stat-big b { color: var(--rank-none); }
.money-stat span { color: var(--muted); font-size: 14px; }
.money-stat em { font-style: normal; display: block; color: var(--white); font-weight: 650; margin-top: 2px; }
.proof { margin-top: 40px; }
.proof h2 { font-size: 38px; }
.proof-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.proof-lead { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 760px; }
.proof-nav { display: flex; align-items: center; gap: 10px; }
.proof-nav button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--yellow); background: transparent; color: var(--yellow); cursor: pointer; }
.proof-nav button:hover:not([disabled]) { background: #ffe34a1a; }
.proof-nav button[disabled] { opacity: .35; cursor: default; }
.proof-count { min-width: 44px; text-align: center; font-size: 14px; font-weight: 650; color: var(--muted); }
.proof-track { list-style: none; margin: 20px 0 0; padding: 0 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 860px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.proof-track:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.proof-slide { scroll-snap-align: start; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px; }
.proof-slide h3 { font: 700 20px/1.3 var(--display); margin-bottom: 14px; }
.proof-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.proof-pair figure { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--ink); }
.proof-pair img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.proof-tag { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 9px; border-radius: 3px; font: 700 11px/1.4 var(--body); letter-spacing: .06em; text-transform: uppercase; background: #141414e6; color: var(--white); }
.proof-tag-after { background: var(--yellow); color: var(--ink); }
.proof-pair figcaption { padding: 12px 14px; font-size: 14px; color: var(--muted); }
.proof-pair figcaption strong { color: var(--white); }
@media (prefers-reduced-motion: reduce) { .proof-track { scroll-behavior: auto; } }
.money-stat-locked b { color: var(--muted); }
.money-cta { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.money-cta p { color: var(--muted); max-width: 520px; font-size: 15px; }
.money-cta .tool-error { flex-basis: 100%; }
.money-inputs { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; font-size: 14px; font-weight: 650; }
.money-inputs label { display: flex; align-items: center; gap: 10px; }
.money-input { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.money-input input { width: 84px; height: 38px; border: 1px solid #73736a; border-radius: 3px; background: var(--ink); color: var(--white); padding: 6px 8px; font: 15px/1.4 var(--body); }
.money-input input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.money-how { margin-top: 18px; font-size: 14px; color: var(--muted); }
.money-how summary { cursor: pointer; font-weight: 650; color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.money-how p { margin-top: 8px; max-width: 760px; }
.explain { margin-top: 40px; border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 6px; padding: 28px; background: var(--surface); }
.explain-strong { border-left-color: var(--rank-good); }
.explain-invisible { border-left-color: var(--rank-none); }
.explain-patchy, .explain-weak { border-left-color: var(--rank-weak); }
.explain h2 { font-size: 38px; }
.explain-meaning { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 760px; }
.explain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }
.explain h3 { font: 700 20px/1.25 var(--display); margin-bottom: 10px; }
.explain-key { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.explain-key li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.explain-key .dot { margin-top: 4px; }
.explain-key strong { color: var(--white); }
.explain-todo { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.explain-cta { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.explain-cta p { color: var(--muted); max-width: 560px; }
.explain-cta strong { color: var(--white); }
.unlock-sub { color: var(--muted); margin-top: 12px; }
.unlock ul { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.unlock .button { width: 100%; }
.unlock small { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.report-section { margin-top: 56px; }
.report-section h2 { font-size: 38px; margin-bottom: 20px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.report-table th, .report-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.report-table th { color: var(--muted); font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.report-table tr:last-child td { border-bottom: 0; }
.report-table td small { display: block; color: var(--muted); }
.report-table .you td { background: #ffe34a12; }
.fixes { list-style: none; counter-reset: fix; padding: 0; margin: 0; display: grid; gap: 14px; }
.fix { counter-increment: fix; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; border: 1px solid var(--line); border-radius: 6px; padding: 20px; background: var(--surface); }
.fix::before { content: counter(fix); font: 800 32px/1 var(--display); color: var(--yellow); }
.fix h3 { font: 700 22px/1.25 var(--display); margin-bottom: 6px; }
.fix p { color: var(--muted); }
.fix a { display: inline-block; margin-top: 8px; font-weight: 650; }
.playbook .eyebrow { color: var(--yellow); margin-bottom: 10px; }
.phase { margin-top: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 24px; }
.phase-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.phase-head h3 { font: 700 26px/1.2 var(--display); }
.phase-when { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--yellow); border-radius: 3px; padding: 3px 8px; }
.phase-intro { color: var(--muted); margin-top: 10px; max-width: 780px; }
.phase-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 4px; }
.phase-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.phase-steps h4 { font: 700 18px/1.3 var(--display); }
.phase-steps p { color: var(--muted); margin-top: 4px; max-width: 780px; }
.phase-steps a { display: inline-block; margin-top: 6px; color: var(--yellow); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.phase-steps .step-yours { color: var(--white); font-weight: 650; font-size: 14px; }
.step-check { padding-top: 2px; }
.step-check input { width: 20px; height: 20px; accent-color: var(--rank-good); cursor: pointer; }
.phase-steps li.is-done h4 { text-decoration: line-through; text-decoration-color: var(--rank-good); color: var(--muted); }
.report-cta { margin-top: 56px; border-top: 2px solid var(--yellow); padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.report-cta h2 { font-size: 34px; }
.report-cta p { color: var(--muted); max-width: 620px; margin-top: 6px; }
.notice { margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }

/* Thank you */
.thanks { max-width: 860px; }
.thanks h1 { font-size: 64px; }
.thanks-copy { color: var(--muted); font-size: 18px; margin: 22px 0 24px; max-width: 680px; }
.progress { height: 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; max-width: 560px; }
.progress span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .4s; }
.thanks .button { margin-top: 20px; }
.keep-link { margin-top: 32px; max-width: 620px; }
.keep-link label { font-size: 14px; font-weight: 650; }
.thanks-small { margin-top: 18px; color: var(--muted); font-size: 14px; }
.thanks-next { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.thanks-next h2 { font-size: 32px; margin-bottom: 8px; }
.thanks-next p { color: var(--muted); max-width: 620px; }

.tools-legal { width: 100%; order: 3; }
.tools-legal a, .tools-legal button { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.unlock small a { color: var(--white); text-decoration: underline; }

/* Consent */
.tools-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 760px; margin-inline: auto; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; box-shadow: 0 10px 30px #0009; font-size: 13px; }
.tools-consent p { color: var(--muted); flex: 1 1 320px; }
.tools-consent a { color: var(--white); text-decoration: underline; }
.tools-consent div { display: flex; gap: 10px; }
.tools-consent button { min-height: 40px; padding: 8px 14px; border-radius: 4px; border: 1px solid var(--yellow); font: 650 13px/1 var(--body); cursor: pointer; }
.tools-consent .accept { background: var(--yellow); color: var(--ink); }
.tools-consent .reject { background: transparent; color: var(--yellow); }

@media (max-width: 1000px) {
  .tool-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 40px 56px; }
  .tool-card { max-width: 640px; }
  .tools-page h1 { font-size: 56px; }
  .unlock { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .offer-grid, .steps, .explain-grid { grid-template-columns: minmax(0, 1fr); }
  .proof h2 { font-size: 30px; }
  .explain, .money { padding: 20px; }
  .money-grid { grid-template-columns: minmax(0, 1fr); }
  .money h2 { font-size: 30px; }
  .explain h2 { font-size: 30px; }
  .score-row { grid-template-columns: minmax(0, 1fr); }
  .score b { font-size: 34px; }
  .rank-map { height: 420px; }
  .tools-page h2 { font-size: 34px; }
}
@media (max-width: 620px) {
  .tools-page h1, .report h1, .thanks h1 { font-size: 42px; }
  .tool-card, .unlock { padding: 20px; box-shadow: 5px 5px 0 var(--yellow); }
  .find-row input { font-size: 16px; }
  .fix { grid-template-columns: 34px minmax(0, 1fr); padding: 16px; }
  .rank-map { height: 360px; }
}
@media print {
  .site-header, .site-footer, .unlock, .tools-consent, .report-cta, .scan-status { display: none !important; }
}

/* Paid support line */
.support-line { margin-top: 16px; display: inline-flex; flex-wrap: wrap; gap: 4px 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 14px; color: var(--muted); }
.support-line strong { color: var(--white); }
.support-line a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }

/* Landing proof sits between the hero and "What you get" */
.tool-proof { padding-bottom: 0; }
.tool-proof .proof { margin-top: 0; }

/* Layout fixes from the paid-report walkthrough (8 Oct 2026) */
.phase-steps h4, .fix h3 { margin: 0; }
.report-table { min-width: 760px; }
.report-table td:first-child { min-width: 200px; }
#print-report { display: inline; min-height: 0; padding: 0; margin: 0; color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* Profile check (paid): your profile vs the top 3 */
.compare .eyebrow { color: var(--yellow); margin-bottom: 10px; }
.compare-loading { animation: pin-pulse 1.4s ease-in-out infinite; }
.compare-table { min-width: 720px; }
.compare-table thead th { color: var(--white); text-transform: none; letter-spacing: 0; font-size: 14px; }
.compare-table tbody th { color: var(--muted); font-weight: 650; font-size: 13px; white-space: nowrap; }
.compare-table td.you-col { background: #ffe34a12; color: var(--white); font-weight: 600; }
.compare-sub { font: 700 22px/1.25 var(--display); margin: 26px 0 12px; }
.compare-findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.compare-findings li { border: 1px solid var(--line); border-left: 4px solid var(--rank-weak); border-radius: 6px; padding: 16px 18px; background: var(--surface); }
.compare-findings h3 { font: 700 18px/1.3 var(--display); margin: 0 0 4px; }
.compare-findings p { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .compare-loading { animation: none; } }

/* Playbook steps backed by this report's findings */
.step-badge { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 3px; background: var(--yellow); color: var(--ink); font: 700 10px/1.6 var(--body); letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; }

/* "We'll check how you rank for: plumber Redcar" */
.search-preview { margin: -4px 0 14px; padding: 10px 12px; border: 1px dashed var(--yellow); border-radius: 4px; font-size: 14px; color: var(--muted); }
.search-preview strong { color: var(--yellow); }

/* Town-sized grids: the business gets its own pin, and the form says what we'll cover */
.biz-pin { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--white); color: var(--ink); font: 800 11px/1.5 var(--body); letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 2px 8px #000a; position: relative; white-space: nowrap; }
.biz-pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: var(--white); }
.area-note { margin: 0 0 16px; padding: 10px 12px; border-left: 3px solid var(--yellow); background: var(--ink); font-size: 14px; color: var(--muted); }
.legend-pin { font-size: 9px; padding: 0 5px; } .legend-pin::after { display: none; }

/* Where to grow next (paid leaders) */
.grow .eyebrow { color: var(--yellow); margin-bottom: 10px; }
/* auto-fit: the cards stretch to fill the row instead of leaving empty
   columns on wide screens; extra towns wrap onto a new row. min() keeps a
   card from ever being wider than a phone screen. */
.grow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 22px; }
.grow-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 6px; padding: 20px 22px; background: var(--surface); }
.grow-card > * { overflow-wrap: anywhere; }
.grow-card .grow-rival { margin-top: auto; padding-top: 12px; }
.grow-card.grow-good { border-top-color: var(--rank-good); }
.grow-card.grow-ok { border-top-color: var(--rank-ok); }
.grow-card.grow-bad { border-top-color: var(--rank-none); }
.grow-kind { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.grow-card h3 { font: 700 20px/1.25 var(--display); margin: 6px 0 8px; overflow-wrap: anywhere; }
.grow-level { font-weight: 650; }
.grow-good .grow-level { color: var(--rank-good); }
.grow-ok .grow-level { color: var(--rank-ok); }
.grow-bad .grow-level { color: var(--rank-none); }
.grow-detail { color: var(--muted); font-size: 14px; margin-top: 4px; }
.grow-detail strong { color: var(--white); }
.grow-how { margin-top: 18px; display: grid; gap: 6px; color: var(--muted); max-width: 820px; }
.grow-how strong { color: var(--white); }
.grow-cta { margin-top: 16px; font-weight: 650; }
.grow-cta a { color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }

/* Smaller pins on big grids */
.rank-pin.small { width: 26px; height: 26px; font-size: 11px; border-width: 1.5px; }
.rank-pin.small.none { font-size: 9px; }
.rank-pin.small.locked { width: 20px; height: 20px; font-size: 10px; }
.rank-pin.small.empty { width: 16px; height: 16px; }

/* Winners: straight answer and refund offer */
.winner .eyebrow { color: var(--rank-good); margin-bottom: 10px; }
.winner-refund { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--rank-good); border-radius: 6px; background: var(--surface); max-width: 820px; }
.winner-refund a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }

/* Winner card: made to stand out (Jack, 9 Oct 2026) */
.winner-card { position: relative; margin-top: 8px; padding: 34px 34px 30px; border: 2px solid var(--rank-good); border-radius: 10px; background: linear-gradient(160deg, #46d17a1f, var(--surface) 55%); box-shadow: 8px 8px 0 var(--rank-good); }
.winner-card .eyebrow { color: var(--rank-good); margin-bottom: 8px; }
.winner-card h2 { font-size: 46px; line-height: 1.05; max-width: 760px; }
.winner-lead { margin-top: 14px; font-size: 18px; color: var(--white); max-width: 760px; }
.winner-badge { position: absolute; top: -22px; right: 26px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--rank-good); color: var(--ink); box-shadow: 0 6px 16px #0008; }
.winner-badge svg { width: 28px; height: 28px; stroke-width: 2; }
.winner-refund { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 22px; border-radius: 8px; background: var(--ink); border: 1px dashed var(--rank-good); }
.winner-refund-title { font: 700 22px/1.25 var(--display); color: var(--white); }
.winner-refund p + p { color: var(--muted); margin-top: 4px; }
.winner-button { background: var(--rank-good); border-color: var(--rank-good); color: var(--ink); }
.winner-button:hover { background: #6ee29a; box-shadow: 4px 4px 0 #46d17a40; }
@media (max-width: 620px) {
  .winner-card { padding: 26px 20px 22px; box-shadow: 5px 5px 0 var(--rank-good); }
  .winner-card h2 { font-size: 32px; }
  .winner-lead { font-size: 16px; }
  .winner-button { width: 100%; }
}
/* The refund button is a link: keep it dark text on green, not the yellow link style. */
.winner-refund a.winner-button, .winner-refund a.winner-button:hover { color: var(--ink); text-decoration: none; }
.winner-refund a.winner-button svg { color: var(--ink); }

/* Action plan PDF download (paid, under the fixes and the playbook) */
.plan-download { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.plan-download .plan-button { background: transparent; color: var(--yellow); border: 1px solid var(--yellow); box-shadow: none; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; white-space: normal; text-align: left; }
.plan-download .plan-button:hover { background: var(--yellow); color: var(--ink); }
.plan-download .plan-button:hover svg { color: var(--ink); }
.plan-download .plan-button[disabled] { opacity: .7; cursor: progress; }
.plan-download .tool-error { flex-basis: 100%; margin-top: 0; }
.plan-note { color: var(--muted); font-size: 14px; margin-top: 8px; }
@media print { .plan-download, .plan-note { display: none; } }

/* Free estimate note, "not a template" line, proof CTA */
.money-note { color: var(--muted); font-size: 13px; margin-top: 10px; max-width: 760px; }
.unlock-custom { margin-top: 14px; font-weight: 600; color: var(--white); max-width: 640px; }
.proof-cta { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.proof-cta p { margin: 0; max-width: 620px; color: var(--muted); }
.proof-cta p strong { color: var(--white); }

/* Landing: confirm the business from a pasted Google link */
.confirm-biz { border: 1px solid var(--yellow); border-radius: 4px; padding: 12px 14px; margin: 0 0 16px; background: var(--ink); }
.confirm-biz strong { display: block; font-size: 16px; line-height: 1.35; }
.confirm-biz small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
#tool-gbp { font-size: 15px; }

/* Paid report: email note, free re-scan, what's changed */
.email-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.email-note svg { color: var(--rank-good); flex: none; }
.rescan-box { border: 1px solid var(--line); border-radius: 6px; padding: 24px 26px; background: var(--surface); }
.rescan-box p { color: var(--muted); max-width: 680px; }
.rescan-box p strong { color: var(--white); }
.rescan-box .button { margin-top: 14px; }
.changes { border: 1px solid var(--rank-good); border-radius: 6px; padding: 24px 26px; background: var(--surface); }
.changes-table td, .changes-table th { white-space: nowrap; }
.delta { font-style: normal; font-size: 13px; margin-left: 6px; color: var(--muted); }
.delta-good { color: var(--rank-good); }
.delta-bad { color: var(--rank-none); }
.then-now { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.then-now button { background: transparent; color: var(--muted); border: 0; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.then-now button + button { border-left: 1px solid var(--line); }
.then-now button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); font-weight: 650; }

/* Public sample report: banner on the report, links from the tool page and free preview */
.sample-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 0 28px; }
.sample-banner p { margin: 0; max-width: 680px; color: var(--muted); }
.sample-banner p strong { color: var(--white); }
.sample-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.sample-link svg { width: 16px; height: 16px; }
.unlock .sample-link { display: block; margin-top: 12px; font-size: 14px; }
@media print { .sample-banner, .sample-cta { display: none; } }
