/* Bricolage Grotesque, self-hosted and trimmed to the characters, weights and widths used (SIL Open Font License) */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 300 800; font-stretch: 80% 100%; font-display: swap; }
/* Concept 1 — Interlace: black stage, one red line that never ends */
:root {
  /* Theme values. Names are historical: --black is the page background and --bone the main text,
     whichever theme is active. Light is the default; dark is set with data-theme="dark" on <html>. */
  --red: #e31937;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --max: 1360px;
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --knot-bg: var(--black);

  /* Light (default) */
  color-scheme: light;
  --black: #ffffff;
  --bone: #141012;
  --ash: #5c5457;
  --line: #e7e2e3;
  --blush: #b3122b;
  --oxblood: #faf3f4;
  --oxblood-2: #ffffff;
  --p-line: #ecd6da;
  --p-muted: #77575e;
  --p-deep: #ffffff;
  --p-deeper: #fdf6f7;
  --p-border: #dcc0c6;
  --p-border-hover: #b98d96;
  --p-text: #3f3034;
  --p-text-2: #2e2226;
  --p-faint: #85666d;
  --p-placeholder: #a3868c;
  --p-check: #bf98a0;
  --note: #6e6669;
  --node-stroke: #cbc3c5;
  --tip-line: #e2dcdd;
  --tip-bg: #ffffff;
  --tip-text: #3a3335;
  --track: #e9e4e5;
  --ghost-line: #cfc8ca;
  --hover-tint: rgba(0, 0, 0, .035);
  --tip-shadow: rgba(40, 20, 25, .18);
  --focus-ring: rgba(179, 18, 43, .2);
  --pulse: #e31937;
  --hi: #141012;
  --done-fill: #ffffff;
  --agent-bubble: #f7e8eb;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --black: #000000;
  --bone: #eee8e4;
  --ash: #a39a9e;
  --line: #2b2628;
  --blush: #ff7486;
  --oxblood: #22070c;
  --oxblood-2: #33101a;
  --p-line: #3e1820;
  --p-muted: #c4a9ae;
  --p-deep: #120507;
  --p-deeper: #0c0304;
  --p-border: #55303a;
  --p-border-hover: #9a5b68;
  --p-text: #d8c9cc;
  --p-text-2: #e4d6d8;
  --p-faint: #a98b91;
  --p-placeholder: #8a6f75;
  --p-check: #7a4a55;
  --note: #7d7578;
  --node-stroke: #4a4245;
  --tip-line: #3a3335;
  --tip-bg: #161214;
  --tip-text: #ddd5d7;
  --track: #2a2527;
  --ghost-line: #5a5054;
  --hover-tint: rgba(255, 255, 255, .04);
  --tip-shadow: rgba(0, 0, 0, .8);
  --focus-ring: rgba(255, 116, 134, .25);
  --pulse: #ffffff;
  --hi: #ffffff;
  --done-fill: #eee8e4;
  --agent-bubble: #33101a;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--bone);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-stretch: 86%; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--bone); }
.brand-knot { width: 2.1rem; height: 2.1rem; color: var(--red); }
.brand-word { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.035em; font-stretch: 86%; font-variation-settings: "opsz" 32; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.1rem var(--pad); background: var(--black);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-menu { display: flex; align-items: center; gap: 2rem; }
.site-menu a:not(.btn) { text-decoration: none; color: var(--ash); font-size: .98rem; }
.site-menu a:not(.btn):hover, .site-menu a[aria-current] { color: var(--bone); }
.menu-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem;
  background: var(--red); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 1rem/1 var(--font); text-decoration: none; letter-spacing: -0.01em;
  transition: background-color .2s ease;
}
.btn:hover { background: #c4122d; }
.btn-small { min-height: 2.6rem; padding: 0 1.15rem; font-size: .95rem; }
.link { color: var(--bone); text-underline-offset: .3em; text-decoration-thickness: 1px; }
.link:hover { color: var(--blush); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center;
  min-height: calc(100vh - 5rem); padding: 4rem var(--pad) 6rem;
}
.hero-copy { position: relative; z-index: 2; max-width: 52rem; }
.hero h1 {
  font-size: clamp(3.2rem, 7.6vw, 7.8rem); line-height: .94; letter-spacing: -0.032em;
  font-variation-settings: "opsz" 96; font-stretch: 84%;
}
.hero-lede { margin-top: 2rem; max-width: 34rem; font-size: 1.25rem; color: var(--ash); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; margin-top: 2.5rem; }
.hero-mark { pointer-events: none; position: absolute; right: -14vw; top: 50%; transform: translateY(-50%); width: min(62vw, 980px); }
.hero-knot { width: 100%; height: auto; color: var(--red); }
.hero-knot .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s cubic-bezier(.65,0,.35,1) .2s forwards; }
.hero-knot .over { opacity: 0; animation: fade .3s ease 2.6s forwards; }
@keyframes draw { 99% { stroke-dashoffset: 0; stroke-dasharray: 1; } 100% { stroke-dashoffset: 0; stroke-dasharray: none; } }
@keyframes fade { to { opacity: 1; } }

/* Shared bits */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section { padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.btn-ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--ghost-line); }
.btn-ghost:hover { background: var(--bone); color: var(--black); }
h2 { font-size: clamp(2.6rem, 5.6vw, 5.4rem); font-variation-settings: "opsz" 96; letter-spacing: -0.04em; line-height: .95; }

/* ---------- Thread: three disciplines on one line ---------- */
.thread-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.thread-intro p { color: var(--ash); font-size: 1.15rem; max-width: 30rem; }
.strands { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.strands::before { content: ""; position: absolute; left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad)); top: 110px; height: 12px; background: var(--red); transform-origin: left; }
.strand-loop { display: block; width: 160px; height: 126px; margin-left: -20px; overflow: visible; }
.strand-loop path { fill: none; stroke: var(--red); stroke-width: 12; stroke-linejoin: round; }
.strand-loop .ov { stroke-linecap: butt; }
.strand-loop .ko { stroke: var(--black); stroke-width: 22; stroke-linecap: butt; }
.strand h3 { margin-top: 2.25rem; font-size: clamp(2.8rem, 4.4vw, 4.4rem); font-variation-settings: "opsz" 96; letter-spacing: -0.045em; font-stretch: 82%; }
.strand-lede { margin-top: 1rem; font-size: 1.2rem; line-height: 1.35; max-width: 20rem; min-height: 3.3em; }
.strand ul { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.strand li { padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--ash); }
.thread .strands::before { animation: lineIn 1.4s cubic-bezier(.65,0,.35,1) both; animation-play-state: paused; }
.thread.in .strands::before { animation-play-state: running; }
@keyframes lineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Flow: follow one enquiry ---------- */
.flow { border-top: 1px solid var(--line); }
.flow-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: 3rem; }
.flow-head h2 { max-width: 15ch; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.flow-head p { color: var(--ash); font-size: 1.15rem; max-width: 28rem; }
.flow-head .btn { justify-self: start; }
.flow-stage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.flow-map { display: block; width: 100%; height: auto; max-height: calc(100vh - 12.5rem); max-height: calc(100svh - 12.5rem); overflow: visible; }
.flow-track, .flow-lit { fill: none; stroke-width: 5; stroke-linecap: round; }
.flow-track { stroke: var(--track); }
.flow-lit { stroke: var(--red); stroke-dasharray: 1; stroke-dashoffset: 1; }
.node circle { fill: var(--black); stroke: var(--node-stroke); stroke-width: 3; transition: fill .3s, stroke .3s, r .3s; }
.node text { fill: var(--ash); font: 600 17px var(--font); text-anchor: middle; letter-spacing: -0.01em; transition: fill .3s; }
.node.on circle { fill: var(--red); stroke: var(--red); }
.node.on text { fill: var(--bone); }
.node-end.on circle { fill: var(--done-fill); stroke: var(--red); stroke-width: 6; }
.flow-pulse { fill: var(--pulse); opacity: 0; filter: drop-shadow(0 0 6px #ff3b57) drop-shadow(0 0 14px #e31937); }
.flow-pulse.on { opacity: 1; }
.node.now circle { stroke: var(--hi); stroke-width: 4; }
.node.now text { fill: var(--hi); }
.flow-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1.25rem; }
.flow-controls .btn { gap: .6rem; }
.flow-controls .btn:disabled { background: var(--oxblood-2); color: var(--p-text-2); cursor: default; }
.flow-status { color: var(--ash); font-variant-numeric: tabular-nums; }
.flow-log li { position: relative; }
.flow-log li.now::before { content: ""; position: absolute; left: -1rem; top: .85rem; bottom: .85rem; width: 3px; background: var(--red); border-radius: 2px; }
.flow-log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.flow-log li { display: grid; grid-template-columns: 6.2rem 6.8rem minmax(0, 1fr); gap: .25rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
/* Steps not reached yet stay readable (contrast), just quieter: grey text, no red */
.flow-log li:not(.on) time, .flow-log li:not(.on) b, .flow-log li:not(.on) span { color: var(--note); font-weight: 400; }
.flow-log li time, .flow-log li b, .flow-log li span { transition: color .35s ease; }
.flow-log time { color: var(--ash); font-variant-numeric: tabular-nums; }
.flow-log b { color: var(--blush); font-weight: 600; }
.flow-log span { color: var(--bone); }
.flow-total { margin-top: 1.75rem; }
.flow-total:not(.on) strong { color: var(--note); }
.flow-total strong { transition: color .4s ease; }
.flow-total strong { font-size: clamp(2.2rem, 3.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; font-variation-settings: "opsz" 96; font-stretch: 84%; color: var(--red); }
.flow-total p { color: var(--ash); }
.flow-total p:first-child { color: var(--bone); font-size: 1.2rem; }
.flow-note { margin-top: 2.5rem; color: var(--note); font-size: .9rem; }

/* ---------- Agents ---------- */
.agents { background: var(--oxblood); }
.agents-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: 3.5rem; }
.agents-head h2 { max-width: 12ch; }
.agents-head p { color: var(--p-text); font-size: 1.15rem; max-width: 30rem; }
.agents-ui { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem; }
.agent-tabs { display: grid; align-content: start; gap: .5rem; }
.agent-tabs button { display: grid; gap: .2rem; text-align: left; padding: 1.25rem 1.4rem; border: 0; border-left: 3px solid transparent; background: transparent; color: var(--p-muted); cursor: pointer; font-family: var(--font); border-radius: 0 10px 10px 0; transition: background-color .2s, color .2s; }
.agent-tabs button:hover { background: var(--hover-tint); color: var(--bone); }
.agent-tabs button[aria-selected="true"] { border-left-color: var(--red); background: var(--oxblood-2); color: var(--bone); }
.tab-name { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.035em; font-stretch: 86%; font-variation-settings: "opsz" 48; line-height: 1.1; }
.tab-where { font-size: .95rem; }
.agent-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); background: var(--p-deep); border: 1px solid var(--p-line); border-radius: 16px; overflow: hidden; min-height: 30rem; }
.chat { display: flex; flex-direction: column; gap: .7rem; padding: 1.75rem; max-height: 34rem; overflow-y: auto; }
.msg { max-width: 82%; padding: .8rem 1.05rem; border-radius: 16px; line-height: 1.45; font-size: 1rem; animation: pop .25s ease both; }
.from-visitor { align-self: flex-end; background: var(--bone); color: var(--black); border-bottom-right-radius: 4px; }
.from-agent { align-self: flex-start; background: var(--agent-bubble); color: var(--bone); border-bottom-left-radius: 4px; }
.typing { display: inline-flex; gap: 5px; padding: 1rem 1.05rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--p-muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.behind { padding: 1.75rem 1.5rem; border-left: 1px solid var(--p-line); background: var(--p-deeper); display: flex; flex-direction: column; }
.behind h3 { font-size: 1.05rem; letter-spacing: -0.01em; font-stretch: 100%; color: var(--p-muted); font-weight: 600; margin-bottom: 1.1rem; }
.actions { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; align-content: start; flex: 1; }
.actions li { position: relative; padding-left: 1.6rem; font-size: .93rem; line-height: 1.4; color: var(--bone); animation: pop .3s ease both; }
.actions li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11l5-6' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat; }
.replay { margin-top: 1.5rem; align-self: flex-start; background: none; border: 0; padding: 0; font: 500 .95rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: .3em; }
.agents-note { grid-column: 2; color: var(--p-faint); font-size: .9rem; }

/* ---------- Process: the knot ---------- */
.process { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; border-top: 1px solid var(--line); }
.process-knot { width: 100%; max-width: 600px; height: auto; margin: 0 auto; --knot-base: var(--track); --knot-bg: var(--black); overflow: visible; }
.process-knot .loop { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.65,0,.35,1), opacity .3s; pointer-events: none; }
.process-knot .loop.hover { stroke-dashoffset: 0; opacity: .35; }
.process-knot .loop.on { stroke-dashoffset: 0; opacity: 1; }
.process-knot .hit { fill: transparent; cursor: pointer; }
.process-lede { margin-top: 1.5rem; color: var(--ash); font-size: 1.15rem; max-width: 30rem; }
.loop-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.25rem 0 2rem; }
.loop-tabs button { min-height: 2.9rem; padding: 0 1.2rem; border-radius: 999px; border: 1px solid var(--node-stroke); background: transparent; color: var(--ash); font: 600 1rem var(--font); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.loop-tabs button:hover { color: var(--bone); border-color: var(--bone); }
.loop-tabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.loop-panel { min-height: 16rem; border-top: 1px solid var(--line); padding-top: 1.75rem; }
.loop-when { color: var(--blush); font-size: .95rem; }
.loop-panel h3 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); margin: .4rem 0 1rem; font-variation-settings: "opsz" 96; letter-spacing: -0.04em; }
.loop-panel p:not(.loop-when):not(.loop-out) { color: var(--bone); font-size: 1.15rem; max-width: 34rem; }
.loop-out { margin-top: 1.25rem; color: var(--ash); }

/* ---------- Start: multi-step form ---------- */
.start { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); background: var(--oxblood); }
.start-intro p { margin-top: 1.5rem; color: var(--p-text); font-size: 1.15rem; max-width: 24rem; }
.start-intro .start-mail { font-size: 1rem; color: var(--p-muted); }
.start-intro h2 { max-width: 11ch; }

.msf { background: var(--p-deep); border: 1px solid var(--p-line); border-radius: 18px; padding: clamp(1.5rem, 3.5vw, 2.75rem); position: relative; }
.msf-progress { position: relative; margin-bottom: 2.5rem; }
.msf-progress ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; z-index: 1; }
.msf-progress li { display: grid; justify-items: center; gap: .55rem; color: var(--p-muted); font-size: .9rem; font-weight: 500; }
.msf-progress .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--p-deep); box-shadow: inset 0 0 0 2px var(--p-border); transition: background-color .3s, box-shadow .3s; }
.msf-progress li.is-done .dot { background: var(--red); box-shadow: none; }
.msf-progress li.is-current .dot { background: var(--p-deep); box-shadow: inset 0 0 0 4px var(--red); }
.msf-progress li.is-current, .msf-progress li.is-done { color: var(--bone); }
.msf-bar { position: absolute; left: 10%; right: 10%; top: 7px; height: 2px; background: var(--p-line); }
.msf-fill { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.65,0,.35,1); }
.msf-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.msf-step legend { padding: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.04em; font-stretch: 86%; font-variation-settings: "opsz" 72; line-height: 1.05; }
.msf-step legend:focus { outline: none; }
.msf-hint { margin-top: .5rem; color: var(--p-muted); }
.options { display: grid; gap: .75rem; margin-top: 1.5rem; }
.options-cards { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-body { display: grid; gap: .25rem; height: 100%; padding: 1.1rem 1.15rem 1.1rem 3rem; border: 1px solid var(--p-border); border-radius: 12px; transition: border-color .2s, background-color .2s; position: relative; }
.opt-body::before { content: ""; position: absolute; left: 1.1rem; top: 1.2rem; width: 1.1rem; height: 1.1rem; border-radius: 5px; box-shadow: inset 0 0 0 2px var(--p-check); transition: background-color .2s, box-shadow .2s; }
.opt input[type=radio] + .opt-body::before { border-radius: 50%; }
.opt-body b { font-weight: 600; font-size: 1.05rem; }
.opt-body small { color: var(--p-muted); font-size: .9rem; }
.opt:hover .opt-body { border-color: var(--p-border-hover); }
.opt input:checked + .opt-body { border-color: var(--red); background: rgba(227,25,55,.12); }
.opt input:checked + .opt-body::before { box-shadow: none; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11l5-6' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat; }
.opt input[type=radio]:checked + .opt-body::before { background: var(--red); box-shadow: inset 0 0 0 4px var(--p-deep), 0 0 0 2px var(--red); }
.opt input:focus-visible + .opt-body, .chip input:focus-visible + span { outline: 2px solid var(--blush); outline-offset: 2px; }
.opt-row .opt-body { padding-top: .85rem; padding-bottom: .85rem; }
.opt-row .opt-body::before { top: .95rem; }
.msf-step.invalid .opt-body { border-color: var(--blush); }
.tool-groups { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.tool-cat { color: var(--p-muted); font-size: .95rem; margin-bottom: -.75rem; }
.options-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { cursor: pointer; position: relative; }
.chip span { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1.05rem; border: 1px solid var(--p-border); border-radius: 999px; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover span { border-color: var(--p-border-hover); }
.chip input:checked + span { background: var(--bone); color: var(--black); border-color: var(--bone); }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.scope-grid .tool-cat { margin-bottom: 0; }
.scope-grid .options { margin-top: .75rem; gap: .5rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.5rem; }
.field { display: grid; gap: .5rem; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.msf-step[data-step="tools"] .field { margin-top: 1.75rem; }
.field label { font-size: .95rem; color: var(--p-text-2); }
.opt-label { color: var(--p-faint); }
.field input, .field textarea { width: 100%; padding: .9rem 1rem; color: var(--bone); background: var(--oxblood-2); border: 1px solid var(--p-border); border-radius: 10px; font: 400 1.05rem/1.4 var(--font); }
.field input::placeholder, .field textarea::placeholder { color: var(--p-placeholder); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blush); box-shadow: 0 0 0 3px var(--focus-ring); }
.field textarea { resize: vertical; min-height: 8rem; }
.field.invalid input, .field.invalid textarea { border-color: var(--blush); }
.field-error { color: var(--blush); font-size: .9rem; }
.summary { margin: 1.5rem 0 0; border-top: 1px solid var(--p-line); }
.summary div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--p-line); align-items: baseline; }
.summary dt { color: var(--p-muted); font-size: .95rem; }
.summary dd { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.summary-val { min-width: 0; overflow-wrap: anywhere; }
.summary-edit { background: none; border: 0; color: var(--blush); font: 500 .95rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: .25em; padding: .25rem; }
.msf-error { color: var(--blush); min-height: 1.5em; margin-top: 1rem; font-size: .95rem; line-height: 1.5; }

.msf-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--p-line); }
.msf-nav [data-msf-next], .msf-nav [data-msf-send] { margin-left: auto; }
.msf-done { text-align: left; padding: .5rem 0; }
.msf-done:focus { outline: none; }
.done-knot { width: 72px; height: 72px; }
.done-knot circle { fill: none; stroke: var(--red); stroke-width: 6; }
.done-knot path { fill: none; stroke: var(--bone); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; animation: tick .5s .2s ease forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.msf-done h3 { margin-top: 1.25rem; font-size: clamp(2.2rem, 4vw, 3.4rem); font-variation-settings: "opsz" 96; letter-spacing: -0.04em; }
.done-msg { margin-top: .75rem; font-size: 1.2rem; color: var(--p-text-2); }
.done-next { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--p-line); }
.done-next li { padding: 1rem 0; border-bottom: 1px solid var(--p-line); color: var(--p-text); display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; }
.done-next b { color: var(--bone); font-weight: 600; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; padding: 3rem var(--pad) 6.5rem; border-top: 1px solid var(--line); color: var(--ash); }
.footer-small { margin-left: auto; font-size: .9rem; }

/* Contact page */
.page-hero { padding: clamp(4rem, 9vw, 8rem) var(--pad) 3rem; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 7.5rem); line-height: .92; letter-spacing: -0.045em; font-variation-settings: "opsz" 96; font-stretch: 80%; max-width: 14ch; }
.page-hero p { margin-top: 1.75rem; max-width: 36rem; color: var(--ash); font-size: 1.2rem; }

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 1.5rem 0; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.035em; font-stretch: 86%; font-variation-settings: "opsz" 48; line-height: 1.15; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat, linear-gradient(var(--red), var(--red)) center / 2px 100% no-repeat; transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 3rem 1.6rem 0; color: var(--ash); max-width: 44rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .agent-panel { grid-template-columns: 1fr; }
  .behind { border-left: 0; border-top: 1px solid var(--p-line); }
  .chat { max-height: 26rem; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 3rem; padding-bottom: 22rem; }
  .hero-mark { top: auto; bottom: -6rem; transform: none; right: -20vw; width: 90vw; }
  .thread-intro, .flow-head, .agents-head, .flow-stage, .process, .start, .faq { grid-template-columns: 1fr; }
  .flow-head h2 { grid-row: auto; }
  .strands { grid-template-columns: 1fr 1fr; gap: 3.5rem 2.5rem; }
  .strands::before { display: none; }
  .agents-ui { grid-template-columns: 1fr; }
  .agent-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agent-tabs button { border-left: 0; border-bottom: 3px solid transparent; border-radius: 10px 10px 0 0; }
  .agent-tabs button[aria-selected="true"] { border-bottom-color: var(--red); }
  .agents-note { grid-column: 1; }
  .process-figure { max-width: 420px; }
}
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; background: transparent; color: var(--bone); border: 1px solid var(--line); border-radius: 999px; font: 600 .95rem var(--font); cursor: pointer; }
  .site-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1rem 0 .5rem; }
  .site-menu.open { display: flex; }
  .footer-small { margin-left: 0; }
  .flow-log li { grid-template-columns: 5.6rem minmax(0, 1fr); }
  .flow-log li span { grid-column: 1 / -1; }
  .agent-tabs { grid-template-columns: 1fr; }
  .strands { grid-template-columns: 1fr; }
  .strand-lede { min-height: 0; }
  .tab-name { font-size: 1.3rem; }
  .msg { max-width: 92%; }
  .msf-progress .lbl { font-size: .78rem; }
  .scope-grid, .field-grid { grid-template-columns: 1fr; }
  .summary div { grid-template-columns: 1fr; gap: .2rem; }
  .done-next li { grid-template-columns: 1fr; gap: .2rem; }
  .msf-nav .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-knot .draw { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .hero-knot .over { animation: none; opacity: 1; }
  .thread .strands::before { animation: none; }
  .process-knot .loop, .msf-fill, .node circle, .node text, .flow-log li, .flow-total { transition: none; }
  .msg, .actions li { animation: none; }
  .typing i { animation: none; opacity: .6; }
  .done-knot path { animation: none; stroke-dashoffset: 0; }
}
.page-hero h1, .page-hero p { position: relative; z-index: 1; }
.page-mark { right: -8vw; width: min(42vw, 640px); opacity: .9; }
@media (max-width: 960px) { .page-hero { padding-bottom: 4rem; } .page-mark { display: none; } }
@media (max-width: 720px) { .node text { font-size: 26px; } .flow-map { overflow: visible; margin: 1rem 0; } }
.options.invalid .opt-body { border-color: var(--blush); }
.field-hint { color: var(--p-faint); font-size: .9rem; margin-top: -.2rem; }
.reveal { margin-top: .9rem; max-width: 26rem; }
.reveal label { font-size: .9rem; }
.msf-step[data-step="tools"] .reveal { margin-top: .9rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Stage tooltips (enquiry map) ---------- */
.flow-figure { position: relative; }
.node { cursor: pointer; outline: none; }
.node .node-hit, .node.on .node-hit, .node.now .node-hit, .node-end.on .node-hit { fill: transparent !important; stroke: none !important; transition: none; }
.node:hover circle:not(.node-hit), .node.tip-open circle:not(.node-hit) { stroke: var(--bone); }
.node:focus-visible circle:not(.node-hit) { stroke: var(--hi); stroke-width: 4; }
.node:focus-visible .node-hit { stroke: var(--blush) !important; stroke-width: 2; stroke-dasharray: 4 4; }
.flow-hint { color: var(--note); font-size: .92rem; }
.flow-tip {
  position: absolute; z-index: 5; left: 0; top: 0; width: min(20rem, 100%);
  padding: 1rem 1.1rem 1.05rem; background: var(--tip-bg); color: var(--bone);
  border: 1px solid var(--tip-line); border-radius: 12px; box-shadow: 0 18px 40px -12px var(--tip-shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.flow-tip.is-shown { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .18s ease, transform .18s ease, visibility 0s; }
.flow-tip[data-placement="bottom"] { transform: translateY(-4px); }
.flow-tip[data-placement="bottom"].is-shown { transform: none; }
.tip-step { color: var(--blush); font-size: .82rem; font-weight: 600; }
.tip-title { margin-top: .15rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; font-stretch: 86%; font-variation-settings: "opsz" 40; line-height: 1.15; }
.tip-body { margin-top: .5rem; font-size: .95rem; line-height: 1.5; color: var(--tip-text); }
.tip-tools { margin-top: .7rem; padding-top: .65rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ash); }
.tip-arrow { position: absolute; width: 14px; height: 14px; background: var(--tip-bg); border: 1px solid var(--tip-line); transform: translateX(-50%) rotate(45deg); }
.flow-tip[data-placement="top"] .tip-arrow { bottom: -8px; border-top: 0; border-left: 0; }
.flow-tip[data-placement="bottom"] .tip-arrow { top: -8px; border-bottom: 0; border-right: 0; }
@media (prefers-reduced-motion: reduce) { .flow-tip, .flow-tip.is-shown { transition: none; transform: none; } }

/* ---------- Theme toggle ---------- */
.site-menu { margin-left: auto; }
.theme-toggle { order: 2; flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--bone); cursor: pointer; transition: background-color .2s, border-color .2s; }
.theme-toggle:hover { background: var(--hover-tint); border-color: var(--ash); }
.site-header { gap: 1.25rem; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
/* Smooth colour change when switching (not on first load) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease !important; }
@media (max-width: 720px) {
  .brand { margin-right: auto; }
  .theme-toggle { order: 1; }
  .menu-toggle { order: 2; }
  .site-menu { order: 3; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html.theme-anim, html.theme-anim * { transition: none !important; } }

/* ---------- Footer links ---------- */
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-left: auto; }
.footer-links a { color: var(--ash); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--bone); text-decoration: underline; text-underline-offset: .3em; }
.footer-links + .footer-small { margin-left: 0; }

/* ---------- Privacy / legal page ---------- */
.legal-hero h1 { max-width: none; }
.legal-meta { margin-top: 1rem !important; font-size: 1rem !important; color: var(--note) !important; }
.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-top: 3rem; border-top: 1px solid var(--line); }
.legal-toc { position: sticky; top: 6.5rem; }
.legal-toc-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; margin-bottom: 1rem; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.legal-toc li a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ash); text-decoration: none; font-size: .97rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.legal-toc li a:hover { color: var(--bone); }
.legal-toc li a[aria-current] { color: var(--bone); border-left-color: var(--red); font-weight: 600; }
.legal-content { max-width: 46rem; }
.legal-content section { padding: 0 0 2.75rem; margin-bottom: 2.75rem; border-bottom: 1px solid var(--line); scroll-margin-top: 6.5rem; }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 1.1rem; }
.legal-content h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 1.75rem 0 .6rem; }
.legal-content p, .legal-content li { color: var(--bone); font-size: 1.075rem; line-height: 1.7; }
.legal-content p + p { margin-top: 1rem; }
.legal-content ul, .legal-content ol { margin: 1rem 0 0; padding-left: 1.25rem; }
.legal-content li + li { margin-top: .4rem; }
.legal-content li::marker { color: var(--red); }
.legal-content a { color: var(--blush); text-underline-offset: .2em; }
.legal-content .placeholder { color: var(--ash); font-style: italic; }
@media (max-width: 960px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; padding: 1.25rem 1.25rem .75rem; border: 1px solid var(--line); border-radius: 12px; }
  .footer-links { margin-left: 0; }
}
@media print {
  .site-header, .legal-toc, .site-footer, .page-mark, .theme-toggle { display: none !important; }
  .legal { display: block; border: 0; padding: 0; }
  body { background: #fff; color: #000; }
}
.msf-legal { margin-top: 1.25rem; font-size: .92rem; color: var(--p-muted); }
.msf-legal a { color: inherit; text-underline-offset: .2em; }

/* ---------- Legal content: numbers, tables, boxes ---------- */
.legal-content h2 { display: flex; align-items: baseline; gap: .9rem; }
.sec-num { flex: none; font-size: .9rem; font-weight: 600; color: var(--blush); letter-spacing: 0; font-variant-numeric: tabular-nums; transform: translateY(-.35em); }
.legal-intro { font-size: 1.2rem !important; line-height: 1.6 !important; margin-bottom: 2.75rem; padding-bottom: 2.75rem; border-bottom: 1px solid var(--line); }
.legal-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; margin-top: .5rem; }
.legal-pair h3 { margin-top: 1.5rem; }
.legal-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: .1em .35em; border-radius: 5px; background: var(--hover-tint); border: 1px solid var(--line); white-space: nowrap; }
.table-wrap { margin-top: 1.25rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap:focus-visible { outline: 2px solid var(--blush); outline-offset: 2px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 34rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .85rem 1rem; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--bone); }
.legal-table thead th { font-size: .85rem; font-weight: 600; color: var(--ash); background: var(--hover-tint); }
.legal-table tbody tr:last-child > * { border-bottom: 0; }
.legal-table tbody th { font-weight: 600; white-space: nowrap; }
.tag { display: inline-block; padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ash); white-space: nowrap; }
.tag-on { background: var(--red); border-color: var(--red); color: #fff; }
.legal-box { margin-top: 1.5rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 12px; background: var(--hover-tint); }
.legal-box h3 { margin-top: 0; }
.consent-list { margin: .75rem 0 0; display: grid; gap: .55rem; }
.consent-list div { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: 1rem; align-items: baseline; }
.consent-list dt { font-weight: 600; color: var(--bone); }
.consent-list dd { margin: 0; color: var(--ash); }
.regulator .consent-list { margin-top: 0; }
.provider-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.provider-head h3 { margin: 0; }
.provider p { margin-top: .75rem !important; }
.link-grid { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.link-grid li { margin: 0 !important; }
.link-grid a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--bone); font-size: .97rem; transition: border-color .2s, background-color .2s; }
.link-grid a::after { content: ""; width: .5rem; height: .5rem; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg); flex: none; }
.link-grid a:hover { border-color: var(--red); background: var(--hover-tint); }
.law-list { margin: 1rem 0 0; display: grid; gap: .9rem; }
.law-list div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; }
.law-list dt { font-weight: 700; color: var(--blush); }
.law-list dd { margin: 0; color: var(--bone); line-height: 1.6; }
.legal-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem !important; }
.legal-small { font-size: .95rem !important; color: var(--ash) !important; }
.legal-cta { margin-top: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 16px; background: var(--oxblood); border: 1px solid var(--p-line); }
.legal-cta h2 { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .75rem; }
.legal-cta p { color: var(--p-text) !important; margin-bottom: 1.4rem; }
.legal-cta .btn { color: #fff; text-decoration: none; }
@media (max-width: 720px) {
  .legal-pair, .link-grid { grid-template-columns: 1fr; }
  .consent-list div, .law-list div { grid-template-columns: 1fr; gap: .15rem; }
}

/* ---------- Cookie consent card ---------- */
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ash); cursor: pointer; }
.footer-link-btn:hover { color: var(--bone); text-decoration: underline; text-underline-offset: .3em; }
.cc {
  position: fixed; z-index: 60; left: 1.25rem; bottom: 1.25rem; width: min(23rem, calc(100vw - 2.5rem));
  padding: 1.15rem 1.2rem 1.1rem; background: var(--tip-bg); color: var(--bone);
  border: 1px solid var(--tip-line); border-radius: 16px; box-shadow: 0 24px 48px -16px var(--tip-shadow);
  font-family: var(--font); opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease;
}
.cc.cc-show { opacity: 1; transform: none; }
.cc[hidden] { display: none !important; }
.cc::before { content: ""; position: absolute; left: 1.2rem; top: -1px; width: 2.5rem; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
.cc-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; font-stretch: 90%; line-height: 1.2; }
.cc-text { margin-top: .4rem; font-size: .92rem; line-height: 1.5; color: var(--ash); }
.cc-text a { color: var(--bone); text-underline-offset: .2em; }
.cc-list { list-style: none; margin: .9rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.cc-name { display: block; font-weight: 600; font-size: .95rem; }
.cc-desc { display: block; font-size: .83rem; color: var(--ash); line-height: 1.4; margin-top: .1rem; }
.cc-always { flex: none; font-size: .8rem; font-weight: 600; color: var(--ash); }
.cc-switch { position: relative; flex: none; width: 2.6rem; height: 1.5rem; cursor: pointer; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--track); box-shadow: inset 0 0 0 1px var(--node-stroke); transition: background-color .2s; pointer-events: none; }
.cc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.cc-switch input:checked + span { background: var(--red); box-shadow: none; }
.cc-switch input:checked + span::after { transform: translateX(1.1rem); }
.cc-switch input:focus-visible + span { outline: 2px solid var(--blush); outline-offset: 2px; }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }
.cc-btn { flex: 1 1 auto; min-height: 2.6rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--node-stroke); background: transparent; color: var(--bone); font: 600 .9rem var(--font); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.cc-btn:hover { border-color: var(--bone); }
.cc-primary { background: var(--bone); border-color: var(--bone); color: var(--black); }
.cc-primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cc-link { background: none; border: 0; padding: .4rem .2rem; font: 500 .88rem var(--font); color: var(--ash); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.cc-link:hover { color: var(--bone); }
.cc-btn:focus-visible, .cc-link:focus-visible { outline: 2px solid var(--blush); outline-offset: 2px; }
@media (max-width: 480px) { .cc { left: .75rem; right: .75rem; bottom: .75rem; width: auto; } }
@media (prefers-reduced-motion: reduce) { .cc, .cc-switch span, .cc-switch span::after { transition: none; } }
@media print { .cc { display: none !important; } }
.replay:disabled { opacity: .45; cursor: default; text-decoration: none; }

/* ---------- FAQ page ---------- */
.faq-search { position: relative; margin-top: 2rem; max-width: 36rem; }
.faq-search svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--ash); pointer-events: none; }
.faq-search input { width: 100%; min-height: 3.5rem; padding: 0 1.25rem 0 3.1rem; border: 1px solid var(--node-stroke); border-radius: 999px; background: var(--black); color: var(--bone); font: 400 1.05rem var(--font); }
.faq-search input::placeholder { color: var(--note); }
.faq-search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--focus-ring); }
.faq-status { margin-top: .75rem !important; min-height: 1.5em; font-size: .95rem !important; color: var(--ash) !important; }
.faq-content .faq-group { padding-bottom: 2.25rem; margin-bottom: 2.25rem; }
.faq-content .faq-group[hidden], .legal-toc li[hidden] { display: none; }
.faq-content .faq-list { border-top: 0; }
.faq-item { border-top: 1px solid var(--line); scroll-margin-top: 7rem; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item[hidden] { display: none; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 1.2rem 0; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat, linear-gradient(var(--red), var(--red)) center / 2px 100% no-repeat; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--red); }
.faq-item summary:focus-visible { outline: 2px solid var(--blush); outline-offset: 4px; border-radius: 4px; }
.faq-answer { padding: 0 3rem 1.4rem 0; }
.faq-answer p { color: var(--ash) !important; }
.faq-empty { padding: 2rem 0 3rem; }
.faq-empty h2 { font-size: 1.8rem; margin-bottom: .6rem; }
.faq-side .faq-more { margin-top: 1.25rem; font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.nf-code { font-size: clamp(5rem, 14vw, 11rem) !important; font-weight: 800; line-height: .8; letter-spacing: -0.06em; color: var(--red) !important; font-variation-settings: "opsz" 96; font-stretch: 80%; margin: 0 0 1.5rem !important; }
.notfound .hero-actions { margin-top: 2.25rem; }

.chat:focus-visible { outline: 2px solid var(--blush); outline-offset: -2px; }

/* In-page links (#services, #start, ...) stop below the sticky header */
main section[id], #contact { scroll-margin-top: 5.5rem; }
