/* ClipsOS marketing site.
   Layout: one 1200px column. Centered statements alternate with split
   text/product rows; the product itself (dark app screens) is the imagery.
   Light is the main look (the Claude artifact); dark follows the PDF. */

:root {
  /* Page */
  --bg: #ffffff;
  --bg-alt: #f5f5f2;
  --ink: #0a0a0a;
  --ink-2: #2e2e2c;
  --muted: #5c5c59;
  --subtle: #8b8b86;
  --faint: #a8a8a3;
  --line: #ebebe7;
  --line-2: #dcdcd7;
  --accent: #edffac;
  --accent-ink: #0a0a0a;
  /* the bright fill: lime on the white page, the app's pink on dark */
  --pop: #edffac;
  --btn-bg: #0a0a0a;
  --btn-fg: #ffffff;
  --btn-2-line: #d4d4cf;
  --eyebrow-bg: #edffac;
  --eyebrow-fg: #0a0a0a;
  --card: #f6f6f3;
  --card-2: #ffffff;
  --card-line: #e6e6e1;
  --card-fg: #0a0a0a;
  --card-muted: #5c5c59;
  --card-hi: #ffffff;
  --card-hi-shadow: 0 16px 36px rgba(10, 10, 10, 0.08);
  --soft-card: #f5f5f2;
  --soft-card-line: #e6e6e1;
  --sticker-bg: #ffffff;
  --sticker-line: #0a0a0a;
  --shadow-lg: 0 40px 80px rgba(10, 10, 10, 0.16);
  --shadow-md: 0 16px 36px rgba(10, 10, 10, 0.12);
  --grid-line: rgba(10, 10, 10, 0.05);
  --tick-bg: #0a0a0a;
  --tick-fg: #ffffff;
  --sw-x: 0px;
  --sw-knob: #0a0a0a;
  --sw-sun: #ffffff;
  --sw-moon: #8b8b86;

  /* Accent as ink: lime only reads on dark, so light mode inks in black */
  --hl: #0a0a0a;

  /* Product screens: white in light mode, dark in dark mode */
  --app-bg: #ffffff;
  --app-panel: #ffffff;
  --app-card: #f6f6f3;
  --app-raised: #efefeb;
  --app-line: #ebebe7;
  --app-line-2: #dcdcd7;
  --app-fg: #0a0a0a;
  --app-fg-2: #2e2e2c;
  --app-muted: #6b6b67;
  --app-subtle: #8f8f8a;
  --app-primary: #ecd7ff;
  --app-primary-ink: #131314;
  --app-red: #cf3a2c;
  --app-red-bg: rgba(207, 58, 44, 0.08);
  --app-amber: #a46800;
  --app-amber-bg: rgba(214, 150, 0, 0.12);
  --app-green: #1d8442;
  --app-blue: #1f63c7;
  --app-wa: #25d366;
  /* solid markers (bars, dots, badges, primary buttons) and what sits on them */
  --app-mark: #0a0a0a;
  --app-mark-ink: #ffffff;
  /* sunk = a well (chat wallpaper, kanban column); tile = what sits in it;
     sub = a quiet panel next to the main surface */
  --app-sunk: #f4f4f1;
  --app-tile: #ffffff;
  --app-sub: #fafaf8;
  --app-hl-card: #f6ffd4;
  --app-tag-bg: #edffac;
  /* highlighted row or tag, and the faint version for notes */
  --app-hl-bg: #edffac;
  --app-hl-faint: rgba(237, 255, 172, 0.45);
  --app-name: #b0541c;
  --app-pop: 0 -14px 34px rgba(10, 10, 10, 0.12);
  --app-sheen: transparent;

  /* Type */
  --font-display:
    "Neue Haas Grotesk Display Pro", "NHaasGroteskDSPro-55Rg", "Neue Haas Grotesk Display",
    "Neue Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:
    "Neue Haas Grotesk Text Pro", "NHaasGroteskTXPro-55Rg", "Neue Haas Grotesk Text",
    "Neue Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-hand: "Gochi Hand", "Comic Sans MS", cursive;

  --fs-hero: clamp(3rem, 8.4vw, 7rem);
  --fs-h2: clamp(2.4rem, 5.4vw, 4.5rem);
  --fs-h3: clamp(2.1rem, 4.2vw, 3.5rem);
  --fs-lead: clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  /* Motion (Kingpin's out curve) */
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --inout: cubic-bezier(0.65, 0, 0.25, 1);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0913;
    --bg-alt: #0d0c18;
    --ink: #f5f5f7;
    --ink-2: #dcdbe6;
    --muted: #a19fb4;
    --subtle: #7d7b91;
    --faint: #5f5d73;
    --line: #1c1a2b;
    --line-2: #2a2840;
    --accent: #f7dbff;
    --accent-ink: #0a0a0a;
    --pop: #f7dbff;
    --btn-bg: #f7dbff;
    --btn-fg: #0a0a0a;
    --btn-2-line: #34324d;
    --eyebrow-bg: transparent;
    --eyebrow-fg: #f7dbff;
    --card: #12111e;
    --card-2: #181729;
    --card-line: #24223a;
    --card-fg: #f5f5f7;
    --card-muted: #a19fb4;
    --card-hi: #12111e;
    --card-hi-shadow: none;
    --soft-card: #100f1b;
    --soft-card-line: #22203a;
    --sticker-bg: #f7dbff;
    --sticker-line: #0a0a0a;
    --shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.45);
    --grid-line: rgba(255, 255, 255, 0.035);
    --tick-bg: #1f1d31;
    --tick-fg: #f7dbff;
    --sw-x: 32px;
    --sw-knob: #f7dbff;
    --sw-sun: #7d7b91;
    --sw-moon: #0a0a0a;
    --app-bg: #ffffff;
    --app-panel: #ffffff;
    --app-card: #f6f6f3;
    --app-raised: #efefeb;
    --app-line: #ebebe7;
    --app-line-2: #dcdcd7;
    --app-fg: #0a0a0a;
    --app-fg-2: #2e2e2c;
    --app-muted: #6b6b67;
    --app-subtle: #8f8f8a;
    --app-primary: #ecd7ff;
    --app-primary-ink: #131314;
    --app-red: #cf3a2c;
    --app-red-bg: rgba(207, 58, 44, 0.08);
    --app-amber: #a46800;
    --app-amber-bg: rgba(214, 150, 0, 0.12);
    --app-green: #1d8442;
    --app-blue: #1f63c7;
    --app-mark: #0a0a0a;
    --app-mark-ink: #ffffff;
    --app-hl-bg: #edffac;
    --app-hl-faint: rgba(237, 255, 172, 0.45);
    --app-name: #b0541c;
    --app-pop: 0 -14px 34px rgba(10, 10, 10, 0.12);
    --app-sheen: transparent;
    --hl: #f7dbff;
    --app-sunk: #f4f4f1;
    --app-tile: #ffffff;
    --app-sub: #fafaf8;
    --app-hl-card: #f6ffd4;
    --app-tag-bg: #edffac;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0913;
  --bg-alt: #0d0c18;
  --ink: #f5f5f7;
  --ink-2: #dcdbe6;
  --muted: #a19fb4;
  --subtle: #7d7b91;
  --faint: #5f5d73;
  --line: #1c1a2b;
  --line-2: #2a2840;
  --accent: #f7dbff;
  --accent-ink: #0a0a0a;
  --pop: #f7dbff;
  --btn-bg: #f7dbff;
  --btn-fg: #0a0a0a;
  --btn-2-line: #34324d;
  --eyebrow-bg: transparent;
  --eyebrow-fg: #f7dbff;
  --card: #12111e;
  --card-2: #181729;
  --card-line: #24223a;
  --card-fg: #f5f5f7;
  --card-muted: #a19fb4;
  --card-hi: #12111e;
  --card-hi-shadow: none;
  --soft-card: #100f1b;
  --soft-card-line: #22203a;
  --sticker-bg: #f7dbff;
  --sticker-line: #0a0a0a;
  --shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.45);
  --grid-line: rgba(255, 255, 255, 0.035);
  --tick-bg: #1f1d31;
  --tick-fg: #f7dbff;
  --sw-x: 32px;
  --sw-knob: #f7dbff;
  --sw-sun: #7d7b91;
  --sw-moon: #0a0a0a;
  --app-bg: #ffffff;
  --app-panel: #ffffff;
  --app-card: #f6f6f3;
  --app-raised: #efefeb;
  --app-line: #ebebe7;
  --app-line-2: #dcdcd7;
  --app-fg: #0a0a0a;
  --app-fg-2: #2e2e2c;
  --app-muted: #6b6b67;
  --app-subtle: #8f8f8a;
  --app-primary: #ecd7ff;
  --app-primary-ink: #131314;
  --app-red: #cf3a2c;
  --app-red-bg: rgba(207, 58, 44, 0.08);
  --app-amber: #a46800;
  --app-amber-bg: rgba(214, 150, 0, 0.12);
  --app-green: #1d8442;
  --app-blue: #1f63c7;
  --app-mark: #0a0a0a;
  --app-mark-ink: #ffffff;
  --app-hl-bg: #edffac;
  --app-hl-faint: rgba(237, 255, 172, 0.45);
  --app-name: #b0541c;
  --app-pop: 0 -14px 34px rgba(10, 10, 10, 0.12);
  --app-sheen: transparent;
  --hl: #f7dbff;
  --app-sunk: #f4f4f1;
  --app-tile: #ffffff;
  --app-sub: #fafaf8;
  --app-hl-card: #f6ffd4;
  --app-tag-bg: #edffac;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.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;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.section {
  padding-block: clamp(80px, 11vw, 140px);
  border-top: 1px solid var(--line);
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
}

.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding-inline: 10px;
  border-radius: 999px;
  background: var(--eyebrow-bg);
  color: var(--eyebrow-fg);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  width: fit-content;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.h2 .dim,
.h3 .dim {
  color: var(--faint);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
  max-width: 44rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--ink-2);
}

.checklist .tick {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tick-bg);
  color: var(--tick-fg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.checklist .tick .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.caption {
  font-size: 0.8rem;
  color: var(--subtle);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding-inline: 30px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.35s var(--out),
    background-color 0.3s,
    border-color 0.3s,
    box-shadow 0.35s var(--out);
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--out);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn--primary:hover {
  box-shadow: 0 10px 24px rgba(10, 10, 10, 0.18);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--btn-2-line);
  color: var(--ink);
  background: transparent;
  font-weight: 500;
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--sm {
  height: 44px;
  padding-inline: 22px;
  font-size: 0.95rem;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--out);
}

.brand__mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

:root[data-theme="dark"] .brand__mark {
  background: var(--accent);
}

:root[data-theme="dark"] .brand__mark::after {
  background: var(--accent-ink);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__mark {
    background: var(--accent);
  }

  :root:not([data-theme="light"]) .brand__mark::after {
    background: var(--accent-ink);
  }
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.06);
}

.nav__links {
  display: flex;
  gap: 34px;
  font-size: 0.95rem;
}

.nav__links a {
  color: var(--muted);
  position: relative;
  transition: color 0.25s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--out);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition:
    border-color 0.25s,
    transform 0.35s var(--out);
}

.icon-btn:hover {
  border-color: var(--ink);
}

.icon-btn .icon {
  width: 17px;
  height: 17px;
}

/* Light / dark switch: the knob slides under the active icon */
.theme-switch {
  position: relative;
  width: 68px;
  height: 36px;
  padding-inline: 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color 0.25s,
    background-color 0.4s;
}

.theme-switch:hover {
  border-color: var(--ink);
}

.theme-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sw-knob);
  transform: translateX(var(--sw-x));
  transition:
    transform 0.5s var(--out),
    background-color 0.3s;
}

.theme-switch .icon {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  transition: color 0.3s;
}

.theme-switch .i-sun {
  color: var(--sw-sun);
}

.theme-switch .i-moon {
  color: var(--sw-moon);
}

.theme-switch:active .theme-switch__knob {
  width: 32px;
}

/* The new theme grows out of the switch as a circle */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

.nav__menu {
  display: none;
}

.mobile-menu {
  display: none;
}

@media (max-width: 1180px) {
  .nav__links {
    gap: 22px;
  }
}

@media (max-width: 960px) {
  .nav__links {
    display: none;
  }

  .nav__menu {
    display: grid;
  }

  .nav__cta {
    display: none;
  }

  .mobile-menu {
    display: grid;
    gap: 4px;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu a {
    padding-block: 12px;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu .btn {
    margin-top: 12px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(56px, 7vw, 88px) clamp(72px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  /* faint field grid behind the mock, fades toward the edges */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 70%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 70%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero__copy {
  position: relative;
  gap: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding-inline: 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ink-2);
  background: var(--bg);
}

.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

:root[data-theme="dark"] .live-dot {
  background: var(--accent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .live-dot {
    background: var(--accent);
  }
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  color: var(--ink);
  opacity: 0;
  animation: ping 2.4s var(--out) infinite;
}

.hero h1 {
  margin-top: 28px;
  font-size: var(--fs-hero);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero h1 .line {
  display: block;
}

.hero .lead {
  margin-top: 28px;
  max-width: 45rem;
}

.hero__ctas {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust {
  margin-top: 28px;
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--subtle);
}

.trust span + span::before {
  content: "·";
  margin-right: 28px;
  color: var(--faint);
}

.hero__stage {
  position: relative;
  margin-top: 72px;
}

/* ---------- Stickers (Kingpin "slap") ---------- */

.sticker {
  position: absolute;
  z-index: 5;
  --r: -6deg;
}

.sticker__i {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  background: var(--sticker-bg);
  color: #0a0a0a;
  border: 2px solid var(--sticker-line);
  box-shadow:
    0 0 0 4px var(--bg),
    0 14px 28px rgba(10, 10, 10, 0.18);
  transform: rotate(var(--r));
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: default;
}

.sticker__i small {
  display: block;
  font-weight: 600;
  color: #5c5c59;
  letter-spacing: 0.04em;
}

.sticker__badge {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #0a0a0a;
  color: var(--pop);
  display: grid;
  place-items: center;
}

.sticker__badge .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.sticker__i:hover {
  animation: wob 0.7s var(--out);
}

.motion .sticker:not(.in) .sticker__i {
  opacity: 0;
}

.motion .sticker.in .sticker__i {
  animation: slap 0.75s var(--out) var(--d, 0s) backwards;
}

.motion .sticker.in .sticker__i:hover {
  animation: wob 0.7s var(--out);
}

.hero .sticker--claude {
  top: -26px;
  right: -14px;
  --r: 5deg;
}

.hero .sticker--domain {
  bottom: 70px;
  left: -22px;
  --r: -7deg;
}

@media (max-width: 720px) {
  .hero .sticker--claude {
    right: 4px;
    top: -30px;
  }

  .hero .sticker--domain {
    display: none;
  }
}

/* ---------- App screen (shared product mock styles) ---------- */

.app {
  position: relative;
  background: var(--app-bg);
  color: var(--app-fg);
  border: 1px solid var(--app-line);
  border-radius: 20px;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: var(--shadow-lg);
  text-align: left;
  isolation: isolate;
}

.app .icon {
  stroke-width: 1.6;
}

.app__sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, var(--app-sheen) 48%, transparent 60%);
  background-size: 250% 100%;
  background-position: 130% 0;
}

.motion .app__sheen {
  animation: sheen 8s ease-in-out 2s infinite;
}

.illus {
  margin-top: 14px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--subtle);
}

/* Dashboard (hero) */

.dash {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr) 330px;
  height: 640px;
}

.dash__side {
  border-right: 1px solid var(--app-line);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ws {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 12px;
  font-weight: 600;
  font-size: 13.5px;
}

.ws__logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--app-primary);
  color: var(--app-primary-ink);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.ws .icon {
  width: 13px;
  height: 13px;
  color: var(--app-subtle);
}

.app-search {
  height: 30px;
  margin-bottom: 6px;
  padding-inline: 9px;
  border-radius: 8px;
  background: var(--app-card);
  border: 1px solid var(--app-line-2);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--app-muted);
}

.app-search .icon {
  width: 13px;
  height: 13px;
}

.app-search kbd {
  margin-left: auto;
  font: inherit;
  font-size: 10.5px;
  color: var(--app-subtle);
}

.side-label {
  font-size: 11px;
  color: var(--app-subtle);
  padding: 12px 9px 4px;
}

.side-item {
  height: 28px;
  padding-inline: 9px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--app-fg-2);
  white-space: nowrap;
}

.side-item .icon {
  width: 14px;
  height: 14px;
  color: var(--app-muted);
}

.side-item.is-on {
  background: var(--app-raised);
  color: var(--app-fg);
}

.side-item .badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--app-line-2);
  color: var(--app-fg-2);
  font-size: 10.5px;
  display: grid;
  place-items: center;
}

.dash__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tabs-bar {
  height: 46px;
  border-bottom: 1px solid var(--app-line);
  display: flex;
  align-items: center;
  gap: 4px;
  padding-inline: 12px;
}

.tab {
  height: 28px;
  padding-inline: 10px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--app-muted);
}

.tab .icon {
  width: 13px;
  height: 13px;
}

.tab.is-on {
  background: var(--app-raised);
  color: var(--app-fg);
}

.dash__body {
  padding: 26px 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.greet h4 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-family: var(--font-ui);
}

.greet p {
  color: var(--app-muted);
  margin-top: 4px;
  font-size: 12px;
}

.group-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 12.5px;
}

.group-h .icon {
  width: 13px;
  height: 13px;
  color: var(--app-muted);
}

.group-h .count {
  color: var(--app-muted);
  font-weight: 400;
}

.attn {
  display: grid;
  gap: 8px;
}

.attn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--app-line-2);
  background: var(--app-panel);
  transition:
    background-color 0.3s,
    border-color 0.3s,
    transform 0.4s var(--out);
}

.attn-row.is-hot {
  border-color: color-mix(in srgb, var(--app-primary) 50%, transparent);
  background: var(--app-card);
  transform: translateX(3px);
}

.attn-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--app-raised);
  color: var(--app-fg-2);
  flex-shrink: 0;
}

.attn-ic .icon {
  width: 15px;
  height: 15px;
}

.attn-ic--red {
  background: var(--app-red-bg);
  color: var(--app-red);
}

.attn-ic--amber {
  background: var(--app-amber-bg);
  color: var(--app-amber);
}

.attn-row b {
  display: block;
  font-weight: 500;
  font-size: 12.5px;
}

.attn-row span {
  display: block;
  color: var(--app-muted);
  font-size: 11px;
}

.attn-row .act {
  margin-left: auto;
  display: flex;
  gap: 14px;
  color: var(--app-subtle);
}

.attn-row .act .icon {
  width: 13px;
  height: 13px;
}

.tasks {
  display: grid;
  gap: 2px;
}

.task {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  color: var(--app-fg-2);
}

.task .ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--app-blue);
  flex-shrink: 0;
}

.task .st {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--app-muted);
}

.task .st::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--app-blue);
}

.dash__ai {
  border-left: 1px solid var(--app-line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--app-panel);
}

.ai-head {
  height: 58px;
  border-bottom: 1px solid var(--app-line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 14px;
}

.ai-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--app-raised);
  display: grid;
  place-items: center;
  color: var(--app-fg);
}

.ai-orb .icon {
  width: 14px;
  height: 14px;
}

.ai-head b {
  display: block;
  font-weight: 600;
}

.ai-head span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--app-muted);
  font-size: 10.5px;
}

.ai-head span .icon {
  width: 11px;
  height: 11px;
}

.ai-thread {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  min-height: 0;
}

.bubble-me {
  align-self: flex-end;
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px 14px 4px 14px;
  background: var(--app-primary);
  color: var(--app-primary-ink);
  font-weight: 500;
  font-size: 12px;
}

.ai-msg {
  font-size: 12px;
  color: var(--app-fg-2);
}

.ai-msg b {
  color: var(--app-fg);
  font-weight: 600;
}

.ai-msg ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.ai-msg li {
  display: flex;
  gap: 8px;
}

.ai-msg li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--app-fg-2);
  flex-shrink: 0;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  height: 26px;
  padding-inline: 10px;
  border-radius: 999px;
  border: 1px solid var(--app-line-2);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: var(--app-fg-2);
  background: transparent;
  transition:
    background-color 0.25s,
    transform 0.2s var(--out);
}

.chip.is-pressed {
  background: var(--app-raised);
  transform: scale(0.94);
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--app-muted);
}

.ai-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-fg-2);
  animation: livep 1.2s ease-in-out infinite;
}

.shimmer {
  background: linear-gradient(90deg, var(--app-muted) 0%, var(--app-fg) 50%, var(--app-muted) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.8s linear infinite;
}

.ai-input {
  margin: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--app-line-2);
  background: var(--app-card);
  color: var(--app-subtle);
  display: grid;
  gap: 10px;
}

.ai-input .row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-input .row .icon {
  width: 13px;
  height: 13px;
}

.ai-input .row .icon:last-child {
  margin-left: auto;
}

.caret::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -2px;
  background: currentColor;
  animation: blink 1s steps(1) infinite;
}

/* The agent cursor that clicks around the hero */
.cursor {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.9s var(--inout),
    opacity 0.3s;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.cursor.is-on {
  opacity: 1;
}

.cursor svg {
  width: 22px;
  height: 22px;
}

.cursor .tag {
  position: absolute;
  left: 16px;
  top: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pop);
  color: #0a0a0a;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.cursor .ring {
  position: absolute;
  left: -12px;
  top: -12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--app-mark);
  opacity: 0;
}

.cursor.click .ring {
  animation: ring 0.55s var(--out);
}

.cursor.click svg {
  animation: tap 0.26s var(--out);
}

@media (max-width: 1080px) {
  .dash {
    grid-template-columns: 190px minmax(0, 1fr) 290px;
  }
}

@media (max-width: 920px) {
  .dash {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .dash__side {
    display: none;
  }
}

@media (max-width: 680px) {
  .dash {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .dash__main .tabs-bar,
  .dash__main .tasks,
  .dash__main .tasks + *,
  .dash__body > div:last-child {
    display: none;
  }

  .dash__body {
    padding: 20px 16px;
  }

  .attn-row .act {
    display: none;
  }

  .dash__ai {
    border-left: 0;
    border-top: 1px solid var(--app-line);
    min-height: 470px;
  }
}

/* ---------- The shift: 12 tools (scroll-pinned, always a dark stage) ---------- */

.shift {
  --ink: #f5f5f7;
  --ink-2: #c9c9cf;
  --faint: #5d5d63;
  --subtle: #8b8b92;
  --line: #1c1c1f;
  --line-2: #2a2a2e;
  --glow: #edffac;
  border-top: 1px solid var(--line);
  background: #09090a;
  color: var(--ink);
  position: relative;
  overflow: clip;
}

.shift__intro {
  padding-block: clamp(80px, 11vw, 130px) 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}

.shift__intro p {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 26rem;
}

.shift__pin {
  height: 280vh;
  position: relative;
}

.shift__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shift__sticky::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 900px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--glow) calc(var(--gl, 0) * 16%), transparent),
    transparent 60%
  );
  pointer-events: none;
}

.toolfield {
  position: relative;
  width: min(1120px, 100%);
  height: min(580px, 78vh);
}

.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.wires path {
  fill: none;
  stroke-width: 1.4;
  stroke-dasharray: 5 7;
  animation: wireflow 1.6s linear infinite;
}

@keyframes wireflow {
  to {
    stroke-dashoffset: -24;
  }
}

.toolfield__center {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--subtle);
  white-space: nowrap;
}

.tool {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 206px;
  margin: -46px 0 0 -103px;
  will-change: transform, opacity;
}

.tool__i {
  padding: 12px 14px 13px;
  border-radius: 14px;
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 8px;
}

.toolfield.is-busy .tool__i {
  animation: jit 2.6s ease-in-out var(--j, 0s) infinite;
}

@keyframes jit {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(1.5px, -2px) rotate(0.6deg);
  }
  50% {
    transform: translate(-1px, 1.5px) rotate(-0.5deg);
  }
  75% {
    transform: translate(1px, 1px) rotate(0.3deg);
  }
}

.tool__top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.tool__top b {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.tool__g {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  background: var(--c, #0a0a0a);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.tool__badge {
  min-width: 22px;
  height: 20px;
  padding-inline: 6px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font: 700 0.68rem var(--font-ui);
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.tool__badge.is-bump {
  animation: bump 0.45s var(--out);
}

@keyframes bump {
  40% {
    transform: scale(1.3);
  }
}

.tool__i p {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  line-height: 1.35;
  color: #4a4a4f;
}

.core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  margin-left: -170px;
  translate: 0 -50%;
  padding: 18px;
  border-radius: 22px;
  background: #0f0f11;
  border: 1px solid #2a2a2e;
  color: #f5f5f7;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px color-mix(in srgb, var(--glow) 30%, transparent),
    0 0 90px color-mix(in srgb, var(--glow) 22%, transparent);
  opacity: 0;
  transform: scale(0.5);
  font-family: var(--font-ui);
}

.core__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.core__head b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.core__head span:not(.core__mark) {
  display: block;
  font-size: 0.76rem;
  color: #9b9ba2;
}

.core__mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--glow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--glow) 14%, transparent);
}

.core__mark::after {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0a0a0a;
}

.core__rows {
  height: 0;
  overflow: hidden;
  display: grid;
  gap: 6px;
  align-content: start;
}

.core__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #18181b;
  border: 1px solid #242428;
  font-size: 0.78rem;
  color: #d8d8dc;
}

.core__rows .core__row:first-child {
  margin-top: 14px;
}

.core__row .icon {
  width: 14px;
  height: 14px;
  color: var(--glow);
}

.core__row span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.core__row em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--glow) 14%, transparent);
  color: var(--glow);
}

.shift__count {
  position: absolute;
  left: 50%;
  bottom: 30px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
}

.shift__count b {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 1.4em;
  text-align: right;
}

.shift__count i {
  font-style: normal;
}

.shift__bar {
  display: block;
  width: 110px;
  height: 2px;
  background: var(--line-2);
  border-radius: 2px;
  overflow: hidden;
}

.shift__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--glow);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

@media (max-width: 820px) {
  .shift__intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .shift__pin {
    height: 240vh;
  }
}

@media (max-width: 600px) {
  .shift__count {
    gap: 12px;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .shift__bar {
    display: none;
  }

  .core {
    width: 290px;
    margin-left: -145px;
  }
}

/* No pinning when motion is off: settle into the finished state */
.no-motion .shift__pin {
  height: auto;
}

.no-motion .shift__sticky {
  position: relative;
  height: 600px;
}

/* ---------- Before / after week ---------- */

.week__head {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}

.week__head p {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 24rem;
}

.week__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.weekcard {
  border-radius: var(--radius-xl);
  padding: 30px 32px 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.weekcard--before {
  background: var(--soft-card);
  border: 1px solid var(--soft-card-line);
  color: var(--ink-2);
}

.weekcard--after {
  background: var(--card-hi);
  box-shadow: var(--card-hi-shadow);
  border: 1px solid var(--card-line);
  color: var(--card-fg);
}

.weekcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.weekcard__head h3 {
  font-size: 1.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.weekcard__head small {
  font-size: 0.8rem;
  color: var(--subtle);
}

.weekcard--after .weekcard__head small {
  color: var(--card-muted);
}

.mini-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.mini-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0a0a0a;
}

.day {
  display: grid;
  grid-template-columns: 44px 26px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-block: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 0.95rem;
}

.weekcard--after .day {
  border-top-color: var(--card-line);
}

.day__d {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--subtle);
}

.day__i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.weekcard--before .day__i {
  background: var(--line-2);
  color: var(--muted);
}

.weekcard--after .day__i {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.day__i .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.6;
}

.day__t {
  position: relative;
}

.weekcard--before .day__t {
  color: var(--muted);
}

/* strike-through drawn across each line of the "before" rows */
.weekcard--before .day__t .st {
  background: linear-gradient(var(--subtle), var(--subtle)) no-repeat 0 58% / 0% 1.5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.9s var(--out) var(--d, 0s);
}

.weekcard--before.in .day__t .st {
  background-size: 100% 1.5px;
}

.motion .weekcard--after:not(.in) .day__i {
  transform: scale(0);
}

.weekcard--after .day__i {
  transition: transform 0.6s var(--out) var(--d, 0s);
}

@media (max-width: 820px) {
  .week__head,
  .week__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .weekcard {
    padding: 24px 20px 12px;
  }
}

/* ---------- Tour (real screenshots) ---------- */

/* Each app screen ships in both themes; show the opposite of the page for contrast */
.on-light {
  display: none;
}

:root[data-theme="dark"] .on-dark {
  display: none;
}

:root[data-theme="dark"] .on-light {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-dark {
    display: none;
  }

  :root:not([data-theme="light"]) .on-light {
    display: block;
  }
}

.tour__head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}

.tour__head p {
  color: var(--ink-2);
  font-size: 1.05rem;
  max-width: 26rem;
}

.tour__tabs {
  margin-top: 48px;
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.tour__tab {
  height: 40px;
  padding-inline: 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.tour__tab[aria-selected="true"] {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.tour__stage {
  margin-top: 28px;
  position: relative;
}

.tour__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.tour__note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 48px;
  align-items: end;
}

.tour__note .checklist {
  margin-top: 0;
}

.tour__note .checklist li {
  font-size: 0.98rem;
}

.tour__panel[hidden] {
  display: none;
}

.motion .tour__panel.is-entering .shot {
  animation: rise-scale 0.9s var(--out) backwards;
}

.tour__note h3 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tour__note p {
  margin-top: 10px;
  color: var(--muted);
}

.shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--app-line);
  background: var(--app-bg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.shot__bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--app-line);
  background: var(--app-panel);
}

.shot__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--app-line-2);
}

.shot__bar span {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--app-muted);
}

.shot img {
  width: 100%;
  height: auto;
}

.phones {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
}

.phones .phone {
  width: min(250px, 30vw);
}

.phones .phone:nth-child(2) {
  margin-top: 40px;
}

@media (max-width: 900px) {
  .tour__head,
  .tour__note {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  /* Desktop captures are unreadable at phone width: show the main content
     area larger and let the sidebar fall off the left edge. */
  .shot img {
    aspect-ratio: 1 / 1.05;
    object-fit: cover;
    object-position: 45% 0;
  }
}

@media (max-width: 560px) {
  .tour__tab {
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  .shift__progress i {
    width: 60px;
  }

  .phones .phone:nth-child(3) {
    display: none;
  }

  .phones .phone {
    width: 44vw;
  }
}

/* ---------- Split rows (review, chat, finance, sales) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.split .stack {
  max-width: 34rem;
}

.split .lead {
  font-size: 1.12rem;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--flip .split__media {
    order: 2;
  }
}

/* Phone frame */

.phone {
  position: relative;
  border-radius: 44px;
  padding: 10px;
  background: #111;
  border: 1px solid #2a2a2a;
  box-shadow:
    inset 0 0 0 2px #1f1f1f,
    var(--shadow-lg);
}

.phone__screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 645 / 1398;
  background: #000;
  max-width: 100%;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.review-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 20px;
}

.review-stage .phone {
  width: 320px;
  max-width: 78vw;
}

.feed {
  position: absolute;
  inset: 0;
}

.feed__track {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--inout);
}

.feed__track.snap {
  transition: none;
}

.feed__item {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
}

.feed__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 18px;
  background: #1a1a1a;
  border-top: 1px solid #2d2d2d;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.35);
  font-family: var(--font-ui);
  color: #f5f5f5;
  font-size: 12px;
  transform: translateY(110%);
  transition: transform 0.45s var(--out);
}

.sheet.is-up {
  transform: translateY(0);
}

.sheet__who {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a3a3a3;
  font-size: 11px;
}

.sheet__who .av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pop);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 10px;
  display: grid;
  place-items: center;
}

.sheet__who .t {
  font-family: var(--font-mono);
  color: var(--pop);
}

.sheet__txt {
  margin-top: 8px;
  min-height: 34px;
  line-height: 1.4;
}

.sheet__send {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.sheet__send span {
  height: 26px;
  padding-inline: 12px;
  border-radius: 7px;
  background: var(--pop);
  color: #0a0a0a;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  transition: transform 0.2s var(--out);
}

.sheet__send span.is-pressed {
  transform: scale(0.9);
}

.toast {
  position: absolute;
  left: max(0px, calc(50% - 330px));
  top: 58%;
  width: 270px;
  padding: 14px;
  border-radius: 16px;
  background: var(--card-hi);
  color: var(--card-fg);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 12px;
  z-index: 4;
  transition:
    opacity 0.45s var(--out),
    transform 0.55s var(--out);
}

.motion .toast:not(.is-on) {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
}

.toast__ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #0a0a0a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toast__ic .icon {
  width: 17px;
  height: 17px;
}

.toast b {
  display: block;
  font-size: 0.92rem;
}

.toast span {
  display: block;
  font-size: 0.8rem;
  color: var(--card-muted);
  margin-top: 2px;
}

.approve {
  position: absolute;
  right: max(0px, calc(50% - 250px));
  top: 30%;
  z-index: 4;
  --r: 8deg;
}

.hand {
  position: absolute;
  right: max(0px, calc(50% - 330px));
  top: 10%;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  transform: rotate(6deg);
  z-index: 4;
}

.hand svg {
  display: block;
  width: 46px;
  height: 64px;
  margin: 8px 0 0 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.hand path {
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
}

.motion .hand:not(.in) path {
  stroke-dashoffset: 120;
}

.hand.in path {
  transition: stroke-dashoffset 1.2s var(--out) 0.3s;
}

@media (max-width: 700px) {
  .toast {
    left: 0;
    top: auto;
    bottom: -10px;
    width: 250px;
  }

  .hand {
    right: 0;
    top: 0;
    font-size: 1.3rem;
  }

  .approve {
    right: 0;
  }
}

/* Smart chat: WhatsApp bubbles in a Slack structure */

.wchat__grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  height: 500px;
}

.wchat__side {
  padding: 14px 8px;
  border-right: 1px solid var(--app-line);
  background: var(--app-sub);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wchat__side h5 {
  margin: 0 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--app-muted);
}

.wchat__side h5 + .wchan ~ h5 {
  margin-top: 14px;
}

.wchan {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--app-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.wchan span {
  color: var(--app-subtle);
}

.wchan.is-on {
  background: var(--app-hl-bg);
  color: var(--app-mark);
  font-weight: 600;
}

.wchan.is-on span {
  color: inherit;
}

.wchan__dot {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--app-mark);
  flex-shrink: 0;
}

.wchat__main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wchat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--app-line);
}

.wchat__head b {
  display: block;
  font-weight: 600;
  font-size: 13px;
}

.wchat__head div span {
  display: block;
  color: var(--app-muted);
  font-size: 11px;
}

.wchat__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 14px 18px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  background-color: var(--app-sunk);
  background-image: radial-gradient(
    circle at 1px 1px,
    color-mix(in srgb, var(--app-fg) 7%, transparent) 1px,
    transparent 0
  );
  background-size: 18px 18px;
}

.wday {
  align-self: center;
  margin-bottom: 4px;
  padding: 3px 10px;
  border-radius: 7px;
  background: var(--app-tile);
  color: var(--app-muted);
  font-size: 10.5px;
}

.wmsg {
  position: relative;
  max-width: 80%;
  padding: 7px 10px 6px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  transition:
    opacity 0.45s var(--out),
    transform 0.55s var(--out);
}

.wmsg::before {
  content: "";
  position: absolute;
  top: 0;
  width: 7px;
  height: 9px;
  background: inherit;
}

.wmsg--in {
  align-self: flex-start;
  background: var(--app-tile);
  border-top-left-radius: 2px;
}

.wmsg--in::before {
  left: -6px;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.wmsg--out {
  align-self: flex-end;
  background: var(--pop);
  color: #0a0a0a;
  border-top-right-radius: 2px;
}

.wmsg--out::before {
  right: -6px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.wmsg--cont {
  border-radius: 10px;
}

.wmsg--cont::before {
  display: none;
}

.wmsg__name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--app-name);
}

.wmeta {
  float: right;
  margin: 6px 0 -2px 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  line-height: 1;
  color: var(--app-subtle);
}

.wmsg--out .wmeta {
  color: rgba(10, 10, 10, 0.5);
}

.ticks {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 0.4s;
}

.ticks.is-read {
  color: #1d7fe6;
}

.wvoice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 230px;
  padding: 8px 10px;
}

.wvoice__play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--app-fg);
  color: var(--app-bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wvoice__play .icon {
  width: 11px;
  height: 11px;
  fill: currentColor;
  margin-left: 2px;
}

.wvoice__wave {
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.wvoice__wave i {
  width: 2.5px;
  height: calc(var(--h) * 100%);
  border-radius: 2px;
  background: var(--app-muted);
  transition: background-color 0.15s calc(var(--i) * 0.06s);
}

.wvoice.is-playing .wvoice__wave i {
  background: var(--app-mark);
}

.wvoice__dur {
  color: var(--app-muted);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.wvoice .wmeta,
.wvid .wmeta {
  float: none;
  margin: 0 0 -2px;
  align-self: flex-end;
}

.wthread {
  align-self: flex-start;
  margin: -1px 0 4px 2px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--app-muted);
  transition:
    opacity 0.45s var(--out),
    transform 0.55s var(--out);
}

.wthread .mini-avs i {
  border-color: var(--app-sunk);
}

.wthread b {
  color: var(--app-blue);
  font-weight: 600;
}

.motion .wmsg.is-hidden,
.motion .wthread.is-hidden {
  opacity: 0;
  transform: translateY(10px);
}

/* the shared video grows in from zero height */
.wgrow {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.5s var(--out);
}

.wgrow__clip {
  min-height: 0;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  transition: opacity 0.4s var(--out) 0.1s;
}

.wgrow.is-collapsed {
  grid-template-rows: 0fr;
}

.wgrow.is-collapsed .wgrow__clip {
  opacity: 0;
}

.wvid {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
}

.wvid__thumb {
  width: 36px;
  height: 52px;
  border-radius: 7px;
  background: linear-gradient(160deg, #ffd6a8, #b8693a);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wvid__thumb .icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.wvid__txt b {
  display: block;
  font-weight: 600;
}

.wvid__txt span {
  display: block;
  font-size: 10.5px;
  color: rgba(10, 10, 10, 0.6);
}

.wchat__foot {
  position: relative;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--app-line);
}

.wcompose {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--app-line-2);
  background: var(--app-card);
  color: var(--app-subtle);
}

.wcompose > .icon {
  width: 15px;
  height: 15px;
}

.wcompose__txt {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.wcompose__txt.is-typed {
  color: var(--app-fg);
  font-family: var(--font-mono);
  font-size: 12px;
}

.wcompose .send {
  border-radius: 50%;
}

.slash {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% - 4px);
  z-index: 2;
  max-width: 330px;
  padding: 6px;
  border-radius: 14px;
  background: var(--app-tile);
  border: 1px solid var(--app-line-2);
  box-shadow: var(--app-pop);
  transform-origin: 20% 100%;
  transition:
    opacity 0.25s,
    transform 0.45s var(--out);
}

.slash:not(.is-open) {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}

.slash__h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 8px;
  color: var(--app-muted);
  font-size: 11px;
}

.slash__h kbd {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--pop);
  color: #0a0a0a;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10.5px;
}

.slash__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 9px;
  font-size: 12px;
  transition:
    background-color 0.2s,
    opacity 0.3s var(--out),
    transform 0.4s var(--out);
}

.slash__item b {
  font-weight: 500;
}

.slash__item span:last-child {
  color: var(--app-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.slash__item.is-on {
  background: var(--app-hl-bg);
}

.slash__item.is-pressed {
  transform: scale(0.97);
}

.slash__th {
  width: 22px;
  height: 30px;
  border-radius: 5px;
  background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 40%, #000));
}

.slash:not(.is-open) .slash__item {
  opacity: 0;
  transform: translateY(6px);
}

.slash.is-open .slash__item:nth-child(3) {
  transition-delay: 0s, 0.05s, 0.05s;
}

.slash.is-open .slash__item:nth-child(4) {
  transition-delay: 0s, 0.1s, 0.1s;
}

@media (max-width: 600px) {
  .wchat__grid {
    grid-template-columns: minmax(0, 1fr);
    height: 480px;
  }

  .wchat__side {
    display: none;
  }

  .wchat__body {
    padding-inline: 14px;
  }

  .wvoice {
    min-width: 200px;
  }
}

/* Finance spotlight */

.money__head,
.calls__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--app-line);
}

.money__head b,
.calls__head b {
  display: block;
  font-weight: 600;
  font-size: 14px;
}

.calls__head span:not(.chip) {
  display: block;
  color: var(--app-muted);
  font-size: 11px;
}

.money__head .chip,
.calls__head .chip {
  gap: 6px;
  flex-shrink: 0;
}

.calls__head .chip .icon {
  width: 12px;
  height: 12px;
  color: var(--app-mark);
}

.money__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--app-line);
}

.money__kpis > div > span {
  display: block;
  color: var(--app-muted);
  font-size: 11px;
}

.money__kpis b {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.money__kpis em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 10.5px;
  color: var(--app-subtle);
}

.money__kpis em.up {
  color: var(--app-green);
}

.invs {
  padding: 10px 12px 14px;
  display: grid;
  gap: 2px;
}

.invs__h {
  display: flex;
  justify-content: space-between;
  padding: 2px 8px 6px;
  color: var(--app-muted);
  font-size: 11px;
}

.inv {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 76px;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  transition: background-color 0.4s;
}

.inv__who {
  min-width: 0;
}

.inv__who b,
.inv__who span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inv__who b {
  font-weight: 500;
}

.inv__who span {
  color: var(--app-muted);
  font-size: 11px;
}

.inv__amt {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.inv--bad {
  background: var(--app-red-bg);
}

.inv--bad.is-flash {
  animation: nudge 0.5s var(--out);
}

.state {
  justify-self: end;
  height: 22px;
  padding-inline: 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.state::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.state--ok {
  color: var(--app-green);
  background: color-mix(in srgb, var(--app-green) 12%, transparent);
}

.state--due {
  color: var(--app-amber);
  background: var(--app-amber-bg);
}

.state--bad {
  color: var(--app-red);
  background: color-mix(in srgb, var(--app-red) 14%, transparent);
}

.inv-alert {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--out);
}

.inv-alert.is-open {
  grid-template-rows: 1fr;
}

.inv-alert__clip {
  min-height: 0;
  overflow: hidden;
}

.inv-alert__in {
  margin: 4px 0 6px;
  padding: 10px 10px 10px 12px;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--app-red) 35%, transparent);
  background: color-mix(in srgb, var(--app-red) 6%, var(--app-bg));
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.35s var(--out) 0.1s;
}

.inv-alert:not(.is-open) .inv-alert__in {
  opacity: 0;
}

.inv-alert__ic {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--app-red-bg);
  color: var(--app-red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.inv-alert__ic .icon {
  width: 14px;
  height: 14px;
}

.inv-alert__ic::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--app-red);
  opacity: 0;
}

.motion .inv-alert.is-open .inv-alert__ic::after {
  animation: ping 1.2s var(--out) 0.3s 2;
}

.inv-alert__in > div {
  min-width: 0;
}

.inv-alert__in b {
  display: block;
  font-weight: 600;
  font-size: 12px;
}

.inv-alert__in div span {
  display: block;
  color: var(--app-muted);
  font-size: 11px;
}

.resend {
  margin-left: auto;
  height: 30px;
  padding-inline: 12px;
  border-radius: 8px;
  background: var(--app-mark);
  color: var(--app-mark-ink);
  font-weight: 600;
  font-size: 11.5px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--out);
}

.resend > span {
  grid-area: 1 / 1;
  transition: opacity 0.25s;
}

.resend__b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
}

.resend__b .icon {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.resend.is-done .resend__a {
  opacity: 0;
}

.resend.is-done .resend__b {
  opacity: 1;
}

.resend.is-pressed {
  transform: scale(0.9);
}

/* Sales call review */

.call + .call {
  border-top: 1px solid var(--app-line);
}

.call__row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 76px;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
}

.call__rep {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 10.5px;
  display: grid;
  place-items: center;
}

.call__who {
  min-width: 0;
}

.call__who b,
.call__who span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call__who b {
  font-weight: 600;
}

.call__who span {
  color: var(--app-muted);
  font-size: 11px;
}

.call__len {
  color: var(--app-fg-2);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.call.is-open {
  background: var(--app-sub);
}

.call__ai {
  margin: 0 18px 16px 60px;
  padding: 14px;
  border-radius: 13px;
  background: var(--app-card);
  border: 1px solid var(--app-line);
  display: grid;
  gap: 10px;
}

.call__ai > * {
  transition:
    opacity 0.5s var(--out) var(--d, 0s),
    transform 0.6s var(--out) var(--d, 0s);
}

.call__ai > :nth-child(2) {
  --d: 0.35s;
}

.call__ai > :nth-child(3) {
  --d: 0.75s;
}

.call__ai > :nth-child(4) {
  --d: 1.1s;
}

.motion .call__ai:not(.in) > * {
  opacity: 0;
  transform: translateY(8px);
}

.call__ai-h {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--app-mark);
  font-weight: 600;
  font-size: 11px;
}

.call__ai-h .icon {
  width: 12px;
  height: 12px;
}

.call__ai p {
  color: var(--app-fg-2);
  line-height: 1.55;
}

.ctags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ctag {
  height: 24px;
  padding-inline: 9px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 11px;
}

.ctag--warn {
  color: var(--app-amber);
  background: var(--app-amber-bg);
  border: 1px solid color-mix(in srgb, var(--app-amber) 28%, transparent);
}

.ctag--next {
  color: var(--app-mark);
  background: var(--app-tag-bg);
  border: 1px solid color-mix(in srgb, var(--app-mark) 28%, transparent);
}

.coach {
  padding: 10px 12px;
  border-radius: 10px;
  border-left: 2px solid var(--app-mark);
  background: var(--app-hl-faint);
  display: grid;
  gap: 2px;
}

.coach b {
  font-weight: 600;
  font-size: 11.5px;
}

.coach span {
  color: var(--app-fg-2);
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag--ai {
  height: 26px;
  padding-inline: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.tag--ai .icon {
  width: 12px;
  height: 12px;
}

@media (max-width: 520px) {
  .money__kpis {
    gap: 10px;
    padding-inline: 14px;
  }

  .money__kpis b {
    font-size: 15.5px;
  }

  .inv {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .inv > .av-sq {
    display: none;
  }

  .call__row {
    gap: 10px;
    padding-inline: 14px;
  }

  .call__ai {
    margin: 0 14px 14px;
  }
}

@keyframes nudge {
  20% {
    transform: translateX(-4px);
  }

  45% {
    transform: translateX(4px);
  }

  70% {
    transform: translateX(-2px);
  }
}

.send {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--app-mark);
  color: var(--app-mark-ink);
  display: grid;
  place-items: center;
}

.send .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

/* ---------- Operations ---------- */

.ops__grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ocard {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: var(--card);
  color: var(--card-fg);
  border: 1px solid var(--card-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ocard h3 {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ocard > p {
  color: var(--card-muted);
  max-width: 32rem;
}

.ocard__demo {
  margin-top: 22px;
  border-radius: 16px;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--app-fg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* white label */
.url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--app-line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--app-fg-2);
}

.url .icon {
  width: 12px;
  height: 12px;
  color: var(--app-muted);
}

.url .typed {
  color: var(--app-fg);
}

.portal {
  padding: 26px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1;
}

.portal__logo {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 1.5px dashed var(--app-line-2);
  display: grid;
  place-items: center;
  font-size: 10.5px;
  color: var(--app-muted);
  transition:
    background-color 0.5s var(--out),
    border-color 0.5s;
}

.portal__name b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.portal__name span {
  color: var(--app-muted);
  font-size: 11.5px;
}

.portal__btn {
  height: 28px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--brand, var(--pop));
  color: #0a0a0a;
  font-weight: 600;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.5s var(--out);
}

.swatches {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--c);
  cursor: pointer;
  padding: 0;
  outline-offset: 2px;
  transition: transform 0.3s var(--out);
}

.swatch:hover {
  transform: scale(1.12);
}

.swatch[aria-pressed="true"] {
  border-color: var(--app-fg);
}

/* onboarding checklist */
.steps {
  list-style: none;
  margin: 0;
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--app-fg-2);
}

.step__c {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--app-line-2);
  display: grid;
  place-items: center;
  color: var(--app-mark-ink);
  transition:
    background-color 0.4s var(--out),
    border-color 0.4s;
  flex-shrink: 0;
}

.step__c .icon {
  width: 11px;
  height: 11px;
  stroke-width: 3;
  transform: scale(0);
  transition: transform 0.45s var(--out);
}

.step.is-done .step__c {
  background: var(--app-mark);
  border-color: var(--app-mark);
}

.step.is-done .step__c .icon {
  transform: scale(1);
}

.step.is-next .step__c {
  border-color: var(--app-mark);
}

.step.is-later {
  color: var(--app-subtle);
}

.step__when {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--app-subtle);
}

/* small square avatar used across the mocks */
.av-sq {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c);
  color: #0a0a0a;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mini-avs {
  display: inline-flex;
  font-style: normal;
}

.mini-avs i {
  width: 17px;
  height: 17px;
  margin-left: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--app-panel);
  background: var(--app-line-2);
  color: var(--app-fg);
  font-style: normal;
  font-size: 8.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.mini-avs i:first-child {
  margin-left: 0;
}

/* proposal, tracked and signed */
.proposal {
  padding: 18px 20px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.proposal__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.proposal__who {
  min-width: 0;
}

.proposal__who b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.proposal__who span {
  display: block;
  color: var(--app-muted);
  font-size: 11px;
}

.proposal__top > b {
  margin-left: auto;
  font-size: 13px;
  white-space: nowrap;
}

.proposal__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--app-fg-2);
}

.proposal__row span:last-child {
  color: var(--app-muted);
}

.trail {
  list-style: none;
  margin: 6px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--app-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trail li {
  position: relative;
  padding: 18px 8px 0 0;
  display: grid;
  font-size: 11.5px;
  --d: 0.3s;
}

.trail li:nth-child(2) {
  --d: 0.9s;
}

.trail li:nth-child(3) {
  --d: 1.5s;
}

/* the line to the next step, and its lime fill */
.trail li::before,
.trail li::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  right: -6px;
  height: 1.5px;
  background: var(--app-line-2);
}

.trail li::after {
  background: var(--app-mark);
  transform-origin: left;
  transition: transform 0.6s var(--inout) calc(var(--d) + 0.15s);
}

.trail li:last-child::before,
.trail li:last-child::after {
  display: none;
}

.trail i {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--app-mark);
  box-shadow: 0 0 0 3px var(--app-panel);
  transition:
    background-color 0.35s var(--out) var(--d),
    transform 0.5s var(--out) var(--d);
}

.trail b {
  font-weight: 600;
  color: var(--app-fg);
}

.trail span {
  color: var(--app-muted);
  font-size: 10.5px;
}

.motion .proposal:not(.in) .trail i {
  background: var(--app-line-2);
  transform: scale(0.7);
}

.motion .proposal:not(.in) .trail li::after {
  transform: scaleX(0);
}

.proposal__sign {
  margin-top: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.signed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--pop);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 11.5px;
  flex-shrink: 0;
}

.signed .icon {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.motion .proposal:not(.in) .signed {
  opacity: 0;
}

.motion .proposal.in .signed {
  animation: slap 0.7s var(--out) 2s backwards;
}

.sig {
  display: grid;
  justify-items: end;
  min-width: 0;
}

.sig__ink {
  width: 128px;
  height: 36px;
  fill: none;
  stroke: var(--app-fg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sig__ink path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.motion .proposal:not(.in) .sig__ink path {
  stroke-dashoffset: 1;
}

.proposal.in .sig__ink path {
  transition: stroke-dashoffset 1.5s var(--inout) 2.2s;
}

.sig span {
  padding-top: 4px;
  border-top: 1px dashed var(--app-line-2);
  color: var(--app-muted);
  font-size: 10px;
  white-space: nowrap;
}

/* client channels */
.chans {
  padding: 14px 12px;
  display: grid;
  align-content: start;
  gap: 4px;
  flex: 1;
}

.chans__h {
  display: flex;
  justify-content: space-between;
  padding: 0 8px 6px;
  font-size: 11px;
  color: var(--app-muted);
}

.chans__h span:first-child {
  color: var(--app-fg-2);
  font-weight: 600;
}

.chan {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 8px;
  border-radius: 11px;
  --d: 0.15s;
}

.chan:nth-child(3) {
  --d: 0.3s;
}

.chan:nth-child(4) {
  --d: 0.45s;
}

.chan.is-unread {
  background: var(--app-raised);
}

.chan__hash {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--app-card);
  border: 1px solid var(--app-line-2);
  color: var(--app-muted);
  font-weight: 600;
  font-size: 12px;
  display: grid;
  place-items: center;
}

.chan__body {
  display: grid;
  min-width: 0;
}

.chan__body b {
  font-weight: 500;
  font-size: 12.5px;
}

.chan.is-unread .chan__body b {
  font-weight: 700;
}

.chan__body > span {
  color: var(--app-muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chan.is-unread .chan__body > span {
  color: var(--app-fg-2);
}

.chan__body .chan__thread {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--app-blue);
  font-weight: 600;
  font-size: 11px;
}

.chan__meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  font-size: 10.5px;
  color: var(--app-subtle);
}

.unread {
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--app-mark);
  color: var(--app-mark-ink);
  font-weight: 700;
  font-size: 10px;
  display: grid;
  place-items: center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s;
}

.chans.in .chan {
  transition:
    opacity 0.5s var(--out) var(--d),
    transform 0.6s var(--out) var(--d);
}

.motion .chans:not(.in) .chan {
  opacity: 0;
  transform: translateY(8px);
}

.motion .chans:not(.in) .unread {
  transform: scale(0);
}

/* production tracking */
.prod {
  padding: 18px 20px;
  display: grid;
  gap: 18px;
}

.prod__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* labels can wrap on a phone; keep the numbers on one baseline */
.prod__kpis > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prod__kpis > div > span {
  display: block;
  color: var(--app-muted);
  font-size: 11px;
}

.prod__kpis b {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.bars {
  display: grid;
  gap: 12px;
}

.bar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
  color: var(--app-fg-2);
  font-size: 11.5px;
}

.bar i {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: var(--app-line);
  overflow: hidden;
}

.bar i::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 6px;
  background: var(--app-mark);
  transform-origin: left;
  transition: transform 1.1s var(--out) var(--d, 0s);
}

.bar--hot i::after {
  background: var(--app-amber);
}

.motion .prod:not(.in) .bar i::after {
  transform: scaleX(0);
}

.bar span:last-child {
  text-align: right;
  color: var(--app-muted);
  font-variant-numeric: tabular-nums;
}

.bar--hot span:last-child {
  color: var(--app-amber);
}

/* leads pipeline */
.pipe {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
}

.pipe__col {
  padding: 8px;
  border-radius: 12px;
  background: var(--app-sunk);
  border: 1px solid var(--app-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.pipe__h {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 4px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--app-fg-2);
  white-space: nowrap;
}

.pipe__h span {
  color: var(--app-subtle);
  font-variant-numeric: tabular-nums;
}

.pipe__cards {
  display: grid;
  gap: 6px;
}

.plead {
  position: relative;
  padding: 8px 9px;
  border-radius: 9px;
  background: var(--app-tile);
  border: 1px solid var(--app-line-2);
  display: grid;
  min-width: 0;
  transition: border-color 0.4s;
}

.plead b,
.plead span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plead b {
  font-weight: 600;
  font-size: 11.5px;
}

.plead span {
  color: var(--app-muted);
  font-size: 10.5px;
}

.plead--won {
  background: var(--app-hl-card);
  border-color: color-mix(in srgb, var(--app-mark) 30%, var(--app-line-2));
}

.plead--won span {
  color: var(--app-mark);
}

@media (max-width: 600px) {
  .pipe {
    padding: 8px;
    gap: 5px;
  }

  .pipe__col {
    padding: 5px;
    gap: 6px;
  }

  .pipe__h {
    padding-inline: 3px;
    font-size: 10.5px;
  }

  .plead {
    padding: 6px 7px;
  }

  .plead b,
  .plead span {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 900px) {
  .ops__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ocard {
    padding: 24px 20px;
  }
}

/* ---------- Clips AI ---------- */

.ai__grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 16px;
}

.aichat {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--radius-xl);
  min-height: 460px;
}

.aichat__h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
}

.aichat__h .icon {
  width: 15px;
  height: 15px;
  color: var(--app-mark);
}

.aichat .ans {
  border: 1px solid var(--app-line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  color: var(--app-fg-2);
}

.who {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--app-card);
  font-size: 12px;
  transition:
    opacity 0.45s var(--out),
    transform 0.55s var(--out);
}

.who span:last-child {
  color: var(--app-muted);
  text-align: right;
}

.motion .who.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.aichat .chips {
  margin-top: auto;
}

.chip--solid {
  background: var(--pop);
  color: #0a0a0a;
  border-color: var(--pop);
  font-weight: 600;
  height: 34px;
  padding-inline: 14px;
  font-size: 12px;
}

.chip--dash {
  border-style: dashed;
  height: 34px;
  padding-inline: 14px;
  font-size: 12px;
  gap: 8px;
}

.chip--dash em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.modes {
  display: grid;
  gap: 16px;
}

.mode {
  display: flex;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--card);
  color: var(--card-fg);
  border: 1px solid var(--card-line);
  transition:
    transform 0.5s var(--out),
    border-color 0.35s;
}

.mode:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--hl) 35%, var(--card-line));
}

.fcard__ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--card-line);
  display: grid;
  place-items: center;
  color: var(--hl);
}

.fcard__ic .icon {
  width: 20px;
  height: 20px;
}

.mode .fcard__ic {
  flex-shrink: 0;
}

.mode h3 {
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mode p {
  margin-top: 6px;
  color: var(--card-muted);
  font-size: 0.97rem;
}

.tag {
  height: 22px;
  padding-inline: 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag--live {
  background: var(--pop);
  color: #0a0a0a;
}

.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a0a0a;
  animation: livep 1.6s ease-in-out infinite;
}

.tag--soon {
  border: 1px solid var(--card-line);
  color: var(--card-fg);
}

@media (max-width: 900px) {
  .ai__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .mode {
    flex-direction: column;
    padding: 22px;
  }
}

/* ---------- Customer zero ---------- */

.zero__card {
  margin-top: 48px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--card);
  color: var(--card-fg);
  border: 1px solid var(--card-line);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
}

.zero__where {
  font-size: 0.85rem;
  color: var(--card-muted);
}

.zero__card h3 {
  margin-top: 14px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.zero__card > div > p {
  margin-top: 18px;
  color: var(--card-muted);
  line-height: 1.65;
}

.quote {
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
}

.quote__mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.8;
  color: var(--hl);
}

.quote p {
  font-size: 1.1rem;
  line-height: 1.5;
}

.quote footer {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--card-muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.stat {
  padding: 20px;
  border-radius: 16px;
  background: var(--card-2);
  border: 1px solid var(--card-line);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--hl);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--card-muted);
}

.placeholder {
  outline: 1px dashed color-mix(in srgb, var(--hl) 45%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .zero__card {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Founding agencies ---------- */

.found__card {
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: var(--card);
  color: var(--card-fg);
  border: 1px solid var(--card-line);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.found__card .lead {
  color: var(--card-muted);
  font-size: 1.08rem;
}

.found__spots {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--card-muted);
}

.found__spots b {
  color: var(--card-fg);
  font-weight: 600;
}

.found__dots {
  display: flex;
  gap: 6px;
}

.found__dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
}

.found__dots i.is-taken {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
}

.found__cta {
  margin-top: 12px;
}

.found__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.found__perks li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 16px;
  background: var(--card-2);
  border: 1px solid var(--card-line);
}

.found__perks .fcard__ic {
  flex-shrink: 0;
}

.found__perks b {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
}

.found__perks span:not(.fcard__ic) {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
  color: var(--card-muted);
}

@media (max-width: 900px) {
  .found__card {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Videos: table and reels view (built over the table screenshot) ---------- */
.views {
  position: relative;
}
.views img {
  max-width: 100%;
}
@media (max-width: 600px) {
  #views img {
    aspect-ratio: auto;
    object-fit: fill;
  }
}
.vstage {
  --vs-bg: #ffffff;
  --vs-card: #fafafa;
  --vs-line: #e8e8e8;
  --vs-on: #ededed;
  position: absolute;
  left: 0;
  top: 0;
  width: 1440px;
  height: 900px;
  transform: scale(var(--k, 0));
  transform-origin: 0 0;
  pointer-events: none;
  font-family: var(--font-ui);
  color: var(--app-fg);
}
:root .vstage {
  --vs-bg: #000000;
  --vs-card: #0b0b0c;
  --vs-line: #1c1c1e;
  --vs-on: #1e1e21;
}
:root[data-theme="dark"] .vstage {
  --vs-bg: #ffffff;
  --vs-card: #fafafa;
  --vs-line: #e8e8e8;
  --vs-on: #ededed;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vstage {
    --vs-bg: #ffffff;
    --vs-card: #fafafa;
    --vs-line: #e8e8e8;
    --vs-on: #ededed;
  }
}
.vtog {
  position: absolute;
  left: 1352px;
  top: 55px;
  width: 60px;
  height: 31px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--vs-bg);
  border: 1px solid var(--vs-line);
}
.vtog__b {
  flex: 1;
  height: 100%;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--app-muted);
  transition:
    background-color 0.3s,
    color 0.3s;
}
.vtog__b .icon {
  width: 13px;
  height: 13px;
}
.vtog__b.is-on {
  background: var(--vs-on);
  color: var(--app-fg);
}
.reels {
  position: absolute;
  left: 256px;
  top: 136px;
  width: 1184px;
  height: 764px;
  background: var(--vs-bg);
  overflow: hidden;
  transition: opacity 0.45s var(--out);
}
.reels:not(.is-on) {
  opacity: 0;
}
.reels__track {
  display: grid;
  gap: 24px;
  justify-items: center;
  padding-top: 28px;
  transition: transform 0.75s var(--inout);
}
.rc {
  width: 920px;
  height: 600px;
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  border: 1px solid var(--vs-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--vs-card);
}
.rc__player {
  background: #000;
  display: flex;
  flex-direction: column;
}
.rc__vid {
  position: relative;
  margin: 0 auto;
  flex: 1;
  aspect-ratio: 9 / 16;
  max-height: 500px;
  background: radial-gradient(circle at 50% 35%, var(--c1), var(--c2) 75%);
  display: grid;
  place-items: center;
  color: #fff;
}
.rc__cap {
  position: absolute;
  top: 70px;
  left: 20px;
  right: 20px;
  text-align: center;
  font: 600 19px/1.25 var(--font-display);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.rc__play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}
.rc__play .icon {
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: none;
  margin-left: 3px;
}
.rc__ctl {
  padding: 12px 18px 16px;
  display: grid;
  gap: 10px;
  color: #cfcfd4;
}
.rc__prog {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: #2a2a2e;
  overflow: hidden;
}
.rc__prog i {
  display: block;
  height: 100%;
  width: 17%;
  background: #fff;
  border-radius: 4px;
}
.rc__btns {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.rc__btns .icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.rc__time {
  font: 500 12px var(--font-mono);
  color: #fff;
}
.rc__hd {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 5px;
  background: #2a2a2e;
  font-size: 10px;
  font-weight: 700;
}
.rc__side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rc__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 6px;
}
.rc__head b {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rc__st {
  flex-shrink: 0;
  height: 24px;
  padding-inline: 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.rc__st--review {
  color: var(--app-amber);
  background: var(--app-amber-bg);
}
.rc__st--edit {
  color: var(--app-blue);
  background: color-mix(in srgb, var(--app-blue) 12%, transparent);
}
.rc__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px 14px;
  color: var(--app-muted);
  font-size: 13px;
}
.rc__ver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding-inline: 10px;
  border: 1px solid var(--vs-line);
  border-radius: 8px;
  color: var(--app-fg-2);
  font-size: 12px;
}
.rc__ver .icon {
  width: 12px;
  height: 12px;
}
.rc__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--vs-line);
  font-size: 13px;
  color: var(--app-muted);
  text-align: center;
}
.rc__tabs span {
  padding: 10px 0;
}
.rc__tabs .is-on {
  color: var(--app-fg);
  box-shadow: inset 0 -2px 0 var(--app-fg);
  font-weight: 500;
}
.rc__coms {
  flex: 1;
  padding: 16px 20px;
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: hidden;
}
.rc__com {
  display: flex;
  gap: 10px;
}
.rc__av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--app-primary);
  color: var(--app-primary-ink);
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.rc__com b {
  font-size: 12.5px;
  font-weight: 600;
}
.rc__ts {
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--app-hl-bg);
  color: var(--app-fg);
  font: 500 11px var(--font-mono);
}
.rc__com p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--app-fg-2);
  line-height: 1.45;
}
.rc__empty {
  margin: auto;
  text-align: center;
  display: grid;
  gap: 4px;
  padding-top: 70px;
}
.rc__empty b {
  font-size: 13px;
  font-weight: 600;
}
.rc__empty span {
  font-size: 12.5px;
  color: var(--app-muted);
}
.rc__box {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--vs-line);
  display: grid;
  gap: 10px;
}
.rc__chips {
  display: flex;
  gap: 6px;
}
.rc__chip {
  height: 26px;
  padding-inline: 10px;
  border-radius: 999px;
  border: 1px solid var(--vs-line);
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  color: var(--app-fg-2);
}
.rc__chip:first-child {
  font-family: var(--font-mono);
}
.rc__chip--int {
  background: var(--app-amber-bg);
  color: var(--app-amber);
  border-color: transparent;
}
.rc__input {
  height: 56px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--vs-line);
  color: var(--app-subtle);
  font-size: 13px;
}
.rc__send {
  display: flex;
  justify-content: flex-end;
}
.rc__send span {
  height: 30px;
  padding-inline: 16px;
  border-radius: 8px;
  background: var(--app-primary);
  color: var(--app-primary-ink);
  font-weight: 600;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
}
.vcur {
  transform: translate(1100px, 300px);
}
.vcur svg {
  width: 26px;
  height: 26px;
}

/* ---------- Client portal mock ---------- */
.cport {
  background: var(--app-bg);
  color: var(--app-fg);
  font-family: var(--font-ui);
  font-size: 12.5px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.cport__top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--app-line);
}
.cport__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.cport__nav {
  display: flex;
  gap: 4px;
  color: var(--app-muted);
}
.cport__nav span {
  padding: 6px 12px;
  border-radius: 8px;
}
.cport__nav .is-on {
  background: var(--app-raised);
  color: var(--app-fg);
  font-weight: 500;
}
.cport__me {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--app-fg-2);
}
.cport__me .av-sq {
  border-radius: 50%;
}
.cport__body {
  padding: 28px 28px 32px;
  display: grid;
  gap: 22px;
}
.cport__hello h4 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-family: var(--font-ui);
}
.cport__hello p {
  margin-top: 4px;
  color: var(--app-muted);
}
.cport__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 14px;
}
.cport__review {
  grid-row: span 3;
}
.cport__card {
  padding: 16px;
  border-radius: 14px;
  background: var(--app-card);
  border: 1px solid var(--app-line);
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.cport__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cport__h b {
  font-weight: 600;
  font-size: 13px;
}
.cport__h > span {
  color: var(--app-muted);
  font-size: 11.5px;
}
.cport__btn {
  height: 28px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--app-mark);
  color: var(--app-mark-ink) !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.cport__vids {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cvid {
  display: grid;
  gap: 4px;
  min-width: 0;
  position: relative;
}
.cvid__th {
  aspect-ratio: 9 / 14;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 35%, #000));
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 4px;
  max-width: 100%;
}
.cvid__th .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.cvid b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cvid > span:not(.cvid__th) {
  color: var(--app-muted);
  font-size: 11px;
}
.cvid__st {
  position: absolute;
  top: 8px;
  left: 8px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--app-tile);
  color: var(--app-fg);
  transition:
    background-color 0.4s,
    color 0.4s,
    transform 0.4s var(--out);
}
.cvid.is-approved .cvid__st {
  background: var(--pop);
  color: #0a0a0a;
  transform: scale(1.06);
}
.cport__prog {
  display: block;
  height: 7px;
  border-radius: 7px;
  background: var(--app-line);
  overflow: hidden;
}
.cport__prog i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--app-mark);
  border-radius: 7px;
  transition: width 0.8s var(--out);
}
.cport__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cport__list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--app-muted);
}
.cport__list b {
  color: var(--app-fg);
  font-weight: 500;
  white-space: nowrap;
}
.cport__list b.cport__paid {
  color: var(--app-green);
}
.cport__msg {
  padding: 9px 11px;
  border-radius: 10px 10px 10px 3px;
  background: var(--app-tile);
  border: 1px solid var(--app-line);
  color: var(--app-fg-2);
  line-height: 1.45;
}
.cport__msg b {
  display: block;
  font-size: 11px;
  color: var(--app-name);
  font-weight: 600;
}
@media (max-width: 760px) {
  .cport__nav span:not(.is-on),
  .cport__me {
    display: none;
  }
  .cport__body {
    padding: 18px 16px 22px;
  }
  .cport__hello h4 {
    font-size: 18px;
  }
  .cport__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cport__review {
    grid-row: auto;
  }
}

/* ---------- Recorded sales call ---------- */
.calls__head span.rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 26px;
  padding-inline: 10px;
  border-radius: 999px;
  background: var(--app-red-bg);
  color: var(--app-red);
  font: 700 10.5px var(--font-mono);
  letter-spacing: 0.06em;
}
.rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: livep 1.2s ease-in-out infinite;
}
.rec time {
  font-variant-numeric: tabular-nums;
}
.mtg {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--app-line);
}
.mtg__stage {
  background: #121216;
  color: #f2f2f4;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mtg__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}
.mtg__tile {
  position: relative;
  min-height: 120px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, #2b2b33, #1a1a1f);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.3s;
}
.mtg__tile.is-speaking {
  box-shadow: inset 0 0 0 2px #6ee787;
}
.mtg__av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.mtg__name {
  position: absolute;
  left: 8px;
  bottom: 7px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 10.5px;
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.mtg__bot {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: #c9c9d1;
}
.mtg__bot .icon {
  width: 12px;
  height: 12px;
  color: #f7dbff;
}
.mtg__bar {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.mtg__bar > span {
  height: 28px;
  min-width: 28px;
  padding-inline: 8px;
  border-radius: 8px;
  background: #26262d;
  display: grid;
  place-items: center;
}
.mtg__bar .icon {
  width: 13px;
  height: 13px;
}
.mtg__bar .mtg__leave {
  background: #d93b2f;
  font-weight: 600;
  font-size: 10.5px;
}
.mtg__tx {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--app-sub);
  border-left: 1px solid var(--app-line);
  min-width: 0;
}
.tx__h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 11px;
  color: var(--app-muted);
}
.tx__live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-red);
  animation: livep 1.2s ease-in-out infinite;
}
.mtg__tx p {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--app-fg-2);
  transition:
    opacity 0.45s var(--out),
    transform 0.55s var(--out);
}
.mtg__tx p b {
  display: block;
  font-size: 10.5px;
  color: var(--app-fg);
  font-weight: 600;
}
.mtg__tx p time {
  color: var(--app-subtle);
  font-weight: 400;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.motion .mtg__tx p.is-hidden {
  opacity: 0;
  transform: translateY(6px);
}
.calls .call__ai {
  margin: 14px 16px 16px;
}
@media (max-width: 560px) {
  .mtg {
    grid-template-columns: minmax(0, 1fr);
  }
  .mtg__tx {
    border-left: 0;
    border-top: 1px solid var(--app-line);
  }
  .mtg__tile {
    min-height: 96px;
  }
}

/* ---------- Onboarding studio mock ---------- */
.obs {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 12px;
  padding: 14px;
  flex: 1;
  --acc: #ecd7ff;
}
.obs__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  align-content: start;
}
.obs__label {
  font: 500 10px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-subtle);
  padding: 2px 6px 6px;
}
.obs__step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 9px;
  color: var(--app-fg-2);
  font-size: 12px;
  border: 1px solid transparent;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}
.obs__step span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.obs__step .icon {
  width: 13px;
  height: 13px;
  color: var(--app-muted);
}
.obs__step.is-on {
  background: var(--app-raised);
  border-color: var(--app-line-2);
  color: var(--app-fg);
}
.obs__tog {
  width: 24px;
  height: 14px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--app-mark);
  position: relative;
}
.obs__tog::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--app-mark-ink);
}
.obs__pv {
  position: relative;
  border-radius: 12px;
  background: #101014;
  color: #f4f4f6;
  padding: 26px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  min-height: 210px;
}
.obs__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #26262d;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.obs__bar i {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--acc);
  transition: width 0.6s var(--out);
}
.obs__n {
  position: absolute;
  top: 9px;
  right: 10px;
  font: 600 8.5px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8d8d96;
}
.obs__screen {
  display: grid;
  gap: 7px;
  width: 100%;
  transition:
    opacity 0.3s,
    transform 0.4s var(--out);
}
.obs__screen.is-swap {
  opacity: 0;
  transform: translateY(6px);
}
.obs__screen > b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.obs__row {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #2a2a31;
  background: #17171c;
  font-size: 11px;
  color: #d8d8de;
}
.obs__row .icon {
  width: 12px;
  height: 12px;
  color: var(--acc);
  flex-shrink: 0;
}
.obs__big {
  width: 40px;
  height: 40px;
  margin: 4px auto;
  border-radius: 12px;
  background: #1f1f26;
  color: var(--acc);
  display: grid;
  place-items: center;
}
.obs__big .icon {
  width: 20px;
  height: 20px;
}
.obs__go {
  margin-top: auto;
  width: 100%;
  height: 30px;
  border-radius: 8px;
  background: var(--acc);
  color: #0a0a0a;
  font: 700 10px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  transition: background-color 0.5s var(--out);
}
@media (max-width: 520px) {
  .obs {
    grid-template-columns: minmax(0, 1fr);
  }
  .obs__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .obs__label {
    grid-column: 1 / -1;
  }
}

/* Product screens that stay dark on the light page, for contrast */
.app.is-dark {
  --app-bg: #0b0b0c;
  --app-panel: #0f0f11;
  --app-card: #151517;
  --app-raised: #1c1c1f;
  --app-line: #232326;
  --app-line-2: #2e2e32;
  --app-fg: #f5f5f7;
  --app-fg-2: #d8d8dc;
  --app-muted: #8f8f96;
  --app-subtle: #6c6c73;
  --app-primary: #f7dbff;
  --app-primary-ink: #0a0a0a;
  --app-red: #ff8a80;
  --app-red-bg: rgba(255, 138, 128, 0.1);
  --app-amber: #ffad73;
  --app-amber-bg: rgba(255, 173, 115, 0.1);
  --app-green: #84e787;
  --app-blue: #a3d2ff;
  --app-mark: #f7dbff;
  --app-mark-ink: #0a0a0a;
  --app-hl-bg: color-mix(in srgb, #f7dbff 13%, transparent);
  --app-hl-faint: color-mix(in srgb, #f7dbff 6%, transparent);
  --app-name: #ffd6a8;
  --app-pop: 0 -14px 34px rgba(0, 0, 0, 0.35);
  --app-sheen: rgba(255, 255, 255, 0.07);
  --app-sunk: #0b0b0c;
  --app-tile: #1c1c1f;
  --app-sub: #111113;
  --app-hl-card: #1c1c1f;
  --app-tag-bg: color-mix(in srgb, #f7dbff 9%, transparent);
  color-scheme: dark;
}

/* ---------- Onboarding client progress ---------- */
.obp {
  border-top: 1px solid var(--app-line);
  padding: 12px 14px 14px;
  display: grid;
  gap: 10px;
}
.obp__h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.obp__h b {
  font-weight: 600;
  flex: 1;
}
.obp__h > span:last-child {
  color: var(--app-muted);
  font-size: 11px;
}
.obp__h .av-sq {
  width: 22px;
  height: 22px;
  font-size: 9px;
  border-radius: 6px;
}
.obp__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.obp__s {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 6px;
  padding-right: 4px;
  font-size: 10.5px;
  color: var(--app-muted);
}
.obp__s::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 12px;
  right: 0;
  height: 1.5px;
  background: var(--app-line-2);
}
.obp__s:last-child::before {
  display: none;
}
.obp__s i {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--app-line-2);
  background: var(--app-panel);
  transition:
    background-color 0.4s,
    border-color 0.4s;
}
.obp__s.is-done i {
  background: var(--app-mark);
  border-color: var(--app-mark);
}
.obp__s.is-done::before {
  background: var(--app-mark);
}
.obp__s.is-next i {
  border-color: var(--app-mark);
}
.obp__s.is-done span,
.obp__s.is-next span {
  color: var(--app-fg-2);
}
.obp__s span {
  line-height: 1.25;
}

.ocard h3 .tag {
  vertical-align: middle;
  margin-left: 8px;
}

/* ---------- Content studio ---------- */
.cstu {
  padding: 14px;
  display: grid;
  gap: 12px;
  flex: 1;
  align-content: start;
}
.cstu__h {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.cstu__h b {
  font-weight: 600;
}
.cstu__h span {
  color: var(--app-muted);
  font-size: 11px;
}
.cstu__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: 12px;
}
.cstu__ctx {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}
.cstu__lbl {
  font: 500 10px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-subtle);
  padding: 0 2px 2px;
}
.cstu__ctx li[data-ctx] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 9px;
  border: 1px solid var(--app-line-2);
  background: var(--app-card);
  font-size: 11.5px;
  color: var(--app-fg-2);
  transition:
    border-color 0.35s,
    background-color 0.35s;
}
.cstu__ctx li[data-ctx] span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cstu__ctx .icon {
  width: 13px;
  height: 13px;
  color: var(--app-muted);
  flex-shrink: 0;
}
.cstu__ctx li[data-ctx] i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-line-2);
  flex-shrink: 0;
  transition: background-color 0.35s;
}
.cstu__ctx li.is-read {
  border-color: color-mix(in srgb, var(--app-mark) 40%, var(--app-line-2));
  background: var(--app-hl-faint);
}
.cstu__ctx li.is-read i {
  background: var(--app-mark);
}
.cstu__doc {
  padding: 12px;
  border-radius: 11px;
  background: var(--app-sub);
  border: 1px solid var(--app-line);
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 168px;
}
.cstu__line {
  display: grid;
  gap: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--app-fg);
  min-height: 34px;
}
.cstu__line em {
  font: 600 9.5px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--app-mark);
}
.cstu__tone {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.cstu__tone span {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--app-raised);
  color: var(--app-muted);
}
@media (max-width: 520px) {
  .cstu__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Upsells ---------- */
.ups {
  padding: 14px;
  display: grid;
  gap: 12px;
  flex: 1;
  align-content: start;
}
.ups__h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.ups__h b {
  font-weight: 600;
}
.ups__h .av-sq {
  width: 22px;
  height: 22px;
  font-size: 9px;
  border-radius: 6px;
}
.ups__list {
  display: grid;
  gap: 8px;
}
.ups__item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--app-line-2);
  background: var(--app-card);
  transition:
    border-color 0.4s,
    background-color 0.4s;
}
.ups__item.is-added {
  border-color: color-mix(in srgb, var(--app-mark) 45%, var(--app-line-2));
  background: var(--app-hl-faint);
}
.ups__ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--app-raised);
  color: var(--app-fg-2);
  display: grid;
  place-items: center;
}
.ups__ic .icon {
  width: 14px;
  height: 14px;
}
.ups__item div {
  min-width: 0;
}
.ups__item b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.ups__item div span {
  display: block;
  font-size: 10.5px;
  color: var(--app-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ups__price {
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ups__btn {
  display: inline-grid;
  place-items: center;
  height: 28px;
  min-width: 64px;
  padding-inline: 10px;
  border-radius: 8px;
  background: var(--app-mark);
  color: var(--app-mark-ink);
  font-weight: 600;
  font-size: 11px;
  transition: transform 0.2s var(--out);
}
.ups__btn > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.25s;
}
.ups__btn .icon {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}
.ups__done {
  opacity: 0;
}
.ups__item.is-added .ups__add {
  opacity: 0;
}
.ups__item.is-added .ups__done {
  opacity: 1;
}
.ups__btn.is-pressed {
  transform: scale(0.9);
}
.ups__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 4px 0;
  border-top: 1px solid var(--app-line);
  font-size: 11.5px;
  color: var(--app-muted);
}
.ups__deal {
  font-style: normal;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--pop);
  color: #0a0a0a;
  font-size: 9.5px;
  font-weight: 700;
  vertical-align: 1px;
  white-space: nowrap;
}
.ups__price small {
  font-size: 10px;
  font-weight: 500;
  color: var(--app-muted);
  margin-left: 1px;
}
.ups__foot b {
  font-size: 17px;
  font-weight: 600;
  color: var(--app-green);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
  .ups__item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ups__ic {
    display: none;
  }
  .ups__price {
    grid-column: 1;
  }
}

/* ---------- Project journeys ---------- */
.jb {
  padding: 14px;
  display: grid;
  gap: 14px;
  flex: 1;
  align-content: start;
}
.jb__stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.jb__st {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: start;
  font-size: 10.5px;
  color: var(--app-muted);
}
.jb__st::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 14px;
  right: 2px;
  height: 1.5px;
  background: var(--app-line-2);
  transition: background-color 0.4s;
}
.jb__st:last-child::before {
  display: none;
}
.jb__st i {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--app-line-2);
  background: var(--app-panel);
  transition:
    background-color 0.4s,
    border-color 0.4s,
    box-shadow 0.4s;
}
.jb__st.is-done i {
  background: var(--app-mark);
  border-color: var(--app-mark);
}
.jb__st.is-done::before {
  background: var(--app-mark);
}
.jb__st.is-on i {
  border-color: var(--app-mark);
  box-shadow: 0 0 0 4px var(--app-hl-bg);
}
.jb__st.is-on span {
  color: var(--app-fg);
  font-weight: 600;
}
.jb__st.is-done span {
  color: var(--app-fg-2);
}
.jb__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 10px;
}
.jb__lbl {
  font: 500 10px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-subtle);
  margin-bottom: 8px;
}
.jb__tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  transition: opacity 0.3s;
}
.jb__tasks.is-swap {
  opacity: 0;
}
.jb__t {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 9px;
  border: 1px solid var(--app-line-2);
  background: var(--app-card);
  font-size: 11.5px;
}
.jb__ck {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  border: 1.5px solid var(--app-line-2);
  display: grid;
  place-items: center;
  color: var(--app-mark-ink);
  flex-shrink: 0;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}
.jb__ck .icon {
  width: 10px;
  height: 10px;
  stroke-width: 3;
  transform: scale(0);
  transition: transform 0.35s var(--out);
}
.jb__t.is-done .jb__ck {
  background: var(--app-mark);
  border-color: var(--app-mark);
}
.jb__t.is-done .jb__ck .icon {
  transform: scale(1);
}
.jb__t.is-done .jb__tt {
  color: var(--app-muted);
  text-decoration: line-through;
}
.jb__tt {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--app-fg-2);
}
.jb__sop {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--app-tag-bg);
  color: var(--app-fg);
  flex-shrink: 0;
}
.jb__t .av-sq {
  width: 20px;
  height: 20px;
  font-size: 8.5px;
  border-radius: 50%;
}
.jb__client {
  padding: 12px;
  border-radius: 11px;
  background: var(--app-sub);
  border: 1px solid var(--app-line);
  display: grid;
  gap: 6px;
  align-content: start;
}
.jb__client .jb__lbl {
  margin-bottom: 2px;
}
.jb__client b {
  font-size: 13px;
  font-weight: 600;
}
.jb__status {
  font-size: 11.5px;
  color: var(--app-fg-2);
  line-height: 1.4;
  min-height: 32px;
}
.jb__prog {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: var(--app-line);
  overflow: hidden;
}
.jb__prog i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 6px;
  background: var(--app-mark);
  transition: width 0.7s var(--out);
}
.jb__meta {
  font-size: 10.5px;
  color: var(--app-muted);
}
@media (max-width: 520px) {
  .jb__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .jb__st span {
    font-size: 9.5px;
  }
}

/* On the dark page, every product screen flips to light */
:root[data-theme="dark"] .app.is-dark {
  --app-bg: #ffffff;
  --app-panel: #ffffff;
  --app-card: #f6f6f3;
  --app-raised: #efefeb;
  --app-line: #ebebe7;
  --app-line-2: #dcdcd7;
  --app-fg: #0a0a0a;
  --app-fg-2: #2e2e2c;
  --app-muted: #6b6b67;
  --app-subtle: #8f8f8a;
  --app-primary: #ecd7ff;
  --app-primary-ink: #131314;
  --app-red: #cf3a2c;
  --app-red-bg: rgba(207, 58, 44, 0.08);
  --app-amber: #a46800;
  --app-amber-bg: rgba(214, 150, 0, 0.12);
  --app-green: #1d8442;
  --app-blue: #1f63c7;
  --app-wa: #25d366;
  --app-mark: #0a0a0a;
  --app-mark-ink: #ffffff;
  --app-sunk: #f4f4f1;
  --app-tile: #ffffff;
  --app-sub: #fafaf8;
  --app-hl-card: #f6ffd4;
  --app-tag-bg: #edffac;
  --app-hl-bg: #edffac;
  --app-hl-faint: rgba(237, 255, 172, 0.45);
  --app-name: #b0541c;
  --app-pop: 0 -14px 34px rgba(10, 10, 10, 0.12);
  --app-sheen: transparent;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app.is-dark {
    --app-bg: #ffffff;
    --app-panel: #ffffff;
    --app-card: #f6f6f3;
    --app-raised: #efefeb;
    --app-line: #ebebe7;
    --app-line-2: #dcdcd7;
    --app-fg: #0a0a0a;
    --app-fg-2: #2e2e2c;
    --app-muted: #6b6b67;
    --app-subtle: #8f8f8a;
    --app-primary: #ecd7ff;
    --app-primary-ink: #131314;
    --app-red: #cf3a2c;
    --app-red-bg: rgba(207, 58, 44, 0.08);
    --app-amber: #a46800;
    --app-amber-bg: rgba(214, 150, 0, 0.12);
    --app-green: #1d8442;
    --app-blue: #1f63c7;
    --app-wa: #25d366;
    --app-mark: #0a0a0a;
    --app-mark-ink: #ffffff;
    --app-sunk: #f4f4f1;
    --app-tile: #ffffff;
    --app-sub: #fafaf8;
    --app-hl-card: #f6ffd4;
    --app-tag-bg: #edffac;
    --app-hl-bg: #edffac;
    --app-hl-faint: rgba(237, 255, 172, 0.45);
    --app-name: #b0541c;
    --app-pop: 0 -14px 34px rgba(10, 10, 10, 0.12);
    --app-sheen: transparent;
    color-scheme: light;
  }
}

/* Tour screenshots sit in a frame that matches them: dark on the light page, light on the dark page */
:root .shot {
  --app-bg: #0b0b0c;
  --app-panel: #0f0f11;
  --app-card: #151517;
  --app-raised: #1c1c1f;
  --app-line: #232326;
  --app-line-2: #2e2e32;
  --app-fg: #f5f5f7;
  --app-fg-2: #d8d8dc;
  --app-muted: #8f8f96;
  --app-subtle: #6c6c73;
  --app-primary: #f7dbff;
  --app-primary-ink: #0a0a0a;
  --app-red: #ff8a80;
  --app-red-bg: rgba(255, 138, 128, 0.1);
  --app-amber: #ffad73;
  --app-amber-bg: rgba(255, 173, 115, 0.1);
  --app-green: #84e787;
  --app-blue: #a3d2ff;
  --app-mark: #f7dbff;
  --app-mark-ink: #0a0a0a;
  --app-hl-bg: color-mix(in srgb, #f7dbff 13%, transparent);
  --app-hl-faint: color-mix(in srgb, #f7dbff 6%, transparent);
  --app-name: #ffd6a8;
  --app-pop: 0 -14px 34px rgba(0, 0, 0, 0.35);
  --app-sheen: rgba(255, 255, 255, 0.07);
  --app-sunk: #0b0b0c;
  --app-tile: #1c1c1f;
  --app-sub: #111113;
  --app-hl-card: #1c1c1f;
  --app-tag-bg: color-mix(in srgb, #f7dbff 9%, transparent);
}
:root[data-theme="dark"] .shot {
  --app-bg: #ffffff;
  --app-panel: #ffffff;
  --app-card: #f6f6f3;
  --app-raised: #efefeb;
  --app-line: #ebebe7;
  --app-line-2: #dcdcd7;
  --app-fg: #0a0a0a;
  --app-fg-2: #2e2e2c;
  --app-muted: #6b6b67;
  --app-subtle: #8f8f8a;
  --app-primary: #ecd7ff;
  --app-primary-ink: #131314;
  --app-red: #cf3a2c;
  --app-red-bg: rgba(207, 58, 44, 0.08);
  --app-amber: #a46800;
  --app-amber-bg: rgba(214, 150, 0, 0.12);
  --app-green: #1d8442;
  --app-blue: #1f63c7;
  --app-wa: #25d366;
  --app-mark: #0a0a0a;
  --app-mark-ink: #ffffff;
  --app-sunk: #f4f4f1;
  --app-tile: #ffffff;
  --app-sub: #fafaf8;
  --app-hl-card: #f6ffd4;
  --app-tag-bg: #edffac;
  --app-hl-bg: #edffac;
  --app-hl-faint: rgba(237, 255, 172, 0.45);
  --app-name: #b0541c;
  --app-pop: 0 -14px 34px rgba(10, 10, 10, 0.12);
  --app-sheen: transparent;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot {
    --app-bg: #ffffff;
    --app-panel: #ffffff;
    --app-card: #f6f6f3;
    --app-raised: #efefeb;
    --app-line: #ebebe7;
    --app-line-2: #dcdcd7;
    --app-fg: #0a0a0a;
    --app-fg-2: #2e2e2c;
    --app-muted: #6b6b67;
    --app-subtle: #8f8f8a;
    --app-primary: #ecd7ff;
    --app-primary-ink: #131314;
    --app-red: #cf3a2c;
    --app-red-bg: rgba(207, 58, 44, 0.08);
    --app-amber: #a46800;
    --app-amber-bg: rgba(214, 150, 0, 0.12);
    --app-green: #1d8442;
    --app-blue: #1f63c7;
    --app-wa: #25d366;
    --app-mark: #0a0a0a;
    --app-mark-ink: #ffffff;
    --app-sunk: #f4f4f1;
    --app-tile: #ffffff;
    --app-sub: #fafaf8;
    --app-hl-card: #f6ffd4;
    --app-tag-bg: #edffac;
    --app-hl-bg: #edffac;
    --app-hl-faint: rgba(237, 255, 172, 0.45);
    --app-name: #b0541c;
    --app-pop: 0 -14px 34px rgba(10, 10, 10, 0.12);
    --app-sheen: transparent;
  }
}

/* ClipsOS: Neue Haas Grotesk tuning */
@media (max-width: 600px) {
  .hero h1 .line {
    display: inline;
  }
}
.hero h1 {
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.93;
  text-transform: uppercase;
}
.h2,
.h3 {
  font-weight: 600;
  letter-spacing: -0.04em;
}
.lead,
body {
  letter-spacing: -0.005em;
}
.brand {
  letter-spacing: -0.03em;
  font-weight: 600;
}

/* ---------- Final CTA + footer ---------- */

.cta h2 {
  margin-top: 18px;
}

.cta .plead {
  margin-top: 22px;
}

.cta__row {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.copy-mail {
  font-family: var(--font-body);
}

.copy-mail .icon {
  width: 16px;
  height: 16px;
}

.copy-mail .done {
  display: none;
}

.copy-mail.is-copied .done {
  display: inline;
}

.copy-mail.is-copied .label {
  display: none;
}

.foot {
  border-top: 1px solid var(--line);
  padding-block: 28px;
}

.foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--muted);
}

.foot .brand {
  font-size: 1rem;
  color: var(--ink);
}

.foot .brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.foot .brand__mark::after {
  width: 8px;
  height: 8px;
}

.clock {
  font-variant-numeric: tabular-nums;
}

/* Hero thread steps fade in place (script drives opacity) */
.ai-thread [data-step] li {
  transition:
    opacity 0.45s var(--out),
    transform 0.55s var(--out);
}

/* ---------- Scroll reveal (Kingpin rise) ---------- */

.motion [data-reveal]:not(.in) {
  opacity: 0;
}

.motion [data-reveal].in {
  animation: rise 0.95s var(--out) var(--d, 0s) backwards;
}

.motion [data-reveal="scale"].in {
  animation-name: rise-scale;
}

.motion [data-reveal="fade"].in {
  animation-name: rise-fade;
}

/* Hero load sequence */
.motion .hero [data-load] {
  animation: rise 0.95s var(--out) var(--d, 0s) backwards;
}

.motion .hero [data-load="drop"] {
  animation-name: drop;
}

/* ---------- Keyframes ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }
}

@keyframes rise-scale {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.965);
    filter: blur(6px);
  }
}

@keyframes rise-fade {
  from {
    opacity: 0;
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes slap {
  0% {
    opacity: 0;
    transform: scale(1.45) rotate(calc(var(--r, 0deg) - 16deg));
  }

  55% {
    opacity: 1;
    transform: scale(0.93) rotate(calc(var(--r, 0deg) + 3deg));
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(var(--r, 0deg));
  }
}

@keyframes wob {
  0%,
  100% {
    transform: rotate(var(--r, 0deg));
  }

  30% {
    transform: rotate(calc(var(--r, 0deg) - 5deg)) scale(1.04);
  }

  65% {
    transform: rotate(calc(var(--r, 0deg) + 3deg));
  }
}

@keyframes sheen {
  0% {
    background-position: 130% 0;
  }

  42%,
  100% {
    background-position: -30% 0;
  }
}

@keyframes ping {
  0% {
    opacity: 0.6;
    transform: scale(0.4);
  }

  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@keyframes ring {
  0% {
    opacity: 1;
    transform: scale(0.3);
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes tap {
  45% {
    transform: scale(0.84);
  }
}

@keyframes livep {
  50% {
    opacity: 0.35;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Clips AI: chat bar (pinned, bottom centre) ---------- */

:root {
  --ai-bg: #0a0a0a;
  --ai-fg: #ffffff;
  --ai-muted: rgba(255, 255, 255, 0.56);
  --ai-line: rgba(255, 255, 255, 0.12);
  --ai-raise: rgba(255, 255, 255, 0.09);
  --ai-shadow: 0 18px 44px rgba(10, 10, 10, 0.24);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ai-bg: #16152a;
    --ai-fg: #f5f5f7;
    --ai-muted: rgba(245, 245, 247, 0.56);
    --ai-line: #2d2b47;
    --ai-raise: rgba(255, 255, 255, 0.06);
    --ai-shadow:
      0 18px 44px rgba(0, 0, 0, 0.55), 0 0 24px color-mix(in srgb, #f7dbff 10%, transparent);
  }
}

:root[data-theme="dark"] {
  --ai-bg: #16152a;
  --ai-fg: #f5f5f7;
  --ai-muted: rgba(245, 245, 247, 0.56);
  --ai-line: #2d2b47;
  --ai-raise: rgba(255, 255, 255, 0.06);
  --ai-shadow:
    0 18px 44px rgba(0, 0, 0, 0.55), 0 0 24px color-mix(in srgb, #f7dbff 10%, transparent);
}

/* It needs the script, so it only shows once the script has wired it up */
.aibar:not(.is-ready),
:root:not(.has-aibar) [data-aibar-open] {
  display: none;
}

.aibar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: min(600px, calc(100vw - 32px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-ui);
  color: var(--ai-fg);
}

.motion .aibar.is-ready {
  animation: rise 0.9s var(--out) 1.4s backwards;
}

/* the conversation, above the bar */
.aibar__panel {
  display: flex;
  flex-direction: column;
  max-height: min(60vh, 540px);
  max-height: min(60svh, 540px);
  border-radius: 22px;
  background: var(--ai-bg);
  box-shadow:
    var(--ai-shadow),
    inset 0 0 0 1px var(--ai-line);
  overflow: hidden;
}

.aibar__panel[hidden] {
  display: none;
}

.motion .aibar__panel:not([hidden]) {
  animation: rise 0.5s var(--out);
}

.aibar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 4px 18px;
}

.aibar__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ai-muted);
}

.aibar__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--ai-raise);
  color: var(--ai-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    color 0.2s,
    transform 0.3s var(--out);
}

.aibar__close:hover {
  color: var(--ai-fg);
  transform: rotate(90deg);
}

.aibar__close .icon {
  width: 14px;
  height: 14px;
}

.aibar__thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.amsg {
  max-width: 88%;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.motion .amsg {
  animation: rise 0.6s var(--out) backwards;
}

.amsg--me {
  align-self: flex-end;
  padding: 9px 13px;
  border-radius: 16px 16px 4px 16px;
  background: var(--pop);
  color: #0a0a0a;
  font-weight: 500;
  white-space: pre-wrap;
}

.amsg--ai {
  align-self: flex-start;
  color: var(--ai-fg);
}

.amsg--ai p + p,
.amsg--ai p + ul,
.amsg--ai ul + p {
  margin-top: 8px;
}

.amsg--ai ul {
  margin: 0;
  padding-left: 18px;
}

.amsg--ai a {
  color: var(--pop);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.amsg--ai.is-typing:empty::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 8px;
  background: radial-gradient(circle, var(--ai-muted) 3px, transparent 3.5px) 0 50% / 9px 8px
    repeat-x;
  animation: livep 1s ease-in-out infinite;
}

/* the bar: dots, the text box, and voice + send once you start typing */
.aibar__pill {
  margin: 0;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 56px;
  padding: 6px;
  border-radius: 28px;
  background: var(--ai-bg);
  box-shadow:
    var(--ai-shadow),
    inset 0 0 0 1px var(--ai-line);
  transition: box-shadow 0.3s;
}

.aibar:focus-within .aibar__pill {
  box-shadow:
    var(--ai-shadow),
    inset 0 0 0 1px color-mix(in srgb, var(--pop) 55%, var(--ai-line));
}

.aibar__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--ai-fg);
}

.dots {
  width: 40px;
  height: 40px;
  fill: currentColor;
  overflow: visible;
}

.dots g {
  transform-box: view-box;
  transform-origin: 20px 20px;
}

.motion .dots__out {
  animation: spin 26s linear infinite;
}

.motion .dots__in {
  animation: spin 13s linear infinite reverse;
}

.motion .aibar.is-busy .dots__out {
  animation-duration: 2.6s;
}

.motion .aibar.is-busy .dots__in {
  animation-duration: 1.3s;
}

.motion .aibar.is-busy .aibar__icon circle {
  animation: livep 0.9s ease-in-out infinite;
}

.motion .aibar.is-busy .aibar__icon circle:nth-child(even) {
  animation-delay: 0.45s;
}

.aibar__pill textarea {
  flex: 1;
  min-width: 0;
  align-self: center;
  max-height: 120px;
  margin: 0 6px 0 2px;
  padding: 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: inherit;
  font: 400 15px/22px var(--font-ui);
}

.aibar__pill textarea::placeholder {
  color: var(--ai-muted);
}

.aibar__actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.aibar__mic,
.aibar__send {
  width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  cursor: pointer;
  transition:
    width 0.3s var(--out),
    opacity 0.25s,
    transform 0.2s var(--out),
    background-color 0.2s,
    color 0.2s;
}

.aibar__mic[hidden] {
  display: none;
}

/* they appear once you are typing (focus) or there is text in the box */
.aibar:focus-within .aibar__mic,
.aibar:focus-within .aibar__send,
.aibar.has-text .aibar__mic,
.aibar.has-text .aibar__send {
  width: 44px;
  opacity: 1;
}

.aibar__mic {
  background: var(--ai-raise);
  color: var(--ai-fg);
}

.aibar__mic:hover {
  background: color-mix(in srgb, var(--ai-fg) 16%, transparent);
}

.aibar.is-listening .aibar__mic {
  background: var(--pop);
  color: #0a0a0a;
  animation: listen 1.4s ease-out infinite;
}

.aibar__send {
  background: var(--pop);
  color: #0a0a0a;
}

.aibar .aibar__send:disabled {
  opacity: 0.35;
  cursor: default;
}

.aibar__mic:active,
.aibar__send:active:not(:disabled) {
  transform: scale(0.9);
}

.aibar__mic .icon,
.aibar__send .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.aibar :focus-visible {
  outline-color: var(--pop);
}

.ai__try {
  margin-top: 6px;
}

.ai__try .icon {
  width: 16px;
  height: 16px;
}

/* leave room under the footer so the bar never covers it */
.foot {
  padding-bottom: 104px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes listen {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--pop) 55%, transparent);
  }

  100% {
    box-shadow: 0 0 0 12px transparent;
  }
}

/* ---------- Personalise: the agency name prompt (agency.js) ---------- */

.ask {
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.ask::backdrop {
  background: rgba(10, 10, 10, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ask__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 30px 28px 26px;
  border-radius: var(--radius-xl);
  background: var(--card-hi);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.motion .ask[open] .ask__card {
  animation: askIn 0.6s var(--out) both;
}

.motion .ask[open]::backdrop {
  animation: askFade 0.4s ease both;
}

.ask__h {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.ask__p {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.ask__input {
  width: 100%;
  height: 56px;
  margin-top: 4px;
  padding-inline: 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  transition:
    border-color 0.2s,
    box-shadow 0.3s var(--out);
}

.ask__input::placeholder {
  color: var(--faint);
}

.ask__input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pop) 70%, transparent);
}

.ask__row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.ask__row .btn {
  height: 50px;
  padding-inline: 24px;
  font-size: 1rem;
}

.ask__row .btn--primary {
  flex: 1;
}

/* the name can be long: let the product screens cut it off cleanly */
.ws__name,
.shot__bar span[data-agency] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.foot__agency {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}

.foot__agency:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

@keyframes askIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(6px);
  }
}

@keyframes askFade {
  from {
    opacity: 0;
  }
}

/* ---------- Book a demo: the apply-then-book funnel (funnel.js) ---------- */

.funnel {
  width: min(880px, calc(100vw - 32px));
  height: min(860px, calc(100svh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-xl);
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.funnel::backdrop {
  background: rgba(10, 10, 10, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.motion .funnel[open] {
  animation: askIn 0.6s var(--out) both;
}

.motion .funnel[open]::backdrop {
  animation: askFade 0.4s ease both;
}

.funnel__sheet {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.funnel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 16px 28px;
  border-bottom: 1px solid var(--line);
}

.funnel__title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.funnel__title .brand__mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.funnel__title .brand__mark::after {
  width: 8px;
  height: 8px;
}

.funnel__title b {
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
  font-size: 0.95rem;
}

.funnel__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.funnel__close .icon {
  width: 16px;
  height: 16px;
}

.funnel__progress {
  padding: 18px 28px 0;
}

.funnel__count {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.funnel__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.funnel__steps li {
  transition: color 0.3s;
}

.funnel__steps li.is-on {
  color: var(--ink);
}

.funnel__steps li.is-done {
  color: var(--muted);
}

.funnel__bar {
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.funnel__bar i {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 0.6s var(--out);
}

.funnel__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 30px 28px 24px;
}

.fstep {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fstep[hidden] {
  display: none;
}

.motion .fstep.is-on {
  animation: fstepIn 0.45s var(--out) both;
}

.fstep__h {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.fstep__p {
  margin-top: -8px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field > span,
.pick legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}

.field em {
  margin-left: 6px;
  font-style: normal;
  font-weight: 400;
  color: var(--subtle);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.3s var(--out);
}

.field input {
  height: 52px;
}

.field textarea {
  padding-block: 14px;
  line-height: 1.45;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pop) 70%, transparent);
}

.field.is-bad input,
.field.is-bad textarea {
  border-color: var(--app-red);
}

.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.pick legend {
  float: left;
  width: 100%;
  margin-bottom: 10px;
}

.pick label {
  position: relative;
  cursor: pointer;
}

.pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pick span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.3s var(--out);
}

.pick label:hover span {
  border-color: var(--ink);
}

.pick input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.pick input:focus-visible + span {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pop) 70%, transparent);
}

.motion .pick input:checked + span {
  animation: pickPop 0.35s var(--out);
}

.pick.is-bad span {
  border-color: var(--app-red);
}

.funnel__err {
  margin-top: 16px;
  color: var(--app-red);
  font-size: var(--fs-small);
  font-weight: 500;
}

.funnel__nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
}

.funnel__nav[hidden] {
  display: none;
}

.funnel__nav .btn {
  height: 52px;
  padding-inline: 26px;
  font-size: 1rem;
}

.funnel__nav .btn--primary {
  margin-left: auto;
}

.funnel__nav .btn[hidden] {
  display: none;
}

.cal {
  position: relative;
  min-height: 640px;
  margin-inline: -12px;
  overflow: hidden;
}

.cal::before {
  content: "Loading times...";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: var(--fs-small);
}

.cal.is-ready::before {
  display: none;
}

.cal iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
}

.fstep__alt {
  color: var(--muted);
  font-size: var(--fs-small);
}

.fstep__alt a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fstep--done {
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}

.fstep--done .fstep__p {
  max-width: 30rem;
  margin-top: 0;
}

.fstep--done .btn {
  margin-top: 10px;
}

.done__tick {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--pop);
  color: #0a0a0a;
}

.done__tick .icon {
  width: 28px;
  height: 28px;
}

.motion .fstep--done.is-on .done__tick {
  animation: pickPop 0.6s var(--out) 0.1s both;
}

@media (max-width: 640px) {
  .funnel {
    width: 100vw;
    height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .funnel__top {
    padding: 12px 12px 12px 18px;
  }

  .funnel__progress {
    padding: 14px 18px 0;
  }

  .funnel__count {
    display: block;
  }

  .funnel__steps {
    display: none;
  }

  .funnel__body {
    padding: 24px 18px calc(18px + env(safe-area-inset-bottom));
  }

  .fgrid {
    grid-template-columns: 1fr;
  }

  .funnel__nav {
    position: sticky;
    bottom: calc(-18px - env(safe-area-inset-bottom));
    margin-inline: -18px;
    margin-bottom: calc(-18px - env(safe-area-inset-bottom));
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }

  .funnel__nav .btn--primary {
    flex: 1;
  }

  .fstep--cal {
    margin-inline: -18px;
  }

  .cal {
    margin-inline: 0;
  }

  .fstep--cal .fstep__h,
  .fstep--cal .fstep__p,
  .fstep--cal .fstep__alt {
    padding-inline: 18px;
  }

  .cal iframe {
    height: 1000px;
  }
}

@keyframes fstepIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
}

@keyframes pickPop {
  40% {
    transform: scale(1.05);
  }
}

/* the booking step gets room for Calendly's two-column layout */
@media (min-width: 641px) {
  .funnel[data-step="3"] {
    width: min(1100px, calc(100vw - 32px));
  }
}

/* ---------- Roles: one app for everyone at the agency (roles.js) ---------- */

.roles {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.roles__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rolebtn {
  position: relative;
  display: grid;
  grid-template-rows: auto 0fr;
  padding: 11px 16px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    box-shadow 0.25s,
    grid-template-rows 0.35s var(--out);
}

/* only the chosen role shows its one-liner, so the list stays as tall as
   the home beside it */
.rolebtn.is-on {
  grid-template-rows: auto 1fr;
}

.rolebtn b {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rolebtn span {
  min-height: 0;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}

.rolebtn.is-on span {
  padding-top: 3px;
}

.rolebtn:hover {
  background: var(--card);
}

.rolebtn.is-on {
  background: var(--card-hi);
  border-color: var(--card-line);
  box-shadow: var(--card-hi-shadow);
}

.rolebtn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* while it cycles on its own, the active role shows how long until the next */
.roles.is-auto .rolebtn.is-on::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.18;
  transform-origin: left;
  animation: roleTick var(--tick, 5s) linear both;
}

.roles__stage {
  position: relative;
  display: flex;
  min-width: 0;
}

.rhome {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 430px;
}

.rhome[hidden] {
  display: none;
}

.motion .rhome.is-on {
  animation: rhomeIn 0.5s var(--out) both;
}

.rhome__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--app-line);
}

.rhome__who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rhome__who b {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.rhome__who em {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--app-card);
  border: 1px solid var(--app-line);
  color: var(--app-muted);
  font-style: normal;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rhome__page {
  color: var(--app-muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.rhome__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 18px;
}

.rk {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rk__i {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--app-card);
  border: 1px solid var(--app-line);
  min-width: 0;
}

.rk__i span {
  color: var(--app-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rk__i b {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.rk__i--ok b {
  color: var(--app-green);
}

.rk__i--due b {
  color: var(--app-amber);
}

.rk__i--bad b {
  color: var(--app-red);
}

.rlist__h {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
}

.rlist ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.rlist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--app-tile);
  border: 1px solid var(--app-line);
}

.rlist li > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rhome__foot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--app-hl-bg);
  color: var(--app-fg);
  font-size: 12px;
  font-weight: 500;
  margin-top: auto;
}

.rhome__foot .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .roles {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 40px;
  }

  /* the roles become one row of chips you can swipe */
  .roles__list {
    flex-direction: row;
    gap: 8px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .roles__list::-webkit-scrollbar {
    display: none;
  }

  .rolebtn {
    flex-shrink: 0;
    padding: 9px 16px;
    border-radius: 999px;
    border-color: var(--line-2);
  }

  .rolebtn b {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .rolebtn span {
    display: none;
  }

  .rolebtn.is-on {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
    box-shadow: none;
  }

  .roles.is-auto .rolebtn.is-on::after {
    display: none;
  }

  .rhome {
    min-height: 0;
  }

  .rhome__page {
    display: none;
  }

  .rk {
    gap: 8px;
  }

  .rk__i {
    padding: 10px;
  }

  .rk__i b {
    font-size: 16px;
  }
}

@keyframes roleTick {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes rhomeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
