/* Sector pages (/seo-for-law-firms and the pages that follow it). Loaded after style.css, so it only adds what a sector page needs
   and never restyles a component that style.css already owns (buttons, faqs, choices, lanes, sample pages).
   1. Hero with a photograph, 2. big statistics, 3. a CSS-only chooser for the example pages (radio buttons, so it works without JavaScript). */


/* ---------- 1. hero with a photograph (same method as the homepage hero) ---------- */
.sector-hero { padding: 72px 0 112px; background: var(--bg); }
.sector-hero.px {
  --ov: linear-gradient(90deg, rgba(17, 17, 16, .93) 0%, rgba(17, 17, 16, .72) 46%, rgba(17, 17, 16, .08) 100%),
        linear-gradient(180deg, rgba(17, 17, 16, 0) 78%, var(--bg) 100%);
}
.sector-hero .crumbs { margin-bottom: 40px; }
.sector-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: .94; max-width: 9.5em; margin-bottom: 26px; }
.sector-hero .lead { font-size: var(--fs-lead-lg); max-width: 28em; }
.sector-hero .cta-note { max-width: 32em; }
.bg-law { --bgimg: url("../img/law-firms-hero.webp"); }
.bg-law::before { background-position: 74% center; }
@media (max-width: 700px) {
  .sector-hero { padding: 40px 0 72px; }
  .bg-law { --bgimg: url("../img/law-firms-hero-sm.webp"); --ov: linear-gradient(180deg, rgba(17, 17, 16, .66), rgba(17, 17, 16, .9)); }
}


/* ---------- 2. one big claim, with the figure in the headline ---------- */
.big-claim { font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1; max-width: 16em; margin: 0 0 24px; }
.big-claim .accent { color: var(--accent); }


/* notes and reassurance lines on sector pages read at body size, so nothing is small or hard to scan */
.sector-hero .cta-note, main .fine, main .cta-note { font-size: var(--fs-body); line-height: 1.55; color: var(--text); }
.sector-hero .cta-note { color: var(--text); }


/* ---------- 3. chooser for the example pages (radio buttons and sibling selectors, no JavaScript) ---------- */
.lf-pick { position: relative; }
.lf-pick > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lf-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.lf-tabs label {
  cursor: pointer; padding: 13px 20px; border: 1px solid var(--line-strong); color: var(--ink);
  font: 500 var(--fs-ui)/1.2 var(--mono); letter-spacing: var(--ls-ui); text-transform: uppercase;
}
.lf-tabs label:hover { border-color: var(--ink); }
#firm-consumer:checked ~ .lf-tabs label[for="firm-consumer"],
#firm-commercial:checked ~ .lf-tabs label[for="firm-commercial"],
#firm-solo:checked ~ .lf-tabs label[for="firm-solo"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
#firm-consumer:focus-visible ~ .lf-tabs label[for="firm-consumer"],
#firm-commercial:focus-visible ~ .lf-tabs label[for="firm-commercial"],
#firm-solo:focus-visible ~ .lf-tabs label[for="firm-solo"] { outline: 3px solid var(--accent); outline-offset: 3px; }
.lf-panel { display: none; }
#firm-consumer:checked ~ #lf-consumer,
#firm-commercial:checked ~ #lf-commercial,
#firm-solo:checked ~ #lf-solo { display: block; }
.lf-panel .fine { margin: 8px 0 0; max-width: 46em; }
.lf-panel .fine + .fine { margin-top: 8px; }

/* the example page inside the chooser: five labelled rows, each carrying a numbered pin */
.sample .page .row { padding: 14px 0 2px; border-top: 1px solid #e4e2dc; }
.sample .page .row:first-of-type { border-top: 0; padding-top: 0; }
.sample .page .row h4 { display: flex; align-items: center; margin: 0 0 4px; }
.sample .page .row p { margin: 0 0 10px; font-size: 1rem; }
.sample .page .badge { display: inline-block; margin: 2px 0 10px; padding: 6px 12px; border: 1px solid #c8c6bf; font: 600 .78rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #3a3a3f; }
.sample .page .mock-note { font: 600 .78rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #5f5f66; margin: 0 0 14px; }
.sample .mock-bar { background: #111110; }

/* parts of the example pages, so each looks like a real page and not a list of sentences */
.sample .page .mini-table { border: 1px solid #dcdad3; margin: 6px 0 12px; font-size: 1rem; }
.sample .page .mini-table div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; padding: 8px 12px; border-top: 1px solid #e8e6df; }
.sample .page .mini-table div:first-child { border-top: 0; }
.sample .page .mini-table span:first-child { font-weight: 700; color: #171717; }
.sample .page .stages { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 0 8px; padding: 0; }
.sample .page .stages li { counter-increment: s; padding: 8px 8px 8px 10px; background: #f5f4f0; border-left: 3px solid var(--accent); font-size: 1rem; font-weight: 600; color: #171717; }
.sample .page .stages li::before { content: counter(s) ". "; color: #6b6b6b; font-weight: 500; }
.sample .page .person { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.sample .page .person .av { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #e8e6df; color: #3a3a3f; display: grid; place-items: center; font: 600 .8rem/1 var(--mono); }
.sample .page .person p { margin: 0; font-size: 1rem; }
.sample .page .person b { display: block; color: #171717; }
.sample .page .fakes { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.sample .page .fakebtn { padding: 9px 14px; background: var(--accent); color: #fff; font: 600 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sample .page .fakebtn.alt { background: transparent; color: #171717; border: 1px solid #171717; }
@media (max-width: 520px) { .sample .page .stages { grid-template-columns: 1fr 1fr; } .sample .page .mini-table div { grid-template-columns: 1fr; gap: 2px; } }


/* ---------- 4. therapists page (/seo-for-therapists) ---------- */
.bg-therapists { --bgimg: url("../img/therapists-hero.webp"); }
.bg-therapists::before { background-position: 72% center; }
@media (max-width: 700px) {
  .bg-therapists { --bgimg: url("../img/therapists-hero-sm.webp"); --ov: linear-gradient(180deg, rgba(17, 17, 16, .62), rgba(17, 17, 16, .88)); }
}
.sector-hero .lead + .lead { margin-top: 14px; }

/* route diagram: four ways in join one line, one check, one result. Made to be the thing the eye lands on */
.route { display: grid; grid-template-columns: 1.3fr 70px 1fr 70px .8fr; align-items: center; margin: 48px 0 0; padding: 44px 40px; background: var(--surface); border-top: 4px solid var(--accent); }
.route .src { list-style: none; margin: 0; padding: 0 30px 0 0; display: grid; gap: 12px; position: relative; }
.route .src::after { content: ""; position: absolute; right: 0; top: 26px; bottom: 26px; width: 4px; background: var(--accent); }
.route .src li { position: relative; background: #fff; border: 1px solid #d4d4d4; border-left: 5px solid var(--accent); padding: 16px 20px; font: 600 1.05rem/1.3 var(--sans); color: var(--ink); }
.route .src li::after { content: ""; position: absolute; left: 100%; top: 50%; width: 31px; height: 4px; margin-top: -2px; background: var(--accent); }
.route .arrow { position: relative; height: 4px; background: var(--accent); }
.route .arrow::after { content: ""; position: absolute; right: -2px; top: -9px; border-left: 16px solid var(--accent); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.route .node { padding: 26px 26px 28px; background: var(--ink); color: #fff; }
.route .node b { display: block; margin: 0 0 10px; font: 600 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #ff8a94; }
.route .node strong { display: block; color: #fff; font: 400 1.9rem/1.05 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.route .node p { margin: 0; color: #e8e8e4; font-size: 1.05rem; line-height: 1.45; }
.route .node + .arrow + .node { background: var(--accent); }
.route .node + .arrow + .node b { color: #fff; opacity: .85; }
@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; gap: 14px; padding: 28px 20px; }
  .route .src { padding-right: 0; }
  .route .src::after, .route .src li::after { display: none; }
  .route .arrow { width: 4px; height: 36px; margin: 0 auto; }
  .route .arrow::after { right: auto; left: -9px; top: auto; bottom: -2px; border: 11px solid transparent; border-top: 16px solid var(--accent); border-bottom: 0; }
}

/* plain two-column lists, for what people look for and for prices */
.ask { margin: 32px 0 0; border-top: 2px solid var(--ink); }
.ask > div { display: grid; grid-template-columns: 1fr 2fr; gap: 6px 36px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ask dt { font-weight: 700; color: var(--ink); }
.ask dd { margin: 0; }
.ask .p { display: block; font: 400 1.7rem/1 var(--display); color: var(--ink); margin-top: 6px; }
.ask .p small { font: 600 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin: 0 0 4px; }
@media (max-width: 720px) { .ask > div { grid-template-columns: 1fr; } }

/* labelled points, each with the small red square */
.points { list-style: none; margin: 28px 0 0; padding: 0; }
.points li { position: relative; padding: 18px 0 18px 28px; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before { content: ""; position: absolute; left: 0; top: 28px; width: 10px; height: 10px; background: var(--accent); }
.points strong { display: block; color: var(--ink); margin: 0 0 4px; }

/* who does what, two lanes */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 40px 0 0; }
.duo > div { border-top: 2px solid var(--ink); padding: 18px 0 0; }
.duo h3 { font: 600 .78rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 8px; }
.duo p { margin: 0; }
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; } }

/* proof band: the lead example beside a screenshot frame, then two shorter examples */
.eg-lead { display: grid; grid-template-columns: 1fr 390px; gap: 56px; align-items: start; margin: 36px 0 0; }
.eg-side { position: sticky; top: 96px; }
.eg-side .shots { padding-bottom: 40px; }
.eg-lead h3, .eg-card h3 { margin: 0 0 8px; }
.eg-lead .kick, .eg-card .kick { font: 600 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.eg-pair { display: grid; grid-template-columns: 1fr; gap: 40px; margin: 56px 0 0; }
.eg-card > div:last-child { max-width: 46em; }
.eg-card { display: grid; grid-template-columns: 390px 1fr; gap: 48px; align-items: start; border-top: 2px solid var(--ink); padding: 22px 0 0; }
.eg-card p { margin: 0 0 12px; }
.ph { aspect-ratio: 9 / 16; border: 2px dashed var(--line-strong); display: grid; place-items: center; text-align: center; padding: 10px; font: 600 .7rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.eg-list { margin: 16px 0 0; padding-left: 20px; }
.eg-list li { margin: 6px 0; }
.band-ask { margin: 48px 0 0; }
@media (max-width: 900px) {
  .eg-lead { grid-template-columns: 1fr; gap: 28px; }
  .eg-side { position: static; order: -1; max-width: 420px; }
  .eg-pair { grid-template-columns: 1fr; }
  .eg-card { grid-template-columns: 1fr; gap: 20px; }
  .eg-card .shots { max-width: 420px; }
}


/* the audit example: a result list and a Maps listing inside the mock page */
.sample .page .serp { margin: 6px 0 12px; border: 1px solid #dcdad3; }
.sample .page .serp div { padding: 8px 12px; border-top: 1px solid #e8e6df; font-size: 1rem; color: #3a3a3f; }
.sample .page .serp div:first-child { border-top: 0; }
.sample .page .serp .you { background: #f5f4f0; border-left: 3px solid var(--accent); font-weight: 700; color: #171717; }
.sample .page .maps { display: flex; gap: 14px; align-items: center; margin: 6px 0 12px; border: 1px solid #dcdad3; padding: 10px 12px; }
.sample .page .maps .pinbox { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #e8e6df; display: grid; place-items: center; font: 700 .8rem/1 var(--mono); color: #3a3a3f; }
.sample .page .maps p { margin: 0; font-size: 1rem; }
.sample .page .maps b { display: block; color: #171717; }

/* the one dark band on the page (the proof), using the site's dark tokens inside the light theme */
.theme-light .section.band-dark:not(.px) {
  --bg: #111110; --surface: #131315; --card: #131315; --ink: #f3efe8; --text: #cdc8bf; --muted: #9a9aa2;
  --line: #2a2a2f; --line-strong: #3a3a40; --accent-text: #e8404f;
  background: var(--bg); color: var(--text);
}
.band-dark .eg-lead .fine, .band-dark .fine { color: var(--muted); }
.eg-lead .fine { margin: 14px 0 18px; }
.eg-lead dl.stats + .fine { margin-top: 16px; }
.band-dark .more { color: var(--ink); }

/* three short rows instead of three walls of text, each with a plain label and the same reading width */
.why-rows { margin: 8px 0 0; border-top: 2px solid var(--ink); }
.why-row { display: grid; grid-template-columns: minmax(180px, 1fr) 2.4fr; gap: 8px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.why-row h3 { margin: 0; font: 700 1.3rem/1.25 var(--sans); color: var(--ink); }
.why-row p { margin: 0 0 14px; max-width: 40em; }
.why-row p:first-child { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }
.why-row p:last-child { margin-bottom: 0; }
@media (max-width: 800px) { .why-row { grid-template-columns: 1fr; padding: 22px 0; } }

.eg-card .shots { padding-bottom: 40px; }
.band-dark .quote { margin: 32px 0 32px; }

/* websites for therapists: seven numbered needs, and three short columns after launch */
.needs { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; counter-reset: n; border-top: 2px solid var(--ink); }
.needs li { counter-increment: n; position: relative; padding: 24px 0 24px 58px; border-bottom: 1px solid var(--line); }
.needs li::before { content: counter(n); position: absolute; left: 0; top: 26px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 600 .85rem/1 var(--mono); }
.needs h3 { margin: 0 0 6px; font: 400 1.6rem/1.05 var(--display); text-transform: uppercase; color: var(--ink); }
.needs p { margin: 0; max-width: 32em; }
@media (max-width: 800px) { .needs { grid-template-columns: 1fr; } }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 32px 0 0; }
.trio > div { border-top: 2px solid var(--ink); padding: 20px 0 0; }
.trio h3 { margin: 0 0 8px; font: 700 1.2rem/1.25 var(--sans); color: var(--ink); }
.trio p { margin: 0; }
@media (max-width: 800px) { .trio { grid-template-columns: 1fr; gap: 28px; } }
.ask + p { margin-top: 24px; }
