/* Dev Alliance theme. Spruce ink on cool paper; search-highlight yellow marks answers.
   Type: Archivo (grotesque with a width axis) set semi-expanded for headings, normal width for UI;
   Literata (a serif drawn for long screen reading) for answers, summaries and articles.
   Both are self-hosted variable fonts (SIL OFL), latin subset. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2-variations"), url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var-italic.woff2") format("woff2-variations"), url("fonts/archivo-var-italic.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-var.woff2") format("woff2-variations"), url("fonts/literata-var.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-var-italic.woff2") format("woff2-variations"), url("fonts/literata-var-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}
/* Metric-matched fallbacks so the swap doesn't shift the layout (protects CLS). */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 98.5%; ascent-override: 89.1%; descent-override: 21.3%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Heading Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"); font-weight: 700; size-adjust: 111%; ascent-override: 79.1%; descent-override: 18.9%; line-gap-override: 0%; }
@font-face { font-family: "Literata Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"); size-adjust: 117.2%; ascent-override: 100.5%; descent-override: 26.3%; line-gap-override: 0%; }

:root {
  --ink: #10263b;
  --ink-soft: #46596a;
  --paper: #f4f7f6;
  --surface: #ffffff;
  --sky: #e3ecee;
  --line: #d2dcd9;
  --spruce: #1b6a56;
  --spruce-deep: #0e3b31;
  --spruce-tint: #d7ebe4;
  --mark: #ffd84d;
  --radius: 14px;
  --crumb: var(--spruce);
  --danger: #a5281b;

  --display: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --heading: "Archivo", "Archivo Heading Fallback", Arial, sans-serif;
  --reading: "Literata", "Literata Fallback", Georgia, serif;
  --wide: 112%;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.42rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 1.95rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.4vw, 4.4rem);

  --shell: 84rem;
  --gutter: clamp(1rem, 3vw, 2rem);
  --space: clamp(3.5rem, 2.5rem + 5vw, 7rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--step-0);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--spruce); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--spruce-deep); text-decoration-thickness: 2px; }

/* Two-tone ring: ink on light sections, yellow halo on dark ones. */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--mark); border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-stretch: var(--wide);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); letter-spacing: -0.04em; font-weight: 760; line-height: 1; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; font-weight: 680; line-height: 1.2; }
/* Small headings inside UI read better at normal width. */
.panel h2, .short-answer h2, .colophon h2, .faq-group h2, .empty h2 { font-stretch: 100%; }

p { margin: 0 0 1em; text-wrap: pretty; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  background: var(--spruce); color: #fff;
  font: 650 var(--step-0)/1 var(--display);
  border: 2px solid var(--spruce); border-radius: 10px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--spruce-deep); border-color: var(--spruce-deep); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--small { padding: 0.6rem 1rem; font-size: var(--step--1); }
.btn--light { background: var(--mark); border-color: var(--mark); color: var(--ink); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Masthead */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em;
}
.wordmark:hover { color: var(--ink); }
.wordmark img { width: 2rem; height: 2rem; }
/* Primary navigation.
   Hover: a thin spruce line draws in under the link.
   Current section: the highlighter band (the site's "this is the answer" mark) sits behind it,
   and slides from the old link to the new one when the visitor changes page. */
.primary-nav { margin-left: auto; }
.nav { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav > li > a {
  position: relative; display: flex; align-items: center; gap: 0.3rem;
  padding: 0.55rem 0.7rem; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 560; font-size: var(--step--1);
}
.nav > li > a::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.3rem; height: 2px;
  background: var(--spruce); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.22s cubic-bezier(0.3, 0.8, 0.2, 1);
}
.nav > li:hover > a::after, .nav > li > a:focus-visible::after { transform: scaleX(1); }
.nav > li:hover > a { color: var(--spruce-deep); }

/* Chevron on items that have a dropdown */
.nav > li:has(> ul) > a::before {
  content: ""; order: 2; width: 0.6rem; height: 0.6rem; flex: none;
  background: currentColor; opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.nav > li:hover > a::before, .nav > li:focus-within > a::before { transform: rotate(180deg); opacity: 0.9; }

/* Current section: highlighter band behind the label */
.nav > li > a[aria-current="page"],
.nav > li.is-current > a,
.nav > li:has(li.is-current, li > a[aria-current="page"]) > a,
.nav > li > a[data-section="current"] {
  font-weight: 680; color: var(--ink);
  background: linear-gradient(transparent 50%, var(--mark) 50%, var(--mark) 78%, transparent 78%) no-repeat 0.55rem 0 / calc(100% - 1.1rem) 100%;
  view-transition-name: nav-current;
}
.nav > li > a[aria-current="page"]::after,
.nav > li.is-current > a::after,
.nav > li:has(li.is-current, li > a[aria-current="page"]) > a::after,
.nav > li > a[data-section="current"]::after { display: none; }

/* Dropdowns */
.nav ul {
  list-style: none; margin: 0; padding: 0.4rem;
  position: absolute; top: calc(100% + 0.35rem); left: -0.4rem; z-index: 30; min-width: 15rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 0 var(--line), 0 22px 44px -24px rgba(16, 38, 59, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
.nav ul::before { content: ""; position: absolute; left: 0; right: 0; top: -0.75rem; height: 0.75rem; } /* hover bridge */
.nav > li:hover > ul, .nav > li:focus-within > ul {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s;
}
/* Escape closes a dropdown until the pointer or focus leaves it (same specificity, so order wins) */
.nav > li[data-dismissed]:hover > ul, .nav > li[data-dismissed]:focus-within > ul { opacity: 0; visibility: hidden; }
.nav ul a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 500;
  transition: background-color 0.12s ease, padding-left 0.18s ease;
}
.nav ul a:hover, .nav ul a:focus-visible { background: var(--sky); padding-left: 1rem; }
.nav ul a[aria-current="page"], .nav ul li.is-current > a {
  background: var(--spruce-tint); color: var(--spruce-deep); font-weight: 650;
  box-shadow: inset 3px 0 0 var(--mark);
}

/* Menu button (phones only, when JavaScript is available) */
.menu-toggle {
  display: none; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: 600 var(--step--1)/1 var(--display); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 1rem; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -5px; }
.menu-toggle__bars::after { top: 5px; }
.masthead[data-open] .menu-toggle__bars { background: transparent; }
.masthead[data-open] .menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.masthead[data-open] .menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .masthead__bar { flex-wrap: wrap; gap: 0.5rem 0.75rem; padding-block: 0.6rem; }
  .masthead__cta { margin-left: auto; }
  .nav ul { display: none; }

  /* Without JavaScript: a scrollable row of top-level links */
  html:not(.js) .primary-nav { order: 3; width: 100%; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
  html:not(.js) .nav { width: max-content; }
  html:not(.js) .nav > li > a::before { display: none; }

  /* With JavaScript: a menu button that opens a full list with every sub-page */
  .js .menu-toggle { display: inline-flex; order: 2; }
  .js .masthead__cta { order: 1; }
  .js .primary-nav { order: 3; width: 100%; margin: 0; display: none; }
  .js .masthead[data-open] .primary-nav { display: block; max-height: calc(100dvh - 5rem); overflow-y: auto; padding: 0.25rem 0 1rem; }
  .js .nav { flex-direction: column; gap: 0; }
  .js .nav > li { border-top: 1px solid var(--line); }
  .js .nav > li > a { padding: 0.85rem 0.25rem; font-size: var(--step-0); }
  .js .nav > li > a::before, .js .nav > li > a::after { display: none; }
  .js .nav > li > a[aria-current="page"], .js .nav > li.is-current > a,
  .js .nav > li:has(li.is-current, li > a[aria-current="page"]) > a, .js .nav > li > a[data-section="current"] {
    display: inline-flex; background-position: 0.25rem 0; background-size: calc(100% - 0.5rem) 100%;
  }
  .js .nav ul {
    display: block; position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; margin: 0 0 0.6rem; padding: 0 0 0 0.75rem;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; background: none;
  }
  .js .nav ul::before { display: none; }
  .js .nav ul a { padding: 0.55rem 0.75rem; font-size: var(--step-0); }
}
@media (max-width: 480px) {
  .masthead__bar { column-gap: 0.5rem; }
  .menu-toggle { padding: 0.55rem; min-width: 2.6rem; min-height: 2.35rem; justify-content: center; }
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .masthead__cta { padding-inline: 0.8rem; }
}
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .js .masthead[data-open] .primary-nav { animation: menu-in 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Page transitions: the logo expands to fill the screen, then the next page appears ----------
   1. Leaving (site.js): tapping a link to another page on this site shows the logo in the centre of the
      screen. The logo tile then grows until it fills the screen.
   2. Arriving (CSS only): the inline script in <head> sets html.pt-in when the last page did step 1.
      The new page starts under the filled screen, which fades away to show it.
      Step 2 needs no script, so it can never leave the page covered.
   Works the same in every browser, desktop and phone. Nothing runs when the visitor asks for reduced motion. */
:root {
  --logo-tile: #0e3b31;
  --pt-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M24 20 12 32l12 12M40 20l12 12-12 12' fill='none' stroke='%23d7ebe4' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='29' y='17' width='6' height='30' rx='3' fill='%23ffd84d'/%3E%3C/svg%3E");
  --pt-mark: clamp(88px, 24vmin, 136px);
}
.pt, .pt__tile, .pt__mark { position: fixed; pointer-events: none; }
.pt { inset: 0; z-index: 2147483000; }
.pt__tile { inset: 0; background: var(--logo-tile); }
.pt__mark, html.pt-in::after {
  top: 50%; left: 50%; width: var(--pt-mark); height: var(--pt-mark);
  margin: calc(var(--pt-mark) / -2) 0 0 calc(var(--pt-mark) / -2);
  background: var(--pt-glyph) center / contain no-repeat; transform-origin: 50% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  html.pt-in::before, html.pt-in::after { content: ""; position: fixed; z-index: 2147483000; pointer-events: none; }
  html.pt-in::before {
    top: 0; left: 0; width: 100vw; height: 100vh; height: 100lvh;
    background: var(--logo-tile);
    animation: pt-cover-out 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.08s both;
  }
  html.pt-in::after { animation: pt-mark-out 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.08s both; }
  /* The page settles in as the cover fades. */
  html.pt-in main { animation: pt-settle 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s backwards; }
  html.pt-in .nav a[aria-current="page"], html.pt-in .nav .is-current > a, html.pt-in .nav > li > a[data-section="current"] {
    animation: mark-in 0.5s cubic-bezier(0.3, 0.8, 0.2, 1) 0.45s both;
  }
  /* On the home page, the typed question waits until the page is showing. */
  html.pt-in .ask__typed { animation-delay: 0.6s; }
  html.pt-in .ask__body { animation-delay: 2.3s; }
  html.pt-in .ask figcaption { animation-delay: 2.6s; }
}
@keyframes pt-cover-out { to { opacity: 0; visibility: hidden; } }
@keyframes pt-mark-out { from { transform: scale(1.15); } to { transform: scale(1.35); opacity: 0; visibility: hidden; } }
@keyframes pt-settle { from { transform: scale(0.985); } }
@keyframes mark-in { from { background-size: 0 100%; } }

/* ---------- Scroll reveal ----------
   site.js marks blocks below the first screen with [data-reveal] and adds html.reveal-on.
   As each one scrolls into view it fades and rises into place; blocks that arrive together ripple
   in one after another. Without the script, or with reduced motion, nothing is ever hidden. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on [data-reveal] {
    opacity: 0; translate: 0 1.5rem;
    transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), translate 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal-on [data-reveal].is-in { opacity: 1; translate: none; }
}
@media print {
  [data-reveal] { opacity: 1 !important; translate: none !important; }
  html.pt-in::before, html.pt-in::after, .pt { display: none !important; }
}

/* Hero */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) var(--space); }
.hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 36rem; line-height: 1.5; }
.proof {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  list-style: none; padding: 0; margin: 2.25rem 0 0;
  font-size: var(--step--1); color: var(--ink-soft);
}
.proof li { display: flex; align-items: center; gap: 0.5rem; }
.proof li::before {
  content: ""; width: 0.9rem; height: 0.9rem; flex: none; border-radius: 50%;
  background: var(--spruce-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231b6a56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* The ask card: a search / AI-chat answer, the site's signature element */
.ask {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(16, 38, 59, 0.35);
  overflow: hidden;
}
.ask__query {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: var(--step-0);
}
.ask__query svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; color: var(--ink-soft); }
.ask__typed { display: inline; }
.ask__body { padding: 1.35rem 1.35rem 1.1rem; font-family: var(--reading); font-size: 1.05rem; line-height: 1.6; }
.ask__label { font-family: var(--display); font-size: var(--step--1); font-weight: 650; color: var(--spruce); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.45rem; }
.ask__label::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--spruce); }
.ask__sources { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 0; padding: 0; list-style: none; font-family: var(--display); font-size: var(--step--1); }
.ask__sources li { padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--sky); color: var(--ink-soft); }
.ask__sources mark { background: var(--mark); color: var(--ink); padding: 0.05em 0.25em; border-radius: 3px; }
.ask figcaption { padding: 0.9rem 1.35rem; background: var(--spruce-deep); color: #dfeee8; font-size: var(--step--1); }

@media (prefers-reduced-motion: no-preference) {
  .ask__typed { animation: type 1.6s steps(48, end) 0.3s both; }
  .ask__body { animation: arrive 0.6s ease-out 2s both; }
  .ask figcaption { animation: arrive 0.6s ease-out 2.3s both; }
}
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* Sections */
.band { padding-block: var(--space); }
.band--sky { background: var(--sky); }
.band--line { border-top: 1px solid var(--line); }
.band__head { max-width: 40rem; margin-bottom: 2.5rem; }
.band__head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split .band__head { position: sticky; top: 6rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .band__head { position: static; margin-bottom: 0; }
}

/* Search-result lists: services, posts */
.results { list-style: none; margin: 0; padding: 0; }
.result { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.result:last-child { border-bottom: 1px solid var(--line); }
.result__crumb { margin: 0 0 0.3rem; font-size: var(--step--1); color: var(--crumb); overflow-wrap: anywhere; }
.result h2, .result h3 { font-size: var(--step-1); margin: 0 0 0.4rem; letter-spacing: -0.01em; font-stretch: 100%; }
.result h2 a, .result h3 a { color: var(--ink); text-decoration: none; }
.result h2 a:hover, .result h3 a:hover { color: var(--spruce); text-decoration: underline; }
.result p { margin: 0; color: var(--ink-soft); font-family: var(--reading); max-width: 40rem; }
.result .result__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.6rem; font-family: var(--display); font-size: var(--step--1); }
.result__meta span:empty { display: none; }

/* "How customers find you" dark band */
.found { background: var(--spruce-deep); color: #e8f2ee; padding-block: var(--space); }
.found h2 { color: #fff; max-width: 18ch; }
.found .prose { color: #d6e7e1; }
.found .prose h3 { color: #fff; }
.found .prose a { color: var(--mark); }
.found .prose strong { color: #fff; }
.found__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.found .prose ul li::marker { color: var(--mark); }
@media (max-width: 900px) { .found__grid { grid-template-columns: minmax(0, 1fr); } }

/* Industries */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.tile a { display: block; height: 100%; padding: 1.5rem; color: var(--ink); text-decoration: none; }
.tile a:hover { background: var(--spruce-tint); }
.tile h3 { margin-bottom: 0.35rem; }
.tile p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 2rem 1.5rem; }
.step { counter-increment: step; position: relative; padding-top: 3.25rem; }
.step::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--spruce); color: var(--spruce); font-weight: 750;
}
.step::after { content: ""; position: absolute; top: 1.2rem; left: 3rem; right: -1.5rem; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--ink-soft); font-family: var(--reading); }
.step__time:empty { display: none; }
.step .step__time { margin-top: 0.6rem; font-family: var(--display); font-size: var(--step--1); color: var(--spruce); font-weight: 600; }
.steps--stacked,
.sec--steps:not(:has(.band__head)) .steps { grid-template-columns: 1fr; max-width: 44rem; }
.steps--stacked .step,
.sec--steps:not(:has(.band__head)) .step { padding: 0 0 0 4rem; min-height: 2.4rem; }
.steps--stacked .step::after,
.sec--steps:not(:has(.band__head)) .step::after { top: 2.8rem; bottom: -1.6rem; left: 1.15rem; right: auto; width: 2px; height: auto; }
@media (max-width: 700px) { .step::after { display: none; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.quote { margin: 0; padding: 1.75rem; background: var(--surface); border-left: 4px solid var(--mark); }
.quote blockquote { margin: 0 0 1rem; font-family: var(--reading); font-size: var(--step-1); line-height: 1.45; }
.quote figcaption { font-size: var(--step--1); color: var(--ink-soft); }
.quote figcaption strong { color: var(--ink); display: block; }

/* FAQ accordions */
.faq-list { max-width: 48rem; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-of-type { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  padding: 1.15rem 0; font-weight: 650; font-size: var(--step-0);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 1.4rem; height: 1.4rem; margin-top: 0.05rem; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v8M4 8h8' stroke='%2310263b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 70% no-repeat;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--mark); }
.faq-list summary:hover { color: var(--spruce); }
.faq-list .answer { padding: 0 2.5rem 1.35rem 0; font-family: var(--reading); color: var(--ink-soft); }
.faq-list .answer p { margin: 0; white-space: pre-line; }
.faq-more { margin-top: 1.5rem; font-weight: 600; }
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group h2 { font-size: var(--step-2); }

/* Closing call to action */
.closer { padding-block: var(--space); }
.closer__box {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: end;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--ink); color: #e6edf2; border-radius: 24px;
}
.closer__box h2 { color: #fff; margin-bottom: 0.4em; }
.closer__box p { margin: 0; max-width: 38rem; color: #c3d0da; font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 760px) { .closer__box { grid-template-columns: 1fr; align-items: start; } }

/* Page heads and articles */
.page-head { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-head h1 { max-width: 20ch; }
.page-head__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 40rem; line-height: 1.5; margin: 0; }
.crumbs { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 1.25rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.crumbs a { color: var(--ink-soft); }
.crumbs [aria-current="page"] { color: var(--ink); }
.byline { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin-top: 1.25rem; font-size: var(--step--1); color: var(--ink-soft); }
.byline span:empty { display: none; }
.tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--spruce-tint); color: var(--spruce-deep); font-weight: 600; }

.article-grid { display: grid; grid-template-columns: minmax(0, 48rem) minmax(17rem, 22rem); justify-content: space-between; gap: clamp(2rem, 4vw, 4rem); padding-bottom: var(--space); align-items: start; }
.article-aside { position: sticky; top: 6rem; display: grid; gap: 1.25rem; }
@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}
.article-single { max-width: 46rem; padding-bottom: var(--space); }

.short-answer {
  margin-bottom: 2.5rem; padding: 1.4rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--mark); border-radius: 0 var(--radius) var(--radius) 0;
}
.short-answer h2 { font-size: var(--step--1); color: var(--spruce); margin-bottom: 0.4rem; letter-spacing: 0; }
.short-answer p { margin: 0; font-family: var(--reading); font-size: var(--step-1); line-height: 1.5; }

.panel { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h2 { font-size: var(--step-1); }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li { padding: 0.45rem 0 0.45rem 1.6rem; position: relative; border-top: 1px solid var(--line); font-size: var(--step--1); }
.panel li:first-child { border-top: 0; }
.panel li::before { content: ""; position: absolute; left: 0; top: 0.8rem; width: 0.7rem; height: 0.7rem; border-radius: 2px; background: var(--spruce-tint); border: 2px solid var(--spruce); }
.panel--ink { background: var(--ink); color: #dfe8ee; border-color: var(--ink); }
.panel--ink h2 { color: #fff; }
.panel--ink p { color: #c3d0da; font-size: var(--step--1); }

/* Long-form text */
.prose { font-family: var(--reading); font-size: 1.1rem; line-height: 1.7; max-width: 46rem; }
/* Paragraph rhythm. :where() keeps the reset at low specificity so the spacing rule below wins
   (in 1.0 the reset overrode it, so paragraphs in rich text had no gaps). */
.prose :where(p, ul, ol) { margin-block: 0; }
.prose > * + *, .prose div > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin: 2em 0 0.6em; }
.prose h3 { font-size: var(--step-1); margin: 1.7em 0 0.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--spruce); }
.prose strong { font-weight: 650; color: var(--ink); }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 4px solid var(--mark); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--display); font-size: var(--step--1); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sky); }
.prose mark { background: var(--mark); padding: 0 0.15em; }

.cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin-bottom: 2rem; background: var(--sky); }

/* Empty state */
.empty { padding: 2rem; border: 2px dashed var(--line); border-radius: var(--radius); max-width: 40rem; }
.empty h2 { font-size: var(--step-1); }
.empty p { color: var(--ink-soft); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(2rem, 5vw, 4.5rem); padding-bottom: var(--space); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: var(--step--1); }
.field label small { font-weight: 400; color: var(--ink-soft); font-size: 0.8125rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: 0.75rem 0.85rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--spruce); box-shadow: 0 0 0 3px var(--spruce-tint); background: #fff; }
.form [aria-invalid="true"] { border-color: var(--danger); }
.form .btn { justify-self: start; }
.form__note { grid-column: 1 / -1; margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
body .pcms-form-error { margin: 0; color: var(--danger); font-size: var(--step--1); font-weight: 600; }
body .pcms-form-alert { grid-column: 1 / -1; margin: 0; padding: 0.85rem 1rem; border-radius: 10px; background: #fbe9e6; color: var(--danger); font-weight: 600; }
body .pcms-form-success { padding: 2rem; background: var(--spruce-tint); border-left: 4px solid var(--spruce); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--step-1); font-weight: 600; color: var(--spruce-deep); }
.contact-lines { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.4rem; font-size: var(--step--1); }

/* Footer */
.colophon { background: var(--ink); color: #c3d0da; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: var(--step--1); }
.colophon a { color: #e8eff4; text-decoration: none; }
.colophon a:hover { color: var(--mark); text-decoration: underline; }
.colophon__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
@media (max-width: 760px) { .colophon__grid { grid-template-columns: 1fr; } }
.colophon .wordmark { color: #fff; }
.colophon h2 { font-size: var(--step-0); color: #fff; letter-spacing: 0; margin-bottom: 0.9rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.colophon ul ul { display: none; }
.colophon__note { max-width: 26rem; margin: 1rem 0; line-height: 1.6; }
.colophon__base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }


.center-page { min-height: 60vh; display: grid; align-content: center; padding-block: var(--space); }

/* Helpers that replace one-off inline styles in templates */
.band--flush { padding-bottom: 0; }
.pad-bottom { padding-bottom: var(--space); }
.pad-top { padding-top: var(--space); }
.tile h2, .step h2 { font-size: var(--step-1); letter-spacing: -0.01em; }
.prose--compact { font-size: 1rem; line-height: 1.6; }
.byline time { white-space: nowrap; }
.quote figcaption span { display: block; }

@media print {
  .masthead, .colophon, .closer, .article-aside, .skip { display: none; }
  body .pcms-consent, body .pcms-consent-panel { visibility: hidden; }
  body { background: #fff; }
  .article-grid { grid-template-columns: 1fr; }
}

/* ---------- v1.2 components ---------- */

.short-answer--wide { max-width: 52rem; }
.prose--after { margin-top: 2.5rem; }

/* Pricing: each plan reads like a search result with the price as the answer */
.plans { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plan {
  display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: 1.25rem 3rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
.plan__name { font-size: var(--step-2); margin-bottom: 0.25rem; }
.plan__fit { margin: 0 0 0.75rem; color: var(--spruce); font-weight: 600; font-size: var(--step--1); }
.plan__fit:empty { display: none; }
.plan__summary { font-family: var(--reading); color: var(--ink-soft); max-width: 40rem; }
.plan__includes { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0.9rem 0 0; padding: 0; font-size: var(--step--1); }
.plan__includes li { padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--sky); color: var(--ink); }
.plan__price { display: grid; align-content: start; justify-items: end; text-align: right; }
.plan__from { font-size: var(--step--1); color: var(--ink-soft); }
.plan__amount {
  font-family: var(--heading); font-stretch: var(--wide); font-weight: 760; letter-spacing: -0.03em;
  font-size: var(--step-3); line-height: 1; padding: 0.05em 0.15em;
  background: linear-gradient(transparent 55%, var(--mark) 55%, var(--mark) 92%, transparent 92%);
}
.plan__unit { margin-top: 0.35rem; font-size: var(--step--1); color: var(--ink-soft); }
.plan__more { margin-top: 0.9rem; font-size: var(--step--1); font-weight: 600; }
.plans__note { margin: 1rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 700px) {
  .plan { grid-template-columns: 1fr; }
  .plan__price { justify-items: start; text-align: left; grid-row: 1; }
  .plan__amount { margin-right: 0; margin-left: -0.2em; }
}

/* Numbered checklist (solution pages): a real sequence */
.checklist { margin-top: 2.5rem; padding: 1.5rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 42rem; }
.checklist h2 { font-size: var(--step-1); font-stretch: 100%; }
.checklist ol { margin: 0; padding-left: 1.4em; font-family: var(--reading); }
.checklist li + li { margin-top: 0.55em; }
.checklist li::marker { color: var(--spruce); font-family: var(--display); font-weight: 700; }

/* Person page and founder card */
.person-head { display: flex; gap: 2rem; align-items: center; }
.person-head__photo { width: 10rem; height: 10rem; border-radius: 50%; object-fit: cover; flex: none; background: var(--sky); }
@media (max-width: 640px) { .person-head { flex-direction: column; align-items: flex-start; } .person-head__photo { width: 6.5rem; height: 6.5rem; } }
.founder { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.founder__photo { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; margin-bottom: 0.9rem; background: var(--sky); }
.founder__name { margin: 0; font-weight: 700; font-size: var(--step-1); }
.founder__name a { color: var(--ink); }
.founder__role { margin: 0 0 0.75rem; color: var(--spruce); font-weight: 600; font-size: var(--step--1); }
.founder__summary { margin: 0; font-family: var(--reading); color: var(--ink-soft); font-size: 0.98rem; }

/* Home: the public experiment ledger */
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); margin: 2rem 0 0; border-top: 2px solid var(--ink); max-width: 42rem; }
.ledger div { padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-size: var(--step--1); color: var(--ink-soft); }
.ledger dd { margin: 0.2rem 0 0; font-family: var(--heading); font-stretch: var(--wide); font-weight: 720; font-size: var(--step-2); letter-spacing: -0.02em; }
.ledger__note { margin: 0.75rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }

/* Website cost calculator */
.estimator { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 960px) { .estimator { grid-template-columns: 1fr; } }
.estimator__form { display: grid; gap: 2rem; }
.estimator fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 0.5rem; }
.estimator legend { padding: 0; margin-bottom: 0.75rem; font-family: var(--heading); font-stretch: var(--wide); font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; }
.choice {
  display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.9rem 1rem;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover { border-color: var(--ink-soft); }
.choice:has(input:checked) { border-color: var(--spruce); background: color-mix(in srgb, var(--spruce-tint) 45%, var(--surface)); }
.choice input { margin: 0.2rem 0 0; width: 1.1rem; height: 1.1rem; accent-color: var(--spruce); flex: none; }
.choice span { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.45; }
.choice strong { display: block; color: var(--ink); font-size: var(--step-0); font-weight: 650; }
.estimator__result {
  position: sticky; top: 6rem; padding: 1.75rem; border-radius: 18px;
  background: var(--spruce-deep); color: #dfeee8;
}
.estimator__label { margin: 0 0 0.5rem; font-weight: 650; font-size: var(--step--1); color: var(--mark); }
.estimator__amount { margin: 0; color: #fff; font-family: var(--heading); font-stretch: var(--wide); font-weight: 760; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.02em; }
.estimator__unit { margin: 0.4rem 0 0; font-size: var(--step--1); color: #b9d3ca; }
.estimator__monthly { margin: 1rem 0 0; color: #fff; font-weight: 650; }
.estimator__lines { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; font-size: var(--step--1); color: #c6ddd5; border-top: 1px solid rgba(255,255,255,0.14); }
.estimator__lines li { padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.estimator__result .btn { width: 100%; justify-content: center; text-align: center; line-height: 1.3; }
.estimator__fine { margin: 1rem 0 0; font-size: var(--step--1); color: #b9d3ca; }
@media (max-width: 960px) { .estimator__result { position: static; } }
.estimator__peek { display: none; }
@media (max-width: 960px) {
  .estimator__peek {
    display: block; position: sticky; bottom: 0.75rem; z-index: 10; margin-top: -1rem;
    padding: 0.85rem 1.1rem; border-radius: 12px; background: var(--ink); color: #fff;
    font-weight: 650; text-decoration: none; box-shadow: 0 12px 30px -12px rgba(16, 38, 59, 0.55);
  }
  .estimator__peek:hover { color: var(--mark); }
  .estimator__form { order: 1; } .estimator__peek { order: 2; } .estimator__result { order: 3; }
}
.estimator__aside { margin: 0.25rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- v1.3 trust components ---------- */

/* Promises: the terms that take the risk off the client. Titles carry the highlighter mark. */
.promises { padding-block: var(--space); border-top: 1px solid var(--line); }
.promises .band__head { max-width: 46rem; }
.promises__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0 2.5rem;
}
.promise { padding: 1.25rem 0 1.4rem; border-top: 1px solid var(--line); }
.promise__title { font-size: var(--step-1); font-stretch: 100%; margin: 0 0 0.45rem; line-height: 1.25; }
.promise__title a { color: var(--ink); text-decoration: none; background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 94%, transparent 94%); }
.promise__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.promise__detail { margin: 0; font-family: var(--reading); color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.promises__more { margin: 1.75rem 0 0; font-weight: 600; }

/* FAQ hub: search + topic nav on the left, answers on the right */
.faq-hub { display: grid; grid-template-columns: 17rem minmax(0, 52rem); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.faq-hub__nav { position: sticky; top: 5.5rem; display: grid; gap: 1.5rem; }
@media (max-width: 900px) {
  .faq-hub { grid-template-columns: minmax(0, 1fr); }
  .faq-hub__nav { position: static; }
  .faq-topics { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .faq-hub .faq-topics a { padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--sky); }
}
.faq-search label { display: block; font-weight: 650; margin-bottom: 0.45rem; }
.faq-search input {
  width: 100%; padding: 0.8rem 0.9rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
}
.faq-search input:focus { outline: none; border-color: var(--spruce); box-shadow: 0 0 0 3px var(--spruce-tint); }
.faq-search__count { margin: 0.45rem 0 0; font-size: var(--step--1); color: var(--ink-soft); min-height: 1.2em; }
.faq-topics { list-style: none; margin: 0; padding: 0; font-size: var(--step--1); }
.faq-topics a { display: block; padding: 0.4rem 0; color: var(--ink); text-decoration: none; }
.faq-topics a:hover { color: var(--spruce); text-decoration: underline; }
.faq-hub .faq-group { scroll-margin-top: 5.5rem; }
.faq-hub .faq-group h2 { font-size: var(--step-2); }
.faq-hub .faq-group h2 a { color: var(--ink); text-decoration: none; }
.faq-hub .faq-list { max-width: none; }
.faq-none { padding: 2rem; border: 2px dashed var(--line); border-radius: var(--radius); }
.faq-none h2 { font-size: var(--step-1); font-stretch: 100%; }
.faq-none p { color: var(--ink-soft); }

/* ===== 1.5.0: sections editors can add and reorder ===== */
.sec { position: relative; }
.sec__more { margin: 1rem 0 0; font-weight: 600; }
.sec--answer { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.feature { padding: 1.5rem 1.5rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-top: 3px solid var(--spruce); }
.feature h3 { margin-bottom: 0.4rem; }
.feature p { margin: 0; color: var(--ink-soft); font-family: var(--reading); }

.ledger--section { margin-top: 0; }

.media-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.media-text__media { margin: 0; }
.media-text__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--sky); }
.media-text__media figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--ink-soft); }
.media-text__copy .actions { margin-top: 1.5rem; }
@media (max-width: 860px) { .media-text { grid-template-columns: minmax(0, 1fr); } }

/* ===== 2.0.0: every page is a list of sections =====
   Sections sit side by side in <main>, so spacing between them is set here.
   A heading, image or sidebar an editor leaves empty is removed, and the layout closes up. */
/* Plain sections share the space between them, so the lower one drops its top padding.
   Coloured bands (light blue .band--sky, dark .found) always keep their own padding, and the
   section after a coloured band gets the full space above it, so text never touches a band edge. */
.page-head + .band:not(.band--sky) { padding-top: 0; }
.page-head + .band--line { border-top: 0; }
.page-head + .promises { border-top: 0; }
.sec--article { padding-top: 0; }
.sec--estimator + .sec--article,
.band--sky + .sec--article,
.found + .sec--article { padding-top: var(--space); }
.sec--answer + .band:not(.band--sky) { padding-top: 0; }
.split:not(:has(> .band__head)) { grid-template-columns: minmax(0, 1fr); }
.article-grid:not(:has(.article-aside > *)) { grid-template-columns: minmax(0, 46rem); }
.media-text:not(:has(.media-text__media)) { grid-template-columns: minmax(0, 46rem); }
/* Steps without a heading have no band colour, so they sit close like a plain section. */
.sec--steps:not(:has(.band__head)) { background: none; }
.page-head + .sec--steps:not(:has(.band__head)),
.sec--steps:not(:has(.band__head)) + .sec--article { padding-top: 0; }
.band__entry > :last-child { margin-bottom: 0; }
.panel--links ul { margin: 0; padding-inline-start: 1.1em; }

/* ===== 2.0.0: touch targets on phones, tablets and touch screens =====
   Every link or button a thumb has to hit is at least 44px tall. Links inside sentences are exempt. */
.wordmark { min-height: 44px; }
.result, .promise { position: relative; }
@media (max-width: 960px), (pointer: coarse) {
  .btn--small, .masthead__cta { min-height: 44px; }
  .menu-toggle { min-width: 44px; min-height: 44px; }
  .crumbs { margin-bottom: 0.75rem; }
  .crumbs ol { align-items: center; row-gap: 0; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .faq-more a, .sec__more a, .promises__more a, .plan__more, .sec--steps .band__head p a,
  .byline a, .panel ul a, .colophon ul a, .faq-topics a, .faq-hub .faq-group h2 a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .colophon nav ul { gap: 0; }
  .faq-hub .faq-topics a { min-height: 44px; }
  /* The whole card is the link target, not just its title. */
  .result h2 a::after, .result h3 a::after, .promise__title a::after { content: ""; position: absolute; inset: 0; }
}
@media (max-width: 380px) {
  .masthead__bar { column-gap: 0.5rem; }
  .wordmark { gap: 0.45rem; font-size: 1.05rem; }
  .masthead__cta { padding-inline: 0.7rem; }
}
/* Below 350px the logo, header button and menu button only fit on one row without the name beside the logo.
   The name stays in the link for screen readers. */
@media (max-width: 349px) {
  .masthead .wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .masthead .wordmark { min-width: 44px; }
}

/* Footer legal row */
.colophon__legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; }
.colophon__cookies {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: #e8eff4; font: inherit; text-decoration: underline; text-decoration-color: rgba(232, 239, 244, 0.4); text-underline-offset: 0.18em;
}
.colophon__cookies:hover { color: var(--mark); text-decoration-color: currentColor; }
.colophon__legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* ===== Cookie consent =====
   The CMS renders the banner and panel and saves the choice; this only designs them.
   Its own stylesheet loads after this one, so every rule starts with "body".
   Accept and Reject share one button style on purpose: equal prominence is required.
   No rule here sets display on the banner or panel, so [hidden] keeps working. */
body .pcms-consent {
  background: var(--surface);
  color: var(--ink);
  border-top: 4px solid var(--spruce);
  box-shadow: 0 -18px 40px -24px rgba(16, 38, 59, 0.45);
  font-family: var(--display);
  font-size: var(--step--1);
  line-height: 1.5;
}
body .pcms-consent__text { font-family: var(--reading); font-size: 0.98rem; color: var(--ink-soft); }
body .pcms-consent__text :is(h2, h3, strong, b) {
  font-family: var(--heading); font-stretch: 100%; font-size: var(--step-0); font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink);
}
body .pcms-consent a { color: var(--spruce); text-decoration: underline; text-underline-offset: 0.18em; }
body .pcms-consent a:hover { color: var(--spruce-deep); text-decoration-thickness: 2px; }

body .pcms-consent button,
body .pcms-consent-panel button {
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 650 var(--step--1)/1.1 var(--display);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
body .pcms-consent button:hover,
body .pcms-consent-panel button:hover { background: var(--ink); color: #fff; }
body .pcms-consent button:focus-visible,
body .pcms-consent-panel button:focus-visible,
body .pcms-consent a:focus-visible,
body .pcms-consent-panel input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--mark); }
body .pcms-consent .pcms-consent__choose {
  border: 0; background: none; padding-inline: 0.25rem;
  color: var(--spruce); text-decoration: underline; text-underline-offset: 0.18em;
}
body .pcms-consent .pcms-consent__choose:hover { background: none; color: var(--spruce-deep); text-decoration-thickness: 2px; }

body .pcms-consent-panel { background: rgba(16, 38, 59, 0.55); color: var(--ink); font-family: var(--display); }
body .pcms-consent-panel__box {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); border-top: 4px solid var(--spruce);
  box-shadow: 0 30px 60px -30px rgba(16, 38, 59, 0.6);
}
body .pcms-consent-panel h2 {
  font-family: var(--heading); font-stretch: var(--wide); font-size: var(--step-2);
  letter-spacing: -0.025em; color: var(--ink);
}
body .pcms-consent-panel li { border-color: var(--line); font-size: var(--step--1); }
body .pcms-consent-panel li :is(strong, b, label) { color: var(--ink); }
body .pcms-consent-panel p { color: var(--ink-soft); font-family: var(--reading); }
body .pcms-consent-panel input { accent-color: var(--spruce); }
body .pcms-consent-panel__actions { gap: 0.6rem; }

body .pcms-embed-wait {
  background: var(--sky); color: var(--ink);
  border: 1px dashed var(--ink-soft); border-radius: var(--radius);
  font-family: var(--display); font-size: var(--step--1);
}
body .pcms-embed-wait button {
  min-height: 44px; padding: 0.6rem 1.15rem; border: 2px solid var(--spruce); border-radius: 10px;
  background: var(--spruce); color: #fff; font: 650 var(--step--1)/1.1 var(--display); cursor: pointer;
}
body .pcms-embed-wait button:hover { background: var(--spruce-deep); border-color: var(--spruce-deep); }

/* Keep the end of the footer clear of the fixed banner while it is showing.
   site.js measures the banner into --consent-h; 12rem is the no-JS fallback. */
body:has(.pcms-consent:not([hidden])) .colophon { padding-bottom: calc(2rem + var(--consent-h, 12rem)); }

/* Short phones: the choices panel scrolls inside the screen instead of running off it. */
body .pcms-consent-panel__box { max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
