/* ============================================================
   WorkInFlow site styles. Colours come from tokens.css only.
   Chunks are labelled WIF-01 onwards; edit inside the right one.
   ============================================================ */

/* ── WIF-01 Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body { font-family: var(--font-body); background: var(--white); color: var(--ink); overflow-x: hidden; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--white); color: var(--navy); padding: 0.6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── WIF-02 Wordmark ── */
.wif-mark { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1; text-decoration: none; }
.wif-mark .w { font-weight: 300; color: var(--sky); }
.wif-mark .i { font-weight: 800; color: var(--core); }
.wif-mark .f { font-weight: 300; color: var(--navy); }
.dark-logo { text-decoration: none; }
.dark-logo .wif-mark .w { color: var(--sky); }
.dark-logo .wif-mark .i { color: var(--bright); }
.dark-logo .wif-mark .f { color: var(--white); }

/* ── WIF-03 Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--pad-x);
  background: rgb(var(--navy-rgb) / 0.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-logo { margin-right: auto; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; letter-spacing: 0.02em; transition: color 0.2s; }
.nav-links a:hover { color: var(--sky); }
.nav-cta {
  background: var(--bright); color: var(--on-bright); text-decoration: none; white-space: nowrap;
  font-family: var(--font-head); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.03em;
  padding: 0.55rem 1.25rem; border-radius: 5px; transition: background 0.2s;
}
.nav-cta:hover { background: var(--bright-hover); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── WIF-04 Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em;
  padding: 0.9rem 1.75rem; border-radius: 6px; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--bright); color: var(--on-bright); }
.btn-primary:hover { background: var(--bright-hover); color: var(--on-bright); transform: translateY(-2px); box-shadow: 0 10px 30px rgb(var(--core-rgb) / 0.35); }
.btn-ghost { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-outline { color: var(--core); border-color: rgb(var(--core-rgb) / 0.35); background: var(--white); }
.btn-outline:hover { border-color: var(--core); background: var(--pale); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }

/* ── WIF-05 Sections and type ── */
.sec { padding: var(--sec-y) var(--pad-x); }
.sec-pale { background: var(--pale); }
.sec-mist { background: var(--mist); }
.sec-white { background: var(--white); }
.sec-navy { background: var(--navy); color: var(--white); }
.label { font-family: var(--font-head); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1rem; }
.h2 { font-family: var(--font-head); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.1rem; color: var(--navy); }
.sub { font-size: 1.05rem; color: var(--slate); font-weight: 300; line-height: 1.75; max-width: 580px; }
.sec-navy .label { color: var(--sky); }
.sec-navy .h2 { color: var(--white); }
.sec-navy .sub { color: rgba(255,255,255,0.55); }
.center { text-align: center; }
.center-sub { margin: 0 auto; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ── WIF-06 Hero ── */
.hero { min-height: 100vh; background: var(--navy); display: flex; align-items: center; padding: calc(var(--nav-h) + 4rem) var(--pad-x) 5rem; position: relative; overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgb(var(--sky-rgb) / 0.035) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--sky-rgb) / 0.035) 1px, transparent 1px); background-size: 64px 64px; }
.hero-glow-1 { position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--bright-rgb) / 0.13) 0%, transparent 65%); top: -150px; right: -100px; pointer-events: none; }
.hero-glow-2 { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--sky-rgb) / 0.08) 0%, transparent 65%); bottom: -50px; left: 20%; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgb(var(--sky-rgb) / 0.1); border: 1px solid rgb(var(--sky-rgb) / 0.2); color: var(--sky); font-family: var(--font-head); font-size: 0.73rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 0.9rem; border-radius: 100px; margin-bottom: 2.25rem; }
.hero-badge::before { content: ''; width: 5px; height: 5px; background: var(--sky); border-radius: 50%; }
.hero-h1 { font-family: var(--font-head); font-size: clamp(2.5rem, 5.5vw, 4.75rem); line-height: 1.06; color: var(--white); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 1.25rem; }
.grad { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.55); font-weight: 300; line-height: 1.75; max-width: 560px; margin-bottom: 2.75rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-tagline { margin-top: 3.5rem; padding-top: 2.25rem; border-top: 1px solid rgba(255,255,255,0.07); }
.hero-tagline-text { font-family: var(--font-head); font-size: 1.05rem; font-weight: 300; color: var(--sky); }
.hero-tagline-sub { font-family: var(--font-head); font-size: 0.75rem; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.35rem; }
.hero > * { animation: fadeUp 0.7s 0.1s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ── WIF-07 Problem and admin cost calculator ── */
.problem-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.pains { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 2.25rem; }
.pain { display: flex; gap: 0.85rem; align-items: flex-start; background: var(--white); border: 1px solid rgb(var(--core-rgb) / 0.12); border-radius: 10px; padding: 1.1rem 1.15rem; transition: border-color 0.2s, transform 0.2s; }
.pain:hover { border-color: var(--accent-text); transform: translateY(-2px); }
.pain-icon { font-size: 1.15rem; line-height: 1.3; }
.pain-t { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.2rem; }
.pain-d { font-size: 0.84rem; color: var(--slate); line-height: 1.55; font-weight: 300; }
.calc { background: var(--white); border: 1px solid rgb(var(--core-rgb) / 0.14); border-radius: 16px; padding: 2rem; box-shadow: 0 24px 70px rgb(var(--navy-rgb) / 0.12); }
.calc-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.calc-title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); letter-spacing: -0.02em; }
.calc-hint { font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.cur { display: inline-flex; background: var(--mist); border-radius: 100px; padding: 3px; gap: 2px; }
.cur button { border: 0; background: transparent; color: var(--slate); font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; min-width: 34px; height: 28px; border-radius: 100px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.cur button:hover { color: var(--navy); }
.cur button[aria-checked="true"] { background: var(--bright); color: var(--on-bright); }
.calc-field { margin-bottom: 1.25rem; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.calc-row label { font-size: 0.88rem; color: var(--ink); }
.calc-row output { font-family: var(--font-head); font-weight: 700; color: var(--core); font-size: 1rem; }
.calc-note { font-size: 0.75rem; color: var(--slate); margin-top: 0.4rem; font-weight: 300; }
.calc input[type=range] { width: 100%; height: 6px; -webkit-appearance: none; appearance: none; border-radius: 6px; background: linear-gradient(90deg, var(--bright) var(--fill, 20%), var(--pale) var(--fill, 20%)); outline-offset: 6px; cursor: pointer; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--core); box-shadow: 0 2px 8px rgb(var(--navy-rgb) / 0.2); }
.calc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--core); }
.calc-out { background: var(--navy); color: var(--white); border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0 1.25rem; }
.calc-big { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.calc-big span { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; }
.calc-big small { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.calc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.calc-stats strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--sky); }
.calc-stats span { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.calc-save { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.6; }
.calc-save strong { color: var(--white); font-family: var(--font-head); }

/* ── WIF-08 How it works ── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3.5rem; border: 1px solid var(--line-dark); border-radius: 12px; overflow: hidden; }
.step { padding: 2.25rem 1.85rem; border-right: 1px solid var(--line-dark); transition: background 0.25s; }
.step:last-child { border-right: none; }
.step:hover { background: rgb(var(--bright-rgb) / 0.07); }
.step-num { display: block; font-family: var(--font-head); font-size: 3rem; font-weight: 800; line-height: 1; color: rgb(var(--sky-rgb) / 0.18); margin-bottom: 1.25rem; letter-spacing: -0.05em; }
.step-bar { width: 28px; height: 2px; background: var(--bright); margin-bottom: 1.25rem; border-radius: 2px; }
.step-title { font-family: var(--font-head); font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; }
.step-desc { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.7; font-weight: 300; }

/* ── WIF-09 Services: layers ── */
.layers { margin-top: 3rem; display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; max-width: 1200px; }
.layer-tabs { display: flex; flex-direction: column; gap: 0.6rem; }
.layer-tab { text-align: left; background: var(--white); border: 1px solid rgb(var(--navy-rgb) / 0.1); border-radius: 12px; padding: 1.1rem 1.25rem; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 0.85rem; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.layer-tab:hover { border-color: rgb(var(--core-rgb) / 0.35); }
.layer-tab[aria-selected="true"] { border-color: var(--accent-text); box-shadow: 0 10px 30px rgb(var(--core-rgb) / 0.12); }
.layer-n { grid-row: span 2; font-family: var(--font-head); font-weight: 800; color: var(--sky); font-size: 0.85rem; padding-top: 0.15rem; }
.layer-tab[aria-selected="true"] .layer-n { color: var(--accent-text); }
.layer-name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.layer-sum { font-size: 0.82rem; color: var(--slate); font-weight: 300; margin-top: 0.15rem; }
.layer-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; background: var(--white); border: 1px solid rgb(var(--navy-rgb) / 0.1); border-radius: 16px; padding: 1.75rem; animation: fadeUp 0.35s both; }
.layer-panel[hidden] { display: none; }
.layer-items { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.layer-items li { padding-left: 1rem; border-left: 2px solid var(--pale); transition: border-color 0.2s; }
.layer-items li:hover { border-left-color: var(--accent-text); }
.li-t { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1rem; margin-bottom: 0.25rem; }
.li-d { font-size: 0.875rem; color: var(--slate); line-height: 1.65; font-weight: 300; }
.mock { background: var(--mist); border-radius: 12px; padding: 1rem; font-size: 0.8rem; align-self: start; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.mock-bar em { font-style: normal; font-size: 0.7rem; color: var(--ok); background: var(--ok-bg); padding: 0.15rem 0.55rem; border-radius: 100px; font-weight: 600; }
.mock-bar em.toggle { color: var(--core); background: var(--pale); }
.mock-row { display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem; align-items: center; background: var(--white); border-radius: 8px; padding: 0.6rem 0.7rem; margin-bottom: 0.45rem; }
.mock-row.dim { opacity: 0.55; }
.mock-row b { display: block; color: var(--navy); font-weight: 600; font-size: 0.82rem; }
.mock-row small { color: var(--slate); font-size: 0.72rem; }
.av { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--pale); color: var(--core); font-size: 0.66rem; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); }
.av.doc { border-radius: 7px; width: 38px; }
.chip { font-size: 0.68rem; padding: 0.2rem 0.5rem; border-radius: 100px; background: var(--mist); color: var(--slate); white-space: nowrap; font-weight: 500; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.info { background: var(--pale); color: var(--core); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; margin-bottom: 0.6rem; }
.mock-kpis div { background: var(--white); border-radius: 8px; padding: 0.65rem; }
.mock-kpis small { display: block; color: var(--slate); font-size: 0.68rem; }
.mock-kpis b { font-family: var(--font-head); color: var(--navy); font-size: 1.1rem; }
.warn-t { color: var(--warn) !important; }
.mock-chat { background: var(--navy); border-radius: 10px; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.45rem; }
.mock-chat .q { align-self: flex-end; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); padding: 0.5rem 0.7rem; border-radius: 9px 9px 2px 9px; max-width: 85%; }
.mock-chat .a { background: rgb(var(--bright-rgb) / 0.2); color: rgba(255,255,255,0.9); padding: 0.5rem 0.7rem; border-radius: 9px 9px 9px 2px; max-width: 92%; line-height: 1.5; }
.mock-note { font-size: 0.66rem; color: var(--slate); text-align: right; margin-top: 0.5rem; letter-spacing: 0.04em; }

/* ── WIF-10 Our work ── */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.25rem; }
.work-card { background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); border-radius: 14px; padding: 1.75rem; display: flex; flex-direction: column; transition: border-color 0.25s, background 0.25s; }
.work-card:hover { border-color: rgb(var(--bright-rgb) / 0.35); background: rgb(var(--bright-rgb) / 0.06); }
.work-shot { display: block; width: 100%; padding: 0; margin: 0 0 1.4rem; cursor: zoom-in; border: 1px solid rgb(var(--sky-rgb) / 0.18); border-radius: 9px; overflow: hidden; background: var(--white); position: relative; aspect-ratio: 16 / 10; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.work-shot:hover { border-color: var(--sky); }
.work-count { position: absolute; right: 0.6rem; bottom: 0.6rem; background: rgb(var(--navy-rgb) / 0.88); color: var(--white); font-family: var(--font-head); font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 100px; }
.work-tag { font-family: var(--font-head); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); font-weight: 600; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.work-tag::before { content: ''; width: 16px; height: 1px; background: var(--sky); }
.work-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.65rem; }
.work-desc { font-size: 0.875rem; color: rgba(255,255,255,0.55); font-weight: 300; line-height: 1.7; margin-bottom: 1.25rem; }
.work-result { font-size: 0.85rem; color: var(--sky); margin-bottom: 1.25rem; padding: 0.75rem 0.9rem; background: rgb(var(--sky-rgb) / 0.08); border-radius: 8px; }
.work-link { margin-top: auto; color: var(--sky); font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; text-decoration: none; }
.work-link:hover { color: var(--white); }

/* ── WIF-11 AI assistant ── */
.ai-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; margin-top: 3.5rem; max-width: 1200px; }
.ai-chat { background: var(--navy); border: 1px solid rgb(var(--sky-rgb) / 0.15); border-radius: 14px; padding: 1.5rem; box-shadow: 0 30px 80px rgb(var(--navy-rgb) / 0.2); }
.chat-header { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-dark); margin-bottom: 1.25rem; }
.chat-avatar { width: 36px; height: 36px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.85rem; }
.chat-name { font-family: var(--font-head); color: var(--white); font-size: 0.9rem; font-weight: 600; }
.chat-status { color: var(--sky); font-size: 0.73rem; }
.chat-bubble { padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.86rem; line-height: 1.6; margin-bottom: 0.6rem; max-width: 86%; }
.bubble-bot { background: rgb(var(--bright-rgb) / 0.14); color: rgba(255,255,255,0.85); border-bottom-left-radius: 3px; }
.bubble-user { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.55); margin-left: auto; border-bottom-right-radius: 3px; }
.chat-input { display: flex; gap: 0.6rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-dark); }
.chat-input-box { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--line-dark); border-radius: 6px; padding: 0.6rem 0.9rem; color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.chat-send { background: var(--bright); color: var(--on-bright); border-radius: 6px; padding: 0.55rem 0.9rem; font-weight: 600; }
.ai-features { list-style: none; display: flex; flex-direction: column; gap: 1.4rem; }
.ai-features li { display: flex; gap: 1rem; align-items: flex-start; }
.ai-dot { width: 8px; height: 8px; background: var(--bright); border-radius: 50%; flex-shrink: 0; margin-top: 8px; }
.ai-t { font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; }
.ai-d { font-size: 0.875rem; color: var(--slate); font-weight: 300; line-height: 1.65; }

/* ── WIF-12 Automation flows ── */
.flows { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 2rem; margin-top: 3rem; align-items: start; max-width: 1200px; }
.flow-list { display: flex; flex-direction: column; gap: 0.5rem; }
.flow-pick { text-align: left; background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.75); border: 1px solid var(--line-dark); border-radius: 10px; padding: 0.85rem 1rem; cursor: pointer; font-size: 0.92rem; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.flow-pick:hover { border-color: rgb(var(--sky-rgb) / 0.35); color: var(--white); }
.flow-pick[aria-selected="true"] { background: rgb(var(--bright-rgb) / 0.16); border-color: var(--bright); color: var(--white); }
.flow-when { font-family: var(--font-head); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); margin-right: 0.5rem; font-weight: 600; }
.flow-stage { background: rgba(255,255,255,0.03); border: 1px solid var(--line-dark); border-radius: 16px; padding: 1.75rem; min-height: 100%; }
.flow-panel { display: flex; flex-direction: column; gap: 0; }
.flow-panel[hidden] { display: none; }
.node { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 1rem; align-items: center; padding: 0.95rem 1.1rem; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--line-dark); margin-bottom: 1.4rem; opacity: 0; transform: translateX(-10px); animation: nodeIn 0.45s calc(var(--d, 0) * 0.18s) forwards; }
.node:not(:last-child)::after { content: ''; position: absolute; left: 2.6rem; bottom: -1.4rem; width: 2px; height: 1.4rem; background: linear-gradient(var(--bright), rgb(var(--bright-rgb) / 0.2)); }
.node:last-child { margin-bottom: 0; }
.node-k { font-family: var(--font-head); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); font-weight: 600; }
.node-v { font-size: 0.93rem; color: rgba(255,255,255,0.88); line-height: 1.5; }
.node-trigger { background: rgb(var(--bright-rgb) / 0.18); border-color: rgb(var(--bright-rgb) / 0.45); }
.node-out { background: var(--white); border-color: var(--white); }
.node-out .node-k { color: var(--core); }
.node-out .node-v { color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
@keyframes nodeIn { to { opacity: 1; transform: none; } }
.flow-more { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.flow-more-l { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-right: 0.25rem; }
.tag-dark { font-family: var(--font-head); font-size: 0.75rem; color: rgba(255,255,255,0.75); border: 1px solid var(--line-dark); padding: 0.3rem 0.75rem; border-radius: 100px; }

/* ── WIF-13 Pricing ── */
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 3.5rem auto 0; max-width: 1040px; align-items: stretch; }
.pricing-card { position: relative; background: var(--white); border: 1px solid rgb(var(--navy-rgb) / 0.1); border-radius: 14px; padding: 2.25rem 1.85rem; display: flex; flex-direction: column; transition: border-color 0.25s, box-shadow 0.25s; }
.pricing-card:hover { border-color: rgb(var(--core-rgb) / 0.25); box-shadow: 0 12px 40px rgb(var(--navy-rgb) / 0.08); }
.pricing-card.featured { border-color: var(--accent-text); box-shadow: 0 20px 60px rgb(var(--core-rgb) / 0.15); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--bright); color: var(--on-bright); font-family: var(--font-head); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 100px; white-space: nowrap; }
.pricing-tier { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.pricing-billing { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; margin: 0.35rem 0 1rem; }
.pricing-desc { font-size: 0.9rem; color: var(--slate); font-weight: 300; line-height: 1.65; padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--silver); }
.pricing-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 2rem; flex: 1; }
.pricing-list li { font-size: 0.875rem; color: var(--ink); font-weight: 300; display: flex; gap: 0.65rem; align-items: flex-start; }
.pricing-list li::before { content: '✓'; color: var(--accent-text); font-weight: 700; flex-shrink: 0; }
.billing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1040px; margin: 2rem auto 0; }
.billing-item { border-top: 2px solid var(--bright); padding-top: 1rem; }
.billing-t { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.billing-d { font-size: 0.86rem; color: var(--slate); font-weight: 300; line-height: 1.6; }
.pricing-note { font-size: 0.85rem; color: var(--slate); text-align: center; margin: 2.25rem auto 0; max-width: 600px; line-height: 1.7; }

/* ── WIF-14 FAQ ── */
.faq-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; max-width: 1100px; margin: 0 auto; align-items: start; }
.faq-item { border-bottom: 1px solid var(--silver); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.02rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0.25rem; top: 1.05rem; font-size: 1.4rem; color: var(--accent-text); font-weight: 400; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 2.5rem 1.35rem 0; color: var(--slate); font-weight: 300; line-height: 1.75; font-size: 0.95rem; }

/* ── WIF-15 Brief form ── */
.brief-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; max-width: 1100px; margin: 0 auto; }
.brief-steps { list-style: none; margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.brief-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.brief-steps .num { font-family: var(--font-head); font-weight: 800; font-size: 0.8rem; width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: var(--white); color: var(--core); border: 1px solid rgb(var(--core-rgb) / 0.2); display: flex; align-items: center; justify-content: center; }
.brief-steps .t { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 0.95rem; margin-bottom: 0.2rem; }
.brief-steps .d { font-size: 0.875rem; color: var(--slate); font-weight: 300; line-height: 1.6; }
.brief-email { margin-top: 2rem; font-size: 0.85rem; color: var(--slate); font-weight: 300; }
.brief-email a { color: var(--core); font-weight: 500; text-decoration: none; }
.brief-card { background: var(--white); border: 1px solid rgb(var(--navy-rgb) / 0.1); border-radius: 14px; padding: 2.25rem 2rem; box-shadow: 0 20px 60px rgb(var(--navy-rgb) / 0.08); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.f-field label, .f-legend { font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; color: var(--navy); }
.f-field .opt { color: var(--slate); font-weight: 400; }
.f-field input, .f-field select, .f-field textarea { font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); padding: 0.7rem 0.85rem; border: 1px solid var(--silver); border-radius: 7px; background: var(--white); width: 100%; transition: border-color 0.15s, box-shadow 0.15s; }
.f-field textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--core-dim); }
.f-field.bad input, .f-field.bad select, .f-field.bad textarea { border-color: var(--bad); }
.f-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.f-chips label { font-family: var(--font-body); font-weight: 400; font-size: 0.86rem; color: var(--ink); border: 1px solid var(--silver); border-radius: 100px; padding: 0.45rem 1rem; cursor: pointer; position: relative; }
.f-chips input { position: absolute; opacity: 0; pointer-events: none; }
.f-chips label:has(input:checked) { background: var(--pale); border-color: var(--accent-text); color: var(--core); font-weight: 500; }
.f-chips label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--core-dim); }
.f-consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.8rem; color: var(--slate); line-height: 1.55; margin: 0.4rem 0 1.4rem; }
.f-consent input { margin-top: 3px; accent-color: var(--core); }
.f-consent a { color: var(--core); }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-error { display: none; background: var(--bad-bg); color: var(--bad); border-radius: 7px; padding: 0.7rem 0.9rem; font-size: 0.85rem; margin-bottom: 1rem; }
.f-error.show { display: block; }
.f-done { text-align: center; padding: 1rem 0.25rem; }
.f-done .tick { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1.25rem; background: var(--pale); color: var(--core); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; border: 1px solid rgb(var(--core-rgb) / 0.2); }
.f-done h3 { font-family: var(--font-head); font-size: 1.35rem; color: var(--navy); margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.f-done p { font-size: 0.9rem; color: var(--slate); font-weight: 300; line-height: 1.65; }
.f-done .ref { font-family: var(--font-head); color: var(--core); font-weight: 600; }
.f-booking { margin-top: 1.5rem; text-align: left; }
.f-booking-lead { font-family: var(--font-head); font-weight: 600; color: var(--navy) !important; margin-bottom: 0.75rem; }
.f-booking iframe { width: 100%; height: 640px; border: 1px solid var(--silver); border-radius: 10px; }

/* ── WIF-16 Footer ── */
.footer { background: var(--navy); padding: 3.5rem var(--pad-x) 2rem; border-top: 1px solid var(--line-dark); color: var(--white); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.86rem; color: rgba(255,255,255,0.45); font-weight: 300; line-height: 1.75; max-width: 300px; margin-top: 0.9rem; }
.footer-brand .footer-tag { color: var(--sky); font-family: var(--font-head); font-weight: 300; }
.footer-col h2 { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a, .footer-col span { font-size: 0.875rem; color: rgba(255,255,255,0.55); text-decoration: none; font-weight: 300; transition: color 0.2s; }
.footer-col a:hover { color: var(--sky); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-family: var(--font-head); font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ── WIF-17 Lightbox ── */
.lb { position: fixed; inset: 0; z-index: 300; background: var(--navy); padding: 4.5rem 4% 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.lb[hidden] { display: none; }
.lb-img { max-width: 100%; max-height: calc(100vh - 11rem); border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.45); background: var(--white); }
.lb-cap { color: rgba(255,255,255,0.82); font-size: 0.92rem; text-align: center; max-width: 640px; line-height: 1.55; }
.lb-count { font-family: var(--font-head); color: var(--sky); font-size: 0.75rem; letter-spacing: 0.1em; }
.lb-btn { position: absolute; background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; width: 44px; height: 44px; font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lb-btn:hover { background: rgb(var(--bright-rgb) / 0.4); }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ── WIF-18 Inner pages (case studies, policies) ── */
.page-hero { background: var(--navy); color: var(--white); padding: calc(var(--nav-h) + 4rem) var(--pad-x) 3.5rem; }
.page-hero .crumbs { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-bottom: 1.25rem; }
.page-hero .crumbs a { color: var(--sky); text-decoration: none; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; max-width: 860px; }
.page-hero .lede { color: rgba(255,255,255,0.6); font-size: 1.08rem; font-weight: 300; line-height: 1.75; max-width: 680px; margin-top: 1.1rem; }
.page-hero .meta { margin-top: 1.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.page-hero .meta a { color: var(--sky); }
.cs-body { max-width: 1100px; margin: 0 auto; padding: 4rem var(--pad-x) 5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; }
.cs-block h2 { font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); margin-bottom: 0.9rem; letter-spacing: -0.02em; }
.cs-block p { color: var(--ink); line-height: 1.8; font-weight: 300; }
.cs-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.cs-list li { display: flex; gap: 0.7rem; line-height: 1.6; font-weight: 300; }
.cs-list li::before { content: '→'; color: var(--accent-text); font-weight: 600; }
.cs-results { grid-column: 1 / -1; background: var(--pale); border-radius: 14px; padding: 2rem; }
.cs-results ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.cs-results li { background: var(--white); border-radius: 10px; padding: 1.1rem 1.2rem; font-family: var(--font-head); font-weight: 600; color: var(--navy); line-height: 1.45; }
.cs-screens { grid-column: 1 / -1; }
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.cs-grid figure button { display: block; width: 100%; padding: 0; border: 1px solid var(--silver); border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--white); aspect-ratio: 16 / 10; }
.cs-grid figure img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.cs-grid figcaption { font-size: 0.85rem; color: var(--slate); margin-top: 0.6rem; }
.cs-cta { grid-column: 1 / -1; background: var(--navy); color: var(--white); border-radius: 16px; padding: 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cs-cta h2 { font-family: var(--font-head); font-size: 1.6rem; letter-spacing: -0.02em; }
.cs-cta p { color: rgba(255,255,255,0.6); margin-top: 0.3rem; font-weight: 300; }
.prose { max-width: 760px; margin: 0 auto; padding: 3.5rem var(--pad-x) 5rem; }
.prose h2 { font-family: var(--font-head); color: var(--navy); font-size: 1.35rem; margin: 2.25rem 0 0.75rem; letter-spacing: -0.02em; }
.prose p, .prose li { line-height: 1.8; font-weight: 300; margin-bottom: 0.85rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose a { color: var(--core); }
.prose .draft { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.88rem; margin-bottom: 1.5rem; }

/* ── WIF-19 Responsive ── */
@media (max-width: 1000px) {
  .layers { grid-template-columns: 1fr; }
  .layer-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.25rem; }
  .layer-tab { min-width: 220px; scroll-snap-align: start; }
  .flows { grid-template-columns: 1fr; }
  .flow-list { flex-direction: row; overflow-x: auto; padding-bottom: 0.25rem; }
  .flow-pick { min-width: 230px; }
}
@media (max-width: 900px) {
  :root { --sec-y: 4.25rem; }
  .nav { gap: 0.75rem; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 1px solid var(--line-dark); padding: 0.5rem var(--pad-x) 1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .problem-inner, .ai-inner, .brief-inner, .faq-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .layer-panel { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; max-width: 560px; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 460px; gap: 2rem; }
  .billing { grid-template-columns: 1fr; max-width: 460px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .cs-body { grid-template-columns: 1fr; }
  .cs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-cta { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
  .pains { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line-dark); }
  .step:last-child { border-bottom: none; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .brief-card, .calc { padding: 1.5rem 1.15rem; }
  .node { grid-template-columns: 1fr; gap: 0.25rem; }
  .node:not(:last-child)::after { left: 1.5rem; }
  .lb { padding: 4rem 3% 5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1.25rem; transform: none; }
  .hero-actions .btn { width: 100%; }
  .f-booking iframe { height: 720px; }
}

/* ── WIF-20 Light theme: white and grey surfaces, black buttons, one accent ──
   Dark-panel elements (calculator result, chat mock, lightbox, case study CTA)
   stay dark on purpose. */
.sec-navy, .sec-white { background: var(--white); color: var(--ink); }
.sec-pale, .sec-mist { background: var(--mist); }
.sec-navy .label { color: var(--accent-text); }
.sec-navy .h2 { color: var(--ink); }
.sec-navy .sub { color: var(--slate); }

/* Nav */
.nav { background: rgb(255 255 255 / 0.86); border-bottom: 1px solid var(--silver); }
.nav-links a { color: var(--slate); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: var(--white); }
.nav-cta:hover { background: var(--bright); color: var(--on-bright); }
.nav-toggle span { background: var(--ink); }
.dark-logo .wif-mark .w, .wif-mark .w { color: #8E8E96; }
.dark-logo .wif-mark .i, .wif-mark .i { color: var(--accent-text); }
.dark-logo .wif-mark .f, .wif-mark .f { color: var(--ink); }

/* Buttons: black by default, accent on hover */
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--bright); color: var(--on-bright); box-shadow: 0 10px 30px rgb(var(--bright-rgb) / 0.3); }
.btn-ghost { color: var(--ink); border-color: var(--silver); background: var(--white); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-outline { color: var(--ink); border-color: var(--silver); }
.btn-outline:hover { border-color: var(--ink); background: var(--white); }

/* Hero */
.hero { background: var(--white); }
.hero-grid-bg { background-image: linear-gradient(rgb(var(--ink-rgb) / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--ink-rgb) / 0.045) 1px, transparent 1px); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.hero-glow-1 { background: radial-gradient(circle, rgb(var(--bright-rgb) / 0.12) 0%, transparent 62%); }
.hero-glow-2 { background: radial-gradient(circle, rgb(var(--bright-rgb) / 0.06) 0%, transparent 65%); }
.hero-badge { background: var(--white); border-color: var(--silver); color: var(--deep); box-shadow: 0 1px 2px rgb(var(--ink-rgb) / 0.05); }
.hero-badge::before { background: var(--bright); }
.hero-h1 { color: var(--ink); }
.grad { background: var(--grad-mark); -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: var(--grad-color); padding: 0 0.06em; border-radius: 0.12em; }
.hero-sub { color: var(--slate); }
.hero-tagline { border-top-color: var(--silver); }
.hero-tagline-text { color: var(--ink); font-weight: 500; }
.hero-tagline-sub { color: var(--slate); }

/* How it works */
.steps-grid { border-color: var(--silver); background: var(--white); }
.step { border-right-color: var(--silver); }
.step:hover { background: var(--mist); }
.step-num { color: var(--silver); }
.step-desc { color: var(--slate); }

/* Our work */
.work-card { background: var(--white); border-color: var(--silver); }
.work-card:hover { background: var(--white); border-color: var(--ink); box-shadow: 0 16px 40px rgb(var(--ink-rgb) / 0.06); }
.work-shot { border-color: var(--silver); }
.work-shot:hover { border-color: var(--ink); }
.work-count { background: rgb(var(--ink-rgb) / 0.85); }
.work-tag { color: var(--accent-text); }
.work-tag::before { background: var(--bright); }
.work-desc { color: var(--slate); }
.work-result { background: var(--pale); color: var(--ink); }
.work-link { color: var(--ink); }
.work-link:hover { color: var(--accent-text); }

/* Automation flows */
.flow-pick { background: var(--white); color: var(--deep); border-color: var(--silver); }
.flow-pick:hover { border-color: var(--ink); color: var(--ink); }
.flow-pick[aria-selected="true"] { background: var(--pale); border-color: var(--bright); color: var(--ink); }
.flow-when { color: var(--accent-text); }
.flow-stage { background: var(--mist); border-color: var(--silver); }
.node { background: var(--white); border-color: var(--silver); }
.node-k { color: var(--accent-text); }
.node-v { color: var(--ink); }
.node-trigger { background: var(--pale); border-color: var(--bright); }
.node:not(:last-child)::after { background: linear-gradient(var(--bright), rgb(var(--bright-rgb) / 0.25)); }
.node-out { background: var(--ink); border-color: var(--ink); }
.node-out .node-k { color: var(--sky); }
.node-out .node-v { color: var(--white); }
.flow-more-l { color: var(--slate); }
.tag-dark { color: var(--deep); border-color: var(--silver); background: var(--white); }

/* Pricing, layers, forms: accent fills */
.pricing-card.featured { border-color: var(--ink); box-shadow: 0 20px 60px rgb(var(--ink-rgb) / 0.08); }
.pricing-badge { background: var(--bright); color: var(--on-bright); }
.billing-item { border-top-color: var(--ink); }
.layer-tab[aria-selected="true"] { border-color: var(--ink); box-shadow: 0 10px 30px rgb(var(--ink-rgb) / 0.06); }
.layer-n, .layer-tab[aria-selected="true"] .layer-n { color: var(--accent-text); }
.mock { background: var(--mist); }
.pain:hover { border-color: var(--ink); }
.pain { border-color: var(--silver); }
.calc { border-color: var(--silver); box-shadow: 0 24px 70px rgb(var(--ink-rgb) / 0.08); }
.calc-row output { color: var(--ink); }
.calc input[type=range]::-webkit-slider-thumb { border-color: var(--ink); }
.calc input[type=range]::-moz-range-thumb { border-color: var(--ink); }
.calc-out { background: var(--ink); }
.calc-stats strong { color: var(--sky); }
.cur button[aria-checked="true"] { background: var(--ink); color: var(--white); }
.ai-chat, .mock-chat { background: var(--ink); }
.chat-avatar { background: var(--bright); color: var(--on-bright); }
.f-chips label:has(input:checked) { border-color: var(--ink); color: var(--ink); }
.brief-steps .num { color: var(--ink); border-color: var(--silver); }
.brief-email a, .f-consent a, .prose a, .faq-item summary::after { color: var(--accent-text); }

/* Footer and inner pages */
.footer { background: var(--white); color: var(--ink); border-top: 1px solid var(--silver); }
.footer-brand p { color: var(--slate); }
.footer-brand .footer-tag { color: var(--ink); font-weight: 500; }
.footer-col h2 { color: var(--slate); }
.footer-col a, .footer-col span { color: var(--deep); }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom { border-top-color: var(--silver); }
.footer-bottom p { color: var(--slate); }
.page-hero { background: var(--mist); color: var(--ink); border-bottom: 1px solid var(--silver); }
.page-hero .crumbs { color: var(--slate); }
.page-hero .crumbs a, .page-hero .meta a { color: var(--accent-text); }
.page-hero .lede, .page-hero .meta { color: var(--slate); }
.cs-results { background: var(--mist); }
.cs-cta { background: var(--ink); }
.lb { background: rgb(var(--ink-rgb) / 0.97); }

@media (max-width: 900px) {
  .nav-links { background: var(--white); border-bottom-color: var(--silver); }
  .nav-links a { border-bottom-color: var(--silver); color: var(--ink); }
  .step { border-color: var(--silver); }
  .step:nth-child(-n+2) { border-bottom-color: var(--silver); }
}
@media (max-width: 600px) {
  .step { border-bottom-color: var(--silver); }
}

/* ── WIF-21 Website assistant ── */
.as-launch { position: fixed; right: 20px; bottom: 20px; z-index: 140; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 16px; border-radius: 100px; border: 0; background: var(--ink); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; cursor: pointer; box-shadow: 0 12px 34px rgb(var(--ink-rgb) / 0.28); transition: transform .2s, background .2s; }
.as-launch:hover { transform: translateY(-2px); background: var(--bright); }
.as-launch-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--bright); position: relative; }
.as-launch:hover .as-launch-dot { background: var(--white); }
.as-launch-dot::after { content: '✦'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--white); }
.as-launch:hover .as-launch-dot::after { color: var(--bright); }
.as-launch[aria-expanded="true"] { display: none; }
.as-panel { position: fixed; right: 20px; bottom: 20px; z-index: 150; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px)); background: var(--white); border: 1px solid var(--silver); border-radius: 18px; box-shadow: 0 30px 80px rgb(var(--ink-rgb) / 0.22); display: flex; flex-direction: column; overflow: hidden; animation: fadeUp .25s both; }
.as-panel[hidden] { display: none; }
.as-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--silver); }
.as-av { width: 34px; height: 34px; border-radius: 50%; background: var(--bright); color: var(--on-bright); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.as-head-t { flex: 1; min-width: 0; }
.as-name { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.as-sub { font-size: 0.72rem; color: var(--slate); }
.as-x { border: 0; background: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--slate); font-size: 1rem; }
.as-x:hover { background: var(--mist); color: var(--ink); }
.as-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--white); }
.as-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 0.9rem; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.as-msg.bot { background: var(--mist); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.as-msg.me { background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
.as-msg.note { align-self: center; background: var(--pale); color: var(--accent-text); font-size: 0.8rem; font-weight: 600; border-radius: 100px; padding: 6px 12px; }
.as-msg a { color: inherit; text-decoration: underline; }
.as-typing { display: inline-flex; gap: 4px; padding: 14px; }
.as-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--slate); animation: asDot 1.1s infinite ease-in-out; }
.as-typing span:nth-child(2) { animation-delay: .15s; } .as-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes asDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.as-chips[hidden], .as-book[hidden] { display: none; }
.as-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.as-chips button { border: 1px solid var(--silver); background: var(--white); border-radius: 100px; padding: 6px 12px; font-size: 0.8rem; cursor: pointer; color: var(--deep); }
.as-chips button:hover { border-color: var(--ink); color: var(--ink); }
.as-book { padding: 0 16px 10px; }
.as-book-btn { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 10px; background: var(--bright); color: var(--on-bright); font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.as-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--silver); }
.as-form textarea { flex: 1; resize: none; border: 1px solid var(--silver); border-radius: 12px; padding: 10px 12px; font-family: var(--font-body); font-size: 0.92rem; max-height: 120px; line-height: 1.45; }
.as-form textarea:focus { outline: none; border-color: var(--bright); box-shadow: 0 0 0 3px var(--core-dim); }
.as-form button { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--ink); color: var(--white); font-size: 1.05rem; cursor: pointer; flex-shrink: 0; }
.as-form button:hover { background: var(--bright); }
.as-form button[disabled] { opacity: .4; cursor: default; }
.as-legal { font-size: 0.68rem; color: var(--slate); padding: 0 16px 10px; }
.as-legal a { color: inherit; }
.ai-try { margin-top: 1.75rem; }
@media (max-width: 600px) {
  .as-launch { right: 14px; bottom: 14px; height: 46px; }
  .as-launch-t { display: none; }
  .as-launch { padding: 0 12px; }
  .as-panel { right: 0; bottom: 0; width: 100%; height: 100%; max-height: 100dvh; border-radius: 0; border: 0; }
}

/* ── WIF-22 Work card links ── */
.work-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.work-links .work-link { margin-top: 0; }
.work-site { color: var(--slate) !important; font-weight: 500 !important; }
.work-site:hover { color: var(--accent-text) !important; }

/* ── WIF-23 Offer banner in the hero ── */
.hero-promo { display: flex; width: fit-content; max-width: 100%; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1rem; padding: 0.4rem 0.95rem 0.4rem 0.4rem; border-radius: 100px; background: var(--ink); color: var(--white); font-family: var(--font-head); font-size: 0.88rem; font-weight: 500; text-decoration: none; box-shadow: 0 8px 24px rgb(var(--ink-rgb) / 0.18); transition: transform .2s, background .2s; }
.hero-promo:hover { background: var(--bright-hover); transform: translateY(-1px); }
.hero-promo:focus-visible { outline: 3px solid var(--bright); outline-offset: 3px; }
.hero-promo-tag { background: var(--bright); color: var(--on-bright); border-radius: 100px; padding: 0.25rem 0.7rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 480px) { .hero-promo { border-radius: 16px; gap: 0.4rem 0.6rem; padding: 0.5rem 0.9rem 0.6rem 0.5rem; font-size: 0.84rem; } }
/* Four case studies sit as a 2 by 2 grid on wide screens */
@media (min-width: 901px) { .work-grid:has(> .work-card:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
