/*
 * Buggie site, v4 "Try it right here".
 * Colours come from kit/tokens.css: near-white grounds, ink, graphite controls, red only for
 * recording, and one extra colour, jade (the app's accent-picker swatch), for "try" hints, the
 * visitor's progress and success. The page stays light in dark mode, like the app.
 */
:root {
  color-scheme: light;
  --ground: #f8f8f9;          /* --bk-project-window */
  --desk: #e9e7eb;            /* the simulated desktop: a calm, plain grey */
  --card: #ffffff;
  --ink: var(--bk-ink);       /* #242327 */
  --ink-2: #5f5b64;           /* secondary text, AA on every ground used here */
  --muted: var(--bk-muted);   /* #77757d, large or non-essential text only */
  --line: var(--bk-line);     /* #dedde1 */
  --graphite: var(--bk-accent);
  --graphite-strong: var(--bk-accent-strong);
  --jade: var(--bk-swatch-jade);   /* #299c7a: strokes, bars, fills */
  --jade-ink: #1f8265;             /* jade for text and white-on-jade (4.7:1) */
  --jade-soft: rgba(41, 156, 122, 0.1);
  --wrap: 1320px;
  --gut: 40px;
  --r-s: var(--bk-radius-small);
  --r-m: var(--bk-radius-medium);
  --r-l: var(--bk-radius-large);
  --r-w: var(--bk-radius-window);
  --shadow-soft: 0 1px 2px rgba(44, 39, 48, 0.06), 0 12px 32px -14px rgba(57, 52, 61, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; background: var(--ground); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.5 var(--bk-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 0.35em; margin: 0 0.1em;
  border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px var(--bk-accent-border), 0 1px 0 var(--bk-accent-border);
  font: 600 0.85em/1 var(--bk-font); color: var(--ink); vertical-align: 0.05em;
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--graphite); color: #fff; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
:where(a, button, select, summary, [tabindex], [contenteditable]):focus-visible { outline: 2px solid var(--graphite); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
@media (max-width: 1100px) { :root { --gut: 28px; } }
@media (max-width: 600px) { :root { --gut: 16px; } }

.eyebrow { color: #6f6a74; }   /* the kit eyebrow, one step darker for AA */

/* ---- Buttons --------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 0; border-radius: 10px;
  font: 600 15px/1 var(--bk-font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn--primary { background: var(--graphite); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px -8px rgba(57, 52, 61, 0.55); }
.btn--primary:hover { background: var(--graphite-strong); }
.btn--primary:active { transform: translateY(1px); }
.btn--sm { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 30px; border-radius: 12px; font-size: 17px; }
.linkbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.linkbtn:hover { background: var(--bk-accent-soft); color: var(--ink); }
.linkbtn:disabled { opacity: 0.4; cursor: default; background: transparent; }
.linkbtn[hidden] { display: none; }
.linkbtn svg { width: 12px; height: 12px; }

/* ---- Nav ------------------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 248, 249, 0.95);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}
.nav__in { display: flex; align-items: center; gap: 28px; height: 56px; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.nav__links { display: flex; gap: 4px; margin-right: auto; }
.nav__links a { padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; text-decoration: none; }
.nav__links a:hover { background: var(--bk-accent-soft); color: var(--ink); }
@media (max-width: 760px) { .nav__links { display: none; } .nav__in { justify-content: space-between; } }

/* ---- Hero ------------------------------------------------------------------------------------ */
.hero { padding-top: 26px; }
.hero__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 48px; align-items: end; }
.hero__h1 { margin-top: 12px; font-size: clamp(40px, 4.75vw, 70px); line-height: 0.98; letter-spacing: -0.047em; }
.hero__lead { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 20px; }
.hero__req { font-size: 13px; color: var(--ink-2); }
/* Laptop screens under ~880 px tall (MacBook Air 1470×830, 1440×800, 1366×768, 1280×720): a tighter
   head, so the whole stage fits under it on the first screen. */
@media (min-width: 1001px) and (max-height: 880px) {
  .hero { padding-top: 14px; }
  .hero__h1 { margin-top: 8px; font-size: clamp(40px, min(4.75vw, 7.4vh), 70px); }
  .hero__lead { font-size: 16px; line-height: 1.45; }
  .hero__cta { margin-top: 14px; }
  .hero__head { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); }
  .demo { margin-top: 10px; }
  .demo .stage { margin-top: 8px; }
}
@media (max-width: 1000px) {
  .hero__head { grid-template-columns: 1fr; gap: 16px; }
  .hero__side { max-width: 620px; }
}
@media (max-width: 600px) {
  .hero { padding-top: 16px; }
  .hero__h1 { margin-top: 8px; font-size: clamp(34px, 10vw, 42px); }
  .hero__head { gap: 10px; }
  .hero__lead { font-size: 15.5px; line-height: 1.45; }
  .hero__cta { margin-top: 12px; gap: 8px 12px; }
  .hero__cta .btn { height: 42px; }
  .hero__req { font-size: 12.5px; line-height: 1.35; }
  .hero__cta { flex-wrap: nowrap; }
  .hero__req > span:not(.hero__sep) { display: block; }
  .hero__sep { display: none; }
  .demo { margin-top: 16px; }
  .demo__label { font-size: 13px; }
}

.demo { margin-top: 20px; }
.demo__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.demo__label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.demo__narrow { display: none; }
/* Phones: the intro's step, one line above the stage (the coach docks below it, off the first screen). */
.phonecap { display: none; }
.try-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 4px var(--jade-soft); flex: none; }
.demo__note { margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }

/* ---- The stage: a simulated Mac desktop ------------------------------------------------------- */
.stage {
  position: relative;
  margin-top: 12px;
  /* The whole stage fits the first screen: the viewport minus the stage's own top (set by site.js),
     between a floor that keeps the shop legible and the full size. */
  height: clamp(430px, calc(100svh - var(--stage-top, 312px) - 10px), 580px);
  border-radius: var(--r-w);
  background: var(--desk);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(57, 52, 61, 0.05), 0 34px 70px -34px rgba(57, 52, 61, 0.42);
  overflow: hidden;
  isolation: isolate;
  container: stage / size;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.stage.is-paused *, .stage.is-paused *::before, .stage.is-paused *::after { animation-play-state: paused !important; }
@media (max-width: 1000px) { .stage { height: 560px; } }
@media (max-width: 600px) { .stage { height: 500px; border-radius: 14px; } }

.kz { zoom: 1; }
@container stage (min-width: 1000px) { .kz { zoom: 1.12; } }
@container stage (min-width: 1300px) { .kz { zoom: 1.2; } }


.st-menubar { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.st-menubar .bk-menubar { border-radius: var(--r-w) var(--r-w) 0 0; }
.bk-menubug { cursor: pointer; }
.bk-menubug:focus-visible { outline: 2px solid var(--graphite); outline-offset: 0; }
.menubug-logo { color: rgba(0, 0, 0, 0.85); }
@container stage (max-width: 760px) { .mb-x { display: none !important; } }
@container stage (max-width: 480px) { .clk-d { display: none; } }
@container stage (max-width: 420px) { .bk-menubar__left > span:nth-child(n+3) { display: none; } }
/* On a phone the markup strip keeps the tools the demo needs, so nothing is cut off. */
@container stage (max-width: 600px) { .mk-x { display: none !important; } }

/* A macOS window */
.win {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 10px; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 3px 10px rgba(44, 39, 48, 0.08), 0 22px 54px -16px rgba(44, 39, 48, 0.32);
}
.win__bar {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 70px; background: #efedef; box-shadow: inset 0 -1px 0 #d8d6da;
}
.win__title { color: #5f5b64; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__url {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; width: min(420px, 100%);
  height: 24px; padding: 0 12px; border-radius: 7px; background: #e3e1e5; color: #56525b; font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__url svg { width: 9px; height: 11px; flex: none; color: #8a858e; }

.browser { position: absolute; left: 3%; top: 42px; bottom: 16px; width: 61%; z-index: 2; }
@container stage (max-width: 999px) { .browser { left: 16px; right: 16px; width: auto; top: 36px; } }
@container stage (max-width: 600px) {
  .browser { left: 8px; right: 8px; top: 32px; bottom: 8px; }
  .browser .win__bar { height: 32px; padding: 0 56px; }
  .browser .bk-lights { left: 10px; gap: 6px; }
  .browser .bk-lights > i { width: 10px; height: 10px; }
}

/* ---- The demo shop (the product under test; not Buggie) ---------------------------------------- */
.page {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  background: #f7f6f3; outline: none;
  container: page / inline-size;
}
.page.is-drawable { cursor: crosshair; touch-action: none; }
.page.is-drawable.tool-text { cursor: text; }
.page:focus-visible { box-shadow: inset 0 0 0 2px var(--graphite); }
.shop { position: absolute; inset: 0; color: #28251f; font-size: 13px; line-height: 1.35; pointer-events: none; }
.shop__nav { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 22px; border-bottom: 1px solid #e5e2dc; }
.shop__logo { font-size: 20px; font-weight: 800; letter-spacing: -0.06em; }
.shop__links { display: flex; align-items: center; gap: 18px; font-size: 12px; color: #3d3932; }
.shop__bag { padding: 4px 10px; border-radius: 999px; background: #ebe8e2; }
.shop__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 296px); gap: 28px; padding: 22px 22px 0; }
.shop__crumb { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: #7a746c; }
.shop__h { margin: 6px 0 18px; font-size: 30px; font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; }
.shop__item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #e5e2dc; border-bottom: 1px solid #e5e2dc; }
.shop__img { display: grid; place-items: center; flex: none; width: 62px; height: 70px; border-radius: 8px; background: #ebe8e2; }
.shop__img svg { width: 42px; height: 42px; }
.shop__iteminfo { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.shop__iteminfo b { font-size: 14px; font-weight: 600; }
.shop__iteminfo span { font-size: 11px; color: #7a746c; }
.shop__qty { margin-top: 4px; }
.shop__price { font-size: 14px; }
.shop__sum { align-self: start; padding: 16px 18px 18px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e5e2dc; }
.shop__sumh { margin-bottom: 8px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.shop__row { display: flex; justify-content: space-between; padding: 4px 0; color: #4b463f; }
.shop__code { display: flex; gap: 6px; margin-top: 8px; }
.shop__field { display: flex; align-items: center; flex: 1; height: 30px; padding: 0 10px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #d9d4cc; font-size: 12px; }
.shop__apply { display: flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 6px; background: #ebe8e2; font-size: 12px; }
.shop__ok { margin: 5px 0 8px; font-size: 11px; color: #6b655d; }
.shop__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; padding-top: 10px; border-top: 1px solid #e5e2dc; }
.shop__total span { font-size: 14px; font-weight: 500; }
.shop__total b { font-size: 25px; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.shop__total b.is-fixed { color: var(--jade-ink); }
.shop__total.shop__new { animation: total-new 1.6s ease-out; border-radius: 6px; }
@keyframes total-new { 0% { background-color: rgba(41, 156, 122, 0.22); box-shadow: 0 0 0 6px rgba(41, 156, 122, 0.22); } 100% { background-color: transparent; box-shadow: 0 0 0 6px transparent; } }
.shop__save { margin-top: 2px; text-align: right; font-size: 11px; color: var(--jade-ink); font-weight: 600; }
.shop__cta { display: grid; place-items: center; height: 38px; margin-top: 12px; border-radius: 8px; background: #28251f; color: #fff; font-size: 13px; font-weight: 600; }
.shop__later { margin-top: 8px; text-align: center; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.shop__new { animation: shop-new 1.2s ease-out; }
@keyframes shop-new { from { background-color: rgba(41, 156, 122, 0.22); } to { background-color: transparent; } }

@container page (max-width: 560px) {
  .shop__body { grid-template-columns: 1fr; gap: 12px; padding: 14px 14px 0; }
  .shop__nav { height: 40px; padding: 0 14px; }
  .shop__links > span:not(.shop__bag) { display: none; }
  .shop__crumb, .shop__h { display: none; }
  .shop__item { padding: 8px 0; border-top: 0; }
  .shop__img { width: 44px; height: 48px; }
  .shop__img svg { width: 30px; height: 30px; }
  .shop__qty { display: none; }
  .shop__sum { padding: 12px 16px 14px; }
  .shop__sumh { margin-bottom: 4px; }
  .shop__row { padding: 3px 0; }
  .shop__row--ship { display: none; }
}
@container page (max-width: 440px) {
  .shop__item { display: none; }
}

/* The visitor's marks and notes (DrawingOverlay style: 6 pt, round caps) */
.ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.ink .mk { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ink .mk--marker { stroke-width: 21; stroke-opacity: 0.38; }
.ink .mk { transition: stroke 0.5s ease; }
.ink .mk.is-done { stroke: var(--jade); }
.fixcheck {
  position: absolute; z-index: 4; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--jade-ink); box-shadow: 0 0 0 3px #fff, 0 6px 14px -4px rgba(31, 130, 101, 0.6);
  opacity: 0; transform: scale(0.4); pointer-events: none;
}
.fixcheck svg { width: 16px; height: 16px; }
.fixcheck.is-on { opacity: 1; transform: none; transition: opacity 0.2s, transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.notes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.note {
  position: absolute; min-width: 8px; padding: 2px 4px; pointer-events: auto;
  font: 700 17px/1.2 var(--bk-font); white-space: pre; outline: none; cursor: text;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff;
}
.note:empty::before { content: "Type a note"; opacity: 0.45; }
.snapframe {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; opacity: 0;
  border-radius: 8px; box-shadow: 0 0 0 1.5px var(--graphite), 0 0 0 5px rgba(57, 52, 61, 0.1);
  background: rgba(255, 255, 255, 0.5);
}
.snapframe.is-snap { animation: snap 0.55s ease-out; }
@keyframes snap {
  0% { opacity: 0; transform: scale(1.04); }
  25% { opacity: 1; transform: scale(1); background: rgba(255, 255, 255, 0.85); }
  100% { opacity: 0; transform: scale(1); background: rgba(255, 255, 255, 0); }
}

/* ---- Buggie on the stage (kit components, placed) --------------------------------------------- */
.st-capbar, .st-markup, .st-quick { position: absolute; left: 33.5%; transform: translateX(-50%); }
@container stage (max-width: 999px) { .st-capbar, .st-markup, .st-quick { left: 50%; } }
.st-capbar { bottom: 20px; z-index: 12; }
.st-markup { bottom: 72px; z-index: 12; }
@container stage (min-width: 1000px) { .st-markup { bottom: 78px; } }
.st-markup.is-top { bottom: auto; top: 88px; }
@container stage (max-width: 999px) { .st-markup.is-top { top: 76px; } }
.st-quick { top: 52px; z-index: 14; }
@container stage (max-width: 999px) { .st-quick { top: 44px; } }
@container stage (max-width: 660px) {
  .st-quick { left: 8px; right: 8px; transform: none; }
  .st-quick .bk-quick { width: auto; }
  .st-quick .bk-quick.is-open .bk-quick__handle { width: calc(100% - 2px); }
  .st-quick .bk-quick__mark { display: none; }
  .st-quick .bk-quick__drawer { left: 6px; }
}
.st-fixmenu { position: absolute; left: 0; top: 0; z-index: 16; }
.st-latest { position: absolute; right: 12px; top: 34px; z-index: 18; }
@container stage (max-width: 600px) { .st-latest { right: 8px; left: 8px; top: 30px; } .st-latest .bk-latest { width: auto; } }
.st-latest .bk-latest { display: flex; flex-direction: column; }
.st-latest .bk-latest__header { flex: none; }
.st-latest .bk-inbox { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.st-latest .bk-row__note { max-width: 260px; }
.st-latest .bk-row__meta { min-width: 0; overflow: hidden; }
.st-latest .bk-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-latest .bk-row__thumb { background: #e7e5e9; }
.st-latest .bk-row__thumb .thumb { position: absolute; inset: 0; }

/* Show and hide Buggie's panels like the app: a short fade and lift. */
.pop { visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.2s; }
.pop > .kz { opacity: 0; transform: translateY(-6px) scale(0.985); transition: opacity 0.18s ease-out, transform 0.22s cubic-bezier(0.3, 0.7, 0.2, 1); }
.pop.is-shown { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.pop.is-shown > .kz { opacity: 1; transform: none; }
.st-capbar.pop > .kz, .st-markup.pop > .kz { transform: translateY(6px) scale(0.985); }
.st-capbar.pop.is-shown > .kz, .st-markup.pop.is-shown > .kz { transform: none; }
.st-quick > .kz { transform-origin: 50% 0; }
.st-latest > .kz { transform-origin: 100% 0; }

/* Kit components as real controls */
.bk-capturebar__btn, .bk-markup__tool, .bk-markup__dot, .bk-fixmenu__row, .bk-quick__mic, .bk-quick__enter,
.bk-actions__fixbtn, .bk-actions__chev, .bk-macbtn, .bk-iconbtn { cursor: pointer; }
.bk-fixmenu__row { width: 100%; text-align: left; }
.bk-fixmenu__row:focus-visible, .bk-markup__tool:focus-visible, .bk-capturebar__btn:focus-visible,
.bk-quick__mic:focus-visible, .bk-quick__enter:focus-visible, .bk-actions__fixbtn:focus-visible,
.bk-actions__chev:focus-visible, .bk-macbtn:focus-visible, .bk-iconbtn:focus-visible { outline: 2px solid var(--graphite); outline-offset: 1px; }
.bk-actions__fixbtn:focus-visible, .bk-actions__chev:focus-visible { outline-color: #fff; outline-offset: -3px; }
.bk-markup__dot { border: 0; padding: 0; }
.bk-markup__dot:focus-visible { outline-offset: 3px; }
.bk-macbtn { border: 0; }
.bk-macbtn:hover { background: #f4f3f5; }
.bk-macbtn.is-pressed { background: #e6e4e8; transform: scale(0.96); transition: transform 0.1s, background-color 0.1s; }
.bk-tip-anchor > .bk-tooltip { opacity: 0; transition: opacity 0.12s; }
.bk-tip-anchor:hover > .bk-tooltip, .bk-tip-anchor:focus-within > .bk-tooltip { opacity: 1; transition-delay: 0.35s; }
.bk-capturebar .bk-tip-anchor { display: block; }
.capbug-logo { color: currentColor; }
.bk-quick__note[contenteditable] { cursor: text; outline: none; -webkit-user-select: text; user-select: text; }
.bk-quick.is-typing { outline: 2px solid var(--jade); outline-offset: 3px; }
.bk-quick__title { color: #625d67; }

/* "Try" pulse on the control the visitor should use next (jade, like every try hint here) */
.is-nudge { position: relative; }
.is-nudge::after {
  content: ""; position: absolute; inset: -3px; border-radius: 9px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--jade); animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* What the tester says, when talking to capture */
.said {
  /* Sits in the empty lower part of the shop's left column, clear of the order summary and the capture bar. */
  position: absolute; left: calc(3% + 22px); bottom: 84px; z-index: 13; display: flex; align-items: baseline; gap: 10px;
  width: max-content; max-width: calc(61% - 44px - 296px - 28px); padding: 9px 16px 10px; border-radius: 12px;
  background: #fff; box-shadow: var(--shadow-soft), 0 0 0 1px rgba(0, 0, 0, 0.04);
  font-size: 15px; line-height: 1.35; opacity: 0; translate: 0 6px; transition: opacity 0.2s, translate 0.25s;
}
@container stage (min-width: 1000px) { .said { bottom: 92px; } }
@container stage (max-width: 999px) { .said { left: 38px; max-width: calc(100% - 32px - 44px - 296px - 28px); } }
.stage.is-docked .said { display: none; }
.said.is-on { opacity: 1; translate: 0 0; }
.said__who { flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.said__words { color: var(--ink); }
.said__words:empty::after, .said__words.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--ink); animation: bk-caret 1.06s steps(1) infinite; }

/* Latest content */
.q-wrap { padding: 2px 12px 12px; }
.q-wrap .bk-question { animation: row-in 0.35s cubic-bezier(0.3, 0.7, 0.2, 1); }
.q-done { padding: 0 12px 10px; font-size: 10px; color: var(--bk-muted); }
.bk-question__reply { margin: 0; }
input.bk-question__field { height: 22px; border: 0; font: 12px/14px var(--bk-font); outline: none; -webkit-user-select: text; user-select: text; cursor: text; }
input.bk-question__field::placeholder { color: var(--bk-faint); opacity: 1; }
input.bk-question__field:focus { box-shadow: inset 0 0 0 1px var(--bk-amber-border), 0 0 0 2px var(--jade); }
.bk-question__reply .bk-macbtn:disabled { opacity: 0.45; cursor: default; }
.bk-row { animation: row-in 0.35s cubic-bezier(0.3, 0.7, 0.2, 1); }
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bk-row.is-landed { animation: row-land 0.8s ease-out; }
@keyframes row-land { 0% { background: rgba(41, 156, 122, 0.18); } 100% { background: var(--bk-accent-soft); } }
.bk-status--done { color: var(--jade-ink); }
.bk-status--link { text-decoration: none; }

/* Thumbnails of the visitor's marks (a live copy of the page) */
.thumb { position: relative; overflow: hidden; background: #f7f6f3; }
.thumb__in { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.thumb__in > .shop, .thumb__in > .ink, .thumb__in > .notes { position: absolute; inset: 0; }

/* Coach marks (Cap's guided steps) */
.coach {
  position: absolute; left: 0; top: 0; z-index: 30;
  display: flex; align-items: flex-start; gap: 10px; width: max-content; max-width: 300px;
  padding: 12px 16px 13px 12px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 16px 36px -12px rgba(44, 39, 48, 0.38);
  font-size: 14.5px; line-height: 1.35; color: var(--ink);
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.2s;
}
.coach[hidden] { display: flex; opacity: 0; visibility: hidden; }
.coach.is-jump { transition: opacity 0.2s; }
.coach__n { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: -1px; border-radius: 50%; background: var(--graphite); color: #fff; font-size: 12px; font-weight: 700; }
.coach__t b { display: block; margin-bottom: 1px; color: var(--jade-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.coach.is-try .coach__n, .coach.is-win .coach__n { background: var(--jade-ink); }
.coach.is-intro .coach__n { width: 8px; height: 8px; margin: 6px 4px 0 3px; }   /* the intro counts nothing: the steps below do */
.coach__arrow { position: absolute; display: none; width: 76px; height: 57px; color: var(--jade); pointer-events: none; }
.coach.has-arrow-left .coach__arrow { display: block; right: calc(100% - 6px); top: 26px; }
.coach.has-arrow-right .coach__arrow { display: block; left: calc(100% - 6px); top: 26px; transform: scaleX(-1); }
.coach__q { quotes: "“" "”"; font-weight: 600; }
.coach__q.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--ink); animation: bk-caret 1.06s steps(1) infinite; }
/* Phones: the coach docks as a caption under the stage and never covers it. */
.coach-dock { display: none; }
.coach-dock:not(:empty) { display: block; margin-top: 8px; }
.coach-dock .coach { position: relative; width: 100%; max-width: none; min-height: 62px; transform: none; box-shadow: inset 0 0 0 1px var(--line); transition: opacity 0.2s; }
.coach-dock .coach .coach__arrow { display: none !important; }
.coach .btn { margin-top: 10px; height: 34px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
@container stage (max-width: 660px) { .coach { max-width: calc(100cqw - 16px); font-size: 14px; } }
@media (max-width: 600px) { .coach-dock .coach { font-size: 14.5px; } }

.cursor { position: absolute; left: 0; top: 0; z-index: 31; width: 17px; height: 21px; opacity: 0; pointer-events: none; transition: opacity 0.2s; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
.cursor.is-on { opacity: 1; }
.fly { position: absolute; left: 0; top: 0; z-index: 32; display: none; overflow: hidden; pointer-events: none; transform-origin: 0 0; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 14px 34px -8px rgba(44, 39, 48, 0.45); }
.fly.is-snap { box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(57, 52, 61, 0.35), 0 14px 34px -8px rgba(44, 39, 48, 0.45); }
.fly__card { display: flex; flex-direction: column; gap: 3px; width: 100%; height: 100%; padding: 12px 14px; background: var(--bk-surface-quick); font-size: 13px; }
.fly__card b { font-size: 10px; color: #66606a; }

/* ---- Chapters (Cap: steps, progress, skip, restart) ------------------------------------------ */
.chapters__ctl { display: flex; align-items: center; gap: 2px; margin-right: -8px; }
.chapters__count { margin-right: 6px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.step {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 10px;
  width: 100%; padding: 8px 14px 9px 10px; border: 0; border-radius: var(--r-l);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: left; cursor: pointer;
  transition: box-shadow 0.2s, background-color 0.2s;
}
.step:hover { background: #fdfdfd; box-shadow: inset 0 0 0 1px #cfccd3; }
.step__n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bk-accent-soft); color: var(--graphite); font-size: 12px; font-weight: 700; transition: background-color 0.2s, color 0.2s; }
.step__copy { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.step__copy b { flex: none; font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; }
.step__copy span { min-width: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step__bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: #ebe9ec; overflow: hidden; }
.step__bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--jade); transition: width 0.5s cubic-bezier(0.3, 0.7, 0.2, 1); }
.step.is-active { box-shadow: inset 0 0 0 1.5px var(--graphite); }
.step.is-active .step__n { background: var(--graphite); color: #fff; }
.step.is-active .step__bar i { width: 30%; }
.step.is-done .step__n { background: var(--jade-ink); color: #fff; }
.step.is-done .step__bar i { width: 100%; }
@media (max-width: 1100px) { .step__copy span { display: none; } }
@media (max-width: 600px) {
  .steps { gap: 6px; }
  .step { grid-template-columns: 1fr; justify-items: start; gap: 6px; padding: 9px 10px 10px; }
  .step__copy b { font-size: 13.5px; }
  .demo__top { flex-wrap: nowrap; gap: 0 8px; }
  .demo__wide { display: none; }
  .demo__narrow { display: inline; }
  .demo__label { align-items: flex-start; line-height: 1.35; }
  .demo__label .try-dot { margin-top: 5px; }
  .phonecap {
    display: block; height: 0; margin-top: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    font-size: 14px; font-weight: 600; line-height: 20px; color: var(--ink); opacity: 0; transition: opacity 0.2s;
  }
  .phonecap.is-on { height: 20px; margin-top: 6px; }
  .phonecap.is-on { opacity: 1; }
  .chapters__count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chapters__ctl { margin-right: -10px; }
}

/* ---- Try row (Talon's "Try a command" chips, Aqua's keycaps) ----------------------------------- */
.tryrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-height: 52px; margin-top: 10px; padding: 8px 10px 8px 16px; border-radius: var(--r-l); background: var(--jade-soft); }
.tryrow__say { font-size: 14.5px; font-weight: 600; color: var(--jade-ink); }
.tryrow__acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tryrow__acts .sep { font-size: 13px; color: var(--ink-2); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 13px; border: 0; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 130, 101, 0.35), 0 1px 2px rgba(0, 0, 0, 0.04);
  color: var(--ink); font-size: 13.5px; line-height: 1.25; text-align: left; cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--jade-ink), 0 2px 6px rgba(0, 0, 0, 0.06); }
.chip:active { transform: translateY(1px); }
.chip__kind { flex: none; padding: 2px 6px; border-radius: 5px; background: var(--bk-accent-soft); color: var(--ink-2); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.chip--primary { background: var(--graphite); color: #fff; box-shadow: none; font-weight: 600; }
.chip--primary:hover { background: var(--graphite-strong); box-shadow: none; }
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--jade-ink); font-weight: 600; }
.chip svg { width: 14px; height: 14px; flex: none; }
.keys { display: inline-flex; align-items: center; gap: 10px; padding: 3px 12px 3px 3px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 130, 101, 0.35); cursor: pointer; font-size: 14px; }
.keys:hover { box-shadow: inset 0 0 0 1.5px var(--jade-ink); }
.keycaps { display: inline-flex; gap: 5px; }
.keycap {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--bk-accent-border), 0 2px 0 var(--bk-accent-border);
  font: 600 16px/1 var(--bk-font); color: var(--ink); transition: transform 0.08s, box-shadow 0.08s, background-color 0.08s;
}
.keycap small { display: block; margin-top: 2px; font-size: 8.5px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; }
.keycap.is-down { transform: translateY(2px); background: #eef7f3; box-shadow: inset 0 0 0 1.5px var(--jade), 0 0 0 var(--bk-accent-border); }
@media (max-width: 600px) {
  .tryrow { padding: 12px; }
  .tryrow__acts { width: 100%; }
  .chip { width: 100%; }
  .tryrow__acts .chip--primary, .tryrow__acts .chip--half { width: auto; }
}

/* ---- Sections -------------------------------------------------------------------------------- */
.sec { padding-top: 120px; }
@media (max-width: 600px) { .sec { padding-top: 88px; } }
.sec__head { max-width: 780px; }
.sec__h2 { margin-top: 12px; font-size: clamp(32px, 3.7vw, 52px); }
.sec__lead { margin-top: 16px; max-width: 640px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 600px) { .sec__lead { font-size: 16.5px; } }

/* Where it goes */
.where { padding-top: 76px; }
@media (max-width: 600px) { .where { padding-top: 64px; } }
.mcp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; margin-top: 28px; border-radius: var(--r-l); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mcp__q { padding: 22px 24px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.mcp__q b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16px; }
.holds { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; margin: 0; padding: 22px 24px; list-style: none; border-left: 1px solid var(--line); }
.holds__h { flex-basis: 100%; margin-bottom: 2px; font-size: 16px; font-weight: 700; }
.holds li:not(.holds__h) { padding: 5px 10px; border-radius: 7px; background: var(--bk-accent-soft); font-size: 13.5px; color: var(--ink); }
@media (max-width: 900px) { .mcp { grid-template-columns: 1fr; } .holds { border-left: 0; border-top: 1px solid var(--line); } }

.dest { margin-top: 28px; }
.where .sec__head + .dest { margin-top: 24px; }
.dest__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.dest__tab { white-space: nowrap; }
.dest__tab {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 10px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.dest__tab svg { width: 16px; height: 16px; fill: currentColor; }
.dest__tab:hover { color: var(--ink); box-shadow: inset 0 0 0 1px #cfccd3; }
.dest__tab[aria-selected="true"] { background: var(--graphite); color: #fff; box-shadow: none; }
.dest__rail { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; }
.dest__progress { position: relative; flex: 1; height: 3px; border-radius: 3px; background: #e6e4e8; overflow: hidden; }
.dest__progress::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--graphite); border-radius: 3px; }
.iconbtn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); cursor: pointer; }
.iconbtn:hover { box-shadow: inset 0 0 0 1px #cfccd3; }
.iconbtn svg { width: 12px; height: 12px; }
.iconbtn .i-play { display: none; }
.iconbtn[aria-pressed="true"] .i-play { display: block; }
.iconbtn[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 900px) {
  /* One scrolling strip of tabs instead of uneven wrapping. */
  .dest__tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 4px; scrollbar-width: none; scroll-padding-inline: var(--gut);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
  .dest__tabs::after { content: ""; flex: none; width: 24px; }
  .dest__tabs::-webkit-scrollbar { display: none; }
  .dest__tab { flex: none; }
}
@media (max-width: 600px) {
  .dest__tab { height: 38px; padding: 0 12px 0 10px; font-size: 13.5px; gap: 6px; }
  .dest__tab svg { width: 14px; height: 14px; }
}

.mac { position: relative; border-radius: var(--r-w); background: var(--desk); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(57, 52, 61, 0.05), 0 34px 70px -34px rgba(57, 52, 61, 0.42); overflow: hidden; container: mac / inline-size; }
.mac__bar .bk-menubar { border-radius: var(--r-w) var(--r-w) 0 0; }
@container mac (min-width: 900px) { .mac__bar .kz { zoom: 1.12; } }
@container mac (max-width: 560px) { .mac__bar .mb-x { display: none; } }
@container mac (max-width: 480px) { .mac__bar .clk-d { display: none; } }
.mac__desk { position: relative; padding: 32px; }
@container mac (max-width: 560px) { .mac__desk { padding: 14px 10px 16px; } }

.dest__desk { min-height: 470px; }
.slide { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: center; }
.slide[hidden] { display: none; }
@container mac (max-width: 900px) { .slide { grid-template-columns: 1fr; gap: 16px; } .dest__desk { min-height: 0; } }
.slide__cap { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.slide__cap b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 18px; letter-spacing: -0.015em; line-height: 1.3; }
.slide .win { min-height: 400px; }
@container mac (max-width: 560px) { .slide .win { min-height: 0; } .slide .win__bar { padding: 0 60px; } }

[data-lines] > * { transition: opacity 0.35s, transform 0.35s; }
.is-playing [data-lines] > *:not(.is-in) { opacity: 0; transform: translateY(4px); }

.term__body { flex: 1; padding: 16px 20px 20px; background: #fff; color: #2c2730; font: 12.5px/1.75 var(--bk-font-mono); overflow-wrap: anywhere; }
.term__body p + p { margin-top: 1px; }
.t-dim { color: #827d86; }
.t-prompt { margin: 8px 0 6px !important; padding: 7px 10px; border-radius: 7px; background: #f3f2f4; color: var(--ink); }
.t-prompt span { color: #827d86; margin-right: 4px; }
.t-dot { color: var(--graphite); }
.term__body b { font-weight: 700; }
.t-out { padding-left: 1.5em; color: #6a656f; }
.t-ok { color: var(--jade-ink); font-weight: 600; }
@container mac (max-width: 560px) { .term__body { padding: 12px 12px 14px; font-size: 11px; line-height: 1.6; } }

.editor__main { display: grid; grid-template-columns: minmax(0, 1fr) 250px; flex: 1; min-height: 0; }
.editor__code { padding: 14px 0; background: #fff; font: 12.5px/1.8 var(--bk-font-mono); color: #2c2730; overflow: hidden; }
.c-file { padding: 0 16px 8px; color: #827d86; font-size: 11.5px; border-bottom: 1px solid #efedf0; margin-bottom: 8px !important; }
.editor__code pre { margin: 0; font: inherit; white-space: pre; }
.editor__code code { font: inherit; }
.c-ln { display: inline-block; width: 44px; padding-right: 14px; text-align: right; color: #aaa4ad; }
.c-del { box-shadow: inset 3px 0 0 #c9c5cc; }
.c-add { box-shadow: inset 3px 0 0 var(--jade); color: var(--jade-ink); }
.editor__code del { color: #8f8a93; text-decoration: line-through; text-decoration-color: #b9b4bc; }
.editor__code ins { text-decoration: none; background: rgba(41, 156, 122, 0.1); }
.editor__agent { padding: 14px 14px 16px; background: #f6f5f7; border-left: 1px solid #e6e3e8; font-size: 12.5px; line-height: 1.45; color: #3d3942; display: flex; flex-direction: column; gap: 8px; }
.a-h { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #827d86; }
.a-user { align-self: flex-end; max-width: 90%; padding: 6px 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #e3e0e6; }
.a-tool { font: 11.5px/1.4 var(--bk-font-mono); color: var(--graphite); }
.a-tool::before { content: "⏺ "; }
.a-quote { padding: 6px 8px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px #e3e0e6; font-size: 12px; }
@container mac (max-width: 700px) { .editor__main { grid-template-columns: 1fr; } .editor__agent { border-left: 0; border-top: 1px solid #e6e3e8; } .editor__code { font-size: 11px; } .c-ln { width: 30px; padding-right: 8px; } }

.web__body { flex: 1; padding: 22px 26px; background: #fff; }
@container mac (max-width: 560px) { .web__body { padding: 16px 14px; } }
.amp__top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px !important; font-size: 13px; color: #6a656f; }
.amp__top svg { width: 16px; height: 16px; fill: var(--ink); }
.amp__top b { color: var(--ink); font-size: 15px; }
.amp__top span { margin-left: 6px; padding-left: 10px; border-left: 1px solid #e3e0e6; }
.amp__title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.amp__meta { margin: 6px 0 16px !important; font-size: 13px; color: #6a656f; }
.amp__step { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #efedf0; font-size: 14px; color: #3d3942; }
.amp__step i { width: 8px; height: 8px; border-radius: 50%; background: #c9c5cc; flex: none; }
.amp__step--ok { color: var(--jade-ink); font-weight: 600; }
.amp__step--ok i { background: var(--jade); }
.issue__crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6a656f; }
.issue__crumb svg { width: 15px; height: 15px; fill: var(--ink); }
.issue__title { margin-top: 14px !important; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.issue__num { color: #8f8a93; font-weight: 400; }
.issue__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px !important; }
.issue__tags span { padding: 3px 9px; border-radius: 999px; background: #f1eff2; font-size: 12px; font-weight: 600; color: #4f4a54; }
.issue__tags .issue__open { background: var(--graphite); color: #fff; }
.issue__body { padding-top: 14px; border-top: 1px solid #efedf0; font-size: 14px; line-height: 1.55; color: #3d3942; }
.issue__body b { color: var(--ink); }
.issue__ev { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px #e6e3e8; font-size: 13px; color: #56515b; }
.issue__clip { position: relative; display: grid; place-items: center; flex: none; width: 120px; height: 76px; border-radius: 8px; background: #e9e7eb; color: rgba(0, 0, 0, 0.45); overflow: hidden; }
.issue__clip .bk-sf { width: 22px; height: 18px; }
.issue__clip .thumb { position: absolute; inset: 0; }

.tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 28px; }
.tools__h { font-size: 14px; font-weight: 600; color: var(--ink); }
.tools__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tools__list code { display: inline-block; padding: 4px 8px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 12.5px/1.3 var(--bk-font-mono); color: var(--ink); }
.tools__more { flex-basis: 100%; font-size: 14px; color: var(--ink-2); }

/* Privacy */
.privacy__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
@media (max-width: 1000px) { .privacy__grid { grid-template-columns: 1fr; gap: 32px; } }
.facts { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.facts li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--graphite); }
.facts li.is-rec::before { background: var(--bk-red); box-shadow: 0 0 0 3px var(--bk-red-soft); }
.facts b { color: var(--ink); font-weight: 650; }
.privacy__desk { padding: 26px 26px 0; }
@container mac (max-width: 560px) { .privacy__desk { padding: 12px 10px 0; } }
.pv-kz { zoom: 1; }
@container mac (min-width: 700px) { .pv-kz { zoom: 1.14; } }
.pv-project { width: auto; height: auto; grid-template-rows: 39px auto; border-radius: 10px 10px 0 0; }
.pv-project .bk-project__main { grid-template-columns: 180px 1px minmax(0, 1fr); }
@container mac (max-width: 640px) { .pv-project .bk-project__main { grid-template-columns: 1fr; } .pv-project .bk-side, .pv-project .bk-project__rule { display: none; } }
.pv-project .bk-side__spacer { display: none; }
.pv-content { padding: 26px 26px 30px; }
.pv-content .bk-cards { margin-top: 20px; }
.pv-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 14px; box-shadow: inset 0 -1px 0 var(--bk-project-row-line); }
.pv-row:last-child { box-shadow: none; }
.pv-row__copy { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.pv-row__copy b { font-size: 11px; font-weight: 600; color: var(--bk-project-ink); }
.pv-row__copy span { font-size: 9.5px; color: #77727b; }
.pv-group { padding: 12px 14px 2px; color: var(--bk-project-faint); font-size: 7.5px; font-weight: 700; letter-spacing: 1px; }
.pill { flex: none; padding: 2px 8px; border-radius: 999px; background: #eeecef; color: #56515b; font-size: 8.5px; font-weight: 600; }
.popup { position: relative; flex: none; display: inline-flex; }
.popup select {
  -webkit-appearance: none; appearance: none; height: 20px; padding: 0 22px 0 8px; border: 0; border-radius: 5px;
  background: #fff; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 0.5px 1.5px rgba(0, 0, 0, 0.14);
  font: 10px/20px var(--bk-font); color: rgba(0, 0, 0, 0.85); cursor: pointer;
}
.popup::after { content: ""; position: absolute; right: 7px; top: 5px; width: 6px; height: 10px; pointer-events: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'%3E%3Cpath d='M1 3.6 3 1.6l2 2M1 6.4l2 2 2-2' fill='none' stroke='%2339343d' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.switch { position: relative; flex: none; width: 28px; height: 16px; padding: 0; border: 0; border-radius: 999px; background: #d4d1d7; cursor: pointer; transition: background-color 0.18s; }
.switch i { position: absolute; left: 1.5px; top: 1.5px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 0.18s; }
.switch.is-on { background: var(--graphite); }
.switch.is-on i { transform: translateX(12px); }
.pv-tipanchor .pv-tip { top: calc(100% + 5px); left: auto; right: -30px; transform: none; opacity: 1; }
@container mac (max-width: 560px) { .pv-tipanchor .pv-tip { display: none; } }
.privacy__note { margin: 0; padding: 12px 26px 16px; background: #fff; box-shadow: 0 -1px 0 #e6e3e8; }
@container mac (max-width: 560px) { .privacy__note { padding: 10px 12px 12px; } }

/* Try now */
.trynow__in { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 24px 56px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.trynow__icon { --size: 104px; margin-bottom: 8px; }
.trynow .sec__lead { margin: 14px auto 28px; }
.trynow__req { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 600px) { .trynow__in { padding: 40px 18px 40px; border-radius: 18px; } .trynow__icon { --size: 88px; } }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; gap: 24px; } }
.faq__grid > :first-child { position: sticky; top: 88px; }
@media (max-width: 900px) { .faq__grid > :first-child { position: static; } }
.faq__list { border-radius: var(--r-l); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.faq__list details + details { border-top: 1px solid var(--line); }
.faq__list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; list-style: none; border-radius: var(--r-l); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.8px solid var(--ink-2); border-bottom: 1.8px solid var(--ink-2); transform: translateY(-3px) rotate(45deg); transition: transform 0.2s; }
.faq__list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__list details p { padding: 0 22px 20px; max-width: 680px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

/* Footer */
.foot { margin-top: 120px; padding: 32px 0 40px; border-top: 1px solid var(--line); }
.foot__in { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; }
.foot__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.foot__brand b { color: var(--ink); }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.foot__links a { color: var(--ink-2); text-decoration: none; }
.foot__links a:hover { color: var(--ink); text-decoration: underline; }
.foot__meta { flex-basis: 100%; font-size: 13px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .is-nudge::after { opacity: 1; }
}

/* Small phones (360–380 wide): keep the circled total on the first screen. */
@media (max-width: 380px) {
  .hero__h1 { font-size: 33px; }
  .hero__lead { font-size: 15px; line-height: 1.42; }
  .hero__cta { margin-top: 10px; }
  .demo { margin-top: 12px; }
  .stage { margin-top: 8px; }
}

/* A short stage (short laptop screens): Buggie's panels at 1:1 and a tighter shop. */
@container stage (min-width: 1000px) and (max-height: 540px) {
  .kz { zoom: 1; }
  .browser { top: 38px; bottom: 12px; }
  .browser .win__bar { height: 34px; }
  .shop__nav { height: 40px; }
  .shop__body { padding-top: 14px; }
  .shop__h { margin: 4px 0 12px; font-size: 26px; }
  .shop__sum { padding: 12px 16px 14px; }
  .shop__sumh { margin-bottom: 4px; }
  .shop__row { padding: 3px 0; }
  .shop__code { margin-top: 6px; }
  .shop__ok { margin: 4px 0 4px; }
  .shop__cta { height: 34px; margin-top: 10px; }
  .st-capbar { bottom: 14px; }
  .st-markup { bottom: 64px; }
  .said { bottom: 72px; }
}
