@font-face {
  font-family: "Gabarito";
  src: url("/fonts/gabarito.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #110d1e;
  --night: #1b1430;
  --dusk: #2a1b3f;
  --ember: #f08a4b;
  --folder: #4ba8f0;
  --chalk: #f4eef8;
  --mute: #a99ebf;
  --line: rgba(244, 238, 248, 0.12);
  --mac-blue: #0a84ff;
  --coffee: #ffdd00;
  --coffee-ink: #251b00;

  --font-display: "Gabarito", "Avenir Next", system-ui, sans-serif;
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --mb: 30px;
  --gutter: clamp(20px, 3.5vw, 48px);
  /* Folders scale with screen height so a 40-icon heart fits short laptops. */
  --icon: clamp(24px, 3.7vh, 32px);
  --cell: calc(var(--icon) * 2.125);
  --panel-w: 320px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mb) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font: 17px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

/* Author display rules must never beat the hidden attribute. */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(10, 132, 255, 0.75);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--mute);
}

/* Menu bar ---------------------------------------------------------------- */

.menubar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--mb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  background: rgba(22, 15, 36, 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  user-select: none;
}

.menubar__left,
.menubar__right {
  display: flex;
  align-items: center;
  height: 100%;
}

.menubar__app,
.menubar__item {
  display: flex;
  align-items: center;
  height: calc(100% - 6px);
  padding: 0 10px;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
}

.menubar__app {
  font-weight: 700;
}

.menubar__app:hover,
.menubar__item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.menubar__coffee {
  display: flex;
  align-items: center;
  gap: 6px;
  height: calc(var(--mb) - 9px);
  margin-right: 6px;
  padding: 0 10px 0 8px;
  border-radius: 6px;
  background: var(--coffee);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 0.5px rgba(0, 0, 0, 0.35);
  color: var(--coffee-ink);
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease-out;
}

.menubar__coffee svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.menubar__coffee:hover {
  background: #ffe84d;
}

.menubar__status {
  display: grid;
  place-items: center;
  width: 34px;
  height: calc(var(--mb) - 6px);
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.menubar__status svg {
  width: 15px;
  height: 15px;
}

.menubar__status[aria-expanded="true"],
.menubar__status:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menubar__wifi {
  width: 17px;
  margin: 0 10px 0 8px;
  opacity: 0.95;
}

.menubar__clock {
  padding: 0 8px 0 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Desktop (hero) ---------------------------------------------------------- */

.desktop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(700px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--panel-w) + 8px);
  grid-template-rows: auto minmax(340px, 1fr) auto;
  column-gap: 32px;
  row-gap: 18px;
  padding: calc(var(--mb) + clamp(28px, 6vh, 64px)) var(--gutter) 22px;
  background:
    radial-gradient(70% 55% at 80% 108%, rgba(255, 150, 86, 0.8), rgba(255, 150, 86, 0) 70%),
    radial-gradient(60% 50% at 14% 112%, rgba(222, 84, 118, 0.65), rgba(222, 84, 118, 0) 70%),
    radial-gradient(80% 60% at 28% -12%, rgba(92, 66, 182, 0.45), rgba(92, 66, 182, 0) 70%),
    linear-gradient(180deg, #120d24 0%, #1e1534 36%, #3a1d44 68%, #6a2c48 100%);
}

.wallpaper {
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  z-index: -1;
  pointer-events: none;
}

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

/* Grain keeps the long gradients from banding. */
.desktop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px clamp(28px, 4vw, 64px);
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  flex: 0 1 auto;
  font-size: clamp(44px, min(6.2vw, 10.5vh), 104px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(17, 13, 30, 0.35);
}

.hero-copy__aside {
  flex: 1 1 280px;
  max-width: 400px;
  display: grid;
  gap: 18px;
}

.hero-copy__aside > p:first-child {
  font-size: 16.5px;
  color: rgba(244, 238, 248, 0.86);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.button-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px 0 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #5cb4f6, #2f8ee6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px rgba(30, 110, 210, 0.35);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

.button-download svg {
  width: 19px;
  height: 19px;
}

.button-download:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 30px rgba(30, 110, 210, 0.45);
}

.button-download:active {
  transform: translateY(0);
}

.button-coffee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px 0 14px;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffe64a, var(--coffee));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 22px rgba(255, 190, 0, 0.2);
  color: var(--coffee-ink);
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

.button-coffee svg {
  flex: none;
  width: 17px;
  height: 17px;
}

.button-coffee:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 28px rgba(255, 190, 0, 0.3);
}

.button-coffee:active {
  transform: translateY(0);
}

.button-coffee--small {
  gap: 6px;
  min-height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 8px;
  font-size: 13px;
}

.button-coffee--small svg {
  width: 14px;
  height: 14px;
}

.link-quiet {
  font-size: 15px;
  color: rgba(244, 238, 248, 0.85);
  text-underline-offset: 4px;
  text-decoration-color: rgba(244, 238, 248, 0.35);
}

.link-quiet:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

.stage {
  grid-column: 1;
  grid-row: 2;
  min-height: 340px;
}

.desktop-note {
  grid-column: 1 / -1;
  grid-row: 3;
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(244, 238, 248, 0.72);
}

.desktop-note__drag {
  display: none;
}

@media (pointer: fine) {
  .desktop-note__drag {
    display: inline;
  }
}

/* Desktop icons */

.icons {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.icon {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--cell);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: auto;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

@media (pointer: fine) {
  .icon {
    cursor: default;
    touch-action: none;
  }
}

.icon__art {
  width: var(--icon);
  height: calc(var(--icon) * 0.8125);
  padding: 2px;
  border-radius: 5px;
  box-sizing: content-box;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35));
}

.icon__label {
  max-width: 100%;
  padding: 0 4px;
  border-radius: 3px;
  font-size: max(8px, calc(var(--icon) * 0.3));
  line-height: 1.3;
  font-weight: 500;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.icon.is-selected .icon__art {
  background: rgba(0, 0, 0, 0.3);
}

.icon.is-selected .icon__label {
  background: #1d64d8;
  text-shadow: none;
}

.icon.is-dragging {
  z-index: 5;
}

/* Panel (replica of the app's drop-down) */

.panel {
  position: absolute;
  top: calc(var(--mb) + 5px);
  right: 8px;
  z-index: 20;
  width: var(--panel-w);
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(40, 33, 52, 0.72);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.55),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.16),
    0 22px 60px rgba(8, 4, 20, 0.5);
  font-size: 13px;
  line-height: 1.35;
  color: #fff;
  transform-origin: top right;
  transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 0s linear 0s;
}

.panel[data-open="false"] {
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  visibility: hidden;
  transition: opacity 120ms ease-in, transform 120ms ease-in, visibility 0s linear 120ms;
}

.panel__header,
.panel__spell,
.panel__options,
.panel__footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel__title {
  font-weight: 650;
  font-size: 13.5px;
  margin-right: auto;
}

.panel__count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.panel__icon-button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.panel__icon-button svg {
  width: 14px;
  height: 14px;
}

.panel__icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

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

.shape-button {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 9px 0 8px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
  font-size: 11px;
  cursor: pointer;
  transition: background-color 120ms ease-out, transform 120ms ease-out;
}

.shape-button svg {
  width: 22px;
  height: 22px;
}

.shape-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.shape-button:active {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(0.97);
}

.panel__spell input {
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22);
  font-size: 13px;
}

.panel__spell input:focus {
  outline: none;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22), 0 0 0 3px rgba(10, 132, 255, 0.6);
}

.panel__button {
  height: 26px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.14);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.panel__button:hover {
  background: rgba(255, 255, 255, 0.19);
}

.panel__button:active {
  background: rgba(255, 255, 255, 0.26);
}

.panel button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.panel__caption {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.panel__options input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--mac-blue);
}

.panel__check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  white-space: nowrap;
}

.panel__check input {
  margin: 0;
  accent-color: var(--mac-blue);
}

.panel__status {
  min-height: 2.7em;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
}

.panel__footer {
  justify-content: space-between;
  padding-top: 12px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.16);
}

/* Sections ---------------------------------------------------------------- */

.section {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(88px, 12vw, 152px) 0 0;
}

.section__head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section__head p {
  max-width: 620px;
}

.section__head h2,
.closing h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1;
  text-wrap: balance;
}

.section__head p {
  font-size: 18px;
  color: var(--mute);
}

/* Release overview and Settings keep the same desktop palette and type. */

.release__grid .how__item {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.release__grid .meta {
  color: var(--folder);
  font-size: 11.5px;
}

.release__grid h3 {
  margin-top: 0;
}

.release__grid a {
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--line);
}

.release__grid a:hover {
  text-decoration-color: var(--folder);
}

.release__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  color: var(--mute);
  font-size: 14px;
}

.release__foot a {
  color: var(--chalk);
  text-underline-offset: 4px;
}

.settings__grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}

.settings__shortcut {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--night);
}

.settings__keys {
  display: flex;
  gap: 8px;
  margin: 36px 0;
}

.settings__keys kbd {
  display: grid;
  place-items: center;
  flex: 1;
  aspect-ratio: 1;
  max-width: 68px;
  border: 1px solid rgba(244, 238, 248, 0.22);
  border-radius: 10px;
  background: var(--dusk);
  box-shadow: 0 4px 0 var(--ink);
  font: 28px/1 var(--font-ui);
}

.settings__shortcut h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.settings__shortcut > p:last-child {
  color: var(--mute);
  font-size: 16px;
}

/* Video */

.video__frame {
  margin: 0;
  display: grid;
  gap: 12px;
}

.video__frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* How it works */

.how__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px);
}

.how__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  align-content: start;
  gap: 12px;
}

.how__item h3 {
  margin-top: 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.how__item p {
  color: var(--mute);
  font-size: 16px;
}

.figure {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 10px;
}

.figure > svg,
.figure > canvas,
.figure > pre {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--night);
  box-shadow: inset 0 0 0 1px var(--line);
}

.figure--code pre {
  margin: 0;
  padding: 20px 18px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--chalk);
  white-space: pre;
}

.tok-key {
  color: #ff9fc0;
}

.tok-str {
  color: #8fd0ff;
}

.tok-dim {
  color: var(--mute);
}

.figure figcaption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--ember {
  background: var(--ember);
}

.dot--folder {
  margin-left: 8px;
  background: var(--folder);
}

/* Install */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 360px);
  gap: 20px 32px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.step::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 0.9;
  color: var(--ember);
}

.step__text {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.step__text h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.step__text p {
  color: rgba(244, 238, 248, 0.82);
}

.step__text strong {
  color: var(--chalk);
  font-weight: 600;
}

.step__aside {
  font-size: 15px;
  color: var(--mute) !important;
}

.step:not(:has(.mock)) .step__text {
  grid-column: 2 / -1;
}

/* Mocks of the macOS screens people will see */

.mock {
  justify-self: end;
  width: 100%;
  max-width: 340px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
}

.mock--alert {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 18px 16px 16px;
  border-radius: 14px;
  background: #2b2633;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 18px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.mock__appicon {
  width: 46px;
  height: 46px;
  background: url("/img/app-icon.webp") center / contain no-repeat;
}

.mock__title {
  font-weight: 700;
  font-size: 12.5px;
}

.mock__body {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

.mock__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.mock__buttons--stack {
  grid-template-columns: 1fr;
}

.mock__btn {
  display: block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.mock__btn--focus {
  background: var(--mac-blue);
  box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 4.5px var(--ember);
}

.mock--settings {
  padding: 14px;
  border-radius: 12px;
  background: #241f2d;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

.mock__section {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 12.5px;
}

.mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
}

.mock--menu {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.mock__menu {
  margin: 0;
  padding: 5px;
  list-style: none;
  min-width: 150px;
  border-radius: 9px;
  background: rgba(44, 38, 54, 0.96);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 16px 36px rgba(0, 0, 0, 0.45);
  font-size: 12.5px;
}

.mock__menu li {
  display: flex;
  align-items: center;
  padding: 2px 10px 2px 6px;
  border-radius: 5px;
}

.mock__menu--sub {
  margin: 64px 0 0 -6px;
}

.mock__check {
  width: 16px;
  font-size: 11px;
}

.mock__chev {
  margin-left: auto;
  padding-left: 12px;
  opacity: 0.7;
}

.mock__menu .is-open,
.mock__menu .is-picked {
  background: var(--mac-blue);
}

.mock__menu .mock__sep {
  height: 1px;
  margin: 4px 6px;
  padding: 0;
  background: rgba(255, 255, 255, 0.14);
}

/* Extras: Terminal and build-from-source */

.extras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.extra {
  align-self: start;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--night);
  box-shadow: inset 0 0 0 1px var(--line);
}

.extra summary,
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.extra summary::after,
.faq summary::after {
  content: "+";
  float: right;
  margin-left: 16px;
  font-family: var(--font-mono);
  color: var(--mute);
}

.extra[open] summary::after,
.faq details[open] summary::after {
  content: "−";
}

.extra p {
  margin: 12px 0;
  font-size: 15px;
  color: var(--mute);
}

.command {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: 10px;
  background: var(--ink);
}

.command code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.command__copy {
  flex: none;
  padding: 3px 10px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  cursor: pointer;
}

.command__copy:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* FAQ */

.faq__list {
  display: grid;
  max-width: 820px;
}

.faq details {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  font-size: 18px;
}

.faq details p {
  max-width: 680px;
  margin-top: 10px;
  color: var(--mute);
}

.faq a {
  color: var(--chalk);
}

/* Closing + footer */

.closing {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding-bottom: clamp(88px, 12vw, 152px);
  text-align: center;
}

.closing h2 {
  font-size: clamp(40px, 6vw, 80px);
}

.closing__icon {
  width: 112px;
  height: 112px;
  margin-bottom: -8px;
}

.closing__support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  max-width: 560px;
  margin-top: 16px;
  padding: 14px 14px 14px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(244, 238, 248, 0.035);
  text-align: left;
}

.closing__support p {
  flex: 1 1 220px;
  font-size: 15px;
  color: rgba(244, 238, 248, 0.8);
  text-wrap: balance;
}

/* Download notification, styled like a macOS banner. */

.notice {
  position: fixed;
  top: calc(var(--mb) + 10px);
  right: 10px;
  z-index: 45;
  width: min(360px, calc(100vw - 20px));
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 16px 14px 13px;
  border-radius: 18px;
  background: rgba(40, 33, 52, 0.86);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.55),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.16),
    0 22px 60px rgba(8, 4, 20, 0.5);
  font-size: 13px;
  line-height: 1.38;
  color: #fff;
  opacity: 0;
  transform: translateX(calc(100% + 24px));
  transition: opacity 180ms ease-in, transform 220ms ease-in;
}

.notice[data-open="true"] {
  opacity: 1;
  transform: none;
  transition: opacity 160ms ease-out, transform 420ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.notice__icon {
  width: 40px;
  height: 40px;
}

.notice__body {
  display: grid;
  gap: 2px;
}

.notice__title {
  font-weight: 650;
}

.notice__body > p:not(.notice__title) {
  color: rgba(255, 255, 255, 0.78);
}

.notice__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 9px;
}

.notice__link {
  color: rgba(255, 255, 255, 0.85);
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.notice__link:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

.notice__close {
  position: absolute;
  top: -7px;
  left: -7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #4a4158;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.55),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.2),
    0 2px 6px rgba(8, 4, 20, 0.35);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

/* A bigger touch target than the 22px circle. */
.notice__close::after {
  content: "";
  position: absolute;
  inset: -11px;
}

.notice__close svg {
  width: 11px;
  height: 11px;
}

.notice__close:hover {
  background: #5b5169;
}

/* Like macOS, the close button waits for the pointer. Touch screens always show it. */
@media (hover: hover) and (pointer: fine) {
  .notice__close {
    opacity: 0;
    transition: opacity 120ms ease-out;
  }

  .notice:hover .notice__close,
  .notice:focus-within .notice__close {
    opacity: 1;
  }
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--mute);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer__links a {
  color: var(--chalk);
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero release link ------------------------------------------------------ */

.hero-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(244, 238, 248, 0.22);
  background: rgba(17, 13, 30, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 140ms ease-out, background-color 140ms ease-out;
}

.hero-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px rgba(240, 138, 75, 0.8);
}

.hero-pill:hover {
  border-color: rgba(244, 238, 248, 0.4);
  background: rgba(17, 13, 30, 0.55);
}

/* AI Sort: a second pretend desktop -------------------------------------- */

.sortdesk {
  position: relative;
  /* Field and dropdown share one grid cell: if the dropdown is taller than
     the field, the row — and the desk — grows to fit instead of clipping it. */
  display: grid;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(0, 0, 0, 0.35);
  background:
    radial-gradient(70% 55% at 80% 108%, rgba(255, 150, 86, 0.55), rgba(255, 150, 86, 0) 70%),
    radial-gradient(60% 50% at 14% 112%, rgba(222, 84, 118, 0.5), rgba(222, 84, 118, 0) 70%),
    radial-gradient(80% 60% at 28% -12%, rgba(92, 66, 182, 0.45), rgba(92, 66, 182, 0) 70%),
    linear-gradient(180deg, #120d24 0%, #1e1534 36%, #3a1d44 68%, #6a2c48 100%);
}

.sortdesk::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* macOS menu bar across the top of the pretend desktop; the ShapeDesk
   menulet looks pressed while its dropdown hangs below. */

.sortdesk__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  background: rgba(10, 7, 22, 0.55);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.sortdesk__menulet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: -8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 600;
}

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

.sortdesk__clock {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.75);
}

.sortdesk__field {
  position: relative;
  grid-area: 1 / 1;
  min-height: 560px;
}

.sortdesk__icons {
  position: absolute;
  inset: 0;
}

.ficon {
  position: absolute;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.ficon__art {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.ficon__art svg {
  width: 42px;
  height: auto;
}

.ficon--folder .ficon__art svg {
  width: 52px;
}

.ficon__badge {
  font: 700 6.6px/1 var(--font-mono);
  fill: #fff;
}

.ficon__label {
  max-width: 104px;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 500;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.ficon.is-sorted {
  visibility: hidden;
}

.ficon.is-moving {
  z-index: 6;
}

.ficon.is-kept .ficon__art {
  animation: ficon-keep 650ms ease-out;
}

@keyframes ficon-keep {
  0% { box-shadow: 0 0 0 0 rgba(240, 138, 75, 0.75); }
  100% { box-shadow: 0 0 0 12px rgba(240, 138, 75, 0); }
}

.ficon--folder.is-bump .ficon__art {
  animation: ficon-bump 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ficon-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* Replica of the app's menu-bar dropdown on its AI Sort page (AISortView.swift).
   It hangs under the menulet — no title bar, no traffic lights. --- */

.aiwin {
  position: relative;
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  margin: 34px 0 14px 16px;
  z-index: 8;
  width: 316px;
  display: flex;
  flex-direction: column;
  border-radius: 13px;
  background: #221d2e;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.6),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.14),
    0 24px 60px rgba(8, 4, 20, 0.55);
  font-size: 12.5px;
  line-height: 1.4;
  color: #fff;
}

/* The little anchor notch pointing up at the menulet. */
.aiwin::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 26px;
  width: 11px;
  height: 11px;
  border-radius: 2.5px 0 0 0;
  background: #221d2e;
  transform: rotate(45deg);
}

.aiwin__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 13px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

.aiwin__glyph {
  width: 17px;
  height: 17px;
}

.aiwin__app {
  font-size: 12.5px;
  font-weight: 650;
}

.aiwin__seg {
  margin-left: auto;
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.aiwin__seg > * {
  padding: 2.5px 11px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  white-space: nowrap;
}

.aiwin__seg .is-on {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-weight: 600;
}

.aiwin__body {
  display: grid;
  gap: 11px;
  padding: 13px 15px 14px;
  overflow: auto;
  scrollbar-width: thin;
}

.aiwin__intro {
  position: relative;
  padding-right: 76px;
}

.aiwin__h {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.aiwin__sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--mute);
}

.aiwin__pill {
  position: absolute;
  top: 2px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: 999px;
  background: rgba(62, 156, 120, 0.22);
  color: #7fd6b2;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.aiwin__pill svg {
  width: 9px;
  height: 9px;
}

.aiwin__target {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.aiwin__monitor {
  width: 22px;
  height: 22px;
  flex: none;
  color: #57b28c;
}

.aiwin__target-text {
  min-width: 0;
}

.aiwin__target-text b {
  display: block;
  font-size: 12px;
}

.aiwin__target-text small {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: var(--mute);
}

.aiwin__counts {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.aiwin__count b {
  display: block;
  font-size: 21px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.aiwin__count span {
  font-size: 10px;
  color: var(--mute);
}

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

.aiwin__progress i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: #3e9c78;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease-out;
}

.aiwin__folders-title {
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 650;
}

.aiwin__cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  font-size: 11px;
  color: var(--mute);
}

.aiwin__cats li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.aiwin__cats svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.aiwin__table {
  display: grid;
  gap: 3px;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.aiwin__tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 34px;
  gap: 8px;
}

.aiwin__tr > span:nth-child(2),
.aiwin__tr > span:nth-child(3) {
  text-align: right;
}

.aiwin__tr--head {
  color: var(--mute);
}

.aiwin__tr .aiwin__cat {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.aiwin__tr .aiwin__cat svg {
  flex: none;
  width: 12px;
  height: 12px;
}

.aiwin__status {
  min-height: 2.6em;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
}

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

.aiwin__primary,
.aiwin__button {
  height: 27px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.aiwin__primary {
  background: #337a5e;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
}

.aiwin__primary:hover {
  background: #3c8c6c;
}

.aiwin__primary:active {
  background: #2d6b52;
}

.aiwin__button {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.14);
}

.aiwin__button:hover {
  background: rgba(255, 255, 255, 0.19);
}

.aiwin__button--undo {
  margin-left: auto;
}

.aiwin button:disabled {
  opacity: 0.45;
  cursor: default;
}

.aiwin__fine {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-top: 10px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--mute);
}

.aiwin__fine svg {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 1px;
}

.aiwin__checks {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
}

.aiwin__checks b {
  font-weight: 650;
  color: #fff;
}

.aiwin__local {
  font-size: 11px;
  color: #7fd6b2;
}

.local-sorting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px 32px;
  margin-top: 40px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}

.local-sorting h3 {
  font-size: 24px;
  line-height: 1.2;
}

.local-sorting p {
  font-size: 16px;
  color: var(--mute);
}

/* The four AI Sort fact items --------------------------------------------- */

.how__grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 80px);
}

#ai-sort > .desktop-note {
  margin-top: 14px;
}

.fig-tick {
  font-family: var(--font-mono);
  font-size: 9px;
}

.figure__frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--night);
  box-shadow: inset 0 0 0 1px var(--line);
}

.figure__frame--menus {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 10px;
}

.figure__frame--menus .mock__menu {
  font-size: 11.5px;
  min-width: 128px;
}

.figure__frame--menus .mock__menu--sub {
  margin: 62px 0 0 -8px;
}

/* Confidence scores as horizontal bars with a dashed 0.8 threshold. */
.figure__frame--bars {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-content: center;
  gap: 14px 12px;
  padding: 20px;
}

.bars__name {
  align-self: center;
  max-width: 150px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--chalk);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bars__track {
  position: relative;
  align-self: center;
  height: 13px;
  border-radius: 4px;
  background: rgba(244, 238, 248, 0.1);
}

.bars__track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 4px;
  background: var(--folder);
}

.bars__track i.is-below {
  background: #4a4158;
}

.bars__val {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--mute);
}

/* Every track draws the dashed 0.8 threshold at the same column offset, so
   the segments read as one continuous line down the chart. */
.bars__track::after {
  content: "";
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 80%;
  border-left: 1.4px dashed var(--ember);
  pointer-events: none;
}

.bars__track--mark::before {
  content: "0.8";
  position: absolute;
  top: -15px;
  left: 80%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ember);
}

/* Storage figures. Sizes reuse the bars without a threshold. Not Opened moves
   the dashed line to 90 days on a one-year scale, so a bar crossing it reads
   like a confident score crossing 0.8. */
.figure__frame--sizes .bars__track::after {
  content: none;
}

.figure__frame--unused .bars__track::after {
  left: 25%;
}

.figure__frame--unused .bars__track--mark::before {
  content: "90 days";
  left: 25%;
}

/* A duplicate group as the Storage tab shows it (StorageView.swift). */
.figure__frame--dups {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: 20px;
}

.dupcard {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.3;
}

.dupcard__head {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--mute);
}

.dupcard__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dupcard__radio {
  flex: none;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.3px rgba(255, 255, 255, 0.42);
}

.is-kept .dupcard__radio {
  background: #57b28c;
  box-shadow: none;
  color: #10241b;
}

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

.dupcard__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dupcard__tag {
  margin-left: auto;
  padding-left: 8px;
  font-size: 10.5px;
  color: var(--mute);
}

.is-kept .dupcard__tag {
  color: #7fd6b2;
}

.dupcard__button {
  padding: 5px 12px;
  border-radius: 6px;
  background: #337a5e;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* Pro --------------------------------------------------------------------- */

.pro__grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}

.plancard {
  border-radius: 13px;
  background: #221d2e;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.6),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.14),
    0 24px 60px rgba(8, 4, 20, 0.45);
  overflow: hidden;
  font-size: 13px;
}

.plancard__body {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.plancard__intro .aiwin__sub {
  margin-top: 3px;
}

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

.plancard__price > b {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plancard__price > span {
  color: var(--mute);
  font-size: 13px;
}

.status-chip {
  align-self: center;
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(240, 138, 75, 0.16);
  color: var(--ember);
  font-size: 10.5px;
  font-weight: 650;
}

.plancard__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 12.5px;
}

.plancard__benefits li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.plancard__benefits svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #57b28c;
}

.plancard .button-download {
  justify-self: start;
  min-height: 40px;
  font-size: 14.5px;
}

.plancard__note {
  font-size: 11px;
  color: var(--mute);
}

.pro__items {
  display: grid;
  gap: 26px;
  align-content: start;
  padding-top: 6px;
}

.pro__item h3 {
  margin-bottom: 7px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.pro__item p {
  max-width: 480px;
  font-size: 15.5px;
  color: var(--mute);
}

.pro__item p + p {
  margin-top: 8px;
}

.pro__item a {
  color: var(--chalk);
}

.pro__fine {
  max-width: 740px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mute);
}

/* Account page ------------------------------------------------------------ */

.accountdesk {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--mb) + 36px) var(--gutter) 56px;
  background:
    radial-gradient(70% 55% at 80% 108%, rgba(255, 150, 86, 0.5), rgba(255, 150, 86, 0) 70%),
    radial-gradient(60% 50% at 14% 112%, rgba(222, 84, 118, 0.45), rgba(222, 84, 118, 0) 70%),
    radial-gradient(80% 60% at 28% -12%, rgba(92, 66, 182, 0.45), rgba(92, 66, 182, 0) 70%),
    linear-gradient(180deg, #120d24 0%, #1e1534 36%, #3a1d44 68%, #6a2c48 100%);
}

.accountwin {
  width: min(600px, 100%);
  border-radius: 14px;
  background: #221d2e;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.6),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.14),
    0 30px 80px rgba(8, 4, 20, 0.55);
  overflow: hidden;
}

.accountwin__body {
  display: grid;
  gap: 18px;
  padding: 26px 28px 28px;
  font-size: 14.5px;
}

.acct-block {
  display: grid;
  gap: 12px;
  align-content: start;
}

.accountwin__body h1 {
  font-size: 25px;
  letter-spacing: -0.02em;
}

.accountwin__body h2 {
  font-size: 13px;
  font-family: var(--font-ui);
  font-weight: 650;
  letter-spacing: 0;
}

.acct-sub {
  margin-top: -10px;
  font-size: 13.5px;
  color: var(--mute);
}

.acct-card {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
}

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

.acct-usage b {
  font-size: 27px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.acct-usage span {
  font-size: 12px;
  color: var(--mute);
}

.acct-usage .acct-used {
  margin-left: auto;
  font-size: 11px;
}

.acct-meter {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.acct-meter i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: #3e9c78;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease-out;
}

.acct-reset {
  font-size: 11px;
  color: var(--mute);
}

.acct-field {
  display: grid;
  gap: 7px;
}

.acct-field label {
  font-size: 11px;
  font-weight: 650;
  color: var(--mute);
}

.acct-keyrow {
  display: flex;
  gap: 8px;
}

.acct-keyrow input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22);
  font-family: var(--font-mono);
  font-size: 12px;
}

.acct-keyrow input:focus {
  outline: none;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22), 0 0 0 3px rgba(10, 132, 255, 0.6);
}

.acct-keyrow button {
  flex: none;
  width: 58px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.19);
}

.btn--primary {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 9px;
  background: linear-gradient(180deg, #5cb4f6, #2f8ee6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px rgba(30, 110, 210, 0.3);
  font-size: 14px;
}

.btn--primary:hover {
  background: linear-gradient(180deg, #68bdf7, #3596ee);
}

.btn--danger {
  color: #ff8f8f;
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.acct-help {
  font-size: 12.5px;
  color: var(--mute);
}

.acct-help summary {
  cursor: pointer;
  color: var(--chalk);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(244, 238, 248, 0.35);
  list-style: none;
}

.acct-help summary::-webkit-details-marker {
  display: none;
}

.acct-help[open] summary {
  margin-bottom: 6px;
}

.acct-help p {
  margin: 5px 0;
}

.acct-help__mock {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
}

.acct-help__mock .mock__btn {
  font-size: 10.5px;
}

.acct-note {
  font-size: 11.5px;
  color: var(--mute);
}

.acct-link {
  font-size: 13px;
  color: var(--chalk);
  text-underline-offset: 3px;
}

.acct-macs {
  display: grid;
  gap: 10px;
}

.acct-macs > p {
  font-size: 11.5px;
  color: var(--mute);
}

.acct-maclist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.acct-mac {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.acct-mac__text {
  min-width: 0;
  flex: 1;
}

.acct-mac__name {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.acct-mac__dates {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--mute);
}

.acct-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(240, 138, 75, 0.1);
  box-shadow: inset 0 0 0 0.5px rgba(240, 138, 75, 0.3);
  font-size: 11.5px;
}

.acct-confirm p {
  flex: 1 1 100%;
  color: rgba(244, 238, 248, 0.85);
}

.acct-confirm .btn {
  min-height: 26px;
  font-size: 12px;
}

.acct-actions {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
}

.acct-actions .spacer {
  flex: 1;
}

.acct-alert {
  padding: 10px 13px;
  border-radius: 9px;
  background: rgba(240, 138, 75, 0.13);
  box-shadow: inset 0 0 0 0.5px rgba(240, 138, 75, 0.35);
  font-size: 12.5px;
  color: #f3b98c;
}

.acct-note-line {
  font-size: 11.5px;
  color: var(--mute);
}

.menubar__item[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
}

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

@media (max-width: 1240px) {
  .step {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .mock {
    grid-column: 2;
    justify-self: start;
  }

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

  /* The AI Sort dropdown stacks under its desktop, like the hero panel. */
  .sortdesk {
    display: flex;
    flex-direction: column;
  }

  .sortdesk__field {
    flex: none;
    height: 440px;
    min-height: 0;
  }

  .aiwin {
    position: static;
    transform: none;
    align-self: center;
    width: min(100% - 28px, 420px);
    max-height: none;
    margin: 14px 0;
  }

  .aiwin::before {
    display: none;
  }

  /* Too narrow for the panel beside the shapes: it moves below them. */
  .desktop {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(300px, 56svh) auto auto;
    min-height: 0;
    row-gap: 16px;
    padding-bottom: 28px;
  }

  .panel,
  .panel[data-open="false"] {
    position: relative;
    top: auto;
    right: auto;
    grid-row: 3;
    justify-self: center;
    width: min(100%, 380px);
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  #close {
    display: none;
  }

  .desktop-note {
    grid-row: 4;
    text-align: center;
  }
}

/* The Storage link is the first to go when the menu bar runs out of room. */
@media (max-width: 1000px) {
  .menubar__item--storage {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --icon: 24px;
    --cell: 40px;
  }

  .menubar__item--wide,
  .menubar__wifi {
    display: none;
  }

  .icon__label,
  .ficon__label {
    display: none;
  }

  .ficon,
  .ficon__label {
    width: 72px;
  }

  .pro__grid,
  .settings__grid,
  .local-sorting {
    grid-template-columns: minmax(0, 1fr);
  }

  .how__grid,
  .how__grid--four,
  .extras {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .menubar__item--mid {
    display: none;
  }

  .menubar__coffee {
    margin-right: 4px;
    padding: 0 6px;
  }

  .menubar__coffee-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .menubar {
    font-size: 13px;
  }

  .menubar__item {
    padding: 0 7px;
  }

  .closing__support {
    padding: 18px;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

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

  .step::before {
    font-size: 34px;
  }

  .step__text,
  .step:not(:has(.mock)) .step__text,
  .mock {
    grid-column: 1;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Phones already show the time just above the page. */
@media (max-width: 400px) {
  .menubar__clock {
    display: none;
  }

  .menubar__app {
    padding: 0 8px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Superadmin console --------------------------------------------------------- */

.accountwin--admin {
  width: min(1060px, 100%);
}

.adm-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.adm-top h1 {
  flex: 1;
}

.adm-session {
  font-size: 11px;
  color: var(--mute);
}

.adm-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
  width: fit-content;
}

.adm-tab {
  border: 0;
  border-radius: 6px;
  padding: 5px 14px;
  background: transparent;
  color: var(--mute);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.adm-tab.is-on {
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
}

.adm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.adm-stat {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.adm-stat b {
  font-size: 24px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.adm-stat span {
  font-size: 11.5px;
  color: var(--mute);
}

.adm-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
}

.adm-form__wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.adm-form__wide .acct-field {
  display: grid;
  gap: 7px;
}

.adm-optional {
  font-weight: 400;
  text-transform: none;
}

.adm-created {
  font-size: 12.5px;
  color: #7ed7a8;
  font-family: var(--font-mono);
}

.adm-table-wrap {
  overflow-x: auto;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.22);
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.adm-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 12px 8px;
}

.adm-table td {
  padding: 8px 12px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.adm-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.adm-nowrap {
  white-space: nowrap;
}

.adm-note {
  font-size: 11.5px;
  color: var(--mute);
}

.adm-acct {
  cursor: pointer;
}

.adm-acct:hover td {
  background: rgba(255, 255, 255, 0.045);
}

.adm-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
}

.adm-badge--good { background: rgba(62, 156, 120, 0.24); color: #8fe0b8; }
.adm-badge--warn { background: rgba(240, 180, 80, 0.2); color: #f2c879; }
.adm-badge--bad { background: rgba(235, 105, 105, 0.2); color: #f49b9b; }
.adm-badge--dim { background: rgba(255, 255, 255, 0.1); color: var(--mute); }

.adm-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.adm-mini {
  padding: 3px 10px;
  font-size: 11px;
  min-height: 0;
}

.adm-subrow td {
  background: rgba(255, 255, 255, 0.03);
}

.adm-uses {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.adm-detail {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
}

.adm-detail h3 {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 8px 0 0;
}

.adm-detail__head {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  align-items: baseline;
}

.adm-detail__head > code {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
}

.adm-kv {
  display: flex;
  gap: 6px;
  font-size: 12px;
}

.adm-k {
  color: var(--mute);
}

.adm-devices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.adm-devices li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-ops {
  display: grid;
  gap: 8px;
}

.adm-op {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.adm-op__label {
  min-width: 170px;
  color: var(--mute);
}

.adm-op input {
  width: 90px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22);
  color: inherit;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.adm-target {
  color: var(--mute);
}

@media (max-width: 720px) {
  .adm-form {
    grid-template-columns: 1fr 1fr;
  }
  .adm-op__label {
    min-width: 0;
    flex: 1;
  }
  .accountdesk {
    padding-top: calc(var(--mb) + 16px);
  }
}
