/* Bridge Data Advisory. Cool paper, near-black ink, one navy accent, one typeface (Schibsted Grotesk).
   Ruled lines instead of boxes and icons. Spacing comes only from the scale below:
   4, 8, 12, 16, 24, 32, 48, 64, 96 px. */
:root {
  --paper: #f6f7f9;
  --surface: #eceff3;
  --card: #ffffff;
  --ink: #121a24;
  --muted: #4e5866;
  --rule: #dde2e8;
  --rule-strong: #b9c1cc;
  --accent: #1e3a64;
  --accent-hover: #152b4b;
  --accent-soft: #e3e9f2;
  --on-accent: #ffffff;
  --good: #2e6a4c;
  --good-soft: #e2efe6;
  --bad: #b3261e;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --head-weight: 600;
  --head-track: -0.02em;
  --body-size: 1.125rem;
  --body-size-sm: 1.0625rem;
  --figure-fit: 16.6cqi;
  --r: 12px;
  --wrap: 70rem;
  --header-h: 4.5rem;
  --section: var(--s7);
}
@media (min-width: 40rem) { :root { --section: var(--s8); } }
@media (min-width: 48rem) { :root { --section: var(--s9); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f141b; --surface: #151b24; --card: #1a212b; --ink: #e8edf3; --muted: #a3adba;
    --rule: #26303c; --rule-strong: #3a4655; --accent: #8fb3e8; --accent-hover: #a9c5ef;
    --accent-soft: #1c2a40; --on-accent: #0c1420; --good: #86c9a3; --good-soft: #1c2b22; --bad: #f2a097;
  }
}
:root[data-theme="dark"] {
  --paper: #0f141b; --surface: #151b24; --card: #1a212b; --ink: #e8edf3; --muted: #a3adba;
  --rule: #26303c; --rule-strong: #3a4655; --accent: #8fb3e8; --accent-hover: #a9c5ef;
  --accent-soft: #1c2a40; --on-accent: #0c1420; --good: #86c9a3; --good-soft: #1c2b22; --bad: #f2a097;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
[id] { scroll-margin-top: calc(var(--header-h) + var(--s4)); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--body-size); line-height: 1.55;
  font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: var(--head-weight); line-height: 1.12; letter-spacing: var(--head-track); margin: 0; text-wrap: balance; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
address { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s5); }
.skip { position: absolute; left: -999px; z-index: 30; }
.skip:focus { left: var(--s4); top: var(--s4); background: var(--card); padding: var(--s2) var(--s3); border-radius: var(--r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.note { font-size: 1.0625rem; color: var(--muted); }
.small { font-size: 1rem; color: var(--muted); }
.i {
  width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Buttons: flat brand color, 48px or taller, the shared radius ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--s7); padding: var(--s3) var(--s5); border: 0; border-radius: var(--r);
  background: var(--accent); color: var(--on-accent); text-decoration: none; cursor: pointer;
  font: 600 1.125rem/1.2 var(--font);
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.button:hover { background: var(--accent-hover); }
.button:active { transform: scale(0.98); }
.button.large { min-height: 3.5rem; padding-inline: var(--s6); font-size: 1.1875rem; }
.button.small { padding-inline: var(--s4); font-size: 1.0625rem; }
.button.block { width: 100%; }
.text-link { font-weight: 600; }
.link-button {
  background: none; border: 0; padding: var(--s2) var(--s1); cursor: pointer;
  font: 600 1.0625rem var(--font); color: var(--muted); text-decoration: underline; text-underline-offset: 0.18em;
}
.link-button:hover { color: var(--ink); }

/* ---- Header: the name, and the main action always in reach ---- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: var(--header-h); }
/* The name is the logo: no symbol. */
.brand {
  display: inline-flex; align-items: center; gap: var(--s3); white-space: nowrap; line-height: 1;
  font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
}
/* The Ledger Arch: rows of records with an arch cut through them. Source files in brand/. */
.brand-mark { width: 1.4em; height: 1.4em; flex: none; fill: var(--accent); }
.site-nav { display: flex; align-items: center; gap: var(--s6); font-size: 1.0625rem; }
.site-nav .navlink { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav .navlink:hover { color: var(--ink); }
.site-nav .narrow { display: none; }
@media (max-width: 54rem) { .site-nav .navlink { display: none; } }
@media (max-width: 30rem) {
  .site-nav .wide { display: none; }
  .site-nav .narrow { display: inline; }
  /* Mark, name and button share one line down to 360px. */
  .site-header .brand { font-size: 1rem; gap: var(--s2); }
  .site-header .brand-mark { width: 1.25em; height: 1.25em; }
  .site-nav .button.small { padding-inline: var(--s3); font-size: 1rem; }
}
/* The smallest phones (320px): still one line. */
@media (max-width: 22.5rem) {
  .site-header .wrap { gap: var(--s2); }
  .site-header .brand { font-size: 0.875rem; }
}

/* ---- Hero: the promise and the action, beside the numbers that back it ---- */
.hero { padding-block: var(--s7) var(--s8); }
@media (min-width: 48rem) { .hero { padding-block: var(--s8); } }
.hero .wrap { display: grid; gap: var(--s7); }
@media (min-width: 62rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
}
.lede h1 { font-size: clamp(2.5rem, 1.7rem + 3.2vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: var(--s5); }
.lede .intro { font-size: 1.3125rem; line-height: 1.5; color: var(--muted); max-width: 34rem; margin-bottom: var(--s6); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); }
.reassure { margin-top: var(--s4); font-size: 1.0625rem; color: var(--muted); }

.ledger { border-top: 3px solid var(--accent); padding-top: var(--s5); container-type: inline-size; }
.ledger-title { font-size: 1.1875rem; font-weight: 600; letter-spacing: 0; margin-bottom: var(--s3); }
.ledger .figure {
  margin: 0; font-weight: var(--head-weight); white-space: nowrap; color: var(--accent); line-height: 1; letter-spacing: -0.025em;
  font-size: 2.75rem; font-size: clamp(2.25rem, var(--figure-fit), 4.25rem); /* always fits the column */
}
.ledger .figure-note { margin: var(--s3) 0 var(--s5); font-size: 1.0625rem; }
.ledger .ref { text-decoration: none; margin-left: 0.1em; font-weight: 700; }
.ledger dl { margin: 0; }
.ledger dl > div { padding-block: var(--s4); border-top: 1px solid var(--rule-strong); }
.ledger dt { font-size: 1.75rem; font-weight: var(--head-weight); line-height: 1.1; letter-spacing: -0.01em; }
.ledger dd { margin: var(--s1) 0 0; font-size: 1.0625rem; line-height: 1.45; color: var(--muted); }
.ledger dl > div:last-child { padding-bottom: 0; }
/* On phones the ledger is just the headline range; the supporting figures stay on wider screens. */
@media (max-width: 40rem) { .ledger dl { display: none; } .ledger .figure-note { margin-bottom: 0; } }

/* ---- In the press: real headlines, set as ruled text ---- */
.press-band { padding-block: var(--s6) var(--s7); }
.press-title { font-size: 1.1875rem; font-weight: 600; letter-spacing: 0; margin-bottom: var(--s4); }
.press-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.press-list li { display: grid; gap: var(--s1); padding-top: var(--s3); border-top: 1px solid var(--ink); }
.press-pub { font-weight: 600; }
.press-list a { color: var(--ink); font-size: 1.0625rem; line-height: 1.4; text-decoration-color: var(--rule-strong); }
.press-list a:hover { color: var(--accent); text-decoration-color: currentColor; }
.press-date { font-size: 0.9375rem; color: var(--muted); }
@media (min-width: 56rem) { .press-list { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }

/* ---- Sections: same job, same padding ---- */
.section { padding-block: var(--section); }
.section.tinted { background: var(--surface); border-block: 1px solid var(--rule); }
.section-head { max-width: 40rem; margin-bottom: var(--s6); }
.section-head h2, .closing h2 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); margin-bottom: var(--s3); }
.section-head > p { font-size: 1.1875rem; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s8); }
@media (min-width: 62rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split > .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + var(--s6)); }
}

/* Ruled terms: the fine print and the qualifying bar, set like a term sheet */
.terms { margin: 0 0 var(--s5); border-top: 1px solid var(--ink); }
.terms > div { display: grid; gap: var(--s1) var(--s5); padding-block: var(--s4); border-bottom: 1px solid var(--rule-strong); }
.terms dt { font-weight: 600; }
.terms dd { margin: 0; }
@media (min-width: 40rem) { .terms > div { grid-template-columns: 12rem 1fr; } }
.terms + .note { margin-bottom: var(--s6); }

/* What buyers pay for */
.sector-pick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s5); font-size: 1.0625rem; color: var(--muted); }
.select { position: relative; display: inline-block; max-width: 100%; }
.select::after {
  content: ""; position: absolute; right: var(--s4); top: 50%; width: var(--s3); height: var(--s3); transform: translateY(-50%);
  background: var(--accent); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 4l4.5 4.5L10.5 4' 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='M1.5 4l4.5 4.5L10.5 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sector-pick select {
  -webkit-appearance: none; appearance: none; cursor: pointer; max-width: 100%; text-overflow: ellipsis;
  min-height: var(--s7); padding: 0 var(--s7) 0 var(--s4); border: 1px solid var(--rule-strong); border-radius: var(--r);
  background: var(--card); color: var(--accent); font: 600 1.0625rem var(--font);
}
.sector-pick select:hover { border-color: var(--accent); }
.sector-pick select option { background: var(--card); color: var(--ink); }
.records {
  list-style: none; margin: 0 0 var(--s4); padding: 0; border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); column-gap: var(--s6);
}
.records li { padding-block: var(--s3); border-bottom: 1px solid var(--rule-strong); }

/* How it works: big numerals over a rule */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--s5); }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: var(--s7) 1fr; column-gap: var(--s4);
  padding-top: var(--s4); border-top: 1px solid var(--ink);
}
.steps li::before { content: counter(step); grid-row: span 2; font-size: 2.5rem; line-height: 1; font-weight: var(--head-weight); color: var(--accent); }
.steps strong { display: block; font-size: 1.25rem; font-weight: 600; margin-bottom: var(--s1); }
.steps p { margin: 0; font-size: 1.0625rem; color: var(--muted); }
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
  .steps li { display: block; }
  .steps li::before { display: block; font-size: 3rem; margin-bottom: var(--s4); }
}

/* Questions */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: var(--s4) var(--s7) var(--s4) 0;
  font-weight: 600; font-size: 1.1875rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: var(--s2); top: var(--s4);
  font-size: 1.5rem; line-height: 1.1; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 var(--s4); max-width: 40rem; color: var(--muted); }
.faq details p:last-child { margin-bottom: var(--s5); }

/* Who we are: plain paragraphs, a ruled top like the other answers */
.about { border-top: 1px solid var(--ink); padding-top: var(--s4); max-width: 40rem; }
.about p { font-size: 1.1875rem; }

/* Closing ask */
.closing .wrap > * { max-width: 40rem; }
.closing .wrap > p:not(.actions):not(.note) { font-size: 1.1875rem; color: var(--muted); margin-bottom: var(--s5); }
.closing .actions { margin-bottom: var(--s4); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--rule); padding-block: var(--s7); font-size: 1rem; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s5) var(--s7); margin-bottom: var(--s6); }
.site-footer .brand { font-size: 1.125rem; margin-bottom: var(--s3); }
.footer-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s2) var(--s5); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.fineprint { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); max-width: 52rem; margin: 0 0 var(--s3); }
.fineprint a { color: var(--muted); }

/* ---- Fit form pop-up ----
   Labels that never disappear, 48px+ targets, one radius, one button pinned at the bottom
   whose label says what happens next. On phones it fills the screen. */
.fit-dialog {
  width: min(34rem, calc(100vw - var(--s6))); max-height: min(54rem, calc(100dvh - var(--s6))); padding: 0; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 16px; background: var(--card); color: var(--ink);
  box-shadow: 0 8px 40px rgba(18, 26, 36, 0.12);
}
.fit-dialog[open] { display: flex; flex-direction: column; animation: dlg-in 0.2s ease-out; }
/* The page fades almost entirely behind the form, so it reads as its own screen without leaving the site. */
.fit-dialog::backdrop { background: rgba(246, 247, 249, 0.94); }
@media (prefers-color-scheme: dark) { .fit-dialog::backdrop { background: rgba(15, 20, 27, 0.94); } }
.dlg-bar { display: grid; grid-template-columns: var(--s7) 1fr var(--s7); align-items: center; gap: var(--s2); padding: var(--s2) var(--s2) 0; flex: none; }
.dlg-progress { text-align: center; }
.progress { max-width: 12rem; height: 4px; margin: 0 auto var(--s2); border-radius: 999px; background: var(--rule); overflow: hidden; }
.progress span { display: block; width: 50%; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.3s ease; }
.fit-dialog[data-stage="2"] .progress span, .fit-dialog[data-stage="done"] .progress span { width: 100%; }
.fit-dialog[data-stage="done"] .step-count { visibility: hidden; }
.step-count { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.fit-dialog:not([data-stage="2"]) [data-back] { visibility: hidden; }
.icon-btn {
  display: grid; place-items: center; width: var(--s7); height: var(--s7); border: 0; border-radius: var(--r);
  background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn .i { width: 1.4rem; height: 1.4rem; }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.fit-step { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; }
.dlg-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s4) var(--s6) var(--s5); }
.dlg-foot { flex: none; display: grid; gap: var(--s2); padding: var(--s4) var(--s6) var(--s5); border-top: 1px solid var(--rule); background: var(--card); }
.fit-dialog h2 { font-size: 1.875rem; margin: 0 0 var(--s2); }
.fit-dialog h2:focus { outline: none; }
.fit-dialog .sub { margin: 0; color: var(--muted); }
.part { display: grid; gap: var(--s5); }
.part.in-right { animation: in-right 0.24s ease-out; }
.part.in-left { animation: in-left 0.24s ease-out; }
@keyframes in-right { from { opacity: 0; transform: translateX(var(--s3)); } }
@keyframes in-left { from { opacity: 0; transform: translateX(calc(-1 * var(--s3))); } }
@keyframes dlg-in { from { opacity: 0; transform: translateY(var(--s2)); } }
@keyframes spin { to { transform: rotate(360deg); } }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q { display: grid; gap: var(--s2); }
.q legend { padding: 0; margin-bottom: var(--s2); font-weight: 600; font-size: 1.0625rem; }
.field-msg { margin: 0; font-size: 1rem; font-weight: 600; color: var(--bad); }
.field-msg:empty { display: none; }
.field-note { margin: 0; font-size: 1rem; color: var(--muted); }
.field-note:empty { display: none; }
.field-note .link-button { padding: 0; font-size: inherit; color: var(--accent); }

/* Text fields and the industry picker: the label sits inside, then shrinks above the value. */
.float { position: relative; }
.float input, .float select {
  display: block; width: 100%; height: 3.5rem; padding: var(--s5) var(--s7) var(--s1) var(--s4);
  border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.2 var(--font); -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.float select { cursor: pointer; }
.float select:invalid { color: var(--muted); }
.float select option { background: var(--card); color: var(--ink); }
.float label {
  position: absolute; left: calc(var(--s4) + 1px); top: 50%; transform: translateY(-50%);
  font-size: 1.125rem; line-height: 1; color: var(--muted); pointer-events: none;
  transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}
.float input:focus + label, .float input:not(:placeholder-shown) + label, .float select + label {
  top: var(--s3); transform: none; font-size: 0.8125rem; font-weight: 600;
}
.float input:hover, .float select:hover { border-color: var(--muted); }
.float input:focus, .float select:focus {
  outline: none; border-color: var(--accent); background: var(--card);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.float input:focus + label, .float select:focus + label { color: var(--accent); }
.has-chevron::after {
  content: ""; position: absolute; right: var(--s4); top: 50%; width: var(--s3); height: var(--s3); transform: translateY(-50%);
  background: var(--muted); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 4l4.5 4.5L10.5 4' 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='M1.5 4l4.5 4.5L10.5 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ok-mark {
  position: absolute; right: var(--s4); top: 50%; width: var(--s5); height: var(--s5); transform: translateY(-50%);
  color: var(--good); stroke-width: 2.5; opacity: 0; transition: opacity 0.15s ease;
}
.q.is-valid .ok-mark { opacity: 1; }
.q.is-invalid .float input, .q.is-invalid .float select { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 16%, transparent); }
.q.is-invalid legend { color: var(--bad); }
.q.is-invalid .tile { border-color: color-mix(in srgb, var(--bad) 55%, var(--rule-strong)); }

/* The estimate: set like the hero's ledger, a rule and a figure, no box. */
.estimate { border-top: 3px solid var(--accent); padding-top: var(--s4); container-type: inline-size; }
.estimate p { margin: 0; }
.est-title { font-weight: 600; }
.est-title:empty, .est-figure:empty { display: none; }
.est-figure {
  margin: var(--s2) 0 var(--s3) !important; font-weight: var(--head-weight); white-space: nowrap; color: var(--accent);
  font-size: 2.5rem; font-size: clamp(2.25rem, 14cqi, 3.5rem); line-height: 1; letter-spacing: -0.025em;
}
.est-label { font-size: 1rem; color: var(--muted); }

/* micro1 details to copy, set as a ruled list. */
.copy-fold { margin-top: var(--s3); }
.copy-fold summary {
  display: flex; align-items: center; min-height: var(--s7); cursor: pointer; list-style: none;
  font-weight: 600; color: var(--accent);
}
.copy-fold summary span { text-decoration: underline; text-underline-offset: 0.18em; }
.copy-fold summary::-webkit-details-marker { display: none; }
.copy-fold summary::after { content: "+"; margin-left: var(--s2); }
.copy-fold[open] summary::after { content: "\2212"; }
.copy-list { margin: var(--s3) 0 0; border-top: 1px solid var(--rule-strong); }
.copy-list > div { display: grid; gap: 0 var(--s3); padding-block: var(--s2); border-bottom: 1px solid var(--rule); }
.copy-list dt { font-size: 0.875rem; color: var(--muted); }
.copy-list dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.copy-btn {
  flex: none; min-height: 2.75rem; min-width: 5rem; padding: 0 var(--s3); border: 1px solid var(--rule-strong); border-radius: var(--r);
  background: var(--card); color: var(--accent); font: 600 0.9375rem var(--font); cursor: pointer;
}
.copy-btn:hover { border-color: var(--accent); }

/* Searchable industry list: opens under the field, in the flow of the form. */
.combo-list {
  list-style: none; margin: var(--s1) 0 0; padding: var(--s1); max-height: 18rem; overflow-y: auto;
  border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--card);
}
.combo-list li { display: flex; align-items: center; min-height: var(--s7); padding: var(--s2) var(--s3); border-radius: 8px; cursor: pointer; }
.combo-list li:hover, .combo-list li[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.combo-list li.other { color: var(--muted); }

/* Answer tiles: big and even, and the whole tile is the target. */
.tiles { display: flex; flex-wrap: wrap; gap: var(--s2); }
.tile {
  position: relative; flex: 1 1 5.5rem; display: grid; place-items: center; min-height: 3.5rem; padding: var(--s2); white-space: nowrap;
  border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--paper);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; cursor: pointer; user-select: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tile:hover { border-color: var(--muted); }
.tile:active { transform: scale(0.97); }
.tile:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tile:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Checkbox rows: the whole row is tappable. */
.row-check {
  display: flex; align-items: flex-start; gap: var(--s3); min-height: 3.5rem; padding: var(--s4);
  border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--paper);
  font-size: 1.0625rem; font-weight: 600; line-height: 1.4; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.row-check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--accent); cursor: pointer; }
.row-check:hover { border-color: var(--muted); }
.row-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.row-check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.row-check input:focus-visible { outline: none; }
.row-check small { display: block; margin-top: var(--s1); font-size: 1rem; font-weight: 400; color: var(--muted); }

/* The one button: muted until the step is answered, then the brand color. */
.button[data-ready="false"] { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.button[data-ready="false"]:hover { color: var(--ink); }
.button:disabled { cursor: progress; }
.spinner {
  width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.form-status { margin: 0; font-weight: 600; color: var(--bad); }
.form-status:empty { display: none; }
.privacy-note { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fit-step[data-step="done"] .dlg-body { padding-top: var(--s2); }
.fit-step[data-step="done"] h2 { margin-bottom: 0; }
.fit-result { display: grid; gap: var(--s3); margin: var(--s5) 0; }
.fit-result > p { margin: 0; }
.next { padding: var(--s4) var(--s5); border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
.next-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s2); }
.next-head .ok { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--good-soft); color: var(--good); }
.next-head .ok .i { width: var(--s4); height: var(--s4); stroke-width: 3; }
.next h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; }
.next p { margin: 0; color: var(--muted); }
.next .button { margin-top: var(--s4); }
.next .fine { margin-top: var(--s2); font-size: 0.9375rem; }
.button.secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.button.secondary:hover { background: var(--accent-soft); }

/* On phones the form takes the whole screen, with the button pinned within thumb reach. */
@media (max-width: 40rem) {
  .fit-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .dlg-body { padding: var(--s3) var(--s4) var(--s5); }
  .dlg-foot { padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); }
}

/* ---- Rotating industry word in the default headline ---- */
/* While rotating, "Your <word>" is a line of its own and never wraps. */
.rotating-h1 .h1-who { display: block; width: fit-content; white-space: nowrap; }
/* The industry word is always in the accent color: rotating on the main page, fixed on ?for= pages. */
[data-v="who"] { color: var(--accent); }
[data-v="who"].rotating {
  display: inline-block;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 1, 1), transform 0.32s cubic-bezier(0.4, 0, 1, 1);
}
[data-v="who"].rotating.out { opacity: 0; transform: translateY(-0.18em); }
[data-v="who"].rotating.enter { opacity: 0; transform: translateY(0.22em); transition: none; }
[data-v="who"].rotating:not(.out):not(.enter) {
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Privacy notice and other plain pages ---- */
.doc { padding-block: var(--s7) var(--section); }
.doc-head { max-width: 44rem; margin-bottom: var(--s6); }
.doc-head h1 { font-size: clamp(2.5rem, 1.9rem + 2vw, 3.25rem); margin-bottom: var(--s2); }
.doc-head p { color: var(--muted); }
.doc section { display: grid; gap: var(--s2) var(--s7); padding-block: var(--s5); border-top: 1px solid var(--rule-strong); }
.doc section h2 { font-size: 1.5rem; }
.doc section .body { max-width: 42rem; }
@media (min-width: 52rem) { .doc section { grid-template-columns: 15rem 1fr; } }

@media (max-width: 30rem) {
  .wrap { padding-inline: var(--s4); }
  body { font-size: var(--body-size-sm); }
  .lede .intro { font-size: 1.1875rem; }
  .actions .button { flex: 1 1 100%; }
  .button.large { font-size: 1.0625rem; padding-inline: var(--s4); } /* the main button fits one line on a phone */
  .hero .actions .text-link { margin-inline: auto; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header, .skip, .fit-dialog, .closing { display: none; }
}
