/* Fonting homepage. One system: tokens, five type sizes, one plate, one section header. */

/* Bundled faces are specimen content only (tiles, demos). Site text is set in the system face. */
@font-face {
  font-family: Instrument Serif;
  src: url('/assets/fonts/instrument-serif.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Space Grotesk;
  src: url('/assets/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Syne;
  src: url('/assets/fonts/syne.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: IBM Plex Mono;
  src: url('/assets/fonts/ibm-plex-mono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Bricolage Grotesque;
  src: url('/assets/fonts/bricolage-grotesque-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b; /* 3.6:1 on white: graphics and the demo's 'missing' state only, never small text */
  --rule: rgba(0, 0, 0, 0.1);
  --paper: #fff;
  --plate: #f5f5f7;

  /* Specimen colours (Josh's swatches). Used only where type is shown as a sample. */
  --serif-bg: #69bae4;
  --serif-ink: #ffffff;
  --grotesk-bg: #fedd03;
  --grotesk-ink: #1d1d1f;
  --italic-bg: #f33321;
  --italic-ink: #e8e8e8;
  --display-bg: #fa8124;
  --display-ink: #1d1d1f;
  --mono-bg: #138c70;
  --mono-ink: #eafdfa;
  --variable-bg: #77b4cb;
  --variable-ink: #1d1d1f;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial,
    sans-serif;

  /* Five sizes. Display is the hero headline only: 112px from 1200px wide, easing down
     with the viewport to 48px on the narrowest phones (51px at 390). */
  --display: clamp(48px, 7.5vw + 22px, 112px);
  --title: 44px;
  --heading: 21px;
  --body: 17px;
  --small: 13px;

  --r: 12px;
  --r-pill: 999px;
  --r-tag: 6px;

  --gutter: 24px;
  --content: 1120px;
  --side: 24px;
  --section: 128px;
  --head-gap: 64px;

  font-family: var(--font);
  color: var(--ink);
  font-synthesis: none;
}
@media (max-width: 734px) {
  :root {
    --title: 32px;
    --heading: 19px;
    --side: 20px;
    --section: 80px;
    --head-gap: 48px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  hanging-punctuation: first allow-end;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}
p,
li,
figcaption {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Type ---------- */
h1 {
  font-size: var(--display);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 600;
}
h2 {
  font-size: var(--title);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
}
h3 {
  font-size: var(--heading);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}
h4 {
  font-size: var(--body);
  line-height: 1.5;
  font-weight: 600;
}
.lead {
  color: var(--ink-2);
}
.label {
  font-size: var(--small);
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
}
.note,
.footnote,
.hero-note,
.download-meta,
.plan-note {
  font-size: var(--small);
  line-height: 1.45;
  color: var(--ink-2);
}

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--content), calc(100% - 2 * var(--side)));
  margin-inline: auto;
}
.section-inner {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: last baseline;
}
.split-main {
  grid-column: 1 / 7;
}
.split-side {
  grid-column: 8 / 13;
}
.split-main .label + h1,
.split-main .label + h2 {
  margin-top: 16px;
}
.split-side > .text-link {
  margin-top: 16px;
}
/* Section headers (and the closing download) are one centred stack: title, then the lead
   directly below on a ~40em measure, then any link or button. */
.section-head,
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head {
  margin-bottom: var(--head-gap);
}
.section-head > .split-side,
.closing > .split-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
}
.section-head > h2 + .lead {
  margin-top: 24px;
}
.section-head .lead,
.closing .lead {
  max-width: 40em;
  text-wrap: balance;
}
.section-head .actions,
.closing .actions {
  justify-content: center;
}
.plate {
  background: var(--plate);
  border-radius: var(--r);
}
.columns {
  display: grid;
  gap: 32px var(--gutter);
  margin-top: var(--head-gap);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.columns p {
  margin-top: 8px;
  color: var(--ink-2);
}
.columns h4 + p {
  margin-top: 4px;
}
@media (max-width: 900px) {
  .split-main,
  .split-side {
    grid-column: 1 / -1;
  }
  .split-side {
    margin-top: 24px;
  }
  /* One column: keep reading lines near 75 characters. */
  .split .split-side .lead {
    max-width: 30em;
  }
}
@media (max-width: 1068px) {
  .columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 734px) {
  .columns-2,
  .columns-3,
  .columns-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--body);
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.button:hover {
  background: #000;
}
.button svg {
  width: 18px;
  height: 18px;
}
.button-small {
  min-height: 30px;
  padding: 6px 14px;
  font-size: var(--small);
}
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: var(--body);
  line-height: 1.5;
  cursor: pointer;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.text-link:hover {
  text-decoration-line: underline;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 32px;
}
.actions + .note,
.actions + .hero-note,
.actions + .download-meta {
  margin-top: 12px;
}

/* ---------- Header ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 20;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--small);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.wordmark {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  font-size: var(--body);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wordmark img {
  border-radius: var(--r-tag);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: var(--small);
}
.nav-links > a:not(.button):hover {
  color: var(--ink-2);
}
@media (max-width: 734px) {
  .nav {
    height: 52px;
  }
  .nav-links {
    gap: 20px;
  }
}
/* On the narrowest phones the icon alone carries the wordmark; its link keeps the name. */
@media (max-width: 419px) {
  .nav .wordmark-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .nav-links {
    gap: 18px;
  }
}
/* Below 360px the four nav items and the icon don't fit; the hero links to iPhone just below. */
@media (max-width: 359px) {
  .nav-links a[href='#iphone'] {
    display: none;
  }
}
/* Phones: every link and control gets a 44px hit area without changing the layout. */
@media (max-width: 734px) {
  .wordmark,
  .nav-links > a,
  .text-link,
  .footer-links a,
  .scan-replay,
  .cleanup-switch button {
    position: relative;
  }
  .wordmark::after,
  .nav-links > a::after,
  .text-link::after,
  .footer-links a::after,
  .scan-replay::after,
  .cleanup-switch button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 44px);
    height: max(100%, 44px);
    transform: translate(-50%, -50%);
  }
}

/* ---------- Hero ---------- */
/* One centred stack: positioning line 32 headline 48 button 16 note 16 iPhone link
   (24 and 32 on phones). The headline sits on one line from about 740px wide and
   balances onto two below that. */
.hero {
  padding-top: 96px;
  padding-bottom: var(--section);
}
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-for {
  color: var(--ink-2);
  text-wrap: balance;
}
.hero h1 {
  margin-top: 32px;
}
.hero-cta {
  margin-top: 48px;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-cta .actions {
  justify-content: center;
  margin-top: 0;
}
.hero-cta .actions + .hero-note {
  margin-top: 16px;
}
.hero-iphone-link {
  margin-top: 16px;
  align-items: baseline;
}
.hero-iphone-new {
  margin-right: 4px;
  color: var(--ink-2);
  font-size: var(--small);
  font-weight: 600;
}
.specimen-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: 96px;
}
.strip-tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--r);
  background: var(--plate);
  color: var(--ink);
  user-select: none;
}
.strip-tile > span {
  font-size: 92px;
  line-height: 1;
  transform: translateY(-6%);
}
.strip-tile small {
  position: absolute;
  left: 16px;
  bottom: 12px;
  font-size: var(--small);
  line-height: 1.45;
  color: currentColor;
}
.strip-serif > span {
  font-family: 'Instrument Serif', serif;
  font-size: 104px;
}
.strip-grotesk > span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}
.strip-italic > span {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 116px;
}
.strip-display > span {
  font-family: Syne, sans-serif;
  font-weight: 700;
  transform: translateY(-16%);
}
.strip-mono > span {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 66px;
  letter-spacing: -0.06em;
  /* Safari hangs the opening brace outside the line (hanging-punctuation on html). */
  hanging-punctuation: none;
}
.strip-variable > span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 84px;
  letter-spacing: -0.03em;
}
@media (max-width: 1068px) {
  .strip-tile > span {
    font-size: 7.4vw;
  }
  .strip-serif > span {
    font-size: 8.4vw;
  }
  .strip-italic > span {
    font-size: 9.2vw;
  }
  .strip-mono > span {
    font-size: 5.4vw;
  }
  .strip-variable > span {
    font-size: 6.8vw;
  }
}
@media (max-width: 734px) {
  .hero {
    padding-top: 64px;
  }
  .hero h1 {
    margin-top: 24px;
  }
  .hero-cta {
    margin-top: 32px;
  }
  .specimen-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 64px;
  }
  .strip-tile > span {
    font-size: 15vw;
  }
  .strip-serif > span {
    font-size: 17vw;
  }
  .strip-italic > span {
    font-size: 18.5vw;
  }
  .strip-mono > span {
    font-size: 11vw;
  }
  .strip-variable > span {
    font-size: 13.5vw;
  }
  .strip-tile small {
    left: 10px;
    bottom: 6px;
  }
}

/* ---------- Screenshots in plates ---------- */
.plate-shot {
  padding: 48px;
}
.app-window {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--paper);
  overflow: hidden;
}
.app-window img {
  width: 100%;
}
@media (max-width: 734px) {
  .plate-shot {
    padding: 16px;
  }
}
/* Both Focus captures end on the grid's own hairline (and, on the wide one, a sliver of the
   next row); trim them so the window border is the only line at the bottom. */
.focus-figure .app-window img {
  margin-bottom: -0.9%;
}
@media (max-width: 640px) {
  .focus-figure .app-window img {
    margin-bottom: -0.8%;
  }
}
/* Line breaks that only apply on phones. */
.phone-break {
  display: none;
}
@media (max-width: 734px) {
  .phone-break {
    display: inline;
  }
}

/* ---------- 02 Cloud library ---------- */
.cloud-visual {
  padding: 64px 24px;
}
.cloud-library-window {
  max-width: 520px;
  margin-inline: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--paper);
  overflow: hidden;
}
.cloud-window-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--rule);
  font-size: var(--small);
  font-weight: 600;
}
.cloud-window-dots {
  display: flex;
  gap: 6px;
}
.cloud-window-dots i {
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--rule);
}
.cloud-window-count {
  margin-left: auto;
  color: var(--ink-2);
  font-weight: 400;
}
.cloud-window-content {
  padding: 4px 20px 8px;
}
.cloud-window-heading {
  padding: 12px 0 8px;
  font-size: var(--small);
  color: var(--ink-2);
}
.cloud-window-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.cloud-window-row small {
  font-size: var(--small);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.cloud-row-glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-tag);
  background: var(--plate);
  font-size: 22px;
  line-height: 1;
}
.cloud-glyph-serif {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
}
.cloud-glyph-grotesk {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.cloud-glyph-italic {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 26px;
}
.cloud-window-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--rule);
  font-size: var(--small);
  color: var(--ink-2);
}
.cloud-status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--ink);
}
/* ---------- 06b On-demand activation ---------- */
.activation-visual {
  padding: 64px 24px;
}
.activation-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 24px;
}
.activation-window {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--paper);
  overflow: hidden;
}
.activation-window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--rule);
  font-size: var(--small);
  font-weight: 600;
}
.activation-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 400;
}
/* The app’s activation dot: its green when on, an empty ring when off. */
.activation-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: #1db24d;
}
.activation-closed .activation-dot {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
}
.activation-list {
  padding: 4px 20px 8px;
  list-style: none;
}
.activation-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.activation-list li:first-child {
  border-top: 0;
}
.activation-list small {
  font-size: var(--small);
  color: var(--ink-2);
}
.activation-face {
  font-size: 22px;
  line-height: 1.2;
}
.activation-serif {
  font-family: 'Instrument Serif', serif;
  font-size: 25px;
}
.activation-grotesk {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}
.activation-syne {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}
.activation-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 19px;
}
.activation-off span,
.activation-system span {
  font-size: 17px;
  line-height: 1.2;
  padding-block: 3px;
}
.activation-off span {
  color: var(--ink-3);
}
.activation-system span {
  font-family: Helvetica, Arial, sans-serif;
}
@media (max-width: 734px) {
  .activation-visual {
    padding: 24px 16px;
  }
  .activation-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
.footnote {
  margin-top: 32px;
}
@media (max-width: 734px) {
  .cloud-visual {
    padding: 32px 16px;
  }
  .cloud-window-top,
  .cloud-window-status {
    padding-inline: 16px;
  }
  .cloud-window-content {
    padding-inline: 16px;
  }
}

/* ---------- 03 iPhone ---------- */
.iphone-stage {
  --phone-gap: 48px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--phone-gap);
  padding: 64px 24px;
}
.iphone-device {
  position: relative;
  flex: none;
  width: min(248px, calc((100% - 2 * var(--phone-gap)) / 3));
  padding: 8px;
  border-radius: 44px;
  background: var(--ink);
}
.iphone-device img {
  width: 100%;
  border-radius: 36px;
}
/* Phones: the three screens stay readable in a row you swipe through. The plate keeps its
   padding; the trailing 16px comes from the gap before an empty end marker, which every
   browser counts as scrollable (end padding alone isn't always). */
@media (max-width: 734px) {
  .iphone-stage {
    --phone-gap: 16px;
    justify-content: flex-start;
    padding: 32px 0 32px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .iphone-stage::-webkit-scrollbar {
    display: none;
  }
  .iphone-stage::after {
    content: '';
    flex: none;
    width: 0;
    height: 1px;
  }
  .iphone-device {
    width: 220px;
    padding: 7px;
    border-radius: 39px;
    scroll-snap-align: start;
  }
  .iphone-device img {
    border-radius: 32px;
  }
}

/* ---------- 04 Type samples ---------- */
/* Centred header, the Messages picture, then the three points as a row (one column on phones). */
.share-plate {
  display: grid;
  place-items: center;
  gap: 20px;
  padding: 64px 24px;
}
/* Plays the conversation again once it has finished. */
.messages-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 14px 6px 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
/* Its space is always held, so appearing never moves the layout; it fades in. */
.messages-replay {
  transition: opacity 0.3s ease;
}
.messages-replay:not(.is-ready) {
  visibility: hidden;
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  /* The conversation shows complete and never plays, so there's nothing to replay. */
  .messages-replay {
    display: none;
  }
}
.messages-replay:hover {
  color: var(--ink);
}
.messages-replay:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.messages-replay svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 734px) {
  .share-plate {
    padding: 32px 16px;
  }
}

/* The phone around the Messages demo is part of the picture: a plain bezel, no shadow. */
.messages-device {
  position: relative;
  width: 320px;
  max-width: 100%;
  margin: 0;
  padding: 8px;
  border-radius: 50px;
  background: var(--ink);
  text-align: left;
}
.messages-device::after {
  content: '';
  position: absolute;
  top: calc(8px + 1.25%);
  left: 50%;
  z-index: 3;
  width: 29%;
  aspect-ratio: 126 / 37;
  border-radius: var(--r-pill);
  background: #000;
  transform: translateX(-50%);
}
@media (max-width: 734px) {
  .messages-device {
    width: min(300px, 100%);
    padding: 6px;
    border-radius: 40px;
  }
  .messages-device::after {
    top: calc(6px + 1.25%);
  }
}

/* ---------- Messages demo: mimics iOS, kept as drawn ---------- */
.messages-screen {
  --pt: calc(100cqw / 393);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  aspect-ratio: 393 / 852;
  border-radius: 43px;
  background: #fff;
  color: #000;
  container-type: inline-size;
}
.messages-screen::after {
  content: '';
  position: absolute;
  bottom: calc(var(--pt) * 8);
  left: 50%;
  width: 36%;
  height: calc(var(--pt) * 5);
  border-radius: 99px;
  background: #000;
  transform: translateX(-50%);
}
.messages-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(var(--pt) * 54);
  padding: calc(var(--pt) * 6) calc(var(--pt) * 34) 0 calc(var(--pt) * 46);
  font-size: calc(var(--pt) * 17);
  font-weight: 600;
}
.messages-status-icons {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 5);
}
/* iOS status glyph sizes, in points. */
.messages-status-icons svg {
  display: block;
  fill: currentColor;
  shape-rendering: geometricPrecision;
}
.messages-signal {
  width: calc(var(--pt) * 17);
}
.messages-wifi {
  width: calc(var(--pt) * 15.6);
}
.messages-battery {
  width: calc(var(--pt) * 26.5);
}
/* Status bar and nav share one frosted bar; earlier messages scroll under it. */
.messages-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  border-bottom: 0.5px solid #0000001a;
  background: #f9f9f9d9;
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  backdrop-filter: blur(16px) saturate(1.8);
}
.messages-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 calc(var(--pt) * 18) calc(var(--pt) * 10);
}
.messages-back,
.messages-video {
  height: calc(var(--pt) * 20);
  fill: none;
  stroke: #007aff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.messages-video {
  justify-self: end;
  height: calc(var(--pt) * 18);
  stroke-width: 1.8;
}
.messages-contact {
  display: grid;
  justify-items: center;
  gap: calc(var(--pt) * 4);
}
.messages-avatar {
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 52);
  height: calc(var(--pt) * 52);
  border-radius: 50%;
  background: linear-gradient(#f7a8c4, #e2779d);
  color: #fff;
  font-size: calc(var(--pt) * 24);
  font-weight: 600;
}
.messages-name {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 2);
  font-size: calc(var(--pt) * 11.5);
}
.messages-name svg {
  height: calc(var(--pt) * 8);
  fill: none;
  stroke: #8a8a8e;
  stroke-width: 1.6;
}
.messages-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: calc(var(--pt) * 146) calc(var(--pt) * 16) calc(var(--pt) * 8);
}
.messages-stack {
  display: flex;
  flex-direction: column;
  gap: calc(var(--pt) * 3);
}
.messages-time {
  margin-bottom: calc(var(--pt) * 10);
  color: #8a8a8e;
  font-size: calc(var(--pt) * 11.5);
  line-height: 1.3;
  text-align: center;
}
.messages-time strong {
  font-weight: 600;
}
.bubble {
  position: relative;
  isolation: isolate;
  max-width: 76%;
  padding: calc(var(--pt) * 7) calc(var(--pt) * 13);
  border-radius: calc(var(--pt) * 19);
  font-size: calc(var(--pt) * 17);
  line-height: 1.29;
  letter-spacing: -0.01em;
}
.bubble-sent {
  align-self: flex-end;
  background: #0b84fe;
  color: #fff;
}
.bubble-received {
  align-self: flex-start;
  margin-top: calc(var(--pt) * 6);
  background: #e9e9eb;
}
/* The tail: a colored curve, then a white curve cut out of it. */
.bubble:not(.bubble-typing)::before,
.bubble:not(.bubble-typing)::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: 0;
  height: calc(var(--pt) * 20);
}
.bubble-sent::before {
  right: calc(var(--pt) * -7);
  width: calc(var(--pt) * 20);
  border-bottom-left-radius: calc(var(--pt) * 16) calc(var(--pt) * 14);
  background: #0b84fe;
}
.bubble-sent::after {
  right: calc(var(--pt) * -26);
  width: calc(var(--pt) * 26);
  border-bottom-left-radius: calc(var(--pt) * 10);
  background: #fff;
}
.bubble-received::before {
  left: calc(var(--pt) * -7);
  width: calc(var(--pt) * 20);
  border-bottom-right-radius: calc(var(--pt) * 16) calc(var(--pt) * 14);
  background: #e9e9eb;
}
.bubble-received::after {
  left: calc(var(--pt) * -26);
  width: calc(var(--pt) * 26);
  border-bottom-right-radius: calc(var(--pt) * 10);
  background: #fff;
}
.bubble-image {
  align-self: flex-end;
  width: 58%;
  margin-top: calc(var(--pt) * 4);
  overflow: hidden;
  border-radius: calc(var(--pt) * 18);
  box-shadow: 0 0 0 0.5px #0000001a;
}
.messages-receipt {
  align-self: flex-end;
  margin-right: calc(var(--pt) * 4);
  color: #8a8a8e;
  font-size: calc(var(--pt) * 11.5);
  font-weight: 500;
}
.bubble-typing {
  display: flex;
  gap: calc(var(--pt) * 4);
  padding: calc(var(--pt) * 13) calc(var(--pt) * 14);
}
.bubble-typing i {
  width: calc(var(--pt) * 8);
  height: calc(var(--pt) * 8);
  border-radius: 50%;
  background: #8e8e93;
  animation: typing-dot 1.2s ease-in-out infinite;
}
.bubble-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.bubble-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
  }
  30% {
    opacity: 1;
  }
}
.messages-compose {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 8);
  padding: calc(var(--pt) * 6) calc(var(--pt) * 12) calc(var(--pt) * 36);
}
.messages-plus {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(var(--pt) * 36);
  height: calc(var(--pt) * 36);
  border-radius: 50%;
  background: #eeeef0;
}
.messages-plus svg {
  width: calc(var(--pt) * 15);
  stroke: #6c6c70;
  stroke-width: 2;
  stroke-linecap: round;
}
.messages-field {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  height: calc(var(--pt) * 36);
  padding: 0 calc(var(--pt) * 12) 0 calc(var(--pt) * 14);
  border: 1px solid #dcdce0;
  border-radius: calc(var(--pt) * 18);
  color: #b4b4b8;
  font-size: calc(var(--pt) * 17);
}
.messages-field svg {
  height: calc(var(--pt) * 17);
  fill: none;
  stroke: #8a8a8e;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* The shared image, laid out like the app's 1080 × 1350 export. */
.sample-card {
  --u: calc(100cqw / 1080);
  position: relative;
  aspect-ratio: 1080 / 1350;
  /* The first sample uses the hero's Italic pair. */
  background: var(--italic-bg);
  color: var(--italic-ink);
  container-type: inline-size;
}
.sample-card-violet {
  background: #8455ea;
  color: #fbeefb;
}
.sample-card > * {
  position: absolute;
  left: calc(var(--u) * 72);
  display: block;
  white-space: nowrap;
}
.sample-family {
  top: calc(var(--u) * 68);
  font-size: calc(var(--u) * 46);
  font-weight: 600;
}
.sample-foundry {
  top: calc(var(--u) * 136);
  font-size: calc(var(--u) * 27);
}
.sample-mark {
  top: calc(var(--u) * 72);
  left: auto;
  right: calc(var(--u) * 72);
  width: calc(var(--u) * 56);
  fill: currentColor;
}
/* The sample's lettering is an outline drawing, sized to the card. */
.sample-card .sample-line {
  top: calc(var(--u) * 268);
  width: calc(var(--u) * 880);
  height: auto;
  fill: currentColor;
}
.sample-rule {
  top: calc(var(--u) * 1030);
  right: calc(var(--u) * 72);
  height: calc(var(--u) * 2);
  background: currentColor;
  opacity: 0.22;
}
.sample-meta {
  font-size: calc(var(--u) * 25);
}
.sample-meta-style {
  top: calc(var(--u) * 1062);
  font-size: calc(var(--u) * 28);
}
.sample-meta-designer {
  top: calc(var(--u) * 1108);
}
.sample-meta-specs {
  top: calc(var(--u) * 1152);
}
.sample-meta-url {
  top: calc(var(--u) * 1196);
}
.sample-site {
  top: calc(var(--u) * 1254);
  font-size: calc(var(--u) * 28);
  font-weight: 600;
}

/* With motion, the conversation plays once when it scrolls into view. Each message
   takes its place in turn and pushes the thread up, as in Messages. */
.messages-screen:not([data-messages='ready']) [data-until],
.messages-screen[data-messages='ready'] [data-step]:not(.is-shown),
.messages-screen[data-messages='ready'] [data-until].is-gone {
  display: none;
}
.messages-screen[data-messages='ready'] .is-shown {
  transform-origin: bottom right;
  animation: message-in 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
}
.messages-screen[data-messages='ready'] .bubble-received.is-shown {
  transform-origin: bottom left;
}
@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
}

/* The Messages screen inside the bezel. */
.messages-screen {
  border-radius: 42px;
}
@media (max-width: 734px) {
  .messages-screen {
    border-radius: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bubble-typing i {
    animation: none;
    opacity: 0.6;
  }
}

/* ---------- 05 Organize, 06 Layouts ---------- */
/* The stage for a demo below a section header: the full content width, like every other
   plate on the page. */
.stage {
  width: 100%;
}
/* Rosie's artboard spans the full content width, like the Focus mode screenshot. */
.stage-wide {
  width: 100%;
}
/* Rosie: the artboard at stage width, then the type panel and Replay centred under it. */
.layout-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.layout-figure > .layout-stage {
  align-self: stretch;
}

/* Scan & Cleanup */
.cleanup-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}
.cleanup-categories li {
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-size: var(--small);
  line-height: 1.45;
  color: var(--ink-2);
}
.cleanup-categories .cleanup-categories-more {
  padding-inline: 4px;
  border-color: transparent;
  color: var(--ink-2);
}
.cleanup-plate {
  padding: 48px;
}
/* The frame spans the content width; the scan widget inside keeps its own, narrower size
   (what it had on an 8-of-12 stage), centred. */
.cleanup-plate > * {
  max-width: 675px;
  margin-inline: auto;
}
.scan-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.scan-progress-title {
  font-weight: 600;
}
.scan-progress-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.scan-progress-percent {
  min-width: 4ch;
  text-align: right;
  font-size: var(--small);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.scan-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: var(--small);
  cursor: pointer;
}
.scan-replay svg {
  width: 16px;
  height: 16px;
}
.scan-progress-track {
  height: 4px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--rule);
}
.scan-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}
.scan-progress-detail {
  min-height: 1.45em;
  margin-top: 8px;
  font-size: var(--small);
  line-height: 1.45;
  color: var(--ink-2);
}
.cleanup-example {
  margin-top: 24px;
  padding: 8px 24px 16px;
  border-radius: var(--r);
  background: var(--paper);
}
.cleanup-example-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.cleanup-example-toolbar > span {
  font-size: var(--small);
  font-weight: 600;
}
.cleanup-switch {
  display: flex;
  padding: 2px;
  border-radius: var(--r-pill);
  background: var(--plate);
}
.cleanup-switch button {
  min-height: 28px;
  padding: 2px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font-size: var(--small);
  cursor: pointer;
}
.cleanup-switch button[aria-pressed='true'] {
  border-color: var(--rule);
  background: var(--paper);
  color: var(--ink);
}
.cleanup-font-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.cleanup-font-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}
/* Each family name is set in its own face. */
.cleanup-font-row:nth-child(1) strong {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}
.cleanup-font-row:nth-child(2) strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cleanup-font-row:nth-child(3) strong {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.cleanup-font-name > span {
  font-size: var(--small);
  color: var(--ink-2);
}
.cleanup-category {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--r-tag);
  background: var(--plate);
  font-size: var(--small);
  color: var(--ink);
}
.cleanup-example[data-state='before'] .cleanup-category {
  color: var(--ink-3);
}
.cleanup-foundries {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.cleanup-foundries > span {
  display: block;
  margin-bottom: 8px;
  font-size: var(--small);
  font-weight: 600;
}
.cleanup-foundry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  font-size: var(--small);
}
.cleanup-foundry-tags > span:not(.cleanup-foundry-note) {
  padding: 2px 8px;
  border-radius: var(--r-tag);
  background: var(--plate);
}
.cleanup-foundry-note {
  margin-left: 4px;
  color: var(--ink-2);
}
.cleanup-example-status {
  min-height: 2.9em;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: var(--small);
  line-height: 1.45;
  color: var(--ink-2);
}
@media (max-width: 734px) {
  .cleanup-plate {
    padding: 16px;
  }
  .scan-progress-heading {
    align-items: flex-start;
  }
  .cleanup-example {
    padding: 4px 16px 12px;
  }
  .cleanup-example-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cleanup-font-row {
    min-height: 64px;
  }
}

/* Layout: the Rosie artboard is the specimen being set. Its frame is a plain 12px plate. */
.layout-stage {
  --rosie-surface: var(--plate);
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1000 / 690;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--rosie-surface);
}
.layout-stage-art {
  position: absolute;
  top: -6%;
  left: 50%;
  width: 56%;
  height: auto;
  transform: translateX(-50%);
  filter: url('#flower-ink-cutout');
  pointer-events: none;
  transition: opacity 300ms ease;
}
.layout-stage-lockup {
  --layout-leading: 0.81;
  --layout-tracking: -0.05em;
  position: absolute;
  bottom: 9%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
  font-size: 12.5cqw;
  font-weight: 700;
  line-height: var(--layout-leading);
  letter-spacing: var(--layout-tracking);
  color: #ff2c30;
  text-align: center;
  white-space: nowrap;
  transition: letter-spacing 821ms ease, line-height 821ms ease, bottom 821ms ease;
}
/* The app’s type panel, in its 1.4 neutral finish. It sits under the artboard it sets, always
   in view: at rest it reads the finished lockup’s settings, and it moves while the demo plays. */
.layout-stage-control {
  --tracking-position: 25%;
  --leading-position: 22%;
  width: min(280px, 100%);
  margin-top: 20px;
  padding: 8px 12px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.2;
}
/* Set without the glide: the resting state, and the reset before a replay. */
.layout-stage-control.is-resetting .layout-stage-slider-fill,
.layout-stage-control.is-resetting .layout-stage-slider-thumb {
  transition: none;
}
.layout-stage-control-font {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--rule);
}
.layout-stage-control-glyph {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border-radius: var(--r-tag);
  background: var(--plate);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.layout-stage-status {
  flex: 1;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.layout-stage-status[data-font='Instrument Serif'] {
  font-family: 'Instrument Serif', serif;
  font-size: 15px;
  font-weight: 400;
}
.layout-stage-status[data-font='Space Grotesk'] {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.layout-stage-status[data-font='Syne'] {
  font-family: Syne, sans-serif;
  font-weight: 700;
}
.layout-stage-status[data-font='Bricolage Grotesque'] {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
}
.layout-stage-control-chevron {
  width: 7px;
  height: 7px;
  margin: -3px 4px 0 0;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg);
}
.layout-stage-control-adjustment {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 11px;
}
.layout-stage-control-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.layout-stage-slider {
  position: relative;
  height: 3px;
  border-radius: 3px;
  background: var(--rule);
}
.layout-stage-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--slider-position);
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 821ms ease;
}
.layout-stage-slider-thumb {
  position: absolute;
  top: 50%;
  left: var(--slider-position);
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  transform: translate(-50%, -50%);
  transition: left 821ms ease;
}
.layout-stage-control-adjustment--tracking {
  --slider-position: var(--tracking-position);
}
.layout-stage-control-adjustment--leading {
  --slider-position: var(--leading-position);
}
.layout-stage-control[data-active='tracking'] .layout-stage-control-adjustment--tracking,
.layout-stage-control[data-active='leading'] .layout-stage-control-adjustment--leading {
  color: var(--ink);
  font-weight: 600;
}
.preview-card.is-waiting .layout-stage-lockup {
  visibility: hidden;
}
.layout-stage-lockup.is-switching {
  transition: none;
}
.layout-stage-lockup[data-phase='instrument'] {
  --layout-leading: 1.08;
  --layout-tracking: -0.015em;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 12.42cqw;
  font-weight: 400;
}
.layout-stage-lockup[data-phase='space'] {
  --layout-leading: 1.08;
  --layout-tracking: -0.02em;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.88cqw;
  font-weight: 500;
}
.layout-stage-lockup[data-phase='syne'] {
  --layout-leading: 1.08;
  --layout-tracking: -0.015em;
  font-family: Syne, sans-serif;
  font-size: 11.52cqw;
  font-weight: 650;
}
.layout-stage-lockup[data-phase='final-loose'] {
  --layout-leading: 1.02;
  --layout-tracking: 0.025em;
  bottom: 6%;
}
.layout-stage-lockup[data-phase='tracking'] {
  --layout-leading: 1.02;
  --layout-tracking: -0.05em;
  bottom: 6%;
}
@media (max-width: 640px) {
  .layout-stage {
    aspect-ratio: 1;
  }
  .layout-stage-art {
    top: -10%;
    width: 97.75%;
  }
  .layout-stage-lockup {
    bottom: 9%;
    font-size: 13.9cqw;
  }
  .layout-stage-lockup[data-phase='instrument'] {
    font-size: 13.8cqw;
  }
  .layout-stage-lockup[data-phase='space'] {
    font-size: 13.2cqw;
  }
  .layout-stage-lockup[data-phase='syne'] {
    font-size: 12.8cqw;
  }
  .layout-stage-lockup[data-phase='final-loose'],
  .layout-stage-lockup[data-phase='tracking'] {
    bottom: 7%;
  }
  .layout-stage-control {
    margin-top: 16px;
  }
}

/* ---------- 05b Spotlight ---------- */
/* The find panel from the Mac app, drawn as it appears: floating over a dimmed grid of fonts,
   every result set in its own face. While in view it cycles through a few searches. */
.spotlight-plate {
  padding: 48px;
}
.spot-demo {
  position: relative;
  height: 480px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
/* The library behind: a 3 × 2 grid of cards, dimmed while the panel is up. */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  height: 100%;
}
.spot-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 18px 20px 22px;
  border-right: 1px solid rgba(0, 0, 0, 0.085);
  border-bottom: 1px solid rgba(0, 0, 0, 0.085);
  overflow: hidden;
}
.spot-card:nth-child(3n) {
  border-right: 0;
}
.spot-card:nth-last-child(-n + 3) {
  border-bottom: 0;
}
.spot-card span {
  font-size: 12px;
  font-weight: 600;
}
.spot-card b {
  font-size: 52px;
  line-height: 1.1;
  white-space: nowrap;
}
.spot-demo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.1);
  transition: opacity 0.15s ease-out;
}
.spot-panel {
  position: absolute;
  z-index: 2;
  top: 40px;
  left: 50%;
  width: min(520px, calc(100% - 32px));
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 14px;
  background: var(--paper);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.22),
    0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateX(-50%);
  transition:
    opacity 0.16s ease-out,
    transform 0.16s cubic-bezier(0.2, 0, 0, 1);
}
/* Before the first keystroke: just the library. */
.spot-demo[data-spot='closed']::after {
  opacity: 0;
}
.spot-demo[data-spot='closed'] .spot-panel {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px) scale(0.985);
}
.spot-field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 14px 0 16px;
}
.spot-field > svg {
  color: var(--ink-2);
}
.spot-query {
  flex: 1;
  min-width: 0;
  font-size: 21px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.spot-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--ink);
  animation: spot-caret 1.06s steps(1) infinite;
}
@keyframes spot-caret {
  50% {
    opacity: 0;
  }
}
/* The empty field shows its placeholder after the caret, as in the app. */
.spot-placeholder {
  display: none;
  color: var(--ink-3);
}
.spot-query.is-empty .spot-placeholder {
  display: inline;
}
.spot-scope {
  flex: none;
  padding: 3px 8px;
  border-radius: var(--r-tag);
  background: var(--plate);
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.45;
}
.spot-results {
  padding: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.085);
}
.spot-all {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink-2);
  font-size: 13px;
}
.spot-all svg {
  width: 16px;
  height: 16px;
}
.spot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    'name tag open'
    'meta tag open';
  align-items: center;
  column-gap: 12px;
  row-gap: 1px;
  padding: 8px 12px 9px;
  border-radius: 8px;
  transition: background-color 0.12s;
}
.spot-row.is-active {
  background: rgba(0, 0, 0, 0.075);
}
.spot-name {
  grid-area: name;
  overflow: hidden;
  font-size: 22px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.spot-meta {
  grid-area: meta;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.45;
}
.spot-tag {
  grid-area: tag;
  padding: 2px 7px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.45;
  white-space: nowrap;
}
.spot-open {
  grid-area: open;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-3);
  font-size: 11px;
  visibility: hidden;
}
.spot-row.is-active .spot-open {
  visibility: visible;
}
.spot-open svg {
  width: 13px;
  height: 13px;
}
.spot-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 9px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.085);
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.6;
}
.spot-keys kbd {
  display: inline-block;
  min-width: 18px;
  margin-right: 2px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.045);
  color: var(--ink-2);
  font: inherit;
  font-size: 10px;
  text-align: center;
  transition:
    background-color 0.12s,
    color 0.12s;
}
.spot-keys kbd.is-pressed {
  background: var(--ink);
  color: var(--paper);
}
/* Each name in its own face (the faces bundled with the page). */
.spot-serif {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}
.spot-italic {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}
.spot-grotesk {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
}
.spot-syne {
  font-family: Syne, sans-serif;
  font-weight: 400;
}
.spot-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
}
.spot-bricolage {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
}
@media (max-width: 734px) {
  .spotlight-plate {
    padding: 16px;
  }
  .spot-demo {
    height: 400px;
  }
  .spot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spot-card:nth-child(3n) {
    border-right: 1px solid rgba(0, 0, 0, 0.085);
  }
  .spot-card:nth-child(2n) {
    border-right: 0;
  }
  .spot-card:nth-last-child(3) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.085);
  }
  .spot-card b {
    font-size: 40px;
  }
  .spot-panel {
    top: 16px;
    width: calc(100% - 24px);
  }
  .spot-field {
    height: 50px;
  }
  .spot-query {
    font-size: 19px;
  }
  .spot-name {
    font-size: 19px;
  }
  .spot-open,
  .spot-keys span:nth-child(n + 3) {
    display: none;
  }
  .spot-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'name tag'
      'meta tag';
  }
}
@media (prefers-reduced-motion: reduce) {
  /* The first search shows finished: no typing, no caret blink. */
  .spot-caret {
    animation: none;
  }
  .spot-panel,
  .spot-demo::after {
    transition: none;
  }
}

/* ---------- 07b Details ---------- */
/* Four close crops of the app at 6x, each with a caption: 2 x 2 on a narrower measure, so
   the interface reads at type sizes; a row you swipe through on phones (like the iPhone screens). */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px var(--gutter);
  max-width: 920px;
  margin-inline: auto;
}
.detail-tile {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: #fff;
}
.detail-tile img {
  width: 100%;
  height: 100%;
}
.details-grid h3 {
  margin-top: 16px;
  font-size: var(--body);
  line-height: 1.5;
  letter-spacing: 0;
}
.details-grid p {
  margin-top: 4px;
  color: var(--ink-2);
}
.details-scroll:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 8px;
  border-radius: var(--r);
}
@media (max-width: 734px) {
  .details-scroll {
    margin-inline: calc(-1 * var(--side));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--side);
    scrollbar-width: none;
  }
  .details-scroll::-webkit-scrollbar {
    display: none;
  }
  .details-grid {
    display: flex;
    gap: 16px;
    padding-inline: var(--side);
  }
  /* The trailing gutter: an empty end marker every browser counts as scrollable. */
  .details-grid::after {
    content: '';
    flex: none;
    width: calc(var(--side) - 16px);
    height: 1px;
  }
  .details-grid li {
    flex: none;
    width: min(300px, 78vw);
    scroll-snap-align: start;
  }
}

/* ---------- 06c Team font folders ---------- */
/* One shared folder, the same collections on two Macs. */
.team-visual {
  padding: 64px 24px;
}
.team-folder {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 24px;
  padding: 10px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: var(--small);
  font-weight: 600;
}
.team-folder svg {
  width: auto;
  height: 18px;
  fill: currentColor;
}
.team-folder small {
  font-size: var(--small);
  font-weight: 400;
  color: var(--ink-2);
}
@media (max-width: 734px) {
  .team-visual {
    padding: 24px 16px;
  }
  .team-folder {
    margin-bottom: 16px;
  }
  .team-window .cloud-window-content {
    padding-inline: 16px;
  }
  /* Stacked, the second Mac only repeats the first; phones show one. */
  .team-window + .team-window {
    display: none;
  }
}

/* ---------- 08 Feature index ---------- */
/* Sixteen entries: 4 x 4 on desktop, 2 across from 1068px (rows stay full), 1 on phones. */
.feature-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.feature-table li {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
/* SF Symbols (Regular, medium scale, 22pt), exported as filled outlines. Every symbol shares
   one 26px-tall box centred on the cap height, so they sit on one line; widths are tight so
   each symbol starts on the text's left edge. */
svg.sf {
  width: auto;
  height: 26px;
  fill: currentColor;
  stroke: none;
  /* The symbols' outlines touch their viewBox edges; let the anti-aliased edge pixels show. */
  overflow: visible;
}
/* Drawn to the symbols' weight where no exported outline exists. */
svg.sf.sf-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.73;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-table h3 {
  margin-top: 16px;
  font-size: var(--body);
  line-height: 1.5;
  letter-spacing: 0;
}
.feature-table p {
  margin-top: 4px;
  color: var(--ink-2);
}
@media (max-width: 1068px) {
  .feature-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 734px) {
  .feature-table {
    grid-template-columns: 1fr;
  }
  .feature-table li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 16px;
    padding: 24px 0;
  }
  .feature-table svg {
    grid-row: 1 / 3;
  }
  .feature-table h3 {
    margin-top: 0;
  }
}

/* ---------- 08b Fonting vs. Font Book ---------- */
/* One table, three columns: what it is, Fonting (on the plate grey), Font Book. Grouped by
   library, previews and everywhere, with the price last. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Organize once: a statement under a small line drawing, so the header is the whole section. */
.switch-section .section-head {
  margin-bottom: 0;
}
.switch-art {
  width: 300px;
  height: auto;
  margin-bottom: 40px;
}
@media (max-width: 734px) {
  .switch-art {
    width: 220px;
    margin-bottom: 32px;
  }
}
/* A longer lead than most sections: wrapped naturally rather than balanced, so it runs about
   two and a half lines with a short last line. */
.vs-section .section-head .lead {
  text-wrap: pretty;
}
.vs-wrap {
  max-width: 880px;
  margin-inline: auto;
}
.vs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.vs-table thead td {
  width: auto;
}
.vs-table thead th {
  width: 160px;
  padding: 24px 12px 20px;
  font-size: var(--body);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  vertical-align: bottom;
  color: var(--ink-2);
}
.vs-table thead th.vs-fonting {
  color: var(--ink);
  border-radius: var(--r) var(--r) 0 0;
}
.vs-table thead img {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  border-radius: 7px;
}
/* Font Book's icon brings its own rounded shape and edge. */
.vs-table thead img.vs-icon-fontbook {
  border-radius: 0;
}
.vs-table .vs-fonting {
  background: var(--plate);
}
.vs-table tbody th,
.vs-table tbody td {
  padding: 14px 12px;
  border-top: 1px solid var(--rule);
  vertical-align: middle;
}
.vs-table tbody th {
  padding-left: 0;
  font-weight: 400;
  text-align: left;
  line-height: 1.4;
}
.vs-table tbody td {
  text-align: center;
}
.vs-table tbody td svg {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
  color: var(--ink);
}
.vs-table tbody td svg.vs-no {
  color: var(--ink-3);
}
/* Group labels: the same quiet bold label as the price card's "On your Mac". */
.vs-table .vs-group th,
.vs-table .vs-group td {
  border-top: 0;
}
.vs-table .vs-group th {
  padding: 40px 0 12px;
  font-size: var(--small);
  font-weight: 600;
  line-height: 1.45;
}
.vs-table tbody:first-of-type .vs-group th {
  padding-top: 16px;
}
.vs-table .vs-price th,
.vs-table .vs-price td {
  padding-block: 20px;
  font-weight: 600;
}
.vs-table .vs-price td:not(.vs-fonting) {
  color: var(--ink-2);
}
.vs-table tbody:last-of-type tr:last-child .vs-fonting {
  border-radius: 0 0 var(--r) var(--r);
}
/* Text answers (rather than ticks) for rows like "New versions". */
.vs-table .vs-text td {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}
.vs-table .vs-text td:not(.vs-fonting) {
  color: var(--ink-2);
}
@media (max-width: 734px) {
  .vs-table thead th {
    width: 84px;
    padding: 16px 6px 14px;
    font-size: var(--small);
  }
  .vs-table thead img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  .vs-table tbody th,
  .vs-table tbody td {
    padding: 12px 6px;
  }
  .vs-table tbody th {
    padding-left: 0;
    font-size: 15px;
  }
  .vs-table .vs-price td {
    font-size: 15px;
  }
  .vs-table .vs-text td {
    font-size: 13px;
  }
}

/* ---------- 09 Pricing ---------- */
/* One option, one card: the price, then everything it includes, grouped by where it lives. */
.price-card {
  max-width: 880px;
  margin-inline: auto;
  padding: 48px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
}
/* Top of the card: the price on the left, the home-screen shot in the right half. */
.price-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}
.price-art img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: var(--r);
}
.price-step-price {
  display: block;
  font-size: var(--title);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
}
.price-step-term {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
}
.price-includes {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
}
.price-checks-lead {
  margin-top: 24px;
  font-size: var(--small);
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
}
.price-checks {
  margin-top: 16px;
}
.price-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 4px;
}
.price-checks svg {
  margin-top: 2px;
  color: var(--ink);
}
.price-path-actions {
  justify-content: center;
  margin-top: 48px;
}
/* The section's one call to action: a larger pill than the standard Download button. */
.button-buy {
  min-height: 56px;
  padding: 16px 32px;
  gap: 12px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.button-buy svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: transform 0.15s ease;
}
.button-buy:hover svg {
  transform: translateX(3px);
}
.button-buy:active {
  transform: scale(0.98);
}
/* Version B: Fonting pink, the app icon's background (#ee82ee), with ink text (7.3:1). */
.button-buy-brand {
  background: #ee82ee;
  color: var(--ink);
}
.button-buy-brand:hover {
  background: #e872e8;
}
@media (prefers-reduced-motion: reduce) {
  .button-buy,
  .button-buy svg {
    transition: background-color 0.15s ease;
  }
  .button-buy:hover svg,
  .button-buy:active {
    transform: none;
  }
}
.plan-note {
  max-width: 40em;
  margin: 32px auto 0;
  text-align: center;
  text-wrap: balance;
}
@media (max-width: 734px) {
  .price-card {
    padding: 32px 24px;
  }
  .price-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .price-art {
    order: -1;
  }
  .price-includes {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .button-buy {
    width: 100%;
  }
  .plan-note {
    margin-top: 24px;
  }
}

/* ---------- Closing download ---------- */
/* One centred stack: icon 24 title 16 lead 32 button 16 meta 16 iPhone link. */
.closing > .split-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.download-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r);
}
.download-section h2 {
  margin-top: 24px;
}
.closing > .split-side {
  margin-top: 16px;
}
.closing .lead {
  max-width: 36em;
}
.closing .actions + .download-meta,
.closing .download-iphone {
  margin-top: 16px;
}

/* ---------- Footer ---------- */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--rule);
  font-size: var(--small);
  line-height: 1.45;
  color: var(--ink-2);
}
.footer .wordmark {
  gap: 8px;
  font-size: var(--small);
  color: var(--ink);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-left: auto;
}
.footer-links a:hover {
  color: var(--ink);
}
@media (max-width: 734px) {
  /* 24px between rows so the 44px hit areas don't overlap. */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-links {
    gap: 24px;
    margin-left: 0;
  }
}

/* ---------- Phone hand-off ---------- */
.is-handheld [data-download] svg {
  display: none;
}
.phone-handoff {
  width: min(360px, calc(100% - 32px));
  padding: 32px 24px 16px;
  border: 0;
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}
.phone-handoff::backdrop {
  background: rgb(0 0 0 / 40%);
}
.phone-handoff img {
  margin: 0 auto 16px;
  border-radius: var(--r);
}
.phone-handoff h2 {
  font-size: var(--heading);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.phone-handoff > p:not(.phone-handoff-status) {
  margin-top: 8px;
  color: var(--ink-2);
}
.phone-handoff-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 24px;
}
.phone-handoff-actions .button {
  width: 100%;
}
.phone-handoff-actions .text-link {
  min-height: 44px;
  align-items: center;
}
.phone-handoff > .phone-handoff-iphone {
  font-size: var(--small);
  line-height: 1.45;
}
.phone-handoff-iphone a {
  color: var(--ink);
}
.phone-handoff-status {
  min-height: 1.45em;
  margin-top: 8px;
  font-size: var(--small);
  line-height: 1.45;
}
.phone-handoff-close {
  min-height: 44px;
  margin-top: 4px;
  padding: 8px 16px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: var(--small);
  cursor: pointer;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Specimen colours: one ground and one type colour per kind of type. */
.strip-serif,
.cloud-glyph-serif { background: var(--serif-bg); color: var(--serif-ink); }
.strip-grotesk,
.cloud-glyph-grotesk { background: var(--grotesk-bg); color: var(--grotesk-ink); }
.strip-italic,
.cloud-glyph-italic { background: var(--italic-bg); color: var(--italic-ink); }
.strip-display { background: var(--display-bg); color: var(--display-ink); }
.strip-mono { background: var(--mono-bg); color: var(--mono-ink); }
.strip-variable { background: var(--variable-bg); color: var(--variable-ink); }

/* Replay for the Rosie layout demo: a small text link under the artboard. */
.layout-replay {
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: var(--small);
  line-height: 1.45;
}
/* Like the Messages replay: its space is always held, so appearing never moves the page. */
.layout-replay {
  transition: opacity 0.3s ease;
}
.layout-replay:not(.is-ready) {
  visibility: hidden;
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .layout-replay {
    display: none;
  }
}
.layout-replay svg {
  width: 16px;
  height: 16px;
}

/* Phones: a quieter first screen. The nav keeps the logo and the download button, and
   secondary hero copy steps back ("Font manager for Mac." already says where it runs). */
@media (max-width: 734px) {
  .hide-phone {
    display: none;
  }
  .nav-links > a:not(.button) {
    display: none;
  }
}
