
/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --font-head: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ground: #F4F6F9; --surface: #FFFFFF; --ink: #14213D; --text: #2B3448; --muted: #556074; --line: #D8DEE8;
  --stop: #B42335; --stop-bg: #FDEFF1; --caution: #7A5600; --caution-bg: #FFF7DD; --info: #1F5FAF; --info-bg: #EAF2FC;
  --primary: #1F4FD1; --primary-dark: #173DA6; --on-primary: #FFFFFF;
  --tint: color-mix(in srgb, var(--primary) 9%, var(--surface));
  --radius-s: 6px; --radius-m: 10px; --radius-l: 16px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-s); border: 0; font: 600 16px/1 var(--font-body); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); color: var(--on-primary); }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.photo { position: relative; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--line) 70%, var(--surface)) 0 12px, var(--surface) 12px 24px); border: 1px dashed var(--muted); border-radius: var(--radius-l); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.photo strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ---------- hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 56px; padding-top: 56px; padding-bottom: 64px; align-items: start; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; font-weight: 800; max-width: 19ch; }
.hero-lead { font-size: 19px; color: var(--text); max-width: 34em; margin: 18px 0 30px; }
.picker { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; }
.picker-sentence { font: 600 clamp(20px, 2.3vw, 25px)/1.75 var(--font-head); color: var(--ink); margin: 0; }
.picker-sentence input, .picker-sentence select { font: inherit; color: var(--primary); background: var(--surface); border: 0; border-bottom: 2px solid var(--primary); border-radius: 4px 4px 0 0; padding: 0 8px; height: 1.6em; vertical-align: baseline; max-width: 100%; }
.picker-sentence input { width: 9.5em; }
.picker-sentence input::placeholder { color: color-mix(in srgb, var(--primary) 55%, var(--surface)); }
.picker-sentence select { cursor: pointer; }
.picker-hint { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }
.result { margin-top: 20px; border-radius: var(--radius-m); padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); display: none; }
.result.show { display: block; animation: reveal .35s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .result.show { animation: none; } }
.severity { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 5px 12px; border-radius: 999px; }
.severity svg { flex-shrink: 0; }
.sev-stop { color: var(--stop); background: var(--stop-bg); }
.sev-caution { color: var(--caution); background: var(--caution-bg); }
.sev-info { color: var(--info); background: var(--info-bg); }
.result h3, .result .result-title { font: 700 22px/1.25 var(--font-head); color: var(--ink); margin: 12px 0 6px; }
.result p { margin: 0 0 12px; }
.result ul { margin: 0 0 16px; padding-left: 20px; }
.result li { margin: 4px 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.result-actions small { color: var(--muted); font-size: 14px; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side .photo { aspect-ratio: 4 / 5; }
.reviewer { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--text); }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--line) 70%, var(--surface)) 0 5px, var(--surface) 5px 10px); border: 1px dashed var(--muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; } .hero-side .photo { aspect-ratio: 16 / 9; } }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 800; max-width: 22ch; }
.section-intro { color: var(--muted); font-size: 18px; max-width: 36em; margin: 12px 0 0; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--tint); color: var(--primary); display: grid; place-items: center; font: 800 19px/1 var(--font-head); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 56px; right: -26px; height: 2px; background: var(--line); }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps li::after { display: none; } }

.promise { background: var(--surface); }
.promise .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.promise .photo { aspect-ratio: 4 / 5; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
.lists h3 { font-size: 18px; margin-bottom: 10px; }
.lists ul { list-style: none; margin: 0; padding: 0; }
.lists li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lists li svg { margin-top: 4px; flex-shrink: 0; }
@media (max-width: 900px) { .promise .wrap, .lists { grid-template-columns: 1fr; gap: 28px; } .promise .photo { aspect-ratio: 16 / 9; } }

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.team .photo { aspect-ratio: 4 / 5; border-radius: var(--radius-m); font-size: 13.5px; }
.team p { margin: 10px 0 0; }
.team .name { font-weight: 700; color: var(--ink); }
.team .role { color: var(--muted); font-size: 15px; margin-top: 2px; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.guides { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; margin-top: 36px; }
.guide-feature { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; }
.guide-feature .photo { aspect-ratio: 16 / 9; }
.guide-feature h3 { font-size: 26px; line-height: 1.2; }
.guide-feature p { margin: 0; color: var(--muted); }
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.guide-list a:first-child { padding-top: 0; }
.guide-list .t { display: block; color: var(--ink); font: 700 19px/1.35 var(--font-head); }
.guide-list .m { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.guide-list a:hover .t { color: var(--primary); }
@media (max-width: 900px) { .guides { grid-template-columns: 1fr; } }

.faq .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 700 18.5px/1.4 var(--font-head); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; }
@media (max-width: 900px) { .faq .wrap { grid-template-columns: 1fr; gap: 20px; } }

.closing { background: var(--primary); color: var(--on-primary); }
.closing .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.closing h2 { color: var(--on-primary); font-size: clamp(26px, 3vw, 36px); max-width: 24ch; }
.closing .btn { background: #fff; color: var(--primary-dark); }
.closing .btn:hover { background: #EEF2FF; }

footer { background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
footer .wrap { padding-top: 44px; padding-bottom: 36px; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
footer h3 { font-size: 15px; margin-bottom: 10px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 6px 0; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { color: var(--primary); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13.5px; }
@media (max-width: 800px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > div:first-child { grid-column: 1 / -1; } }

/* ---------- mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .mobile-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar .btn { width: 100%; }
  body { padding-bottom: 76px; }
}

/* ---------- assessment dialog ---------- */
dialog.assess { width: min(560px, 100vw); max-height: min(92vh, 860px); padding: 0; border: 0; border-radius: var(--radius-l); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(9, 17, 33, .35); }
dialog.assess::backdrop { background: rgba(10, 18, 34, .55); }
@media (max-width: 600px) { dialog.assess { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; border-radius: 0; } }
.assess-inner { display: flex; flex-direction: column; height: 100%; max-height: inherit; }
.assess-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.assess-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.assess-top p { margin: 0; font-weight: 600; color: var(--muted); font-size: 15px; }
.close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress span { height: 5px; border-radius: 999px; background: var(--line); transition: background .2s; }
.progress span.on { background: var(--primary); }
.assess-body { padding: 22px 24px; overflow-y: auto; flex: 1; }
.assess-body h2 { font-size: 26px; line-height: 1.15; margin-bottom: 16px; }
.js .step { display: none; }
.js .step.active { display: block; }
/* 1.5.1: without JavaScript every section shows at once and the form posts normally */
.no-js .step.done, .no-js .progress, .no-js .assess-foot, .no-js .switch-quick, .no-js .step-label { display: none; }
.no-js .step + .step { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
fieldset { border: 0; margin: 0 0 20px; padding: 0; }
legend { font-weight: 600; color: var(--ink); margin-bottom: 10px; padding: 0; }
.choices { display: grid; gap: 8px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choices.three { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; background: var(--surface); }
.choice:hover { border-color: var(--muted); }
.choice input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--tint); font-weight: 600; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-weight: 600; color: var(--ink); }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select { height: 50px; border: 1px solid color-mix(in srgb, var(--muted) 60%, var(--line)); border-radius: var(--radius-s); padding: 0 14px; font: 400 16px var(--font-body); background: var(--surface); color: var(--text); }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.phone-row { display: flex; gap: 8px; }
.phone-row span { height: 50px; display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--muted); font-weight: 500; }
.phone-row input { flex: 1; }
.error { color: var(--stop); font-size: 14.5px; font-weight: 600; margin: -6px 0 14px; display: none; }
.error.show { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
.specialist { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--ground); border-radius: var(--radius-m); margin-bottom: 18px; font-size: 15px; }
.assess-foot { padding: 14px 24px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.assess-foot .btn-primary { flex: 1; }
.assess-foot .note { width: 100%; }
.reassure { margin: 0; padding: 0 24px 16px; font-size: 13.5px; color: var(--muted); text-align: center; }
.done { text-align: left; }
.done-icon { width: 54px; height: 54px; border-radius: 50%; background: color-mix(in srgb, #13795B 14%, var(--surface)); display: grid; place-items: center; margin-bottom: 14px; }
.done ol { padding-left: 20px; margin: 12px 0 18px; }
.done li { margin: 6px 0; }
.recognise { background: var(--info-bg); border-radius: var(--radius-m); padding: 14px 16px; font-size: 15px; }
.recognise strong { color: var(--ink); }


/* =====================================================================
   V Tech Fin theme additions (site-wide)
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-s); }
.skip:focus { top: 12px; color: #fff; }
.muted { font-weight: 400; color: var(--muted); }

/* ---------- header & navigation ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); display: grid; place-items: center; color: #fff; font: 800 18px/1 var(--font-head); }
.brand-name { font: 800 21px/1 var(--font-head); letter-spacing: -0.02em; }
.brand-name span { font-weight: 600; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; background: none; border-radius: var(--radius-s); color: var(--text); font: 500 15.5px/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.nav-link:hover, .has-sub.open > .nav-link { color: var(--primary); background: var(--tint); }
.nav-link[aria-current="page"] { color: var(--primary); }
.has-sub svg { transition: transform .15s; }
.has-sub.open svg { transform: rotate(180deg); }
.sub { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: 0 18px 44px rgba(20, 33, 61, .14); z-index: 60; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.sub a { display: block; padding: 10px 12px; border-radius: var(--radius-s); text-decoration: none; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--tint); }
.sub .t { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.sub .d { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
@media (min-width: 1001px) { .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: block; } }
.nav-phone { color: var(--muted); font-size: 14.5px; white-space: nowrap; text-decoration: none; }
.nav-phone:hover { color: var(--primary); }
.nav-cta { min-height: 44px; font-size: 15px; white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }
@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .nav { display: none; position: fixed; left: 0; right: 0; top: var(--hh, 73px); bottom: 0; background: var(--surface); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; border-top: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 18px; font-weight: 600; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-link:hover, .has-sub.open > .nav-link { background: none; }
  .sub { position: static; box-shadow: none; border: 0; padding: 4px 0 10px; min-width: 0; }
  .has-sub.open > .sub { display: block; }
  .nav-phone { padding: 18px 4px; font-size: 16px; }
  .nav-cta { margin-top: 8px; min-height: 52px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- avatar with a real photo ---------- */
.avatar { overflow: hidden; display: inline-block; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar:not(.avatar--empty) { background: none; border: 0; }

/* ---------- footer (theme markup) ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-footer .wrap { padding-top: 44px; padding-bottom: 36px; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.site-footer h2 { font-size: 15px; margin-bottom: 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.footer-about p { margin: 14px 0 0; line-height: 1.6; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13.5px; }
.site-footer .legal p { margin: 0 0 6px; }
.legal-links a { margin-left: 16px; }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- assessment form: shared by dialog and inline ---------- */
.mobile-bar .btn { width: 100%; }
.assess-inner .error:empty { display: none; }
.assess-inner .error:not(:empty) { display: block; }
.assess-inner .form-error { margin: 0 0 14px; }
.assess-inner textarea { border: 1px solid color-mix(in srgb, var(--muted) 60%, var(--line)); border-radius: var(--radius-s); padding: 12px 14px; font: 400 16px/1.5 var(--font-body); background: var(--surface); color: var(--text); resize: vertical; }
.assess-inner textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.done-icon { color: #13795B; }
.assess--inline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); max-width: 620px; box-shadow: 0 18px 40px rgba(20, 33, 61, .08); margin: 1.6em 0; }
.assess--inline .assess-body { overflow: visible; }
.assess-inner.is-sending [data-next] { opacity: .7; pointer-events: none; }
.choices.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .choices.two, .choices.three { grid-template-columns: 1fr; } }

/* ---------- thank-you page ---------- */
.thanks { max-width: 640px; padding: 56px 0 88px; }
.thanks h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin: 0 0 12px; }

/* ---------- small grid for the CMS page templates (replaces Bootstrap) ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-fluid { width: 100%; padding: 0 24px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -14px; }
.row > [class*="col-"] { padding: 0 14px; width: 100%; }
@media (min-width: 768px) { .col-md-3 { flex: 0 0 25%; max-width: 25%; } .col-md-6 { flex: 0 0 50%; max-width: 50%; } .col-md-9 { flex: 0 0 75%; max-width: 75%; } }
@media (min-width: 992px) { .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; } .col-lg-9 { flex: 0 0 75%; max-width: 75%; } .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; } .col-lg-12 { flex: 0 0 100%; max-width: 100%; } }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.pt-0 { padding-top: 0 !important; } .pt-4 { padding-top: 24px; } .pt-5 { padding-top: 40px; } .pb-4 { padding-bottom: 24px; } .mb-4 { margin-bottom: 24px; }
.img-fluid { max-width: 100%; height: auto; }

/* ---------- content blocks (assets/cms/blog.css) in V Tech Fin colours and type ---------- */
:root {
  --la-navy: var(--ink); --la-teal: var(--primary); --la-teal-2: var(--primary-dark); --la-gold: var(--primary); --la-gold-2: var(--primary-dark);
  --la-text: var(--text); --la-muted: var(--muted); --la-line: var(--line); --la-soft: var(--ground);
  --la-info: var(--info); --la-warn: var(--caution); --la-danger: var(--stop); --la-ok: #13795B;
  --la-radius: var(--radius-m); --la-head: var(--font-head); --la-ui: var(--font-body);
}
.la-btn--accent, .la-btn--accent:hover { color: #fff !important; }
.la-content, .la-post { font-family: var(--font-body); color: var(--text); }
.la-content h2, .la-content h3, .la-content h4 { font-family: var(--font-head); color: var(--ink); letter-spacing: -0.015em; }
/* page and post title bands: light, not the old dark banner */
.la-hero { background: var(--surface); color: var(--ink); padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.la-hero .la-post-title, .la-hero h1 { color: var(--ink); font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; }
.la-hero__meta, .la-hero__lead { color: var(--muted); }
.la-hero__meta a { color: var(--text); }
.la-hero__cat { color: var(--primary); font-weight: 600; text-decoration: none; }
.la-hero--image { color: #fff; }
.la-hero--image .la-post-title, .la-hero--image h1, .la-hero--image .la-hero__lead { color: #fff; }
.banner-page { background: var(--surface); border-bottom: 1px solid var(--line); padding: 48px 24px 32px; text-align: left; }
.banner-page .banner-txt { max-width: 1132px; margin: 0 auto; font: 800 clamp(30px, 4vw, 44px)/1.1 var(--font-head); color: var(--ink); letter-spacing: -0.02em; }
.la-banner__sub { color: var(--muted); max-width: 1132px; margin: 8px auto 0; }
.blogss { padding-bottom: 72px; }
.la-page-wrap--nohero { padding-top: 32px; }
.la-section--navy, .la-section--image { background-color: var(--ink); }
.la-sidebar { position: relative; }
.side-assess { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; margin-bottom: 24px; }
.side-assess h2 { font-size: 20px; line-height: 1.2; margin-bottom: 6px; }
.side-assess p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.side-assess .btn { width: 100%; }
.side-list { margin-bottom: 24px; }
.side-list h2 { font-size: 16px; margin-bottom: 8px; }
.side-list ul { list-style: none; margin: 0; padding: 0; }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list a { display: block; padding: 10px 0; text-decoration: none; color: var(--text); font-size: 15px; }
.side-list a:hover { color: var(--primary); }

/* real photos in the homepage slots */
.hero-photo, .promise-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-l); display: block; }
.team-photo { display: block; }
.team-photo img, .team-photo .photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-m); display: flex; }
.team .name a { color: var(--ink); text-decoration: none; }
.team .name a:hover { color: var(--primary); }
.guide-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-l); display: block; }
@media (max-width: 900px) { .hero-photo, .promise-photo { aspect-ratio: 16 / 9; } }
.assess--inline { scroll-margin-top: calc(var(--hh, 73px) + 16px); }

/* [contact-details] block */
.la-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 1.6em 0; }
.la-contact__item { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; }
.la-contact__item > i { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--tint); color: var(--primary); display: grid; place-items: center; font-size: 17px; }
.la-contact__item p { margin: 0; }
.la-contact__label { font-weight: 700; color: var(--ink); }
.la-contact__note { color: var(--muted); font-size: 14.5px; }
.la-content .recognise { margin: 1.6em 0; }

/* ---------- 1.2: what we help with ---------- */
.help { background: var(--surface); }
.help-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.help-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-l); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.help-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 33, 61, .08); color: var(--text); }
.help-card .severity { align-self: flex-start; font-size: 13px; padding: 4px 10px; }
.help-card__t { font: 700 19px/1.3 var(--font-head); color: var(--ink); letter-spacing: -0.01em; }
.help-card__d { color: var(--muted); font-size: 15.5px; flex: 1; }
.help-card__more { color: var(--primary); font-weight: 600; font-size: 15px; }
.help-other { margin: 22px 0 0; color: var(--muted); }
@media (max-width: 1000px) { .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .help-grid { grid-template-columns: 1fr; } }

/* ---------- 1.2: who we are facts ---------- */
.facts-strip { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: flex-end; margin: 24px 0 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-strip dt { font-size: 14px; color: var(--muted); }
.facts-strip dd { margin: 2px 0 0; font: 700 18px/1.3 var(--font-head); color: var(--ink); }
.facts-link { margin-left: auto; }
.facts-link a { font-weight: 600; }

/* ---------- 1.2: customer stories ---------- */
.stories { background: var(--surface); }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.story { margin: 0; padding: 26px; background: var(--ground); border-radius: var(--radius-l); display: flex; flex-direction: column; gap: 16px; }
.story blockquote { margin: 0; }
.story blockquote p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink); }
.story blockquote p::before { content: "“"; } .story blockquote p::after { content: "”"; }
.story figcaption { font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.story figcaption strong { color: var(--ink); }

/* ---------- 1.3: one-step call-back form ---------- */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn:hover { color: var(--primary-dark); }
.switch-quick { padding-top: 0; }
dialog.quick { width: min(480px, 100vw); }
.quick-inner { display: flex; flex-direction: column; max-height: inherit; }
.quick-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 12px; border-bottom: 1px solid var(--line); }
.quick-head h2 { font-size: 24px; }
.quick-body, .quick-done { padding: 18px 24px 22px; overflow-y: auto; }
.quick-lead { margin: 0 0 16px; color: var(--muted); }
.quick-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.quick-send { width: 100%; margin-top: 14px; min-height: 52px; }
.quick .reassure { padding: 10px 0 0; }
.quick-done .recognise { margin: 14px 0 18px; }
.quick-done .btn { width: 100%; }
@media (max-width: 520px) { .quick-two { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .mobile-bar .btn { width: auto; }
  .mobile-bar .btn-quiet { padding: 0 14px; background: var(--surface); }
}
.mobile-bar .btn-quiet svg { flex-shrink: 0; }

/* ---------- 1.3.1: clearer advice after picking a situation ---------- */
.picker.has-result .picker-hint { display: none; }
.result { scroll-margin-top: calc(var(--hh, 73px) + 12px); }
.result-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 4px; }
.result-actions .btn { width: 100%; }
.result-alt { margin: 0 !important; text-align: center; font-size: 15px; color: var(--muted); }
.mobile-bar { transition: transform .2s ease; }
body.advice-in-view .mobile-bar { transform: translateY(110%); }
@media (min-width: 701px) { .result-actions .btn { width: auto; align-self: flex-start; } .result-alt { text-align: left; } }
@media (max-width: 700px) {
  .picker { padding: 18px 16px; }
  .picker-sentence { font-size: 20px; line-height: 1.6; }
  .picker-sentence input, .picker-sentence select { display: block; width: 100%; margin: 6px 0; height: 2em; }
  .picker-sentence select { text-overflow: ellipsis; }
  .picker-dot { display: none; }
  .result { padding: 18px 16px; margin-top: 16px; }
  .result h3, .result .result-title { font-size: 20px; }
  .result ul { padding-left: 18px; }
}
@media (max-width: 700px) {
  .picker-sentence select { font-size: 17px; padding: 0 6px; }
  .picker-comma { display: none; }
  .picker-but { font-size: 16px; color: var(--muted); font-weight: 600; }
}

/* 1.4.4: four step cards sit in a balanced 2 × 2 grid instead of 3 + 1 */
.la-steps--cards .la-steps__list:has(> .la-step:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .la-steps--cards .la-steps__list:has(> .la-step:nth-child(4):last-child) { grid-template-columns: 1fr; } }

/* 1.5: logo image in the header and footer */
.brand-logo { display: block; height: 40px; width: auto; }
.site-footer .brand-logo { height: 34px; }
@media (max-width: 700px) { .brand-logo { height: 32px; } }

/* 1.5.1: no editor placeholders for visitors */
.hero-card { background: var(--tint); border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line)); border-radius: var(--radius-l); padding: 26px 26px 22px; }
.hero-card__title { font: 700 18px/1.3 var(--font-head); color: var(--ink); margin: 0 0 14px; }
.hero-card__steps { margin: 0; padding: 0; list-style: none; counter-reset: hc; display: grid; gap: 14px; }
.hero-card__steps li { counter-increment: hc; position: relative; padding-left: 42px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.hero-card__steps li::before { content: counter(hc); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 14px/28px var(--font-head); text-align: center; }
.hero-card__steps strong { display: block; color: var(--ink); }
.promise--nophoto .wrap { grid-template-columns: 1fr; }
.promise--nophoto .wrap > div { max-width: 900px; }
.team-initial { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: var(--radius-m); background: var(--tint); color: var(--primary); font: 800 44px/1 var(--font-head); }
.guide-fallback { aspect-ratio: 16 / 9; border-radius: var(--radius-l); background: linear-gradient(135deg, var(--primary), #14213D); display: flex; align-items: flex-end; padding: 22px; }
.guide-fallback span { color: #fff; font: 700 20px/1.3 var(--font-head); max-width: 90%; }
.la-related-guides .la-pagelist li { margin-bottom: 12px; }
.la-related-guides .la-pagelist a { font-weight: 700; }
.la-related-guides__ex { color: var(--muted); font-size: 15px; }

/* 1.5.4: accessibility */
main:focus { outline: none; }
[aria-invalid="true"] { border-color: var(--stop) !important; }
@media (prefers-reduced-motion: reduce) {
  .help-card, .mobile-bar, .progress span, .btn { transition: none !important; }
  .help-card:hover { transform: none !important; }
}

/* 1.5.6: reviewer trust badge + avatars without a photo */
.avatar.avatar--initial, .avatar.avatar--icon { display: grid; place-items: center; background: var(--primary); border: 0; color: #fff; font: 700 19px/1 var(--font-head); }
.avatar.avatar--icon { background: var(--tint); color: var(--primary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 22%, transparent); }
.hero-side .reviewer { align-self: flex-start; padding: 8px 18px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 4px 14px rgba(20, 33, 61, .06); font-weight: 600; color: var(--ink); line-height: 1.35; }
.hero-side .reviewer strong { font-weight: 700; }
.hero-side .reviewer .avatar { width: 44px; height: 44px; }

/* 1.5.6: exit-intent pop-up */
.exit .quick-head { border-bottom: 0; padding-bottom: 4px; }
.exit .quick-head h2 { font-size: 26px; line-height: 1.2; }
.exit .quick-lead { color: var(--text); font-size: 16.5px; }
.exit-points { list-style: none; margin: 0 0 18px; padding: 12px 14px; display: grid; gap: 6px; background: var(--tint); border-radius: var(--radius-m); font-size: 15px; color: var(--ink); }
.exit-points li { position: relative; padding-left: 26px; }
.exit-points li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 8px; border-left: 2.5px solid #13795B; border-bottom: 2.5px solid #13795B; transform: rotate(-45deg); }
.exit-alt { margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  dialog.exit[open]:modal { animation: exit-in .25s ease-out; }
  @keyframes exit-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

.quick-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
.quick-two .field, .quick-two input { min-width: 0; }
.phone-row { min-width: 0; }
.phone-row input { min-width: 0; width: 100%; }
@media (max-width: 520px) { .quick-two { grid-template-columns: 1fr !important; } }

/* 1.5.7: phone and email line up (labels on one line, inputs the same height) */
.quick-two { align-items: start; }
.quick-two .field small { display: inline; margin-left: 2px; }
.quick-two .field > input, .quick-two .phone-row input, .quick-two .phone-row span { height: 50px; box-sizing: border-box; }

/* ---------- guide cards (blog, category, tag and author lists) — 1.5.11 ---------- */
.la-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: 0 1px 2px rgba(20, 33, 61, .04); transition: box-shadow .2s, border-color .2s, transform .2s; }
.la-card:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); box-shadow: 0 10px 28px rgba(20, 33, 61, .10); transform: translateY(-2px); }
.la-card { height: 100%; overflow: hidden; }
.la-card__link, .la-card__link:hover { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.la-card__link * { text-decoration: none; }
.la-card__media .la-card__placeholder { width: 100%; height: 100%; }
.la-card__media:has(.la-card__placeholder) { aspect-ratio: 3 / 1; }
.la-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.la-card__link:hover .la-card__img { transform: scale(1.03); }
.la-card__media { aspect-ratio: 16 / 9; background: var(--tint); }
.la-card__placeholder { display: flex; align-items: center; justify-content: center; min-height: 0; color: color-mix(in srgb, var(--primary) 55%, var(--surface));
  background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--primary) 16%, var(--surface)) 0, transparent 60%), linear-gradient(135deg, var(--tint), color-mix(in srgb, var(--primary) 6%, var(--ground))); }
.la-card .blog-caption { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 22px; }
.la-card__cat { font: 700 12.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.la-card .la-card__title { font: 700 20px/1.3 var(--font-head) !important; color: var(--ink); margin: 0; letter-spacing: -0.015em; }
.la-card__sum { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.la-card__more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; color: var(--primary); }
.la-card__link:hover .la-card__more { color: var(--primary-dark); }
.la-card__link:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-l); }
@media (prefers-reduced-motion: reduce) { .la-card, .la-card__img { transition: none; } .la-card:hover { transform: none; } }

/* ---------- "Keep reading" and related-guide lists — 1.5.12 ---------- */
.la-more { margin: 48px 0 12px; padding-top: 32px; border-top: 1px solid var(--line); clear: both; }
.la-more__title { font: 800 24px/1.25 var(--font-head); color: var(--ink); margin: 0 0 18px; letter-spacing: -0.015em; }
.la-more__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.la-more__item { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; color: var(--text); text-decoration: none; transition: box-shadow .2s, border-color .2s, transform .2s; }
.la-more__item:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); box-shadow: 0 8px 22px rgba(20, 33, 61, .09); transform: translateY(-2px); color: var(--text); }
.la-more__item:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.la-more__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.la-more__media img, .la-more__media .la-card__placeholder { display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; aspect-ratio: auto; }
.la-more__media .la-card__placeholder { display: flex; }
.la-more__media .la-card__placeholder svg { width: 30px; height: 30px; }
.la-more__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
.la-more__cat { font: 700 11.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.la-more__name { font: 700 16.5px/1.35 var(--font-head); color: var(--ink); }
.la-more__item:hover .la-more__name { color: var(--ink); text-decoration: none; }
.la-more__go { margin-top: auto; padding-top: 4px; font-weight: 600; font-size: 14.5px; color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .la-more__item { transition: none; } .la-more__item:hover { transform: none; } }
@media (max-width: 600px) {
  .la-more__grid { grid-template-columns: 1fr; gap: 12px; }
  .la-more__item { flex-direction: row; align-items: stretch; }
  .la-more__media { flex: 0 0 104px; aspect-ratio: auto; min-height: 96px; }
  .la-more__body { padding: 12px 14px; gap: 4px; }
  .la-more__name { font-size: 16px; }
  .la-more__go { display: none; }
}

/* ---------- tables on phones: tables stack as labelled cards — 1.5.13 ---------- */
@media (max-width: 600px) {
  .la-table--stack { overflow: visible; border: 0; background: transparent; }
  .la-content .la-table--stack table { min-width: 0; display: block; }
  .la-content .la-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .la-content .la-table--stack tbody, .la-content .la-table--stack tr { display: block; }
  .la-content .la-table--stack tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); margin: 0 0 12px; padding: 4px 0; }
  .la-content .la-table--stack tbody tr:nth-child(even) td { background: transparent; }
  .la-content .la-table--stack td { display: block; border: 0; padding: 8px 14px; }
  .la-content .la-table--stack td + td { border-top: 1px solid var(--line); }
  .la-content .la-table--stack td:first-child { font-weight: 700; color: var(--ink); font-family: var(--font-head); font-size: 16.5px; }
  .la-content .la-table--stack td:not(:first-child)::before { content: attr(data-label); display: block; font: 700 11.5px/1.3 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
}

/* ---------- homepage situation cards: any number — 1.6.0 ---------- */
@media (min-width: 1001px) {
  .help-grid--1, .help-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-grid--3, .help-grid--5, .help-grid--6, .help-grid--9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- stories: testimonials and case studies — 1.6.0 ---------- */
.story--case { background: var(--surface); border: 1px solid var(--line); gap: 10px; position: relative; transition: border-color .15s, box-shadow .15s; }
.stories .story--case { background: var(--ground); }
.story--case:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); box-shadow: 0 10px 26px rgba(20, 33, 61, .08); }
.story__kind { align-self: flex-start; display: inline-block; font: 700 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--tint); padding: 6px 10px; border-radius: 999px; margin: 0; }
.story__headline { margin: 0; font: 700 19px/1.35 var(--font-head); letter-spacing: -0.01em; }
.story__headline a { color: var(--ink); text-decoration: none; }
.story__headline a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card is clickable */
.story__headline a:focus-visible { outline: none; }
.story--case:focus-within { outline: 3px solid var(--primary); outline-offset: 3px; }
.story__summary { margin: 0; color: var(--text); font-size: 16px; line-height: 1.55; }
.story__meta { margin: auto 0 0; font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.story__meta strong { color: var(--ink); }
.story__more { font-weight: 600; font-size: 15px; color: var(--primary); text-decoration: none; }
.story-block { margin: 40px 0 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.story-block .story-grid { margin-top: 16px; }
.story-block .story:not(.story--case) { background: var(--surface); border: 1px solid var(--line); }
.story-note { color: var(--muted); font-size: 14.5px; margin: 16px 0 0; }
.stories-all { margin: 24px 0 0; font-weight: 600; }

/* /stories/ */
.stories-page { padding: 48px 0 64px; }
.stories-page h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin: 0 0 12px; }
.stories-page h2 { font-size: 24px; margin: 40px 0 0; }
.stories-page .story-grid { margin-top: 18px; }
.stories-page .story:not(.story--case) { background: var(--surface); border: 1px solid var(--line); }
.story-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.story-filter a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; }
.story-filter a:hover { border-color: var(--primary); }
.story-filter a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* /stories/{slug}/ */
.case { padding: 40px 0 64px; }
.case__wrap { max-width: 780px; }
.case__crumbs { font-size: 14.5px; color: var(--muted); margin: 0 0 20px; }
.case__crumbs a { color: var(--muted); }
.case__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.2; margin: 14px 0 14px; }
.case__lead { font-size: 19px; line-height: 1.6; color: var(--text); margin: 0 0 24px; }
.case__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 32px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.case__facts div { min-width: 0; }
.case__facts dt { font: 700 12px/1.3 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.case__facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.case__body h2 { font-size: 24px; margin: 32px 0 10px; }
.case__body p { margin: 0 0 14px; line-height: 1.7; }
.case__quote { margin: 28px 0; padding: 22px 26px; background: var(--surface); border-left: 4px solid var(--primary); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.case__quote blockquote { margin: 0; }
.case__quote p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink); }
.case__quote p::before { content: "“"; } .case__quote p::after { content: "”"; }
.case__quote figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; }
.case__note { font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }
.case__cta { margin: 36px 0 0; padding: 28px; background: var(--ink); color: #fff; border-radius: var(--radius-l); }
.case__cta h2 { color: #fff; font-size: 24px; margin: 0 0 8px; }
.case__cta p { margin: 0 0 18px; color: color-mix(in srgb, #fff 82%, var(--ink)); }
.case__more h2 { font-size: 22px; margin: 44px 0 0; }
.case__more .story-grid { margin-top: 16px; }
@media (max-width: 600px) { .case__cta { padding: 22px; } .case__facts { gap: 10px 24px; } }
.story-block .story-grid, .stories-page .story-grid, .case__more .story-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

/* ---------- website chat — 1.7.0 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 40; font-family: var(--font-body); }
.chat-launch { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 15.5px/1 var(--font-body); cursor: pointer; box-shadow: 0 10px 28px rgba(20, 33, 61, .28); transition: transform .15s, background .15s; }
.chat-launch:hover { background: var(--primary); transform: translateY(-1px); }
.chat.is-open .chat-launch { display: none; }
.chat-panel { position: absolute; right: 0; bottom: 0; width: 380px; max-width: calc(100vw - 32px); height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: 0 24px 60px rgba(20, 33, 61, .25); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--ink); color: #fff; }
.chat-title { margin: 0; font: 700 17px/1.3 var(--font-head); color: #fff; }
.chat-sub { margin: 3px 0 0; font-size: 13.5px; color: color-mix(in srgb, #fff 78%, var(--ink)); }
.chat-close { flex-shrink: 0; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-close:hover { background: rgba(255, 255, 255, .12); }
.chat-gate { padding: 16px 18px; overflow-y: auto; flex: 1; }
.chat-gate[hidden], .chat-log[hidden], .chat-input[hidden], .chat-chips[hidden] { display: none; }
.chat-intro { margin: 0 0 12px; font-size: 15px; color: var(--text); }
.chat-gate .field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.chat-gate .field small { font-weight: 400; color: var(--muted); }
.chat-gate input[type="text"], .chat-gate input[type="tel"], .chat-gate input[type="email"] { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-s); font: 400 16px var(--font-body); width: 100%; box-sizing: border-box; }
.chat-gate .phone-row { display: flex; align-items: stretch; }
.chat-gate .phone-row > span { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius-s) 0 0 var(--radius-s); background: var(--ground); font-weight: 600; }
.chat-gate .phone-row input { border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.chat-gate .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--text); margin: 6px 0 4px; }
.chat-gate .consent input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; }
.chat-gate .error { color: var(--stop); font-size: 13.5px; }
.chat-gate .error:empty { display: none; }
.chat-start { width: 100%; margin-top: 10px; }
.chat-gate .reassure { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--ground); display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.chat-msg p { margin: 0; white-space: pre-line; }
.chat-msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text); }
.chat-msg--user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.chat-links a { display: inline-block; font-weight: 600; font-size: 14px; color: var(--primary); text-decoration: none; }
.chat-links a::before { content: "→ "; }
.chat-links a:hover { text-decoration: underline; }
.chat-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chatdot 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; } .chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; background: var(--ground); border-top: 1px solid var(--line); max-height: 130px; overflow-y: auto; }
.chat-chip { border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--line)); background: var(--surface); color: var(--primary); border-radius: 999px; padding: 7px 12px; font: 600 13.5px/1.2 var(--font-body); cursor: pointer; text-align: left; }
.chat-chip:hover { background: var(--tint); }
.chat-input { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-m); font: 400 16px/1.4 var(--font-body); box-sizing: border-box; }
.chat-input textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.chat-send { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: var(--radius-m); background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-send:hover { background: var(--primary-dark); }
.chat-foot { margin: 0; padding: 6px 14px 10px; font-size: 12px; color: var(--muted); background: var(--surface); text-align: center; }
.chat:not(.is-started) .chat-foot { border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 700px) {
  .chat { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .chat-launch { width: 52px; padding: 0; justify-content: center; }
  .chat-launch__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chat.is-open { inset: 0; right: 0; bottom: 0; z-index: 1000; }
  .chat-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  body.chat-open { overflow: hidden; }
  body.chat-open .mobile-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; } .chat-launch { transition: none; } }
@media print { .chat { display: none !important; } }
.chat-status { color: var(--stop); font-size: 14px; line-height: 1.45; margin: 8px 0 0; }
.chat-status:empty { display: none; }
.chat-status .link-btn { color: var(--primary); font-weight: 600; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.chat-status small { color: var(--muted); }

/* ---------- 1.7.3: pictures keep their frame whatever shape is uploaded ---------- */
/* An <img> carries its own pixel height; without height:auto that height wins over aspect-ratio and tall pictures overflow. */
.guide-img, .team-photo img { height: auto !important; max-width: 100%; }
.guide-feature { min-width: 0; }
.guide-img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
/* 1.7.4: ending a chat */
.chat-head__btns { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.chat-end { border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; border-radius: 8px; padding: 6px 10px; font: 600 13px/1 var(--font-body); cursor: pointer; }
.chat-end:hover { background: rgba(255, 255, 255, .12); }
.chat-end[hidden], .chat-ended[hidden] { display: none; }
.chat-ended { padding: 14px 16px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-ended__t { margin: 0 0 12px; font-size: 14.5px; color: var(--text); }
.chat-ended .chat-restart { width: 100%; }

/* ---------- 1.7.7: problem tiles and guide tiles at the end of pages and guides ---------- */
.related-block { margin: 44px 0 8px; padding-top: 28px; border-top: 1px solid var(--line); clear: both; }
.related-block__title { font: 800 22px/1.25 var(--font-head) !important; color: var(--ink); margin: 0 0 16px !important; letter-spacing: -0.015em; }
.problem-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.la-content .problem-tile, .problem-tile { text-decoration: none; background: var(--surface); padding: 18px; gap: 8px; }
.problem-tile .help-card__t { font-size: 17px; }
.problem-tile .help-card__d { font-size: 15px; }
.problem-tile .help-card__more { font-size: 14.5px; }
.related-block__back { margin: 16px 0 0; }
.related-block__back a { font-weight: 600; text-decoration: none; color: var(--primary); }
.related-block__back a:hover { text-decoration: underline; }
.related-block + .related-block { margin-top: 28px; }
.related-block--guides.la-more { margin-top: 44px; }

/* 1.7.8: buttons placed in the same paragraph sit side by side (and wrap on phones); the assessment form is centred inside a section */
.la-section__inner p:has(> .la-btn) { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.la-section--center .la-section__inner p:has(> .la-btn) { justify-content: center; }
@media (max-width: 520px) { .la-section__inner p:has(> .la-btn) > .la-btn { flex: 1 1 100%; justify-content: center; text-align: center; } }
.la-section .assess--inline { margin-left: auto; margin-right: auto; }
#start .la-section__title + p { max-width: 620px; margin: -4px auto 0; text-align: center; color: var(--muted); }
.assess-foot [hidden], .la-btn[hidden], .btn[hidden] { display: none !important; }

/* 1.7.9: Team block — cards keep a sensible width with one or two people, centred */
.la-team { display: flex !important; flex-wrap: wrap; justify-content: center; }
.la-team__card { flex: 0 1 300px; min-width: 240px; }
.la-team__links a { color: var(--primary) !important; font-weight: 600; }
@media (max-width: 560px) { .la-team__card { flex-basis: 100%; } }
