/* Rosfield root site. Light only: paper, ink, a little coral. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/spacegrotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Pixel";
  src: url("../fonts/geistpixel-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks, so nothing moves when the real fonts arrive */
@font-face {
  font-family: "Grotesk Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Roboto");
  size-adjust: 110%;
  ascent-override: 89.5%;
  descent-override: 26.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Pixel Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 100%;
  ascent-override: 93%;
  descent-override: 27%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --paper: #f8f3f7;
  --ink: #0b0b0c;
  --ink-2: #2a272b;
  --muted: #5f585e;
  --faint: #6f676e;
  --line: rgba(11, 11, 12, 0.1);
  --line-2: rgba(11, 11, 12, 0.16);
  --hair: rgba(11, 11, 12, 0.5);
  --tint: rgba(11, 11, 12, 0.055);
  --stage: #f0e8ee;
  --coral: #ff5a5f;
  --mark: #ffd3d5;
  --bezel: #141316;

  --sans: "Space Grotesk", "Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
  --pixel: "Geist Pixel", "Pixel Fallback", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --gx: max(20px, env(safe-area-inset-left));
  --gx-r: max(20px, env(safe-area-inset-right));
  --max: 1240px;
}
@media (min-width: 640px) {
  :root {
    --gx: max(32px, env(safe-area-inset-left));
    --gx-r: max(32px, env(safe-area-inset-right));
  }
}
@media (min-width: 1100px) {
  :root {
    --gx: max(48px, env(safe-area-inset-left));
    --gx-r: max(48px, env(safe-area-inset-right));
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection {
  background: var(--mark);
  color: var(--ink);
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: var(--gx);
  top: 8px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font: 500 14px/1 var(--sans);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
main:focus {
  outline: none;
}

/* One centred measure for every block */
.mast,
main,
.foot {
  width: 100%;
  max-width: calc(var(--max) + var(--gx) + var(--gx-r));
  margin-inline: auto;
  padding-inline: var(--gx) var(--gx-r);
}

/* Mono labels, as in the deck */
.label,
.mast nav,
.foot {
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Masthead: the lockup at the left, two quiet links at the right */
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: max(18px, env(safe-area-inset-top));
  padding-bottom: 18px;
}
.lockup {
  display: inline-flex;
  padding: 10px 0;
  margin: -10px 0;
  color: var(--ink);
}
.lockup svg {
  display: block;
  height: 22px;
  width: auto;
}
.mast ul {
  display: flex;
  gap: 4px;
  margin: 0 -10px 0 0;
  padding: 0;
  list-style: none;
}
.mast nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.mast nav a:hover,
.mast nav a[aria-current="page"] {
  color: var(--ink);
}
@media (min-width: 640px) {
  .mast {
    padding-top: 26px;
    padding-bottom: 26px;
  }
  .lockup svg {
    height: 24px;
  }
}

main {
  flex: 1 0 auto;
  display: block;
}

/* The statement */
.intro {
  padding-top: 28px;
}
@media (min-width: 640px) {
  .intro {
    padding-top: clamp(32px, 7vh, 96px);
  }
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink-2);
}
.intro h1 {
  margin: 20px 0 0;
  max-width: 13.5em;
  font-size: clamp(40px, 4.6vw + 16px, 96px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.lede {
  margin: 18px 0 0;
  max-width: 36em;
  font-size: clamp(18px, 0.55vw + 15px, 23px);
  line-height: 1.42;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (min-width: 640px) {
  .intro h1 {
    margin-top: 24px;
  }
  .lede {
    margin-top: 26px;
  }
}

/* The demo: one stage right under the statement. iMessage or Website, then three stories (or one) */
.demo {
  margin-top: 32px;
  scroll-margin-top: 12px;
}
@media (min-width: 640px) {
  .demo {
    margin-top: clamp(36px, 6vh, 72px);
  }
}
.stage {
  /* screen width: sized to the viewport so the whole phone fits, and the bubbles read at 15 to 17 px */
  --sw: min(calc(100vw - 44px), 372px);
  --bz: 6px;
  --ph: calc(var(--sw) * 844 / 390 + 2 * var(--bz));
  --pad: 16px;
  margin: 0 calc(var(--gx-r) * -1) 0 calc(var(--gx) * -1);
  padding: 22px var(--pad) 16px;
  background: var(--stage);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 18px;
}
.stage-head {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding-inline: 4px;
}
.stage-head .label {
  margin: 0;
  color: var(--muted);
}
.stage-head .cap {
  margin: 0;
  max-width: 16em;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

/* iMessage | Website */
.modes {
  display: none;
  padding: 3px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.js .modes {
  display: inline-flex;
}
.mode {
  appearance: none;
  margin: 0;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 15px/1 var(--sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}
.mode:hover {
  color: var(--ink);
}
.mode[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 2px rgba(40, 18, 30, 0.08);
}

/* The stories: a progress track, a number, a name, one line */
.stories {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 4px;
}
.js .stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.js [data-mode="web"] .stories {
  grid-template-columns: minmax(0, 1fr);
}
.stories li[hidden] {
  display: none;
}
.story {
  appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 8px;
  row-gap: 9px;
  width: 100%;
  margin: 0;
  padding: 0 0 6px;
  border: 0;
  background: none;
  color: var(--faint);
  font: 400 12px/1.3 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.story:hover,
.story[aria-pressed="true"] {
  color: var(--ink);
}
.story .bar {
  grid-column: 1 / -1;
  order: -1;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--line-2);
  overflow: hidden;
}
.story .bar i {
  display: block;
  height: 100%;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.story .d {
  display: none;
}
.story-d {
  display: none;
  margin: -6px 4px 0;
  min-height: 2.9em;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}
.js .story-d {
  display: block;
}

/* The device: a phone for iMessage, a browser for the website, one in place of the other */
.device {
  position: relative;
  justify-self: center;
  width: 100%;
  height: var(--ph);
}
.phone,
.browser {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.45s var(--ease),
    transform 0.55s var(--ease),
    visibility 0s;
}
[data-mode="ims"] .browser,
[data-mode="web"] .phone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -48.5%) scale(0.97);
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease),
    visibility 0s 0.4s;
}
.phone {
  width: calc(var(--sw) + 2 * var(--bz));
  padding: var(--bz);
  border-radius: calc(var(--sw) * 0.142 + var(--bz));
  background: var(--bezel);
  box-shadow:
    inset 0 0 0 1px #3a373b,
    inset 0 0 0 1.5px var(--bezel),
    inset 0 0 0 2.5px rgba(255, 255, 255, 0.07),
    0 1px 2px rgba(40, 18, 30, 0.1),
    0 34px 64px -34px rgba(40, 18, 30, 0.5);
}
.screen {
  position: relative;
  width: var(--sw);
  aspect-ratio: 390 / 844;
  border-radius: calc(var(--sw) * 0.142);
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}
.still {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.js .still {
  display: none;
}
.island {
  position: absolute;
  z-index: 30;
  top: calc(var(--sw) * 0.028);
  left: 50%;
  width: calc(var(--sw) * 0.322);
  height: calc(var(--sw) * 0.094);
  margin-left: calc(var(--sw) * -0.161);
  border-radius: 999px;
  background: #000;
}
.browser {
  width: 100%;
  height: calc(var(--ph) * 0.88);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(40, 18, 30, 0.1),
    0 1px 2px rgba(40, 18, 30, 0.06),
    0 34px 64px -34px rgba(40, 18, 30, 0.45);
}
.chrome {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  background: #efe7ed;
  border-bottom: 1px solid var(--line);
}
.chrome i {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.chrome i:nth-child(2) {
  background: #febc2e;
}
.chrome i:nth-child(3) {
  background: #28c840;
}
.url {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 26px;
  margin: 0 auto;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font: 500 12.5px/1 var(--sans);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
}
.url svg {
  flex: none;
  width: 9px;
  height: 12px;
  color: var(--muted);
}
.page {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
}

.stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--muted);
}
.stage-foot .label {
  margin: 0;
}
.toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 -2px 0 0;
  padding: 0 16px;
  appearance: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  font: 400 12px/1 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.js .toggle {
  display: inline-flex;
}
.js .toggle[hidden] {
  display: none;
}
.toggle:hover {
  border-color: var(--hair);
  background: rgba(255, 255, 255, 0.5);
}
.toggle svg {
  width: 9px;
  height: 9px;
}
.toggle .i-play,
[data-state="off"] .toggle .i-pause {
  display: none;
}
[data-state="off"] .toggle .i-play {
  display: block;
}

@media (min-width: 640px) {
  .stage {
    --sw: clamp(300px, calc((100vh - 128px) / 2.164), 392px);
    --sw: clamp(300px, calc((100svh - 128px) / 2.164), 392px);
    --bz: calc(var(--sw) * 0.024);
    --pad: clamp(24px, 2.8vw, 40px);
    margin: 0;
    padding: var(--pad);
    border-radius: 28px;
  }
  .device {
    width: min(100%, calc(var(--sw) * 1.62));
  }
}
@media (min-width: 960px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    align-items: start;
    column-gap: clamp(24px, 3vw, 48px);
    row-gap: 0;
  }
  .stage-head {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    gap: 18px;
  }
  .stage-head .cap {
    max-width: 10em;
    font-size: clamp(24px, 1.2vw + 10px, 30px);
    line-height: 1.12;
    letter-spacing: -0.022em;
  }
  .device {
    grid-column: 2;
    grid-row: 1 / 4;
    width: calc(var(--sw) * 1.62);
  }
  .js .stories {
    grid-column: 3;
    grid-row: 1 / 3;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 21em;
    padding: 0;
  }
  .story {
    padding: 0 0 22px;
    row-gap: 12px;
  }
  .story .d {
    grid-column: 1 / -1;
    display: block;
    font: 400 15.5px/1.45 var(--sans);
    letter-spacing: -0.006em;
    text-transform: none;
    color: var(--faint);
    transition: color 0.3s;
    text-wrap: pretty;
  }
  .story:hover .d {
    color: var(--muted);
  }
  .story[aria-pressed="true"] .d {
    color: var(--ink-2);
  }
  .js .story-d {
    display: none;
  }
  .stage-foot {
    grid-column: 1 / 4;
    grid-row: 3;
    display: contents;
  }
  .stage-foot .label {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    justify-self: start;
    padding-bottom: 14px;
  }
  .stage-foot .toggle {
    grid-column: 3;
    grid-row: 3;
    align-self: end;
    justify-self: end;
  }
}

/* ---------- iMessage, drawn live at 390 × 844 and scaled to the screen ---------- */
.ims {
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: 844px;
  transform: scale(var(--k, 1));
  transform-origin: 0 0;
  overflow: hidden;
  background: #fff;
  color: #000;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.012em;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.ims *,
.web * {
  box-sizing: border-box;
}
.ims p {
  margin: 0;
}
.x-chat,
.x-lock,
.x-sheet {
  position: absolute;
  inset: 0;
}
.x-chat {
  transition:
    opacity 0.55s,
    transform 0.6s cubic-bezier(0.32, 0.72, 0, 1),
    filter 0.55s;
}
.x-dark .x-chat {
  opacity: 0;
  transform: scale(0.95);
  filter: blur(4px);
}
.x-thread {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.x-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 166px 0 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.x-content.x-now {
  transition: none;
}
.ims {
  --rich: 280px; /* every card, poll, link, calendar and photo set shares one width */
}
.x-row {
  display: flex;
  padding: 0 16px;
  margin-top: 2px;
  animation: x-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.x-row.x-me {
  justify-content: flex-end;
}
.x-row.x-gap {
  margin-top: 12px;
}
/* A card, poll or photo set sits a little apart from the bubble it follows, and so does the bubble after it */
.x-row.x-rich:not(.x-gap):not(.x-tbrow),
.x-row.x-rich + .x-row:not(.x-gap):not(.x-tbrow) {
  margin-top: 6px;
}
/* A tapback needs its own room above the bubble: 8px clear of whatever sits above it */
.x-row.x-tbrow {
  margin-top: 24px;
  transition: margin-top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.x-row.x-stamp {
  display: block;
  margin-top: 0;
  animation-name: x-fade;
}
@keyframes x-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.965);
  }
}
@keyframes x-fade {
  from {
    opacity: 0;
  }
}
.x-stamp {
  margin: 18px 0 8px;
  text-align: center;
  font-size: 11.5px;
  line-height: 15px;
  letter-spacing: 0;
  color: #8e8e93;
}
.x-b {
  position: relative;
  max-width: var(--rich);
  padding: 7px 13px 8px;
  border-radius: 19px;
}
.x-b.x-wide {
  width: var(--rich);
}
.x-me .x-b {
  background: #0a7cff;
  color: #fff;
}
.x-r .x-b {
  background: #e9e9eb;
  color: #000;
}
.x-b strong {
  font-weight: 600;
}
.x-tail.x-r .x-b::before,
.x-tail.x-r .x-b::after,
.x-tail.x-me .x-b::before,
.x-tail.x-me .x-b::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 20px;
}
.x-tail.x-r .x-b::before {
  left: -7px;
  width: 20px;
  background: #e9e9eb;
  border-bottom-right-radius: 16px 14px;
}
.x-tail.x-r .x-b::after {
  left: -26px;
  width: 26px;
  background: #fff;
  border-bottom-right-radius: 10px;
}
.x-tail.x-me .x-b::before {
  right: -7px;
  width: 20px;
  background: #0a7cff;
  border-bottom-left-radius: 16px 14px;
}
.x-tail.x-me .x-b::after {
  right: -26px;
  width: 26px;
  background: #fff;
  border-bottom-left-radius: 10px;
}
/* The mask stands 1px taller than the tail, so no tinted hairline shows at their shared top edge */
.x-tail.x-r .x-b::after,
.x-tail.x-me .x-b::after {
  height: 21px;
}
/* A rich card inside Rosie's bubble: the master's lines, one per row */
.x-cd {
  margin: 9px -7px 2px; /* 6px inside the bubble on every side, its corners following the bubble's */
  padding: 9px 12px 2px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.8);
}
.x-cd:last-child {
  margin-bottom: -2px; /* the same 6px inset at the bottom as at the sides */
}
.x-cd b {
  display: block;
  padding-bottom: 5px;
  font-size: 15px;
  line-height: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.x-cd ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.x-cd li {
  padding: 7px 0;
  border-top: 0.5px solid rgba(60, 60, 67, 0.18);
  font-size: 15px;
  line-height: 20px; /* whole-pixel rows, so every divider and bubble edge lands on a pixel */
  letter-spacing: -0.01em;
  color: #1c1c1e;
}
.x-cd > ul:first-child li:first-child {
  border-top: 0;
}
.ims .x-foot {
  margin-top: 7px;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: #5e5e63; /* 5.3:1 on the bubble */
}
/* Tapback */
.x-tb {
  position: absolute;
  z-index: 2;
  top: -16px;
  left: -16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 28px;
  border-radius: 14px;
  background: #e9e9eb;
  box-shadow: 0 0 0 2px #fff;
  animation: x-pop 0.42s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.x-tb svg {
  width: 16px;
  height: 16px;
}
@keyframes x-pop {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
}
/* Typing */
.x-dots {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 37px; /* a one-line bubble's height, so nothing shifts when the reply lands */
  padding: 0 13px;
  border-radius: 19px;
  background: #e9e9eb;
}
.x-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8e8e93;
  animation: x-dot 1.1s ease-in-out infinite;
}
.x-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.x-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
.x-dots::before,
.x-dots::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #e9e9eb;
}
.x-dots::before {
  left: -2px;
  bottom: -2px;
  width: 13px;
  height: 13px;
}
.x-dots::after {
  left: -7px;
  bottom: -8px;
  width: 6px;
  height: 6px;
}
@keyframes x-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: none;
  }
  30% {
    opacity: 0.9;
    transform: translateY(-1.5px);
  }
}
/* Poll */
.x-poll {
  width: var(--rich);
  padding: 12px 12px 10px;
  border-radius: 19px;
  background: #fff;
  box-shadow:
    0 0 0 0.5px rgba(60, 60, 67, 0.24),
    0 1px 3px rgba(0, 0, 0, 0.05);
}
.x-pq {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 1px 1px 0;
  font-size: 11.5px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #8e8e93;
}
.x-poll > b {
  display: block;
  margin: 6px 1px 10px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.x-poll ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.x-poll li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f2f2f7;
  overflow: hidden;
  font-size: 15px;
  line-height: 19px;
  letter-spacing: -0.01em;
}
.x-poll li em {
  position: absolute;
  inset: 0;
  background: rgba(10, 124, 255, 0.15);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.x-poll li i {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #c7c7cc;
  transition:
    background-color 0.25s,
    box-shadow 0.25s;
}
.x-poll li span {
  position: relative;
}
.x-poll li.x-on em {
  transform: scaleX(1);
}
.x-poll li.x-on i {
  background: #0a7cff;
  box-shadow: none;
}
.x-poll li.x-on i::after {
  content: "";
  width: 9px;
  height: 5px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}
.x-poll li.x-on span {
  font-weight: 600;
}
.x-vc {
  margin: 8px 1px 0;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0;
  color: #8e8e93;
}
.x-voted .x-vc {
  color: #0a7cff;
}
/* Photos */
.x-pics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: var(--rich);
  border-radius: 18px;
  overflow: hidden;
}
.x-pics i {
  display: block;
  height: 124px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(90deg, #c8925a 0 21px, #a97640 21px 22px, #d6a36b 22px 44px, #a97640 44px 45px);
}
.x-pics i:nth-child(2) {
  background:
    linear-gradient(200deg, rgba(255, 244, 228, 0.5), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.22)),
    repeating-linear-gradient(90deg, #8a5a36 0 18px, #6b4427 18px 19px, #9a6842 19px 38px, #6b4427 38px 39px);
}
.x-pics i:nth-child(3) {
  background:
    radial-gradient(90% 60% at 30% 20%, rgba(255, 248, 236, 0.9), rgba(255, 248, 236, 0) 70%),
    linear-gradient(180deg, #e9e2d8 0 46%, #b98a58 46% 100%);
}
.x-pics2 {
  grid-template-columns: repeat(2, 1fr);
}
.x-pics2 i:nth-child(2) {
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.25)),
    repeating-linear-gradient(0deg, #7d7a76 0 3px, #6f6c68 3px 6px);
}
/* Link card */
.x-link {
  width: var(--rich);
  border-radius: 18px;
  overflow: hidden;
  background: #e9e9eb;
}
.x-li {
  display: grid;
  place-items: center;
  height: 124px;
  background:
    radial-gradient(70% 90% at 50% 100%, rgba(255, 90, 95, 0.16), rgba(255, 90, 95, 0) 70%),
    #f8f3f7;
}
.x-li .mk {
  width: 28px;
  height: 46px;
  color: #0b0b0c;
}
.x-lt {
  padding: 9px 13px 10px;
}
.x-lt b {
  display: block;
  font-size: 15px;
  line-height: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.x-lt span {
  font-size: 13px;
  line-height: 17px;
  letter-spacing: 0;
  color: #636366; /* 4.9:1 on the card */
}
/* Calendar card */
.x-cal {
  width: var(--rich);
  border-radius: 18px;
  overflow: hidden;
  background: #e9e9eb;
}
.x-ct {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 13px; /* the icon's edge lines up with the text above it */
}
.x-ci {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 48px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}
.x-ci i {
  font: normal 700 9.5px/1 -apple-system, system-ui, sans-serif;
  letter-spacing: 0.04em;
  color: #ff3b30;
}
.x-ci em {
  margin-top: 2px;
  font: normal 300 26px/1 -apple-system, "SF Pro Display", system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.x-ce {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.x-ce b {
  font-size: 15px;
  line-height: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.x-ce span {
  font-size: 13px;
  line-height: 17px;
  letter-spacing: -0.005em;
  color: rgba(60, 60, 67, 0.8);
}
.x-cb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px 11px;
  border-top: 0.5px solid rgba(60, 60, 67, 0.2);
  background: rgba(255, 255, 255, 0.35);
  font-size: 15px;
  line-height: 19px;
  color: #0a7cff;
  transition: color 0.3s;
}
.x-added .x-cb {
  color: #34a853;
}
/* The finger */
.tapx {
  position: absolute;
  z-index: 40;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(60, 60, 67, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
  pointer-events: none;
  animation: x-tap 0.6s ease-out both;
}
@keyframes x-tap {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  25% {
    opacity: 1;
    transform: scale(0.78);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}
/* Header, composer, status bar */
.x-nav {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  height: 152px;
  background: rgba(246, 246, 248, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
  color: #0a7cff;
}
.x-back {
  position: absolute;
  left: 10px;
  top: 76px;
}
.x-video {
  position: absolute;
  right: 18px;
  top: 79px;
}
.x-who {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #000;
}
.x-av {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #0b0b0c;
  color: #fff;
}
.x-av .mk {
  width: 19px;
  height: 31px;
}
.x-name {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.01em;
}
.x-name svg {
  opacity: 0.45;
}
.x-compose {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.x-plus {
  position: absolute;
  left: 12px;
  top: 9px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eeeef0;
  color: #7c7c80;
}
.x-field {
  position: absolute;
  left: 54px;
  right: 12px;
  top: 8px;
  height: 36px;
  padding: 7px 40px 7px 14px;
  border-radius: 18px;
  border: 1px solid #d1d1d6;
  font-size: 17px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
}
.x-ph {
  color: #b9b9be;
}
.x-typing-on .x-ph {
  display: none;
}
.x-typing-on .x-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 20px;
  margin-left: 1px;
  border-radius: 1px;
  vertical-align: -4px;
  background: #0a7cff;
  animation: x-blink 1s steps(1) infinite;
}
@keyframes x-blink {
  50% {
    opacity: 0;
  }
}
.x-mic {
  position: absolute;
  right: 25px;
  top: 16px;
  color: #a1a1a6;
}
.x-send {
  position: absolute;
  right: 16px;
  top: 12px;
  display: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0a7cff;
  color: #fff;
}
.x-send svg {
  width: 16px;
  height: 16px;
}
.x-has .x-send {
  display: grid;
}
.x-has .x-mic {
  display: none;
}
.x-status {
  position: absolute;
  z-index: 25;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 30px 0 46px;
  color: #000;
  transition: color 0.4s;
}
.x-time {
  width: 54px;
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}
.x-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.x-icons svg {
  display: block;
}
.x-homebar {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: 8px;
  width: 136px;
  height: 5px;
  margin-left: -68px;
  border-radius: 3px;
  background: #000;
  transition: background-color 0.4s;
}
.x-dark .x-status {
  color: #fff;
}
.x-dark .x-homebar {
  background: rgba(255, 255, 255, 0.9);
}
/* The lock screen: the other person's phone */
.x-lock {
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  background:
    radial-gradient(120% 70% at 85% 100%, rgba(255, 106, 96, 0.85) 0%, rgba(255, 106, 96, 0) 60%),
    radial-gradient(90% 60% at 0% 75%, rgba(140, 70, 120, 0.7) 0%, rgba(140, 70, 120, 0) 65%),
    linear-gradient(180deg, #17131b 0%, #241a26 45%, #3a2230 100%);
  color: #fff;
  transition:
    opacity 0.6s,
    transform 0.65s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s 0.65s;
}
.x-lock.x-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.6s,
    transform 0.65s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s;
}
.x-lock.x-now,
.x-lock.x-now .x-note {
  transition: none;
}
.x-pill {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 12.5px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.x-pill i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6a60;
}
.x-date {
  position: absolute;
  top: 112px;
  left: 0;
  right: 0;
  text-align: center;
  font: 600 21px/1 -apple-system, "SF Pro Display", system-ui, sans-serif;
  letter-spacing: -0.01em;
  opacity: 0.92;
}
.x-clock {
  position: absolute;
  top: 138px;
  left: 0;
  right: 0;
  text-align: center;
  font: 700 96px/1 -apple-system, "SF Pro Display", system-ui, sans-serif;
  letter-spacing: -0.03em;
  opacity: 0.95;
}
.x-note {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 440px;
  display: flex;
  gap: 11px;
  padding: 13px 14px 14px;
  border-radius: 22px;
  background: rgba(250, 245, 248, 0.74);
  -webkit-backdrop-filter: saturate(160%) blur(30px);
  backdrop-filter: saturate(160%) blur(30px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  color: #000;
  opacity: 0;
  transform: translateY(46px) scale(0.96);
  transition:
    opacity 0.35s,
    transform 0.55s cubic-bezier(0.3, 1.35, 0.5, 1);
}
.x-note.x-in {
  opacity: 1;
  transform: none;
}
.x-nav-av {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: 1px;
  border-radius: 50%;
  background: #0b0b0c;
  color: #fff;
}
.x-nav-av .mk {
  width: 13px;
  height: 22px;
}
.x-badge {
  position: absolute;
  right: -4px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(#5ff777, #10c93a);
  box-shadow: 0 0 0 1.5px rgba(250, 245, 248, 0.9);
}
.x-nt {
  flex: 1;
  min-width: 0;
}
.x-nh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.x-nh b {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.x-nh span {
  font-size: 13px;
  line-height: 1;
  color: rgba(60, 60, 67, 0.6);
}
.x-nt p {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
/* The secure page: Rosfield's own, over the chat */
.x-sheet {
  z-index: 8;
  pointer-events: none;
}
.x-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s;
}
.x-sheet.x-open::before {
  opacity: 1;
}
.x-sc {
  position: absolute;
  left: 0;
  right: 0;
  top: 58px;
  bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #f8f3f7;
  overflow: hidden;
  transform: translateY(102%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.x-sheet.x-open .x-sc {
  transform: none;
}
.x-st {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.2);
  font-size: 16px;
  line-height: 1;
}
.x-cancel {
  color: #0a7cff;
}
.x-st > span:last-child {
  width: 48px;
}
.x-u {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #3c3c43;
}
.x-sb {
  padding: 22px 22px 0;
  font-family: "Space Grotesk", "Grotesk Fallback", system-ui, sans-serif;
  color: #0b0b0c;
  letter-spacing: -0.005em;
}
.x-sb .mk {
  width: 15px;
  height: 24px;
}
.x-sb h3 {
  margin: 14px 0 6px;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.ims .x-sub {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #5f585e;
}
.x-f {
  padding: 10px 0 11px;
  border-top: 1px solid rgba(11, 11, 12, 0.1);
}
.x-f label {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  line-height: 1.2;
  color: #7a7279;
}
.x-f div {
  min-height: 21px;
  font-size: 16px;
  line-height: 21px;
}
.x-f.x-cur div::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 18px;
  margin-left: 1px;
  vertical-align: -3px;
  background: #ff5a5f;
}
.x-btn {
  display: grid;
  place-items: center;
  height: 50px;
  margin-top: 18px;
  border-radius: 999px;
  background: #c8333a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition:
    transform 0.15s,
    background-color 0.2s;
}
.x-btn.x-press {
  transform: scale(0.97);
  background: #b02c33;
}

/* ---------- The website, drawn live: /test, transparent, as an AI agent uses it ---------- */
.web {
  position: absolute;
  left: 0;
  top: 0;
  width: 600px;
  height: 700px;
  display: flex;
  flex-direction: column;
  transform: scale(var(--k, 1));
  transform-origin: 0 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  text-align: left;
}
.web p {
  margin: 0;
}
.w-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 22px 0 26px;
}
.w-head .mk {
  width: 13px;
  height: 21px;
  color: var(--ink);
}
.w-x {
  width: 20px;
  height: 20px;
  color: var(--ink-2);
}
.w-thread {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18px);
}
.w-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 26px 16px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.w-content.w-now {
  transition: none;
}
.w-msg {
  max-width: 80%;
  padding: 9px 14px 10px;
  border-radius: 20px;
  font-size: 15.5px;
  line-height: 1.45;
  letter-spacing: -0.004em;
  animation: w-in 0.42s var(--ease) both;
}
.w-r {
  border-bottom-left-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.64));
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(11, 11, 12, 0.05),
    0 8px 22px -14px rgba(70, 30, 55, 0.3);
}
.w-me {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: linear-gradient(180deg, rgba(206, 52, 60, 0.95), rgba(188, 40, 48, 0.97));
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 22px -12px rgba(200, 51, 58, 0.55);
}
.w-r + .w-me,
.w-me + .w-r,
.w-me + .w-dots,
.w-times + .w-who,
.w-r + .w-who,
.w-times + .w-me,
.w-card,
.w-times {
  margin-top: 6px;
}
.w-who {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: -6px;
  font: 400 10.5px/1.2 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  animation: w-in 0.42s var(--ease) both;
}
.w-who::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.w-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: w-in 0.42s var(--ease) both;
}
.w-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(11, 11, 12, 0.1),
    0 1px 2px rgba(11, 11, 12, 0.05);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition:
    box-shadow 0.25s,
    color 0.25s,
    opacity 0.25s;
}
.w-chip.w-on {
  background: #d63a41;
  color: #fff;
  box-shadow: 0 1px 2px rgba(150, 30, 40, 0.2);
}
.w-done .w-chip:not(.w-on) {
  opacity: 0.38;
}
.w-note {
  align-self: center;
  margin: 4px 0;
  font: 400 10.5px/1.2 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  animation: w-in 0.42s var(--ease) both;
}
.w-card {
  width: min(100%, 400px);
  padding: 16px 18px 15px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(11, 11, 12, 0.06),
    0 1px 2px rgba(11, 11, 12, 0.04),
    0 16px 36px -18px rgba(70, 30, 55, 0.28);
  animation: w-in 0.42s var(--ease) both;
}
.w-k {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 400 10.5px/1 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.w-k::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.w-card h4 {
  margin: 9px 0 10px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.w-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.w-card dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
}
.w-card dt {
  color: var(--muted);
}
.w-card dd {
  margin: 0;
}
.w-dots {
  display: flex;
  gap: 5px;
  padding: 13px 15px;
  border-radius: 20px 20px 20px 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(11, 11, 12, 0.05),
    0 8px 22px -14px rgba(70, 30, 55, 0.3);
}
.w-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.2;
  animation: w-dot 1.2s ease-in-out infinite;
}
.w-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.w-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes w-dot {
  0%,
  60%,
  100% {
    opacity: 0.2;
    transform: none;
  }
  30% {
    opacity: 0.75;
    transform: translateY(-2px);
  }
}
@keyframes w-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.w-compose {
  flex: none;
  display: flex;
  align-items: center;
  height: 54px;
  margin: 8px 26px 0;
  padding: 0 7px 0 22px;
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 0 0 1px rgba(11, 11, 12, 0.08),
    0 1px 2px rgba(11, 11, 12, 0.04),
    0 10px 28px -12px rgba(70, 30, 55, 0.22);
  transition: box-shadow 0.3s;
}
.w-compose.w-focus {
  box-shadow:
    0 0 0 1px rgba(255, 90, 95, 0.6),
    0 1px 2px rgba(11, 11, 12, 0.04),
    0 10px 28px -12px rgba(70, 30, 55, 0.22);
}
.w-field {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  white-space: nowrap;
  overflow: hidden;
}
.w-ph {
  color: var(--faint);
}
.w-focus .w-ph {
  display: none;
}
.w-focus .w-text::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 18px;
  margin-left: 1px;
  vertical-align: -3px;
  background: var(--coral);
  animation: x-blink 1s steps(1) infinite;
}
.w-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #c8333a;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.w-send svg {
  width: 18px;
  height: 18px;
}
.w-has .w-send {
  background: #d63a41;
  color: #fff;
}
.w-foot {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 9px 0 11px;
  font-size: 11px;
  color: var(--faint);
}

.w-results {
  display: flex;
  gap: 10px;
  width: calc(100% + 52px);
  margin: -2px -26px -18px;
  padding: 6px 26px 30px;
  overflow: hidden;
  animation: w-in 0.42s var(--ease) both;
}
.w-res {
  flex: 0 0 var(--rw, 164px);
  transition: opacity 0.3s;
}
.w-pic {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #ede6eb;
  box-shadow:
    0 1px 2px rgba(40, 18, 30, 0.08),
    0 12px 26px -14px rgba(40, 18, 30, 0.42);
  transition: box-shadow 0.3s;
}
.w-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.w-pic b {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 9px 6px;
  border-radius: 10px;
  background: rgba(24, 14, 20, 0.5);
  -webkit-backdrop-filter: saturate(150%) brightness(0.8) blur(12px);
  backdrop-filter: saturate(150%) brightness(0.8) blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-res.w-on .w-pic {
  box-shadow:
    0 0 0 2px #d63a41,
    0 12px 26px -14px rgba(40, 18, 30, 0.42);
}
.w-results.w-done .w-res:not(.w-on) {
  opacity: 0.42;
}

/* Reduced motion: every story shows finished, nothing moves */
.calm .ims *,
.calm .ims,
.calm .web *,
.calm .phone,
.calm .browser {
  animation: none !important;
  transition: none !important;
}

/* Footer: the brand mono line */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  margin-top: clamp(56px, 10vh, 112px);
  padding-top: 10px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  color: var(--muted);
}
.foot p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0 -10px;
  padding: 0;
  list-style: none;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  text-decoration: none;
  transition: color 0.2s;
}
.foot a:hover,
.foot a[aria-current="page"] {
  color: var(--ink);
}
@media (max-width: 479px) {
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .foot p {
    min-height: 36px;
  }
}
@media (min-width: 640px) {
  .foot {
    padding-bottom: 18px;
  }
}
.demo + .foot,
main:has(.demo) + .foot {
  margin-top: clamp(40px, 8vh, 88px);
}

/* Not found */
.lost {
  padding-top: clamp(48px, 12vh, 140px);
}
.lost h1 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(38px, 3.6vw + 16px, 72px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.lost p {
  margin: 20px 0 0;
  max-width: 28em;
  font-size: clamp(17px, 0.5vw + 14px, 20px);
  line-height: 1.45;
  color: var(--ink-2);
}
.lost .back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 32px;
  padding: 0 22px 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}
.lost .back:hover {
  background: #2a272b;
}
.lost .back svg {
  width: 12px;
  height: 12px;
}
.lost .back:focus-visible {
  outline-offset: 3px;
}

/* Legal pages: the same grotesque, set for reading */
.legal {
  padding-top: clamp(32px, 7vh, 88px);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-2);
  overflow-wrap: break-word;
}
.legal > * {
  max-width: 42rem;
}
@media (min-width: 640px) {
  .legal {
    font-size: 17px;
  }
}
.legal h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 2.6vw + 20px, 60px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.legal h2 {
  margin: 2.3em 0 0.55em;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  scroll-margin-top: 20px;
}
.legal h3 {
  margin: 1.8em 0 0.35em;
  font-size: 1em;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
  scroll-margin-top: 20px;
}
.legal p,
.legal ul,
.legal ol {
  margin: 0 0 0.9em;
}
.legal ul,
.legal ol {
  padding-left: 1.25em;
}
.legal li {
  margin: 0.3em 0;
}
.legal li::marker {
  color: var(--faint);
}
.legal strong {
  font-weight: 600;
  color: var(--ink);
}
.legal a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--hair);
  transition: text-decoration-color 0.2s;
}
.legal a:hover {
  text-decoration-color: var(--ink);
}
.legal code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.legal .meta {
  color: var(--muted);
  margin-bottom: 1.6em;
}
.legal .placeholder,
.legal-foot .placeholder {
  background: var(--tint);
  border-radius: 4px;
  padding: 0.04em 0.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.legal .note {
  margin: 1.6em 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--stage);
}
.legal .card {
  margin: 1.6em 0;
  padding: 0.1em 0 0.1em 1em;
  border-left: 2px solid var(--line-2);
}
.legal .note p,
.legal .card p {
  margin: 0;
}
.legal .toc {
  margin: 1.8em 0 0.6em;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  font-size: 15.5px;
}
.legal .toc ol {
  margin: 0;
  padding-left: 1.7em;
}
.legal .toc li {
  margin: 0;
  padding: 0.15em 0;
}
.legal .toc + h2 {
  margin-top: 1.6em;
  padding-top: 0;
  border-top: 0;
}
.legal .toc li::marker {
  font-family: var(--pixel);
  font-size: 12px;
}
@media (min-width: 760px) {
  .legal .toc ol {
    columns: 2;
    column-gap: 40px;
  }
  .legal .toc li {
    break-inside: avoid;
  }
}
.legal blockquote {
  margin: 1em 0 1.2em;
  padding: 0.1em 0 0.1em 1em;
  border-left: 2px solid var(--line-2);
  color: var(--muted);
}
.legal blockquote p {
  margin: 0;
}
.legal-foot {
  margin-top: 3.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.legal-foot p {
  margin: 0 0 0.5em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
