/* ===========================================================================
   BayesChat — the app, drawn in HTML
   ---------------------------------------------------------------------------
   Everything below draws the product: the hero's phone and its chat, and the
   five settings close-ups (presets, MCP, memory, parameters, appearance,
   background tasks). It is the same drawing the app ships, so the geometry,
   the type sizes and the control shapes are the app's, not the page's.

   What the page did to it: the page's own chrome is one ink on one paper, but
   the mockups keep the app's colours, because a screenshot of an app should
   show the app. That means the accent (#4D7CFE / #3C5FBE), the green tool-call
   tick (--mc-ok), the blue tool-card tint (--tool), the warm reasoning tint
   (--reasoning), and the six syntax colours in the code block — all as live
   (bayeschat.xyz/styles.css v138) draws them. The greys are the app's cool
   greys, not the page's warm paper.

   The token block below is the app's own vocabulary (--mc-*, --acc, --ink2…),
   kept in the app's names so the markup and the demo script stay readable
   next to the SwiftUI views they mirror.
   =========================================================================== */

/* The hero mockup is hand-tuned at a 380px design width. It is wrapped in
   .device-scale, which JS scales down uniformly on narrower screens so the
   internal layout always renders exactly as designed — nothing clips or
   overflows at any width. */
.device-scale {
  width: 100%;
  transform-origin: top center;
  overflow: visible;
  /* Room for side buttons that stick out past the chassis */
  padding: 0 6px;
  box-sizing: content-box;
}

.device {
  position: relative;
  width: min(100%, 320px);
  border-radius: var(--radius-device);
  background: var(--device);
  padding: 0.55rem;
  box-shadow: 0 28px 60px rgba(11, 11, 12, 0.22);
  animation: float-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.device-float {
  /* Drift lives here (not on .device--hero) so it doesn't fight float-in's
     transform, and so drop-shadow is composited once with the float layer. */
  animation: drift 8s ease-in-out 1s infinite alternate;
  will-change: transform;
  filter: drop-shadow(0 22px 36px rgba(11, 11, 12, 0.2));
}
/* While text is arriving, the device holds still: one motion, one meaning. */
.device-float.is-streaming {
  animation-play-state: paused;
}

html[data-theme="dark"] .device-float {
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55));
}

.device--hero {
  /* Preferred hero phone: a bit taller & wider than a true iPhone aspect.
     Frame SVG is 366×770; design width ~428px; chin fades into the page. */
  position: relative;
  width: 100%;
  aspect-ratio: 366 / 770;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  animation: float-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  /* Promote a stable layer so inner demo paints don't shimmer the frame */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.device--hero .device__screen {
  position: absolute;
  /* Concentric: hole x=7 y=6 w=352 h=757 rx=51 (= outer 58 − inset 7) */
  left: calc(7 / 366 * 100% + 1px);
  top: calc(6 / 770 * 100% + 1px);
  width: calc(352 / 366 * 100% - 2px);
  height: calc(757 / 770 * 100% - 2px);
  border-radius: calc(51 / 352 * 100%) / calc(51 / 757 * 100%);
  overflow: hidden;
  background: var(--canvas, #FFFFFF);
  box-shadow: none;
  transition: background 0.3s ease;
  z-index: 1;
}

.device__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  user-select: none;
  display: block;
}

.device__frame--dark {
  display: none;
}

html[data-theme="dark"] .device__frame--light {
  display: none;
}

html[data-theme="dark"] .device__frame--dark {
  display: block;
}

html[data-theme="dark"] .device--hero .device__screen {
  background: #101418;
}

.device__screen {
  border-radius: calc(var(--radius-device) - 0.35rem);
  overflow: hidden;
  background: #fff;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* —— Theme demo (pure-CSS card; no screenshot needed) —— */
/* —— App mockup cards (pure HTML/CSS UI demos) —— */
/* The app draws its own type, never the page's Geist.
   --font-app and --font-mono were never defined in this project, so every
   `font-family: var(--font-mono)` below was an invalid declaration that fell
   back to whatever the element happened to inherit — which meant the five
   feature cards read in Geist while the hero phone read in SF. Both names now
   resolve to the app's own stacks, as in video/promo. */
.app-card,
.theme-demo,
.phone-screen {
  --font-app: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* Feature cards are "close-ups" of the app UI — same design tokens as the
   hero phone screen: the app's accent #4D7CFE (ThemeSettings "blue"), white
   canvas, iOS-native controls (toggle / slider / segmented / chip). */
.app-card,
.theme-demo {
  font-family: var(--font-app);
  --acc: #4D7CFE;                /* ThemeSettings "blue" — matches live (styles.css:1148) */
  --acc-rgb: 77, 124, 254;       /* same accent as an rgb triplet, for tints */
  --acc-deep: #3C5FBE;           /* tint text — clears 4.5:1 on the accent tint */
  --mc-ink: #111418;             /* chatPrimaryTextColor (light) — live values */
  --mc-ink2: #5B646E;
  --mc-ink3: #8A8A8E;
  --mc-line: rgba(0, 0, 0, 0.08); /* chatDividerColor */
  --mc-bg: #ffffff;
  --mc-form: #F5F7F8;
  --mc-card: #ffffff;
  --mc-chip: rgba(17, 20, 24, 0.06);
  --mc-seg: rgba(17, 20, 24, 0.06);
  --mc-seg-on: #ffffff;
  --mc-knob: #ffffff;
  --mc-border-soft: rgba(0, 0, 0, 0.05);
  --mc-border-row: rgba(0, 0, 0, 0.06);
  --mc-shadow: 0 18px 40px rgba(15, 27, 45, 0.08);
  --mc-ok: #1f8a4d;              /* the tool-call tick is green, not ink */
  --mc-ok-bg: rgba(47, 168, 90, 0.12);
  --ink: var(--mc-ink);
  --ink2: var(--mc-ink2);
  --ink3: var(--mc-ink3);
  --surf2: #EEF1F4;
  --tool: #E6F0FA;               /* tool card: the app tints it blue */
  --reasoning: #F5F2EB;
  width: 100%;
  max-width: 520px;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(11, 11, 12, 0.13);
  background: var(--mc-bg);
  box-shadow: var(--mc-shadow);
  font-size: 0.88rem;
  color: var(--mc-ink);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

/* Memory card (feat-memory): a saved fact is content, not a form label. */
.app-card--memory .app-row--stack .app-label {
  color: var(--mc-ink);
}

/* The capture row always occupies its line — it is only invisible — so a fact
   arriving never reflows the card or shifts the section below it. */
.app-card--memory .app-row--capture {
  opacity: 0;
  transition: opacity .45s ease;
}
.app-card--memory .app-row--capture.is-on {
  opacity: 1;
}

.app-card--memory .app-note {
  margin: 0.7rem 0 0;
  font-size: 0.72rem;
  color: var(--mc-ink2);
}

/* Background Tasks card (feat-background): the Lock Screen activity the system
   draws for a continued generation, above the completion notification that
   closes it. Both are system surfaces, so they read as plates, not app rows. */
.bg-activity {
  margin: 0.5rem 0 0.85rem;
  padding: 0.85rem 0.9rem 0.9rem;
  border-radius: 0.9rem;
  background: var(--mc-form);
  border: 1px solid var(--mc-border-soft);
  text-align: center;
}

.bg-island {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  background: #101418;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.bg-island__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--acc);
  animation: bg-island-pulse 1.6s ease-in-out infinite;
}

.bg-activity__title {
  margin: 0.6rem 0 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bg-activity__status {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--mc-ink2);
}

.bg-activity__q {
  margin: 0.5rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--mc-ink3);
  font-style: italic;
}

.bg-progress {
  display: block;
  margin-top: 0.75rem;
  height: 0.32rem;
  border-radius: 999px;
  background: var(--mc-chip);
  overflow: hidden;
}

.bg-progress > span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--acc), var(--acc-deep));
}

.bg-activity__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.bg-foot__note {
  font-size: 0.7rem;
  color: var(--mc-ink3);
}

/* No Cancel here: the whole activity surface is rendered by the system
   (BGContinuedProcessingTask), so anything this drawing added in that corner
   would be UI the app cannot actually put there. */
.bg-notice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.8rem;
  background: var(--mc-card);
  border: 1px solid var(--mc-line);
  box-shadow: 0 10px 22px rgba(11, 11, 12, 0.06);
}

html[data-theme="dark"] .bg-notice {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.bg-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.5rem;
  background: var(--acc);
  color: #ffffff;
}

.bg-notice__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.bg-notice__body strong {
  font-size: 0.82rem;
}

.bg-notice__body span {
  font-size: 0.74rem;
  color: var(--mc-ink2);
  /* One clamped line, not nowrap: a nowrap child raised the card's min-content
     width above the mobile column and pushed the whole section off-screen. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  white-space: normal;
  overflow: hidden;
}

.bg-notice__time {
  font-size: 0.7rem;
  color: var(--mc-ink3);
  white-space: nowrap;
}

.app-card--background .app-note {
  margin: 0.7rem 0 0;
  font-size: 0.72rem;
  color: var(--mc-ink2);
}

html[data-theme="dark"] .bg-island {
  /* The island's own black sits on the dark plate's #0a0a0b, so ring it. */
  background: #000000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* —— Memory reveal capsule ——
   MemoryRevealCapsule.swift: it docks in the one strip of screen already
   reserved for chrome, just above the composer, and a hairline beam ties it
   back to the memory pill. The beam is the whole point — without it the
   capsule reads as a system notice that wandered in. */
.memcap {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 16px);
  transform: translateX(-50%) translateY(6px) scale(0.9);
  transform-origin: bottom center;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 32px);
  padding: 7px 12px;
  border-radius: 999px;
  /* primary surface + the faint accent wash across the fill */
  background:
    linear-gradient(90deg, rgba(var(--acc-rgb), 0.10), rgba(var(--acc-rgb), 0.02)),
    var(--canvas);
  box-shadow: 0 0 0 1px rgba(var(--acc-rgb), 0.30),
    0 2px 10px rgba(var(--acc-rgb), 0.16), 0 3px 10px rgba(0, 0, 0, 0.10);
  white-space: nowrap;
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.34s ease;
}

.memcap.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  filter: blur(0);
}

/* the beam: accent 0 → 0.55 → 0, 1.5 x 14, hanging under the capsule */
.memcap::after {
  content: "";
  position: absolute;
  /* --beam-x is measured off the Memory pill so the beam lands on its centre,
     not on the capsule's — the capsule is wide enough to be centred on the
     composer while the pill is not. */
  left: var(--beam-x, 50%);
  top: 100%;
  margin-left: -0.75px;
  margin-top: 7px;
  width: 1.5px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(var(--acc-rgb), 0) 0%,
    rgba(var(--acc-rgb), 0.55) 50%,
    rgba(var(--acc-rgb), 0) 100%
  );
}

.memcap__glyph {
  display: flex;
  color: var(--acc);
  filter: drop-shadow(0 0 3px rgba(var(--acc-rgb), 0.55));
}

.memcap__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--acc);
}

.memcap__text {
  font-size: 11.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
}

.memcap__count {
  font-size: 9.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--acc);
  background: rgba(var(--acc-rgb), 0.14);
  border-radius: 999px;
  padding: 1px 5px;
}

/* —— Away: swipe up, the app leaves, the island carries the job ——
   The app's own children slide up and fade, so the phone never has to draw a
   home screen. Behind them is the film's lock screen, layer for layer: the same
   photograph, the same scrim, the same clock, the same two frosted lenses.

   The plate is drawn here, in CSS, and the film draws the same four stops in
   the same order — one blue, two renderers, no bitmap between them.

   The hue is the product's own: #4D7CFE is the accent the app and this page
   already use (every button, every link, the tool cards), so the lock screen
   carries it rather than inventing a second blue. It is that accent one step
   desaturated — a full-bleed #4D7CFE is neon at 410 px — which puts white type
   at 2.6:1 on the clock band, exactly what an 89 px glyph needs with a shadow
   under it, and gives the two glass buttons a mid-tone to be light against. That
   is deliberate: this is a gradient, and a bitmap of a gradient is a set of
   bands. The last one shipped 424 colours across 1.7 million pixels, with rows
   holding the same value for 48 px, and that is the ripple you could see.

   Every number in the lock screen below is the film's own, where it is authored
   on a 440 x 956 screen. This phone's screen is 410 x 883 (a 428 px device,
   a 352/366 screen hole, 2 px of border), so horizontal values are x 0.9318
   and vertical ones x 0.9236; the 0.8% between the two ratios is that border.
   Change the film's
   lock screen and these change with it — that is the deal that keeps the two
   pictures the same picture. */
.away {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;
  /* The plate, drawn in CSS rather than encoded as a bitmap: an 8-bit WebP of
     a gradient this slow is a set of bands (the last one had 424 colours in
     1.7 million pixels), and that is what reads as a ripple under the icons.
     The browser dithers a gradient itself, for 200 bytes. */
  background:
    radial-gradient(88% 46% at 82% 4%, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0) 66%),
    linear-gradient(178deg, #8ac6fd 0%, #6fb2f6 26%, #5ca5f0 60%, #4a90dc 100%);
}

.away.is-in {
  opacity: 1;
}

/* Lock screen clock, below the island. promo #lockClock, to the pixel: 138
   from the top, 96/540 clock over 16/560 date, 5 between them. */
.lock-clock {
  position: absolute;
  left: 0;
  right: 0;
  top: 118px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.6px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.lock-clock.is-in {
  opacity: 1;
  transform: none;
}

.lock-clock__date {
  font-size: 14.9px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(22, 34, 46, 0.66);
}

.lock-clock__time {
  font-size: 89.5px;
  line-height: 1.02;
  font-weight: 540;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(12, 40, 64, 0.34), 0 9.4px 26px rgba(12, 40, 64, 0.2);
}

/* the grain: a tiled feTurbulence over the plate, blended, so the field reads
   as film rather than as a fill. Same trick as the film's #wallpaper::after —
   one texture, two renderers, and no bitmap to band. */
.away::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

/* —— the Live Activity card ——
   The system's own lock-screen card, measured off a real iOS 26 capture at 3x
   (a 420 x 912 screen): 14 pt gutters, 64 pt tall at 625, r 22, an app tile on
   the left, the question in quotes, the state line under it, and the stop ring
   on the right. Here the screen is 410 x 883, so every number is x 0.9762.

   Glass, not a tinted fill: the plate has to come through it, or the card reads
   as a white sticker sitting on the wallpaper. */
.lock-card {
  position: absolute;
  left: 13.7px;
  right: 13.7px;
  top: 610.4px;
  height: 62.2px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 11.2px;
  padding: 0 12.3px;
  border-radius: 21.5px;
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(255, 255, 255, 0.36) 54%,
    rgba(255, 255, 255, 0.46) 100%
  );
  border: 0.88px solid rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 9.8px 25.4px rgba(12, 34, 52, 0.18);
  -webkit-backdrop-filter: blur(21.5px) saturate(160%);
  backdrop-filter: blur(21.5px) saturate(160%);
  color: #101820;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;
}

.lock-card__tile {
  width: 39px;
  height: 39px;
  border-radius: 9.8px;
  flex: 0 0 auto;
  background: #fff url("assets/brand/icon.png") center / 100% 100% no-repeat;
  box-shadow: inset 0 0 0 0.7px rgba(16, 26, 36, 0.1);
}

.lock-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lock-card__title {
  font-size: 16.6px;
  font-weight: 450;
  letter-spacing: -0.012em;
  color: #2f3d49;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lock-card__sub {
  display: flex;
  align-items: center;
  gap: 5.9px;
  font-size: 12.7px;
  font-weight: 430;
  letter-spacing: -0.005em;
  color: rgba(16, 26, 36, 0.46);
  white-space: nowrap;
}

.lock-card__sep {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: rgba(16, 26, 36, 0.34);
  flex: 0 0 auto;
}

.lock-card__ring {
  position: relative;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
}

.lock-card__ring svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lock-card__track {
  fill: none;
  stroke: rgba(16, 26, 36, 0.13);
  stroke-width: 3.4;
}

.lock-card__arc {
  fill: none;
  stroke: #101820;
  stroke-width: 3.4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.62s cubic-bezier(0.4, 0, 0.6, 1);
}

.lock-card__stop {
  fill: #101820;
}

/* —— the two lock-screen buttons: flashlight and camera ——
   promo `.lgBtn`: 55 pt discs, centres 83 pt in from each edge. */
.lock-btns {
  position: absolute;
  left: 54.2px;
  right: 54.2px;
  top: 789.3px;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;
}

.lock-btn {
  position: relative;
  width: 53.7px;
  height: 53.7px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(
    120% 120% at 34% 22%,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.34) 100%
  );
  border: 0.88px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 5.9px 15.6px rgba(10, 30, 46, 0.18);
  -webkit-backdrop-filter: blur(15.6px) saturate(150%);
  backdrop-filter: blur(15.6px) saturate(150%);
}

.lock-btn svg {
  width: 23.8px;
  height: 23.8px;
  stroke: #101820;
  fill: none;
  stroke-width: 1.66;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lock-btn:first-child svg {
  fill: #101820;
  stroke: none;
}

.lock-btn--camera svg {
  fill: #101820;
  stroke: none;
}

/* the home indicator: white on the plate, as iOS draws it */
.lock-home {
  position: absolute;
  left: 50%;
  bottom: 7.8px;
  width: 130.8px;
  height: 4.9px;
  margin-left: -65.4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.82);
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;
}

/* —— the lock screen, at night ——
   iOS does not change a wallpaper with the theme — a lock screen is a lock
   screen — but a page that has gone dark should not hand you a bright blue
   slab, so this is the same four stops one step into the evening, and the
   glass materials invert: the card and the two buttons become dark glass with
   white ink on them, which is what the system draws over a dark wall. */
html[data-theme="dark"] .away {
  background:
    radial-gradient(88% 46% at 82% 4%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 66%),
    linear-gradient(178deg, #2f5e86 0%, #2a5478 26%, #24486a 60%, #1b3a56 100%);
}

html[data-theme="dark"] .lock-clock__date {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .lock-card {
  background: linear-gradient(
    168deg,
    rgba(40, 48, 58, 0.66) 0%,
    rgba(31, 38, 47, 0.52) 54%,
    rgba(37, 45, 55, 0.6) 100%
  );
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 9.8px 25.4px rgba(0, 0, 0, 0.36);
  color: #eef2f6;
}

html[data-theme="dark"] .lock-card__title {
  color: #f2f5f8;
}

html[data-theme="dark"] .lock-card__sub {
  color: rgba(255, 255, 255, 0.56);
}

html[data-theme="dark"] .lock-card__sep {
  background: rgba(255, 255, 255, 0.34);
}

html[data-theme="dark"] .lock-card__track {
  stroke: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .lock-card__arc {
  stroke: #ffffff;
}

html[data-theme="dark"] .lock-card__stop {
  fill: #ffffff;
}

html[data-theme="dark"] .lock-btn {
  background: radial-gradient(
    120% 120% at 34% 22%,
    rgba(52, 62, 74, 0.72) 0%,
    rgba(27, 34, 43, 0.56) 100%
  );
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 5.9px 15.6px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .lock-btn svg {
  stroke: #f0f4f8;
}

/* the two glyphs carry their colour as presentation attributes, which beat an
   inherited fill — so the paths are named, not the svg */
html[data-theme="dark"] .lock-btn:first-child svg path:first-of-type {
  fill: #f0f4f8;
}

html[data-theme="dark"] .lock-btn:first-child svg path:last-of-type {
  stroke: #1b222b;
}

html[data-theme="dark"] .lock-btn--camera svg path {
  fill: #f0f4f8;
}

html[data-theme="dark"] .lock-btn--camera svg circle {
  fill: #1b222b;
}

/* the card, the buttons and the indicator arrive with the plate, and leave
   with it */
.phone-screen.is-away .lock-card,
.phone-screen.is-away .lock-btns,
.phone-screen.is-away .lock-home {
  opacity: 1;
}

/* the film's lock screen has no home indicator — its #homeBar is an unstyled
   div, so the bar never draws — and the two pictures have to match */
.phone-screen.is-away .home-bar {
  opacity: 0;
}

.phone-screen.is-away .chat-nav,
.phone-screen.is-away .chat-body,
.phone-screen.is-away .chat-composer,
.phone-screen.is-away .memcap {
  transform: translateY(-9%) scale(0.94);
  opacity: 0;
}

/* Above the wallpaper, so the app is what covers it — and what slides away.
   .memcap is excluded: it is absolutely positioned over the composer, not part
   of the column. */
.chat-nav,
.chat-body,
.chat-composer {
  position: relative;
  z-index: 1;
}

.chat-nav,
.chat-body,
.chat-composer {
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.42s ease;
}

/* The phone's own home indicator — the video has one, and it is what makes the
   away state read as an iOS screen rather than an empty blue field. */
.home-bar {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 124px;
  height: 5px;
  margin-left: -62px;
  border-radius: 3px;
  background: rgba(17, 19, 24, 0.24);
  z-index: 8;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* The island is part of the phone, so it is always drawn — an empty black pill
   at rest, exactly like the hardware cutout. Apple's Live Activity table gives
   the camera region: two 52.33pt compact slots inside a 230pt island, so the
   cutout is 125.34 x 36.67pt, its top edge 11pt below the screen's. The
   expanded card is 371pt wide, 84-160 tall, radius 44.
   On this 410px screen (393pt) that is 131 x 38 at top 11.5 inside the 55px
   status bar — the pill and its content are the same box, and the island never
   overhangs the status bar, exactly as on the device. Earlier numbers here
   (181 x 36, top 29) came from video/promo and drew a pill 44% of the
   screen wide against the real 32%. */
/* The island, at the film's own measurements: a 398 x 94 slot at 31 from the
   top, clipped to the 194 x 38.4 pill until it opens (video/promo #island,
   ISLAND_CLOSED / ISLAND_OPEN). On this 410 px screen that is 370.9 x 86.8 at
   28.6, r 43.4, closed round 17.7. The two clip insets are percentages and
   travel as they are. */
.island {
  position: absolute;
  left: 50%;
  top: 28.6px;
  width: 328px;
  height: 72px;
  margin-left: -164px;
  z-index: 9;
  background: #000000;
  border-radius: 36px;
  overflow: hidden;
  transform-origin: 50% 50%;
  clip-path: inset(0% 30% 57.05% 30% round 14.8px);
  transition: clip-path 0.52s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

/* the press is the island's own dip — the real island has no touch dot */
.island.is-pressed {
  transform: scale(0.955);
}

.island.is-open {
  border-radius: 36px;
  clip-path: inset(0% 0% 0% 0% round 36px);
  transition: clip-path 0.52s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.52s cubic-bezier(0.16, 1, 0.3, 1), transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

/* closing is a shorter, tighter curve than opening */
.island.is-closing {
  transition: clip-path 0.38s cubic-bezier(0.65, 0, 0.35, 1),
    border-radius 0.38s cubic-bezier(0.65, 0, 0.35, 1);
}

.isl-badge {
  display: block;
  flex: 0 0 auto;
  width: 17.9px;
  height: 17.9px;
  border-radius: 5.5px;
}

.isl-badge--lg {
  width: 31.2px;
  height: 31.2px;
  border-radius: 9.3px;
}

/* the closed pill: badge left, live ring right. Same box as the clip leaves. */
.island__compact {
  position: absolute;
  left: 98.4px;
  top: 0;
  width: 131.2px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6.3px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.island.is-live .island__compact {
  opacity: 1;
}

.island.is-open .island__compact {
  opacity: 0;
  transition: opacity 0.14s ease;
}

/* …and it must not come back until the clip has finished closing, or the pill's
   icon and check fade in on top of the card that is still fading out. */
.island.is-closing .island__compact {
  opacity: 0;
  transition: opacity 0.12s ease;
}

.isl-mini {
  display: block;
  width: 18.6px;
  height: 18.6px;
  flex: 0 0 auto;
}

.isl-mini svg,
.isl-ring svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* the expanded card: badge, text, ring */
.island__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 27.2px;
  padding: 0 23.3px;
  opacity: 0;
  transition: opacity 0.26s ease;
}

.island.is-open .island__content {
  opacity: 1;
  transition: opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1) 0.14s;
}

.isl-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.3px;
}

.isl-title {
  font-size: 15.1px;
  font-weight: 620;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.isl-sub {
  display: flex;
  align-items: center;
  gap: 5.5px;
  font-size: 10.9px;
  font-weight: 460;
  color: rgba(255, 255, 255, 0.54);
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.isl-sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  display: block;
  flex: 0 0 auto;
}

#demo-island-elapsed {
  font-variant-numeric: tabular-nums;
}

.isl-ring {
  display: block;
  width: 37.3px;
  height: 37.3px;
  flex: 0 0 auto;
}

.isl-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.21);
}

.isl-arc {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.62s cubic-bezier(0.4, 0, 0.6, 1);
}

/* The stop square sits inside the ring while the job runs; when it finishes the
   square shrinks away and a check lands in its place — promo does exactly
   this on both rings, so the pill and the card agree. */
.isl-stop {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.isl-check {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.7);
  transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.island.is-done .isl-stop {
  opacity: 0;
  transform: scale(0.62);
}

.island.is-done .isl-check {
  opacity: 1;
  transform: scale(1);
}

/* the pill's ring is the progress ring at 100%, so at pill size a filled circle
   would read as a badge — it ends on the check alone */
.island.is-done .island__compact .isl-track,
.island.is-done .island__compact .isl-arc {
  opacity: 0;
  transition: opacity 0.24s ease;
}

@keyframes bg-island-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Gentle lift on the two cards that are actually interactive, so the
   affordance matches what responds to a click. */
.app-card--preset:hover,
.theme-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(11, 11, 12, 0.12);
}

.app-head__right {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* "Tap to try" cue on interactive mockups only. */
.app-try {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--mc-line);
  color: var(--mc-ink3);
  font-size: 0.66rem;
  font-weight: 500;
  white-space: nowrap;
}

.app-try__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--acc);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb), 0.16);
}

.app-head,
.theme-demo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--mc-line);
}

.app-head__title,
.theme-demo__title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app-badge,
.theme-demo__pill {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--acc-rgb), 0.12);
  color: var(--acc-deep);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Green is a result, not a category: it is only ever the tool-call tick and
   "Connected to …". Protocol names, privacy facts and Apple's own terms are
   annotations, so they get an ink chip instead. */
.app-badge--note {
  background: var(--surf2);
  color: var(--ink2);
}

.app-row,
.theme-demo__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--mc-line);
}

.app-row:last-child,
.theme-demo__row--last {
  border-bottom: none;
}

.app-row--stack {
  flex-direction: column;
  align-items: stretch;
}

.app-label,
.theme-demo__label {
  /* The app's settings rows: .system(size: chatSupportingFontSize) at regular
     weight in chatTertiaryTextColor. Semibold here made every row read heavy. */
  color: var(--mc-ink3);
  font-weight: 400;
}

.app-sub {
  font-size: 0.76rem;
  color: var(--mc-ink2);
  opacity: 0.8;
}

.app-mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.app-chip {
  padding: 0.24rem 0.62rem;
  border-radius: 0.4rem;
  background: var(--mc-chip);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mc-ink2);
  white-space: nowrap;
}

.app-chip.is-on {
  background: rgba(var(--acc-rgb), 0.14);
  color: var(--acc-deep);
}

.app-chips--presets .app-chip {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  line-height: inherit;
}

.app-chips--presets .app-chip:hover {
  background: rgba(var(--acc-rgb), 0.1);
}

.app-seg,
.theme-demo__seg {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.16rem;
  border-radius: 0.55rem;
  background: var(--mc-seg);
}

.app-seg span,
.theme-demo__seg span,
.theme-demo__seg button {
  padding: 0.24rem 0.62rem;
  border: none;
  border-radius: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mc-ink2);
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
}

.app-seg span.is-on,
.theme-demo__seg span.is-on,
.theme-demo__seg button.is-on {
  background: var(--mc-seg-on);
  color: var(--mc-ink);
  box-shadow: 0 1px 3px rgba(11, 11, 12, 0.12);
}

.app-toggle {
  position: relative;
  flex-shrink: 0;
  width: 2.1rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(17, 20, 24, 0.15);
  transition: background 0.25s ease;
}

.app-toggle::after {
  content: "";
  position: absolute;
  top: 0.14rem;
  left: 0.14rem;
  width: 0.97rem;
  height: 0.97rem;
  border-radius: 999px;
  background: var(--mc-knob);
  box-shadow: 0 1px 3px rgba(11, 11, 12, 0.25);
  transition: left 0.25s ease, right 0.25s ease;
}

.app-toggle.is-on {
  background: var(--acc);
}

.app-toggle.is-on::after {
  left: auto;
  right: 0.14rem;
}

.app-slider {
  position: relative;
  flex: 0 1 8.5rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--acc) var(--fill, 60%), rgba(17, 20, 24, 0.12) var(--fill, 60%));
  transition: background 0.18s linear;
}

.app-slider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--fill, 60%);
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--mc-knob);
  box-shadow: 0 1px 4px rgba(11, 11, 12, 0.3);
  transform: translate(-50%, -50%);
  transition: left 0.18s linear;
}

.app-value {
  min-width: 2.8rem;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mc-ink2);
}

/* spinner — the app's "working" indicator */
.app-spin {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  border: 2px solid rgba(var(--acc-rgb), 0.25);
  border-top-color: var(--acc);
  animation: app-spin 0.7s linear infinite;
  vertical-align: -0.12em;
}

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

/* —— Chat Preset: chips swap the whole config block —— */
.app-config {
  min-height: 9.6rem;
}

.app-config.is-switching .app-config__inner {
  animation: app-swap 0.3s ease;
}

@keyframes app-swap {
  0% {
    opacity: 0.35;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— MCP: config page first, then the tools in action —— */
/* Stage 1 mirrors MCPEditServerView.swift (Name/URL → auth → Validate &
   Fetch Tools → fetched tools with toggles). Stage 2 reuses the hero's
   .txd-card tool cards (1:1 with the app's transcript tool card). */

.mc-stage {
  display: none;
}

.mc-stage.is-active {
  display: block;
  animation: app-swap 0.32s ease;
}

/* Both phases share one reserved height so switching never re-layouts the page.
   The config form and the chat stage are each pinned to the taller of the two
   (the chat phase — user question + two pretty-printed tool cards); the chat
   content is centered in that space. Keep this in sync if the tool JSON or
   the config form grows. */
.mc-form,
.mc-stage--chat {
  min-height: 515px;
}

.mc-stage--chat {
  flex-direction: column;
  justify-content: center;
}

.mc-stage--chat.is-active {
  display: flex;
}

/* config form — SwiftUI Form look: canvas bg, rounded section cards */
.mc-form {
  background: var(--mc-form);
  border-radius: 10px;
  padding: 0.45rem 0.45rem 0.55rem;
}

.mc-sec__label {
  margin: 0.05rem 0.4rem 0.3rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink3);
}

.mc-sec__card {
  background: var(--mc-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--mc-border-soft);
}

.mc-sec__card + .mc-sec__card {
  margin-top: 0.4rem;
}

.mc-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.34rem 0.7rem;
}

.mc-field + .mc-field {
  border-top: 1px solid var(--mc-border-row);
}

.mc-field__name {
  color: var(--ink2);
  font-size: 0.78rem;
}

.mc-field__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 0;
}

.mc-field__right .mc-mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-field__value {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* "this is a demo" marker next to the sample endpoint */
.mc-example {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(11, 11, 12, 0.06);
  color: var(--ink3);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mc-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink2);
  font-weight: 400;
}

/* Validate & Fetch Tools button + success block */
.mc-fetch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.38rem 0.7rem;
  border: none;
  background: transparent;
  color: var(--acc);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.mc-fetch__spin {
  display: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--acc-rgb), 0.3);
  border-top-color: var(--acc);
  animation: app-spin 0.7s linear infinite;
}

.mc-fetch.is-fetching .mc-fetch__spin {
  display: inline-block;
}

/* Reveal states use opacity (NOT display) so the config form keeps its full
   height from the first frame — the card never grows, so the page never
   re-layouts while the demo plays. */
.mc-fetch__ok {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem 0.5rem;
  border-top: 1px solid var(--mc-border-row);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mc-fetch__ok.is-in {
  opacity: 1;
}

.mc-fetch__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #16A34A;
  flex-shrink: 0;
}

.mc-fetch__check svg {
  width: 0.66rem;
  height: 0.66rem;
}

.mc-fetch__ok-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.78rem;
  color: var(--ink);
}

.mc-fetch__ok-text strong {
  font-weight: 600;
}

.mc-fetch__sub {
  font-size: 0.68rem;
  color: var(--ink3);
}

/* fetched tools list — hidden via opacity so its space is always reserved */
.mc-tools {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mc-tools.is-in {
  opacity: 1;
  transform: none;
}

.mc-tool-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.78rem;
  color: var(--ink);
}

.mc-tool-desc {
  font-size: 0.68rem;
  color: var(--ink3);
}

/* stage 2 — the user question the tools are answering */
.mc-chat__user {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.3rem;
}

.mc-chat__user span {
  max-width: 88%;
  padding: 10px 11px;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  background: var(--acc);
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1.45;
  width: max-content;
}

/* stage 2 — tool-call cards (reuse .txd-card, see hero) */
.app-card--mcp .txd-card + .txd-card {
  margin-top: 0.35rem;
}

/* tighter body padding so the two pretty-printed cards sit comfortably
   inside the phase height the config form is pinned to */
.app-card--mcp .txd-card__body {
  padding: 2px 10px 6px 10px;
}

.app-card--mcp .txd-card__dur {
  min-width: 2.8em;
  text-align: right;
}

.app-card--mcp .txd-tool__args code {
  font-size: 0.72rem; /* 12px — app --font-size-micro */
  line-height: 1.4;
}

.app-card--mcp .txd-chip--pending {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  background: transparent;
  color: var(--ink3);
}

.app-card--mcp .txd-tool__args {
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.app-card--mcp .txd-card.is-calling .txd-tool__args,
.app-card--mcp .txd-card.is-in .txd-tool__args {
  opacity: 1;
}

.app-card--mcp .txd-tool__result {
  font-family: var(--font-mono);
  font-size: 0.72rem; /* 12px — app --font-size-micro */
  line-height: 1.38;
  color: var(--ink2);
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.app-card--mcp .txd-card.is-in .txd-tool__result {
  opacity: 1;
}

.app-card--mcp .txd-card.is-pending .txd-card__head,
.app-card--mcp .txd-card.is-pending .txd-card__icon {
  color: var(--ink3);
}

/* —— Appearance: swatches / mode / font-size flip the card —— */
.theme-demo__swatches {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-demo__dot {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: var(--c);
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.theme-demo__dot:hover {
  transform: scale(1.12);
}

.theme-demo__dot.is-on {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--c), 0 2px 6px rgba(11, 11, 12, 0.25);
}

.theme-demo__preview {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: #F5F7F8;
  transition: background 0.3s ease;
}

.theme-demo__preview.is-sm .theme-demo__bubble {
  font-size: 0.7rem;
}

.theme-demo__preview.is-md .theme-demo__bubble {
  font-size: 0.8rem;
}

.theme-demo__preview.is-lg .theme-demo__bubble {
  font-size: 0.95rem;
}

.theme-demo__seg button[data-size="sm"] {
  font-size: 0.66rem;
}

.theme-demo__seg button[data-size="lg"] {
  font-size: 0.95rem;
}

.theme-demo__bubble {
  max-width: 78%;
  padding: 0.45rem 0.7rem;
  border-radius: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.4;
  transition: background 0.3s ease, color 0.3s ease;
}

.theme-demo__bubble--ai {
  align-self: flex-start;
  background: #ffffff;
  color: var(--mc-ink2);
  border-bottom-left-radius: 0.3rem;
}

.theme-demo__bubble--user {
  align-self: flex-end;
  background: var(--acc);
  color: #ffffff;
  border-bottom-right-radius: 0.3rem;
}

/* dark state — matches the app's dark theme tokens.
   Applied both when the Appearance demo is toggled (.is-dark) and when the
   site theme is dark (html[data-theme="dark"]). */
.theme-demo.is-dark,
html[data-theme="dark"] .app-card,
html[data-theme="dark"] .theme-demo {
  --acc: #4D7CFE;
  --acc-rgb: 77, 124, 254;
  --acc-deep: #8BB0FF; /* live's accent-on-dark text; #3C5FBE is 2.5:1 here */
  --mc-ink: #E7EBEF;
  --mc-ink2: #A8B0B9;
  --mc-ink3: #7C848D;
  --mc-line: rgba(255, 255, 255, 0.08);
  --mc-bg: #171B20;
  --mc-form: #101418;
  --mc-card: #171B20;
  --mc-chip: rgba(255, 255, 255, 0.06);
  --mc-seg: rgba(255, 255, 255, 0.06);
  --mc-seg-on: #101418;
  --mc-knob: #E7EBEF;
  --mc-border-soft: rgba(255, 255, 255, 0.08);
  --mc-border-row: rgba(255, 255, 255, 0.06);
  --mc-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --mc-ok: #4ade80;
  --mc-ok-bg: rgba(74, 222, 128, 0.14);
  --acc-rgb: 77, 124, 254;
  --ink: #E7EBEF;
  --ink2: #A8B0B9;
  --ink3: #7C848D;
  --surf2: #1D2228;
  --tool: #181C28;
  --reasoning: #242722;
  background: var(--mc-bg);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--mc-shadow);
}

.theme-demo.is-dark .theme-demo__head,
.theme-demo.is-dark .theme-demo__row,
html[data-theme="dark"] .theme-demo__head,
html[data-theme="dark"] .theme-demo__row {
  border-bottom-color: var(--mc-line);
}

.theme-demo.is-dark .theme-demo__seg,
html[data-theme="dark"] .theme-demo__seg,
html[data-theme="dark"] .app-seg {
  background: var(--mc-seg);
}

.theme-demo.is-dark .theme-demo__seg button.is-on,
html[data-theme="dark"] .theme-demo__seg button.is-on,
html[data-theme="dark"] .app-seg span.is-on {
  background: var(--mc-seg-on);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.theme-demo.is-dark .theme-demo__preview,
html[data-theme="dark"] .theme-demo__preview {
  background: #101418;
}

.theme-demo.is-dark .theme-demo__bubble--ai,
html[data-theme="dark"] .theme-demo__bubble--ai {
  background: #1D2228;
  color: var(--mc-ink2);
}

.theme-demo.is-dark .theme-demo__bubble--user,
html[data-theme="dark"] .theme-demo__bubble--user {
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.theme-demo.is-dark .theme-demo__dot.is-on,
html[data-theme="dark"] .theme-demo__dot.is-on {
  border-color: #171B20;
}

/* —— Hero: phone chat screen mockup (matches BayesChat light theme) —— */
.phone-screen {
  --acc: #4D7CFE;
  --acc-rgb: 77, 124, 254;
  --acc-deep: #3C5FBE;
  --canvas: #FFFFFF; /* pure white — the app's own choice over its #F5F7F8 */
  --surf: #FFFFFF;
  --surf2: #EEF1F4;
  --surf3: #E7ECF0;
  --code: #F3F5F7;
  --ink: #111418;
  --ink2: #5B646E;
  --ink3: #8A8A8E;
  --mc-ink: var(--ink);
  --mc-ink2: var(--ink2);
  --mc-ink3: var(--ink3);
  --line: rgba(0, 0, 0, 0.08);
  --reasoning: #F5F2EB;
  --tool: #E6F0FA;  /* tool card: the app tints it blue */
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-app);
  font-size: 15px;
  line-height: 1.5;
  transition: background 0.3s ease, color 0.3s ease;
}

html[data-theme="dark"] .phone-screen {
  --canvas: #0a0a0b;
  --surf: #131315;
  --surf2: #1c1c1f;
  --canvas: #101418;
  --surf: #181C22;
  --surf2: #1D2228;
  --surf3: #242A31;
  --code: #1E242A;
  --acc: #4D7CFE;
  --acc-rgb: 77, 124, 254;
  --ink: #E7EBEF;
  --ink2: #A8B0B9;
  --ink3: #7C848D;
  --line: rgba(255, 255, 255, 0.08);
  --reasoning: #242722;
  --tool: #181C28;
}

.device--hero .device__screen {
  /* Size comes from absolute inset ratios on .device--hero (366×729 frame). */
  background: var(--canvas, #FFFFFF);
  transition: background 0.3s ease;
}

html[data-theme="dark"] .device--hero .device__screen {
  background: #101418;
}

/* The phone's own status bar — the video draws one, and without it the island
   has nowhere to sit. Measured off video/beat-demo .statusbar (59px at 440pt,
   scaled to this 410px screen). */
.statusbar {
  flex: none;
  height: 55px;
  display: flex;
  align-items: center;
  padding: 0 26px 0 30px;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.statusbar__icons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sig {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 10px;
}

.sig i {
  width: 4.2px;
  height: 4.2px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.28;
}

.sig i:nth-child(3) { opacity: 0.55; }
.sig i:nth-child(4) { opacity: 1; }

.statusbar__wifi {
  color: var(--ink);
}

.batt {
  width: 23px;
  height: 11px;
  border: 1.5px solid color-mix(in srgb, currentColor 42%, transparent);
  border-radius: 4px;
  position: relative;
}

.batt::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

.batt::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  border-radius: 0 1.5px 1.5px 0;
  background: color-mix(in srgb, currentColor 42%, transparent);
}

/* 52px at 440pt in video/promo .nav, scaled here — the height is what keeps
   the title clear of the island pill, which overhangs the status bar. */
.chat-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1rem;
}

.chat-nav__title {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 12px 12px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* No visible scrollbar — matches the app's WKWebView (iOS overlay
     scrollbars are hidden at rest). Keeps the light canvas clean. */
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  /* Instant scroll-follow during streaming (matches the app — no gliding). */
  scroll-behavior: auto;
}

.chat-body::-webkit-scrollbar {
  width: 0;
  display: none;
}

/* Empty New Chat — 1:1 with MessageListView.chatEmptyState.
   Skip the app's -24pt vertical offset here: the phone mock clips under
   the nav, so keep the icon clear of the top edge like other content. */
.demo-empty {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding: 4px 0 12px;
  margin-top: 0;
}

.chat-body.is-empty {
  padding-top: 16px;
}

.chat-body.is-empty .demo-empty {
  display: flex;
}

.chat-body.is-empty .demo-thread {
  display: none !important;
}

.demo-empty__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  text-align: center;
}

.demo-empty__icon-wrap {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surf2); /* chatSecondarySurface #f0efec / #1c1c1f */
  color: var(--acc);
}

.demo-empty__icon-wrap .cicon {
  width: 36px;
  height: 36px;
}

.demo-empty__title {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem; /* chatBody 16 + 4 */
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.demo-empty__desc {
  margin: 0;
  max-width: 360px;
  color: var(--ink2);
  font-size: 0.875rem; /* chatMeta 14 */
  line-height: 1.4;
}

.demo-empty__presets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-empty__presets-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
}

.demo-empty__presets-title {
  color: var(--ink);
  font-size: 1rem; /* chatBody 16 semibold */
  font-weight: 600;
}

.demo-empty__see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0 8px 12px;
  color: var(--acc);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

.demo-empty__see-all .cicon {
  width: 9px;
  height: 9px;
}

.demo-presets {
  display: flex;
  gap: 10px;
  padding: 2px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.demo-presets::-webkit-scrollbar {
  display: none;
}

.demo-empty__hint {
  margin: 0;
  padding: 0 24px;
  color: var(--ink3);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}

/* 100×100 launch cards — MessageListView.chatPresetLaunchCard */
.demo-preset-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 0.75px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: linear-gradient(
    180deg,
    var(--surf2) 0%,
    color-mix(in srgb, var(--surf2) 80%, transparent) 100%
  );
  color: var(--ink2);
  transition: opacity 0.25s ease, border-color 0.25s ease, background 0.25s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-presets.has-selection .demo-preset-card:not(.is-on) {
  opacity: 0.55;
}

.demo-preset-card.is-on {
  opacity: 1;
  border-width: 1px;
  border-color: color-mix(in srgb, var(--acc) 45%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--acc) 16%, transparent) 0%,
    color-mix(in srgb, var(--acc) 6%, transparent) 100%
  );
  color: var(--acc);
}

.demo-preset-card.is-tap {
  transform: scale(0.96);
}

.demo-preset-card__icon {
  width: 20px;
  height: 20px;
  color: inherit;
}

.demo-preset-card:not(.is-on) .demo-preset-card__icon {
  color: var(--ink2);
}

.demo-preset-card.is-on .demo-preset-card__icon {
  color: var(--acc);
}

.demo-preset-card__name {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 0.75rem; /* chatMicro 12 */
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.composer__effort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.composer__effort.is-muted,
.composer__effort.is-muted .cicon {
  color: var(--ink3);
}

/* …but the word itself stays the row colour: only the glyph reads as dimmed. */
.composer__effort.is-muted .composer__pill-text {
  color: var(--ink2);
}

.composer__field.is-typing {
  color: var(--ink);
}

.chat-msg--user {
  display: flex;
  justify-content: flex-end;
}

.chat-bubble--user {
  max-width: 90%;
  padding: 7px 11px;
  border-radius: 16px;
  background: var(--acc);
  color: #ffffff;
  font-size: 0.93rem;
  line-height: 1.45;
}

.chat-msg--ai {
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.55;
}

.chat-msg--ai .m {
  margin: 0.3em 0;
}

.chat-msg--ai .m:first-child {
  margin-top: 0;
}

.chat-msg--ai .m:last-child {
  margin-bottom: 0;
}

.math-inline {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.05em;
  letter-spacing: 0.01em;
}

/* Code block — mirrors chat-styles.css (.code-block) */
.code-block {
  margin: 0.5em 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: var(--surf2);
  border-bottom: 1px solid var(--line);
}

.code-block__lang {
  color: var(--ink2);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink2);
  font-size: 0.7em;
  font-weight: 500;
}

.code-block pre {
  margin: 0;
  padding: 9px 11px;
  overflow-x: auto;
  font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.8em;
  line-height: 1.5;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 18px, black 100%);
  mask-image: linear-gradient(to left, transparent 0%, black 18px, black 100%);
}

.code-block pre code {
  font-family: inherit;
}

/* highlight.js light theme colors (from the app) */
.hl-kw { color: #8B5CF6; }

.hl-fn { color: #2563EB; }

.hl-bi { color: #0EA5E9; }

.hl-num { color: #D97706; }

.hl-str { color: #16A34A; }

.hl-cm { color: #9CA3AF; font-style: italic; }

html[data-theme="dark"] .hl-kw { color: #C4B5FD; }

html[data-theme="dark"] .hl-fn { color: #93C5FD; }

html[data-theme="dark"] .hl-bi { color: #7DD3FC; }

html[data-theme="dark"] .hl-num { color: #FBBF24; }

html[data-theme="dark"] .hl-str { color: #86EFAC; }

html[data-theme="dark"] .hl-cm { color: #9CA3AF; font-style: italic; }

/* —— Hero transcript demo (matches transcript-styles.css measurements) —— */

/* The demo is JS-driven; without JS (or with reduced motion) everything is
   simply visible in its final state. The .txd-demo class is added by JS
   before the timeline starts and defines the *reset* state. */
.txd-demo .chat-msg--ai .txd-card__body,
.txd-demo .txd-generating,
.txd-demo .txd-body > .m,
.txd-demo .txd-table,
.txd-demo .txd-formula,
.txd-demo .code-block,
.txd-demo .txd-footer {
  opacity: 0;
}

/* Entry fade for the two cards + the generating placeholder (demo JS adds
   .is-in as each appears). */
.txd-demo .chat-msg--ai .txd-card,
.txd-demo .txd-generating {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.28s ease,
    border-color 0.28s ease;
}

.txd-demo .chat-msg--ai .txd-card.is-in,
.txd-demo .txd-generating.is-in {
  opacity: 1;
  transform: none;
}

/* Reasoning / tool cards — collapsed = flat transparent row (app has NO
   border/background when folded); expanded = tinted surface + accent bar
   (app: #f7f6f3 reasoning / #f0efec tool), also borderless. */
.txd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  transition: background 0.28s ease;
}

.txd-card + .txd-card {
  margin-top: 0.3rem; /* tighter gap between reasoning and tool cards */
}

.txd-card + .txd-generating,
.txd-card + .txd-body {
  margin-top: 0.55rem;
}

.txd-card__accent {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: rgba(var(--acc-rgb), 0.55);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.28s ease;
}

.txd-card.is-expanded .txd-card__accent {
  transform: scaleY(1);
}

.txd-card__head {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 3px 2px;
  color: var(--ink2);
  font-size: 0.8125rem; /* 13px — lighter, quieter header */
  font-weight: 400;
  line-height: 1.3;
}

/* Card icons — the exact SF Symbol PNGs the app ships (sf-brain / sf-hammer),
   rendered as alpha masks so they inherit currentColor. */
.txd-card__icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  min-width: 14px;
  min-height: 14px;
  background-color: currentColor;
  opacity: 0.85;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-source-type: alpha;
  mask-mode: alpha;
}

.txd-card[data-role="reasoning"] .txd-card__icon {
  -webkit-mask-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAGxlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAACQAAAAAQAAAJAAAAABAAKgAgAEAAAAAQAAAICgAwAEAAAAAQAAAIAAAAAAIqTtcQAAAAlwSFlzAAAWJQAAFiUBSVIk8AAADHBJREFUeAHtnVuMXVUZgBlLL9DSgqWlBYGZ6YUirQih0EaIpWCKYkJijFATNTHGB+OT0Vdf9EHDg1ETQ+rlSUxMwAiiVouCSKT2Ir2XQqEzbWlLmRZ6b2nr+H2dddLt6Zz72TP77L3+5Ova++y1L+v//7XWv9bae3rZZVGiBqIGogaiBqIGogaiBqIGogaiBqIGogaiBqIGogaiBqIGogaiBqIGogaiBqIGogaiBqIGogaiBqIGogbypoGuvBWoWnkGBwfHcHwcnOvq6jpbLW9Rjn2oKAUN5byX9HFYjjNMKFjZi11cDD4Ovgfn4SmYX2yNDJW+SC3AVIo8DSyzqRReiuQA07H2dcHibkvhpUgOcD3WnhksPoN0Bt1AoYLg4by9EA4QDN2LArqDEq4mdd+00JJ7BwjGn4OVF0GpC9Dod8JCjudeBxa2UKLR4XKYAHPgx3AEknKOnSfhdjCf+QvXJeSmwBivNMkzFm+/Fj4OS2EZzIJKZd3JsT/C32EzHILzcIbJonOkUTpBAzjAIlgBr8NpaEbOcNIueAY+D7mfLLq8E4xb6xkxlLX/AVgOV0Cz/brTxDeBo4X3wRZhB+RWcuEANNXO7q3EStfAYtCAE8EarEPYLVSS/3LgAzgJp+EwbIenoQ9yLZX6xY4tNI5gmZzluw2c+7dlMB64CspbBg2+B1aDMcAa2IVDnSKNkgcN4BDT4buwH5Jif29fvxjK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4LXVgHCP33JnSwTUXUKc7nb8pL7bfMhXWAYHCNX68D+ILma/B6ODcXSdEdwGVYDerqXC3xrV2/+HEUkRsptANgTGu1S7Suz9cS80mupNAOECzZRyq1xGXd3bUyddrx6ABDX+bsrcNwpTd36sjaOVmiAwy9oePw7nQVs/lCx166jEx/6Fnl+SseKrwDhDhgPxqSSuLLHdWOVzov878X3gGChTRutTdwHQH4Ll/uJDrAkEk1cDUH0PjRAXLn/hcLVKuGD5BVciexBRgyqca1hjsvUC4u+viRiuROogNgUgJB1/X9GMNov1x8t/9QyFN+rOP3owNcNGGlZv4wWSSXEh3golmd6JFycb0gl0NACxod4KK5N7O5FpKfpvtRxzrwHYAoedYAL4v6/xb2wA9gD/ghyY9gLnTltey5LVgzBsPQtoh+2TM+nO/XvGcIAHPx+lcoU0yiBqIGogaiBqIGogaiBqIGogaiBqIGogaiBqIGogaiBqIGogaiBqIGogaiBqIGogaiBqIGogaiBvKvgf8BQuesZmHzkpsAAAAASUVORK5CYII=");
}

.txd-card[data-role="tool"] .txd-card__icon {
  -webkit-mask-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAGxlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAACQAAAAAQAAAJAAAAABAAKgAgAEAAAAAQAAAICgAwAEAAAAAQAAAIAAAAAAIqTtcQAAAAlwSFlzAAAWJQAAFiUBSVIk8AAACi5JREFUeAHtnXuMHWUZxlnKnQJKpQW5lG0LRLkIKUIJUG5yTSTFGhWNEhP5AyEEEqwJRjGgICQkDbdwKSoFVBKtf6BRSSMQK2ioN7QBsS2ULpdCKRRKWwrt+nvILqG7O7vnm3m/M7Nnnzf55ew5M/PON8/7zpzvenabbWxWwApYAStgBayAFbACVsAKWAErYAWsgBWwAlbAClgBK2AFrIAVsAJWwApYAStgBayAFbACVsAKW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9FkLGvWb9+34vXv9g+dH4Cp+qmU1r7aKCkQkgLpcj6tYjlYO1z9VegK+T/CfbeUA7zOyAhEJIB/JP502ctG22qOXd/+B6wi+/seOLUiBiARQcNYGlWcoN/Kv/6x1E8HXf9CwBSoQkQD6NyeLA8s00NXrfDC/j4Hb/L5uBaiNa7RvNkSv2MVlb3+N35M56w70cOcnUONBPYCRs3w24k8LQt3cG078JmwjSOoLOAz+C+qlq2oa4HkMpjXh+lyGFhQgWONAv865AqokgZ4imjwyo4XTepcmKUDQlASnQdkkUOIsh1lNui6XJUEBgqckOB60Di+lTqB9n4GvJJzOuzZRAYKoJDgBlAT6Ph/JFPxlcBl44WYTg5paJgKpJDgOHoXhpoVpEEnf+Qq+h3ZThW7y/gRU8wQOhrtAv8T1CqwHTeB8DZaCfpvvsxDRKdVkORpZtrY8bgmuBoxOhFOgG/S+BzS4s5Au3jW82qyAFbACVsAKWAErYAWsgBWwAlbAClgBK2AFrIAVsAJWwApYAStgBayAFbACVsAKWAErYAWsgBWwAlbACliB8gr8H8ORuf0yXvWzAAAAAElFTkSuQmCC");
}

.txd-card__title {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.txd-card__dur {
  flex-shrink: 0;
  color: var(--ink3);
  font-size: 0.6875rem; /* 11px */
  font-weight: 400;
}

.txd-card__chev {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  color: var(--ink3);
  transition: transform 0.25s ease;
}

.txd-card.is-expanded .txd-card__chev {
  transform: rotate(180deg);
}

.txd-card.is-expanded[data-role="reasoning"] {
  background: var(--reasoning, #F5F2EB);
}

.txd-card.is-expanded[data-role="tool"] {
  background: var(--tool, #E6F0FA);
}

.txd-card.is-expanded .txd-card__head {
  color: var(--acc-deep); /* app expanded header: accent-mixed */
  padding: 8px 10px 6px 8px;
  font-weight: 500;
}

html[data-theme="dark"] .txd-card.is-expanded .txd-card__head {
  color: #8BB0FF; /* live's dark accent-mixed header */
}

.txd-card__body {
  display: none;
  padding: 4px 12px 10px 10px;
  color: var(--ink);
  font-size: 0.8125rem; /* 13px */
  line-height: 1.55;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.txd-card__body p {
  margin: 0;
}

.txd-card.is-expanded .txd-card__body {
  display: block;
  opacity: 1;
}

/* tap ripple on the chevron when the demo "clicks" a collapsed card */
.txd-card__chev {
  position: relative;
}

.txd-card__chev::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(var(--acc-rgb), 0.18);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}

.txd-card__chev.is-ripple::after {
  animation: txd-ripple 0.5s ease-out;
}

@keyframes txd-ripple {
  0% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* status chip — app: green tint pill (ok) */
.txd-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surf2);
  color: var(--ink3);
  font-size: 0.6875rem; /* 11px — app stat chips */
  font-weight: 400;
  line-height: 1.2;
}

.txd-chip--ok {
  flex-shrink: 0;
  background: rgba(22, 163, 74, 0.12);
  color: #16A34A;
  font-weight: 600;
}

/* Calling state — app shows a small spinning ring, no text. */
.txd-chip--calling {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  background: transparent;
  color: var(--ink3);
}

.txd-spinner {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(122, 130, 139, 0.35);
  border-top-color: currentColor;
  animation: txd-spin 0.7s linear infinite;
}

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

/* tool card internals — app: JSON args + bordered result.
   Args match the app's .tx-tool-args-pre: muted secondary text (#57564f,
   the light-theme --color-text-secondary), 1.45 line height, pre-wrapped. */
.txd-tool__args code {
  display: block;
  font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.8em;
  color: var(--ink2);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.txd-tool__result {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(122, 130, 139, 0.18);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Processing dots — app typing indicator, shown below the user bubble until
   the first reasoning card appears. Hidden by default; only the demo shows it. */
.txd-generating {
  display: none;
  align-items: center;
  padding: 4px 0 0;
}

.txd-demo .txd-generating {
  display: flex;
}

.txd-generating__dots {
  display: inline-flex;
  gap: 4px;
}

.txd-generating__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink2);
  animation: txd-dot 1.2s ease-in-out infinite;
}

.txd-generating__dots i:nth-child(2) { animation-delay: 0.15s; }

.txd-generating__dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes txd-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.txd-generating__dots {
  display: inline-flex;
  gap: 4px;
}

.txd-generating__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink2);
  animation: txd-dot 1.2s ease-in-out infinite;
}

.txd-generating__dots i:nth-child(2) { animation-delay: 0.15s; }

.txd-generating__dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes txd-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* body segments — intro/leads typed, table/formula/code fade in.
   Hidden state only applies once the demo is active (JS adds .txd-demo),
   so no-JS / reduced-motion visitors always see the full reply. */
.txd-demo .txd-body > .m,
.txd-demo .txd-table,
.txd-demo .txd-formula,
.txd-demo .txd-body .code-block,
.txd-demo .txd-footer {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.txd-body > .m.is-in,
.txd-table.is-in,
.txd-formula.is-in,
.txd-body .code-block.is-in,
.txd-footer.is-in {
  opacity: 1;
  transform: none;
}

/* Reserve the closing line's final height up front so the transcript's
   scrollHeight is final BEFORE the single glide to the bottom — the closing
   then streams in place, visible, with no second scroll movement. The text
   wraps to 3 lines (~69px) at the current content width (scrollbar hidden
   since v34 widened the chat area), so reserve 3 lines — a full 4th line
   would leave dead space between the text and the footer. */
.txd-demo #demo-closing {
  min-height: 72px;
}

/* table — app: th #f0efec, 1px rgba(0,0,0,.08) borders, 6px 10px th padding */
.txd-table {
  margin: 0.5em 0 0.65em;
  overflow-x: auto;
}

.txd-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.45;
}

.txd-table th {
  background: var(--surf2);
  border: 1px solid var(--line);
  padding: 6px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.txd-table td {
  border: 1px solid var(--line);
  padding: 6px 10px;
  color: var(--ink);
  white-space: nowrap;
}

/* block formula — app renders KaTeX (.katex-display): no card, no background,
   no border — the formula sits directly on the canvas. Only margin + overflow. */
.txd-formula {
  margin: 0.6em 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.txd-formula__expr {
  display: block;
  text-align: center;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* assistant footer — app: model summary row + stat chips row */
/* assistant footer — ported 1:1 from transcript-styles.css (.tx-footer*):
   model summary row + actions (copy/regenerate/share/delete, 12px fill icons)
   + stats row (completion time + ↓/↑ tok chips). No top border — the app
   footer is just a 6px margin below the message. */
.txd-footer {
  margin-top: 6px;
}

.txd-footer__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
}

.txd-footer__model-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  /* Actions are ~78px; the old 140px reserve clipped the model mid-name. */
  max-width: calc(100% - 88px);
}

.txd-footer__model {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink3); /* tertiary #8a8880 */
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.txd-footer__model::-webkit-scrollbar {
  display: none;
}

.txd-footer__fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 14px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--canvas));
  opacity: 0;
}

.txd-footer__model-wrap.is-overflow .txd-footer__fade {
  opacity: 1;
}

.txd-footer__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--ink3);
}

.txd-footer__icon {
  display: block;
  flex-shrink: 0;
}

.txd-footer__stats {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
}

.txd-footer__time {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink3);
  white-space: nowrap;
}

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

.txd-footer__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

/* Streaming cursor — mirrors .streaming-cursor in chat-styles.css */
.stream-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  background: var(--acc);
  vertical-align: text-bottom;
  animation: caret 1s step-end infinite;
}

/* Composer — ported 1:1 from InputBar.swift (composerContent VStack, spacing 0):
   pills row (32pt, single line) → input field (16px) → action row
   [attach 32][tool 32][model flex-1] … [send 44]. No divider. */
.chat-composer {
  padding: 0 8px 28px;
}

.composer {
  padding: 0;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surf);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

html[data-theme="dark"] .composer {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.composer__pills {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  color: var(--ink2);
  font-size: 11px;
  /* regular, like modelButtonLabel — the row is one micro-size text tier */
  font-weight: 400;
  white-space: nowrap;
  min-width: 0;
}

.composer__pills .cicon {
  font-size: 13px;
  color: var(--acc);
}

.composer__pills .pill-dot {
  color: var(--ink2);
}

.composer__pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer__pill-text:last-child {
  min-width: 0;
}

.composer__field {
  padding: 10px 16px 6px;
  /* placeholder sits at tertiary; typed text steps up to primary — the app's
     placeholder is lighter than its body text and so is this */
  color: var(--ink3);
  font-size: 14px;
  font-weight: 400;
}

.composer__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 16px 8px;
}

.composer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--ink2);
}

.composer__icon .cicon {
  font-size: 17px;
}

.composer__icon--tool {
  color: var(--ink2);
  opacity: 0.55;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.composer__icon--tool.is-on {
  color: var(--acc);
  opacity: 1;
}

.composer__icon--tool .cicon {
  font-size: 15px;
}

/* The hairline the app draws between the tool button and the model, so the two
   read as separate controls instead of one long strip. */
.composer__rule {
  width: 1px;
  height: 14px;
  flex: 0 0 auto;
  margin: 0 2px 0 -4px;
  background: color-mix(in srgb, var(--mc-ink) 18%, transparent);
}

/* Memory in the pills row, where the app keeps it — the video's composer has
   Memory between Reasoning Effort and the preset, not down in the actions row.
   It is a control, so it only carries on/off: the "+N" event is .memcap. */
.composer__mem-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink2);
  opacity: 0.55;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.composer__mem-pill .cicon {
  font-size: 13px;
}

.composer__mem-pill.is-on {
  opacity: 1;
}

.composer__model {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
  /* InputBar.swift modelButtonLabel: .system(size: chatMicroFontSize) with no
     weight override (regular) in chatSecondaryTextColor — provider and model
     deliberately share one size and one colour. */
  color: var(--ink2);
  font-size: 11px;
  font-weight: 400;
}

.composer__model .cicon {
  color: var(--acc);
  flex-shrink: 0;
  font-size: 15px;
}

.composer__model span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer__send {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--acc);
  color: #ffffff;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.composer__send.is-armed {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb), 0.22);
}

.composer__send .cicon {
  font-size: 15px;
}

/* SF Symbol icons — the exact symbols the app renders (macOS SF Symbols),
   embedded as alpha masks so they inherit currentColor. */
.cicon {
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-source-type: alpha;
  mask-mode: alpha;
}

.cicon--slider {
  -webkit-mask-image: url("assets/icons/slider.png");
  mask-image: url("assets/icons/slider.png");
}

.cicon--brain {
  -webkit-mask-image: url("assets/icons/brain.png");
  mask-image: url("assets/icons/brain.png");
}

.cicon--bubble {
  -webkit-mask-image: url("assets/icons/bubble.png");
  mask-image: url("assets/icons/bubble.png");
}

.cicon--plus {
  -webkit-mask-image: url("assets/icons/plus.png");
  mask-image: url("assets/icons/plus.png");
}

.cicon--wrench {
  -webkit-mask-image: url("assets/icons/wrench.png");
  mask-image: url("assets/icons/wrench.png");
}

.cicon--cpu {
  -webkit-mask-image: url("assets/icons/cpu.png");
  mask-image: url("assets/icons/cpu.png");
}

.cicon--arrowup {
  -webkit-mask-image: url("assets/icons/arrowup.png");
  mask-image: url("assets/icons/arrowup.png");
}

.cicon--bubbles {
  -webkit-mask-image: url("assets/icons/bubbles.png");
  mask-image: url("assets/icons/bubbles.png");
}

.cicon--search {
  -webkit-mask-image: url("assets/icons/search.png");
  mask-image: url("assets/icons/search.png");
}

.cicon--globe {
  -webkit-mask-image: url("assets/icons/globe.png");
  mask-image: url("assets/icons/globe.png");
}

.cicon--textbubble {
  -webkit-mask-image: url("assets/icons/textbubble.png");
  mask-image: url("assets/icons/textbubble.png");
}

.cicon--chevron-right {
  -webkit-mask-image: url("assets/icons/chevron-right.png");
  mask-image: url("assets/icons/chevron-right.png");
}

/* ===========================================================================
   The page's half: the column a mockup sits in, and the caption under the phone.
   =========================================================================== */
.mock{
  position:relative; width:100%;
  display:flex; flex-direction:column; align-items:center;
}
.split__mock{
  min-width:0; width:100%;
  display:flex; justify-content:center;
}

/* The Appearance card demonstrates accent colours, so it keeps one: white is
   the foreground on all nine swatches. Its accent now matches every other
   mock's (the app's blue); the four rules below just make certain the card
   falls back to that blue before a swatch sets an inline --acc — and they are
   stated last, after the dark token block, so they win at equal specificity. */
.theme-demo,
.theme-demo.is-dark,
html[data-theme="dark"] .theme-demo{ --acc:#4D7CFE; }

/* the page has one shadow; the cards borrow it instead of inventing a second */
.app-card,
.theme-demo{ box-shadow:var(--shadow); }
.app-card,
.theme-demo{ border-color:var(--line); }

/* the phone is centred in its column, so it scales from its own centre line */
.device-scale{ transform-origin:top center; }

@media (max-width: 900px){
  .mock{ margin-top:8px; }
}
