/* Conversion layer: same-page booking sheet, page-type nudge, client wall, integration hub, legal pages.
   Rule: everything that appears or animates is fixed size or fixed position, so the page never moves. */

/* ---------- Booking sheet ---------- */
html.bk-lock { overflow: hidden; }
.bk { --bk-h: min(720px, calc(100dvh - 40px)); color: var(--ink); }
dialog.bk { padding: 0; border: 0; width: min(1100px, calc(100vw - 40px)); height: var(--bk-h); max-width: none; max-height: none; background: #fff; clip-path: var(--n22); box-shadow: 0 40px 80px -30px rgba(10,4,30,.6); overflow: hidden; }
dialog.bk[open] { animation: bk-in .32s cubic-bezier(.2,.8,.2,1); }
dialog.bk::backdrop { background: rgba(18,6,48,.62); backdrop-filter: blur(6px); }
@keyframes bk-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.bk__frame { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); height: 100%; }
.bk--page .bk__frame { height: var(--bk-h); min-height: 640px; border: 1px solid var(--line); clip-path: var(--n22); }
.book-page { padding-block: clamp(24px, 4vw, 56px); }
.bk__side { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 36px 32px; background: var(--indigo); color: #fff; overflow: hidden; }
.bk__side::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; background: var(--indigo-2); transform: rotate(45deg); }
.bk__side > * { position: relative; z-index: 1; }
.bk__eyebrow { margin: 0; font: 600 .74rem/1.3 Poppins, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.bk__title { margin: 0; color: #fff; font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); line-height: 1.22; }
.bk__plan { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.bk__plan li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 10px 0; opacity: .55; transition: opacity .3s; }
.bk__plan li.is-now, .bk__plan li.is-done { opacity: 1; }
.bk__plan i { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; font: 600 .85rem Poppins, sans-serif; font-style: normal; border: 1.5px solid rgba(255,255,255,.5); clip-path: var(--n10); transition: background .3s, border-color .3s, color .3s; }
.bk__plan li.is-now i { background: var(--sky); border-color: var(--sky); color: var(--indigo); }
.bk__plan li.is-done i { background: #fff; border-color: #fff; color: var(--indigo); }
.bk__plan b { font: 600 .95rem/1.3 Poppins, sans-serif; }
.bk__plan span { font-size: .88rem; line-height: 1.45; color: rgba(255,255,255,.78); }
.bk__host { margin: auto 0 0; display: flex; align-items: center; gap: 12px; }
.bk__host img { width: 56px; height: 58px; object-fit: cover; clip-path: var(--n10); }
.bk__host b { display: block; font: 600 .95rem Poppins, sans-serif; } .bk__host span { font-size: .85rem; color: rgba(255,255,255,.75); }
.bk__main { display: grid; grid-template-rows: 64px minmax(0, 1fr); min-width: 0; }
.bk__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px 0 32px; border-bottom: 1px solid var(--line); }
.bk__meter { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 56px); gap: 6px; }
.bk__meter li { height: 4px; background: var(--line); transition: background .3s; }
.bk__meter li.is-on { background: var(--blue); }
.bk__x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.bk__x:hover { color: var(--ink); background: var(--mist); }
.bk__form { display: contents; }
.bk__step { display: none; min-width: 0; min-height: 0; margin: 0; border: 0; padding: 28px 32px; overflow-y: auto; }
.bk__step.is-on { display: block; animation: bk-step .28s ease both; }
@keyframes bk-step { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.bk__q { padding: 0; margin: 0 0 14px; font: 600 1.2rem/1.3 Poppins, sans-serif; color: var(--ink); }
.bk__q--2 { margin-top: 28px; }
.bk__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bk__chip { position: relative; cursor: pointer; }
.bk__chip input { position: absolute; opacity: 0; inset: 0; }
.bk__chip span { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; font: 600 1rem Poppins, sans-serif; border: 1.5px solid var(--line); background: #fff; color: var(--ink); clip-path: var(--n10); transition: border-color .15s, background .15s, color .15s; }
.bk__chip:hover span { border-color: var(--blue); }
.bk__chip input:checked + span { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.bk__chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.bk__alt { margin: 26px 0 0; color: var(--muted); font-size: .95rem; }
.bk--page .bk__alt, .bk__side .bk__alt { color: rgba(255,255,255,.8); } .bk__side .bk__alt a { color: #fff; }
.bk__step .bk__alt { color: var(--muted); }
.bk__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk__field { display: grid; gap: 6px; margin-bottom: 14px; }
.bk__field span { font: 600 .82rem Poppins, sans-serif; color: var(--muted); }
.bk__field input, .bk__field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: 400 1rem Lato, sans-serif; color: var(--ink); border: 1.5px solid var(--line); background: #fff; border-radius: 0; }
.bk__field input:focus, .bk__field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,121,244,.15); }
.bk__more { margin: 2px 0 14px; } .bk__more summary { cursor: pointer; color: var(--blue); font-weight: 700; font-size: .95rem; padding: 8px 0; }
.bk__more[open] summary { margin-bottom: 8px; }
.bk__err { margin: 0 0 12px; color: var(--warn); font-weight: 700; }
.bk__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk__back { border: 0; background: none; color: var(--muted); font: 600 .95rem Poppins, sans-serif; cursor: pointer; padding: 10px 0; min-height: 44px; }
.bk__back:hover { color: var(--ink); }
.bk__fine { margin: 16px 0 0; font-size: .82rem; color: var(--muted); }
.bk__consent { margin: 4px 0 14px; padding: 0; border: 0; min-width: 0; }
.bk__consent-q { padding: 0; margin: 0 0 6px; font: 600 .82rem Poppins, sans-serif; color: var(--muted); }
.bk__consent-q em { font-style: normal; font-weight: 400; }
.bk__opt { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; min-height: 36px; font-size: .95rem; color: var(--ink); cursor: pointer; }
.bk__opt input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.bk__legal { margin: 6px 0 0; font-size: .74rem; line-height: 1.45; color: var(--muted); }
.bk__legal a { color: inherit; text-decoration: underline; }
.bk__step--cal.is-on { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding: 16px 20px 0; overflow: hidden; }
.bk__calhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; }
.bk__calhead .bk__q { margin: 0; font-size: 1.05rem; }
.bk__cal { position: relative; min-height: 0; }
.bk__cal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .3s; }
.bk__cal.is-ready iframe, .bk--thanks .bk__cal iframe { opacity: 1; }
.bk__skel { position: absolute; inset: 8px 12px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 54px; gap: 10px; align-content: start; }
.bk__skel i { background: linear-gradient(90deg, var(--mist), #ece8f6, var(--mist)); background-size: 200% 100%; animation: bk-sk 1.4s linear infinite; }
.bk__cal.is-ready .bk__skel { display: none; }
@keyframes bk-sk { to { background-position: -200% 0; } }
.bk__step--done.is-on { display: flex; flex-direction: column; justify-content: center; max-width: 560px; }
.bk__step--done:focus { outline: none; }
.bk__tick { width: 64px; height: 64px; margin-bottom: 16px; fill: none; stroke: var(--good); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bk__tick circle { stroke-dasharray: 190; stroke-dashoffset: 190; animation: bk-draw .6s ease forwards; }
.bk__tick path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: bk-draw .4s .5s ease forwards; }
@keyframes bk-draw { to { stroke-dashoffset: 0; } }
.bk__next { display: grid; gap: 8px; margin-top: 8px; } .bk__next a { font-weight: 700; }
.bk--thanks .bk__main { grid-template-rows: minmax(0, 1fr); }
@media (max-width: 900px) {
  .bk__frame { grid-template-columns: minmax(0, 1fr); }
  .bk__side { display: none; }
  .bk--thanks .bk__side, .bk--page .bk__side { display: flex; padding: 22px 20px; gap: 10px; }
  .bk--page .bk__plan, .bk--page .bk__host { display: none; }
  .bk--page .bk__frame { height: auto; min-height: 0; grid-template-rows: auto minmax(640px, auto); }
  .bk--page .bk__main { min-height: 640px; }
}
@media (max-width: 720px) {
  dialog.bk { width: 100vw; height: 100dvh; clip-path: none; }
  dialog.bk[open] { animation: bk-up .3s cubic-bezier(.2,.8,.2,1); }
  @keyframes bk-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .bk__top { padding: 0 8px 0 20px; padding-top: env(safe-area-inset-top); }
  .bk__step { padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
  .bk__step--cal.is-on { padding: 12px 4px 0; }
  .bk__chip span { min-height: 50px; padding: 0 18px; }
  .bk__chips--rev { display: grid; grid-template-columns: 1fr 1fr; } .bk__chips--rev .bk__chip span { width: 100%; justify-content: center; }
  .bk__skel { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) { .bk__pair { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (prefers-reduced-motion: reduce) { dialog.bk[open], .bk__step.is-on { animation: none; } .bk__skel i { animation: none; } }

/* ---------- Nudge ---------- */
.nudge { position: fixed; left: 24px; bottom: 24px; z-index: 44; width: min(360px, calc(100vw - 24px)); display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 16px 40px 16px 16px; background: #fff; color: var(--ink); clip-path: var(--n16); box-shadow: 0 24px 50px -20px rgba(23,10,58,.55), 0 0 0 1px var(--line); opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; }
.nudge.is-in { opacity: 1; transform: none; }
.nudge__face { grid-row: span 2; width: 48px; height: 50px; object-fit: cover; clip-path: var(--n10); }
.nudge__line { margin: 0 0 6px; font: 600 .95rem/1.35 Poppins, sans-serif; }
.nudge__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; min-height: 32px; }
.nudge__x { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: none; color: var(--muted); cursor: pointer; }
@media (max-width: 1080px) { .nudge { left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .nudge { transition: none; } }

/* ---------- Client wall ---------- */
.clients { padding-block: clamp(48px, 6vw, 96px); background: linear-gradient(180deg, #fff, var(--mist)); overflow: hidden; }
.clients__head { text-align: center; } .clients__head h2 { max-width: 22ch; margin-inline: auto; }
.clients__sub { max-width: 64ch; margin: 0 auto clamp(24px, 3vw, 44px); color: var(--muted); }
.clients__belt { display: grid; gap: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients__row { display: flex; width: max-content; animation: cl-belt 70s linear infinite; }
.clients__row--rev { animation-direction: reverse; animation-duration: 82s; }
.clients__belt:hover .clients__row { animation-play-state: paused; }
.clients__track { list-style: none; margin: 0; padding: 0 8px; display: flex; gap: 16px; }
.clients__logo { display: grid; place-items: center; height: 104px; min-width: 176px; padding: 14px 26px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -18px rgba(23,10,58,.35); clip-path: var(--n16); }
.clients__logo img { width: auto; height: auto; max-height: 72px; max-width: 200px; object-fit: contain; }
@keyframes cl-belt { to { transform: translateX(-50%); } }
@media (max-width: 720px) { .clients__logo { height: 84px; min-width: 140px; padding: 10px 18px; } .clients__logo img { max-height: 58px; max-width: 150px; } .clients__row { animation-duration: 55s; } }
@media (prefers-reduced-motion: reduce) {
  .clients__belt { -webkit-mask-image: none; mask-image: none; }
  .clients__row { animation: none; width: auto; justify-content: center; } .clients__track { flex-wrap: wrap; justify-content: center; } .clients__track[aria-hidden] { display: none; }
}

/* ---------- Integration hub ---------- */
.hub { overflow: hidden; }
.hub__head { max-width: 860px; }
.hub__grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr) minmax(0, 320px); gap: clamp(20px, 3vw, 48px); align-items: center; margin-top: clamp(20px, 3vw, 40px); }
.hub__cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hub__catbtn { width: 100%; min-height: 64px; display: grid; gap: 2px; align-content: center; padding: 10px 14px; text-align: left; cursor: pointer; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #fff; clip-path: var(--n10); transition: background .25s, border-color .25s; }
.hub__catbtn b { font: 600 .92rem/1.25 Poppins, sans-serif; } .hub__catbtn small { font-size: .78rem; color: rgba(255,255,255,.62); }
.hub__catbtn:hover { border-color: rgba(255,255,255,.4); }
.hub__cat.is-on .hub__catbtn { background: #fff; border-color: #fff; color: var(--indigo); } .hub__cat.is-on .hub__catbtn small { color: var(--blue); }
.hub__panel { display: grid; margin-top: 14px; }
.hub__tools { grid-area: 1 / 1; padding: 18px; background: rgba(255,255,255,.06); visibility: hidden; opacity: 0; transition: opacity .35s; }
.hub__tools.is-on { visibility: visible; opacity: 1; }
.hub__tools p { margin: 0 0 12px; color: rgba(255,255,255,.88); font-size: .95rem; line-height: 1.5; }
.hub__tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hub__tools li { padding: 6px 10px; font: 600 .8rem Poppins, sans-serif; background: rgba(25,188,244,.14); color: #dff6ff; }
.hub__stage { position: relative; margin: 0 auto; width: 100%; max-width: 480px; aspect-ratio: 1; }
.hub__web { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub__ring { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1; stroke-dasharray: 2 6; }
.hub__spoke { stroke: rgba(255,255,255,.16); stroke-width: 1.5; transition: stroke .3s; }
.hub__spoke.is-on { stroke: var(--sky); stroke-width: 2.5; stroke-dasharray: 5 9; animation: hub-flow .9s linear infinite; }
@keyframes hub-flow { to { stroke-dashoffset: 28; } }
.hub__node { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; min-width: 78px; height: 40px; padding: 0 12px; font: 600 .82rem Poppins, sans-serif; color: #fff; background: var(--indigo-2); box-shadow: 0 0 0 1px rgba(255,255,255,.18); clip-path: var(--n10); transition: background .3s, color .3s; }
.hub__node.is-on { background: var(--sky); color: var(--indigo); }
.hub__node--0 { left: 50%; top: 12.5%; } .hub__node--1 { left: 82.5%; top: 31.25%; } .hub__node--2 { left: 82.5%; top: 68.75%; }
.hub__node--3 { left: 50%; top: 87.5%; } .hub__node--4 { left: 17.5%; top: 68.75%; } .hub__node--5 { left: 17.5%; top: 31.25%; }
.hub__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 37%; aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; background: #fff; color: var(--indigo); clip-path: var(--n22); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); padding: 10px; }
.hub__core img { width: 40px; height: 40px; margin-bottom: 4px; }
.hub__core b { font: 700 1.05rem Poppins, sans-serif; }
.hub__core small { font-size: .8rem; color: var(--blue); font-weight: 700; min-height: 2.5em; display: grid; place-items: center; }
.hub__core em { font-style: normal; font-size: .72rem; color: var(--muted); }
.hub__outhead { margin: 0 0 12px; font: 600 .78rem Poppins, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.hub__outs ol { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 2px; counter-reset: o; }
.hub__outs li { display: grid; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.hub__outs b { color: #fff; font: 600 .98rem Poppins, sans-serif; } .hub__outs span { color: rgba(255,255,255,.66); font-size: .88rem; }
@media (max-width: 1280px) {
  .hub__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hub__outs { grid-column: 1 / -1; } .hub__outs ol { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 860px) {
  .hub__grid { grid-template-columns: minmax(0, 1fr); }
  .hub__stage { order: -1; max-width: 340px; }
  .hub__node { min-width: 64px; height: 34px; font-size: .74rem; padding: 0 8px; }
  .hub__core b { font-size: .9rem; } .hub__core em { display: none; }
  .hub__cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub__catbtn { min-height: 56px; padding: 8px 10px; } .hub__catbtn small { display: none; }
  .hub__outs ol { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hub__outs .btn { width: 100%; }
}
@media (max-width: 420px) { .hub__cats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hub__outs ol { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hub__spoke.is-on { animation: none; } }

/* ---------- Legal ---------- */
.legal { padding-block: clamp(32px, 5vw, 72px); }
.legal .prose { max-width: 76ch; } .legal h2 { margin-top: 1.6em; font-size: 1.35rem; }
.svc-page > .clients, .svc-page > .hub { margin-inline: calc(var(--gut) * -1); }

.bk__mini { display: none; }
@media (max-width: 900px) {
  .bk__mini { list-style: none; display: grid; gap: 0; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
  .bk__mini li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
  .bk__mini b { font: 600 .82rem Poppins, sans-serif; color: var(--indigo); text-transform: uppercase; letter-spacing: .06em; }
}
@media (max-width: 860px) { .hub__core { width: 40%; } .hub__core img { width: 28px; height: 28px; } .hub__core small { font-size: .7rem; } }

/* ---------- Cookie choice (replaces HubSpot's banner) ---------- */
.consent { position: fixed; right: 24px; bottom: 24px; z-index: 46; width: min(420px, calc(100vw - 24px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 14px 14px 14px 18px; background: #fff; color: var(--ink); clip-path: var(--n16); box-shadow: 0 24px 50px -20px rgba(10,4,30,.6), 0 0 0 1px var(--line); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.consent.is-in { opacity: 1; transform: none; }
.consent__line { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.consent__line b { color: var(--ink); font: 600 .88rem Poppins, sans-serif; } .consent__line a { color: var(--blue); }
.consent__acts { display: flex; gap: 6px; }
.consent__acts button { min-height: 40px; padding: 0 14px; font: 600 .85rem Poppins, sans-serif; cursor: pointer; border: 0; white-space: nowrap; }
.consent__no { background: transparent; color: var(--muted); } .consent__no:hover { color: var(--ink); background: var(--mist); }
.consent__yes { background: var(--indigo); color: #fff; clip-path: var(--n10); } .consent__yes:hover { background: var(--blue); }
@media (max-width: 1080px) {
  .consent { left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .consent__acts { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
