/* MeetMaster website.
   Dark and monochrome, like the app. Red and green appear only where they mean something:
   red is live or off (recording, a muted microphone), green is done.
   Cards share one "double bezel": a faint outer shell around a solid core. */

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #131316;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ededef;
  --muted: #8e8e93;
  --faint: rgba(255, 255, 255, 0.06);
  --red: #ff453a;
  --green: #30d158;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mac: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-glide: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shell: rgba(255, 255, 255, 0.025);
  --shell-line: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --core-light: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --gutter: 24px;
  /* The page uses the whole width of the window, with this much room at the sides. */
  --pad-x: clamp(var(--gutter), 5vw, 120px);
  --section: clamp(96px, 12vw, 168px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p,
ul,
ol,
pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

p {
  text-wrap: pretty;
}

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

.wrap {
  width: 100%;
  padding-inline: var(--pad-x);
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Type ---------- */

h1 {
  font-size: clamp(2.75rem, 5.2vw, 6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(2rem, 3.8vw, 2.875rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.lead {
  margin-top: 24px;
  max-width: 30ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.3vw, 1.375rem);
  line-height: 1.55;
}

.fine {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

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

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

.btn-primary:hover {
  background: #fafafa;
}

.btn-quiet {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-quiet:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

/* The main download button carries its icon in a small inner circle. */
.btn-cta {
  gap: 12px;
  padding-right: 6px;
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.08);
  transition: transform 0.5s var(--ease-glide);
}

.btn-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-cta:hover .btn-icon {
  transform: translateY(2px) scale(1.06);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

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

.nav-sentinel {
  position: absolute;
  top: 0;
  height: 8px;
  width: 1px;
}

/* The nav spans the window with no box around it. Once the page scrolls, the page darkens
   softly behind it, with no edge, so the words underneath fade out instead of colliding. */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  pointer-events: none;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px;
  background: linear-gradient(rgba(10, 10, 11, 0.94), rgba(10, 10, 11, 0.7) 55%, rgba(10, 10, 11, 0));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.nav.is-scrolled::before {
  opacity: 1;
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 16px;
  fill: currentColor;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
}

.nav-links a,
.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.nav-links a:hover,
.footer a:hover {
  color: var(--text);
}

.section {
  padding-block: var(--section);
}

/* ---------- Double bezel cards ---------- */

.shell {
  padding: 6px;
  border-radius: 24px;
  background: var(--shell);
  box-shadow: var(--shell-line);
}

.core {
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--core-light);
}

/* ---------- The logo, piece by piece (geometry from the app's mark, in mark units) ---------- */

.logo {
  position: relative;
  width: 100%;
  aspect-ratio: 586 / 362;
  perspective: 1100px;
}

.piece {
  position: absolute;
  left: calc((var(--x) + 293) / 586 * 100%);
  top: calc((var(--y) + 181) / 362 * 100%);
  width: calc(var(--w) / 586 * 100%);
  height: calc(var(--h) / 362 * 100%);
  transform-style: preserve-3d;
}

.piece i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #dcdce1);
  backface-visibility: hidden;
  transition:
    opacity 0.6s var(--ease-out),
    box-shadow 0.8s var(--ease-out);
}

/* The piece that just landed glows; the ones before it settle back a little. */
.logo.has-current .piece i {
  opacity: 0.8;
}

.logo.has-current .piece.is-current i {
  opacity: 1;
  box-shadow: 0 0 36px 2px rgba(255, 255, 255, 0.32);
}

/* Built: the bars talk and the lines write themselves, over and over. */
.logo.is-alive .bar i {
  animation: talk 1.7s var(--ease-glide) infinite alternate;
}

.logo.is-alive .bar:nth-of-type(2) i { animation-delay: -0.6s; }
.logo.is-alive .bar:nth-of-type(3) i { animation-delay: -1.1s; }
.logo.is-alive .bar:nth-of-type(4) i { animation-delay: -0.3s; }

.logo.is-alive .line i {
  animation: write 4.2s var(--ease-glide) infinite;
}

.logo.is-alive .line:nth-of-type(6) i { animation-delay: 0.3s; }
.logo.is-alive .line:nth-of-type(7) i { animation-delay: 0.6s; }

@keyframes talk {
  0% { clip-path: inset(0 0 0 0 round 999px); }
  55% { clip-path: inset(14% 0 14% 0 round 999px); }
  100% { clip-path: inset(4% 0 4% 0 round 999px); }
}

@keyframes write {
  0% { clip-path: inset(0 55% 0 0 round 999px); opacity: 0.55; }
  30%, 84% { clip-path: inset(0 0 0 0 round 999px); opacity: 1; }
  100% { clip-path: inset(0 55% 0 0 round 999px); opacity: 0.55; }
}

/* ---------- The story ----------
   html.motion: script.js pins .stage; the logo builds on the left while the panels take turns
   on the right. Otherwise: the whole logo, then every panel in a plain grid. */

.saga {
  position: relative;
}

.stage {
  position: relative;
}

.panel-hero h1 {
  max-width: 11ch;
}

.panel .shell {
  width: 100%;
}

.panel-title {
  margin-top: 28px;
  font-size: clamp(1.75rem, 2.6vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.panel-title + p {
  margin-top: 10px;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(17px, 1.15vw, 20px);
}

.panel .demo {
  height: clamp(230px, 15vw, 290px);
}

.panel-payoff .h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.045em;
}

.scroll-hint {
  display: none;
}

html:not(.motion) .stage {
  padding-top: 136px;
}

html:not(.motion) .build {
  width: min(70%, 380px);
  margin: 0 auto 72px;
}

html:not(.motion) .panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 48px;
  width: 100%;
  padding-inline: var(--pad-x);
}

html:not(.motion) .panel-hero,
html:not(.motion) .panel-payoff {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  text-align: center;
}

html:not(.motion) .panel-hero {
  margin-bottom: 48px;
}

html:not(.motion) .panel-hero .lead {
  margin-inline: auto;
}

html:not(.motion) .panel-payoff {
  margin-top: 48px;
}

.motion .stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  height: 100vh;
  height: 100svh;
  padding: 96px var(--pad-x) 40px;
  overflow: hidden;
}

.motion .build {
  display: grid;
  place-items: center;
}

.motion .build .logo {
  width: min(100%, clamp(320px, 34vw, 680px));
}

.motion .saga .piece {
  opacity: 0;
}

.motion .panels {
  position: relative;
  height: 100%;
  perspective: 1600px;
}

/* One panel shows at a time. script.js turns it like a card on every step and swaps in the next
   feature while it is edge-on. */
.motion .panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 560px;
  visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.motion .panel.is-active {
  visibility: visible;
}

/* The hero's words rise in once, as the page opens. */
.motion .panel-hero > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 1s var(--ease-out);
}

.motion .saga.is-ready .panel-hero > * {
  opacity: 1;
  transform: none;
}

.motion .panel-hero > :nth-child(2) { transition-delay: 0.1s; }
.motion .panel-hero > :nth-child(3) { transition-delay: 0.2s; }
.motion .panel-hero > :nth-child(4) { transition-delay: 0.3s; }

.motion .scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: block;
  width: 22px;
  height: 34px;
  margin-left: -11px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  transition: opacity 0.4s var(--ease-out);
}

.motion .scroll-hint span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--muted);
  animation: wheel 1.8s var(--ease-glide) infinite;
}

.motion .stage.is-moving .scroll-hint {
  opacity: 0;
}

/* The 3D logo (scene.js) draws on a canvas behind the panels, in place of the CSS logo. On wide
   screens it swaps sides with the panel at every step. */
.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.motion .build,
.motion .panels {
  z-index: 1;
}

.has-3d .build .logo,
.has-3d .closing .piece {
  visibility: hidden;
}

/* The closing logo's canvas leaves room around it for the flips. */
.closing .logo .scene {
  left: -30%;
  top: -60%;
  width: 160%;
  height: 220%;
}

@media (min-width: 861px) {
  .has-3d .build,
  .has-3d .panels {
    grid-row: 1;
  }

  .has-3d .build {
    grid-column: 1;
  }

  .has-3d .panels {
    grid-column: 1 / -1;
  }

  /* The logo sits in the middle of the left half and the panel in the middle of the right half;
     script.js swaps them by half the width at odd steps. */
  .has-3d .stage {
    column-gap: 0;
  }

  .has-3d .panel {
    --panel-w: min(560px, calc(50% - clamp(48px, 6vw, 120px)));
    left: calc(75% - var(--panel-w) / 2);
    width: var(--panel-w);
  }

  /* The headline panels get more room for their big type. */
  .has-3d .panel-hero,
  .has-3d .panel-payoff {
    --panel-w: min(720px, calc(50% - clamp(48px, 6vw, 120px)));
    max-width: none;
  }
}

@keyframes wheel {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  80%, 100% { transform: translateY(11px); opacity: 0; }
}

/* ---------- Illustrations: little pieces of the app and of macOS ---------- */

.demo {
  position: relative;
  overflow: hidden;
  height: 230px;
  padding: 18px;
  font-family: var(--font-mac);
  font-size: 12.5px;
  line-height: 1.35;
}

.demo .grow {
  flex: 1;
  min-width: 0;
}

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

.demo .sub {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease-out),
    opacity 0.3s var(--ease-out);
}

.pill.ink {
  background: var(--text);
  color: var(--bg);
}

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

.av {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.rec {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s var(--ease-glide) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.55); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(255, 69, 58, 0); }
}

.traffic i,
.browser-top i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

/* The mouse pointer in the demos that click something. */
.cursor {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 15px;
  height: 21px;
  fill: #0b0b0c;
  stroke: #fff;
  stroke-width: 1.3;
  stroke-linejoin: round;
  transform: translate(var(--cx, 110%), var(--cy, 120%));
  transition: transform 0.9s var(--ease-glide);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.demo:not([data-step]) .cursor {
  display: none;
}

.cursor.is-pressing {
  transition-duration: 0.15s;
  transform: translate(var(--cx), var(--cy)) scale(0.88);
}

/* Joins when you join: a Meet tab opens, the notetaker comes in, the menu bar counts. */
#demo-follow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 0;
}

.menubar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  height: 28px;
  margin: 0 -18px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--muted);
}

.mb-tray {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.mb-mark {
  width: 24px;
  height: 17px;
  padding: 3px 4px;
  border-radius: 4px;
  fill: var(--bg);
  background: var(--text);
  transition:
    background-color 0.35s var(--ease-out),
    fill 0.35s var(--ease-out);
}

.mb-time {
  font-variant-numeric: tabular-nums;
  transition: opacity 0.35s var(--ease-out);
}

.browser {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
}

.url {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: 19px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}

.url-text {
  transition: clip-path 1.1s steps(28);
  clip-path: inset(0 0 0 0);
}

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

.tile {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.6s var(--ease-spring);
}

.tile-mark {
  width: 34px;
  height: 21px;
  fill: var(--text);
}

.tile .rec {
  position: absolute;
  top: 8px;
  right: 8px;
}

#demo-follow:is([data-step="0"], [data-step="1"]) .mb-mark {
  fill: var(--text);
  background: transparent;
}

#demo-follow:is([data-step="0"], [data-step="1"]) .mb-time {
  opacity: 0;
}

#demo-follow[data-step="0"] .url-text {
  clip-path: inset(0 100% 0 0);
  transition: none;
}

#demo-follow:is([data-step="0"], [data-step="1"]) .tile-bot {
  opacity: 0;
  transform: scale(0.85);
}

/* Asks when you miss one: a notification, the question, one click. */
#demo-ask {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.notif {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(44, 44, 48, 0.92);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 12px 30px -12px rgba(0, 0, 0, 0.7);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.7s var(--ease-spring);
}

.notif img {
  width: 32px;
  height: 32px;
}

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

.notif span {
  color: var(--muted);
  font-size: 12px;
}

.pop {
  position: relative;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.prompt-ask,
.prompt-sent {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.35s var(--ease-out);
}

.prompt-sent {
  position: absolute;
  inset: 0;
  gap: 8px;
  padding: 0 14px;
  opacity: 0;
}

.prompt-sent b {
  font-weight: 600;
}

.prompt-sent .sub {
  margin: 0;
}

#demo-ask[data-step="0"] .notif {
  opacity: 0;
  transform: translateY(-24px) scale(0.96);
}

#demo-ask:is([data-step="0"], [data-step="1"]) .pop {
  opacity: 0;
  transform: translateY(10px);
}

#demo-ask[data-step="4"] .prompt-ask {
  opacity: 0;
}

#demo-ask[data-step="4"] .prompt-sent {
  opacity: 1;
}

/* Every voice, in order. */
#demo-order {
  padding-top: 20px;
}

.turn {
  display: flex;
  gap: 10px;
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.turn + .turn {
  margin-top: 10px;
}

.turn .av {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.who {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.who b {
  font-size: 12px;
  font-weight: 600;
}

.who time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

.turn p {
  margin-top: 1px;
  color: rgba(237, 237, 239, 0.86);
}

#demo-order[data-step] .turn:not(.is-in) {
  opacity: 0;
  transform: translateY(8px);
}

/* Read it in the app: the menu bar window's Notes list, and a meeting opened in its reader. */
#demo-reader {
  display: grid;
  place-items: center;
  padding: 14px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%), var(--surface);
}

.mini {
  width: min(100%, 300px);
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(36, 36, 40, 0.92);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.12),
    0 18px 40px -16px rgba(0, 0, 0, 0.8);
  font-size: 12px;
}

/* The list and the reader sit side by side; opening a note slides over, as in the app. */
.mini-views {
  display: flex;
  width: 200%;
  height: 100%;
  transform: translateX(-50%);
  transition: transform 0.5s var(--ease-glide);
}

.mini-view {
  flex: none;
  width: 50%;
}

.mini-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
}

.mini-bar b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-mark {
  width: 19px;
  height: 12px;
  fill: currentColor;
}

.mini-icon {
  flex: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-copy {
  position: relative;
  display: grid;
  transition: transform 0.2s var(--ease-out);
}

.mini-copy .copied {
  position: absolute;
  inset: 0;
  stroke: var(--green);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.4s var(--ease-spring);
}

.mini-copy .copy {
  transition: opacity 0.2s var(--ease-out);
}

.mini-copy.is-pressed {
  transform: scale(0.85);
}

.mini-head {
  display: flex;
  justify-content: space-between;
  margin: 4px 14px 2px;
  font-size: 10.5px;
  color: var(--muted);
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin: 0 6px;
  padding: 0 8px;
  border-radius: 7px;
  transition: background-color 0.2s var(--ease-out);
}

.mini-row span {
  flex: 1;
}

.mini-row time {
  font-size: 10.5px;
  color: var(--muted);
}

.mini-row.is-pressed {
  background: rgba(255, 255, 255, 0.09);
}

.mini-meta {
  margin: -4px 14px 8px;
  overflow: hidden;
  font-size: 10px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-turn {
  padding: 0 14px;
}

.mini-turn + .mini-turn {
  margin-top: 8px;
}

.mini-turn .who {
  align-items: center;
  gap: 6px;
}

.mini-turn .av {
  width: 18px;
  height: 18px;
  font-size: 7.5px;
}

.mini-turn p {
  margin: 1px 0 0 24px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(237, 237, 239, 0.86);
}

/* 0: the list (straight there when the loop starts over), 1: the reader, 2: copied, 3: back. */
#demo-reader:is([data-step="0"], [data-step="3"]) .mini-views {
  transform: none;
}

#demo-reader[data-step="0"] .mini-views {
  transition: none;
}

#demo-reader[data-step="1"] .mini-turn {
  animation: turn-in 0.5s var(--ease-out) both;
}

#demo-reader[data-step="1"] .mini-turn:nth-child(4) { animation-delay: 0.15s; }
#demo-reader[data-step="1"] .mini-turn:nth-child(5) { animation-delay: 0.3s; }

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

#demo-reader[data-step="2"] .mini-copy .copy {
  opacity: 0;
}

#demo-reader[data-step="2"] .mini-copy .copied {
  opacity: 1;
  transform: none;
}

/* Any language: the app's live card, switching languages as it listens. */
#demo-lang {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: 20px;
}

.live-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.live-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}

.live-clock {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.eq {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
  margin-left: auto;
  margin-right: 4px;
}

.eq i {
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: var(--red);
  transform: scaleY(0.3);
  animation: eq 0.8s var(--ease-glide) infinite alternate;
}

.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.55s; }
.eq i:nth-child(4) { animation-delay: -0.15s; }
.eq i:nth-child(5) { animation-delay: -0.42s; }

@keyframes eq {
  to { transform: scaleY(1); }
}

.pill.stop {
  background: rgba(255, 69, 58, 0.15);
  color: var(--red);
}

.live-title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.live-line {
  display: flex;
  gap: 5px;
  min-height: 20px;
  margin: 3px 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.live-line b {
  font-weight: 500;
  color: var(--text);
}

.live-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 24px 0 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  perspective: 300px;
}

.lang::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 4px;
  height: 4px;
  border-right: 1.3px solid var(--muted);
  border-bottom: 1.3px solid var(--muted);
  transform: translateY(-75%) rotate(45deg);
}

.lang-text,
.line-text {
  display: inline-block;
}

.is-flipping-out {
  animation: flip-out 0.22s var(--ease-glide) forwards;
}

.is-flipping-in {
  animation: flip-in 0.45s var(--ease-spring);
}

@keyframes flip-out {
  to { transform: rotateX(90deg); opacity: 0; }
}

@keyframes flip-in {
  from { transform: rotateX(-90deg); opacity: 0; }
}

.demo .meta {
  font-size: 11.5px;
  color: var(--muted);
}

/* Free. Private. */
#demo-free {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  perspective: 600px;
}

.zero {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px 6px 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.8s var(--ease-spring);
}

.zero b {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.zero span {
  font-size: 12.5px;
  color: var(--muted);
}

#demo-free[data-step] .zero:not(.is-in) {
  opacity: 0;
  transform: rotateX(-80deg) translateY(10px);
}

/* ---------- Setup ---------- */

.setup .h2 {
  text-align: center;
}

.steps {
  position: relative;
  display: grid;
  gap: 28px;
  margin-top: 72px;
}

/* The thread through the step numbers fills in as you scroll. */
/* A timeline down the middle of the page: the steps take turns on either side of it. */
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: calc(50% - 0.5px);
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: var(--line);
}

.steps::after {
  background: rgba(255, 255, 255, 0.5);
  transform-origin: top;
  transform: scaleY(var(--progress, 1));
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  align-items: center;
  gap: 24px clamp(32px, 5vw, 96px);
}

.step > * {
  grid-row: 1;
}

.step-num {
  grid-column: 2;
}

.step .shell {
  width: min(100%, 560px);
}

.step:nth-child(odd) .step-text {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.step:nth-child(odd) .step-text p {
  margin-left: auto;
}

.step:nth-child(odd) .shell {
  grid-column: 3;
  justify-self: start;
}

.step:nth-child(even) .shell {
  grid-column: 1;
  justify-self: end;
}

.step:nth-child(even) .step-text {
  grid-column: 3;
  justify-self: start;
}

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.step-text p {
  margin-top: 6px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 15.5px;
}

.step-text h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.step .demo {
  height: 132px;
}

/* 1. Download */
#demo-download {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
}

.dl-icon {
  width: 56px;
  height: 56px;
}

.dl-body {
  display: grid;
  flex: 1;
  gap: 9px;
}

.dl-body b {
  font-weight: 500;
}

.dl-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.dl-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--text);
  transform-origin: left;
  transition: transform 1.8s cubic-bezier(0.45, 0, 0.2, 1);
}

.dl-check,
.num svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dl-check {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.5s var(--ease-spring);
}

#demo-download[data-step="0"] .dl-bar i {
  transform: scaleX(0);
  transition: none;
}

#demo-download:is([data-step="0"], [data-step="1"]) .dl-check {
  opacity: 0;
  transform: scale(0.5);
}

/* 2. Drag to Applications */
#demo-drag {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 28px;
  background: #0d0d0f;
}

.drag-slot img,
.drag-ghost {
  width: 64px;
  height: 64px;
}

.drag-arrow {
  position: relative;
  width: 70px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.drag-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  transform: translate(1px, -50%) rotate(45deg);
}

.drag-folder svg {
  width: 64px;
  height: 52px;
  fill: rgba(255, 255, 255, 0.07);
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.drag-ghost {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translate(var(--gx, 0), var(--gy, 0));
  transition:
    transform 1.1s var(--ease-glide),
    opacity 0.3s var(--ease-out);
  pointer-events: none;
}

#demo-drag[data-step="1"] .drag-ghost {
  opacity: 0.85;
  transform: translate(var(--gx), var(--gy)) scale(1.06);
}

#demo-drag[data-step="2"] .drag-ghost {
  transform: translate(var(--gx), var(--gy)) scale(0.4);
}

#demo-drag[data-step="2"] .drag-folder svg {
  animation: bump 0.6s var(--ease-spring);
}

@keyframes bump {
  50% { transform: scale(1.14); }
}

/* 3. Open Anyway */
#demo-gate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
}

.gate-head {
  font-size: 13px;
  font-weight: 600;
}

.gate-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px;
  color: rgba(237, 237, 239, 0.85);
}

.gate-row span:first-child {
  flex: 1;
  min-width: 0;
}

/* 4 and 5. The app's own setup steps. */
.setup-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 22px;
}

.num {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  transition:
    background-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.num svg {
  position: absolute;
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.5s var(--ease-spring);
}

.sub-done {
  display: none;
}

.setup-card .pill {
  transition:
    transform 0.2s var(--ease-out),
    opacity 0.3s var(--ease-out);
}

.setup-card[data-step="3"] .num {
  background: var(--green);
  box-shadow: none;
  color: transparent;
}

.setup-card[data-step="3"] .num svg {
  opacity: 1;
  transform: none;
}

.setup-card[data-step="3"] .sub-todo {
  display: none;
}

.setup-card[data-step="3"] .sub-done {
  display: inline;
}

.setup-card[data-step="3"] .pill {
  opacity: 0;
}

/* ---------- Closing ---------- */

.closing-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.closing .logo {
  width: 220px;
  margin-bottom: 48px;
}

.closing .actions {
  justify-content: center;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  justify-items: center;
  min-height: 80vh;
  align-content: center;
  text-align: center;
}

.not-found .logo {
  width: 140px;
  margin-bottom: 40px;
}

.not-found p {
  margin-top: 16px;
  color: var(--muted);
}

/* ---------- Scroll reveals (only when motion is welcome and the script runs) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
    transition:
      opacity 1s var(--ease-out),
      transform 1.1s var(--ease-out),
      filter 1s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 90ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

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

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

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  /* One column: the timeline runs down the left, each step's picture under its words. */
  .steps::before,
  .steps::after {
    left: 19px;
  }

  .step {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .steps .step .step-num {
    grid-column: 1;
    grid-row: 1;
  }

  .steps .step .step-text {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    text-align: left;
  }

  .steps .step .step-text p {
    margin-left: 0;
  }

  .steps .step .shell {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
  }

  .motion .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding-top: 92px;
    padding-bottom: 24px;
  }

  .motion .build .logo {
    width: min(58vw, 260px);
  }

  .motion .panel {
    justify-content: flex-start;
    max-width: none;
  }

  .motion .panel-hero,
  .motion .panel-payoff {
    align-items: center;
    text-align: center;
  }

  .motion .panel-hero h1,
  .motion .panel-hero .lead {
    margin-inline: auto;
  }

  .motion .panel-hero .actions,
  .motion .panel-payoff .actions {
    justify-content: center;
  }

  .panel-title {
    margin-top: 20px;
  }

  .motion .scroll-hint {
    bottom: 20px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-inner > .btn {
    margin-left: auto;
  }

  html:not(.motion) .panels {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .demo {
    height: 212px;
    padding: 14px;
  }

  .menubar {
    margin: 0 -14px;
  }

  .step .demo {
    height: 120px;
  }

  #demo-drag {
    padding: 0 12px;
  }

  .drag-arrow {
    width: 44px;
  }

  .steps {
    margin-top: 56px;
  }
}

@media (max-width: 860px) and (max-height: 720px) {
  .motion .build .logo {
    width: min(44vw, 200px);
  }

  .motion .demo {
    height: 184px;
  }

  .motion .panel-title {
    margin-top: 14px;
    font-size: 1.5rem;
  }
}
