/* Self-hosted Schibsted Grotesk (SIL Open Font License, see assets/fonts/OFL.txt). Latin subset. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* Selge Digital — shared design system
   Layout concept: left-aligned editorial grid on a cool paper ground; one ink-blue
   "spotlight" band per page; cobalt marks a lead, amber marks a customer (conversion). */

:root {
  /* Colour tokens — light */
  --paper: #f3f5f8;        /* page ground, cool grey-white */
  --surface: #ffffff;      /* raised panels, forms */
  --ink: #17202c;          /* text, dark bands */
  --ink-soft: #4b5665;     /* secondary text */
  --line: #d5dbe3;         /* rules, borders */
  --lead: #2c46c8;         /* cobalt: leads, links, focus */
  --lead-tint: #e6eafb;
  --customer: #f1b33a;     /* amber: customers, primary action */
  --customer-ink: #17202c; /* text on amber */
  --band: #17202c;         /* dark spotlight band */
  --band-text: #eef1f6;
  --band-soft: #a9b3c2;
  --band-line: #33404f;
  --ok: #1d7a4e;
  --error: #b42318;

  /* Type */
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
  --step-4: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem);

  /* Space and shape */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --max: 74rem;
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10161f; --surface: #18202b; --ink: #e9edf3; --ink-soft: #a7b1bf;
    --line: #2c3746; --lead: #8ea2ff; --lead-tint: #1f2a4a; --customer: #f3bd52;
    --customer-ink: #10161f; --band: #0b1018; --band-text: #e9edf3; --band-soft: #9aa5b5;
    --band-line: #26313f; --ok: #5fcf97; --error: #ff8a7a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #10161f; --surface: #18202b; --ink: #e9edf3; --ink-soft: #a7b1bf;
  --line: #2c3746; --lead: #8ea2ff; --lead-tint: #1f2a4a; --customer: #f3bd52;
  --customer-ink: #10161f; --band: #0b1018; --band-text: #e9edf3; --band-soft: #9aa5b5;
  --band-line: #26313f; --ok: #5fcf97; --error: #ff8a7a; color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
a { color: var(--lead); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lead); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--customer); }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section--flush-top { padding-top: 0; }
.section-head { display: grid; gap: 0.9rem; max-width: 44rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; max-width: 40rem; }
.prose { max-width: 42rem; display: grid; gap: 1rem; }
.prose h2 { margin-top: 1.5rem; font-size: var(--step-2); }
.prose h3 { margin-top: 0.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sticky-col { position: sticky; top: 6.5rem; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.35rem; border-radius: var(--radius);
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--customer); color: var(--customer-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--customer) 85%, var(--ink)); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--paper); }
.band .btn--secondary { color: var(--band-text); border-color: var(--band-text); }
.band .btn--secondary:hover { background: var(--band-text); color: var(--band); }
.text-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--lead); }
.band .text-link { color: var(--band-text); text-decoration-color: var(--customer); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink);
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
}
.wordmark svg { width: 1.6rem; height: 1.6rem; flex: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 1.6rem; }
.nav-list a, .nav-sub-toggle {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem;
  background: none; border: 0; padding: 0.4rem 0; cursor: pointer; font-family: inherit;
}
.nav-list a:hover, .nav-sub-toggle:hover { color: var(--lead); }
.nav-list a[aria-current="page"], .nav-sub-toggle[data-current] { box-shadow: inset 0 -2px 0 var(--lead); }
.has-sub { position: relative; }
.nav-sub-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-sub-toggle svg { width: 0.7rem; height: 0.7rem; transition: transform .15s; }
.nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: calc(100% + 0.6rem); left: -1rem; min-width: 17rem;
  list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.5rem; display: grid; gap: 0.1rem; box-shadow: 0 12px 30px -12px rgba(23, 32, 44, 0.25);
}
.nav-sub a { display: block; padding: 0.6rem 0.75rem; border-radius: 4px; font-weight: 600; }
.nav-sub a span { display: block; font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); }
.nav-sub a:hover { background: var(--lead-tint); color: var(--ink); }
.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: 0.5rem; min-height: 2.75rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem 0.8rem;
  font: 600 0.95rem var(--font); color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 1.1rem; height: 1.1rem; }

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem; max-height: calc(100vh - 4.5rem); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list a, .nav-sub-toggle { display: flex; width: 100%; padding: 0.95rem 0; font-size: 1.05rem; }
  .nav-sub-toggle { justify-content: space-between; }
  .nav-sub { position: static; box-shadow: none; border: 0; padding: 0 0 0.75rem 0.75rem; min-width: 0; background: transparent; }
  .nav-sub a { padding: 0.55rem 0; }
  .nav-list a[aria-current="page"], .nav-sub-toggle[data-current] { box-shadow: none; color: var(--lead); }
  .site-nav .btn { margin-top: 1.25rem; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3rem, 2rem + 4vw, 5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero-kicker { font-weight: 600; color: var(--ink-soft); }
.hero h1 { max-width: 13ch; }
.hero .lede { max-width: 34rem; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3rem; }
}
.flow-figure { margin: 0; min-width: 0; }
.flow-figure svg { display: block; width: 100%; height: auto; }
.flow-figure figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.75rem; }
.flow-src { fill: none; stroke: var(--lead); stroke-width: 2.5; stroke-linecap: round; }
.flow-main { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.flow-label { fill: var(--ink); font: 600 15px var(--font); }
.flow-label--soft { fill: var(--ink-soft); font-weight: 500; font-size: 13px; }
.flow-chip { fill: var(--surface); stroke: var(--line); }
.flow-dot { fill: var(--lead); }
.flow-node { fill: var(--ink); }
.flow-node-text { fill: var(--paper); font: 700 15px var(--font); }
.flow-end { fill: var(--customer); }
.flow-end-text { fill: var(--customer-ink); font: 700 15px var(--font); }
@media (max-width: 640px) {
  .flow-label, .flow-node-text, .flow-end-text { font-size: 18px; }
  .flow-label--soft { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .flow-anim .flow-src, .flow-anim .flow-main { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease-out forwards; }
  .flow-anim .flow-main { animation-delay: .7s; animation-duration: .8s; }
  .flow-anim .flow-end-group { opacity: 0; animation: arrive .45s ease-out 1.4s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes arrive { to { opacity: 1; } }
}

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-hero-inner { display: grid; gap: 1.25rem; max-width: 48rem; }
.page-hero h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem); }
.breadcrumb { font-size: var(--step--1); color: var(--ink-soft); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Problems ---------- */
.problem-list { list-style: none; display: grid; }
.problem-list li { display: grid; gap: 0.4rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.problem-list li:last-child { border-bottom: 1px solid var(--line); }
.problem-list p { color: var(--ink-soft); max-width: 36rem; }

/* ---------- Services grid ---------- */
.service-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-tile { background: var(--surface); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); display: grid; gap: 1.1rem; align-content: start; }
.service-tile h3 { font-size: var(--step-2); }
.service-facts { display: grid; gap: 0.85rem; margin: 0; }
.service-facts div { display: grid; gap: 0.15rem; }
.service-facts dt { font-size: var(--step--1); font-weight: 700; color: var(--lead); }
.service-facts dd { margin: 0; color: var(--ink); }
.service-tile .text-link { margin-top: 0.35rem; justify-self: start; }

/* ---------- Spotlight band ---------- */
.band { background: var(--band); color: var(--band-text); }
.band .lede, .band p { color: var(--band-soft); }
.band h2, .band h3, .band strong { color: var(--band-text); }
.band.section + .section, .section + .band.section { border-top: 0; }
.note {
  display: grid; gap: 0.25rem; padding: 1rem 1.15rem; border-radius: var(--radius);
  border: 1px solid var(--customer); background: color-mix(in srgb, var(--customer) 10%, transparent);
}
.band .note { background: transparent; }
.band .note p { color: var(--band-text); }
.check-list { list-style: none; display: grid; gap: 0.7rem; }
@media (min-width: 640px) { .check-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
.check-list li { position: relative; padding-left: 1.75rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 0.95rem; height: 0.55rem;
  border-left: 2.5px solid var(--lead); border-bottom: 2.5px solid var(--lead); transform: rotate(-45deg) translate(1px, -2px);
}
.band .check-list li { color: var(--band-text); }
.band .check-list li::before { border-color: var(--customer); }
.aside-box { border: 1px solid var(--band-line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.75rem; }
.aside-box--light { border-color: var(--line); background: var(--surface); }
.spotlight-body { display: grid; gap: 1.75rem; min-width: 0; }

/* ---------- Loop (marketing + CRM) ---------- */
.loop { list-style: none; counter-reset: loop; display: grid; gap: 0; }
.loop li { counter-increment: loop; position: relative; display: grid; gap: 0.35rem; padding: 0 0 1.75rem 3.25rem; }
.loop li::before {
  content: counter(loop); position: absolute; left: 0; top: -0.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
  background: var(--lead-tint); color: var(--lead); border: 2px solid var(--lead);
}
.loop li::after { content: ""; position: absolute; left: 1.05rem; top: 2.3rem; bottom: 0.2rem; width: 2px; background: var(--line); }
.loop li:last-child::before { background: var(--customer); border-color: var(--customer); color: var(--customer-ink); }
.loop li:last-child::after { display: none; }
.loop p { color: var(--ink-soft); }
.loop-return { font-size: var(--step--1); color: var(--ink-soft); padding-left: 3.25rem; margin-top: -0.75rem; }
@media (min-width: 960px) {
  .loop { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
  .loop li { padding: 3.25rem 0 0 0; }
  .loop li::before { top: 0; }
  .loop li::after { left: 2.6rem; right: -1rem; top: 1.05rem; bottom: auto; width: auto; height: 2px; }
  .loop-return { padding-left: 0; margin-top: 1.25rem; }
}
.benefits { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.benefits div { display: grid; gap: 0.35rem; align-content: start; }
.benefits p { color: var(--ink-soft); }

/* ---------- Process ---------- */
.process { list-style: none; counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process > li { counter-increment: step; display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.75rem; padding-top: 1.25rem; border-top: 3px solid var(--ink); }
@supports (grid-template-rows: subgrid) {
  .process > li { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0.75rem; }
}
.process > li::before { content: counter(step); font-size: 2.75rem; font-weight: 800; line-height: 1; color: var(--lead); font-variant-numeric: tabular-nums; }
.process p { color: var(--ink-soft); }
.process .receive { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 1rem; display: grid; gap: 0.2rem; }
.process .receive strong { font-size: var(--step--1); color: var(--ink); }
.process .receive p { color: var(--ink); font-size: 0.98rem; }
.section-cta { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }

/* ---------- Example workflows ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.8rem; border-radius: 999px;
  background: var(--lead-tint); color: var(--ink); font-size: var(--step--1); font-weight: 600; justify-self: start;
}
.badge svg { width: 1rem; height: 1rem; flex: none; color: var(--lead); }
.examples { display: grid; gap: 1.25rem; }
.example { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: grid; gap: 1rem; }
.example h3 { font-size: var(--step-1); }
.example-tag { font-size: var(--step--1); font-weight: 700; color: var(--lead); }
.chain { list-style: none; display: grid; gap: 0.5rem; }
.chain li { position: relative; padding: 0.6rem 0.85rem; border-radius: 4px; background: var(--paper); font-size: 0.98rem; min-width: 0; }
@media (min-width: 960px) {
  .chain { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.25rem; }
  .chain li:not(:last-child)::after {
    content: ""; position: absolute; right: -0.95rem; top: 50%; width: 0.6rem; height: 0.6rem;
    border-top: 2px solid var(--ink-soft); border-right: 2px solid var(--ink-soft); transform: translateY(-50%) rotate(45deg);
  }
}
.chain li:last-child { background: color-mix(in srgb, var(--customer) 22%, var(--surface)); }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; font-weight: 700; font-size: var(--step-1); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.7rem; height: 0.7rem; margin-right: 0.3rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px);
  transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq .answer { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 42rem; display: grid; gap: 0.75rem; }

/* ---------- Forms ---------- */
.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); min-width: 0; }
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 0.98rem; }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); font-weight: 400; }
.optional { font-weight: 400; color: var(--ink-soft); }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.85rem; min-height: 3rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--lead); outline-offset: 1px; border-color: var(--lead); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: grid; gap: 0.5rem; margin-top: 0.3rem; }
@media (min-width: 640px) { .choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field legend { padding: 0; }
.field .choice, .choice { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; font-size: 0.98rem; cursor: pointer; }
.field label.choice { font-weight: 500; }
.choice input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--lead); flex: none; }
.field-error { color: var(--error); font-size: var(--step--1); font-weight: 600; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); font-weight: 600; }
.form-status[data-state="error"] { border-color: var(--error); color: var(--error); }
.form-status[data-state="success"] { border-color: var(--ok); }
.form-alt { font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- Closing CTA ---------- */
.closing { background: var(--lead-tint); }
.closing .split { align-items: start; }
.closing-copy { display: grid; gap: 1.25rem; }
.closing-copy ul { list-style: none; display: grid; gap: 0.5rem; }

/* ---------- Simple CTA band (inner pages) ---------- */
.cta-band { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem; } }

/* ---------- Generic lists for service pages ---------- */
.deliverables { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .deliverables { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.deliverables li { list-style: none; background: var(--surface); padding: 1.15rem 1.25rem; display: grid; gap: 0.25rem; }
.deliverables li p { color: var(--ink-soft); font-size: 0.98rem; }
.needs { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 760px) { .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; } }
.needs li { padding-left: 1rem; border-left: 3px solid var(--lead); display: grid; gap: 0.2rem; }
.needs li p { color: var(--ink-soft); }
.fit-list { list-style: none; display: grid; gap: 0.6rem; }
.fit-list li { padding-left: 1.4rem; position: relative; }
.fit-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lead); }
.related { display: grid; gap: 1rem; }
@media (min-width: 760px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.related a { display: grid; gap: 0.3rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.related a:hover { border-color: var(--lead); }
.related a strong { color: var(--lead); }
.related a span { color: var(--ink-soft); }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.anchor-nav a { padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; background: var(--surface); }
.anchor-nav a:hover { border-color: var(--lead); color: var(--lead); }
.subhead { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; max-width: 44rem; }
.block + .block { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.review-flag { border: 2px dashed var(--error); border-radius: var(--radius); padding: 1rem 1.15rem; display: grid; gap: 0.3rem; background: var(--surface); }
.review-flag strong { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--band-soft); padding-block: 3.5rem 2rem; font-size: 0.98rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
  .footer-grid--4 { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }
.site-footer .wordmark { color: var(--band-text); }
.footer-brand { display: grid; gap: 0.9rem; max-width: 22rem; }
.footer-col { display: grid; gap: 0.75rem; align-content: start; }
.footer-col h2 { font-size: 1rem; color: var(--band-text); letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--band-soft); text-decoration: none; }
.site-footer a:hover { color: var(--band-text); text-decoration: underline; }
.footer-legal { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: var(--step--1); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .2s ease-out;
}
.mobile-cta .btn { width: 100%; }
.mobile-cta.is-visible { transform: translateY(0); }
@media (min-width: 760px) { .mobile-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }


/* ---------- WordPress additions ---------- */
.admin-bar .site-header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .site-header { top: calc(46px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 600px) { .admin-bar .site-header { top: env(safe-area-inset-top, 0px); } }
.admin-bar .sticky-col { top: calc(6.5rem + 32px); }
html { scroll-padding-top: 5.5rem; }

/* Contact details */
.contact-list { list-style: none; display: grid; gap: 0.75rem; }
.contact-list li { display: grid; gap: 0.1rem; }
.contact-label { font-size: var(--step--1); font-weight: 700; }
.site-footer .contact-label { color: var(--band-text); }
.aside-box--light .contact-label { color: var(--ink-soft); }
.contact-list a { overflow-wrap: anywhere; }

/* Long-form content (Privacy Policy and any page edited in WordPress) */
.entry-content { max-width: 44rem; display: grid; gap: 1.1rem; }
.entry-content > * { margin: 0; }
.entry-content h2 { font-size: var(--step-2); margin-top: 1.5rem; }
.entry-content h3 { font-size: var(--step-1); margin-top: 1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }
.entry-content img { height: auto; }
.entry-content blockquote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--lead); color: var(--ink-soft); }
.alignwide { max-width: 60rem; }
.alignfull { max-width: none; }
.wp-block-image figcaption, .wp-caption-text { font-size: var(--step--1); color: var(--ink-soft); }

/* Shown only to logged-in editors */
.review-banner {
  border: 2px dashed var(--error); border-radius: var(--radius); background: var(--surface);
  padding: 1rem 1.15rem; display: grid; gap: 0.35rem; max-width: 44rem; margin-bottom: 2rem;
}
.review-banner strong { color: var(--error); }

/* Thank-you and 404 */
.message-page { padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.message-page .page-hero-inner { gap: 1.5rem; }

/* Platform note on service pages */
.platforms { font-weight: 600; color: var(--ink); }

/* Disabled-while-sending button */
.btn[aria-disabled="true"] { opacity: 0.7; pointer-events: none; }

/* Inner-page components */
.page-hero .note { max-width: 40rem; }
.wrap.page-hero-inner { max-width: var(--max); }
.page-hero-inner > * { max-width: 48rem; }
.h3 { font-size: var(--step-1); }
@media (min-width: 760px) { .deliverables--odd li:last-child { grid-column: 1 / -1; } }
.deliverables + .form-alt { margin-top: 1rem; }
.process--compact > li { grid-template-rows: auto auto 1fr; }
@supports (grid-template-rows: subgrid) { .process--compact > li { grid-row: span 3; grid-template-rows: subgrid; } }
.anchor-bar { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.anchor-bar + .section { border-top: 0; }
.benefits--plain { margin-top: 0; padding-top: 0; border-top: 0; row-gap: 2rem; }
.block .subhead h3 { font-size: var(--step-2); }
.block.split { align-items: start; }
.section > .wrap > .section-head:last-child { margin-bottom: 0; }

/* Vertical numbered steps (consultation and quote pages) */
.loop.loop--stacked { grid-template-columns: minmax(0, 1fr); gap: 0; }
.loop.loop--stacked li { padding: 0 0 1.5rem 3.25rem; }
.loop.loop--stacked li::before { top: -0.1rem; }
.loop.loop--stacked li::after { left: 1.05rem; right: auto; top: 2.3rem; bottom: 0.2rem; width: 2px; height: auto; }
.loop.loop--stacked h3 { font-size: 1.08rem; }
