/* KD Squares site stylesheet.
   One file. Everything above the "critical-end" marker is inlined in every page head.
   Everything below it is loaded without blocking render.
   Tokens come from the KD Squares Brand Style Guide as shown in the sample. */

/* ---------- Fonts (self hosted) ---------- */
@font-face { font-family: 'Cabin'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/cabin-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cabin'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/cabin-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Metric matched fallbacks so the swap does not shift layout. */
@font-face { font-family: 'Cabin Fallback'; src: local('Arial'); size-adjust: 93%; ascent-override: 100%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: 'JetBrains Mono Fallback'; src: local('Courier New'); size-adjust: 99%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  --blue-950: #001d2a; --blue-900: #002d3f; --blue-800: #003d55; --blue-700: #00506e; --blue-600: #006994;
  --blue-500: #1a82b0; --blue-400: #489fc7; --blue-300: #7cbcd9; --blue-200: #aed8e8; --blue-100: #d6ecf4; --blue-50: #ecf6fa;
  --cyan-700: #00a6b8; --cyan-600: #00c7dd; --cyan-500: #00ecff;
  --gold-700: #a97f2f; --gold-600: #c29740; --gold-500: #d6ac50; --gold-400: #e0bd72; --gold-50: #fbf6e8;
  --ink-950: #06121a; --ink-900: #0c1a21; --ink-800: #14262f; --ink-700: #22333c; --ink-600: #3a4b54;
  --gray-500: #5c6b73; --gray-400: #7d8b92; --gray-300: #a7b2b8; --gray-200: #cdd5d9; --gray-100: #e6ebee; --gray-50: #f2f5f6;
  --paper: #f7f9fa; --white: #ffffff;
  --green-600: #1f9d6b; --green-500: #27b57c; --red-600: #c93636;
  --border-subtle: var(--gray-100); --border-default: var(--gray-200); --border-strong: var(--gray-300); --border-brand: var(--blue-600);
  --font-sans: 'Cabin', 'Cabin Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius-xs: 3px; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px;
  --shadow-xs: 0 1px 2px rgba(12, 26, 33, 0.06);
  --shadow-md: 0 4px 12px rgba(12, 26, 33, 0.08), 0 2px 4px rgba(12, 26, 33, 0.05);
  --shadow-lg: 0 12px 28px rgba(12, 26, 33, 0.12), 0 4px 8px rgba(12, 26, 33, 0.06);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1); --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ring: 0 0 0 3px color-mix(in srgb, var(--cyan-500) 55%, transparent);
  --brand-primary: var(--blue-600); --on-gold: #06121a; --tag-ok-text: #137049; --alert-bg: #fdf3f3; --skip-bg: #0c1a21;
}
/* Dark theme: token overrides from the sample, plus a few AA safe adjustments. Switched by the header toggle. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #08141b; --white: #0e1d25; --gray-50: #13252f; --gray-100: #1a2f3a; --gray-200: #25404d; --gray-300: #3b5765; --gray-400: #7d939d; --gray-500: #97aab3;
  --ink-600: #b4c3ca; --ink-700: #c8d4d9; --ink-800: #dce5e9; --ink-900: #eef3f5; --ink-950: #f8fafb;
  --blue-50: #0d2d3c; --blue-200: #1f4d63; --blue-600: #3a9ccc; --blue-700: #7cbcd9; --gold-700: #e0bd72; --green-600: #3fcf93; --red-600: #ff8f8f;
  --brand-primary: #1878a2; --tag-ok-text: var(--green-600); --alert-bg: #2a1517; --skip-bg: #eef3f5;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.65; font-weight: 400; color: var(--ink-700); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--ink-900); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--blue-600); text-decoration: none; transition: color 120ms var(--ease-standard); }
a:hover { color: var(--blue-700); }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: color-mix(in srgb, var(--cyan-500) 40%, transparent); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--blue-800); outline-offset: 2px; box-shadow: var(--ring); border-radius: var(--radius-xs); }
.on-dark :focus-visible, :root[data-theme="dark"] :focus-visible { outline-color: var(--cyan-500); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--skip-bg); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 8px; color: var(--paper); }
.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; }
.mono { font-family: var(--font-mono); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
[hidden] { display: none !important; }

/* Page fade in (150 ms). Page changes are real loads here. Opacity only, so anchor jumps like /#faq land on the exact 72 px offset. */
@keyframes kd-fade { from { opacity: 0; } to { opacity: 1; } }
main { animation: kd-fade 150ms var(--ease-out) both; }

/* ---------- Labels and headings ---------- */
.label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); display: block; }
.h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
.h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
.lead { font-size: 17px; line-height: 1.6; color: var(--ink-600); }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; font-family: var(--font-sans); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background 120ms var(--ease-standard), color 120ms var(--ease-standard), border-color 120ms var(--ease-standard), box-shadow 120ms var(--ease-standard), transform 120ms var(--ease-standard); }
.btn:hover { text-decoration: none; }
.btn--lg { height: 50px; padding: 0 24px; font-size: 18px; gap: 10px; }
.btn--block { display: flex; width: 100%; }
.btn--solid { background: var(--brand-primary); color: #fff; }
.btn--outline { background: transparent; color: var(--blue-600); border-color: var(--blue-600); }
.btn--ghost { background: transparent; color: var(--blue-600); }
.btn:not(:disabled):not([aria-disabled="true"]):hover { background: var(--gold-500); color: var(--on-gold); border-color: var(--gold-500); }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn svg { flex: none; }
.icon { display: block; flex: none; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; padding: 14px clamp(12px, 3vw, 32px) 0; pointer-events: none; }
.hdr__bar { pointer-events: auto; max-width: 1120px; margin: 0 auto; height: 64px; padding: 0 10px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 20px; background: color-mix(in srgb, var(--white) 94%, transparent); border: 1px solid color-mix(in srgb, var(--white) 85%, transparent); box-shadow: 0 10px 34px rgba(0, 29, 42, 0.12), 0 1px 2px rgba(0, 29, 42, 0.08); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .hdr__bar { background: linear-gradient(180deg, color-mix(in srgb, var(--white) 72%, transparent), color-mix(in srgb, var(--white) 48%, transparent)); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 90%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--blue-900) 6%, transparent), 0 10px 34px color-mix(in srgb, var(--blue-950) 12%, transparent), 0 1px 2px color-mix(in srgb, var(--blue-950) 8%, transparent); }
}
.hdr__logo { display: flex; align-items: center; }
.hdr__logo img { height: 26px; width: auto; display: block; }
.hdr__right { display: flex; align-items: center; gap: 36px; }
.hdr__nav { display: flex; align-items: center; gap: 36px; }
.hdr__act { display: flex; align-items: center; gap: 10px; }
.theme-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border-default); border-radius: 10px; cursor: pointer; color: var(--ink-900); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
.hdr .logo-dark, .ftr .logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.hdr__nav a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--ink-900); padding: 6px 0; border-bottom: 1px solid transparent; }
.hdr__nav a[aria-current] { border-bottom-color: var(--ink-900); }
.hdr__menu { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border-default); border-radius: 8px; cursor: pointer; color: var(--ink-900); }
.hdr__menu .i-x { display: none; }
.hdr__menu[aria-expanded="true"] .i-menu { display: none; }
.hdr__menu[aria-expanded="true"] .i-x { display: block; }
.mnav { pointer-events: auto; position: absolute; left: clamp(12px, 3vw, 32px); right: clamp(12px, 3vw, 32px); top: 86px; padding: 8px 22px 14px; display: flex; flex-direction: column; border-radius: 20px; background: color-mix(in srgb, var(--white) 97%, transparent); border: 1px solid color-mix(in srgb, var(--white) 85%, transparent); box-shadow: 0 16px 40px color-mix(in srgb, var(--blue-950) 16%, transparent); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .mnav { background: color-mix(in srgb, var(--white) 80%, transparent); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); }
}
.mnav a { font-size: 20px; font-weight: 600; color: var(--ink-900); padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.mnav a:last-child { border-bottom: 0; }
@media (max-width: 759px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__act { gap: 8px; }
  .hdr__menu { display: flex; }
}
@media (min-width: 760px) { .mnav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3.5vw, 44px); align-items: stretch; }
.wrap.hero__grid { max-width: 1360px; padding: 0 clamp(20px, 3vw, 32px); }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); } }
.hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.hero h1 { font-size: clamp(36px, 3.9vw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; color: var(--ink-950); }
/* The changing headline word. Gold text; in light mode it sits on a deep blue pill because gold on white fails the AA contrast rule.
   The box is only as wide as the word, so the rest of the headline closes up behind it as the word changes.
   Without JavaScript or with reduced motion it stays as the static "Talk". */
.rot { --rot-c: var(--rot-color, var(--gold-500)); display: inline-block; color: var(--rot-c); background: var(--rot-pill, var(--blue-950)); border-radius: 0.16em; padding: 0.05em 0.2em; margin: -0.05em 0; }
.rot__w { position: relative; }
.rot.is-run .rot__w::after { content: ""; position: absolute; left: calc(100% + 2px); top: 0.1em; bottom: 0.08em; width: 2px; background: var(--rot-c); animation: rot-caret 1s steps(1) infinite; }
@keyframes rot-caret { 50% { opacity: 0; } }
:root[data-theme="dark"] .rot { background: transparent; padding-left: 0; padding-right: 0; }
.hero__sub { font-size: 17.5px; line-height: 1.55; color: var(--ink-600); max-width: 520px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .hero__btns .btn { height: 44px; padding: 0 18px; font-size: 16px; gap: 8px; }
@media (min-width: 1000px) { .hero .hero__btns { flex-wrap: nowrap; } }

/* Hero video: the looping automation animation. It keeps its 16:9 box so nothing shifts while it loads. */
.hv { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-default); box-shadow: var(--shadow-lg); background: #2a2c2c; min-width: 0; }
.hv::before { content: ""; display: block; padding-top: 56.25%; } /* keeps the 16:9 box, then it grows to the height of the text beside it */
.hv__layer { position: absolute; inset: 0; }
.hv__layer--light { background: #f2f2f2; transition: opacity 900ms var(--ease-standard); }
.hv__layer--dark { background: #2a2c2c; transform: translateX(101%); visibility: hidden; transition: transform 900ms var(--ease-out), visibility 0s linear 900ms; }
:root[data-theme="dark"] .hv__layer--light { opacity: 0; }
:root[data-theme="dark"] .hv__layer--dark { transform: none; visibility: visible; transition: transform 900ms var(--ease-out), visibility 0s; }
.hv__still, .hv video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
/* The video is 2 px smaller than the poster under it (same background, so it cannot be seen). That keeps the poster the largest paint, so the video's first frame never becomes the page's LCP element. */
.hv video { inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); opacity: 0; transition: opacity 250ms var(--ease-standard); }
.hv__layer.is-playing video { opacity: 1; }
.hero__grid > * { min-width: 0; }
.tag-ex { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); padding: 2px 6px; border: 1px solid var(--border-default); border-radius: 4px; background: var(--white); }
.tag-ok { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--tag-ok-text); }
.tag-ok::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--green-500); }

/* ---------- Generic sections ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec--tail { padding: 0 0 clamp(72px, 10vw, 128px); }
.sec--band { background: var(--white); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.head-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px 64px; align-items: end; margin-bottom: 56px; }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.row-head .stack { max-width: 640px; }
.arrow-link { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* Strip: logos and tools */
.strip { background: var(--white); border-top: 1px solid var(--border-subtle); }
.strip__in { display: flex; flex-direction: column; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.strip__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.strip__row .label { flex: none; }
.strip__row--logos { flex-wrap: nowrap; min-width: 0; flex-direction: column; align-items: stretch; gap: 14px; }
.marq { flex: 1; min-width: 240px; overflow: hidden; padding: 8px 0 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marq__track { display: flex; width: max-content; animation: kd-marquee 36s linear infinite; } /* cards travel right to left. Add the word reverse after infinite to flip. */
.marq__track--slow { animation-duration: 60s; padding: 8px 0; }
.marq:hover .marq__track { animation-play-state: paused; }
@keyframes kd-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item { flex: none; padding-right: 20px; display: flex; align-items: center; }
.logo-tile { width: 76px; height: 76px; border-radius: 16px; background: #fff; border: 1px solid var(--border-default); box-shadow: var(--shadow-xs); overflow: hidden; display: flex; align-items: center; justify-content: center; transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms; }
.logo-tile:hover { transform: translateY(-4px); border-color: var(--gold-500); box-shadow: var(--shadow-lg); }
.logo-tile img { width: 100%; height: 100%; display: block; object-fit: cover; }
.logo-tile--text { font-size: 15px; font-weight: 600; color: #3a4b54; text-align: center; padding: 8px; }
.logo-tile--ph { background: transparent; border: 1px dashed var(--gray-300); box-shadow: none; font-size: 13px; font-weight: 500; text-align: center; padding: 8px; color: var(--gray-500); }
.testi--ph figure { border-style: dashed; border-color: var(--gray-300); }
.testi--ph blockquote { color: var(--gray-500); }
.avatar-ph { width: 40px; height: 40px; border-radius: 8px; background: var(--gray-100); flex: none; }
.tools { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 14px; color: var(--gray-500); }
.tools .mono { font-size: 13px; color: var(--ink-700); }

/* 01 The problem */
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; }
.col-rule { border-top: 1px solid var(--ink-900); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.num { font-family: var(--font-mono); font-size: 13px; color: var(--gray-500); }
.num--blue { color: var(--blue-600); padding-top: 2px; }
.col-rule h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.col-rule p { font-size: 16px; line-height: 1.6; color: var(--ink-600); }

/* 02 Who we work with */
.rows { border-top: 1px solid var(--border-default); }
.rows__item { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px 64px; padding: 32px 0; border-bottom: 1px solid var(--border-default); align-items: start; }
.rows__item h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.rows__item p { font-size: 16px; line-height: 1.6; color: var(--ink-600); }
/* Linked rows (Home, who we work with): the same hover as the service cards */
.rows__item--link { color: inherit; margin: 0 -16px; padding: 32px 16px; border-radius: var(--radius-lg); border-bottom-color: transparent; position: relative; transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background-color 220ms var(--ease-out); }
.rows__item--link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 1px; background: var(--border-default); transition: opacity 220ms; }
.rows__item--link:hover { transform: translateY(-4px); background: var(--white); box-shadow: 0 0 0 1px var(--gold-500), var(--shadow-lg); color: inherit; }
.rows__item--link:hover::after { opacity: 0; }
.rows__item--link h3 { color: var(--ink-900); }
.sec-cta { display: flex; justify-content: center; margin-top: 48px; }

/* Cards */
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-lg); color: var(--ink-900); transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-500); color: var(--ink-900); }
.cards-svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(280px, calc((100% - 40px) / 3))), 1fr)); gap: 20px; }
.card-svc { padding: 28px 24px; gap: 14px; min-height: 230px; }
.card-svc h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.card-svc p { font-size: 14px; line-height: 1.55; color: var(--ink-600); flex: 1; }
/* Home service cards have no step line, so they need less height and a little more air. The grid keeps every card in a row the same height. */
.card-svc--plain { min-height: 190px; padding: 32px 28px; gap: 12px; }
.flow-text { font-family: var(--font-mono); font-size: 11px; color: var(--gray-500); line-height: 1.6; }
.card-hub { padding: 28px; gap: 16px; }
.card-hub__top { display: flex; justify-content: space-between; align-items: center; }
.card-hub__top .arrow { color: var(--blue-600); display: flex; }
.card-hub h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.card-hub p { font-size: 15px; line-height: 1.55; color: var(--ink-600); flex: 1; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.card-hub .flow { padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.flow .chip { font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; border: 1px solid var(--border-default); border-radius: 6px; color: var(--ink-700); }
.card-case__flow { padding: 20px; border-bottom: 1px solid var(--border-subtle); background: var(--gray-50); border-radius: var(--radius-lg) var(--radius-lg) 0 0; min-height: 92px; align-content: center; }
.card-case__flow .chip { background: var(--white); padding: 5px 8px; }
/* Home case cards have no chip row. A gold bar takes its place so the top of the card is finished, not bare. */
.card-case--plain { border-top: 3px solid var(--gold-500); }
.card-case--plain .card-case__body { padding: 28px 24px 24px; }
.card-case__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-case__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); }
.card-case h2, .card-case h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.card-case h2 { font-size: 22px; }
.card-case__body p { font-size: 15px; line-height: 1.55; color: var(--ink-600); flex: 1; }
.card-case__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.card-case__foot .res { font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); }
.card-case__foot .read { font-size: 14px; font-weight: 600; color: var(--blue-600); margin-left: auto; }
/* Three cases: one column, or three across. Never two with a lone card left over on the next row. */
.cards-case3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 820px) { .cards-case3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards-case6 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }

/* 04 How we work */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 32px; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 28px 0 32px; border-top: 1px solid var(--border-default); position: relative; }
.step__sq { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 2px; background: var(--ink-900); }
.step:first-child .step__sq { background: var(--blue-600); }
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.step p { font-size: 15px; line-height: 1.6; color: var(--ink-600); }
.steps--sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 28px; }
.steps--sm .step { gap: 10px; padding: 20px 0 24px; }
.steps--sm .step__sq { display: none; }
.steps--sm .step h3 { font-size: 19px; }
.steps--sm .step p { font-size: 14px; line-height: 1.55; }

/* 06 Testimonials */
.testi { flex: none; padding-right: 24px; display: flex; }
.testi figure { width: min(400px, 82vw); padding: 28px; background: var(--paper); border: 1px solid var(--border-default); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 24px; justify-content: space-between; transition: transform 220ms var(--ease-out), border-color 220ms, box-shadow 220ms; }
.testi figure:hover { transform: translateY(-4px); border-color: var(--gold-500); box-shadow: var(--shadow-lg); }
.testi blockquote { font-size: 16px; line-height: 1.6; color: var(--ink-800); }
.testi figcaption { display: flex; align-items: center; gap: 12px; }
.testi figcaption img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; object-position: top; flex: none; background: #fff; border: 1px solid var(--border-default); }
.testi .who { display: flex; flex-direction: column; gap: 2px; }
.testi .who b { font-size: 14px; font-weight: 600; color: var(--ink-700); }
.testi .who span { font-size: 13px; color: var(--gray-500); }
.testi-static { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.testi-static .testi { padding-right: 0; }

/* 07 How we build */
/* How we build table. Every line is a real 1 px border on a cell (not a gap over a coloured background), so each line stays the same
   weight at any zoom level or screen density. Top and bottom lines, a line between rows, and a line between columns. No outer side lines. */
.grid-rules { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--border-default); }
.rule { border-top: 1px solid var(--border-default); padding: 28px 28px 32px; display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; min-width: 0; }
@media (min-width: 640px) and (max-width: 999px) {
  .grid-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule:nth-child(even) { border-left: 1px solid var(--border-default); }
}
@media (min-width: 1000px) {
  .grid-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rule:not(:nth-child(3n + 1)) { border-left: 1px solid var(--border-default); }
}
.rule .num { color: var(--blue-600); padding-top: 3px; }
.rule h3 { font-size: 18px; font-weight: 600; }
.rule p { font-size: 15px; line-height: 1.55; color: var(--ink-600); margin-top: 8px; }

/* 08 Team */
.team { padding: clamp(72px, 10vw, 128px) 0; background: var(--blue-950); color: #fff; }
.team .label { color: var(--blue-300); }
.team h2 { color: #fff; max-width: 760px; }
.team__head { margin-bottom: clamp(32px, 5vw, 56px); }
.team__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.tcard { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tcard__photo { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; background: var(--blue-900); }
.tcard__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tcard__photo--icon { display: flex; align-items: center; justify-content: center; color: var(--gold-500); border: 1px solid var(--blue-800); }
.tcard h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: #fff; line-height: 1.25; }
.tcard p { font-size: 14px; line-height: 1.5; color: var(--blue-100); }

/* 09 FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px 64px; align-items: start; }
.faq-list { border-bottom: 1px solid var(--border-default); }
.faq-item { border-top: 1px solid var(--border-default); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; background: none; border: 0; cursor: pointer; text-align: left; font-size: 18px; font-weight: 600; color: var(--ink-900); line-height: 1.35; }
.faq-q .plus { display: flex; flex: none; color: var(--ink-700); transition: transform 260ms var(--ease-standard); }
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-standard); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.65; color: var(--ink-600); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
html:not(.js) .faq-a { grid-template-rows: 1fr; }
.side-note { font-size: 16px; line-height: 1.6; color: var(--ink-600); }

/* ---------- CTA band, footer, bottom bar ---------- */
.cta { padding: clamp(24px, 4vw, 48px) clamp(12px, 2vw, 24px); }
.cta__in { max-width: 1280px; margin: 0 auto; background: var(--blue-950); border-radius: var(--radius-xl); padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px 64px; align-items: end; }
.cta h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; color: #fff; }
.cta p { font-size: 18px; line-height: 1.6; color: var(--blue-100); max-width: 520px; }
.cta__act { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta__note { font-size: 14px; color: var(--blue-300); }
.ftr { padding: clamp(56px, 7vw, 88px) 0 32px; border-top: 1px solid var(--border-subtle); margin-top: 24px; }
.ftr--flush { margin-top: 0; }
.ftr__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 40px 32px; }
.ftr__brand { display: flex; flex-direction: column; gap: 16px; }
.ftr__brand img { height: 24px; width: auto; align-self: flex-start; display: block; }
.ftr__brand p { font-size: 14px; line-height: 1.55; color: var(--ink-600); }
.ftr__col { display: flex; flex-direction: column; gap: 12px; }
.ftr__col .label { font-size: 11px; letter-spacing: 0.08em; }
.ftr__col a { font-size: 14px; color: var(--ink-700); }
.ftr__col a:hover { color: var(--blue-700); }
/* Touch screens: footer links get a 44 px tall tap area (the list was 23 px tall). */
@media (max-width: 1024px), (pointer: coarse) { .ftr__col { gap: 0; } .ftr__col .label { margin-bottom: 6px; } .ftr__col a { padding: 10px 0; } }
.ftr__bar { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border-default); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--gray-500); }
.ftr__bar .mono { font-size: 12px; }
.bbar { display: none; position: sticky; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--border-default); }
@media (max-width: 759px) { .bbar { display: block; } }

/* @critical-end */

/* ---------- Services hub, service page ---------- */
.page-top { padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 10vw, 120px); }
.page-top .head-grid { gap: 24px 64px; }
.page-top .head-grid .stack { gap: 20px; }
.page-top .head-grid p { font-size: 18px; line-height: 1.6; color: var(--ink-600); }
.page-top--tight { padding-bottom: clamp(48px, 6vw, 72px); }
.page-top--tight .head-grid { margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--gray-500); margin-bottom: 40px; }
.crumbs span[aria-current] { color: var(--ink-700); }
/* Bigger tap area for the breadcrumb links without moving anything */
.crumbs a { padding: 10px 4px; margin: -10px -4px; }
.svc-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.svc-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: start; }
.svc-hero__copy { display: flex; flex-direction: column; gap: 24px; }
.svc-hero h1 { font-size: clamp(40px, 5.8vw, 68px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.svc-hero__long { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-600); }
.svc-note { font-size: 15px; line-height: 1.55; color: var(--gray-500); border-left: 2px solid var(--border-strong); padding-left: 14px; }
.panel { background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.panel__bar { padding: 14px 20px; border-bottom: 1px solid var(--border-subtle); background: var(--gray-50); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); }
.panel__bar b { font-weight: 400; color: var(--ink-700); }
.run { padding: 12px 20px; }
.run li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.run li:last-child { border-bottom: 0; }
.run .n { width: 28px; height: 28px; border: 1px solid var(--border-default); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; color: var(--blue-700); }
.run .t { font-size: 16px; font-weight: 500; }
.call-demo { padding: clamp(64px, 8vw, 104px) 0; background: var(--white); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.call-demo__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; max-width: 680px; }
.call-demo h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.call-demo__grid { border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--white); }
.call-demo__col + .call-demo__col { border-top: 1px solid var(--border-default); }
@media (min-width: 840px) { .call-demo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .call-demo__col + .call-demo__col { border-top: 0; border-left: 1px solid var(--border-default); } }
.call-demo__col { background: var(--white); display: flex; flex-direction: column; }
.call-demo__bar { padding: 14px 20px; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; background: var(--gray-50); font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); }
.call-demo__bar b { font-weight: 400; color: var(--ink-700); }
.transcript { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.transcript li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; font-size: 14px; line-height: 1.55; color: var(--ink-700); }
.transcript .who { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 3px; color: var(--gray-500); }
.transcript .who--agent { color: var(--blue-600); }
.crm { padding: 8px 20px 20px; }
.crm div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); font-size: 14px; }
.crm dt { color: var(--gray-500); }
.crm dd { font-weight: 500; }
.svc-body { padding: clamp(64px, 8vw, 104px) 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px 64px; }
.two-col .h2--m { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.025em; }
.list-num { display: flex; flex-direction: column; border-top: 1px solid var(--border-default); }
.list-num li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--border-default); }
.list-num li span:last-child { font-size: 17px; line-height: 1.5; }
.list-num--sm li { padding: 16px 0; }
.list-num--sm li span:last-child { font-size: 16px; }
.fits { max-width: 1200px; margin: clamp(56px, 7vw, 88px) auto 0; padding: 0 clamp(20px, 4vw, 40px); }
.fits .label { margin-bottom: 24px; }
.fits__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; }
.fits__grid p { border-top: 1px solid var(--ink-900); padding-top: 20px; font-size: 18px; line-height: 1.5; font-weight: 500; }
.engage { padding: clamp(64px, 8vw, 104px) 0; background: var(--white); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.engage .label { margin-bottom: 32px; }
.rel { padding: clamp(64px, 8vw, 104px) 0; }
.rel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px 64px; }
.rel__grid--one { grid-template-columns: minmax(0, 720px); }
.rel .label { margin-bottom: 24px; }
.rel__cases { display: flex; flex-direction: column; gap: 16px; }
.card-rel { padding: 24px; gap: 10px; }
.card-rel h3 { font-size: 20px; font-weight: 600; }
.card-rel p { font-size: 15px; line-height: 1.55; color: var(--ink-600); }
.card-rel .read { font-size: 14px; font-weight: 600; color: var(--blue-600); }
.others { border-top: 1px solid var(--border-default); }
.others a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-default); color: var(--ink-900); font-size: 16px; font-weight: 500; transition: padding 200ms var(--ease-out), color 200ms; }
.others a:hover { padding-left: 6px; color: var(--gold-700); }

/* ---------- Case page ---------- */
.case-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
.case-hero__copy { display: flex; flex-direction: column; gap: 24px; max-width: 860px; }
.case-hero h1 { font-size: clamp(40px, 5.8vw, 68px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.case-hero__sum { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-600); }
.details { margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.details div { padding: 20px 20px 20px 0; }
.details dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); }
.details dd { margin: 6px 0 0; font-size: 16px; }
.case-body { padding: 0 0 clamp(64px, 8vw, 104px); }
.case-body .col { display: flex; flex-direction: column; gap: 16px; }
.case-body .problem { font-size: 19px; line-height: 1.6; color: var(--ink-800); }
.list-num--case li { padding: 16px 0; }
.list-num--case li span:last-child { font-size: 16px; }
.results { padding: clamp(64px, 8vw, 104px) 0; background: var(--white); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.results .label { margin-bottom: 24px; }
.results__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.result { border-top: 1px solid var(--ink-900); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.result b { font-size: clamp(36px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink-900); line-height: 1.1; }
.result span { font-size: 15px; color: var(--gray-500); }
.quote { margin: 56px 0 0; padding: 32px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.quote blockquote { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--ink-800); }
.quote figcaption { font-size: 14px; color: var(--gray-500); }
.next { padding: clamp(48px, 6vw, 72px) 0 0; }
.next a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); color: var(--ink-900); }
.next a:hover { color: var(--blue-700); }
.next .t { display: flex; flex-direction: column; gap: 6px; }
.next .t span:last-child { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.next .label { letter-spacing: 0.08em; }

/* ---------- Booking ---------- */
.book { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 10vw, 120px); }
.book__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px clamp(40px, 6vw, 88px); align-items: start; }
.book__copy { display: flex; flex-direction: column; gap: 24px; }
.book__copy h1, .book__copy .h1-like { font-size: clamp(38px, 5vw, 60px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; color: var(--ink-900); text-wrap: balance; }
.book__intro { font-size: 18px; line-height: 1.6; color: var(--ink-600); }
.book__copy .list-num { margin-top: 8px; }
.book__copy .list-num li { padding: 18px 0; }
.book__copy .list-num li span:last-child { font-size: 16px; }
.book__small { font-size: 14px; line-height: 1.55; color: var(--gray-500); }
.bcard { background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border-subtle); }
.tab { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; border-bottom: 2px solid transparent; }
.tab .n { font-family: var(--font-mono); font-size: 11px; color: var(--gray-500); }
.tab .l { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.tab.is-done .n { color: var(--blue-600); }
.tab.is-done .l { color: var(--ink-900); }
.tab.is-done { border-bottom-color: var(--blue-200); }
.tab.is-current { border-bottom-color: var(--blue-600); }
.tab.is-current .n { color: var(--blue-600); }
.tab.is-current .l { color: var(--ink-900); }
.bstep { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.bstep--lg { gap: 24px; }
.bstep h2 { font-size: 22px; font-weight: 600; }
.bstep__sub { font-size: 15px; color: var(--ink-600); margin-top: 6px; }
.bstep__sub .mono { font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field__label { font-size: 14px; font-weight: 500; color: var(--ink-900); }
.field .req { color: var(--red-600); margin-left: 2px; }
.input, .textarea { width: 100%; padding: 0 12px; height: 42px; background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-md); font-family: var(--font-sans); font-size: 16px; color: var(--ink-900); transition: border-color 120ms var(--ease-standard), box-shadow 120ms var(--ease-standard); }
.textarea { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; min-height: 110px; }
.input:focus, .textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--gray-500); }
.input[aria-invalid="true"] { border-color: var(--red-600); }
.field__msg { font-size: 12px; color: var(--red-600); }
.field__hint { font-size: 12px; line-height: 1.5; color: var(--gray-500); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 8px; }
.actions--split { justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.chip-btn { cursor: pointer; padding: 9px 12px; border-radius: 8px; font-size: 14px; border: 1px solid var(--border-default); background: var(--white); color: var(--ink-700); transition: all 160ms var(--ease-standard); }
.chips--sizes .chip-btn { padding: 10px 8px; }
.chip-btn[aria-pressed="true"] { background: var(--blue-50); border-color: var(--blue-600); color: var(--ink-900); }
.cal__top { display: flex; justify-content: space-between; align-items: center; }
.cal__top b { font-size: 16px; font-weight: 600; color: var(--ink-900); }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-default); border-radius: 8px; background: var(--white); cursor: pointer; color: var(--ink-700); }
.cal__nav button:disabled { opacity: 0.4; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.cal__dow { text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--gray-500); padding: 6px 0; }
.cal__day { aspect-ratio: 1; min-height: 36px; border-radius: 8px; font-size: 14px; font-weight: 500; border: 1px solid var(--border-default); background: var(--white); color: var(--ink-900); cursor: pointer; transition: all 140ms var(--ease-standard); }
.cal__day:disabled { background: transparent; border-color: transparent; color: var(--gray-300); cursor: default; }
.cal__day[aria-pressed="true"] { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; font-weight: 600; }
.cal__blank { visibility: hidden; }
.slots { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.slots__label { font-size: 14px; font-weight: 500; color: var(--ink-900); }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
.slot { cursor: pointer; padding: 11px 8px; border-radius: 8px; font-family: var(--font-mono); font-size: 13px; border: 1px solid var(--border-default); background: var(--white); color: var(--ink-700); transition: all 140ms var(--ease-standard); }
.slot[aria-pressed="true"] { background: var(--blue-50); border-color: var(--blue-600); color: var(--ink-900); }
.form-error { font-size: 14px; color: var(--red-600); padding: 10px 12px; border: 1px solid var(--red-600); border-radius: 8px; background: var(--alert-bg); }
.solo__links { display: flex; flex-wrap: wrap; gap: 12px; }
.embed-frame { position: relative; }
:root[data-theme="dark"] .embed-frame { background: #fff; border-radius: var(--radius-md); overflow: hidden; }
.embed-frame:not(.is-loaded) { min-height: 320px; }
.embed-frame iframe { position: relative; display: block; width: 100%; border: 0; background: transparent; }
.embed-frame__load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--gray-500); }
.embed-frame__load::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-default); border-top-color: var(--blue-600); animation: kd-spin 0.8s linear infinite; }
.embed-frame.is-loaded .embed-frame__load { display: none; }
@keyframes kd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .embed-frame__load::before { animation: none; } }
.tabs { grid-template-columns: repeat(var(--tabs, 3), minmax(0, 1fr)); }

/* Apply and Book pages: the GoHighLevel survey and calendar sit directly on the page */
.embed-page { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 112px); }
.embed-page .wrap { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.book__head { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; max-width: 720px; margin: 0 auto; }
.book__head h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; color: var(--ink-900); text-wrap: balance; }
.embed-wrap { width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.embed-wrap--survey { max-width: 760px; }
.embed-wrap--calendar { max-width: 980px; }
.embed-noscript { font-size: 15px; color: var(--ink-600); }
.embed-noscript a { color: var(--blue-700); text-decoration: underline; }
.book__foot { width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.book__foot-h { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.expect { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px 32px; border-top: 1px solid var(--border-default); padding-top: 24px; }
.expect li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-700); }

/* Thanks for booking: a clean page, just the words */
.thanks-page { padding: clamp(56px, 9vw, 128px) 0 clamp(72px, 10vw, 144px); }
.thanks { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.thanks__check { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.thanks h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; color: var(--ink-900); }
.thanks p { font-size: 17px; line-height: 1.65; color: var(--ink-600); }
.thanks__lead { font-size: 20px !important; color: var(--ink-900) !important; line-height: 1.5 !important; }
.thanks__lead b { font-weight: 600; }
.thanks__when { font-weight: 600; color: var(--ink-900) !important; }
.thanks__before b { color: var(--ink-900); font-weight: 600; }
.thanks a:not(.btn) { color: var(--blue-700); text-decoration: underline; }
.thanks__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Legal and 404 ---------- */
.doc { padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 10vw, 120px); }
.doc__in { max-width: 760px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.doc h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 20px 0 8px; }
.doc__meta { font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); margin-bottom: 40px; }
.doc h2 { font-size: 22px; font-weight: 600; margin: 40px 0 12px; }
.doc p { font-size: 17px; line-height: 1.7; color: var(--ink-700); margin-bottom: 14px; }
.notfound { padding: clamp(80px, 12vw, 160px) 0; }
.notfound__in { max-width: 640px; display: flex; flex-direction: column; gap: 24px; }

/* ---------- Cookie banner ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px; margin: 0 auto; background: #0c1a21; color: #fff; border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }
.consent p { font-size: 14px; line-height: 1.5; color: #e6ebee; }
.consent a { color: #aed8e8; text-decoration: underline; text-underline-offset: 2px; }
.consent__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { height: 40px; font-size: 15px; }
.consent .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.consent :focus-visible { outline-color: var(--cyan-500); }
@media (max-width: 759px) { .consent { bottom: 84px; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  .marq__track { animation: none; flex-wrap: wrap; width: auto; }
  .marq { -webkit-mask-image: none; mask-image: none; }
  .marq__track [aria-hidden="true"] { display: none; }
  .card, .card:hover, .testi figure, .testi figure:hover, .logo-tile, .logo-tile:hover, .rows__item--link, .rows__item--link:hover { transition: none; transform: none; }
  .faq-a, .faq-q .plus { transition: none; }
  .hv__layer, .hv__layer--light, .hv__layer--dark { transition: none !important; }
}

/* ---------- Cases hub: glance table, result cards ---------- */
.glance { width: 100%; border-collapse: collapse; border-bottom: 1px solid var(--border-default); text-align: left; }
.glance th, .glance td { padding: 20px 20px 20px 0; vertical-align: top; font-size: 15px; line-height: 1.55; color: var(--ink-600); }
.glance thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); padding-top: 0; padding-bottom: 14px; }
.glance tbody tr { border-top: 1px solid var(--border-default); }
.glance tbody th { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; width: 24%; }
.glance tbody th a { color: var(--ink-900); display: inline-block; padding: 8px 0; margin: -8px 0; }
.glance tbody th a:hover { color: var(--blue-700); }
.glance td b { display: block; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--ink-900); }
.glance td span { font-size: 14px; color: var(--gray-500); }
.glance td:nth-child(2) { width: 18%; }
.glance td:nth-child(4) { width: 24%; padding-right: 0; }
@media (max-width: 859px) {
  .glance, .glance tbody, .glance tr, .glance th, .glance td { display: block; }
  .glance thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .glance tbody th { width: auto; padding: 24px 0 4px; }
  .glance td { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 16px; padding: 6px 0; }
  .glance td:last-child { padding-bottom: 24px; }
  .glance td::before { content: attr(data-label); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); padding-top: 3px; }
  .glance td b, .glance td span { grid-column: 2; display: block; }
  .glance td:nth-child(n) { width: auto; }
}
.card-case--hub { padding: 28px 26px 24px; gap: 16px; border-top: 3px solid var(--gold-500); }
.card-case--hub h2, .card-case--hub h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.card-case__result { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.card-case__result b { font-size: clamp(30px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink-900); }
.card-case__result span { font-size: 14px; line-height: 1.4; color: var(--gray-500); }
.card-case--hub > p { font-size: 15px; line-height: 1.55; color: var(--ink-600); flex: 1; }
.card-case--hub .card-case__foot { border-top: 0; padding-top: 0; }
.card-case__foot .ind { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink-700); }
.card-case__foot .ind i { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); }
.card-case__foot .go { color: var(--blue-600); display: flex; }

/* ---------- Case page: header, static key results, four sections ---------- */
.case-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 8px; font-size: 15px; color: var(--ink-700); }
.case-hero__meta span { display: flex; flex-direction: column; gap: 2px; }
.case-hero__meta i { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); }
.restiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
@media (min-width: 860px) { .restiles { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }
@media (min-width: 1100px) { .restiles { grid-template-columns: repeat(var(--cols-wide, var(--cols, 4)), minmax(0, 1fr)); } }
@media (min-width: 480px) and (max-width: 859px) { .restiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .restiles { grid-template-columns: minmax(0, 1fr); } }
.restile { background: var(--white); border: 1px solid var(--border-default); border-radius: 16px; box-shadow: var(--shadow-xs); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.restile b { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; color: var(--ink-900); }
.restile span { font-size: 14px; line-height: 1.45; color: var(--gray-500); }
.case-secs { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); }
.case-sec { padding: clamp(36px, 5vw, 60px) 0; border-top: 1px solid var(--border-default); }
.case-sec:last-child { border-bottom: 1px solid var(--border-default); }
.case-sec__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 860px) { .case-sec__grid { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; } }
.prose { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.prose p { font-size: 18px; line-height: 1.7; color: var(--ink-700); margin: 0; }
.prose p:first-child { font-size: clamp(20px, 2vw, 24px); line-height: 1.5; color: var(--ink-900); }
.case-sec .label { padding-top: 6px; }
.case-sec .list-num { border-top: 0; }
.case-sec .list-num li:first-child { padding-top: 0; }
.case-sec .list-num li:last-child { border-bottom: 0; padding-bottom: 0; }
.case-sec .list-num--case li span:last-child { font-size: 18px; }
@media (min-width: 860px) {
  /* The numbers hang in the margin so the text lines up with the paragraphs in the other sections */
  .case-sec .list-num li { display: block; position: relative; }
  .case-sec .list-num li .num { position: absolute; left: -44px; top: 20px; }
  .case-sec .list-num li:first-child .num { top: 4px; }
}
.case-sec__body { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.tech-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tech-list li { font-family: var(--font-mono); font-size: 13px; padding: 9px 14px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--white); color: var(--ink-700); }

/* Case page: the stack as logo tiles */
.tech-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.tech-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border-default); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-xs); font-size: 15px; font-weight: 600; color: var(--ink-900); min-width: 0; }
.tech-tile img { width: 40px; height: 40px; border-radius: 10px; flex: none; display: block; }

/* ---------- Legal pages: lead, In short box, contents, numbered sections, tables ---------- */
.doc__lead { font-size: clamp(18px, 1.8vw, 20px); line-height: 1.6; color: var(--ink-900); margin: 0 0 32px; }
.doc__short { border: 1px solid var(--border-default); border-left: 3px solid var(--gold-500); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--white); padding: 22px 26px; margin: 0 0 24px; }
.doc__short .label, .doc__toc .label { margin-bottom: 12px; }
.doc__short ul { margin: 0; padding-left: 20px; }
.doc__short li { font-size: 16px; line-height: 1.6; color: var(--ink-700); margin-bottom: 6px; }
.doc__short li:last-child { margin-bottom: 0; }
.doc__toc { border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 22px 26px; margin: 0 0 16px; }
.doc__toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 32px; }
.doc__toc a { display: flex; gap: 12px; padding: 9px 0; font-size: 15px; color: var(--ink-700); border-bottom: 1px solid var(--border-subtle); }
.doc__toc a span { font-family: var(--font-mono); font-size: 12px; color: var(--blue-600); padding-top: 2px; }
.doc__toc a:hover { color: var(--blue-700); }
.doc__sec { scroll-margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border-default); margin-top: 40px; }
.doc__sec:first-of-type { margin-top: 48px; }
.doc .doc__sec h2 { display: flex; align-items: baseline; gap: 14px; margin: 24px 0 16px; font-size: clamp(22px, 2.4vw, 26px); letter-spacing: -0.015em; }
.doc__n { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--blue-600); flex: none; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 22px 0 10px; color: var(--ink-900); }
.doc ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.doc li { font-size: 17px; line-height: 1.7; color: var(--ink-700); margin-bottom: 6px; }
.doc__note { font-size: 15px !important; color: var(--gray-500) !important; border-left: 2px solid var(--border-strong); padding-left: 14px; margin-top: 16px; }
.doc__table { overflow-x: auto; margin: 8px 0 16px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--white); }
.doc__table table { width: 100%; min-width: 600px; border-collapse: collapse; text-align: left; }
.doc__table th, .doc__table td { padding: 14px 18px; font-size: 15px; line-height: 1.5; vertical-align: top; border-top: 1px solid var(--border-subtle); color: var(--ink-700); }
.doc__table thead th { border-top: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); background: var(--gray-50); }
.doc__table tbody th { font-weight: 400; white-space: nowrap; }
.doc__table code { font-family: var(--font-mono); font-size: 13px; color: var(--ink-900); }
.doc__empty { margin-top: 8px; padding: 28px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--white); }
.doc__empty p { margin-bottom: 20px; }

/* Services hub: the cards sit closer to the Trusted by row */
.page-top--tight + .strip + .sec { padding-top: clamp(40px, 6vw, 72px); }
