/* Advisor pages. Same system as /style.css and /love-lock/style.css, with Advisor's blue. */

:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: light-dark(#f2f2f7, #1c1c1e);
  --card: light-dark(#ffffff, #2c2c2e);
  --text: light-dark(#1c1c1e, #f2f2f7);
  --muted: light-dark(rgba(28, 28, 30, 0.68), rgba(242, 242, 247, 0.68));
  --faint: light-dark(rgba(28, 28, 30, 0.45), rgba(242, 242, 247, 0.45));
  --badge: light-dark(#e3e3e8, #3a3a3c);
  --line: light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.08));
  --blue: #0a84ff;
  --stalled: #8000ff;
  --shadow: light-dark(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.45));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
}

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

a {
  color: var(--blue);
}

a:visited {
  color: var(--blue);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.leds {
  display: flex;
  height: 6px;
}

.leds span {
  flex: 1;
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px 0 8px;
}

.brand,
.brand:visited {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
}

header nav {
  display: flex;
  gap: 18px;
}

header nav a,
header nav a:visited {
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

header nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 48px;
  align-items: center;
  padding: 28px 0 64px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 14ch;
}

.lede {
  margin: 16px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 18px;
}

.download {
  margin-top: 28px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.download-button:visited {
  color: #fff;
}

.download-button:hover {
  background: #0077ed;
}

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

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

.store-button,
.store-button:visited {
  background: var(--badge);
  color: var(--text);
}

.store-button:hover {
  background: light-dark(#d6d6dc, #48484a);
}

.download-meta,
.download-file,
.download-links,
.note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.download-file {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.download-file:empty,
.digest:empty {
  display: none;
  margin: 0;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.download-links a[hidden] {
  display: none !important;
}

.digest {
  display: block;
  margin-top: 8px;
  max-width: 100%;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.note {
  max-width: 38rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The window screenshot carries its own chrome and shadow. */
.window-shot {
  margin: 0;
}

.window-shot img {
  width: 100%;
  height: auto;
}

.hero-states {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-states li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-states .face {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.hero-states .face img {
  width: 26px;
  height: 26px;
}

.cap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 46%),
    #2c2c2e;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -7px 10px rgba(0, 0, 0, 0.4),
    0 8px 16px color-mix(in srgb, var(--led) 50%, transparent);
  display: grid;
  place-items: center;
}

.cap img {
  width: 36px;
  height: 36px;
}

.cap .led {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 3px;
  border-radius: 2px;
  background: var(--led);
  box-shadow: 0 0 8px var(--led);
}

section {
  padding: 8px 0 64px;
}

/* Menu bar */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 356px);
  gap: 48px;
  align-items: start;
}

.points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

.points strong {
  color: var(--text);
}

kbd {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--badge);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9em;
  white-space: nowrap;
}

/* A drawn menu bar, holding the app's own tray icon, above a screenshot of the menu alone. The
   menu.webp numbers come from screenshots.sh: the shot is 356pt wide, the icon's center is 45pt in,
   and the menu starts 19.5pt below the shot's top edge (the rest is its shadow). */
.menu-shot {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 356px;
}

.menubar {
  position: relative;
  height: 30px;
  border-radius: 10px 10px 0 0;
  background: #2a2a2e;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.menubar-item {
  position: absolute;
  top: 3px;
  left: calc(45 / 356 * 100% - 18px);
  display: grid;
  place-items: center;
  width: 36px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
}

.menubar img {
  width: 22px;
  height: 22px;
}

.menu-shot .menu {
  width: 100%;
  height: auto;
  margin-top: calc(-19.5 / 356 * 100% + 4px);
}

.moods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.moods li {
  padding: 14px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 14px;
}

.moods strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.menubar.mini {
  display: grid;
  place-items: center;
  width: 64px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 7px;
}

.menubar img.blinking {
  animation: dim 1s step-end infinite;
}

@keyframes dim {
  50% {
    opacity: 0.45;
  }
}

h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-lede {
  margin: 0 0 22px;
  max-width: 38rem;
  color: var(--muted);
}

.states {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
}

.face {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 10px;
  background: #1c1c1e;
}

.face img {
  width: 40px;
  height: 40px;
}

.state-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--led);
}

.dot.blinking,
.led.blinking {
  animation: blink 1s step-end infinite;
}

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

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

.facts article {
  padding: 16px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
}

.facts .face {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 9px;
}

.facts .face img {
  width: 32px;
  height: 32px;
}

.facts h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.facts p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--badge);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
}

h3.agents-title {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.agents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.agents li {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--badge);
  font-size: 14px;
  font-weight: 600;
}

/* The keyboard is an aside: most people won't flash a board. */
.keyboard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 56px;
  padding: 20px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
}

.keyboard h2 {
  font-size: 20px;
}

.keyboard p {
  margin: 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: 15px;
}

.keys {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: #1c1c1e;
}

.keys .cap {
  width: 44px;
  height: 44px;
}

.keys .cap img {
  width: 30px;
  height: 30px;
}

.keys .cap .led {
  left: 10px;
  right: 10px;
  bottom: 4px;
}

/* Text pages (support, privacy). */

.page {
  max-width: 44rem;
  padding: 28px 0 56px;
}

.page h1 {
  max-width: none;
  font-size: clamp(32px, 4.5vw, 44px);
}

.page .updated {
  margin: 10px 0 28px;
  color: var(--faint);
  font-size: 14px;
}

.page h2 {
  margin-top: 36px;
  font-size: 22px;
}

.page p,
.page li {
  color: var(--muted);
}

.page strong {
  color: var(--text);
}

.page ul {
  padding-left: 1.2em;
}

.page li {
  margin: 6px 0;
}

.page code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.summary {
  margin: 0 0 20px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--card);
}

.summary p {
  margin: 0;
  color: var(--text);
}

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

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

.faq summary {
  padding: 14px 0;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.faq details p,
.faq details ol {
  margin: 0 0 16px;
}

.page ol {
  padding-left: 1.4em;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.contact:visited {
  color: #fff;
}

.contact:hover {
  background: #0070e0;
}

.contact svg {
  width: 18px;
  height: 18px;
}

footer {
  padding: 8px 0 40px;
  color: var(--faint);
  font-size: 13px;
}

footer p {
  margin: 0 0 6px;
}

footer a,
footer a:visited {
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .window-shot {
    width: min(100%, 380px);
    justify-self: center;
  }

  .menu-shot {
    justify-self: center;
  }

  .states,
  .facts,
  .moods {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 32px, 1080px);
  }

  .states,
  .facts {
    grid-template-columns: 1fr;
  }

  header nav {
    gap: 14px;
  }

  .keyboard {
    grid-template-columns: 1fr;
  }

  .keys {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot.blinking,
  .led.blinking,
  .menubar img.blinking {
    animation: none;
  }
}
