/* /kit/ "Pick your free AI pack" (owner, 2026-11-09: "why are u using the same style and assets ... make it INSANELY
   GOOD ... people have WOW effect"). This page has its own look, shared with no other funnel: the five packs are
   collectible cards, each with a foil-stamped emblem whose colours move with the pointer or the phone's tilt, on
   near-black, with one colour that means "act" (signal orange) and nothing else. Display type: Bricolage Grotesque.
   Body and controls: Hanken Grotesk. Prompts, commands and counters: IBM Plex Mono.
   Shape rule: cards and panels 22px, inputs and rows 14px, buttons and chips full pill.
   Layers: page 0, bar 40, unlock overlay 80, grain 90. Every motion here is turned off by prefers-reduced-motion. */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/assets/fonts/bricolage-200-800.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/assets/fonts/hanken-400-700.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/plexmono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/plexmono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #08090B; --ink-2: #0E1014; --ink-3: #161920; --edge: rgb(241 238 230 / .10); --edge-2: rgb(241 238 230 / .22);
  --bone: #F1EEE6; --bone-2: #B7B3A9; --bone-3: #86837B;
  --go: #FF5B1F; --go-hi: #FF7A45; --go-ink: #170700; --ok: #7BE0A5; --bad: #FF9A8A;
  --display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 22px; --r-sm: 14px; --ease: cubic-bezier(.16, 1, .3, 1); --gut: clamp(16px, 4vw, 40px);
  /* the foil: one rainbow, used on every emblem and card edge */
  --foil: repeating-linear-gradient(118deg, hsl(8 96% 62%) 0%, hsl(40 96% 60%) 7%, hsl(96 70% 58%) 14%, hsl(172 80% 56%) 21%, hsl(214 92% 66%) 28%, hsl(280 86% 72%) 35%, hsl(332 90% 66%) 42%, hsl(8 96% 62%) 49%);
}
* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--ink); color: var(--bone); font: 400 17px/1.55 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.flip { transform: rotate(180deg); }
:focus-visible { outline: 2px solid var(--go); outline-offset: 3px; }

/* the room: a soft light that follows the pointer and film grain, only where there is a pointer to follow. On a phone
   a full-screen blended layer costs paint time on every frame for an effect nobody sees at that size */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(640px circle at var(--mx, 50%) var(--my, 16%), rgb(241 238 230 / .075), transparent 70%); }
@media (hover: hover) and (pointer: fine) {
  body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
}

.kx-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 var(--gut); }
.kx-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -.03em; }
.kx-chip { padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--edge-2); color: var(--bone-2); font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
#app { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut) 72px; }
.kx-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 1180px; margin: 0 auto; padding: 22px var(--gut) 40px; border-top: 1px solid var(--edge); color: var(--bone-3); font-size: 13.5px; }
.kx-foot p { margin: 0; }
.kx-foot a { margin-left: 16px; color: var(--bone-2); }
.kx-foot a:first-child { margin-left: 0; }
body.has-bar .kx-foot { padding-bottom: 110px; }

/* ---------- type ---------- */
.kx-eye { margin: 0 0 14px; color: var(--bone-3); font: 500 12.5px/1.45 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.kx-h1 { margin: 0; font: 700 clamp(34px, 5.3vw, 68px)/.98 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.kx-h1 span { color: var(--bone-3); }
.kx-sub { margin: 16px 0 0; max-width: 34em; color: var(--bone-2); font-size: clamp(16px, 1.45vw, 19px); }
.kx-q { margin: 0 0 20px; font: 700 clamp(28px, 4vw, 48px)/1.02 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.kx-h2 { margin: 0 0 10px; font: 700 clamp(26px, 3.4vw, 42px)/1.04 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.kx-lede { margin: 14px 0 0; max-width: 32em; color: var(--bone-2); font-size: clamp(17px, 1.5vw, 20px); }
.kx-fine { margin: 12px 0 0; color: var(--bone-3); font-size: 13.5px; line-height: 1.5; }
.kx-fine a { color: var(--bone-2); }

/* ---------- buttons: orange is the only colour that means "act" ---------- */
.kx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 26px; border: 0; border-radius: 999px; background: var(--go); color: var(--go-ink); font: 700 17px/1.1 var(--display); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.kx-btn .ic { width: 20px; height: 20px; }
.kx-btn:active { transform: scale(.97); }
.kx-btn[disabled] { opacity: .6; cursor: progress; }
@media (hover: hover) { .kx-btn:hover { background: var(--go-hi); transform: translateY(-2px); } }
.kx-btn--wide { width: 100%; }
.kx-btn--line { background: none; color: var(--bone); box-shadow: inset 0 0 0 1px var(--edge-2); font-weight: 600; }
@media (hover: hover) { .kx-btn--line:hover { background: var(--ink-3); } }
.kx-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; color: var(--bone-2); font: 600 15px/1.2 var(--sans); text-decoration: underline; text-decoration-color: var(--edge-2); text-underline-offset: 4px; cursor: pointer; }
.kx-link:hover { color: var(--bone); }
.kx-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 0; border: 0; background: none; color: var(--bone-3); font-size: 14.5px; cursor: pointer; }
.kx-back:hover { color: var(--bone); }

/* ---------- the card. --px / --py (0 to 100) and --rx / --ry come from the pointer or the phone (src/kit.js).
   The emblem is a Phosphor icon used as a mask over the foil, so the glyph itself is the hologram. ---------- */
.kx-card { --px: 50; --py: 50; --rx: 0deg; --ry: 0deg; position: relative; display: block; padding: 0; border: 0; background: none; color: var(--bone); text-align: left; cursor: pointer; perspective: 900px; -webkit-tap-highlight-color: transparent; }
div.kx-card { cursor: default; }
.kx-face { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--r); overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 50% 0%, #20242D 0%, #101216 55%, #0A0B0E 100%);
  box-shadow: inset 0 0 0 1px var(--edge-2), inset 0 1px 0 rgb(255 255 255 / .18), 0 30px 50px -28px rgb(0 0 0 / .95);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .kx-face { will-change: transform; } }
.kx-card.is-gyro .kx-face { will-change: transform; }
.kx-card.is-tilt .kx-face { transition: transform .08s linear; }
/* the back pattern: a different one for each pack, drawn in hairlines and faded toward the edges */
.kx-face::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5; -webkit-mask: radial-gradient(75% 60% at 50% 40%, #000 30%, transparent 100%); mask: radial-gradient(75% 60% at 50% 40%, #000 30%, transparent 100%); }
.kx-face[data-p="clients"]::before { background: repeating-radial-gradient(circle at 50% 40%, transparent 0 17px, rgb(241 238 230 / .16) 17px 18px); }
.kx-face[data-p="video"]::before { background: repeating-linear-gradient(0deg, transparent 0 11px, rgb(241 238 230 / .14) 11px 12px); }
.kx-face[data-p="reply"]::before { background: radial-gradient(rgb(241 238 230 / .32) 1.2px, transparent 1.6px) 0 0 / 16px 16px; }
.kx-face[data-p="admin"]::before { background: linear-gradient(rgb(241 238 230 / .13) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgb(241 238 230 / .13) 1px, transparent 1px) 0 0 / 22px 22px; }
.kx-face[data-p="auto"]::before { background: repeating-linear-gradient(45deg, transparent 0 13px, rgb(241 238 230 / .14) 13px 14px); }
.kx-art { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; place-items: center; }
.kx-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; }
.kx-emb { position: relative; width: 58%; aspect-ratio: 1; overflow: hidden; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
  transform: translate(calc((var(--px) - 50) * .12%), calc((var(--py) - 50) * .12%)); }
/* the rainbow is three times the emblem and slides under the mask: moved by transform, so the phone's compositor does
   the work and nothing is repainted while it shimmers */
.kx-emb::before { content: ""; position: absolute; top: 0; left: 0; width: 300%; height: 300%; background: var(--foil); will-change: transform;
  transform: translate(calc(var(--px) * -.6666%), calc(var(--py) * -.6666%)); animation: kx-foil 7s ease-in-out infinite alternate; }
.kx-emb::after { content: ""; position: absolute; inset: 0; mix-blend-mode: soft-light;
  background: repeating-linear-gradient(62deg, rgb(255 255 255 / .3) 0 1px, transparent 1px 5px), linear-gradient(calc(110deg + var(--px) * 1.4deg), rgb(255 255 255 / .85) 0%, rgb(255 255 255 / 0) 34%, rgb(0 0 0 / .28) 62%, rgb(255 255 255 / .55) 100%); }
.kx-card.is-tilt .kx-emb::before { animation: none; }
/* phones: the sheen is a plain layer (no blend surface per emblem) */
@media (hover: none) { .kx-emb::after { mix-blend-mode: normal; opacity: .32; } }
@keyframes kx-foil { from { transform: translate(0%, -20%); } to { transform: translate(-66.66%, -46.66%); } }
/* a foil hairline around the card and a moving glare, both only while the card is being moved */
.kx-foil, .kx-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .35s; }
.kx-foil { padding: 1.5px; background: var(--foil); background-size: 300% 300%; background-position: calc(var(--px) * 1%) calc(var(--py) * 1%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.kx-glare { mix-blend-mode: soft-light; background: radial-gradient(circle at calc(var(--px) * 1%) calc(var(--py) * 1%), rgb(255 255 255 / .7), transparent 50%); }
.kx-card.is-tilt :is(.kx-foil, .kx-glare), .kx-card.is-on :is(.kx-foil, .kx-glare), .kx-card.is-lit .kx-foil { opacity: 1; }
.kx-no { position: absolute; z-index: 3; top: 14px; left: 16px; color: var(--bone-2); font: 500 12px/1 var(--mono); letter-spacing: .1em; }
.kx-cap { position: relative; z-index: 3; display: grid; gap: 5px; padding: 0 16px 16px; }
.kx-cap b { font: 700 20px/1.08 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.kx-cap small { color: var(--bone-3); font: 500 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- screen 1: the promise, then the deck. Tapping a card is the first answer ---------- */
.kx-land { padding-top: clamp(4px, 2vh, 24px); }
.kx-r .kx-land { display: none; }   /* a result link is opening: the printed first screen stays out of the way */
.kx-deck { --ch: clamp(220px, 41vh, 320px); display: flex; justify-content: center; margin: clamp(22px, 4.4vh, 46px) 0 0; padding: 0 6px; }
.kx-deck .kx-card { flex: none; width: calc(var(--ch) * .72); height: var(--ch); margin: 0 -5px; --tilt: calc((var(--i) - 2) * 3.4deg); --drop: calc((var(--i) - 2) * (var(--i) - 2) * 7px);
  transform: translateY(var(--drop)) rotate(var(--tilt)); transition: transform .45s var(--ease), opacity .4s, filter .4s; animation: kx-deal .7s var(--ease) backwards; animation-delay: calc(var(--i) * 55ms); }
@keyframes kx-deal { from { opacity: 0; transform: translateY(120px) rotate(calc(var(--tilt) * 3)) scale(.86); } }
@media (hover: hover) {
  .kx-deck:hover .kx-card:not(:hover) { filter: brightness(.55); }
  .kx-deck .kx-card:hover { z-index: 5; transform: translateY(-16px) rotate(0deg) scale(1.06); }
}
.kx-deck .kx-card.is-on { z-index: 6; filter: none; transform: translateY(-22px) rotate(0deg) scale(1.1); }
.kx-deck.is-picked .kx-card:not(.is-on) { opacity: 0; transform: translateY(60px) rotate(var(--tilt)) scale(.9); }
@media (max-width: 860px) {
  /* on a phone the deck is a stack of tickets: every answer on the first screen, one tap each */
  .kx-deck { flex-direction: column; gap: 8px; margin-top: 20px; padding: 0; }
  .kx-deck .kx-card { width: 100%; height: 62px; margin: 0; transform: none; perspective: none; animation-name: kx-deal-m; }
  .kx-deck .kx-face { flex-direction: row; align-items: center; border-radius: var(--r-sm); transform: none; }
  .kx-deck .kx-face::before { -webkit-mask: linear-gradient(90deg, #000, transparent 55%); mask: linear-gradient(90deg, #000, transparent 55%); }
  .kx-deck .kx-art { flex: none; width: 62px; height: 62px; }
  .kx-deck .kx-emb { width: 56%; }
  .kx-deck .kx-no { position: static; order: 3; margin: 0 16px 0 auto; }
  .kx-deck .kx-cap { padding: 0 0 0 4px; gap: 2px; }
  .kx-deck .kx-cap b { font-size: 17.5px; }
  .kx-deck .kx-cap small { font-size: 10.5px; }
  .kx-deck .kx-card.is-on { transform: scale(1.02); }
  .kx-deck.is-picked .kx-card:not(.is-on) { opacity: .25; transform: none; }
  .kx-h1 { letter-spacing: -.04em; }
  .kx-sub { margin-top: 12px; }
}
@keyframes kx-deal-m { from { opacity: 0; transform: translateX(-28px); } }
/* short phones: the whole first screen, all five answers included, still fits without a scroll */
@media (max-width: 860px) and (max-height: 690px) {
  .kx-top { height: 52px; }
  .kx-eye { margin-bottom: 8px; font-size: 11.5px; }
  .kx-h1 { font-size: 31px; }
  .kx-sub { margin-top: 8px; font-size: 15px; line-height: 1.45; }
  .kx-deck { gap: 6px; margin-top: 14px; }
  .kx-deck .kx-card { height: 54px; }
  .kx-deck .kx-art { width: 54px; height: 54px; }
  .kx-deck .kx-cap b { font-size: 16.5px; }
  .kx-opt { min-height: 58px; padding: 8px 14px; }
  .kx-opts { gap: 8px; }
  .kx-step .kx-q { margin-bottom: 14px; }
  .kx-crumb { margin-bottom: 14px; }
}

/* ---------- questions 2 to 4 ---------- */
.kx-step, .kx-gate { max-width: 680px; margin: 0 auto; padding-top: clamp(8px, 3vh, 40px); animation: kx-in .5s var(--ease) backwards; }
@keyframes kx-in { from { opacity: 0; transform: translateY(18px); } }
.kx-crumb { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.kx-thumb { position: relative; display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #20242D, #0B0C0F); box-shadow: inset 0 0 0 1px var(--edge-2); }
.kx-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kx-thumb .kx-emb { width: 56%; }
.kx-trail { flex: 1; min-width: 0; margin: 0; color: var(--bone-3); font: 500 12.5px/1.5 var(--mono); letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kx-trail b { color: var(--bone); font-weight: 500; }
.kx-dots { display: flex; gap: 6px; }
.kx-dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--edge-2); }
.kx-dots i.on { background: var(--bone); }
.kx-opts { display: grid; gap: 10px; }
.kx-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 12px 16px; border: 0; border-radius: var(--r-sm); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--edge); text-align: left; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; animation: kx-in .5s var(--ease) backwards; animation-delay: calc(var(--i) * 45ms + 80ms); }
.kx-oi { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--ink-3); color: var(--bone); }
.kx-oi .ic { width: 22px; height: 22px; }
.kx-opt b { display: block; font: 600 17.5px/1.25 var(--sans); }
.kx-opt small { display: block; margin-top: 2px; color: var(--bone-3); font-size: 14px; }
.kx-opt kbd { margin-left: auto; padding: 5px 8px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--edge-2); color: var(--bone-3); font: 500 12px/1 var(--mono); }
.kx-opt:active { transform: scale(.985); }
@media (hover: hover) { .kx-opt:hover { background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--edge-2); } }
.kx-opt.is-on { background: var(--ink-3); box-shadow: inset 0 0 0 2px var(--go); }
@media (hover: none) { .kx-opt kbd { display: none; } }

/* ---------- the pick: one card on the stage, the other four one tap away ---------- */
.kx-pick { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: clamp(4px, 2.4vh, 28px); animation: kx-in .5s var(--ease) backwards; }
.kx-stage { display: grid; place-items: center; }
.kx-big { width: min(100%, 340px, 52vh); aspect-ratio: 5 / 7; }
.kx-big .kx-cap { padding: 0 22px 22px; }
.kx-big .kx-cap b { font-size: clamp(24px, 2.8vw, 32px); }
.kx-big .kx-no { top: 20px; left: 22px; font-size: 13px; }
.kx-big.is-swap .kx-face { animation: kx-swap .55s var(--ease); }
@keyframes kx-swap { from { opacity: 0; transform: rotateY(-80deg) scale(.9); } }
.kx-tag { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 14px; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--edge-2); color: var(--bone); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.kx-tag .ic { width: 13px; height: 13px; }
.kx-tag.is-off { visibility: hidden; }
.kx-info .kx-q { margin-bottom: 12px; }
.kx-in { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.kx-in li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--edge); color: var(--bone-2); font: 500 12.5px/1 var(--mono); }
.kx-in .ic { width: 14px; height: 14px; }
.kx-rail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.kx-rail p { margin: 0 6px 0 0; color: var(--bone-3); font-size: 14px; }
.kx-rail button { padding: 0; border: 0; background: none; border-radius: 14px; cursor: pointer; opacity: .5; transition: opacity .2s, transform .2s var(--ease); }
.kx-rail button .kx-thumb { width: 52px; height: 52px; border-radius: 14px; }
.kx-rail button[aria-pressed="true"] { opacity: 1; }
.kx-rail button[aria-pressed="true"] .kx-thumb { box-shadow: inset 0 0 0 2px var(--bone); }
@media (hover: hover) { .kx-rail button:hover { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 860px) {
  .kx-pick { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .kx-big { width: min(46vw, 180px); }
  .kx-big .kx-cap { display: none; }
  .kx-info .kx-q { font-size: 30px; margin-bottom: 8px; }
  .kx-info .kx-sub { margin-top: 0; }
  .kx-tag { margin-bottom: 10px; }
  .kx-in { margin: 12px 0 16px; }
  .kx-info .kx-btn { width: 100%; }
  .kx-rail { margin-top: 16px; gap: 8px; }
  .kx-rail p { flex: 1 1 100%; margin: 0 0 2px; }
  .kx-rail button .kx-thumb { width: 48px; height: 48px; }
}

/* ---------- the gate ---------- */
.kx-gate { max-width: 520px; }
.kx-gate .kx-q { margin-bottom: 8px; }
.kx-gate .kx-sub { margin: 0 0 24px; font-size: 17px; }
.kx-locked { position: relative; width: 84px; height: 84px; margin-bottom: 18px; }
.kx-locked .kx-thumb { width: 84px; height: 84px; border-radius: 20px; }
.kx-locked > span { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bone); color: var(--ink); }
.kx-locked > span .ic { width: 18px; height: 18px; }
.kx-field { display: block; margin-bottom: 14px; }
.kx-field > span { display: block; margin-bottom: 7px; color: var(--bone-2); font-size: 14px; font-weight: 600; }
.kx-field em { color: var(--bone-3); font-style: normal; font-weight: 400; }
.kx-field input { width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid var(--edge-2); border-radius: var(--r-sm); background: var(--ink-2); color: var(--bone); font: 500 17px/1.2 var(--sans); outline: none; transition: border-color .2s; }
.kx-field input:focus { border-color: var(--bone); }
.kx-field input.bad { border-color: var(--bad); }
.kx-err { min-height: 22px; margin: 2px 0 8px; color: var(--bad); font-size: 14.5px; }

/* ---------- the unlock: the card spins in, a ring goes out, shards fly. About a second and a half, then the pack ---------- */
.kx-unlock { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgb(8 9 11 / .95); animation: kx-fade .3s both; }
.kx-unlock.is-out { animation: kx-fade .35s reverse both; }
@keyframes kx-fade { from { opacity: 0; } }
.kx-unlock canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.kx-ucard { position: relative; width: min(58vw, 300px, 46vh); aspect-ratio: 5 / 7; perspective: 1100px; }
.kx-ucard .kx-card { width: 100%; height: 100%; animation: kx-spin 1.25s var(--ease) both; }
@keyframes kx-spin { 0% { transform: rotateY(-200deg) scale(.5); opacity: 0; } 55% { transform: rotateY(12deg) scale(1.08); opacity: 1; } 75% { transform: rotateY(-5deg) scale(1.02); } 100% { transform: rotateY(0deg) scale(1); } }
.kx-ring { position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--bone); opacity: 0; animation: kx-ring .9s var(--ease) .62s both; }
@keyframes kx-ring { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.3); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); } }
.kx-uword { position: absolute; left: 0; right: 0; bottom: 9vh; margin: 0; text-align: center; color: var(--bone); font: 500 14px/1 var(--mono); letter-spacing: .32em; text-transform: uppercase; }

/* ---------- the result: the pack first ---------- */
.kx-res > * { animation: kx-in .7s var(--ease) backwards; }
.kx-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: clamp(8px, 3vh, 36px); }
.kx-hero .kx-h1 { font-size: clamp(38px, 5.6vw, 76px); }
.kx-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.kx-own { position: relative; display: grid; place-items: center; padding: 20px 0; }
.kx-own .kx-card { width: min(100%, 290px, 46vh); aspect-ratio: 5 / 7; transform: rotate(4deg); }
.kx-own .kx-cap { display: none; }   /* the pack's name is the headline next to it */
.kx-files { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.kx-files li { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; background: var(--bone); color: var(--ink); font: 500 13px/1 var(--mono); box-shadow: 0 14px 30px -12px rgb(0 0 0 / .8); animation: kx-pop .7s var(--ease) backwards; }
.kx-files li .ic { width: 15px; height: 15px; }
.kx-files li:nth-child(1) { left: 0; top: 16%; rotate: -7deg; animation-delay: .5s; }
.kx-files li:nth-child(2) { right: 0; top: 46%; rotate: 5deg; animation-delay: .62s; }
.kx-files li:nth-child(3) { left: 4%; bottom: 9%; rotate: 3deg; animation-delay: .74s; }
@keyframes kx-pop { from { opacity: 0; scale: .4; } }
@media (max-width: 860px) {
  .kx-hero { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .kx-own { order: -1; padding: 6px 0 4px; justify-items: start; }
  .kx-own .kx-card { width: 124px; transform: rotate(-4deg); }
  .kx-files li { font-size: 12px; padding: 8px 11px; }
  .kx-files li:nth-child(1) { left: 146px; top: 12%; }
  .kx-files li:nth-child(2) { left: 170px; right: auto; top: 42%; }
  .kx-files li:nth-child(3) { left: 142px; bottom: 12%; }
  .kx-dl .kx-btn { width: 100%; }
}

/* panels */
.kx-panel { margin-top: clamp(44px, 8vh, 92px); }
.kx-box { padding: clamp(18px, 3vw, 36px); border-radius: var(--r); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--edge); }
.kx-rise { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.kx-rise.in { opacity: 1; transform: none; }

/* start here: prompt 1, with their business already in it, typing itself out */
.kx-term { margin-top: 20px; border-radius: var(--r); background: #050607; box-shadow: inset 0 0 0 1px var(--edge-2); overflow: hidden; }
.kx-term-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--edge); }
.kx-term-h p { margin: 0; min-width: 0; color: var(--bone-2); font: 500 13px/1.3 var(--mono); }
.kx-pre { margin: 0; padding: 18px; color: var(--bone); font: 400 14.5px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.kx-term .kx-pre { font-size: 15px; }
.kx-pre mark { padding: 1px 3px; border-radius: 4px; background: rgb(241 238 230 / .14); color: var(--bone); }
.kx-pre mark.is-you { background: var(--bone); color: var(--ink); }
.kx-caret { display: inline-block; width: 9px; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--bone); animation: kx-blink 1s steps(2) infinite; }
@keyframes kx-blink { 50% { opacity: 0; } }
.kx-copy { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--edge-2); color: var(--bone); font: 600 14px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background .2s; }
.kx-copy .ic { width: 15px; height: 15px; }
@media (hover: hover) { .kx-copy:hover { background: var(--ink-3); } }
.kx-copy.is-done { color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.kx-copy--go { min-height: 44px; padding: 10px 18px; background: var(--go); color: var(--go-ink); box-shadow: none; font: 700 15px/1 var(--display); }
@media (hover: hover) { .kx-copy--go:hover { background: var(--go-hi); } }
.kx-copy--go.is-done { background: var(--ok); color: #04210F; box-shadow: none; }

/* how to use it: steps, and for the video pack the video it made */
.kx-how > div { min-width: 0; }
.kx-how { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.kx-how.has-vid { grid-template-columns: minmax(0, 1fr) minmax(0, 290px); }
.kx-steps { display: grid; grid-template-columns: minmax(0, 1fr); margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; }
.kx-steps li { position: relative; padding: 0 0 24px 52px; counter-increment: s; }
.kx-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--edge-2); color: var(--bone-2); font: 500 14px/1 var(--mono); }
.kx-steps li::after { content: ""; position: absolute; left: 16.5px; top: 36px; bottom: 4px; width: 1px; background: var(--edge); }
.kx-steps li:last-child { padding-bottom: 0; }
.kx-steps li:last-child::after { display: none; }
.kx-steps b { display: block; font: 600 18px/1.3 var(--sans); }
.kx-steps p { margin: 4px 0 0; max-width: 42em; color: var(--bone-2); }
.kx-code { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 12px; max-width: 560px; }
.kx-cl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 5px 5px 14px; border-radius: var(--r-sm); background: #050607; box-shadow: inset 0 0 0 1px var(--edge); }
.kx-cl code { min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--bone); font: 400 14px/1.5 var(--mono); }
.kx-vid { position: sticky; top: 20px; margin: 0; }
.kx-vid video { width: 100%; aspect-ratio: 9 / 16; border-radius: 28px; background: #000; object-fit: cover; box-shadow: 0 0 0 1px var(--edge-2), 0 0 0 9px #0B0C0F, 0 0 0 10px var(--edge-2), 0 40px 70px -30px #000; }
.kx-vid figcaption { margin-top: 24px; color: var(--bone-2); font-size: 14.5px; line-height: 1.5; }
.kx-vid figcaption b { display: block; margin-bottom: 4px; color: var(--bone); font: 700 18px/1.2 var(--display); letter-spacing: -.02em; }
.kx-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--edge); }
.kx-ask p { flex: 1 1 280px; margin: 0; font: 600 19px/1.3 var(--display); letter-spacing: -.02em; }
@media (max-width: 860px) { .kx-how.has-vid { grid-template-columns: minmax(0, 1fr); } .kx-vid { position: static; max-width: 240px; margin: 0 auto; } .kx-ask .kx-btn { width: 100%; } }

/* every prompt by name, each with its own copy button */
.kx-prompts { display: grid; gap: 8px; margin-top: 18px; }
.kx-prompt { border-radius: var(--r-sm); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--edge); overflow: hidden; }
.kx-prompt > summary { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; cursor: pointer; list-style: none; }
.kx-prompt > summary::-webkit-details-marker { display: none; }
.kx-prompt > summary > i { flex: none; width: 24px; color: var(--bone-3); font: 500 13px/1 var(--mono); font-style: normal; }
.kx-ps { display: grid; gap: 2px; flex: 1; min-width: 0; }
.kx-ps b { font: 600 17px/1.3 var(--sans); }
.kx-ps small { color: var(--bone-3); font-size: 14px; line-height: 1.4; }
.kx-prompt[open] > summary { border-bottom: 1px solid var(--edge); }
.kx-prompt .kx-pre { background: #050607; font-size: 14px; }
@media (max-width: 600px) { .kx-prompt > summary { gap: 10px; padding: 12px 10px 12px 14px; } .kx-prompt > summary > i { display: none; } .kx-pre { padding: 14px; } .kx-term .kx-pre { font-size: 14px; } }

/* ---------- the call: the words on the left, the calendar on the right ---------- */
.kx-book { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; scroll-margin-top: 16px; }
.kx-book .kx-eye { margin-bottom: 12px; }
.kx-book .kx-sub { font-size: 17px; }
.kx-host { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; }
.kx-host img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--ink-2), 0 0 0 3px var(--edge-2); }
.kx-host b { display: block; font: 700 18px/1.2 var(--display); letter-spacing: -.02em; }
.kx-host span { color: var(--bone-3); font-size: 14.5px; }
.kx-pre-p { margin: 0; color: var(--bone-2); }
.kx-leave { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.kx-leave li { display: flex; gap: 12px; align-items: flex-start; }
.kx-leave li .ic { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--ok); }
@media (max-width: 900px) { .kx-book { grid-template-columns: minmax(0, 1fr); } }
.book-cal { min-width: 0; padding: clamp(14px, 2vw, 22px); border-radius: 18px; background: #050607; box-shadow: inset 0 0 0 1px var(--edge); }
.sp { display: grid; gap: 16px; }
.sp-step { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; color: var(--bone-2); font: 500 12.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sp-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bone); color: var(--ink); font: 500 12px/1 var(--mono); letter-spacing: 0; }
.sp-tz { color: var(--bone-3); letter-spacing: 0; text-transform: none; }
.sp-load { margin: 0; color: var(--bone-2); }
.sp-load a { color: var(--bone); }
.sp-days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin; scrollbar-color: var(--edge-2) transparent; }
.sp-day { flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 2px; width: 74px; padding: 12px 6px 10px; border: 0; border-radius: var(--r-sm); background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--edge); cursor: pointer; transition: transform .2s var(--ease); }
.sp-dw, .sp-dm { color: var(--bone-3); font: 500 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sp-dd { color: var(--bone); font: 700 26px/1 var(--display); letter-spacing: -.03em; }
.sp-dc { margin-top: 4px; color: var(--ok); font: 500 11px/1 var(--mono); }
.sp-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.sp-time { min-height: 48px; padding: 10px; border: 0; border-radius: var(--r-sm); background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--edge); color: var(--bone); font: 600 16px/1 var(--sans); cursor: pointer; transition: transform .2s var(--ease); }
@media (hover: hover) { .sp-day:hover, .sp-time:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--edge-2); } }
.sp-day[aria-pressed="true"], .sp-time[aria-pressed="true"] { background: var(--bone); box-shadow: none; }
.sp-day[aria-pressed="true"] :is(.sp-dw, .sp-dm, .sp-dd, .sp-dc), .sp-time[aria-pressed="true"] { color: var(--ink); }
.sp-who { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--edge); }
.sp-who .kx-field { margin: 0; }
.sp-who .kx-field input { background: var(--ink-3); }
.field-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.sp-alt { margin: 0; }
.addcal { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* the other services, quieter */
.kx-more h2 { margin: 0 0 14px; color: var(--bone-3); font: 500 12.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.kx-alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.kx-alt { display: grid; gap: 6px; align-content: start; padding: 18px; border: 0; border-radius: var(--r); background: none; box-shadow: inset 0 0 0 1px var(--edge); text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s; }
@media (hover: hover) { .kx-alt:hover { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--edge-2); } }
.kx-alt small { color: var(--bone-3); font: 500 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.kx-alt b { font: 700 20px/1.15 var(--display); letter-spacing: -.025em; }
.kx-alt span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; color: var(--bone-2); font-size: 14px; }
.kx-alt span .ic { width: 14px; height: 14px; }
.kx-again { margin: 34px 0 0; text-align: center; }

/* the booking bar: up only while neither the pack's own button nor the calendar is on screen */
.kx-bar { position: fixed; z-index: 40; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: min(600px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 999px; background: rgb(22 25 32 / .92); box-shadow: inset 0 0 0 1px var(--edge-2), 0 18px 40px -10px rgb(0 0 0 / .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: translate(-50%, 170%); transition: transform .5s var(--ease); }
.kx-bar.on { transform: translate(-50%, 0); }
.kx-bar p { display: grid; gap: 1px; min-width: 0; margin: 0; color: var(--bone-2); font-size: 13.5px; line-height: 1.25; }
.kx-bar p b { color: var(--bone); font: 700 15.5px/1.2 var(--display); letter-spacing: -.01em; }
.kx-bar .kx-btn { min-height: 46px; padding: 10px 20px; font-size: 15.5px; }
@media (max-width: 520px) { .kx-bar p span { display: none; } .kx-bar p b { white-space: nowrap; } .kx-bar { padding-left: 18px; } }

/* the booked page */
.kx-done { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: clamp(10px, 4vh, 48px); }
.kx-done .kx-card { width: min(100%, 260px); aspect-ratio: 5 / 7; margin: 0 auto; transform: rotate(4deg); }
.kx-done .kx-eye { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); }
.kx-done h2 { margin: 30px 0 12px; font: 700 22px/1.2 var(--display); letter-spacing: -.02em; }
.kx-done .kx-back-btn { margin-top: 26px; }
@media (max-width: 860px) { .kx-done { grid-template-columns: minmax(0, 1fr); } .kx-done > .kx-card { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .kx-rise { opacity: 1; transform: none; }
  .kx-face { transform: none !important; }
}
@media (max-width: 600px) { html { scrollbar-width: none; } html::-webkit-scrollbar { display: none; } }
