/* Wingman Mail marketing page.
 *
 * Sales surface only — it shares no styles with the app renderer (src/) and
 * deliberately uses its own light-only token set. Layout is a stack of 48px
 * rounded cards on a grey page, with the section rhythm, type scale and
 * accent palette shared across Grand Ventures product sites.
 *
 * Everything here is hand-written CSS: the page is served as a static file by
 * server/src/index.ts, so it must stay build-free and dependency-free. */

/* ---------------------------------------------------------------- tokens -- */

:root {
  --page: #e7e7e7;
  --white: #ffffff;
  --ink: #151515;
  --wordmark: #2e2e2e;
  --surface-dark: #3b3b3b;
  --surface-dark-end: #242424;
  --secondary: #6f6f6f;
  --muted: #a3a3a3;
  --card: #f2f2f2;
  --hairline: rgba(0, 0, 0, 0.1);

  --blue: #3597f3;
  --orange: #e74926;
  --yellow: #f3c035;
  --teal: #549070;
  --pink: #b37283;
  --purple: #c27aff;
  --lime: #d9ff85;

  --dark: linear-gradient(to bottom, var(--ink), var(--surface-dark-end));
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 2px 0 rgba(0, 0, 0, 0.08);
  --glass: inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  /* The one app-window surface every illustration sits on: a hairline ring
   * plus a short, soft drop, so cards read as UI rather than as stickers. */
  --sx-surface:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 10px 24px -12px rgba(0, 0, 0, 0.16);
  --indigo: #4f55c7;
  --indigo-soft: #f1f2fb;

  /* Strong ease-out for enter, exit, and state changes: the fast start reads
   * as an instant response. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* Section gutter: 24px until the design width has room for the real 200px. */
  --gutter: 24px;

  color-scheme: light;
  interpolate-size: allow-keywords;
}

@media (min-width: 1280px) {
  :root {
    --gutter: 200px;
  }
}

/* ------------------------------------------------------------------ base -- */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img,
svg {
  display: block;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

.card-dark :focus-visible,
.plan-dark :focus-visible {
  outline-color: var(--white);
}

/* --------------------------------------------------------------- shell ---- */

.page {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
  overflow: clip;
}

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1440px;
}

/* Watermark letters. They only ever peek through the 16px page margin and the
 * gaps between cards, which is exactly the intended texture. */
.letters {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.letters svg {
  width: 100%;
  height: 100%;
}

.letters text {
  font-family: inherit;
  font-size: 1500px;
  font-weight: 600;
  text-anchor: middle;
  fill: rgba(255, 255, 255, 0.32);
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
  paint-order: stroke fill;
}

.card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 48px;
  box-shadow: var(--shadow-sm);
}

.card-white {
  background: var(--white);
}

.card-dark {
  background: var(--dark);
}

.pad {
  padding-inline: var(--gutter);
}

.block-tall {
  padding-top: 144px;
  padding-bottom: 152px;
}

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

.glass {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--glass);
  pointer-events: none;
}

/* ------------------------------------------------------------- typography -- */

h1 {
  font-size: 60px;
  line-height: 64px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
}

.lead {
  font-size: 22px;
  line-height: 32px;
  letter-spacing: -0.025em;
  color: var(--muted);
}

.grey {
  color: var(--secondary);
}

.card-dark .grey {
  color: var(--muted);
}

.sec-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 512px;
}

.sec-head.wide {
  max-width: 1040px;
}

.sec-head-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.sec-head h2 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.sec-head.dark h2 {
  color: var(--white);
}

@media (min-width: 768px) {
  .sec-head h2 {
    font-size: 40px;
    line-height: 48px;
  }
}

.sec-head h2 .soft {
  font-weight: 500;
  color: var(--secondary);
}

.sec-desc {
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.03em;
  color: var(--secondary);
}

.sec-head.dark .sec-desc {
  color: var(--muted);
}

.sec-desc-link {
  font-weight: 500;
  color: var(--ink);
}

.sec-desc-link:hover {
  color: var(--secondary);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.sec-head.dark .kicker {
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dot.blue { background: var(--blue); }
.dot.orange { background: var(--orange); }
.dot.yellow { background: var(--yellow); }
.dot.teal { background: var(--teal); }
.dot.pink { background: var(--pink); }
.dot.purple { background: var(--purple); }

.md-only {
  display: none;
}

@media (min-width: 768px) {
  .md-only {
    display: inline;
  }
}

/* ---------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.btn-primary-light {
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--white);
  color: var(--ink);
}

.btn-primary-light:hover {
  background: var(--page);
}

.btn-primary-dark {
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary-dark:hover {
  background: #292929;
}

.btn-secondary-dark {
  border-radius: 999px;
  padding: 12px 24px;
  background: var(--surface-dark);
  color: var(--white);
  box-shadow: var(--glass);
}

.btn-secondary-dark:hover {
  background: #454545;
}

.btn-ghost-dark {
  color: var(--muted);
}

.btn-ghost-dark:hover {
  color: var(--white);
}

.btn-tertiary-dark {
  height: 32px;
  padding-inline: 12px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-dark);
  color: var(--white);
}

.btn-tertiary-dark:hover {
  background: #474747;
}

.btn-block {
  position: relative;
  width: 100%;
  height: 48px;
  padding-inline: 20px;
}

.arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  transition: transform 150ms ease-out;
}

.arrow-circle svg {
  width: 16px;
  height: 16px;
}

.arrow-circle.dark {
  background: var(--ink);
  color: var(--white);
}

.arrow-circle.light {
  background: var(--white);
  color: var(--ink);
}

.arrow-circle.pinned {
  position: absolute;
  right: 12px;
}

.btn:hover .arrow-circle {
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover .arrow-circle {
    transform: none;
  }
}

/* ------------------------------------------------------------------- hero -- */

/* The nav and the product shot both sit 24px in from the card edge, so the
 * card closes 24px under the shot too — the inset reads as one frame. */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero-nav-wrap {
  width: 100%;
  padding-inline: 24px;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 20px;
  border-radius: 32px;
  background: var(--surface-dark);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-mark {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--white);
}

.nav-mark svg {
  width: 100%;
  height: 100%;
}

.nav-name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* Phone lockup. Hidden on desktop, where the W + typeset name already read. */
.nav-wordmark {
  display: none;
  height: 16px;
  width: auto;
  max-width: 100%;
  filter: invert(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

.hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
  width: 100%;
  margin-top: 144px;
  /* The product shot needs more room than the 200px section gutter allows, so
   * it sits at 24px and the headline pads itself back out to the gutter. */
  padding-inline: 24px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  padding-inline: calc(var(--gutter) - 24px);
}

/* Widths are tuned to the headline copy: two lines for the h1, two for the
 * subtext, with the subtext kept the narrower of the two. */
.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 760px;
}

.hero-headline .lead {
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

/* ------------------------------------------------------------ product shot */

.shot {
  position: relative;
  width: 100%;
  height: 700px;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-sm);
}

.shot-backdrop {
  position: absolute;
  inset: 0;
  /* Today's inbox-zero backdrop, the same daily photo the app uses. */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.62)),
    url("/inbox-zero.webp");
  background-size: cover;
  background-position: center;
}

/* The frame contains the same React renderer shipped in the app. It sits a
 * little above centre so the caption below shares the bottom margin. */
.win {
  position: absolute;
  top: 40px;
  left: 50%;
  z-index: 1;
  width: min(1300px, calc(100% - 80px));
  height: 600px;
  transform: translateX(-50%);
  border-radius: 12px;
  overflow: clip;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 32px 64px -24px rgba(0, 0, 0, 0.55);
}

.product-preview {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  transform-origin: top left;
}

.shot-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding-inline: 24px;
  overflow: hidden;
  font-size: 13px;
  line-height: 60px;
  letter-spacing: -0.01em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.7);
}

/* ----------------------------------------------------------- social proof -- */

.trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 80px;
}

.trust-copy {
  white-space: nowrap;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

/* Real brand marks, so each is sized to its own optical weight rather than to
 * a shared box: a wordmark, a monogram, and a portrait crest. */
.trust-logo {
  width: auto;
  flex: none;
}

.trust-logo.magebit { height: 27px; }
.trust-logo.ubiquiti { height: 33px; }
.trust-logo.eloking { height: 46px; }
.trust-logo.olivya { height: 17px; }

@media (min-width: 768px) {
  .trust-inner {
    flex-direction: row;
    gap: 0;
  }

  .trust-logos {
    justify-content: flex-end;
    gap: 64px;
  }
}

/* --------------------------------------------------------- feature grid ---- */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fcard {
  position: relative;
  container: fcard / inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: var(--card);
}

.fcard-dark {
  background: var(--dark);
}

.fcard-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 232px;
  flex: none;
  overflow: hidden;
}

.fcard-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 4px 40px 48px;
  text-align: center;
}

.fcard-body h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fcard-body p {
  margin-top: 8px;
  line-height: 24px;
  color: var(--secondary);
}

.fcard-dark .fcard-body h3 {
  color: var(--white);
}

.fcard-dark .fcard-body p {
  color: var(--muted);
}

/* ------------------------------------------------- feature card scenes -- */

/* Each card's art is a small scene built by landing.js (SCENES). Rules, after
 * Emil Kowalski's animation principles:
 *
 *  - Motion explains a state change — a row leaving, a count going up, a
 *    draft arriving — never decoration. Nothing loops; each scene plays
 *    once when it scrolls into view.
 *  - Transform and opacity only, with a strong ease-out at 160–300ms.
 *    Positions move through `translate`, so enter/exit can own `transform`.
 *  - Every scene is also a toy: rows, tabs, chips, toggles, and keys answer
 *    clicks, and Replay re-runs the story.
 *  - Reduced motion drops every transition and animation; the timeline then
 *    lands on its final frame immediately. */

.sx {
  /* Every widget shares one width: the app's density at 340px, narrowing
   * with the card on phones instead of being scaled down or cropped. */
  --sx-w: min(340px, calc(100% - 40px));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.01em;
  user-select: none;
  -webkit-user-select: none;
}

.sx-card {
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--sx-surface);
}

.sx-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.sx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  white-space: nowrap;
  transition:
    translate 260ms var(--ease-out),
    transform 240ms var(--ease-out),
    opacity 200ms var(--ease-out),
    background-color 150ms ease-out;
}

.sx-row b {
  flex: none;
  width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: var(--ink);
}

.sx-row span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--secondary);
}

.sx-row.is-in {
  opacity: 0;
  transform: translateY(8px);
}

.sx-row.is-out {
  opacity: 0;
  transform: translateX(28px);
}

/* Keycaps: the hero's kbd language at card scale. */
.sx-key {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  flex: none;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--white);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    inset 0 -2px 0 rgba(0, 0, 0, 0.06);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 120ms var(--ease-out),
    box-shadow 120ms var(--ease-out),
    background-color 120ms var(--ease-out);
}

.sx-key.wide {
  min-width: 64px;
}

.sx-key.is-down,
.sx-key:active {
  transform: translateY(2px);
  background: #fafafa;
  box-shadow:
    0 0 0 rgba(0, 0, 0, 0),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.sx-key.xs {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #e5e5e5, inset 0 -1px 0 #e5e5e5;
  font-size: 11px;
  color: var(--secondary);
  cursor: default;
}

/* A one-line slot whose pill is swapped: old lifts out, new rises in. */
.sx-hud-ms > *,
.sx-result > * {
  transition:
    transform 200ms var(--ease-out),
    opacity 200ms var(--ease-out);
}

.sx-hud-ms > .is-in,
.sx-result > .is-in {
  opacity: 0;
  transform: translateY(8px);
}

.sx-hud-ms > .is-out,
.sx-result > .is-out {
  opacity: 0;
  transform: translateY(-8px);
}

.sx-switch {
  position: relative;
  width: 32px;
  height: 18px;
  flex: none;
  border-radius: 999px;
  background: rgba(111, 111, 111, 0.35);
  cursor: pointer;
  transition: background-color 180ms var(--ease-out);
}

.sx-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 180ms var(--ease-out);
}

.sx-switch.on {
  background: var(--teal);
}

.sx-switch.on i {
  transform: translateX(14px);
}

/* Replay sits in the bottom corner, clear of the art, revealed on hover or
 * focus (always on touch). */
.fx-replay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px 0 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 160ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.fx-replay svg {
  width: 13px;
  height: 13px;
}

.fcard:hover .fx-replay,
.fx-replay:focus-visible {
  opacity: 1;
}

.fx-replay:active {
  transform: scale(0.97);
}

.fcard-dark .fx-replay {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

@media (hover: none) {
  .fx-replay {
    opacity: 1;
  }
}

/* --- 1 · speed: mark rows done, read your own latency --- */

.sx-speed-list,
.sx-zero-list {
  position: relative;
  width: var(--sx-w);
  height: 120px;
  overflow: hidden;
}

.sx-speed-list .sx-row,
.sx-zero-list .sx-row {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  cursor: pointer;
}

.sx-speed-list .sx-row:hover {
  background: #fafafa;
}

.sx-speed-list .sx-row.is-selected {
  background: var(--indigo-soft);
  box-shadow: inset 2px 0 0 var(--indigo);
}

.sx-row-done {
  display: flex;
  width: 14px;
  flex: none;
  color: var(--muted);
  opacity: 0;
  transition: opacity 150ms ease-out;
}

.sx-row:hover .sx-row-done {
  opacity: 1;
}

.sx-hud {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.sx-hud .sx-key.xs {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: var(--white);
}

.sx-hud-ms {
  position: relative;
  width: 54px;
  height: 22px;
}

.sx-hud-ms > * {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sx-hud-ms .idle { color: rgba(255, 255, 255, 0.35); }
.sx-hud-ms .fast { background: rgba(53, 151, 243, 0.24); color: #8cc8ff; }
.sx-hud-ms .good { background: rgba(84, 144, 112, 0.3); color: #9ad7b5; }
.sx-hud-ms .slow { background: rgba(231, 73, 38, 0.28); color: #ff9f88; }

/* --- 2 · splits: mail sorts itself into tabs --- */

.sx-tabs {
  position: relative;
  padding: 6px;
  border-radius: 999px;
}

.sx-tabs-row {
  display: flex;
  gap: 2px;
}

.sx-tabs-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--secondary);
  white-space: nowrap;
  cursor: pointer;
}

.sx-tabs-row i {
  display: inline-block;
  font-style: normal;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* The active pill is a second, inked copy of the row clipped to one tab, so
 * switching is a single clip-path transition with no text reflow. */
.sx-tabs-on {
  position: absolute;
  top: 6px;
  left: 6px;
  border-radius: 999px;
  background: var(--ink);
  pointer-events: none;
  transition: clip-path 260ms var(--ease-out);
}

/* Same weight as the base row: the clip only lines up if both rows have
 * identical metrics. */
.sx-tabs-on span {
  color: var(--white);
}

.sx-tabs-on i {
  color: rgba(255, 255, 255, 0.6);
}

.sx-tabs-row i.is-bump {
  animation: sx-bump 320ms var(--ease-out);
}

@keyframes sx-bump {
  40% {
    transform: scale(1.5);
  }
}

.sx-split-list {
  width: var(--sx-w);
  height: 80px;
  overflow: hidden;
}

.sx-incoming {
  position: absolute;
  z-index: 2;
  border-radius: 14px;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgba(53, 151, 243, 0.35),
    0 10px 24px -8px rgba(0, 0, 0, 0.25);
}

.sx-incoming.is-in {
  opacity: 0;
  transform: translateY(-12px);
}

.sx-incoming.is-flying {
  opacity: 0;
  transition:
    transform 380ms cubic-bezier(0.32, 0.72, 0, 1),
    opacity 380ms ease-in;
}

/* --- 3 · draft: streamed from memories you can delete --- */

.sx-memories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: var(--sx-w);
}

.sx-mem {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 4px 0 10px;
  border-radius: 999px;
  background: rgba(194, 122, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #8a3fd1;
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    background-color 200ms ease-out;
}

.sx-mem i {
  display: flex;
}

.sx-mem i svg {
  width: 10px;
  height: 10px;
}

.sx-mem b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: rgba(138, 63, 209, 0.6);
  cursor: pointer;
  transition: background-color 150ms ease-out;
}

.sx-mem b:hover {
  background: rgba(194, 122, 255, 0.22);
  color: #8a3fd1;
}

.sx-mem b svg {
  width: 10px;
  height: 10px;
}

.sx-mem.is-used {
  background: rgba(194, 122, 255, 0.28);
}

.sx-mem.is-gone {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.sx-draft-card {
  width: var(--sx-w);
  padding: 12px 16px 14px;
}

.sx-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.sx-draft-head b {
  font-weight: 600;
}

.sx-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.sx-chip.drafting {
  background: rgba(194, 122, 255, 0.12);
  color: #9a4fdd;
}

.sx-chip.ready {
  background: rgba(84, 144, 112, 0.14);
  color: var(--teal);
}

.sx-draft-text {
  min-height: 76px;
  font-size: 13px;
  line-height: 19px;
  color: #404040;
}

.sx-word {
  animation: sx-fade 220ms var(--ease-out) both;
}

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

.sx-caret {
  display: inline-block;
  width: 1.5px;
  height: 13px;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--ink);
  animation: blink 1.1s steps(1, end) infinite;
}

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

/* --- 4 · keys: press them for real --- */

.sx-keys {
  gap: 14px;
}

.sx-keys-row {
  display: flex;
  gap: 10px;
}

.sx-result {
  position: relative;
  width: var(--sx-w);
  height: 32px;
}

.sx-result > * {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  height: 32px;
  margin: 0 auto;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: var(--ink);
  font-weight: 500;
  color: var(--white);
}

.sx-result svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.sx-keys-hint {
  font-size: 12px;
  color: var(--secondary);
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.sx-keys-hint.is-shown {
  opacity: 1;
}

/* --- 5 · snooze: picked, gone overnight, back at 8:00 --- */

/* The thread is the top row of a small inbox, so every frame reads as the
 * app: the picker opens over the list like a menu, the toast floats below. */
.sx-snooze {
  justify-content: flex-start;
  padding-top: 40px;
}

.sx-snooze-list {
  width: var(--sx-w);
  overflow: hidden;
}

.sx-snooze-list > .sx-row {
  border-top: 1px solid #f2f2f2;
}

.sx-snooze-slot {
  position: relative;
  height: 44px;
}

.sx-thread {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 16px;
  background: var(--white);
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 280ms var(--ease-out),
    opacity 220ms var(--ease-out);
}

.sx-thread b {
  flex: none;
  font-weight: 600;
}

/* Short names here, so a narrower sender column leaves the subject room
 * beside the Back chip. */
.sx-snooze-list b {
  width: 96px;
}

.sx-thread-subject {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--secondary);
}

.sx-back-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(53, 151, 243, 0.12);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 200ms var(--ease-out),
    transform 240ms var(--ease-out);
}

.sx-waiting {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #fafafa;
  font-size: 12px;
  color: var(--secondary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}

.sx-waiting > i {
  display: flex;
  color: var(--blue);
}

.sx-waiting svg {
  width: 14px;
  height: 14px;
}

.sx-waiting b {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e5e5;
}

.sx-waiting b i {
  display: block;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}

.sx-waiting b i.is-running {
  transform: scaleX(1);
  transition: transform 2100ms linear;
}

.sx-picker {
  position: absolute;
  top: 80px;
  z-index: 2;
  right: calc(50% - var(--sx-w) / 2);
  width: 216px;
  padding: 4px;
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 160ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.sx-pick {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}

.sx-pick em {
  font-style: normal;
  color: var(--muted);
}

.sx-pick-hl {
  position: absolute;
  top: 4px;
  right: 4px;
  left: 4px;
  height: 30px;
  border-radius: 8px;
  background: var(--indigo-soft);
  transition: translate 160ms var(--ease-out);
}

.sx-toast {
  position: absolute;
  bottom: 20px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 4px 0 14px;
  border-radius: 999px;
  background: var(--ink);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition:
    opacity 200ms var(--ease-out),
    transform 240ms var(--ease-out);
}

.sx-toast b {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
}

.sx-toast b:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sx-picker.sx-card {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 12px 32px -8px rgba(0, 0, 0, 0.22);
}

.sx-snooze[data-state="picking"] .sx-picker {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.sx-snooze[data-state="snoozed"] .sx-thread {
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
}

.sx-snooze[data-state="snoozed"] .sx-waiting {
  opacity: 1;
}

.sx-snooze[data-state="snoozed"] .sx-toast {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.sx-snooze[data-state="back"] .sx-back-chip {
  opacity: 1;
  transform: none;
}

/* --- 9 · inbox zero: clear the rows, earn the coffee --- */

.sx-zero-list {
  transition:
    opacity 240ms var(--ease-out),
    transform 240ms var(--ease-out);
}

.sx-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px #d4d4d4;
  color: transparent;
  transition:
    background-color 150ms ease-out,
    box-shadow 150ms ease-out,
    color 150ms ease-out;
}

.sx-tick svg {
  width: 10px;
  height: 10px;
}

.sx-zero-list .sx-row:hover .sx-tick {
  box-shadow: inset 0 0 0 1.5px var(--teal);
}

.sx-zero-list .sx-row b {
  width: 92px;
}

.sx-row.is-done .sx-tick {
  background: var(--teal);
  box-shadow: none;
  color: var(--white);
}

.sx-row.is-done b,
.sx-row.is-done span {
  color: var(--muted);
}

.sx-zero.is-zero .sx-zero-list {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.sx-peace {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 300ms var(--ease-out),
    transform 360ms var(--ease-out);
}

.sx-peace img {
  width: 48px;
  height: 48px;
}

.sx-peace span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.sx-zero.is-zero .sx-peace {
  opacity: 1;
  transform: none;
  transition-delay: 120ms;
}

/* --- 10 · nudge: Monday's ask, Thursday's silence --- */

.sx-sent,
.sx-nudge-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: var(--sx-w);
  border-radius: 14px;
  background: var(--surface-dark);
  box-shadow: var(--glass);
}

.sx-sent {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.85);
}

.sx-you {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.sx-week {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: var(--sx-w);
  padding-top: 10px;
}

.sx-week span {
  font-size: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  transition: color 200ms ease-out;
}

.sx-week span.is-on {
  color: var(--white);
}

.sx-week-track {
  position: absolute;
  top: 0;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.sx-week-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 460ms var(--ease-out);
}

.sx-nudge-card {
  padding: 10px 10px 10px 14px;
  box-shadow:
    var(--glass),
    0 12px 28px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 240ms var(--ease-out),
    transform 320ms var(--ease-out);
}

.sx-nudge.is-due .sx-nudge-card {
  opacity: 1;
  transform: none;
}

.sx-nudge-clock {
  display: flex;
  color: var(--purple);
}

.sx-nudge-clock svg {
  width: 16px;
  height: 16px;
}

.sx-nudge-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.sx-nudge-text b {
  font-weight: 600;
  color: var(--white);
}

.sx-nudge-text em {
  overflow: hidden;
  font-style: normal;
  font-size: 11px;
  color: var(--purple);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-nudge-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  flex: none;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 180ms ease-out,
    color 180ms ease-out,
    transform 120ms var(--ease-out);
}

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

.sx-nudge-btn svg {
  width: 11px;
  height: 11px;
}

.sx-nudge-btn.is-ready {
  background: rgba(84, 144, 112, 0.28);
  color: #9ad7b5;
}

/* --- 6 · calendar: Today's tasks beside the week (static) --- */

.sx-cal {
  --sx-w: min(404px, calc(100% - 32px));
  --hour: 19px;
}

.sx-cal-win {
  display: flex;
  width: var(--sx-w);
  overflow: hidden;
}

.sx-cal-today {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 128px;
  flex: none;
  padding: 12px 10px 12px 14px;
  border-right: 1px solid #f0f0f0;
  background: #fbfbfb;
}

.sx-cal-today .sx-label {
  margin-bottom: 2px;
}

.sx-cal-task {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.sx-cal-task i {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px #cfcfcf;
}

.sx-cal-task.is-done {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, 0.2);
}

.sx-cal-task.is-done i {
  background: var(--teal)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.2 5 8l4-4.2'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  box-shadow: none;
}

.sx-cal-week {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 10px 10px 12px;
}

.sx-cal-days,
.sx-cal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.sx-cal-days span {
  padding: 0 4px 6px;
  font-size: 11px;
  line-height: 16px;
  color: var(--secondary);
  white-space: nowrap;
}

.sx-cal-days b {
  font-weight: 600;
  color: var(--ink);
}

.sx-cal-days .is-today b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
}

/* Seven hours, 9 to 4, with a hairline on each hour. */
.sx-cal-grid {
  height: calc(var(--hour) * 7);
  background: repeating-linear-gradient(
    to bottom,
    #f0f0f0 0 1px,
    transparent 1px var(--hour)
  );
}

.sx-cal-col {
  position: relative;
}

.sx-cal-ev {
  position: absolute;
  top: calc(var(--at) * var(--hour) + 1px);
  right: 0;
  left: 0;
  height: calc(var(--len) * var(--hour) - 2px);
  overflow: hidden;
  padding: 1px 3px 0 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-cal-ev::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 2px;
  width: 2px;
  border-radius: 999px;
  background: currentColor;
}

/* Two accounts, two hues: work is indigo, personal is teal. */
.sx-cal-ev.work {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.sx-cal-ev.home {
  background: #e7f1ec;
  color: #3f7a5b;
}

.sx-cal-ev.suggest {
  box-shadow: inset 0 0 0 1px rgba(231, 73, 38, 0.45);
  background: rgba(231, 73, 38, 0.06);
  color: var(--orange);
}

.sx-cal-ev.suggest::before {
  display: none;
}

.at-0 { --at: 0; }
.at-05 { --at: 0.5; }
.at-1 { --at: 1; }
.at-3 { --at: 3; }
.at-4 { --at: 4; }
.at-5 { --at: 5; }
.len-1 { --len: 1; }
.len-15 { --len: 1.5; }
.len-2 { --len: 2; }

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

/* A static thread keeps subject changes visible within one conversation. */
.sx-conversation {
  pointer-events: none;
}

.sx-conversation-thread {
  width: var(--sx-w);
  padding: 16px;
}

.sx-conversation-title,
.sx-conversation-message {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sx-conversation-title {
  justify-content: space-between;
  margin-bottom: 14px;
}

.sx-conversation-title > span {
  flex: none;
  font-size: 11px;
  color: var(--secondary);
}

.sx-conversation-message {
  padding: 6px 0;
}

.sx-conversation-message > b {
  flex: 0 0 30px;
}

.sx-conversation-message > span {
  color: var(--secondary);
}

.sx-conversation-change {
  margin: 6px 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--card);
  font-size: 11px;
  line-height: 16px;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .fcard-conversation {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fcard-conversation .fcard-body {
    align-items: flex-start;
    padding: 32px 40px 32px 16px;
    text-align: left;
  }
}

/* ---------------------------------------------------- feature grid: more -- */

.features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.more {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.more > summary {
  display: flex;
  justify-content: center;
  padding-top: 8px;
  cursor: pointer;
  list-style: none;
}

.more > summary::-webkit-details-marker {
  display: none;
}

/* Expanding is one-way on purpose: a trigger stranded between two grids reads
 * worse than losing the ability to collapse. */
.more[open] > summary {
  display: none;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: background-color 150ms ease-out;
}

.more > summary:hover .more-btn {
  background: var(--page);
}

.more-btn svg {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------ product highlights */

/* Three short stories, one per highlight; the open step picks the figure via
 * the shared .split :has() rules. They share the feature cards' surface
 * (--sx-surface) and type floor (11px), at a slightly larger scale. The
 * markup is each story's final frame; the "story" block below rewinds it. */

.highlights-split .step summary h3 {
  text-wrap: balance;
}

.split-art.highlight-art {
  height: 440px;
}

.highlight-illustration {
  position: relative;
  width: min(100% - 32px, 400px);
  user-select: none;
  pointer-events: none;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.highlight-illustration strong {
  font-weight: 600;
}

.highlight-illustration small {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--secondary);
}

.highlight-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--secondary);
}

.highlight-caption > span {
  color: var(--teal);
  font-weight: 600;
}

/* --- 1 · sign-in code --- */

/* A desktop wallpaper behind the code story, so the browser and the notice
 * read as windows on a real screen. Pure gradients: no image to load. */
.split-fig:has(> .code-illustration) {
  background:
    radial-gradient(70% 60% at 8% 4%, rgba(255, 196, 140, 0.95), transparent 70%),
    radial-gradient(60% 55% at 96% 12%, rgba(244, 134, 178, 0.9), transparent 70%),
    radial-gradient(75% 65% at 88% 98%, rgba(98, 92, 230, 0.95), transparent 70%),
    radial-gradient(70% 60% at 6% 96%, rgba(56, 178, 196, 0.9), transparent 70%),
    linear-gradient(140deg, #f6b98e 0%, #d99ac9 45%, #8a86e8 100%);
}

.code-illustration .highlight-caption,
.code-illustration .highlight-caption > span {
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* A real Chrome window on GitHub's sign-in flow: tab strip, omnibox, and
 * GitHub's own type, colors, and octicons, scaled to fit the figure. */
.gh-browser {
  --gh-fg: #1f2328;
  --gh-muted: #59636e;
  --gh-border: #d1d9e0;
  --gh-subtle: #f6f8fa;
  --gh-accent: #0969da;
  --gh-green: #1f883d;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 24px 48px -16px rgba(0, 0, 0, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  color: var(--gh-fg);
}

.gh-defs {
  position: absolute;
}

.gh-tabstrip {
  display: flex;
  align-items: flex-end;
  height: 34px;
  padding: 0 10px;
  background: #dfe3e8;
}

.gh-lights {
  display: flex;
  gap: 6px;
  align-self: center;
  margin-right: 12px;
}

.gh-lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

.gh-lights i:nth-child(2) { background: #febc2e; }
.gh-lights i:nth-child(3) { background: #28c840; }

.gh-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 188px;
  height: 27px;
  padding: 0 8px 0 10px;
  border-radius: 8px 8px 0 0;
  background: var(--white);
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
}

/* Chrome's flared tab corners. */
.gh-tab::before,
.gh-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 8px;
}

.gh-tab::before {
  left: -8px;
  background: radial-gradient(circle at 0 0, transparent 7.5px, var(--white) 8px);
}

.gh-tab::after {
  right: -8px;
  background: radial-gradient(circle at 100% 0, transparent 7.5px, var(--white) 8px);
}

.gh-tab > .highlight-stack {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.gh-tab > .highlight-stack > * {
  overflow: hidden;
  text-overflow: ellipsis;
}

.gh-favicon {
  position: relative;
  display: grid;
  width: 13px;
  height: 13px;
  flex: none;
}

.gh-favicon svg {
  width: 13px;
  height: 13px;
  fill: var(--gh-fg);
}

/* Chrome swaps the favicon for a spinner while the page loads. */
.gh-favicon i {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(26, 115, 232, 0.2);
  border-top-color: #1a73e8;
  border-radius: 50%;
  opacity: 0;
  animation: gh-spin 700ms linear infinite;
}

@keyframes gh-spin {
  to { rotate: 1turn; }
}

.gh-tab-close {
  width: 12px;
  height: 12px;
  flex: none;
  fill: none;
  stroke: #5f6368;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.gh-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 10px;
  border-bottom: 1px solid #e3e3e3;
}

.gh-toolbar > svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: #5f6368;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gh-toolbar > svg.is-off {
  stroke: #c4c7c5;
}

.gh-omnibox {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 22px;
  margin-left: 2px;
  padding: 0 10px;
  border-radius: 11px;
  background: #f0f2f4;
  font-size: 11px;
  white-space: nowrap;
  color: #1f1f1f;
}

.gh-omnibox svg {
  width: 11px;
  height: 11px;
  flex: none;
  fill: none;
  stroke: #474747;
  stroke-width: 2;
  stroke-linecap: round;
}

.gh-omnibox .highlight-stack {
  min-width: 0;
  overflow: hidden;
}

.gh-omnibox em {
  font-style: normal;
  color: #6b6b6b;
}

.gh-viewport {
  position: relative;
  height: 290px;
  overflow: hidden;
}

/* GitHub's Turbo progress bar along the top of the page. */
.gh-progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 2px;
  background: var(--gh-accent);
  transform-origin: 0 0;
  scale: 0 1;
}

.gh-viewport > .highlight-pages {
  height: 100%;
}

.gh-viewport > .highlight-pages > * {
  align-self: stretch;
}

.gh-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
}

.gh-logo {
  width: 28px;
  height: 28px;
  fill: var(--gh-fg);
}

.gh-auth h4 {
  margin: 10px 0 10px;
  font-size: 17px;
  line-height: 22px;
  font-weight: 300;
  letter-spacing: -0.3px;
}

.gh-box {
  display: flex;
  flex-direction: column;
  width: 236px;
  padding: 12px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-subtle);
}

.gh-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
}

.gh-label em,
.gh-foot em {
  font-style: normal;
  font-weight: 400;
  color: var(--gh-accent);
}

.gh-label em {
  font-size: 10.5px;
}

.gh-input {
  position: relative;
  display: flex;
  align-items: center;
  height: 26px;
  margin-bottom: 10px;
  padding: 0 8px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--white);
  font-size: 11.5px;
  white-space: nowrap;
  transition:
    border-color 80ms linear,
    box-shadow 80ms linear;
}

.gh-pass .gh-text {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.gh-caret {
  width: 1px;
  height: 13px;
  margin-left: 1px;
  background: var(--gh-fg);
  opacity: 0;
}

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

.gh-btn {
  display: grid;
  justify-items: center;
  align-items: center;
  height: 26px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--gh-green);
  box-shadow: inset 0 0 0 1px rgba(31, 35, 40, 0.15);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--white);
  transition:
    scale 110ms var(--ease-out),
    opacity 120ms linear;
}

.gh-foot {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 16px;
}

.gh-note {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 10.5px;
  line-height: 15px;
  color: var(--gh-muted);
}

.gh-note svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
  fill: var(--gh-muted);
}

.gh-note b {
  font-weight: 600;
  color: var(--gh-fg);
}

.gh-otp {
  letter-spacing: 0.08em;
}

.gh-placeholder {
  color: #818b98;
}

/* github.com: the signed-in dashboard. */
.gh-dash {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 15px;
}

.gh-header {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid var(--gh-border);
  background: var(--gh-subtle);
}

.gh-iconbtn {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
}

.gh-iconbtn svg {
  width: 11px;
  height: 11px;
  fill: var(--gh-muted);
}

.gh-header-mark {
  width: 22px;
  height: 22px;
  fill: var(--gh-fg);
}

.gh-header b {
  font-weight: 600;
}

.gh-search {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  height: 22px;
  margin-left: auto;
  padding: 0 7px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--white);
  font-size: 10px;
  color: var(--gh-muted);
}

.gh-search svg {
  width: 10px;
  height: 10px;
  fill: var(--gh-muted);
}

.gh-search kbd {
  padding: 0 4px;
  border: 1px solid var(--gh-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 9px;
  line-height: 12px;
}

.gh-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(31, 35, 40, 0.15);
}

.gh-dash-body {
  display: grid;
  flex: 1;
  grid-template-columns: 150px 1fr;
  min-height: 0;
}

.gh-side {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 10px;
  border-right: 1px solid var(--gh-border);
}

.gh-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gh-side-head b,
.gh-feed-head {
  font-weight: 600;
  white-space: nowrap;
}

.gh-new {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--gh-green);
  font-size: 10px;
  font-weight: 500;
  color: var(--white);
}

.gh-new svg {
  width: 9px;
  height: 9px;
  fill: currentColor;
}

.gh-filter {
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--gh-border);
  border-radius: 5px;
  font-size: 9.5px;
  line-height: 18px;
  color: #818b98;
}

.gh-repo {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}

.gh-repo img,
.gh-card-top img {
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.gh-repo img {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.gh-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--gh-subtle);
}

.gh-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--white);
}

.gh-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gh-muted);
}

.gh-card-top img {
  width: 16px;
  height: 16px;
}

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

.gh-card-pr {
  display: flex;
  gap: 6px;
}

.gh-card-pr svg {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 1px;
  fill: var(--gh-green);
}

.gh-card:nth-of-type(2) .gh-card-pr svg {
  fill: var(--gh-muted);
}

.gh-card-pr > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gh-card-pr small {
  font-size: 10px;
  line-height: 14px;
  color: var(--gh-muted);
}

.gh-card-pr b {
  font-weight: 600;
}

.gh-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--gh-muted);
}

.gh-card-meta i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3178c6;
}

/* The real CodeNotice: a 64px raised card, sender line, tabular code, and a
 * ringed Copy chip. Clicking it copies the code, archives the email, and
 * closes the card. Docked bottom-right, where the desktop notice lands. */
.highlight-notice {
  position: absolute;
  right: -12px;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 248px;
  height: 64px;
  padding: 0 10px 0 16px;
  border-radius: 12px;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 10px 15px -3px rgba(0, 0, 0, 0.12),
    0 4px 6px -4px rgba(0, 0, 0, 0.12);
}

.highlight-notice > div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.highlight-notice > div > span {
  font-size: 12px;
  color: #737373;
}

.highlight-notice strong {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.025em;
  font-variant-numeric: tabular-nums;
}

.highlight-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px #e5e5e5;
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  color: #404040;
}

.highlight-copy svg {
  width: 12px;
  height: 12px;
}

/* The toast-style X that appears on the card's top-left corner on hover. */
.highlight-notice-close {
  position: absolute;
  top: -6px;
  left: -6px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1px #e5e5e5;
  color: #737373;
  opacity: 0;
  transition: opacity 120ms var(--ease-out);
}

.highlight-notice-close svg {
  width: 10px;
  height: 10px;
}


/* --- 2 & 3 · Wingman app windows ---
 * The real desktop app, scaled to fit: the icon rail carries the macOS
 * window controls (no title bar), then the view. Colors are the app's
 * tokens; each figure sits on its own wallpaper like the code story. */

.split-fig:has(> .trip-illustration) {
  background:
    radial-gradient(70% 60% at 6% 6%, rgba(86, 140, 230, 0.95), transparent 70%),
    radial-gradient(60% 55% at 96% 8%, rgba(150, 196, 255, 0.9), transparent 70%),
    radial-gradient(80% 65% at 92% 100%, rgba(255, 190, 140, 0.95), transparent 70%),
    radial-gradient(70% 60% at 4% 98%, rgba(255, 150, 160, 0.85), transparent 70%),
    linear-gradient(160deg, #7aa7ee 0%, #c4b8e8 50%, #f6c3a0 100%);
}

.split-fig:has(> .automation-illustration) {
  background:
    radial-gradient(70% 60% at 6% 6%, rgba(120, 214, 170, 0.95), transparent 70%),
    radial-gradient(60% 55% at 96% 10%, rgba(92, 176, 214, 0.9), transparent 70%),
    radial-gradient(80% 65% at 92% 100%, rgba(74, 84, 196, 0.95), transparent 70%),
    radial-gradient(70% 60% at 4% 98%, rgba(64, 160, 150, 0.9), transparent 70%),
    linear-gradient(150deg, #8fdcbb 0%, #6cb4cf 50%, #5a63cf 100%);
}

.trip-illustration .highlight-caption,
.trip-illustration .highlight-caption > span,
.automation-illustration .highlight-caption,
.automation-illustration .highlight-caption > span {
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* The trip window runs wider and taller than the others: the flight card
 * carries the most text, and the map needs headroom above the route. */
.trip-illustration {
  width: min(100% - 32px, 480px);
}

.trip-illustration .app-window {
  height: 362px;
}

.app-window {
  --wm-ink: #171717;
  --wm-dim: #404040;
  --wm-soft: #737373;
  --wm-muted: #a3a3a3;
  --wm-edge: #e5e5e5;
  --wm-sunken: #fafafa;
  --wm-muted-bg: #f5f5f5;
  display: flex;
  height: 340px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 24px 48px -16px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 11px;
  line-height: 15px;
  letter-spacing: -0.005em;
  color: var(--wm-ink);
}

.app-rail {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 46px;
  padding: 10px 0 10px;
  border-right: 1px solid var(--wm-muted-bg);
  background: var(--wm-sunken);
}

.app-rail .gh-lights {
  gap: 4px;
  margin: 0 0 6px;
}

.app-rail .gh-lights i {
  width: 8px;
  height: 8px;
}

.app-rail-avatar {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px var(--white), 0 0 0 2.5px var(--wm-edge);
}

.app-rail-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--wm-soft);
  transition:
    background-color 120ms linear,
    box-shadow 120ms linear,
    color 120ms linear,
    scale 110ms var(--ease-out);
}

.app-rail-btn.is-active {
  background: var(--white);
  box-shadow: 0 0 0 1px var(--wm-edge), 0 1px 2px rgba(0, 0, 0, 0.06);
  color: var(--wm-ink);
}

.app-rail-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-rail-sep {
  width: 14px;
  height: 1px;
  margin: 2px 0;
  background: var(--wm-edge);
}

.app-rail-bottom {
  margin-top: auto;
}

.app-pages {
  display: grid;
  flex: 1;
  min-width: 0;
}

.app-pages > * {
  grid-area: 1 / 1;
  min-width: 0;
}

.app-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.wm-tabs {
  display: flex;
  flex: none;
  align-items: baseline;
  gap: 12px;
  height: 36px;
  padding: 11px 14px 0;
  font-size: 11.5px;
  white-space: nowrap;
  color: var(--wm-muted);
}

.wm-tabs b {
  font-weight: 600;
  color: var(--wm-ink);
}

.wm-tabs small {
  display: inline;
  margin-left: 3px;
  font-size: 8.5px;
  font-weight: 400;
  color: var(--wm-muted);
}

/* Inbox: the same rows as the app's list. */
.wm-row {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 14px;
  white-space: nowrap;
  transition: background-color 200ms linear;
}

.wm-row > b {
  width: 70px;
  flex: none;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
}

.trip-illustration .wm-row > b {
  width: 84px;
}

.wm-row > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
}

.wm-row em {
  font-style: normal;
  font-weight: 400;
  color: var(--wm-muted);
}

.wm-row time {
  width: 44px;
  flex: none;
  text-align: right;
  font-size: 9.5px;
  color: var(--wm-muted);
}

/* Booking emails get a small trip mark as Wingman recognises them. */
.wm-trip-chip {
  display: grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--indigo-soft);
  color: var(--indigo);
  transition:
    opacity 200ms var(--ease-out),
    scale 260ms var(--ease-out);
}

.wm-trip-chip svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Rows leave the inbox by folding away: they slide right as their height
 * closes, so the list visibly gets shorter. */
.wm-row {
  overflow: hidden;
  transition:
    background-color 200ms linear,
    height 300ms var(--ease-out),
    opacity 220ms var(--ease-out),
    translate 300ms var(--ease-out);
}

.trip-illustration .wm-row:is(.b1, .b2, .b3, .b4),
.automation-illustration .wm-row.inv {
  height: 0;
  opacity: 0;
  translate: 24px 0;
}

.app-rail-btn {
  position: relative;
}

/* Count on the rail icon: where the booking emails went. */
.wm-badge {
  position: absolute;
  top: -2px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--indigo);
  box-shadow: 0 0 0 1.5px var(--wm-sunken);
  font-size: 8px;
  line-height: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--white);
  transition:
    opacity 200ms var(--ease-out),
    scale 260ms var(--ease-out);
}

/* The narrating notice: what Wingman just did, in one line. */
.app-pages,
.app-page {
  position: relative;
}

.wm-toast {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  transition:
    opacity 220ms var(--ease-out),
    translate 260ms var(--ease-out);
}

.wm-toast-line {
  display: flex;
  grid-area: 1 / 1;
  align-items: center;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--white);
  box-shadow:
    0 0 0 1px var(--wm-edge),
    0 10px 24px -8px rgba(0, 0, 0, 0.22);
  transition: opacity 180ms linear;
}

.wm-toast-line > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  white-space: nowrap;
}

.wm-toast-line b {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
}

.wm-toast-line small {
  overflow: hidden;
  font-size: 9.5px;
  line-height: 13px;
  text-overflow: ellipsis;
  color: var(--wm-soft);
}

.wm-act svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Status on an invoice row while Wingman handles it. */
.wm-act {
  flex: none;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--wm-edge);
  font-size: 9px;
  font-weight: 500;
  color: var(--teal);
  transition: opacity 160ms linear;
}

.wm-row > span.wm-act {
  flex: none;
  overflow: visible;
}

.wm-act .is-idle {
  color: var(--wm-soft);
}

.wm-act svg {
  width: 10px;
  height: 10px;
}

/* A small ring that spins while Wingman reads an email. */
.wm-reading {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--wm-edge);
  border-top-color: var(--indigo);
  border-radius: 50%;
  animation: gh-spin 700ms linear infinite;
}

/* Trips: the hero map (generated from the app's own world map), then the
 * day's flight card exactly as Trips draws it. */
.wm-trips {
  gap: 7px;
  padding: 10px 14px 0;
}

.wm-hero {
  position: relative;
  flex: none;
  height: 140px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--wm-sunken);
  box-shadow: inset 0 0 0 1px var(--wm-edge);
}

.wm-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The land fades out toward the bottom (wm-land-fade in the markup) so the
 * trip's name and dates sit on clear ground while the route stays crisp. */
.wm-land {
  fill: none;
  stroke: rgba(115, 115, 115, 0.42);
  stroke-width: 0.6;
  stroke-linecap: round;
  stroke-dasharray: 0 1;
}

/* Stroke in viewBox units: non-scaling-stroke breaks the dash draw-on. */
.wm-arc {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 0.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 900ms cubic-bezier(0.65, 0, 0.35, 1);
}

.wm-pin {
  fill: var(--white);
  stroke: var(--indigo);
}

.wm-map text {
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: var(--wm-ink);
}

.wm-hero-text {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: flex;
  flex-direction: column;
}

.wm-eyebrow {
  font-size: 8px;
  line-height: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
}

.wm-hero-text strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wm-flag {
  width: 17px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}

.wm-hero-text > span {
  font-size: 10px;
  color: var(--wm-soft);
}

.wm-with {
  position: absolute;
  right: 12px;
  bottom: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.wm-with-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px var(--white);
}

.wm-with > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 12px;
}

.wm-with small {
  font-size: 8.5px;
  color: var(--wm-soft);
}

.wm-with b {
  font-size: 9.5px;
  font-weight: 500;
}

.wm-date {
  margin-top: 2px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wm-muted);
}

.wm-flight {
  flex: none;
  border-radius: 10px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px #c7c9ef;
  transition:
    opacity 260ms var(--ease-out),
    translate 260ms var(--ease-out);
}

.wm-flight-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 0;
}

.wm-airline {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--wm-edge);
  object-fit: contain;
}

.wm-carrier {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  white-space: nowrap;
}

.wm-carrier b {
  font-weight: 600;
}

.wm-carrier small {
  overflow: hidden;
  font-size: 9.5px;
  line-height: 13px;
  text-overflow: ellipsis;
  color: var(--wm-soft);
}

.wm-ref {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--wm-edge);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  color: var(--wm-dim);
}

.wm-ref svg {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: var(--wm-muted);
  stroke-width: 2;
}

.wm-legs {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
}

.wm-legs > div:not(.wm-line) {
  display: flex;
  flex-direction: column;
}

.wm-legs .is-end {
  align-items: flex-end;
  text-align: right;
}

.wm-legs strong {
  font-size: 19px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wm-legs span {
  font-size: 10.5px;
  font-weight: 600;
}

.wm-legs em {
  font-style: normal;
  font-size: 8.5px;
  font-weight: 400;
  color: var(--wm-muted);
}

.wm-legs small {
  font-size: 9px;
  color: var(--wm-soft);
}

.wm-line {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 4px;
  height: 22px;
}

.wm-line i {
  flex: 1;
  border-top: 1px dashed #d4d4d4;
}

.wm-line svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.wm-line small {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% -2px;
  white-space: nowrap;
}

.wm-flight-foot,
.wm-flight-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-top: 1px dashed var(--wm-edge);
  font-size: 9.5px;
  white-space: nowrap;
  color: var(--wm-soft);
}

.wm-flight-actions {
  gap: 6px;
  border-top-style: solid;
}

.wm-flight-foot b {
  font-weight: 600;
  color: var(--wm-ink);
}

.wm-connect {
  margin-left: auto;
}

/* Check-in happens on the airline's site; this confirms it went through. */
.wm-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--teal);
  transition:
    opacity 180ms var(--ease-out),
    translate 180ms var(--ease-out);
}

.wm-check i {
  display: grid;
  place-items: center;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
}

.wm-check svg {
  width: 8px;
  height: 8px;
  fill: none;
  stroke: var(--white);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wm-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  background: var(--wm-ink);
  color: var(--white);
  transition: scale 110ms var(--ease-out);
}

.wm-btn-dark svg {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wm-quiet {
  margin-left: auto;
  font-size: 9px;
  color: var(--wm-muted);
}

/* --- highlight stories ---
 * landing.js arms a figure (.is-armed) and then adds one class per beat, in
 * order, so every rule reads "armed and not yet at beat X → earlier state".
 * Unarmed (no JS) and reduced motion show the final frame. Positions use
 * container units so the cursor lands on the same control at any width. */

.code-illustration,
.trip-illustration,
.automation-illustration {
  container-type: inline-size;
}

.highlight-art .is-rewind,
.highlight-art .is-rewind * {
  transition: none !important;
}

/* Two labels stacked in one cell; the old one lifts out as the new one rises. */
.highlight-swap {
  display: inline-grid;
}

.highlight-swap > * {
  display: inline-flex;
  grid-area: 1 / 1;
  align-items: center;
  gap: 4px;
  transition:
    opacity 180ms var(--ease-out),
    translate 180ms var(--ease-out);
}

.highlight-swap > .is-idle {
  opacity: 0;
  translate: 0 -4px;
}

.highlight-caption.highlight-swap {
  display: grid;
  justify-items: center;
}

.highlight-caption.highlight-swap > * {
  gap: 6px;
  font-weight: inherit;
  color: inherit;
}

.highlight-caption .is-done > span {
  color: var(--teal);
  font-weight: 600;
}

.highlight-caption,
.highlight-notice {
  transition:
    opacity 260ms var(--ease-out),
    translate 260ms var(--ease-out),
    scale 260ms var(--ease-out);
}

/* The pointer glides between controls and dips on each click. */
.highlight-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 22px;
  height: 22px;
  opacity: 0;
  translate: calc(60cqw - 4px) 210px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  transition:
    opacity 180ms var(--ease-out),
    translate 640ms cubic-bezier(0.45, 0, 0.2, 1),
    scale 110ms var(--ease-out);
}

.highlight-cursor svg {
  width: 100%;
  height: 100%;
  fill: var(--ink);
  stroke: var(--white);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

/* 1 · code: type the login → Sign in → the notice lands → click copies and
 * closes it → paste → GitHub verifies and opens the dashboard. The cursor's
 * targets are measured by landing.js and handed over as --cx/--cy. */

.highlight-stack {
  display: inline-grid;
}

.highlight-stack > * {
  grid-area: 1 / 1;
  transition:
    opacity 220ms var(--ease-out),
    translate 220ms var(--ease-out),
    visibility 220ms;
}

.highlight-pages {
  display: grid;
}

.highlight-pages > * {
  align-self: center;
}

/* Pages in order: login, verification, signed in. Unarmed shows the last.
 * A browser swaps documents at once, so nothing crossfades. */
.code-illustration .p-login,
.code-illustration .p-verify,
.is-armed:not(.signed-in) .p-done {
  opacity: 0;
  visibility: hidden;
}

.is-armed:not(.verify-page) .p-login,
.is-armed.verify-page:not(.signed-in) .p-verify {
  opacity: 1;
  visibility: visible;
}

.gh-browser .highlight-stack > *,
.gh-browser .highlight-swap > * {
  transition: none;
}

/* Loading: favicon spinner and the progress bar, once per navigation. */
.signing-in:not(.verify-page) .gh-favicon svg,
.verifying:not(.signed-in) .gh-favicon svg {
  opacity: 0;
}

.signing-in:not(.verify-page) .gh-favicon i,
.verifying:not(.signed-in) .gh-favicon i {
  opacity: 1;
}

.signing-in .gh-progress.n1,
.verifying .gh-progress.n2 {
  scale: 0.8 1;
  transition: scale 900ms cubic-bezier(0.1, 0.6, 0.3, 1);
}

.verify-page .gh-progress.n1,
.signed-in .gh-progress.n2 {
  scale: 1 1;
  opacity: 0;
  transition:
    scale 120ms linear,
    opacity 180ms linear 120ms;
}

/* Focus: GitHub's blue field ring and a blinking caret. */
.focus-user:not(.focus-pass) .gh-user,
.focus-pass:not(.signing-in) .gh-pass,
.verify-page:not(.verifying) .gh-otp {
  border-color: var(--gh-accent);
  box-shadow: inset 0 0 0 1px var(--gh-accent);
}

.focus-user:not(.focus-pass) .gh-user .gh-caret,
.focus-pass:not(.signing-in) .gh-pass .gh-caret,
.verify-page:not(.verifying) .gh-otp .gh-caret {
  opacity: 1;
  animation: gh-blink 1s step-end infinite;
}

.signing-in .gh-signin,
.verifying .gh-verify {
  opacity: 0.6;
}

.press-signin:not(.signing-in) .gh-signin {
  scale: 0.97;
}

.is-armed:not(.pasted) .gh-value,
.pasted .gh-placeholder {
  display: none;
}

.code-illustration .highlight-notice {
  opacity: 0;
  translate: 24px 0;
  transition:
    opacity 260ms var(--ease-out),
    translate 260ms var(--ease-out),
    scale 260ms var(--ease-out),
    background-color 120ms linear;
}

.notice:not(.notice-gone) .highlight-notice {
  opacity: 1;
  translate: 0 0;
}

.notice-gone .highlight-notice {
  scale: 0.96;
  transition-duration: 180ms;
}

.hover-notice .highlight-notice {
  background: #f5f5f5;
}

.hover-notice .highlight-notice-close {
  opacity: 1;
}

.hover-notice .highlight-copy {
  background: #ebebeb;
  color: var(--ink);
}

.highlight-copy {
  transition:
    scale 110ms var(--ease-out),
    background-color 120ms linear;
}

.press-copy:not(.notice-gone) .highlight-copy {
  scale: 0.94;
}

.code-illustration .highlight-cursor {
  translate: var(--cx, calc(78cqw - 4px)) var(--cy, 150px);
}

.code-illustration.is-armed.cursor:not(.paste-key) .highlight-cursor {
  opacity: 1;
}

.press-user:not(.focus-user) .highlight-cursor,
.press-pass:not(.focus-pass) .highlight-cursor,
.press-signin:not(.signing-in) .highlight-cursor,
.press-copy:not(.notice-gone) .highlight-cursor,
.press-trips:not(.trips) .highlight-cursor,
.press-check:not(.checked) .highlight-cursor {
  scale: 0.86;
}

.is-armed:not(.signing-in) .gh-signin > .is-idle,
.is-armed:not(.verifying) .gh-verify > .is-idle,
.is-armed:not(.done) .highlight-caption > .is-idle,
.is-armed:not(.acted) .inv .wm-act .is-idle {
  opacity: 1;
  translate: 0 0;
}

.is-armed:not(.signing-in) .gh-signin > .is-done,
.is-armed:not(.verifying) .gh-verify > .is-done,
.is-armed:not(.done) .highlight-caption > .is-done,
.is-armed:not(.acted) .inv .wm-act .is-done {
  opacity: 0;
  translate: 0 4px;
}

/* The keystroke, shown inside the field's right edge while it lands. */
.highlight-paste-key {
  position: absolute;
  top: 50%;
  right: 4px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--ink);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--white);
  opacity: 0;
  translate: 0 -50%;
  scale: 0.9;
  transition:
    opacity 160ms var(--ease-out),
    scale 160ms var(--ease-out);
}

.paste-key:not(.verifying) .highlight-paste-key {
  opacity: 1;
  scale: 1;
}

.is-armed:not(.done) > .highlight-caption:not(.highlight-swap) {
  opacity: 0;
  translate: 0 4px;
}


/* 2 · trip: booking emails are recognised, fold out of the inbox into
 * Trips (the rail icon counts them, Important drops to the two left), Trips
 * opens, the route draws, and Check in confirms on the airline's site. */

.trip-illustration .p-inbox,
.trip-illustration.is-armed:not(.trips) .p-trips {
  visibility: hidden;
}

.trip-illustration.is-armed:not(.trips) .p-inbox {
  visibility: visible;
}

.trip-illustration .wm-rail-trips,
.trip-illustration.is-armed:not(.trips) .wm-rail-mail {
  background: var(--white);
  box-shadow: 0 0 0 1px var(--wm-edge), 0 1px 2px rgba(0, 0, 0, 0.06);
  color: var(--wm-ink);
}

.trip-illustration .wm-rail-mail,
.trip-illustration.is-armed:not(.trips) .wm-rail-trips {
  background: transparent;
  box-shadow: none;
  color: var(--wm-soft);
}

.press-trips:not(.trips) .wm-rail-trips,
.press-check:not(.checked) .wm-btn-dark {
  scale: 0.88;
}

.is-armed:not(.found-1) .b1 .wm-trip-chip,
.is-armed:not(.found-2) .b2 .wm-trip-chip,
.is-armed:not(.found-3) .b3 .wm-trip-chip,
.is-armed:not(.found-4) .b4 .wm-trip-chip {
  opacity: 0;
  scale: 0.5;
}

.trip-illustration.is-armed:not(.filed) .wm-row:is(.b1, .b2, .b3, .b4) {
  height: 28px;
  opacity: 1;
  translate: 0 0;
}

.trip-illustration .wm-row.b2 { transition-delay: 60ms; }
.trip-illustration .wm-row.b3 { transition-delay: 120ms; }
.trip-illustration .wm-row.b4 { transition-delay: 180ms; }

.trip-illustration.is-armed:not(.filed) .wm-badge,
.trip-illustration .wm-badge,
.trip-illustration .wm-toast {
  opacity: 0;
  scale: 0.6;
}

.trip-illustration .wm-toast {
  scale: 1;
  translate: 0 8px;
}

.trip-illustration.filed:not(.trips) .wm-badge {
  opacity: 1;
  scale: 1;
}

.trip-illustration.filed:not(.trips) .wm-toast {
  opacity: 1;
  translate: 0 0;
}

.is-armed:not(.route) .wm-arc {
  stroke-dashoffset: 1;
}

.is-armed:not(.flight) .wm-flight {
  opacity: 0;
  translate: 0 8px;
}

.is-armed:not(.checked) .wm-check {
  opacity: 0;
  translate: -4px 0;
}

/* 3 · automation: no clicks. Every handled email is read together, acted
 * on together, and the batch folds out of the inbox in one sweep while the
 * notice says what happened; the Important count drops with it. */

.automation-illustration.is-armed:not(.gone) .inv {
  height: 28px;
  opacity: 1;
  translate: 0 0;
}

.automation-illustration .i2 { transition-delay: 40ms; }
.automation-illustration .i3 { transition-delay: 80ms; }
.automation-illustration .i4 { transition-delay: 120ms; }
.automation-illustration .i5 { transition-delay: 160ms; }

.read:not(.gone) .inv {
  background: var(--indigo-soft);
}

.is-armed:not(.read) .inv .wm-act {
  opacity: 0;
}

.automation-illustration.is-armed:not(.say) .wm-toast {
  opacity: 0;
  translate: 0 8px;
}

/* Two stacked counts, before and after; the markup's last one is the final
 * frame. Specificity beats the generic .wm-tabs small rule. */
.wm-tabs .wm-count {
  display: inline-grid;
}

.wm-count > span {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 160ms linear;
}

.wm-count > :last-child,
.trip-illustration.is-armed:not(.filed) .wm-count > :first-child,
.automation-illustration.is-armed:not(.gone) .wm-count > :first-child {
  opacity: 1;
}

.trip-illustration.is-armed:not(.filed) .wm-count > :last-child,
.automation-illustration.is-armed:not(.gone) .wm-count > :last-child {
  opacity: 0;
}

/* Shared: the cursor shows once a story calls for it. */
.trip-illustration.is-armed.cursor .highlight-cursor {
  opacity: 1;
}

.trip-illustration .highlight-cursor {
  translate: var(--cx, calc(70cqw - 4px)) var(--cy, 200px);
}

/* Replay sits in the corner of the art, revealed on hover or focus. */
.highlight-art .fx-replay {
  z-index: 4;
}

.highlight-art:hover .fx-replay {
  opacity: 1;
}

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

@media (max-width: 480px) {
  .split-art.highlight-art {
    height: 452px;
    border-radius: 24px;
  }

  .highlight-illustration {
    width: calc(100% - 24px);
  }

  .highlight-notice {
    right: -4px;
    width: 232px;
  }

  .gh-tab {
    width: 150px;
  }

  /* GitHub's narrow layout: no sidebar, search collapses to its icon. */
  .gh-dash-body {
    grid-template-columns: 1fr;
  }

  .gh-side,
  .gh-search > :not(svg) {
    display: none;
  }

  .gh-search {
    font-size: 0;
  }

  .wm-tabs > :nth-child(n + 4) {
    display: none;
  }

  /* A narrow hero slices the map horizontally; keep the window short and
   * the map in the hero's top band so both ends of the route stay in view
   * above the trip's name. */
  .trip-illustration .app-window {
    height: 340px;
  }

  .wm-hero {
    height: 112px;
  }

  .wm-map {
    height: 88px;
  }

  .wm-row > b {
    width: 54px;
  }

  .wm-flight-foot > span:nth-child(2),
  .wm-quiet,
  .wm-with > span:last-child,
  .wm-row time {
    display: none;
  }
}

@media (min-width: 1024px) {
  .split.highlights-split { gap: 64px; }
  .highlights-split > .steps { width: 42%; }
  .highlights-split > .highlight-art { flex: 1; min-width: 0; width: auto; }
}

/* --------------------------------------------------------------- how it -- */

.split {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
}

@media (min-width: 1024px) {
  .split {
    flex-direction: row;
    gap: 104px;
  }
}

.steps {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: none;
}

@media (min-width: 1024px) {
  .steps {
    width: 424px;
  }
}

.step {
  position: relative;
  width: 100%;
  border-bottom: 1px solid rgba(231, 231, 231, 0.9);
}

.step.first {
  border-top: 1px solid rgba(231, 231, 231, 0.9);
}

/* The row padding lives on the summary, not the details, so the whole row is
 * the hit target rather than just the badge and the title text. */
.step summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 24px;
  cursor: pointer;
  list-style: none;
}

/* Keeps the gap to the open body at the original 12px. */
.step[open] summary {
  padding-bottom: 12px;
}

.step summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.step summary h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--secondary);
  transition: color 300ms ease-out;
}

.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--secondary);
  transition: background-color 300ms ease-out, color 300ms ease-out;
}

.step:hover .step-badge,
.step[open] .step-badge {
  background: var(--ink);
  color: var(--white);
}

.step[open] summary h3 {
  color: var(--ink);
}

.step-body {
  padding-bottom: 24px;
}

.step-body p,
.faq-a p {
  max-width: 800px;
  line-height: 28px;
  color: var(--secondary);
}

.split-art {
  position: relative;
  width: 100%;
  height: 360px;
  flex: none;
  overflow: hidden;
  border-radius: 32px;
}

@media (min-width: 1024px) {
  .split-art {
    width: 512px;
  }
}

/* Each step has its own figure stacked in the same box; the open step decides
 * which is visible. Without :has() the first stays on, which is the old
 * single-illustration behaviour. */
.split-fig {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  background: var(--card);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 180ms ease-out,
    visibility 180ms;
}

.split-fig:first-child {
  opacity: 1;
  visibility: visible;
}

.split:has(.step:nth-of-type(2)[open]) .split-fig:first-child,
.split:has(.step:nth-of-type(3)[open]) .split-fig:first-child {
  opacity: 0;
  visibility: hidden;
}

.split:has(.step:nth-of-type(2)[open]) .split-fig:nth-child(2),
.split:has(.step:nth-of-type(3)[open]) .split-fig:nth-child(3) {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .split-fig {
    transition: none;
  }
}

.split-fig .sx {
  gap: 24px;
}

/* --- step 1 · Gmail → this device, and nothing to us --- */

.sx-net {
  display: flex;
  align-items: flex-start;
  width: min(436px, 100% - 24px);
}

.sx-node {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.sx-node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--sx-surface);
  color: var(--ink);
}

.sx-node-icon svg {
  width: 22px;
  height: 22px;
}

.sx-node.device .sx-node-icon {
  background: var(--ink);
  color: var(--white);
}

.sx-node.ours .sx-node-icon {
  border: 1.5px dashed #c8c8c8;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}

.sx-node b {
  font-weight: 600;
}

.sx-node em {
  font-style: normal;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--secondary);
  transition: color 200ms ease-out;
}

.sx-node.ours em {
  font-weight: 600;
  color: var(--orange);
}

.sx-mirror.is-synced .sx-node.device em {
  color: var(--teal);
}

.sx-wire {
  position: relative;
  width: 56px;
  height: 2px;
  flex: 0 1 56px;
  min-width: 20px;
  margin-top: 25px;
  border-radius: 999px;
}

.sx-wire.live {
  background: #d4d4d4;
}

.sx-wire.live i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0;
}

.sx-mirror.is-live .sx-wire.live i {
  animation: sx-packet 900ms linear infinite;
}

.sx-mirror.is-live .sx-wire.live i:nth-child(2) { animation-delay: 300ms; }
.sx-mirror.is-live .sx-wire.live i:nth-child(3) { animation-delay: 600ms; }

@keyframes sx-packet {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  20%,
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(50px);
  }
}

.sx-wire.cut {
  background: repeating-linear-gradient(90deg, #d4d4d4 0 4px, transparent 4px 8px);
}

.sx-cut {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  color: var(--orange);
  transform: translate(-50%, -50%);
}

.sx-cut svg {
  width: 10px;
  height: 10px;
}

.sx-mirror-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-inline: 12px;
}

.sx-mirror-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  font-size: 12px;
  color: var(--secondary);
}

.sx-mirror-foot svg {
  width: 12px;
  height: 12px;
}

/* --- step 2 · AI switched per mailbox --- */

.sx-ai-card {
  display: flex;
  flex-direction: column;
  width: var(--sx-w);
  padding: 14px 16px 6px;
}

.sx-ai-card .sx-label {
  margin-bottom: 4px;
}

.sx-ai-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  cursor: pointer;
}

.sx-ai-row + .sx-ai-row {
  border-top: 1px solid #f2f2f2;
}

.sx-avatar {
  display: flex;
  width: 28px;
  height: 28px;
  flex: none;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e8e8;
  transition: opacity 200ms ease-out;
}

.sx-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sx-avatar i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
}

.sx-ai-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.sx-ai-text b {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 200ms ease-out;
}

.sx-ai-text em {
  position: relative;
  height: 16px;
  font-style: normal;
  font-size: 12px;
}

.sx-ai-text em span {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition:
    opacity 180ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.sx-ai-text em svg {
  width: 10px;
  height: 10px;
}

.sx-ai-text .on {
  color: var(--teal);
}

.sx-ai-text .off {
  color: var(--secondary);
  opacity: 0;
  transform: translateY(4px);
}

.sx-ai-row.is-off .on {
  opacity: 0;
  transform: translateY(-4px);
}

.sx-ai-row.is-off .off {
  opacity: 1;
  transform: none;
}

.sx-ai-row.is-off .sx-avatar {
  opacity: 0.45;
}

.sx-ai-row.is-off b {
  color: var(--secondary);
}

.sx-ai-foot {
  width: var(--sx-w);
  font-size: 12px;
  color: var(--secondary);
  text-align: center;
  text-wrap: balance;
}

/* --- step 3 · seats in, price out --- */

.sx-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: var(--sx-w);
  padding: 22px 20px 20px;
}

.sx-faces {
  display: flex;
  align-items: center;
}

.sx-faces i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: -3px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--white);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}

.sx-faces i:first-child { margin-left: 0; }
.sx-faces i:nth-child(1) { background: #e3effd; color: var(--blue); }
.sx-faces i:nth-child(2) { background: #f3e9ff; color: #9a4fdd; }
.sx-faces i:nth-child(3) { background: #e3f0e9; color: var(--teal); }
.sx-faces i:nth-child(4) { background: #fdebe5; color: var(--orange); }
.sx-faces i:nth-child(5) { background: #fcf3da; color: #a87f0e; }
.sx-faces i:nth-child(6) { background: #efefef; color: var(--secondary); }

.sx-faces b {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--secondary);
}

.sx-seats {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sx-step-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--card);
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 150ms ease-out,
    transform 120ms var(--ease-out);
}

.sx-step-btn:hover {
  background: var(--page);
}

.sx-step-btn:active {
  transform: scale(0.94);
}

.sx-seat-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  min-width: 80px;
}

.sx-seat-count b {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.sx-seat-count em,
.sx-total em {
  font-style: normal;
  color: var(--secondary);
}

.sx-total {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.sx-total b {
  font-size: 28px;
  line-height: 32px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.sx-team-note {
  padding-top: 12px;
  border-top: 1px solid #f2f2f2;
  align-self: stretch;
  font-size: 12px;
  color: var(--secondary);
  text-align: center;
}

.code-line {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding-inline: 22px;
  /* Rows are a fixed 28px, so a wrap would break the panel. */
  white-space: nowrap;
}

.code-line em {
  width: 16px;
  flex: none;
  font-style: normal;
  text-align: right;
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.2);
}

.code-line.active {
  background: rgba(255, 255, 255, 0.06);
}

.code-line.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--blue);
}

.c-purple { color: var(--purple); }
.c-blue { color: var(--blue); }
.c-orange { color: var(--orange); }
.c-white { color: var(--white); }
.c-dim { color: rgba(255, 255, 255, 0.4); }

/* ---------------------------------------------------------- comparison ---- */

.table-wrap {
  width: 100%;
}

/* The table only needs to scroll once it cannot fit; keeping overflow visible
 * on wider screens lets the tooltip escape the cell instead of being clipped. */
@media (max-width: 900px) {
  .table-wrap {
    overflow-x: auto;
  }
}

.compare {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: collapse;
  letter-spacing: -0.02em;
}

.compare th {
  height: 72px;
  text-align: left;
  vertical-align: middle;
  font-weight: 500;
  line-height: 24px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compare th.strong {
  font-weight: 600;
}

.compare td {
  padding-block: 24px;
  vertical-align: middle;
  line-height: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td:first-child {
  color: rgba(255, 255, 255, 0.9);
}

.compare th + th,
.compare td + td {
  padding-left: 24px;
}

.compare .plain {
  color: var(--white);
}

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

.status .bright {
  color: var(--white);
}

.status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  color: var(--white);
}

.status-icon svg {
  width: 12px;
  height: 12px;
}

.status-icon.yes {
  background: var(--blue);
}

.status-icon.no,
.status-icon.neutral {
  background: var(--surface-dark);
}

.status-icon.maybe {
  background: var(--yellow);
  color: var(--ink);
}

.status .status-icon.yes + span {
  color: rgba(255, 255, 255, 0.9);
}

/* Hover, keyboard focus and tap all reveal the note — a tap focuses the
 * trigger, which is why this uses :focus and not :focus-visible. */
.info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  cursor: help;
}

.info svg {
  width: 10px;
  height: 10px;
}

.info:hover,
.info:focus {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.info-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: -12px;
  z-index: 5;
  width: 360px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: var(--surface-dark);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7), var(--glass);
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 140ms ease-out,
    transform 140ms ease-out,
    visibility 140ms;
}

.info:hover .info-bubble,
.info:focus .info-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .info-bubble {
    transition: none;
    transform: none;
  }
}

/* On a phone the cell is too narrow to anchor a 320px bubble, and the table
 * scrolls horizontally — so pin it to the viewport instead. Fixed positioning
 * is not clipped by the scroll container. */
@media (max-width: 900px) {
  .info-bubble {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    transform: none;
  }
}

/* ------------------------------------------------------------- pricing ---- */

.plans {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

@media (min-width: 768px) {
  .plans {
    flex-direction: row;
  }
}

.plan {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 32px;
  padding: 56px 48px;
  border-radius: 32px;
  background: var(--card);
}

@media (min-width: 768px) {
  .plan {
    min-height: 640px;
  }
}

.plan-dark {
  background: var(--dark);
}

.plan-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.plan-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.plan-title h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plan-dark .plan-title h3 {
  color: var(--white);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.blue {
  background: rgba(53, 151, 243, 0.1);
  color: var(--blue);
}

.plan-price {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.price {
  letter-spacing: -0.03em;
}

.price .amount {
  font-size: 40px;
  line-height: 48px;
  font-weight: 600;
}

.plan-dark .price .amount {
  color: var(--white);
}

.price .note {
  margin-left: 8px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.plan-desc {
  line-height: 28px;
  color: var(--secondary);
}

.plan-dark .plan-desc {
  color: var(--muted);
}

.plan-features {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
}

.plan-features p {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.plan-dark .plan-features p {
  color: var(--white);
}

.tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
}

.tick svg {
  width: 12px;
  height: 12px;
}

/* ------------------------------------------------------------------ faq ---- */

.faq {
  width: 100%;
}

.faq-item {
  width: 100%;
  border-bottom: 1px solid rgba(231, 231, 231, 0.9);
}

.faq-item.first {
  border-top: 1px solid rgba(231, 231, 231, 0.9);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  cursor: pointer;
  list-style: none;
}

.faq-q {
  text-align: left;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 999px;
  background: var(--card);
  transition: transform 200ms ease-out;
}

.faq-icon svg {
  width: 12px;
  height: 12px;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  padding-bottom: 24px;
}

/* Native single-open accordions (<details name>) with a height transition
 * where the browser supports ::details-content; elsewhere they simply snap. */
@media (prefers-reduced-motion: no-preference) {
  .step::details-content,
  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size 200ms ease-out,
      content-visibility 200ms allow-discrete;
  }

  .step[open]::details-content,
  .faq-item[open]::details-content {
    block-size: auto;
  }
}

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  border-radius: 24px;
}

@media (min-width: 768px) {
  .site-footer {
    border-radius: 48px;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding-top: 144px;
}

@media (min-width: 768px) {
  .footer-inner {
    gap: 144px;
  }
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 64px;
  width: 100%;
}

@media (min-width: 768px) {
  .footer-main {
    gap: 128px;
  }
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

@media (min-width: 768px) {
  .footer-cta {
    flex-direction: row;
    align-items: flex-end;
  }
}

.footer-cta-text {
  font-size: 48px;
  line-height: 64px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .footer-cta-text {
    width: 50%;
    font-size: 60px;
  }
}

.footer-cta-text .on,
.footer-cta-text .off {
  display: block;
}

.footer-cta-text .on {
  color: var(--white);
}

.footer-cta-text .off {
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer-cta-btn {
    width: 25%;
  }
}

.footer-cols {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
}

@media (min-width: 768px) {
  .footer-cols {
    flex-direction: row;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Link columns (Product, Legal) sit on the CTA button's 25% column grid; the
 * first column takes the rest so Product starts at the halfway line. */
.footer-col.links,
.footer-col.legal {
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-col:first-child {
    flex: 1;
  }

  .footer-col.links,
  .footer-col.legal {
    width: 25%;
  }
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.footer-hq {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eu-flag {
  width: 24px;
  height: 24px;
  flex: none;
}

.footer-value,
.footer-link {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
}

.footer-link {
  transition: color 150ms ease-out;
}

.footer-link:hover {
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-copy {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: var(--muted);
}

/* The brand mark is a black-filled SVG; 18% inversion lands it exactly on the
 * --wordmark token so it reads as a watermark against the dark gradient. */
.footer-wordmark {
  width: 100%;
  max-width: 1040px;
  height: auto;
  filter: invert(18%);
}

@container fcard (max-width: 420px) {
  /* Narrow cards (phones, and the two-column grid on tablets): widgets run
   * closer to the card edge, rows tighten, and the calendar keeps two days so
   * events stay readable. Keyed to the card's width, not the viewport's. */
  .fcard .sx {
    --sx-w: calc(100% - 24px);
  }

  .sx-row,
  .sx-thread {
    gap: 10px;
    padding-inline: 14px 12px;
  }


  .sx-snooze-list b {
    width: 84px;
  }

  /* No keyboard on a phone: drop the shortcut hint so the subject fits. */
  .sx-thread .sx-key {
    display: none;
  }

  .sx-row-done {
    display: none;
  }

  .sx-tabs {
    padding: 4px;
  }

  .sx-tabs-on {
    top: 4px;
    left: 4px;
  }

  .sx-tabs-row span {
    padding: 0 9px;
    gap: 5px;
  }

  .sx-cal {
    --sx-w: calc(100% - 24px);
  }

  .sx-cal-today {
    width: 112px;
    padding-inline: 12px 8px;
  }

  .sx-cal-days,
  .sx-cal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sx-cal-days span:nth-child(3),
  .sx-cal-col:nth-child(3) {
    display: none;
  }

  .sx-nudge-text em {
    white-space: normal;
  }
}

/* --------------------------------------------------------------- narrow --- */

@media (max-width: 1023px) {
  .card {
    border-radius: 32px;
  }

  .block-tall {
    padding-top: 88px;
    padding-bottom: 96px;
  }

  .stack-16 {
    gap: 48px;
  }

  h1 {
    font-size: 40px;
    line-height: 46px;
  }

  .lead {
    font-size: 18px;
    line-height: 28px;
  }

  .hero-body {
    margin-top: 72px;
    gap: 48px;
  }

  .shot {
    height: 520px;
    border-radius: 24px;
  }

  .win {
    height: 420px;
  }

  .footer-inner {
    padding-top: 88px;
  }

  .plan {
    padding: 40px 32px;
  }
}

@media (max-width: 767px) {
  .page {
    padding: 8px;
  }

  .card {
    border-radius: 24px;
  }

  h1 {
    font-size: 34px;
    line-height: 40px;
  }

  .sec-head h2 {
    font-size: 26px;
    line-height: 34px;
  }

  /* The soft half of a statement heading is long; on a phone it has to read
   * as body copy rather than as more headline. */
  .sec-head h2 .soft {
    display: block;
    margin-top: 12px;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.02em;
  }

  /* Hard breaks exist to shape desktop lines; let narrow text wrap naturally. */
  .lead br,
  .sec-desc br,
  .sec-head h2 .soft br,
  .fcard-body p br {
    display: none;
  }


  .nav {
    padding: 10px 12px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-name {
    font-size: 15px;
    white-space: nowrap;
  }

  .trust-copy {
    white-space: normal;
    text-align: center;
  }

  .trust-logos {
    gap: 40px;
  }

  .shot {
    height: 380px;
  }

  .win {
    top: 30px;
    height: 320px;
    width: calc(100% - 32px);
  }

  .shot-hint {
    display: none;
  }

  .footer-cta-text {
    font-size: 36px;
    line-height: 44px;
  }
}

@media (max-width: 520px) {
  /* A phone cannot fit the W, the typeset name, and both actions. Drop the
   * monogram and name for the wordmark so the bar still reads as Wingman. */
  .nav-mark,
  .nav-name {
    display: none;
  }

  .nav-wordmark {
    display: block;
  }

  .split-fig .sx {
    --sx-w: calc(100% - 24px);
  }

  .sx-node b {
    font-size: 12px;
  }

  .sx-node em {
    font-size: 11px;
  }

  .sx-node-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .sx-wire {
    flex: 0 0 20px;
    margin-top: 22px;
  }

  .sx-net {
    width: calc(100% - 16px);
  }

  .fcard-body {
    padding-inline: 24px;
  }

  .plan {
    padding: 32px 24px;
  }
}

/* The smallest phones (320px) leave ~256px inside a card. Zoom shrinks the
 * illustrations' layout and paint together, so they lay out at a 300–320px
 * width and nothing clips; text stays above 9px. */
@media (max-width: 359px) {
  .split-fig > .sx,
  .highlight-illustration {
    zoom: 0.84;
  }

  .fcard-art > .sx {
    zoom: 0.8;
  }

  .gh-toolbar {
    gap: 8px;
  }
}

/* -------------------------------------------------------------- booking -- */

/* Scheduling-link pages on cal.<apex>: one white card on the grey page with a
 * small "Scheduling by WingmanMail" footer. Script-free by design — step 1
 * lists times as links (?at=…), step 2 is a plain POST form, and "more days"
 * is a native <details>. These pages use no landing layout classes
 * (.page/.shell/.card/.pad), only the tokens, base reset, and
 * .btn/.btn-primary-dark/.btn-block from above. */

.booking-page {
  display: flex;
  justify-content: center;
  padding: clamp(24px, 9vh, 88px) 24px 0;
}

.booking-card {
  /* --orange fails 4.5:1 for 13px text on white; this is its AA shade. */
  --booking-danger: #c4361a;

  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 480px;
  padding: 32px;
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--sx-surface);
}

/* ---------------------------------------------------------------- header -- */

.booking-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.booking-head h1 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.booking-meta {
  font-size: 14px;
  line-height: 20px;
  color: var(--secondary);
}

.booking-desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 22px;
  color: var(--secondary);
  text-wrap: pretty;
}

/* ------------------------------------------------- step 1: grouped days -- */

/* The inset panel every list sits in: grey, 20px outside, 6px padding, so
 * the 14px tiles inside stay concentric (20 - 6 = 14). */
.booking-days {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: 20px;
  background: var(--card);
}

.booking-day {
  padding: 10px 10px 12px;
}

.booking-day + .booking-day,
.booking-more > .booking-day:first-of-type {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.booking-day-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding-inline: 2px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.booking-day-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

/* A time on step 1: a link to step 2 for that start. */
.booking-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    box-shadow 150ms ease-out,
    background-color 150ms ease-out,
    color 150ms ease-out,
    transform 120ms var(--ease-out);
}

@media (hover: hover) {
  .booking-slot:hover {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.22),
      0 1px 2px rgba(0, 0, 0, 0.08);
  }
}

.booking-more > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  margin: 2px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  list-style: none;
  cursor: pointer;
  transition: color 150ms ease-out;
}

.booking-more > summary::-webkit-details-marker {
  display: none;
}

/* Chevron drawn in CSS so the markup stays text-only. */
.booking-more > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

@media (hover: hover) {
  .booking-more > summary:hover {
    color: var(--ink);
  }
}

.booking-more[open] > summary {
  display: none;
}

/* ------------------------------------------------------ step 2: summary -- */

.booking-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 14px 18px;
  border-radius: 20px;
  background: var(--card);
}

.booking-summary-day {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.booking-summary-time {
  font-size: 14px;
  line-height: 20px;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}

/* Secondary action as a small white pill: reads as a control, not prose. */
.booking-change {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding-inline: 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 13px;
  font-weight: 600;
  transition:
    box-shadow 150ms ease-out,
    transform 120ms var(--ease-out);
}

/* The 32px pill and the footer link get an invisible 44px tap area. */
.booking-change::before,
.booking-brand::before {
  content: "";
  position: absolute;
  inset: -6px;
}

@media (hover: hover) {
  .booking-change:hover {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.22),
      0 1px 2px rgba(0, 0, 0, 0.08);
  }
}

/* ---------------------------------------------------------- step 2: form -- */

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* One bordered group, a hairline between rows, label left of the value. */
.booking-fields {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--white);
  transition:
    border-color 150ms ease-out,
    box-shadow 150ms ease-out;
}

.booking-fields:focus-within {
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.booking-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding-left: 16px;
}

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

.booking-row label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--secondary);
  transition: color 150ms ease-out;
}

.booking-row:focus-within label {
  color: var(--ink);
}

.booking-row input {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px 13px 0;
  border: none;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 22px;
}

.booking-row ::placeholder {
  color: var(--muted);
  opacity: 1;
}

.booking-row.is-invalid label,
.booking-row-error {
  color: var(--booking-danger);
}

.booking-row-error {
  grid-column: 2;
  margin: -6px 16px 12px 0;
  font-size: 13px;
  line-height: 18px;
}

.booking-submit {
  border: none;
  font-family: inherit;
  font-size: 15px;
  transition:
    background-color 150ms ease-out,
    transform 120ms var(--ease-out);
}

.booking-fineprint {
  font-size: 13px;
  line-height: 18px;
  color: var(--secondary);
  text-align: center;
}

/* ---------------------------------------------------------------- alerts -- */

.booking-alert {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border-radius: 20px;
  background: var(--card);
}

.booking-alert-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.booking-alert-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
}

.booking-alert-text {
  padding-left: 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--secondary);
}

.booking-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------- success / unavailable -- */

.booking-head-status {
  align-items: flex-start;
}

.booking-status {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--secondary);
}

/* Ink so the visitor can check the address for typos; an address longer
 * than the card wraps instead of overflowing it. */
.booking-email {
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.booking-status.is-done {
  background: var(--ink);
  color: var(--white);
}

.booking-status-icon {
  width: 20px;
  height: 20px;
}

.booking-receipt {
  display: flex;
  flex-direction: column;
  padding: 6px 18px;
  border-radius: 20px;
  background: var(--card);
}

.booking-receipt > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 12px;
  padding-block: 12px;
  font-size: 15px;
  line-height: 22px;
}

.booking-receipt > div + div {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.booking-receipt dt {
  font-size: 14px;
  color: var(--secondary);
}

.booking-receipt dd {
  font-weight: 600;
}

.booking-receipt-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------- handle page -- */

.booking-links {
  gap: 6px;
}

.booking-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 14px 14px 18px;
  border-radius: 14px;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.05);
  transition:
    box-shadow 150ms ease-out,
    transform 120ms var(--ease-out);
}

@media (hover: hover) {
  .booking-link:hover {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.22),
      0 1px 2px rgba(0, 0, 0, 0.08);
  }
}

.booking-link-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.booking-link-title {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.booking-link-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--secondary);
  text-wrap: pretty;
}

.booking-link-duration {
  flex: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}

.booking-link-chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: color 150ms ease-out;
}

@media (hover: hover) {
  .booking-link:hover .booking-link-chevron {
    color: var(--ink);
  }
}

/* --------------------------------------------------------------- footer -- */

.booking-footer {
  display: flex;
  justify-content: center;
  padding: 24px 24px 40px;
}

.booking-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 20px;
  color: var(--secondary);
  transition: color 150ms ease-out;
}

.booking-brand:hover {
  color: var(--ink);
}

.booking-brand-mark {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.booking-brand-name {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------- focus & press -- */

.booking-slot:focus-visible,
.booking-change:focus-visible,
.booking-link:focus-visible,
.booking-submit:focus-visible,
.booking-brand:focus-visible,
.booking-more > summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.booking-more > summary:focus-visible {
  border-radius: 12px;
}

/* Press feedback, 120ms ease-out: 0.97 on controls; the full-width link
 * tiles take 0.99, since 0.97 of a 400px tile is a 12px lurch. */
.booking-slot:active,
.booking-change:active,
.booking-submit:active {
  transform: scale(0.97);
}

.booking-link:active {
  transform: scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
  .booking-slot,
  .booking-change,
  .booking-link,
  .booking-submit {
    transition: none;
  }

  .booking-slot:active,
  .booking-change:active,
  .booking-link:active,
  .booking-submit:active {
    transform: none;
  }
}

/* --------------------------------------------------------------- mobile -- */

@media (max-width: 480px) {
  .booking-page {
    padding: 8px 8px 0;
  }

  .booking-card {
    gap: 20px;
    padding: 24px 18px 18px;
    border-radius: 24px;
  }

  .booking-days {
    border-radius: 18px;
  }

  .booking-day {
    padding: 10px 8px 10px;
  }

  .booking-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .booking-slot {
    height: 44px;
    font-size: 15px;
  }

  /* Inset text lines up with the form rows' 14px. */
  .booking-summary,
  .booking-alert,
  .booking-receipt {
    border-radius: 18px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .booking-summary {
    padding-right: 12px;
  }

  .booking-link {
    border-radius: 12px;
  }

  /* Labels stack above values: the 72px label column is too costly here. */
  .booking-row {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 14px;
  }

  .booking-row label {
    padding-top: 10px;
    font-size: 12px;
    line-height: 16px;
  }

  .booking-row input {
    min-height: 0;
    padding: 2px 14px 10px 0;
    font-size: 16px;
    line-height: 24px;
  }

  .booking-row-error {
    grid-column: 1;
    margin: -4px 14px 10px 0;
  }

  .booking-receipt > div {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .booking-footer {
    padding: 20px 16px 32px;
  }
}

