/* ------------------------------------------------------------------
   Landing page (marketing) only. Loaded by layouts/landing; never by the
   app. Lives outside app/assets so `stylesheet_link_tag :app` does not
   pull it into every page.

   Colours, radii and motion come from the shared tokens (application.css).
   Tailwind only emits theme variables that a utility uses, so the few
   theme values the landing needs are mirrored here with the same values.
   The stage wallpapers and the fictional "Harbor" app drawn inside the
   scenes have their own palette below: illustration colours, used nowhere
   else.
   ------------------------------------------------------------------ */

.lp {
  --lp-radius-xl: 28px;
  --lp-radius-lg: 18px;
  --lp-radius-md: 12px;
  --lp-radius-sm: 8px;
  --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lp-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --lp-wrap: 76rem;
  --lp-gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --lp-band: #0d0e11;

  /* Stage wallpapers: only ever behind a product frame. */
  --wp-dusk:
    radial-gradient(120% 90% at 8% 105%, rgb(255 166 77 / 0.95) 0%, rgb(255 166 77 / 0) 52%),
    radial-gradient(90% 80% at 92% 0%, rgb(84 56 214 / 0.95) 0%, rgb(84 56 214 / 0) 60%),
    radial-gradient(80% 90% at 70% 100%, rgb(222 60 140 / 0.9) 0%, rgb(222 60 140 / 0) 62%),
    linear-gradient(160deg, #2a1b5e 0%, #6b2a86 45%, #c2477a 75%, #f08a4b 100%);
  --wp-tide:
    radial-gradient(100% 80% at 0% 0%, rgb(46 196 182 / 0.85) 0%, rgb(46 196 182 / 0) 58%),
    radial-gradient(90% 90% at 100% 100%, rgb(48 86 230 / 0.95) 0%, rgb(48 86 230 / 0) 60%),
    linear-gradient(150deg, #0c4a5a 0%, #11607a 40%, #1f4fb8 80%, #2a3aa6 100%);
  --wp-ember:
    radial-gradient(110% 90% at 100% 0%, rgb(255 197 49 / 0.8) 0%, rgb(255 197 49 / 0) 55%),
    radial-gradient(90% 90% at 0% 100%, rgb(214 66 52 / 0.9) 0%, rgb(214 66 52 / 0) 60%),
    linear-gradient(145deg, #5a1f2b 0%, #a3402f 50%, #e08a3a 100%);
  --wp-iris:
    radial-gradient(90% 80% at 0% 0%, rgb(255 120 190 / 0.75) 0%, rgb(255 120 190 / 0) 55%),
    radial-gradient(100% 90% at 100% 100%, rgb(60 120 255 / 0.85) 0%, rgb(60 120 255 / 0) 60%),
    linear-gradient(135deg, #3a1d78 0%, #5a2fb0 45%, #3b56d9 100%);
  --wp-slate:
    radial-gradient(100% 90% at 15% 0%, rgb(124 140 170 / 0.55) 0%, rgb(124 140 170 / 0) 60%),
    radial-gradient(100% 90% at 100% 100%, rgb(70 92 150 / 0.7) 0%, rgb(70 92 150 / 0) 60%),
    linear-gradient(160deg, #1d2330 0%, #2b3550 55%, #3b4a72 100%);

  /* The fictional app (Harbor) and terminal drawn inside scenes. */
  --hb-bg: #ffffff;
  --hb-side: #f6f7f9;
  --hb-ink: #14171c;
  --hb-muted: #687080;
  --hb-line: #e7e9ee;
  --hb-brand: #3651d4;
  --hb-brand-ink: #ffffff;
  --hb-ok: #12805c;
  --hb-ok-bg: #e3f4ec;
  --hb-a: #e8dcff;
  --hb-b: #d6ecff;
  --hb-c: #ffe3cc;
  --hb-d: #d9f2e4;
  --hb-e: #fff1bf;
  --hb-av-ink: #2b2f38;
  --tm-bg: #0f1013;
  --tm-ink: #e6e8ec;
  --tm-dim: #8a91a0;
  --tm-ok: #3ddc97;
  --tm-prompt: #d6a4ff;
  --chrome-bg: #1b1d22;
  --chrome-tab: #2a2d34;
  --chrome-bar: #24272d;
  --chrome-ink: #d7dae0;
  --chrome-dim: #8d939e;
  --light-r: #ff5f57;
  --light-y: #febc2e;
  --light-g: #28c840;

  /* Scene surfaces and marks drawn inside the product frames. */
  --sc-white: #ffffff;
  --sc-black: #0d0f12;
  --sc-soft: #c4c9d2;
  --bt-base: #3a3f4a;
  --bt-1: #59617a;
  --bt-3: #4c5466;
  --hb-skeleton: #e2e5ec;
  --sc-well: #15171c;
  --sc-busy: #2b2e35;
  --bt-2: #2d3546;
  --bt-live: #3a3b30;
  --hb-badge-local: #fff1bf;
  --hb-badge-local-ink: #6b4e00;
  --hb-badge-staging: #d6ecff;
  --hb-badge-staging-ink: #0f4c81;
  --wave: #8f7cff;
  --sc-faint: #6c7380;
  --fav-mail: #d1533f;
  --fav-docs: #3f7ad1;
  --fav-cal: #3fa36b;

  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}

.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp :where(h1, h2, h3, p, ul, ol, figure, dl, dd) { margin: 0; }
.lp :where(ul, ol) { padding: 0; list-style: none; }
.lp a:not(.btn) { color: inherit; }
.lp-main { display: block; outline: none; }
.lp .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.lp-wrap {
  width: 100%;
  max-width: calc(var(--lp-wrap) + var(--lp-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--lp-gutter);
}

/* ================================================================ type */

.lp-display,
.lp-h2 {
  font-weight: 640;
  color: var(--ink);
  text-wrap: balance;
  font-optical-sizing: auto;
}
.lp-display {
  font-size: clamp(2.625rem, 1.2rem + 5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.lp-h2 {
  font-size: clamp(2rem, 1.15rem + 3.3vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
}
.lp-lede {
  max-width: 36em;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--muted);
  text-wrap: pretty;
}
.lp-key { color: var(--ink); font-weight: 520; }

/* ================================================================ nav */

.lp-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0.75rem var(--lp-gutter) 0;
  pointer-events: none;
}
.lp-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  max-width: 50rem;
  height: 3.25rem;
  padding: 0 0.5rem 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: var(--overlay-shadow);
}
.lp-nav-home { display: inline-flex; align-items: center; min-height: 2.25rem; padding-inline: 0.25rem; border-radius: var(--lp-radius-sm); text-decoration: none; }
.lp-nav-home .wordmark { font-size: 0.9375rem; }
.lp-nav-links { display: flex; align-items: center; gap: 0.125rem; margin-left: auto; }
.lp-nav-actions { display: flex; align-items: center; gap: 0.375rem; margin-left: 0.5rem; }
.lp-nav-link {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding-inline: 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms var(--lp-ease), background-color 140ms var(--lp-ease);
}
.lp-nav-link:hover { color: var(--ink); background: rgb(255 255 255 / 0.06); }
.lp-nav-cta.btn { height: 2.25rem; border-radius: 999px; padding-inline: 1rem; font-size: 0.875rem; }

@media (max-width: 47.99rem) {
  .lp-nav-links { display: none; }
  .lp-nav-actions { margin-left: auto; }
  .lp-nav { padding-left: 0.75rem; }
}
@media (max-width: 22.5rem) {
  .lp-nav-signin { display: none; }
}

/* ================================================================ buttons */

.lp .btn-lg.lp-cta { height: 3rem; padding-inline: 1.375rem; border-radius: 999px; font-size: 1rem; font-weight: 600; }
.lp .lp-cta-quiet { height: 3rem; padding-inline: 1.25rem; border-radius: 999px; font-size: 1rem; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); }
.lp .lp-cta-quiet:hover { background: rgb(255 255 255 / 0.06); }
.lp .btn:focus-visible, .lp a:focus-visible, .lp button:focus-visible, .lp summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ================================================================ sections */

.lp-section {
  position: relative;
  padding-block: clamp(5rem, 3rem + 7vw, 10rem) 0;
}
.lp-section-band { background: var(--lp-band); padding-bottom: clamp(5rem, 3rem + 7vw, 10rem); margin-top: clamp(5rem, 3rem + 7vw, 10rem); }
.lp-section-band + .lp-section { padding-top: clamp(5rem, 3rem + 7vw, 10rem); }
.lp-head {
  display: grid;
  justify-items: center;
  gap: 1.125rem;
  text-align: center;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.lp-head .lp-lede { margin-inline: auto; }
.lp-head-start { justify-items: start; text-align: left; }
.lp-head-start .lp-lede { margin-inline: 0; }

/* One quiet sentence under a scene, its key phrase in ink. */
.lp-note {
  max-width: 40em;
  margin: clamp(1.75rem, 1rem + 2vw, 2.75rem) auto 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-align: center;
  color: var(--muted);
  text-wrap: pretty;
}

/* One reveal per section as it scrolls in. Browsers without scroll-driven
   animations simply show everything. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lp-reveal {
      animation: lp-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes lp-rise {
  from { opacity: 0; transform: translateY(2.5rem) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* ================================================================ stage + frame */

.lp-stage {
  position: relative;
  container-type: inline-size;
  margin: 0;
  padding: clamp(0.875rem, 0.2rem + 3.4cqi, 4rem);
  border-radius: var(--lp-radius-xl);
  overflow: hidden;
  isolation: isolate;
  background: var(--wp-slate);
}
.lp-stage-dusk { background: var(--wp-dusk); }
.lp-stage-tide { background: var(--wp-tide); }
.lp-stage-ember { background: var(--wp-ember); }
.lp-stage-slate { background: var(--wp-slate); }
.lp-stage-iris { background: var(--wp-iris); }
/* A soft vignette makes the wallpaper feel lit rather than flat. */
.lp-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 45%, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0) 70%),
    linear-gradient(to bottom, rgb(0 0 0 / 0), rgb(0 0 0 / 0.22));
  pointer-events: none;
}

.lp-pause {
  position: absolute;
  z-index: 6;
  right: 0.75rem;
  top: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: rgb(10 11 14 / 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--sc-white);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 140ms var(--lp-ease), background-color 140ms var(--lp-ease);
}
.lp-pause:hover, .lp-pause:focus-visible { opacity: 1; background: rgb(10 11 14 / 0.8); }
.lp-pause .lp-play-icon { display: none; }
.lp-pause[aria-pressed="true"] .lp-play-icon { display: block; }
.lp-pause[aria-pressed="true"] .lp-pause-icon { display: none; }
@media (prefers-reduced-motion: reduce) { .lp-pause { display: none; } }
/* Phones: room above the window for the pause button. */
@media (max-width: 40rem) { .lp-stage:has(.lp-pause) { padding-top: 3.25rem; } }

/* ================================================================ scene engine
   Everything inside a scene is sized in em from one font size that follows
   the stage width, so a scene is real, crisp layout at any size. */

.sc {
  --sc-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  font-size: clamp(5.5px, 1.04cqi, 14px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  user-select: none;
  -webkit-user-select: none;
}
.sc * { box-sizing: border-box; }
.sc i, .sc b { font-style: normal; }

/* Cue vocabulary. Anything with an "on" cue starts hidden; "gone" hides. */
.sc [data-cues*=" on"]:not(.on),
.sc [data-cues^="on"]:not(.on),
.sc .gone {
  opacity: 0;
  visibility: hidden;
}
.sc [data-cues] {
  transition:
    opacity 260ms var(--sc-ease),
    transform 420ms var(--sc-ease),
    visibility 0s linear 0s;
}
.sc [data-cues*=" on"]:not(.on),
.sc .gone {
  transition:
    opacity 200ms var(--sc-ease),
    transform 300ms var(--sc-ease),
    visibility 0s linear 200ms;
}
.is-paused .sc *, .is-paused .sc *::before, .is-paused .sc *::after { animation-play-state: paused !important; }

/* Text that swaps in place: every option shares one grid cell. */
.sc-swap { display: inline-grid; min-width: 0; }
.sc-swap > * { grid-area: 1 / 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-swap > .sc-y { transform: translateY(0.35em); }
.sc-swap > .sc-y.on { transform: none; }

/* The fake cursor: glides between targets, presses on clicks. */
.sc-cursor {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  width: 1.55em;
  height: 1.85em;
  margin: -0.15em 0 0 -0.2em;
  transform: translate(var(--x, 50%), var(--y, 50%));
  transition: transform 640ms cubic-bezier(0.45, 0, 0.2, 1), opacity 200ms ease;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}
.sc-cursor.on { opacity: 1; }
.sc-cursor.is-jump { transition: opacity 200ms ease; }
.sc-cursor svg {
  width: 100%;
  height: 100%;
  fill: var(--sc-black);
  stroke: var(--sc-white);
  filter: drop-shadow(0 0.15em 0.25em rgb(0 0 0 / 0.35));
  transition: transform 120ms ease;
  transform-origin: 20% 10%;
}
.sc-cursor.is-click svg { transform: scale(0.84); }
.sc-click {
  position: absolute;
  top: -0.9em;
  left: -0.95em;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  border: 0.14em solid var(--accent);
  opacity: 0;
  transform: scale(0.3);
}
.sc-cursor.is-click .sc-click { animation: sc-ripple 520ms var(--sc-ease); }
@keyframes sc-ripple {
  0% { opacity: 0.95; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(1.35); }
}
.is-pressed { transform: scale(0.96) !important; }

/* ---------------------------------------------------------------- window */

.sc-win {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  aspect-ratio: 16 / 10;
  border-radius: 1.1em;
  overflow: hidden;
  background: var(--chrome-bg);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.1),
    0 0.2em 0.5em rgb(0 0 0 / 0.25),
    0 3em 6em -1.5em rgb(0 0 0 / 0.6);
  color: var(--chrome-ink);
}
.sc-chrome {
  display: flex;
  align-items: flex-end;
  gap: 1.2em;
  height: 2.9em;
  padding: 0 1em;
}
.sc-lights { display: inline-flex; gap: 0.5em; align-self: center; }
.sc-lights i { width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--light-r); }
.sc-lights i:nth-child(2) { background: var(--light-y); }
.sc-lights i:nth-child(3) { background: var(--light-g); }
.sc-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-width: 0;
  width: 17em;
  height: 2.3em;
  padding: 0 0.9em;
  border-radius: 0.7em 0.7em 0 0;
  background: var(--chrome-bar);
  font-size: 0.95em;
}
.sc-tab .sc-swap { display: inline-flex; align-items: center; gap: 0.6em; min-width: 0; }
.sc-tab .sc-swap > .sc-fav { grid-area: auto; }
.sc-tab .sc-x { position: relative; }
.sc-tab .sc-x.sc-y { position: absolute; margin-left: 1.6em; }
.sc-fav { flex: none; width: 1em; height: 1em; border-radius: 0.3em; background: var(--hb-brand); }
.sc-bar {
  display: flex;
  align-items: center;
  gap: 0.8em;
  height: 2.9em;
  padding: 0 0.8em 0 1em;
  background: var(--chrome-bar);
  border-bottom: 1px solid rgb(0 0 0 / 0.4);
}
.sc-url {
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex: 1;
  min-width: 0;
  height: 2em;
  padding: 0 0.9em;
  border-radius: 1em;
  background: var(--chrome-bg);
  color: var(--chrome-dim);
  font-size: 0.95em;
}
.sc-url svg { width: 0.95em; height: 0.95em; }
.sc-ext {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 0.5em;
  color: var(--accent);
  background: rgb(255 197 49 / 0.12);
}
.sc-ext .lp-mark { width: 1.1em; height: 1.1em; }
.lp-mark { color: var(--accent); }
.lp-mark-cut { stroke: var(--canvas); }

.sc-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 22.5em;
  min-height: 0;
  background: var(--hb-bg);
}
.sc-view { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.sc-app, .sc-share { grid-area: 1 / 1; }
.sc-panel { grid-area: 1 / 2; border-left: 1px solid rgb(0 0 0 / 0.5); }

/* ---------------------------------------------------------------- Harbor app */

.hb {
  position: relative;
  display: grid;
  grid-template-columns: 12.5em 1fr;
  height: 100%;
  background: var(--hb-bg);
  color: var(--hb-ink);
}
.hb-side {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  padding: 1.3em 0.8em;
  background: var(--hb-side);
  border-right: 1px solid var(--hb-line);
}
.hb-brand { display: flex; align-items: center; gap: 0.6em; margin: 0 0.5em 1.1em; font-weight: 650; font-size: 1.05em; }
.hb-logo { width: 1.3em; height: 1.3em; border-radius: 0.4em; background: var(--hb-brand); box-shadow: inset 0 -0.35em 0 rgb(0 0 0 / 0.15); }
.hb-group { margin: 1em 0.6em 0.3em; font-size: 0.8em; font-weight: 600; color: var(--hb-muted); }
.hb-nav {
  padding: 0.5em 0.6em;
  border-radius: 0.5em;
  color: var(--hb-muted);
  font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease;
}
.hb-nav-on { background: var(--sc-white); color: var(--hb-ink); box-shadow: 0 0 0 1px var(--hb-line), 0 0.1em 0.2em rgb(0 0 0 / 0.04); }
.hb-main { position: relative; min-width: 0; }
.hb-page { position: absolute; inset: 0; padding: 1.8em 2em; }
.hb-page.gone, .hb-page[data-cues*=" on"]:not(.on) { transform: translateY(0.6em); }
.hb-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 1.3em; }
.hb-title { font-size: 1.55em; font-weight: 680; letter-spacing: -0.02em; }
.hb-count { margin-left: 0.4em; font-size: 0.6em; font-weight: 500; color: var(--hb-muted); letter-spacing: 0; }
.hb-btn {
  display: inline-flex;
  align-items: center;
  height: 2.4em;
  padding: 0 1em;
  border-radius: 0.6em;
  background: var(--hb-brand);
  color: var(--hb-brand-ink);
  font-weight: 600;
  white-space: nowrap;
  transition: transform 120ms ease;
}
.hb-btn-ghost { background: var(--sc-white); color: var(--hb-ink); box-shadow: inset 0 0 0 1px var(--hb-line); }
.hb-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9em;
  height: 3.3em;
  padding: 0 0.6em;
  border-bottom: 1px solid var(--hb-line);
}
.hb-dot { width: 0.7em; height: 0.7em; border-radius: 0.25em; background: var(--hb-brand); opacity: 0.35; }
.hb-name { font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-meta { color: var(--hb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-tag, .hb-role {
  justify-self: end;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  background: var(--hb-side);
  color: var(--hb-muted);
  font-size: 0.85em;
  font-weight: 560;
}
.hb-av {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  font-size: 0.85em;
  font-weight: 650;
  color: var(--hb-av-ink);
  background: var(--hb-a);
}
.hb-av-b { background: var(--hb-b); }
.hb-av-c { background: var(--hb-c); }
.hb-av-d { background: var(--hb-d); }
.hb-av-e { background: var(--hb-e); }
.hb-sub { margin: 1.4em 0 0.3em 0.6em; font-size: 0.85em; font-weight: 600; color: var(--hb-muted); }
.hb-pending { position: relative; border-radius: 0.6em; }
.hb-pending[data-cues*=" on"]:not(.on) { transform: translateY(-0.5em); }
.hb-pending.ring { box-shadow: 0 0 0 0.18em var(--accent); background: rgb(255 197 49 / 0.08); border-color: transparent; }
.hb-scrim { position: absolute; inset: 0; z-index: 3; background: rgb(15 18 25 / 0.35); }
.hb-dialog {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 0.55em;
  width: 25em;
  padding: 1.5em;
  border-radius: 1em;
  background: var(--sc-white);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 1.5em 3em -0.5em rgb(15 18 25 / 0.35);
  transform: translate(-50%, -50%);
}
.hb-dialog[data-cues*=" on"]:not(.on) { transform: translate(-50%, -46%) scale(0.97); }
.hb-dialog-title { margin-bottom: 0.5em; font-size: 1.2em; font-weight: 680; letter-spacing: -0.015em; }
.hb-label { font-size: 0.85em; font-weight: 600; color: var(--hb-muted); }
.hb-input {
  display: flex;
  align-items: center;
  height: 2.6em;
  padding: 0 0.8em;
  border-radius: 0.6em;
  box-shadow: inset 0 0 0 1px var(--hb-line);
  color: var(--hb-ink);
  transition: box-shadow 160ms ease;
}
.hb-input.focus { box-shadow: inset 0 0 0 1px var(--hb-brand), 0 0 0 0.2em rgb(54 81 212 / 0.18); }
.hb-caret { display: none; width: 1px; height: 1.2em; margin-left: 1px; background: var(--hb-ink); }
.hb-input.focus .hb-caret { display: block; animation: sc-blink 1s steps(1) infinite; }
.hb-select { color: var(--hb-muted); }
.hb-dialog-actions { display: flex; justify-content: flex-end; gap: 0.6em; margin-top: 0.8em; }
.hb-toast {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 1.4em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.1em;
  border-radius: 0.7em;
  background: var(--hb-ink);
  color: var(--sc-white);
  font-weight: 560;
  white-space: nowrap;
  transform: translateX(-50%);
}
.hb-toast[data-cues*=" on"]:not(.on) { transform: translate(-50%, -0.6em); }
.hb-toast svg { width: 1.1em; height: 1.1em; color: var(--tm-ok); }
@keyframes sc-blink { 50% { opacity: 0; } }

/* Countdown before recording starts (not part of the video). */
.sc-count {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgb(8 9 11 / 0.55);
}
.sc-count span {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 4.6em;
  height: 4.6em;
  border-radius: 50%;
  background: rgb(8 9 11 / 0.7);
  color: var(--sc-white);
  font-size: 1.9em;
  font-weight: 650;
  box-shadow: 0 0 0 0.12em var(--accent);
}
.sc-count span:not(.on) { transform: scale(0.8); }

/* Captions burned into the recording. */
.sc-captions {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 1.5em;
  display: grid;
  justify-items: center;
  pointer-events: none;
}
.sc-cue {
  grid-area: 1 / 1;
  max-width: 88%;
  padding: 0.35em 0.75em;
  border-radius: 0.45em;
  background: rgb(8 9 11 / 0.82);
  color: var(--sc-white);
  font-size: 1.2em;
  font-weight: 540;
  letter-spacing: -0.01em;
  text-align: center;
}
.sc-cue:not(.on) { transform: translateY(0.25em); }
/* Lines that replace each other in one spot: the old one leaves at once so
   two never blend. */
.sc .sc-cue:not(.on), .sc .sh-line:not(.on) { transition: none; }

/* ---------------------------------------------------------------- side panel */

.cp {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.1em;
  background: var(--surface);
  color: var(--ink);
}
.cp-head { display: flex; align-items: center; gap: 0.6em; padding-bottom: 0.9em; margin-bottom: 1em; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.cp-head .lp-mark { width: 1.2em; height: 1.2em; }
.cp-host { color: var(--muted); font-size: 0.9em; }
.cp-screen { position: relative; display: flex; flex-direction: column; gap: 0.7em; min-height: 0; flex: 1; }
.cp-ctx.gone { position: absolute; inset: 4.2em 1.1em 1.1em; }
.cp-script { position: absolute; inset: 4.2em 1.1em 1.1em; }
.cp-label { font-weight: 620; font-size: 1.05em; }
.cp-card {
  display: grid;
  gap: 0.35em;
  padding: 0.85em 0.95em;
  border-radius: 0.8em;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px rgb(255 197 49 / 0.55);
}
.cp-card[data-cues*=" on"]:not(.on) { transform: translateY(0.5em) scale(0.98); }
.cp-card-src { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.82em; font-weight: 600; color: var(--accent); }
.cp-card-src svg { width: 1.1em; height: 1.1em; }
.cp-card-title { font-weight: 620; }
.cp-card-body { color: var(--muted); font-size: 0.9em; line-height: 1.45; }
.cp-or { margin-top: 0.3em; font-size: 0.85em; color: var(--muted); }
.cp-area { height: 5.5em; border-radius: 0.7em; background: var(--raised); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.cp-primary {
  display: grid;
  place-items: center;
  height: 2.7em;
  margin-top: auto;
  border-radius: 0.7em;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  transition: transform 120ms ease;
}
.cp-title { font-size: 1.2em; font-weight: 680; letter-spacing: -0.015em; }
.cp-status { display: flex; min-width: 0; color: var(--muted); font-size: 0.88em; }
.cp-steps { display: grid; gap: 0.45em; margin: 0.2em 0 0; padding: 0; list-style: none; }
.cp-step {
  display: grid;
  gap: 0.2em;
  padding: 0.55em 0.7em;
  border-radius: 0.65em;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
  transition: box-shadow 200ms ease, background-color 200ms ease, opacity 260ms var(--sc-ease), transform 420ms var(--sc-ease);
}
.cp-step:not(.on) { transform: translateY(0.4em); }
.cp-step.cur { background: var(--overlay); box-shadow: inset 0 0 0 1px var(--accent); }
.cp-step.done { opacity: 0.55; }
.cp-act { display: flex; gap: 0.45em; min-width: 0; font-size: 0.82em; white-space: nowrap; }
.cp-kind { font-weight: 650; color: var(--ink); }
.cp-target { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.cp-line {
  color: var(--sc-soft);
  font-size: 0.86em;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cp-strip {
  position: relative;
  display: grid;
  grid-template-columns: 6.754fr 6.369fr 5.985fr 5.985fr 4.062fr;
  gap: 0.2em;
  height: 1.6em;
  margin-top: auto;
  padding: 0.3em;
  border-radius: 0.5em;
  background: var(--canvas);
}
.cp-beat { border-radius: 0.25em; background: var(--bt-base); }
.cp-beat:not(.on) { transform: scaleX(0.2); transform-origin: left; }
.cp-beat-1 { background: var(--bt-1); }
.cp-beat-3 { background: var(--bt-3); }
.cp-beat-5 { background: var(--bt-1); }
.cp-head-line {
  position: absolute;
  top: -0.25em;
  bottom: -0.25em;
  left: 0.3em;
  right: 0.3em;
  pointer-events: none;
}
.cp-head-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0.14em;
  border-radius: 0.1em;
  background: var(--accent);
  box-shadow: 0 0 0.6em rgb(255 197 49 / 0.6);
}
.cp-head-line { transform: translateX(0); }
.cp-head-line.play { animation: sc-sweep 5.25s linear forwards; }
@keyframes sc-sweep { from { transform: translateX(0); } to { transform: translateX(100%); } }
.cp-foot { position: relative; display: grid; height: 2.7em; }
.cp-foot > * { grid-area: 1 / 1; }
.cp-record {
  display: grid;
  place-items: center;
  border-radius: 0.7em;
  background: var(--overlay);
  color: var(--muted);
  font-weight: 650;
  transition: background-color 240ms ease, color 240ms ease, transform 120ms ease, opacity 200ms ease;
}
.cp-record.ready { background: var(--accent); color: var(--accent-ink); }
.cp-record .sc-x { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; }
.cp-dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: currentColor; }
.cp-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  border-radius: 0.7em;
  background: rgb(255 197 49 / 0.12);
  box-shadow: inset 0 0 0 1px rgb(255 197 49 / 0.5);
  color: var(--accent);
  font-weight: 620;
}
.cp-live .cp-dot { animation: sc-pulse 1.2s ease-in-out infinite; }
.cp-live b { font-variant-numeric: tabular-nums; color: var(--sc-white); font-weight: 620; }
.cp-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 0.7em;
  background: rgb(61 220 151 / 0.12);
  color: var(--tm-ok);
  font-weight: 600;
  font-size: 0.92em;
}
.cp-done svg { width: 1.1em; height: 1.1em; }
@keyframes sc-pulse { 50% { opacity: 0.35; transform: scale(0.75); } }

/* ---------------------------------------------------------------- share page */

.sc-share { background: var(--canvas); color: var(--ink); }
.sc-share[data-cues*=" on"]:not(.on) { transform: scale(0.985); }
.sh { display: grid; grid-template-rows: auto auto 1fr; gap: 1em; height: 100%; padding: 1.6em 2em; }
.sh-player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 22em;
  justify-self: center;
  width: 100%;
  max-width: 39em;
  border-radius: 0.8em;
  overflow: hidden;
  background: var(--hb-bg);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
}
.sh-poster { position: absolute; inset: 0; display: grid; grid-template-columns: 22% 1fr; }
.sh-poster-side { background: var(--hb-side); border-right: 1px solid var(--hb-line); }
.sh-poster-main { display: grid; align-content: start; gap: 0.6em; padding: 1.6em 1.4em; }
.sh-poster-main i { height: 1.4em; border-radius: 0.3em; background: var(--hb-side); }
.sh-poster-main i:first-child { width: 40%; background: var(--hb-skeleton); }
.sh-poster-dialog { position: absolute; left: 44%; top: 30%; width: 34%; height: 42%; border-radius: 0.6em; background: var(--sc-white); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 1em 2em -0.5em rgb(15 18 25 / 0.3); }
.sh-cap { position: absolute; left: 50%; bottom: 2em; padding: 0.25em 0.6em; border-radius: 0.35em; background: rgb(8 9 11 / 0.82); color: var(--sc-white); font-size: 0.95em; transform: translateX(-50%); white-space: nowrap; }
.sh-progress { position: absolute; left: 0.8em; right: 0.8em; bottom: 0.7em; height: 0.3em; border-radius: 1em; background: rgb(0 0 0 / 0.15); overflow: hidden; }
.sh-progress-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0.02); }
.sh-progress-fill.play { animation: sc-fill 3s linear forwards; }
@keyframes sc-fill { from { transform: scaleX(0.02); } to { transform: scaleX(0.36); } }
.sh-meta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.1em 1em; max-width: 39em; width: 100%; justify-self: center; }
.sh-title { font-size: 1.35em; font-weight: 680; letter-spacing: -0.02em; }
.sh-by { grid-row: 2; color: var(--muted); font-size: 0.9em; }
.sh-copy {
  grid-row: 1 / 3;
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: 2.5em;
  padding: 0 1em;
  border-radius: 0.6em;
  background: var(--overlay);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  font-weight: 600;
  transition: transform 120ms ease;
}
.sh-copy svg { width: 1.1em; height: 1.1em; }
.sh-lines { position: relative; display: grid; max-width: 39em; width: 100%; justify-self: center; }
.sh-line {
  grid-area: 1 / 1;
  padding: 0.6em 0.8em;
  border-radius: 0.6em;
  background: var(--sc-well);
  box-shadow: inset 0.18em 0 0 var(--accent);
  color: var(--sc-soft);
  font-size: 0.95em;
  align-self: start;
}
.sh-toast {
  position: absolute;
  z-index: 5;
  top: 1.2em;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sc-black);
  font-weight: 600;
  transform: translateX(-50%);
  box-shadow: 0 1em 2em -0.5em rgb(0 0 0 / 0.6);
}
.sh-toast[data-cues*=" on"]:not(.on) { transform: translate(-50%, -0.6em); }
.sh-toast svg { width: 1.1em; height: 1.1em; color: var(--success, var(--success)); }

/* ---------------------------------------------------------------- terminal */

.sc-term {
  position: absolute;
  z-index: 20;
  left: 7%;
  top: 22%;
  display: grid;
  gap: 0.55em;
  width: 46%;
  padding: 0 1.2em 1.3em;
  border-radius: 0.9em;
  background: var(--tm-bg);
  color: var(--tm-ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.12em;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 2em 4em -1em rgb(0 0 0 / 0.75);
}
.sc-term[data-cues*=" on"]:not(.on) { transform: translateY(1em) scale(0.97); }
.tm-bar {
  display: flex;
  align-items: center;
  gap: 1em;
  height: 2.6em;
  margin: 0 -1.2em 0.3em;
  padding: 0 1em;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  color: var(--tm-dim);
  font-family: var(--font-sans, Inter, sans-serif);
  font-size: 0.85em;
}
.tm-bar .sc-lights i { width: 0.85em; height: 0.85em; }
.tm-line { display: flex; align-items: baseline; gap: 0.4em; min-width: 0; line-height: 1.45; }
.tm-prompt b { color: var(--tm-prompt); }
.tm-dim { color: var(--tm-dim); }
.tm-dim b { color: var(--tm-ink); font-weight: 500; }
.tm-caret { display: inline-block; width: 0.55em; height: 1.1em; background: var(--tm-ink); align-self: center; animation: sc-blink 1s steps(1) infinite; }
.tm-ok { flex: none; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--tm-ok); align-self: center; }

/* ================================================================ hero */

.lp-hero { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); }
.lp-hero-copy { display: grid; justify-items: center; gap: 1.25rem; text-align: center; }
.lp-hero-copy .lp-lede { max-width: 33em; }
.lp-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; }
.lp-hero-note { font-size: 0.875rem; color: var(--muted); }
.lp-hero-stage-wrap { margin-top: clamp(2.5rem, 1.75rem + 2.6vw, 4rem); }
.lp-hero-stage { box-shadow: 0 2rem 6rem -2rem rgb(140 70 200 / 0.35); }
/* The hero frame settles toward you as the page starts to scroll. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lp-hero-stage {
      transform-origin: 50% 0;
      animation: lp-settle linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 50%;
    }
  }
}
@keyframes lp-settle {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}

/* Chapters under the hero scene: where the story is, and a way to jump. */
.lp-chapters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 46rem;
  margin: 1.25rem auto 0;
}
.lp-chapter {
  position: relative;
  display: grid;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 520;
  text-align: left;
  cursor: pointer;
  transition: color 160ms var(--lp-ease);
}
.lp-chapter::before,
.lp-chapter::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}
.lp-chapter::after {
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}
.lp-chapter[data-current="true"] { color: var(--ink); }
.lp-chapter:hover { color: var(--ink); }
.lp-chapter:focus-visible { outline-offset: 4px; border-radius: 4px; }

/* ================================================================ describe */

.sc-describe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30em;
  align-items: center;
  aspect-ratio: 16 / 8.6;
  font-size: clamp(5.5px, 1.12cqi, 15px);
}
.dz-app {
  position: relative;
  grid-area: 1 / 1 / 2 / 3;
  justify-self: start;
  width: 72%;
  height: 86%;
  border-radius: 1em;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25), 0 2.5em 5em -1.5em rgb(0 0 0 / 0.55);
}
.hb-compact .hb-page { padding: 1.6em 1.8em; }
.hb-row-3 { grid-template-columns: auto minmax(0, 1fr) auto; }
.sc .scan {
  outline: 0.14em solid var(--accent);
  outline-offset: 0.18em;
  border-radius: 0.5em;
  transition: outline-color 200ms ease;
}
.dz-read {
  position: absolute;
  right: 1.2em;
  bottom: 1.2em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 0.8em;
  border-radius: 999px;
  background: var(--hb-ink);
  color: var(--sc-white);
  font-weight: 600;
  font-size: 0.9em;
}
.dz-read::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--accent); animation: sc-pulse 1.1s ease-in-out infinite; }
.dz-panel {
  position: relative;
  grid-area: 1 / 2;
  z-index: 2;
  height: 100%;
  gap: 0.75em;
  border-radius: 1.1em;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 3em 6em -1.5em rgb(0 0 0 / 0.7);
}
.dz-panel .cp-head { margin-bottom: 0.2em; }
.dz-seg {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2em;
  padding: 0.2em;
  border-radius: 0.6em;
  background: var(--canvas);
  font-size: 0.85em;
  font-weight: 560;
  color: var(--muted);
}
.dz-seg > span { padding: 0.4em 0.8em; border-radius: 0.45em; text-align: center; white-space: nowrap; }
.dz-seg .dz-seg-on { background: var(--overlay); color: var(--sc-white); }
.dz-box {
  display: block;
  min-height: 7.8em;
  padding: 0.75em 0.85em;
  border-radius: 0.7em;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  color: var(--ink);
  line-height: 1.45;
  transition: box-shadow 160ms ease;
}
.dz-box.focus { box-shadow: inset 0 0 0 1px var(--focus), 0 0 0 0.2em rgb(138 180 255 / 0.2); }
.dz-caret { display: none; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: -0.15em; background: var(--sc-white); }
.dz-box.focus .dz-caret { display: inline-block; animation: sc-blink 1s steps(1) infinite; }
.dz-box.busy .dz-caret, .dz-go.busy ~ * .dz-caret { display: none; }
.dz-hint { font-size: 0.82em; color: var(--muted); }
.dz-go { margin-top: 0; flex: none; }
.dz-go.busy { background: var(--sc-busy); color: var(--sc-soft); }
.dz-out { display: grid; gap: 0.5em; min-height: 0; }
.dz-out .cp-step { padding: 0.45em 0.65em; }
.dz-out .cp-line { -webkit-line-clamp: 1; }

/* ================================================================ beat strip */

.sc-strip { font-size: clamp(6px, 1.22cqi, 16px); }
.bs {
  display: grid;
  gap: 1.6em;
  padding: 1.5em 1.6em 1.9em;
  border-radius: 1.1em;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 3em 6em -1.5em rgb(0 0 0 / 0.7);
}
.bs-top { display: flex; align-items: center; gap: 1em; min-width: 0; }
.bs-title { font-size: 1.35em; font-weight: 680; letter-spacing: -0.02em; white-space: nowrap; }
.bs-meta { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-saved { display: inline-flex; align-items: center; gap: 0.35em; margin-left: auto; color: var(--tm-ok); font-size: 0.9em; font-weight: 560; }
.bs-saved svg { width: 1.1em; height: 1.1em; }
.bs-record {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: 2.7em;
  padding: 0 1.2em;
  margin-left: auto;
  border-radius: 0.7em;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 680;
  white-space: nowrap;
}
.bs-saved + .bs-record { margin-left: 0; }
.bs-time { font-variant-numeric: tabular-nums; }
.bs-record.flash { animation: bs-flash 700ms var(--sc-ease); }
@keyframes bs-flash { 0% { transform: scale(1); } 30% { transform: scale(1.08); box-shadow: 0 0 0 0.35em rgb(255 197 49 / 0.35); } 100% { transform: scale(1); } }

.bs-track { --total: 30.555; position: relative; }
.bs-track.edited { --total: 27.094; }
.bs-ruler {
  position: relative;
  height: 1.9em;
  margin-bottom: 0.6em;
  background-image: repeating-linear-gradient(to right, rgb(255 255 255 / 0.22) 0 1px, transparent 1px 100%);
  background-size: calc(100% / var(--total)) 0.4em;
  background-repeat: repeat-x;
  background-position: left bottom;
  color: var(--muted);
  font-size: 0.8em;
  font-variant-numeric: tabular-nums;
}
.bs-tick { position: absolute; top: 0; transform: translateX(-50%); }
.bs-tick-0 { left: 0; transform: none; }
.bs-tick-10 { left: calc(10 / var(--total) * 100%); }
.bs-tick-20 { left: calc(20 / var(--total) * 100%); }
.bs-tick-30 { left: calc(30 / var(--total) * 100%); }
.bs-tick-end { right: 0; transform: none; color: var(--accent); font-weight: 600; }
.bs-beats {
  display: grid;
  grid-template-columns: 0.6fr 6.754fr 6.369fr 5.985fr 5.985fr 4.062fr 0.8fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
.edited .bs-beats { grid-template-columns: 0.6fr 6.754fr 2.908fr 5.985fr 5.985fr 4.062fr 0.8fr; }
.bs-beats::before, .bs-beats::after { content: ""; }
.bs-beat { display: grid; grid-template-rows: auto 1fr; gap: 0.7em; min-width: 0; padding-right: 0.25em; }
.bs-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1em;
  min-width: 0;
  height: 3.6em;
  padding: 0 0.75em;
  border-radius: 0.55em;
  background: var(--bt-base);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  white-space: nowrap;
  overflow: hidden;
  transition: box-shadow 160ms ease, background-color 160ms ease;
}
.bs-beat-1 .bs-block { background: var(--bt-1); }
.bs-beat-2 .bs-block { background: var(--bt-2); }
.bs-beat-3 .bs-block { background: var(--bt-3); }
.bs-beat-4 .bs-block { background: var(--bt-2); }
.bs-beat-5 .bs-block { background: var(--bt-1); }
.bs-beat.cur .bs-block { box-shadow: inset 0 0 0 0.12em var(--accent); background: var(--bt-live); }
.bs-kind { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.bs-slot { color: var(--muted); font-size: 0.85em; font-variant-numeric: tabular-nums; }
.bs-line {
  position: relative;
  padding: 0.1em 0.4em 0 0.7em;
  color: var(--muted);
  font-size: 0.92em;
  line-height: 1.45;
  border-radius: 0.4em;
  transition: color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.bs-line::before { content: ""; position: absolute; left: 0; top: 0.3em; bottom: 0.3em; width: 2px; border-radius: 2px; background: rgb(255 255 255 / 0.15); }
.bs-beat.cur .bs-line { color: var(--sc-white); }
.bs-beat.cur .bs-line::before { background: var(--accent); }
.bs-line-edit.focus { background: var(--raised); box-shadow: 0 0 0 1px var(--focus); color: var(--sc-white); }
.bs-old.gone { display: none; }
.bs-line-edit.select .bs-old { background: rgb(138 180 255 / 0.35); color: var(--sc-white); }
.bs-new .dz-caret { display: none; }
.bs-line-edit.focus .bs-old.gone + .bs-new .dz-caret { display: inline-block; animation: sc-blink 1s steps(1) infinite; }
.bs-playhead {
  position: absolute;
  top: 1.2em;
  bottom: -0.6em;
  left: 0;
  right: 0;
  pointer-events: none;
}
.bs-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 0.8em rgb(255 197 49 / 0.55);
}
.bs-playhead::after {
  content: "";
  position: absolute;
  top: -0.35em;
  left: -0.45em;
  width: 0.9em;
  height: 0.7em;
  border-radius: 0.2em 0.2em 0.5em 0.5em;
  background: var(--accent);
}
.bs-playhead.play { animation: sc-sweep 5.6s linear forwards; }

@container (max-width: 40rem) {
  .sc-strip { font-size: clamp(9px, 3.1cqi, 13px); }
  .bs { padding: 1.2em; gap: 1.1em; }
  .bs-meta { display: none; }
  .bs-ruler, .bs-playhead { display: none; }
  .bs-beats, .edited .bs-beats { grid-template-columns: 1fr; gap: 0.9em; }
  .bs-beats::before, .bs-beats::after { display: none; }
  .bs-beat { --w: 1; gap: 0.35em; }
  .bs-block { flex-direction: row; align-items: center; justify-content: space-between; width: calc(var(--w) * 100%); min-width: 7.5em; height: 2.5em; }
  .bs-beat-2 { --w: 0.943; }
  .bs-beat-3, .bs-beat-4 { --w: 0.886; }
  .bs-beat-5 { --w: 0.601; }
  .edited .bs-beat-2 { --w: 0.431; }
}

/* ================================================================ real app */

.sc-real { display: grid; gap: 1.4em; justify-items: center; font-size: clamp(5.5px, 1.04cqi, 14px); }
.ra-envs {
  display: inline-flex;
  gap: 0.25em;
  padding: 0.3em;
  border-radius: 999px;
  background: rgb(10 11 14 / 0.45);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ra-env {
  padding: 0.5em 1.2em;
  border-radius: 999px;
  color: rgb(255 255 255 / 0.75);
  font-size: 1.1em;
  font-weight: 560;
  transition: background-color 260ms ease, color 260ms ease;
}
.ra-env.lit { background: var(--sc-white); color: var(--sc-black); }
.ra-win { width: 100%; aspect-ratio: 16 / 8.8; }
.ra-win .sc-body, .ra-view { grid-template-columns: 1fr; }
.ra-view { position: relative; min-height: 0; background: var(--hb-bg); transition: box-shadow 300ms ease; }
.ra-view.rec { box-shadow: inset 0 0 0 0.22em var(--accent); }
.ra-view .hb { height: 100%; }
.ra-rec { display: grid; }
.ra-rec-pill {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: 2em;
  padding: 0 0.8em;
  border-radius: 999px;
  background: rgb(255 197 49 / 0.14);
  box-shadow: inset 0 0 0 1px rgb(255 197 49 / 0.5);
  color: var(--accent);
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
}
.ra-rec-pill .cp-dot { animation: sc-pulse 1.2s ease-in-out infinite; }
.ra-rec-pill b { color: var(--sc-white); font-variant-numeric: tabular-nums; font-weight: 600; }
.ra-badge-swap { margin-left: 0.2em; }
.ra-badge-swap > * { overflow: visible; }
.ra-badge {
  padding: 0.1em 0.5em;
  border-radius: 0.35em;
  background: var(--hb-badge-local);
  color: var(--hb-badge-local-ink);
  font-size: 0.72em;
  font-weight: 650;
}
.ra-badge.sc-y { background: var(--hb-badge-staging); color: var(--hb-badge-staging-ink); }
.ra-user {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin-top: auto;
  padding: 0.5em 0.6em;
  color: var(--hb-ink);
  font-weight: 560;
  font-size: 0.92em;
}
.ra-user .hb-av { width: 1.9em; height: 1.9em; }
.ra-search {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: 14em;
  height: 2.4em;
  margin-left: auto;
  padding: 0 0.7em;
  border-radius: 0.6em;
  box-shadow: inset 0 0 0 1px var(--hb-line);
  color: var(--hb-muted);
  transition: box-shadow 160ms ease;
}
.ra-search > span { display: flex; align-items: center; color: var(--hb-ink); }
.ra-search.focus { box-shadow: inset 0 0 0 1px var(--hb-brand), 0 0 0 0.2em rgb(54 81 212 / 0.18); }
.ra-search.focus .hb-caret { display: block; animation: sc-blink 1s steps(1) infinite; }
.ra-search svg { width: 1.1em; height: 1.1em; }
.sc .dim { opacity: 0.18; transition: opacity 260ms ease; }
.ra-action {
  display: grid;
  min-height: 2.6em;
  padding: 0.6em 1.1em;
  border-radius: 999px;
  background: rgb(10 11 14 / 0.55);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  color: var(--sc-white);
  font-size: 1.1em;
  font-weight: 560;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ra-action .sc-swap { justify-items: center; }

/* ================================================================ voice (scroll-linked) */

.sc-voice {
  display: grid;
  gap: 1.2em;
  font-size: clamp(5.5px, 1.04cqi, 14px);
}
.vc-top { display: grid; grid-template-columns: minmax(0, 1fr) 20em; gap: 1.2em; }
.vc-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1em;
  overflow: hidden;
  background: var(--hb-bg);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2), 0 2.5em 5em -1.5em rgb(0 0 0 / 0.6);
}
.vc-shot { position: absolute; inset: 0; display: grid; grid-template-columns: 20% 1fr; }
.vc-shot-side { background: var(--hb-side); border-right: 1px solid var(--hb-line); }
.vc-shot-main { display: grid; align-content: start; gap: 0.9em; padding: 2.2em 2em; }
.vc-shot-main i { height: 2.2em; border-radius: 0.4em; background: var(--hb-side); }
.vc-shot-main i:first-child { width: 30%; height: 1.8em; background: var(--hb-skeleton); }
.vc-shot-dialog {
  position: absolute;
  left: 40%;
  top: 22%;
  display: grid;
  align-content: start;
  gap: 0.8em;
  width: 34%;
  padding: 1.4em;
  border-radius: 0.8em;
  background: var(--sc-white);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 1.4em 3em -0.6em rgb(15 18 25 / 0.35);
}
.vc-shot-dialog i { height: 2em; border-radius: 0.4em; box-shadow: inset 0 0 0 1px var(--hb-line); }
.vc-shot-dialog i:first-child { width: 60%; height: 1.2em; box-shadow: none; background: var(--hb-skeleton); }
.vc-cap {
  position: absolute;
  left: 50%;
  bottom: 1.6em;
  max-width: 86%;
  padding: 0.4em 0.8em;
  border-radius: 0.5em;
  background: rgb(8 9 11 / 0.84);
  color: var(--sc-white);
  font-size: 1.7em;
  font-weight: 560;
  letter-spacing: -0.012em;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity 120ms ease;
}
.vc-cap.is-quiet { opacity: 0; }
.vc-voices {
  display: grid;
  align-content: start;
  gap: 0.2em;
  padding: 1em;
  border-radius: 1em;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 2.5em 5em -1.5em rgb(0 0 0 / 0.6);
}
.vc-voices-title { margin: 0 0 0.4em 0.5em; font-weight: 650; }
.vc-voice { display: grid; gap: 0.05em; padding: 0.45em 0.6em; border-radius: 0.55em; }
.vc-voice-name { font-weight: 600; font-size: 0.95em; }
.vc-voice-desc { color: var(--muted); font-size: 0.8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-voice-on { background: var(--overlay); box-shadow: inset 0 0 0 1px var(--accent); }

.vc-tracks {
  position: relative;
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  align-items: center;
  gap: 0.6em 1em;
  padding: 1.1em 1.3em 1.3em;
  border-radius: 1em;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 2.5em 5em -1.5em rgb(0 0 0 / 0.6);
}
.vc-readout { grid-column: 1 / -1; justify-self: end; margin-bottom: 0.1em; color: var(--muted); font-size: 0.9em; font-variant-numeric: tabular-nums; }
.vc-readout b { color: var(--sc-white); font-weight: 600; }
.vc-label { color: var(--muted); font-size: 0.88em; font-weight: 560; }
.vc-lane { display: block; width: 100%; height: 2.6em; }
.vc-steps {
  display: grid;
  grid-template-columns: 0.6fr 6.754fr 6.369fr 5.985fr 5.985fr 4.062fr 0.8fr;
  gap: 0;
}
.vc-steps::before, .vc-steps::after { content: ""; }
.vc-step {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-right: 0.2em;
  padding: 0 0.7em;
  border-radius: 0.45em;
  background: var(--bt-base);
  font-size: 0.88em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.vc-step.cur { background: var(--bt-live); box-shadow: inset 0 0 0 0.12em var(--accent); }
.vc-wave rect { fill: var(--wave); }
.vc-cues rect { fill: var(--bt-base); transition: fill 160ms ease; }
.vc-cues rect.cur { fill: var(--accent); }
.vc-playhead-track {
  position: absolute;
  top: 2.6em;
  bottom: 0.8em;
  left: calc(1.3em + 6.5em + 1em);
  right: 1.3em;
  pointer-events: none;
}
.vc-playhead { position: absolute; inset: 0; transform: translateX(42%); will-change: transform; }
.vc-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 0.8em rgb(255 197 49 / 0.6);
}
.vc-playhead::after {
  content: "";
  position: absolute;
  top: -0.4em;
  left: -0.45em;
  width: 0.9em;
  height: 0.7em;
  border-radius: 0.2em 0.2em 0.5em 0.5em;
  background: var(--accent);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lp-scrub-stage { view-timeline: --scrub block; }
    .vc-playhead {
      animation: vc-scrub linear both;
      animation-timeline: --scrub;
      animation-range: cover 30% cover 70%;
    }
  }
}
@keyframes vc-scrub { from { transform: translateX(0); } to { transform: translateX(100%); } }

@container (max-width: 40rem) {
  .sc-voice { font-size: clamp(8px, 2.6cqi, 12px); }
  .vc-top { grid-template-columns: 1fr; }
  .vc-voices { display: none; }
  .vc-cap { font-size: 1.25em; white-space: normal; text-align: center; width: max-content; }
  .vc-tracks { grid-template-columns: 4.6em minmax(0, 1fr); padding: 0.9em; }
  .vc-playhead-track { left: calc(0.9em + 4.6em + 1em); right: 0.9em; }
  .vc-step { padding: 0 0.3em; font-size: 0.75em; justify-content: center; }
}

/* ================================================================ share page */

.sc-sharepage { font-size: clamp(5.5px, 1.04cqi, 14px); }
.sp-win { aspect-ratio: 16 / 9.4; }
.sp-win .sc-tab .lp-mark { width: 1em; height: 1em; }
.sp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21em;
  gap: 1.6em;
  min-height: 0;
  padding: 1.8em 2em;
  background: var(--canvas);
  color: var(--ink);
}
.sp-main { display: grid; align-content: start; gap: 1.1em; min-width: 0; }
.sp-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.9em;
  overflow: hidden;
  background: var(--hb-bg);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
}
.sp-player .sh-poster { position: absolute; inset: 0; }
.sp-processing {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9em;
  background: var(--sc-well);
}
.sp-proc-label { font-size: 1.15em; font-weight: 600; }
.sp-proc-bar { position: relative; width: 18em; height: 0.45em; border-radius: 1em; background: var(--sc-busy); overflow: hidden; }
.sp-proc-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0.46); }
.sp-proc-fill.run { animation: sp-proc 2.3s linear forwards; }
@keyframes sp-proc { from { transform: scaleX(0.46); } to { transform: scaleX(1); } }
.sp-proc-pct { color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-play {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 4.6em;
  height: 4.6em;
  margin: -2.3em 0 0 -2.3em;
  border-radius: 50%;
  background: rgb(8 9 11 / 0.78);
  color: var(--sc-white);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2);
  transition: transform 160ms ease, opacity 200ms ease;
}
.sp-play svg { width: 1.8em; height: 1.8em; margin-left: 0.2em; }
.sp-caps { position: absolute; left: 0; right: 0; bottom: 2.2em; z-index: 2; display: grid; justify-items: center; }
.sp-bar { position: absolute; z-index: 2; left: 1em; right: 1em; bottom: 0.9em; height: 0.35em; border-radius: 1em; background: rgb(15 18 25 / 0.18); overflow: hidden; }
.sp-bar-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.sp-bar-fill.play1 { animation: sp-play1 4.25s linear forwards; }
.sp-bar-fill.play2 { animation: sp-play2 1.07s linear forwards; }
@keyframes sp-play1 { from { transform: scaleX(0); } to { transform: scaleX(0.531); } }
@keyframes sp-play2 { from { transform: scaleX(0.841); } to { transform: scaleX(0.974); } }
.sp-meta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.15em 1em; }
.sp-lines { display: grid; align-content: start; gap: 0.35em; margin: 0; padding: 0; list-style: none; }
.sp-line {
  display: grid;
  grid-template-columns: 3em 1fr;
  gap: 0.6em;
  padding: 0.65em 0.8em;
  border-radius: 0.6em;
  color: var(--muted);
  font-size: 0.95em;
  line-height: 1.45;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.sp-at { color: var(--sc-faint); font-variant-numeric: tabular-nums; }
.sp-line.cur { background: var(--sc-well); color: var(--ink); box-shadow: inset 0.18em 0 0 var(--accent); }
.sp-line.cur .sp-at { color: var(--accent); }
.sp-toast { top: 5.6em; }

@container (max-width: 40rem) {
  .sc-sharepage { font-size: clamp(8px, 2.6cqi, 12px); }
  .sp-win { aspect-ratio: auto; }
  .sp { grid-template-columns: 1fr; padding: 1.1em; gap: 1em; }
  .sp-line:nth-child(n + 4) { display: none; }
  .sp-line:last-child { display: grid; }
}

/* ================================================================ agent */

.sc-agent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26em;
  align-items: center;
  aspect-ratio: 16 / 7.4;
  font-size: clamp(5.5px, 1.08cqi, 14.5px);
}
.ag-term {
  grid-area: 1 / 1 / 2 / 3;
  justify-self: start;
  align-self: stretch;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 70%;
  border-radius: 1em;
  overflow: hidden;
  background: var(--tm-bg);
  color: var(--tm-ink);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 3em 6em -1.5em rgb(0 0 0 / 0.7);
}
.ag-term .tm-bar { margin: 0; }
.ag-body {
  display: grid;
  align-content: start;
  gap: 0.8em;
  padding: 1.4em 1.6em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.04em;
}
.ag-dot { flex: none; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--tm-dim); align-self: center; }
.ag-box {
  display: grid;
  gap: 0.55em;
  padding: 1em 1.1em;
  border-radius: 0.6em;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  line-height: 1.45;
}
.ag-box[data-cues*=" on"]:not(.on) { transform: translateY(0.4em); }
.ag-row { display: grid; grid-template-columns: 4.5em 1fr; gap: 0.8em; }
.ag-key { color: var(--tm-prompt); }
.ag-yes { color: var(--tm-ok); }
.ag-panel {
  position: relative;
  z-index: 2;
  grid-area: 1 / 2;
  height: 92%;
  gap: 0.75em;
  border-radius: 1.1em;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 3em 6em -1.5em rgb(0 0 0 / 0.75);
}
.ag-when { margin-left: auto; color: var(--muted); font-weight: 500; }
.ag-card .cp-card-src { display: flex; }
.ag-card.picked { box-shadow: inset 0 0 0 0.14em var(--accent); background: var(--bt-live); }
.cp-primary.busy { background: var(--sc-busy); color: var(--sc-soft); }

/* ================================================================ privacy */

.sc-privacy { font-size: clamp(5.5px, 1.3cqi, 17px); }
.pv-win { aspect-ratio: 16 / 6.2; }
.pv-tabs { gap: 0.4em; }
.pv-tabs .sc-lights { margin-right: 0.8em; }
.pv-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  height: 2.3em;
  padding: 0 1em;
  color: var(--chrome-dim);
  font-size: 0.95em;
  opacity: 0.55;
  white-space: nowrap;
}
.pv-tab-on { width: 15em; position: relative; }
.pv-tab-on.rec { box-shadow: inset 0 0.16em 0 var(--accent); }
.pv-fav { width: 1em; height: 1em; border-radius: 0.3em; background: var(--chrome-dim); }
.pv-fav-mail { background: var(--fav-mail); }
.pv-fav-docs { background: var(--fav-docs); }
.pv-fav-cal { background: var(--fav-cal); }
.pv-pill { margin-left: 0.4em; }
.pv-page {
  display: grid;
  align-content: start;
  gap: 0.55em;
  width: 100%;
  justify-content: center;
  grid-template-columns: minmax(0, 26em);
  padding: 2.2em 3em 2.4em;
  background: var(--hb-side);
  color: var(--hb-ink);
  transition: box-shadow 300ms ease;
}
.pv-page.rec { box-shadow: inset 0 0 0 0.22em var(--accent); }
.pv-title { margin-bottom: 0.6em; font-size: 1.55em; font-weight: 680; letter-spacing: -0.02em; }
.pv-pass-wrap { position: relative; display: grid; }
.pv-pass { color: var(--hb-muted); letter-spacing: 0.1em; }
.pv-badge {
  position: absolute;
  left: calc(100% + 1em);
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45em 0.8em;
  border-radius: 999px;
  background: var(--hb-ink);
  color: var(--sc-white);
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
  transform: translateY(-50%);
}
.pv-badge[data-cues*=" on"]:not(.on) { transform: translate(-0.5em, -50%); }
.pv-badge svg { width: 1.1em; height: 1.1em; color: var(--accent); }
.pv-save { justify-self: start; margin-top: 0.8em; }
.pv-page .hb-input { background: var(--sc-white); }
.pv-saved { justify-self: start; display: inline-flex; align-items: center; gap: 0.4em; color: var(--hb-ok); font-weight: 600; font-size: 0.9em; }
.pv-saved svg { width: 1.1em; height: 1.1em; }

.pv-lists {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem);
}
@media (min-width: 48rem) { .pv-lists { grid-template-columns: 1fr 1fr; } }
.pv-list {
  padding: clamp(1.25rem, 0.8rem + 1.5vw, 2rem);
  border-radius: var(--lp-radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.pv-list-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 620;
  letter-spacing: -0.015em;
}
.pv-list-title svg { color: var(--accent); }
.pv-list ul { display: grid; gap: 0.875rem; }
.pv-list li { position: relative; padding-left: 1.125rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.pv-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.375rem; height: 0.375rem; border-radius: 2px; background: var(--line-strong); }
.pv-list b { color: var(--ink); font-weight: 580; }

/* ================================================================ pricing */

.pr-plans { display: grid; gap: 1rem; max-width: 52rem; margin-inline: auto; }
@media (min-width: 48rem) { .pr-plans { grid-template-columns: 1fr 1fr; } }
.pr-plan {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--lp-radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.pr-free { border-color: rgb(255 197 49 / 0.35); background: linear-gradient(180deg, rgb(255 197 49 / 0.06), rgb(255 197 49 / 0) 40%), var(--surface); }
.pr-name { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 620; letter-spacing: -0.015em; }
.pr-soon { padding: 0.125rem 0.5rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 0.8125rem; font-weight: 520; letter-spacing: 0; }
.pr-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.pr-amount { font-size: clamp(3rem, 2.4rem + 2vw, 4rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pr-unit { color: var(--muted); font-size: 1rem; }
.pr-unit-lone { color: var(--ink); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.33; padding-block: 0.6rem; }
.pr-note { color: var(--muted); font-size: 0.9375rem; }
.pr-list { display: grid; gap: 0.75rem; }
.pr-list li { display: flex; gap: 0.625rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.pr-list svg { margin-top: 0.1875rem; color: var(--ink); }
.pr-cta { margin-top: auto; width: 100%; }
.lp .pr-cta:disabled { opacity: 1; color: var(--muted); border-color: var(--line-strong); cursor: not-allowed; }

/* ================================================================ faq */

.fq { display: grid; gap: 2rem 4rem; }
@media (min-width: 64rem) { .fq { grid-template-columns: 22rem 1fr; align-items: start; } .fq-head { position: sticky; top: 6rem; } }
.fq-head { margin-bottom: 0; }
.fq-list { border-top: 1px solid var(--line); }
.fq-item { border-bottom: 1px solid var(--line); }
.fq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.75rem;
  padding: 1rem 0;
  font-size: 1.0625rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.fq-q::-webkit-details-marker { display: none; }
.fq-icon { color: var(--muted); transition: transform 220ms var(--lp-ease); }
.fq-item[open] .fq-icon { transform: rotate(45deg); }
.fq-q:hover .fq-icon { color: var(--ink); }
.fq-a { max-width: 38em; padding: 0 2.5rem 1.5rem 0; color: var(--muted); line-height: 1.6; }

/* ================================================================ closing + footer */

.lp-closing { padding-bottom: clamp(5rem, 3rem + 7vw, 9rem); }
.lp-closing-inner { display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.lp-closing-title { max-width: 12em; font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5rem); }

.lp-footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; color: var(--muted); font-size: 0.9375rem; }
.lp-footer-inner { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .lp-footer-inner { grid-template-columns: 1fr auto; } }
.lp-footer-brand { display: grid; gap: 0.75rem; justify-items: start; }
.lp-footer-home { display: inline-flex; min-height: 2.25rem; align-items: center; border-radius: var(--lp-radius-sm); color: var(--ink); text-decoration: none; }
.lp-footer-line { max-width: 24em; }
.lp-footer-nav { display: flex; gap: 3rem; }
.lp-footer-nav ul { display: grid; gap: 0.25rem; }
.lp-footer-nav a { display: inline-flex; align-items: center; min-height: 2rem; color: var(--muted); text-decoration: none; transition: color 140ms var(--lp-ease); }
.lp-footer-nav a:hover { color: var(--ink); }
.lp-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.875rem; }

/* ================================================================ phone scenes
   Below ~640 px of stage the scenes are recomposed, not shrunk: one surface
   at a time, larger type, the side panel as a sheet over the app. */

@container (max-width: 40rem) {
  .sc { font-size: clamp(8px, 2.9cqi, 12px); }
  .sc-win { aspect-ratio: 4 / 5.2; border-radius: 0.9em; }
  .sc-chrome { height: 2.5em; gap: 0.8em; }
  .sc-tab { width: auto; flex: 1; max-width: 13em; }
  .sc-bar { height: 2.6em; }

  .hb { grid-template-columns: 1fr; }
  .hb-side { display: none; }
  .hb-page { padding: 1.2em 1.1em; }
  .hb-title { font-size: 1.35em; }
  .hb-row { grid-template-columns: auto minmax(0, 1fr) auto; height: 3em; }
  .hb-row > .hb-meta { display: none; }
  .hb-dialog { width: 88%; }
  .sc-cue { font-size: 1.05em; }

  /* The hero: the panel is a sheet that leaves while the app is recorded. */
  .sc-hero .sc-body { grid-template-columns: 1fr; }
  .sc-hero .sc-panel {
    grid-area: 1 / 1;
    z-index: 9;
    align-self: end;
    height: 64%;
    border: 0;
    border-radius: 1.1em 1.1em 0 0;
    box-shadow: 0 -1em 2.5em rgb(0 0 0 / 0.35);
    transition: transform 520ms var(--sc-ease);
  }
  .sc-hero[data-phase="record"] .sc-panel,
  .sc-hero[data-phase="share"] .sc-panel { transform: translateY(104%); }
  .sc-hero .cp { padding: 0.9em 1em; }
  .sc-hero .cp-screen { gap: 0.55em; }
  .sc-hero .cp-ctx.gone, .sc-hero .cp-script { inset: 3.6em 1em 0.9em; }
  .sc-hero .cp-steps { gap: 0.35em; }
  .sc-hero .cp-step { padding: 0.4em 0.6em; }
  .sc-hero .cp-line { -webkit-line-clamp: 1; }
  .sc-hero .cp-step:nth-child(n + 4) { display: none; }
  .sc-term { left: 5%; top: 7%; width: 90%; font-size: 1em; }
  .sh { padding: 1.1em; gap: 0.8em; }
  .sh-lines { display: none; }

  .sc-describe { grid-template-columns: 1fr; aspect-ratio: auto; font-size: clamp(8px, 2.9cqi, 12px); }
  .dz-app { display: none; }
  .dz-panel { grid-area: auto; }
  .dz-out .cp-step:nth-child(n + 4) { display: none; }

  .ra-win { aspect-ratio: 4 / 4.6; }
  .ra-search { width: 7em; }
  .ra-env { font-size: 1em; padding: 0.45em 0.9em; }
  .ra-rec-pill { font-size: 0.8em; }
  .ra-rec-pill b { display: none; }

  .sc-agent { grid-template-columns: 1fr; aspect-ratio: auto; gap: 1em; }
  .ag-term { grid-area: auto; width: 100%; }
  .ag-body { font-size: 0.95em; padding: 1em; }
  .ag-row { grid-template-columns: 3.8em 1fr; }
  .ag-row:last-child { display: none; }
  .ag-panel { grid-area: auto; height: auto; }
  .ag-panel .cp-or, .ag-panel .cp-area { display: none; }

  .pv-win { aspect-ratio: auto; }
  .pv-tab:not(.pv-tab-on) { display: none; }
  .pv-page { padding: 1.4em 1.2em 1.6em; }
  .pv-pill { display: none; }
  .pv-badge { position: static; justify-self: start; margin-top: 0.5em; transform: none; }
  .pv-badge[data-cues*=" on"]:not(.on) { transform: translateY(-0.3em); }
}

/* ================================================================ tablet scenes
   640 to 960 px of stage: same compositions, larger type, the app's own
   sidebar folded away to make room. */

@container (min-width: 40.01rem) and (max-width: 60rem) {
  .sc, .sc-real, .sc-sharepage, .sc-voice { font-size: 1.3cqi; }
  .sc-describe, .sc-agent { font-size: 1.36cqi; }
  .sc-strip { font-size: 1.45cqi; }
  .sc-privacy { font-size: 1.55cqi; }
  .hb { grid-template-columns: 1fr; }
  .hb-side { display: none; }
  .hb-row > .hb-email { display: none; }
  .hb-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sc-body { grid-template-columns: 1fr 20em; }
  .vc-top { grid-template-columns: minmax(0, 1fr) 15em; }
  .vc-voice-desc { display: none; }
  .bs-meta { display: none; }
  .sp { grid-template-columns: minmax(0, 1fr) 17em; }
}

/* ================================================================ legal */

.lp-legal {
  max-width: calc(44rem + var(--lp-gutter) * 2);
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(4rem, 3rem + 5vw, 8rem);
  color: var(--muted);
  line-height: 1.7;
}
.lp-legal-head { margin-bottom: 2.5rem; }
.lp-legal-date { margin-top: 0.75rem; font-size: 0.9375rem; }
.lp-legal h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lp-legal h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.lp-legal p + p { margin-top: 1rem; }
.lp-legal ul { display: grid; gap: 0.5rem; margin-top: 0.5rem; padding-left: 1.25rem; list-style: disc; }
.lp-legal li::marker { color: var(--muted); }
.lp-legal strong { color: var(--ink); font-weight: 560; }
.lp-legal a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.lp-legal a:hover { text-decoration-color: currentColor; }
