/* =====================================================================
   Kestrel Physio & Rehab · clinic pieces for Strata
   Only what the clinic template adds to strata.css: a multi-page nav,
   inner-page night bands, the booking vignette in the product frame,
   clinic vignettes, people, treatments, the booking flow, fees and
   contact. Class names start with kx- (template) or bk- (booking) so
   they never collide with the style's own. Requires tokens.css and
   strata.css; the dials (token overrides) sit in each page's <head>.
   ===================================================================== */

@view-transition { navigation: auto; }
html.calm::view-transition-old(root), html.calm::view-transition-new(root) { animation: none; }
.live-off { --pc: var(--coral); }
.kx-narrow-only { display: none; }
.sample-pill { font: 500 10.5px/1 var(--mono); color: var(--muted); padding: 4px 7px; border-radius: 6px; border: 1px dashed var(--line-2); white-space: nowrap; }
.kx-fine { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--muted); }
.kx-fine a, .kx-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.kx-left { text-align: left; }
.kx-mt { margin-top: 28px; }
.kx-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 40px; padding: 16px 18px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14.5px; }
.kx-note svg { color: var(--accent); margin-top: 3px; }
.kx-note b { color: var(--ink); }

/* ---------------------------------------------------------------- nav: pages and a menu */
.nav-links a[aria-current="page"] { color: var(--hero-ink); background: rgba(255, 255, 255, 0.09); }
.kx-menu { display: none; position: relative; width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: var(--hero-ink); }
.kx-menu i, .kx-menu i::before { position: absolute; left: 11px; right: 11px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease), top 0.25s var(--ease); }
.kx-menu i { top: 15px; }
.kx-menu i::before { content: ""; left: 0; right: 0; top: 8px; }
.kx-menu[aria-expanded="true"] i { top: 19px; transform: rotate(45deg); }
.kx-menu[aria-expanded="true"] i::before { top: 0; transform: rotate(-90deg); }
@media (max-width: 1000px) {
  .kx-menu { display: block; }
  .nav-links { position: absolute; top: calc(100% + 6px); left: var(--gutter); right: var(--gutter); flex-direction: column; gap: 2px; margin: 0; padding: 10px; border-radius: var(--r-panel); background: color-mix(in srgb, var(--hero) 94%, transparent); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .nav.menu-open .nav-links { display: flex; }
  .nav.menu-open { background: color-mix(in srgb, var(--hero) 90%, transparent); }
  .nav-links a { padding: 13px 14px; font-size: 16px; color: var(--hero-ink); }
  .js:not(.calm) .nav.menu-open .nav-links { animation: pop 0.35s var(--ease); }
}
@media (max-width: 760px) { .kx-wide-only { display: none; } .kx-narrow-only { display: inline; } }
@media (max-width: 520px) { .nav-sign { display: inline-flex; padding: 8px 9px; } .nav-cta { gap: 4px; } .nav .btn-sm { padding: 8px 11px; } }
@media (max-width: 380px) { .nav-sign { display: none; } }

/* ---------------------------------------------------------------- inner-page night band */
.kx-sub { padding: calc(146px + env(safe-area-inset-top, 0px)) 0 104px; }
.kx-sub .h1 { font-size: clamp(42px, 6vw, 88px); max-width: 13ch; margin: 18px 0 22px; }
.kx-sub .hero-cta { margin-top: 30px; }
.kx-crumbs { display: inline-flex; gap: 10px; align-items: center; font: 500 12.5px/1 var(--mono); color: var(--hero-muted); }
.kx-crumbs a { color: var(--hero-muted); border-radius: 6px; }
.kx-crumbs a:hover { color: var(--hero-ink); }
.kx-crumbs [aria-current] { color: var(--hero-ink); }
.kx-first { padding-top: 88px; }
.kx-open { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font: 500 13px/1 var(--mono); color: var(--hero-ink); padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); }
@media (max-width: 640px) { .kx-sub { padding: calc(108px + env(safe-area-inset-top, 0px)) 0 76px; } .kx-first { padding-top: 64px; } }

/* ---------------------------------------------------------------- home frame: the booking flow */
.kx-bsteps { display: grid; gap: 4px; }
.kx-bs { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 9px; border-radius: 10px; font-size: 12.5px; }
.kx-bs b { display: block; font-weight: 600; font-size: 12.5px; }
.kx-bs small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-bn { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); font: 600 11px/1 var(--mono); color: var(--muted); background: var(--surface); }
.kx-bs.is-done .kx-bn { background: var(--ok); border-color: var(--ok); color: #fff; }
.kx-bs.is-now { background: var(--accent-soft); }
.kx-bs.is-now .kx-bn { border-color: var(--accent); color: var(--accent); }
.kx-bs .swap i { font-style: normal; }
.side .blk { margin-top: auto; }
.kx-week { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; flex: 1; }
.kx-wd { background: var(--sunk); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.kx-wd .colhead { margin-bottom: 0; }
.kx-ts { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font: 600 12.5px/1 var(--ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.kx-ts.x { background: transparent; border-style: dashed; color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.kx-pick { position: relative; animation: kxPick 9s var(--ease) infinite 1.4s; }
@keyframes kxPick {
  0%, 18% { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; transform: none; }
  24% { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: none; }
  29% { transform: scale(0.92); background: var(--accent-soft); }
  34%, 90% { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 8px 20px -8px var(--accent); transform: none; }
  96%, 100% { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
}
.kx-hold { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: 13px; color: var(--ink-2); animation: kxHold 9s var(--ease) infinite 1.4s; }
.kx-hold b { color: var(--ink); }
.kx-hold .btn { margin-left: auto; }
@keyframes kxHold { 0%, 34% { opacity: 0; transform: translateY(24px); } 42%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(24px); } }
.kx-loop-swap > :first-child { animation: swapA 9s infinite 1.4s; }
.kx-loop-swap > :nth-child(2) { animation: swapB 9s infinite 1.4s; }
.frame .main { position: relative; }
html.calm .kx-pick { animation: none; background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
html.calm .kx-hold { animation: none; opacity: 1; transform: none; }
html.calm .kx-loop-swap > :first-child { animation: none; opacity: 0; }
html.calm .kx-loop-swap > :nth-child(2) { animation: none; opacity: 1; }
@media (max-width: 1000px) { .kx-wd:nth-child(4) { display: none; } .kx-week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kx-wd:nth-child(1) { display: none; } .kx-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kx-hold { left: 12px; right: 12px; bottom: 10px; font-size: 12px; } .kx-hold .btn { display: none; } }

/* ---------------------------------------------------------------- bento vignettes */
/* exercise program */
.kx-prog-vis { display: flex; }
.kx-prog { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.kx-prog-h b { display: block; font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.kx-prog-h span { font-size: 12px; color: var(--muted); }
.kx-ex { display: grid; grid-template-columns: 22px 44px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.kx-ex b { display: block; font-size: 13px; font-weight: 600; }
.kx-ex small { font-size: 11.5px; color: var(--muted); }
.kx-ex-ck { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.kx-ex-ck::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.7 2.7L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; transform: scale(0); }
.kx-ex:nth-of-type(1) .kx-ex-ck::after, .kx-ex:nth-of-type(2) .kx-ex-ck::after { transform: none; }
.kx-ex:nth-of-type(3) .kx-ex-ck::after { animation: kxTick 8s var(--spring) infinite 1s; }
.kx-ex:nth-of-type(4) .kx-ex-ck::after { animation: kxTick2 8s var(--spring) infinite 1s; }
@keyframes kxTick { 0%, 24% { transform: scale(0); } 30%, 92% { transform: none; } 100% { transform: scale(0); } }
@keyframes kxTick2 { 0%, 46% { transform: scale(0); } 52%, 92% { transform: none; } 100% { transform: scale(0); } }
.kx-ex-v { position: relative; height: 34px; border-radius: 8px; background: radial-gradient(70% 90% at 30% 30%, color-mix(in srgb, var(--aqua) 45%, transparent), transparent 70%), radial-gradient(70% 90% at 80% 80%, color-mix(in srgb, var(--violet) 35%, transparent), transparent 70%), var(--sunk); }
.kx-ex-v.v2 { background: radial-gradient(70% 90% at 70% 30%, color-mix(in srgb, var(--coral) 40%, transparent), transparent 70%), radial-gradient(60% 80% at 20% 80%, color-mix(in srgb, var(--violet) 30%, transparent), transparent 70%), var(--sunk); }
.kx-ex-v.v3 { background: radial-gradient(70% 90% at 40% 70%, color-mix(in srgb, var(--violet) 40%, transparent), transparent 70%), var(--sunk); }
.kx-ex-v::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -5px 0 0 -3px; border: 5px solid transparent; border-left: 7px solid rgba(255, 255, 255, 0.95); border-right: 0; }
.kx-prog-f { display: grid; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 12.5px; font-weight: 600; }
.kx-prog-n > :first-child { animation: kxNA 8s infinite 1s; }
.kx-prog-n > :nth-child(2) { animation: kxNB 8s infinite 1s; }
@keyframes kxNA { 0%, 50% { opacity: 1; } 54%, 92% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes kxNB { 0%, 50% { opacity: 0; } 54%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
.kx-prog-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.kx-prog-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--aqua)); transform-origin: left; transform: scaleX(0.5); animation: kxBar 8s var(--ease) infinite 1s; }
@keyframes kxBar { 0%, 24% { transform: scaleX(0.5); } 30%, 46% { transform: scaleX(0.75); } 52%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0.5); } }
html.calm .kx-ex-ck::after { animation: none; transform: none; }
html.calm .kx-prog-n > :first-child { animation: none; opacity: 0; }
html.calm .kx-prog-n > :nth-child(2) { animation: none; opacity: 1; }
html.calm .kx-prog-bar i { animation: none; transform: none; }
/* claim */
.kx-claim { display: grid; gap: 10px; align-content: start; }
.kx-claim-card { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 62px; width: 112px; padding: 9px 10px; border-radius: 10px; color: #fff; font-size: 10px; background: linear-gradient(135deg, var(--violet), color-mix(in srgb, var(--violet) 55%, var(--hero))); box-shadow: var(--shadow-lg); animation: kxTap 6s var(--ease) infinite 0.6s; }
.kx-claim-card .mono { font-size: 9.5px; opacity: 0.85; }
.kx-chipcard { position: absolute; left: 10px; top: 10px; width: 18px; height: 13px; border-radius: 3px; background: linear-gradient(135deg, #ffd08f, #e9a650); }
@keyframes kxTap { 0%, 10% { transform: translate(0, 0) rotate(-6deg); } 22% { transform: translate(22px, 6px) rotate(0); } 30% { transform: translate(22px, 10px) rotate(0) scale(0.96); } 40%, 100% { transform: translate(0, 0) rotate(-6deg); } }
.kx-claim-rows { display: grid; gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; font-size: 13px; }
.kx-claim-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.kx-claim-rows div:first-child { border-top: 0; }
.kx-claim-rows dt { color: var(--ink-2); }
.kx-claim-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.kx-claim-rows .tot dd { font-size: 15px; }
.kx-claim-ok { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; border: 1px solid var(--line-2); font-weight: 600; font-size: 12.5px; animation: press 6s var(--ease) infinite 1s; }
html.calm .kx-claim-ok { animation: none; background: var(--ok); color: #fff; border-color: var(--ok); }
html.calm .kx-claim-card { animation: none; }
.kx-claim .sample, .kx-est-out .sample, .kx-map .sample { position: absolute; top: 12px; right: 12px; }
/* classes */
.kx-classes { display: grid; gap: 8px; align-content: start; }
.kx-cl { display: grid; grid-template-columns: 86px minmax(0, 1fr) 70px auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.kx-cl b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-cl .mono { font-size: 11.5px; color: var(--muted); }
.kx-cl .st { justify-self: end; }
.kx-spots { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.kx-spots i { display: block; height: 100%; width: calc((1 - var(--v)) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--aqua)); }
.kx-spots .kx-fill { width: 100%; transform-origin: left; animation: kxFill 7s var(--ease) infinite 1s; }
@keyframes kxFill { 0%, 30% { transform: scaleX(0.83); } 40%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0.83); } }
.kx-cl-swap { padding: 0; background: none; }
.kx-cl-swap b { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; line-height: 1.5; }
.kx-cl-swap > :first-child { animation: kxCA 7s infinite 1s; }
.kx-cl-swap > :nth-child(2) { animation: kxCB 7s infinite 1s; }
@keyframes kxCA { 0%, 34% { opacity: 1; } 40%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes kxCB { 0%, 34% { opacity: 0; } 40%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
html.calm .kx-spots .kx-fill { animation: none; transform: scaleX(0.83); }
html.calm .kx-cl-swap > :first-child { animation: none; opacity: 1; }
html.calm .kx-cl-swap > :nth-child(2) { animation: none; opacity: 0; }
@media (max-width: 520px) { .kx-cl { grid-template-columns: 72px minmax(0, 1fr) auto; } .kx-spots { display: none; } }

/* ---------------------------------------------------------------- people */
.kx-row-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 48px; }
.kx-row-head .h2 { margin-bottom: 0; }
.kx-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kx-person { gap: 16px; }
.kx-person[hidden] { display: none; }
.kx-person-top { display: flex; align-items: center; gap: 14px; }
.kx-person h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.kx-role { font-weight: 600; font-size: 14px; color: var(--accent); margin-top: 2px; }
.kx-quals { font-size: 13px; color: var(--muted); margin-top: 2px; }
.kx-av { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: #fff; font: 600 11px/1 var(--ui); letter-spacing: 0.02em; border: 2px solid var(--surface); }
.kx-av.t1 { background: linear-gradient(135deg, var(--violet), var(--aqua)); }
.kx-av.t2 { background: linear-gradient(135deg, var(--coral), #ffb03a); }
.kx-av.t3 { background: linear-gradient(135deg, #3d7bff, var(--violet)); }
.kx-av.t4 { background: linear-gradient(135deg, var(--aqua), #3d7bff); }
.kx-av-lg { width: 58px; height: 58px; font-size: 18px; border: 0; box-shadow: 0 10px 24px -10px var(--violet); }
.kx-av-xl { width: 84px; height: 84px; font-size: 26px; border: 0; }
.kx-reg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 12px; background: var(--sunk); font-size: 13px; }
.kx-reg .lab { margin: 0; }
.kx-reg .mono { font-size: 12.5px; color: var(--ink); }
.kx-reg small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.kx-about { color: var(--ink-2); font-size: 14.5px; }
.kx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.kx-person-row { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.kx-person-row .lab { margin-bottom: 6px; }
.kx-langs { font-size: 13.5px; color: var(--ink-2); }
.kx-week-strip { display: flex; gap: 4px; }
.kx-week-strip i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 500 10.5px/1 var(--mono); font-style: normal; color: var(--muted); background: var(--sunk); }
.kx-week-strip i.on { background: var(--accent); color: var(--on-accent); }
.kx-person .btn { align-self: flex-start; margin-top: auto; }
.kx-person-mini { gap: 14px; }
@media (max-width: 1080px) { .kx-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .kx-people { grid-template-columns: minmax(0, 1fr); } }
.kx-filters { display: grid; gap: 12px; margin-bottom: 32px; padding: 18px 20px; border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kx-filters[hidden] { display: none; }
.kx-frow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.kx-frow > .lab { margin: 0; min-width: 92px; }
.kx-frow .fchips { margin: 0; }
.kx-result { margin-left: auto; font: 500 12.5px/1 var(--mono); color: var(--muted); }
.kx-empty { display: grid; justify-items: center; gap: 12px; padding: 40px; border-radius: var(--r-tile); border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }
.kx-empty[hidden] { display: none; }

/* ---------------------------------------------------------------- funding list */
.kx-funds { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.kx-funds li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.kx-funds svg { color: var(--accent); }
@media (max-width: 520px) { .kx-funds { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- treatments page */
.kx-svc-nav { position: sticky; top: 68px; z-index: 30; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 8px; padding: 12px var(--gutter); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.kx-svc-nav::-webkit-scrollbar { display: none; }
.kx-svc-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 500; font-size: 13.5px; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.kx-svc-nav a:hover { border-color: var(--line-2); }
.kx-svc-nav a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.kx-svc-nav i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.kx-group { padding: 56px 0 8px; scroll-margin-top: 130px; }
.kx-group-h { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.kx-group-h h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; }
.kx-group-h .key { margin-left: auto; }
.kx-gdot { width: 14px; height: 14px; border-radius: 5px; background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 16%, transparent); }
.kx-svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kx-svc { gap: 16px; scroll-margin-top: 140px; }
.kx-svc:target { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-lg); }
.kx-svc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.kx-svc-h h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.kx-svc-p { color: var(--ink-2); font-size: 14.5px; }
.kx-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13.5px; }
.kx-facts div { display: contents; }
.kx-facts dt, .kx-facts dd { padding: 9px 12px; border-top: 1px solid var(--line); margin: 0; }
.kx-facts div:first-child dt, .kx-facts div:first-child dd { border-top: 0; }
.kx-facts dt { background: var(--sunk); color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; }
.kx-facts dd { color: var(--ink-2); }
.kx-facts div:first-child dd { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.kx-svc .lab { margin-bottom: 6px; }
.kx-svc-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.kx-avs { display: flex; }
.kx-avs .kx-av { margin-right: -6px; }
.kx-who { margin-left: 8px; font-size: 13px; color: var(--muted); }
.kx-svc-foot .btn { margin-left: auto; }
.kx-one { grid-template-columns: minmax(0, 1fr); }
.kx-one .kx-svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
.kx-one .kx-svc > * { grid-column: 1; }
.kx-one .kx-svc > .kx-facts, .kx-one .kx-svc > .kx-svc-foot { grid-column: 2; }
.kx-one .kx-svc > .kx-facts { grid-row: 1 / span 3; }
@media (max-width: 900px) { .kx-svc-grid { grid-template-columns: minmax(0, 1fr); } .kx-one .kx-svc { display: flex; } }
@media (max-width: 640px) { .kx-svc-nav { top: 60px; } }
.kx-cond-sec { padding-top: 40px; }
.kx-az { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 40px; }
.kx-az a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 550; font-size: 15px; transition: color 0.2s, padding 0.3s var(--ease); }
.kx-az a:hover { color: var(--accent); padding-left: 10px; }
@media (max-width: 900px) { .kx-az { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kx-az { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- booking page */
.kx-sub-book { padding-bottom: 236px; }
.kx-demo-pill { display: inline-flex; align-items: flex-start; gap: 10px; max-width: 640px; margin-top: 4px; padding: 11px 15px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); color: var(--hero-muted); font-size: 14px; line-height: 1.5; }
.kx-demo-pill b { color: var(--hero-ink); }
.kx-demo-pill .live { margin-top: 7px; }
.kx-bk-wrap { position: relative; z-index: 2; margin-top: -170px; }
.kx-bk-frame { box-shadow: var(--shadow-frame); }
.bk-app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 560px; }
.bk-side { display: flex; flex-direction: column; gap: 16px; padding: 18px 14px; border-right: 1px solid var(--line); background: var(--surface); min-width: 0; }
.bk-steps { list-style: none; display: grid; gap: 4px; }
.bk-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; transition: background-color 0.3s; }
.bk-steps li b { display: block; font-weight: 600; font-size: 13.5px; }
.bk-steps li small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; line-height: 1.35; }
.bk-n { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: 600 11.5px/1 var(--mono); transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.45s var(--spring); }
.bk-n svg { display: none; }
.bk-steps li.is-done .bk-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.bk-steps li.is-done .bk-n b { display: none; }
.bk-steps li.is-done .bk-n svg { display: block; }
.bk-steps li.is-now { background: var(--accent-soft); }
.bk-steps li.is-now .bk-n { border-color: var(--accent); color: var(--accent); transform: scale(1.08); }
.bk-steps li.is-now small { color: var(--accent); }
.bk-side .blk { margin-top: auto; }
.bk-sos { font-size: 12.5px; color: var(--muted); padding: 0 4px; }
.bk-sos b { color: var(--ink); }
.bk-main { padding: 26px 28px 28px; background: var(--bg); min-width: 0; }
.bk-panel fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.bk-h { display: block; padding: 0; font-size: clamp(24px, 2.4vw, 30px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 6px; }
.bk-h:focus { outline: none; }
.bk-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.bk-sub a { color: var(--accent); text-decoration: underline; }
.js:not(.calm) .bk-panel.in { animation: rise 0.6s var(--ease); }
.bk-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bk-opt { position: relative; display: block; cursor: pointer; }
.bk-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk-opt-in { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.25s, background-color 0.2s, transform 0.2s var(--ease); }
.bk-opt:hover .bk-opt-in { border-color: var(--line-2); }
.bk-opt input:active + .bk-opt-in { transform: scale(0.985); }
.bk-opt input:checked + .bk-opt-in { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bk-opt input:focus-visible + .bk-opt-in { outline: 2px solid var(--accent); outline-offset: 3px; }
.bk-radio { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: border-color 0.2s, background-color 0.2s; }
.bk-opt input:checked + .bk-opt-in .bk-radio { border: 5px solid var(--accent); }
.bk-box { border-radius: 5px; }
.bk-opt input:checked + .bk-opt-in .bk-box { border: 0; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.7 2.7L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.bk-opt-t { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; line-height: 1.3; }
.bk-opt-t small { display: block; margin-top: 2px; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.bk-opt-in .tag { flex: none; }
.bk-opt-in .kx-av { width: 34px; height: 34px; border: 0; font-size: 12px; }
.bk-wide { grid-column: 1 / -1; }
.bk-err { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--bad); }
.bk-field .bk-err { margin-top: 0; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 12px; margin: 0 -4px 8px; scrollbar-width: thin; }
.bk-day { flex: none; display: grid; justify-items: center; gap: 3px; min-width: 64px; padding: 10px 8px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease); }
.bk-day small { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.bk-day b { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-day em { font-style: normal; font: 500 10.5px/1 var(--mono); color: color-mix(in srgb, var(--ok) 75%, var(--ink)); }
.bk-day:hover:not(:disabled) { border-color: var(--line-2); }
.bk-day:active:not(:disabled) { transform: scale(0.96); }
.bk-day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.bk-day[aria-pressed="true"] small, .bk-day[aria-pressed="true"] b, .bk-day[aria-pressed="true"] em { color: var(--bg); }
.bk-day:disabled { cursor: not-allowed; background: transparent; border-style: dashed; }
.bk-day:disabled b, .bk-day:disabled em { color: var(--muted); }
.bk-slot-groups { display: grid; gap: 16px; }
.bk-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-slot { display: grid; justify-items: center; gap: 2px; min-width: 88px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font: 600 14px/1 var(--ui); color: var(--ink); font-variant-numeric: tabular-nums; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.25s, transform 0.2s var(--ease); }
.bk-slot small { font: 500 10.5px/1 var(--mono); color: var(--muted); }
.bk-slot:hover { border-color: var(--accent); }
.bk-slot:active { transform: scale(0.95); }
.bk-slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -8px var(--accent); }
.bk-slot[aria-pressed="true"] small { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
.bk-none { padding: 18px; border-radius: 13px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; }
.bk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.bk-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.bk-field > label, .bk-lab { font-weight: 600; font-size: 13.5px; }
.bk-field > small { font-size: 12.5px; color: var(--muted); }
.bk-field input:not([type="radio"]):not([type="checkbox"]), .bk-field textarea, .bk-select select { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 400 15px/1.3 var(--ui); transition: border-color 0.2s, box-shadow 0.2s; }
.bk-field input:focus, .bk-field textarea:focus, .bk-select select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.bk-field textarea { min-height: 96px; resize: vertical; }
.bk-field [aria-invalid="true"] { border-color: var(--bad); }
.bk-select { position: relative; display: block; }
.bk-select select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.bk-select::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border: solid var(--muted); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); pointer-events: none; }
.bk-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-check .bk-opt-in { align-items: flex-start; }
.bk-check .bk-box { margin-top: 2px; }
.bk-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; }
.bk-done { display: grid; justify-items: center; gap: 14px; padding: 12px 0; text-align: center; }
.bk-done-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--violet), var(--aqua)); box-shadow: 0 16px 40px -14px var(--violet); }
.js:not(.calm) .bk-done-ic { animation: pop 0.6s var(--spring) backwards 0.1s; }
.bk-sum { font-size: 16px; color: var(--ink-2); max-width: 46ch; }
.bk-demo { max-width: 52ch; padding: 11px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--ink-2); font-size: 13.5px; }
.bk-demo b { color: var(--ink); }
.bk-next { list-style: none; display: grid; gap: 8px; width: 100%; max-width: 520px; text-align: left; }
.bk-next li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.bk-next svg { margin-top: 2px; color: var(--accent); }
.bk-next a { color: var(--accent); text-decoration: underline; }
.bk-done-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 1000px) {
  .bk-app { grid-template-columns: minmax(0, 1fr); }
  .bk-side { display: contents; }
  .bk-steps { order: 0; padding: 14px 14px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .bk-main { order: 1; }
  .bk-side .blk { order: 2; margin: 0 16px 10px; }
  .bk-sos { order: 3; padding: 0 20px 18px; background: var(--bg); }
  .bk-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bk-steps li { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 8px 4px; }
  .bk-steps li small { display: none; }
  .bk-steps li b { font-size: 11.5px; }
  .bk-side .blk { margin-top: 0; }
}
@media (max-width: 640px) {
  .kx-sub-book { padding-bottom: 196px; }
  .kx-bk-wrap { margin-top: -150px; }
  .kx-bk-wrap .wrap { width: calc(100% - 16px); }
  .bk-main { padding: 20px 16px 22px; }
  .bk-opts, .bk-fields { grid-template-columns: minmax(0, 1fr); }
  .bk-steps li > span:last-child b { display: none; }
  .bk-steps li[aria-current] > span:last-child b { display: block; }
  .bk-steps { gap: 0; }
  .bk-slot { min-width: 80px; }
}

/* ---------------------------------------------------------------- new patients */
.kx-split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 32px; align-items: start; margin-top: 48px; }
.kx-pack fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.kx-ck { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.kx-ck input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kx-ck-box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); color: transparent; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.3s var(--spring); }
.kx-ck input:checked ~ .kx-ck-box { background: var(--ok); border-color: var(--ok); color: #fff; }
.js:not(.calm) .kx-ck input:checked ~ .kx-ck-box { animation: pop 0.35s var(--spring); }
.kx-ck input:focus-visible ~ .kx-ck-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.kx-ck:has(input:checked) { background: color-mix(in srgb, var(--ok-soft) 60%, var(--surface)); }
.kx-ck b { display: block; font-weight: 600; font-size: 14.5px; }
.kx-ck small { font-size: 13px; color: var(--muted); }
.kx-pack-f { display: flex; align-items: center; gap: 14px; font: 500 12.5px/1 var(--mono); color: var(--ink-2); }
.kx-pack-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.kx-pack-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--aqua)); transform-origin: left; transform: scaleX(0.2); transition: transform 0.6s var(--ease); }
.kx-forms { display: grid; gap: 8px; }
.kx-form-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--sunk); }
.kx-form-row svg { color: var(--accent); }
.kx-form-row b { display: block; font-weight: 600; font-size: 14px; }
.kx-form-row small { font-size: 11.5px; color: var(--muted); }
.kx-table-wrap { margin-top: 48px; overflow-x: auto; border-radius: var(--r-tile); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.kx-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; }
.kx-table caption { text-align: left; padding: 16px 20px 6px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kx-table th, .kx-table td { padding: 13px 20px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.kx-table thead th { font-size: 12px; font-weight: 600; color: var(--muted); border-top: 0; }
.kx-table tbody th { font-weight: 600; }
.kx-table tbody th small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.kx-table td { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.kx-table td:nth-child(2) { color: var(--ink); font-weight: 600; }
.kx-fund-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.kx-est { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; margin-top: 48px; padding: 30px; }
.kx-est-in { display: grid; gap: 20px; align-content: start; }
.kx-fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.kx-est-opts .bk-opt-in { padding: 10px 12px; }
.kx-seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: var(--sunk); border: 1px solid var(--line); }
.kx-seg label { position: relative; flex: 1 1 auto; }
.kx-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kx-seg span { display: block; padding: 9px 12px; border-radius: 10px; text-align: center; font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; white-space: nowrap; }
.kx-seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.kx-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.kx-est-out { position: relative; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 28px 22px; border-radius: var(--r-panel); text-align: center; color: var(--hero-ink); background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--violet) 30%, transparent), transparent 70%), radial-gradient(80% 60% at 0% 100%, color-mix(in srgb, var(--aqua) 18%, transparent), transparent 70%), var(--hero); overflow: hidden; }
.kx-est-out .lab { color: var(--hero-muted); margin: 0; }
.kx-big { display: inline-block; font-size: 64px; font-weight: 650; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.kx-big.bump { animation: kxBump 0.5s var(--ease); }
@keyframes kxBump { from { opacity: 0.3; transform: translateY(10px); filter: blur(4px); } }
.kx-est-break { display: grid; width: 100%; max-width: 320px; font-size: 13.5px; }
.kx-est-break div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--hero-muted); }
.kx-est-break b { color: var(--hero-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.kx-est-break .tot span { color: var(--hero-ink); font-weight: 600; }
.kx-est-out p { font-size: 13.5px; color: var(--hero-muted); max-width: 34ch; }
.kx-est-out .sample { color: var(--hero-muted); border-color: rgba(255, 255, 255, 0.2); }
html.calm .kx-big.bump { animation: none; }
/* telehealth call */
.kx-call { min-height: 360px; }
.kx-call-body { position: relative; flex: 1; display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 60% at 30% 30%, color-mix(in srgb, var(--violet) 26%, transparent), transparent 70%), radial-gradient(50% 60% at 80% 80%, color-mix(in srgb, var(--aqua) 16%, transparent), transparent 70%); }
.kx-call-main { display: grid; justify-items: center; gap: 8px; color: var(--hero-ink); text-align: center; }
.kx-call-main b { font-size: 17px; font-weight: 650; }
.kx-call-main span:not(.kx-av) { font-size: 13px; color: var(--hero-muted); }
.kx-call-me { position: absolute; right: 18px; bottom: 74px; width: 28%; aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: linear-gradient(160deg, #18324a, #0b1a28); display: grid; place-items: end center; overflow: hidden; }
.kx-figure { position: relative; width: 46%; height: 62%; }
.kx-figure::before { content: ""; position: absolute; left: 50%; top: 0; width: 36%; aspect-ratio: 1; margin-left: -18%; border-radius: 50%; background: color-mix(in srgb, var(--coral) 70%, #fff); }
.kx-figure i { position: absolute; left: 10%; right: 10%; bottom: 0; height: 56%; border-radius: 40% 40% 0 0; background: color-mix(in srgb, var(--coral) 55%, var(--hero)); }
.js:not(.calm) .kx-figure { animation: kxSquat 4s var(--ease) infinite; transform-origin: bottom; }
@keyframes kxSquat { 0%, 20%, 100% { transform: none; } 45%, 60% { transform: translateY(18%) scaleY(0.86); } }
.kx-call-live { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--hero-ink); font-size: 12px; }
.kx-call-bar { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 10px; }
.kx-call-bar i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--hero-ink); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
.kx-call-bar i.end { background: var(--bad); border-color: var(--bad); }
@media (max-width: 1000px) { .kx-split2, .kx-est { grid-template-columns: minmax(0, 1fr); } .kx-fund-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kx-fund-grid { grid-template-columns: minmax(0, 1fr); } .kx-est { padding: 20px; gap: 22px; } .kx-big { font-size: 54px; } .kx-call-me { width: 34%; bottom: 70px; } }

/* ---------------------------------------------------------------- contact */
.kx-visit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px; align-items: stretch; }
.kx-map { position: relative; overflow: hidden; isolation: isolate; min-height: 440px; border-radius: var(--r-tile); border: 1px solid var(--line); background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--line) 70%, transparent) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, color-mix(in srgb, var(--line) 70%, transparent) 0 1px, transparent 1px 28px), var(--sunk); box-shadow: var(--shadow); }
.kx-sea { position: absolute; left: -10%; right: -10%; bottom: -10%; height: 34%; background: linear-gradient(180deg, color-mix(in srgb, var(--aqua) 22%, var(--sunk)), color-mix(in srgb, var(--violet) 18%, var(--sunk))); transform: rotate(-4deg); }
.kx-sea::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 12px); animation: strata 10s linear infinite; }
.kx-road { position: absolute; background: var(--surface); border: 1px solid var(--line-2); }
.kx-road.r1 { left: -10%; right: -10%; bottom: 33%; height: 26px; transform: rotate(-4deg); }
.kx-road.r2 { left: -10%; right: -10%; top: 36%; height: 16px; transform: rotate(-4deg); }
.kx-road.r3 { top: -10%; bottom: 20%; left: 62%; width: 16px; transform: rotate(8deg); }
.kx-park { position: absolute; left: 12%; top: 8%; width: 30%; height: 22%; border-radius: 14px; background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 10%, transparent) 0 6px, transparent 6px 12px), var(--surface); border: 1px dashed var(--line-2); }
.kx-maplab { position: absolute; font-size: 11px; color: var(--muted); white-space: nowrap; }
.kx-maplab.l1 { left: 8%; bottom: 36%; transform: rotate(-4deg); }
.kx-maplab.l2 { left: 8%; top: 31%; transform: rotate(-4deg); }
.kx-maplab.l3 { left: 15%; top: 17%; }
.kx-maplab.l4 { right: 8%; bottom: 10%; transform: rotate(-4deg); }
.kx-bus { position: absolute; left: 46%; bottom: 25%; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 500 11px/1 var(--mono); color: var(--ink-2); box-shadow: var(--shadow); }
.kx-pin { position: absolute; left: 36%; top: 38%; display: grid; justify-items: center; }
.kx-pin > i { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--coral)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--violet) 20%, transparent); }
.js:not(.calm) .kx-pin > i { animation: kxPing 2.4s var(--ease) infinite; }
@keyframes kxPing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--violet) 45%, transparent); } 80%, 100% { box-shadow: 0 0 0 18px transparent; } }
.kx-pin-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 7px 11px 7px 7px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 13px; white-space: nowrap; }
.kx-pin-tag .logo-mark { width: 22px; height: 22px; border-radius: 6px; }
.kx-pin-tag .logo-mark svg { width: 14px; height: 14px; }
.kx-info { display: grid; gap: 12px; align-content: start; }
.kx-info-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kx-info-row .point-ic { margin: 0; }
.kx-info-row b { display: block; font-weight: 650; font-size: 15.5px; margin-bottom: 3px; }
.kx-info-row p { color: var(--ink-2); font-size: 14.5px; }
.kx-info-row a { color: var(--accent); font-weight: 600; font-size: 14px; }
.kx-hours-sec { padding-top: 40px; }
.kx-hours-sec .kx-split2 { margin-top: 0; }
.kx-hours { list-style: none; margin-top: 28px; border-radius: var(--r-tile); border: 1px solid var(--line); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.kx-hours li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.kx-hours li:first-child { border-top: 0; }
.kx-hours li > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.kx-hours li .mono { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.kx-hours li.is-today { background: var(--accent-soft); }
.kx-hours li.is-today .mono { color: var(--accent); }
.kx-stack { display: grid; gap: 18px; }
.kx-ah-sos { color: var(--hero-ink); background: radial-gradient(80% 70% at 100% 0%, color-mix(in srgb, var(--coral) 28%, transparent), transparent 70%), var(--hero); border-color: transparent; }
.kx-ah-sos .eyebrow { color: #ffb8a4; }
.kx-ah-sos .eyebrow::before { background: var(--coral); }
.kx-000 { font-size: 72px; font-weight: 650; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--hero-ink); border-radius: 10px; justify-self: start; }
.kx-ah-sos p { color: var(--hero-muted); font-size: 14.5px; }
.kx-num { font-size: 30px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; border-radius: 8px; align-self: flex-start; }
.kx-num:hover, .kx-000:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.kx-ph { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; }
.kx-msg { margin-top: 0; }
.kx-msg .sec-head .kx-note { margin-top: 28px; }
.kx-form-card { padding: 26px; }
.kx-done { display: grid; justify-items: start; gap: 10px; }
.kx-done[hidden] { display: none; }
.kx-done b { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.kx-done p { color: var(--muted); }
@media (max-width: 1000px) { .kx-visit { grid-template-columns: minmax(0, 1fr); } .kx-map { min-height: 340px; } }
@media (max-width: 640px) { .kx-000 { font-size: 60px; } .kx-form-card { padding: 20px; } .kx-pin { left: 22%; } }

/* ---------------------------------------------------------------- footer */
.kx-foot { padding-top: 56px; }
.kx-foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.kx-foot-col h2 { margin-bottom: 12px; }
.kx-foot-col p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.kx-foot-col p + p { margin-top: 10px; }
.kx-foot-col a:hover { color: var(--accent); }
.kx-foot-hours { list-style: none; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.kx-foot-hours li { display: flex; justify-content: space-between; gap: 10px; }
.kx-foot-hours li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.kx-foot-col.foot-links { display: grid; align-content: start; gap: 6px; }
.kx-foot-col.foot-links h2 { margin-bottom: 6px; }
.kx-foot-col.foot-links a[aria-current] { color: var(--accent); }
.kx-foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.kx-sos { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); max-width: 80ch; }
.kx-sos svg { margin-top: 2px; color: var(--coral); }
.kx-sos b { color: var(--ink); }
.kx-sos a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (max-width: 1000px) { .kx-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kx-foot-grid .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .kx-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------------------------------------------------------------- toast */
.kx-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: min(520px, calc(100% - 32px)); padding: 12px 16px; border-radius: 14px; background: var(--hero); color: var(--hero-ink); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: var(--shadow-lg); font-size: 14px; transform: translate(-50%, 140%); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s; pointer-events: none; }
.kx-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------------------------------------------------------------- calm */
html.calm .kx-pin > i, html.calm .kx-sea::before, html.calm .kx-figure { animation: none; }
html.calm .kx-az a:hover { padding-left: 4px; }

/* ---------------------------------------------------------------- review fixes */
.kx-avs .kx-av { margin-right: -3px; }
.kx-tip { padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-2); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.kx-tip .lab { margin-bottom: 4px; }
.kx-tip p { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 760px) { .kx-hold { display: none; } }
@media (max-width: 1000px) { .bk-app { background: var(--bg); } }
@media (max-width: 640px) { .kx-call-me { top: 14px; bottom: auto; right: 14px; width: 30%; } }
