/* Epicenter landing page.
   The site is loud and friendly; the app window inside it keeps the
   Epicenter app's own calm dark tokens (apps/web/src/styles.css). */
:root {
  --ink: #151311;
  --ink-soft: #3d3934;
  --paper: #ffffff;
  --butter: #ffe27a;
  --marigold: #ffb800;
  --tomato: #ff5b3a;
  --lilac: #e6ddff;
  --mint: #c8f1dc;
  --on-ink: #f7f3ea;
  --on-ink-muted: #c9c1b4;
  --pop: 4px 4px 0 var(--ink);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

[id] {
  scroll-margin-top: 16px;
}

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

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

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: translateY(0);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons and stickers */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--marigold);
}

.btn-ink:hover {
  box-shadow: 6px 6px 0 var(--marigold);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--pop);
}

.btn-light:hover {
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-sm {
  min-height: 44px;
  padding: 9px 18px;
  font-size: 15px;
}

.sticker {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px 7px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Header */

.top {
  position: relative;
  z-index: 30;
  background: var(--butter);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  min-height: 80px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
}

.logo svg {
  flex: 0 0 auto;
}

/* The mark's centre dot follows the wordmark's period. */
.logo,
.core {
  --mark-dot: var(--tomato);
}

.dot {
  color: var(--tomato);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(21, 19, 17, 0.08);
}

.nav-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

/* Desktop: logo left, links centered on the page, actions right. */
@media (min-width: 861px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .logo {
    justify-self: start;
  }

  .nav-links {
    margin-left: 0;
  }

  .nav-actions {
    justify-self: end;
    margin-left: 0;
  }
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.icon-btn:hover {
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.menu-btn {
  display: none;
}

.burger {
  display: grid;
  gap: 4px;
  width: 18px;
}

.burger span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.top.open .burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.top.open .burger span:nth-child(2) {
  opacity: 0;
}

.top.open .burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: max(560px, calc(100svh - 80px));
  overflow: hidden;
  background: var(--butter);
}

.hero-copy {
  flex: 0 0 auto;
  padding-top: clamp(20px, 4.5vh, 56px);
  text-align: center;
}

.hero h1 {
  margin: 0 auto 24px;
  font-size: clamp(44px, min(9vw, 12vh), 120px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.squiggle {
  position: relative;
  display: inline-block;
}

.squiggle svg {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.24em;
  overflow: visible;
}

.squiggle path {
  fill: none;
  stroke: var(--tomato);
  stroke-width: 8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.lede {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

/* The quake: chats circling the epicenter. Built at 1000x440, then scaled. */

/* The quake: the logo in the middle, chats all around it. Positions are
   fractions of the stage, so the scene fills whatever height is left. */
.quake {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
}

.quake-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 1000px);
  margin: 0 auto;
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(21, 19, 17, 0.2) 1.7px, transparent 2.2px);
  background-size: 20px 20px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 20%, #000 70%);
  pointer-events: none;
}

.quake-canvas {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
}

.hero.gpu .quake-canvas {
  display: block;
}

.hero > .wrap,
.hero > .quake {
  position: relative;
  z-index: 1;
}

.quake-hint {
  position: absolute;
  bottom: 18px;
  left: 24px;
  z-index: 1;
  display: none;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 24px;
  rotate: -3deg;
}

.hero.gpu .quake-hint {
  display: block;
}

.core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  color: var(--ink);
  translate: -50% -50%;
}

.core svg {
  width: 100px;
  height: 100px;
}

.core circle {
  transform-box: fill-box;
  transform-origin: center;
}

.mark-dot {
  fill: var(--tomato);
}

.who,
.say {
  position: absolute;
  top: calc(50% - var(--fy) * 100%);
  left: calc(50% + var(--fx) * 100%);
  animation: bob 5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.who {
  display: grid;
  place-items: center;
  width: var(--d, 64px);
  height: var(--d, 64px);
  overflow: visible;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: calc(var(--d, 64px) * 0.32);
  font-weight: 800;
  letter-spacing: -0.02em;
  translate: -50% -50%;
}

.who img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.who.co {
  background: var(--mint);
}

.net {
  position: absolute;
  right: -8px;
  bottom: -8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.net img,
.net svg {
  width: 22px;
  height: 22px;
}

.say {
  translate: -50% -50%;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: 18px 18px 18px 4px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.say.left {
  border-radius: 18px 18px 4px 18px;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

/* Underground: the actual app, calm and functional */

.inside {
  padding: 104px 0 120px;
  background: var(--ink);
  color: var(--on-ink);
}

.inside-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: 104px;
}

.inside-head p {
  max-width: 440px;
  margin: 0;
  color: var(--on-ink-muted);
}

.big {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-wrap: balance;
}

.window-wrap {
  position: relative;
}

.note {
  position: absolute;
  z-index: 2;
  color: var(--butter);
  font-family: var(--hand);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.05;
  pointer-events: none;
}

.note svg {
  position: absolute;
  overflow: visible;
}

.note path {
  fill: none;
  stroke: var(--butter);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note-dock {
  top: -78px;
  left: 6%;
  width: 230px;
}

.note-dock svg {
  top: 44px;
  left: 150px;
  width: 80px;
  height: 250px;
}

.note-delivered {
  top: -78px;
  right: 2%;
  width: 250px;
  text-align: right;
}

.note-delivered svg {
  top: 48px;
  left: 40px;
  width: 70px;
  height: 330px;
}

.note-people {
  bottom: -82px;
  left: 30%;
  width: 260px;
}

.note-people svg {
  bottom: 50px;
  left: -40px;
  width: 60px;
  height: 120px;
}

.note-paused {
  right: 6%;
  bottom: -82px;
  width: 260px;
  text-align: right;
}

.note-paused svg {
  right: 120px;
  bottom: 46px;
  width: 50px;
  height: 66px;
}

.notes-list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--butter);
  font-family: var(--hand);
  font-size: 26px;
  line-height: 1.2;
}

.notes-list li + li {
  margin-top: 10px;
}

.caption {
  margin: 0;
  color: var(--on-ink-muted);
  font-size: 14px;
}

/* The app window, using the Epicenter app's dark theme */

.app {
  --bg: #050505;
  --surface: #0d0d0d;
  --soft: #1a1a1a;
  --sidebar: #101013;
  --dock: #0f0f12;
  --text: #f2f2f2;
  --muted: #b0b0b0;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --accent: #e6c77e;
  --accent-soft: rgba(230, 199, 126, 0.12);
  --ok: #6fcf97;
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  margin: 0 0 24px;
  overflow: hidden;
  border: 2px solid #4a443c;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 10px 10px 0 var(--marigold);
  color: var(--text);
  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}

.app-side {
  display: flex;
  flex-direction: column;
  padding: 18px 12px 14px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding-left: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.app-brand .dot {
  color: var(--accent);
}

.app-controls {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.app-controls span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.app-label {
  margin-bottom: 6px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 11px;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-dot {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
}

.app-bottom {
  margin-top: auto;
  padding-top: 24px;
}

.private-note {
  display: flex;
  gap: 10px;
  padding: 12px 9px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.private-note svg {
  flex: 0 0 auto;
  color: var(--accent);
}

.private-note small,
.owner small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.owner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.app-topbar strong {
  color: var(--text);
  font-weight: 500;
}

.app-topbar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.app-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
}

.app-heading h3 {
  margin: 0 0 5px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.app-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.app-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.app-content {
  padding: 0 24px 24px;
}

.workspace {
  display: grid;
  grid-template-columns: 64px minmax(220px, 280px) minmax(0, 1fr);
  height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 11px 8px;
  border-right: 1px solid var(--line);
  background: var(--dock);
}

.dock-btn {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--muted);
}

.dock-btn.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.dock-btn.active::before {
  position: absolute;
  top: 11px;
  left: -9px;
  width: 3px;
  height: 24px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  content: "";
}

.count {
  position: absolute;
  top: -3px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-size: 8px;
  font-weight: 650;
  line-height: 1;
}

/* Provider marks sit on a white tile, as in the app's ProviderIcon. */
.ptile {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9px;
  background: #ffffff;
  color: #111111;
}

.ptile img {
  display: block;
  width: 22px;
  height: 22px;
}

.rooms {
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.rooms-head {
  padding: 13px 14px 9px;
}

.rooms-head h4 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.3;
}

.rooms-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.room-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 0 10px 8px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}

.room {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line-soft);
}

.room.selected {
  background: var(--soft);
  box-shadow: inset 3px 0 var(--accent);
}

.room-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.room-avatar.lg {
  width: 42px;
  height: 42px;
}

.room-copy {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.room-copy strong,
.room-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-copy strong {
  font-size: 12px;
  font-weight: 650;
}

.room-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.room time {
  align-self: flex-start;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.timeline {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.convo-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.convo-head h4 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.3;
}

.convo-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.badge {
  display: inline-block;
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.messages {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 20px 24px;
  background: #101010;
}

.msg {
  width: fit-content;
  max-width: min(76%, 520px);
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px;
  background: var(--soft);
}

.msg.out {
  margin-left: auto;
  border-color: #2c3d79;
  border-radius: 14px 4px 14px 14px;
  background: #111525;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.msg-meta strong {
  font-weight: 550;
}

.msg-meta time {
  color: var(--muted);
  font-size: 10px;
}

.msg-meta .delivered {
  margin-left: auto;
  color: var(--ok);
  font-size: 10px;
}

.msg p {
  margin: 6px 0 2px;
  font-size: 14px;
  line-height: 1.5;
}

.msg-reply {
  margin: 8px 0 4px;
  padding: 6px 9px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.composer-ro {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.composer-ro strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 12px;
}

.composer-ro svg {
  flex: 0 0 auto;
  color: var(--accent);
}

/* Shared section rhythm */

.section {
  padding: 120px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head p {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
}

.fineprint {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* Networks */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 32px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 650;
}

.tile {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--pop);
  transition: transform 0.2s ease;
}

.app-grid li:nth-child(3n + 1) .tile {
  transform: rotate(-4deg);
}

.app-grid li:nth-child(3n + 2) .tile {
  transform: rotate(3deg);
}

.app-grid li:hover .tile {
  transform: rotate(0) translateY(-4px);
}

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

.tile.more {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

/* Epicenter Agent */

.brain {
  background: #d6e9ff;
}

.sticker svg {
  color: var(--tomato);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.sticker.tilt {
  margin-bottom: 20px;
  transform: rotate(-3deg);
}

.asks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.asks li {
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 20px 20px 20px 4px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.asks li:nth-child(odd) {
  transform: rotate(-1.5deg);
}

.asks li:nth-child(even) {
  transform: rotate(1.5deg);
}

.curious {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 72px;
  padding: 32px;
  border: 2px dashed var(--ink);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
}

.curious-tag {
  margin: 0;
  font-family: var(--hand);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-4deg);
}

.curious h3 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.curious p:not(.curious-tag) {
  max-width: 720px;
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.curious p:last-child {
  margin-bottom: 0;
}

.curious a,
.faq-list a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--tomato);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.curious a:hover,
.faq-list a:hover {
  background: var(--butter);
}

.brain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.card {
  margin: 0;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}

.brain-grid .card:first-child {
  transform: rotate(-1deg);
}

.brain-grid .card:last-child {
  transform: rotate(0.8deg);
}

.card-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.models,
.rules {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.models li,
.rules li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 2px dashed rgba(21, 19, 17, 0.14);
}

.models li:first-child,
.rules li:first-child {
  border-top: 0;
}

.model-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
}

.model-mark img {
  width: 22px;
  height: 22px;
}

.model-mark.local {
  background: #b8efcc;
}

.model-mark.self {
  background: var(--lilac);
}

.model-mark.cloud {
  background: var(--paper);
}

.model-copy {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.model-copy strong {
  display: block;
  font-size: 17px;
}

.model-copy small {
  color: var(--ink-soft);
  font-size: 14px;
}

.kind {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.kind.local {
  background: #b8efcc;
}

.kind.self {
  background: var(--lilac);
}

.kind.cloud {
  background: #bfe0ff;
}

.kind.none {
  background: #ececec;
}

.allow {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 60%;
}

.rules .ptile {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.brain-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.brain-points h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brain-points p {
  margin: 0;
  color: var(--ink-soft);
}

/* Bring your own agent */

.agents {
  background: var(--lilac);
}

.agent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-pills li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 22px 8px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 18px;
  font-weight: 650;
  transition: transform 0.15s ease;
}

.agent-pills li:nth-child(odd) {
  transform: rotate(-1deg);
}

.agent-pills li:nth-child(even) {
  transform: rotate(1deg);
}

.agent-pills li:hover {
  transform: rotate(0) translateY(-3px);
}

.agent-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(21, 19, 17, 0.14);
  border-radius: 11px;
  background: var(--paper);
}

.agent-logo img {
  width: 22px;
  height: 22px;
}

.agent-logo.roomy img {
  width: 32px;
  height: 32px;
}

.agent-logo.full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-top: 96px;
}

.points {
  display: grid;
  gap: 28px;
}

.points h3 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.points p {
  margin: 0;
  color: var(--ink-soft);
}

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

.chips li {
  padding: 5px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.phone {
  margin: 0;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1.5deg);
}

.phone-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px dashed rgba(21, 19, 17, 0.18);
}

.bot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--lilac);
}

.phone-head strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.phone-head small {
  color: var(--ink-soft);
  font-size: 14px;
}

.bubble {
  max-width: 88%;
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 6px 20px 20px 20px;
  background: var(--lilac);
  font-size: 17px;
  line-height: 1.4;
}

.ask {
  margin-top: 16px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--butter);
}

.ask-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ask-to {
  margin: 0 0 10px;
  font-size: 16px;
}

.ask-text {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  font-size: 17px;
}

.ask-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fake-btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.fake-btn.yes {
  background: var(--ink);
  color: var(--paper);
}

.fake-btn.no {
  background: var(--paper);
}

.phone figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

/* Backups */

.backups {
  background: var(--mint);
}

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

.steps li {
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--pop);
}

.num {
  display: block;
  margin-bottom: 18px;
  color: var(--marigold);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.8;
  -webkit-text-stroke: 2px var(--ink);
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

/* Portal */

.portal {
  padding: 72px 0;
  border-block: 2px solid var(--ink);
  background: var(--butter);
}

.portal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.portal h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.portal p {
  max-width: 600px;
  margin: 0;
  color: var(--ink-soft);
}

/* FAQ */

.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.faq-list details {
  border-top: 2px solid var(--ink);
}

.faq-list details:last-child {
  border-bottom: 2px solid var(--ink);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  list-style: none;
}

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

.faq-list summary::after {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "+";
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  background: var(--butter);
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--ink-soft);
}

/* Footer */

.footer {
  overflow: hidden;
  padding: 72px 0 32px;
  background: var(--ink);
  color: var(--on-ink);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}

.footer-top p {
  max-width: 460px;
  margin: 0;
  color: var(--on-ink-muted);
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-weight: 650;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--butter);
}

.giant {
  margin: 56px 0 0;
  padding-bottom: 0.24em;
  font-family: var(--ui);
  font-size: clamp(64px, 18.5vw, 272px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.8;
  white-space: nowrap;
}

.giant .dot {
  color: var(--marigold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--on-ink-muted);
  font-size: 14px;
}

.footer-bottom a {
  color: var(--butter);
}

/* App section tour: one window per part of the app */

.tone-peach {
  background: #ffe1d4;
}

.tone-ink {
  background: var(--ink);
  color: var(--on-ink);
}

.tone-ink .section-head p {
  color: var(--on-ink-muted);
}

.window {
  margin: 0;
}

.window .app {
  margin: 0;
}

.window .caption {
  margin-top: 18px;
  color: var(--ink-soft);
}

.tone-ink .window .caption,
.inside .window .caption {
  color: var(--on-ink-muted);
}

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

.app-content.pad-top {
  padding-top: 22px;
}

.pane {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.app-content > .pills {
  padding: 0 0 12px;
  border: 0;
}

.pills > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.pills > span.on {
  border-color: rgba(230, 199, 126, 0.45);
  background: var(--accent-soft);
  color: var(--accent);
}

.pills em {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.ptile.sm {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.ptile.sm img {
  width: 14px;
  height: 14px;
}

.pane-foot {
  padding: 11px 14px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.mini-av img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.mini-av.co {
  background: #8fe3d2;
  color: #151311;
}

.mini-av {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper);
  color: #151311;
  font-size: 11px;
  font-weight: 700;
}

/* Email */

.mail-row {
  display: grid;
  grid-template-columns: 16px 150px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}

.mail-row.unread {
  background: rgba(255, 255, 255, 0.025);
}

.mail-check {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
}

.mail-from {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: var(--text);
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-row.unread .mail-from,
.mail-row.unread .mail-body strong {
  font-weight: 750;
}

.mail-star {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.3);
}

.mail-star.on {
  color: var(--accent);
}

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

.mail-body strong {
  color: var(--text);
  font-weight: 550;
}

.mail-label {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  vertical-align: 1px;
}

.mail-row time {
  font-size: 11px;
  text-align: right;
}

/* Contacts */

.c-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.c-search {
  display: flex;
  flex: 1 1 240px;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}

.c-search kbd {
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-size: 10px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.seg span {
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.seg .on {
  background: var(--surface);
  color: var(--text);
}

.c-btn {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
}

.c-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 92px minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}

.c-head {
  min-height: 36px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.c-name > span:last-child {
  min-width: 0;
}

.c-name strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.c-name small {
  display: block;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 10px;
}

.c-chats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-size: 11px;
}

/* Network */

.netmap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
}

.net-graph {
  position: relative;
  border-right: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, rgba(230, 199, 126, 0.07), transparent 60%), #0a0a0a;
}

.net-graph svg {
  display: block;
  width: 100%;
  height: 380px;
}

.net-graph .edge {
  stroke: rgba(230, 199, 126, 0.55);
}

.net-graph .edge-soft {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-dasharray: 3 4;
  stroke-width: 1;
}

.net-graph text {
  fill: #151311;
  font-family: var(--ui);
  font-weight: 700;
}

.net-stats,
.net-zoom {
  position: absolute;
  bottom: 10px;
  color: var(--muted);
  font-size: 10px;
}

.net-stats {
  left: 12px;
}

.net-zoom {
  right: 12px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.net-rail {
  padding: 12px 14px 4px;
}

.net-rail p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
}

.net-rail ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.net-rail li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.35;
}

.net-rail strong {
  display: block;
  font-size: 12px;
}

.net-rail small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.rank {
  width: 20px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

/* Backups */

.bk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.bk-body {
  display: grid;
  gap: 14px;
  padding: 14px;
}

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

.bk-fact {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--soft);
  font-size: 12px;
}

.bk-fact small,
.bk-field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bk-fact span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bk-field {
  display: grid;
  gap: 6px;
}

.bk-select,
.bk-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 12px;
}

.bk-select svg {
  color: var(--muted);
}

.bk-select i {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
}

.bk-input {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
}

.bk-input .caret {
  width: 1.5px;
  height: 15px;
  margin-left: -4px;
  background: var(--text);
}

.bk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bk-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #151311;
  font-weight: 650;
}

.bk-disabled {
  justify-self: start;
  opacity: 0.45;
}

.bk-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.bk-report {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--soft);
}

.bk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
}

.bk-row:first-child {
  border-top: 0;
}

.bk-row > span:first-child {
  color: var(--muted);
}

.job {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 8px 14px;
  border-top: 1px solid var(--line-soft);
}

.job-kind {
  flex: 0 0 auto;
  min-width: 56px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  text-align: center;
}

.job-copy {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.job-copy strong {
  display: block;
  font-size: 12px;
}

.job-copy small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ok-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(111, 207, 151, 0.12);
  color: var(--ok);
  font-size: 10px;
  font-weight: 650;
}

.gens-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.bk-body + .gens-head {
  border-top: 1px solid var(--line);
}

.gens-head strong {
  font-size: 13px;
}

.gens-head small {
  color: var(--muted);
  font-size: 11px;
}

.ok-txt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
}

.ok-txt svg {
  flex: 0 0 auto;
  color: var(--ok);
}

.muted-txt {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 860px) {
  .bk-grid,
  .bk-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Responsive */

@media (max-width: 1100px) {
  .note {
    display: none;
  }

  .inside-head {
    margin-bottom: 56px;
  }
}

@media (min-width: 1101px) {
  .notes-list {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (max-width: 1000px) {
  .far {
    display: none;
  }

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

  .app-side {
    display: none;
  }

  .agent-demo,
  .brain-grid,
  .faq-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .brain-points,
  .curious {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

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

  .net-rail {
    display: none;
  }

  .net-graph {
    border-right: 0;
  }

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

@media (max-width: 860px) {
  .nav-inner {
    min-height: 72px;
  }

  /* Without JavaScript the links simply wrap under the logo. */
  .nav-links {
    order: 3;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 0 12px;
  }

  .js .menu-btn {
    display: grid;
  }

  .js .nav-links {
    position: absolute;
    top: calc(100% - 6px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 2px;
    width: auto;
    margin: 0;
    padding: 10px;
    border: 2px solid var(--ink);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--pop);
  }

  .js .top.open .nav-links {
    display: flex;
  }

  .js .nav-links a {
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 22px;
    font-weight: 700;
  }

  .js .nav-links a:hover {
    background: var(--butter);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .wrap {
    padding: 0 16px;
  }

  /* Phones get their own, tighter arrangement at full size: everyone still
     appears, on every side of the epicenter. */
  /* Fit the phone's visible viewport even with the browser bars shown. */
  .hero {
    height: max(520px, calc(100svh - 72px));
  }

  .hero-copy {
    padding-top: clamp(12px, 2.5vh, 28px);
  }

  .lede {
    font-size: 16px;
  }

  .core svg {
    width: 80px;
    height: 80px;
  }

  .who,
  .say {
    top: calc(50% - var(--mfy, var(--fy)) * 100% * var(--yk, 1));
    left: calc(50% + var(--mfx, var(--fx)) * 100%);
  }

  .who {
    width: var(--md, var(--d));
    height: var(--md, var(--d));
  }

  .net {
    width: 30px;
    height: 30px;
  }

  .net img,
  .net svg {
    width: 17px;
    height: 17px;
  }

  .say {
    font-size: 14px;
  }

  .far {
    display: none;
  }

  .hero.gpu .quake-hint {
    display: none;
  }

  .workspace {
    grid-template-columns: 56px minmax(0, 1fr);
    height: 440px;
  }

  .timeline {
    display: none;
  }

  .app-topbar,
  .app-heading,
  .app-content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .app-heading .app-button {
    display: none;
  }

  .app {
    box-shadow: 6px 6px 0 var(--marigold);
  }

  .section,
  .inside {
    padding: 80px 0;
  }

  .agent-pills li {
    min-height: 50px;
    padding-right: 18px;
    font-size: 16px;
  }

  .agent-logo {
    width: 34px;
    height: 34px;
  }

  .phone {
    padding: 16px;
    transform: none;
  }

  .card {
    padding: 18px;
    border-radius: 22px;
  }

  .brain-grid .card:first-child,
  .brain-grid .card:last-child {
    transform: none;
  }

  .rules li {
    flex-wrap: wrap;
  }

  .mail-row {
    grid-template-columns: 104px minmax(0, 1fr) 54px;
    gap: 10px;
  }

  .mail-snippet,
  .mail-label,
  .mail-check,
  .c-btn,
  .c-work,
  .c-loc,
  .c-row > span:nth-child(2),
  .gen-mod {
    display: none;
  }

  .c-row {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .net-graph svg {
    height: 280px;
  }

  .allow {
    flex-basis: 100%;
    justify-content: flex-start;
    max-width: none;
    padding-left: 50px;
  }

  .faq-list summary {
    font-size: 19px;
  }
}

/* Short phone viewports (Safari with its bars showing): pull the crowd in. */
@media (max-width: 720px) and (max-height: 720px) {
  .quake-inner {
    --yk: 0.8;
  }

  .who {
    width: calc(var(--md, var(--d)) * 0.82);
    height: calc(var(--md, var(--d)) * 0.82);
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 48px);
  }
}

@media (max-width: 380px) {
  .who {
    width: calc(var(--md, var(--d)) * 0.88);
    height: calc(var(--md, var(--d)) * 0.88);
  }
}

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

  .who,
  .say {
    animation: none;
  }

  .hero.gpu .quake-hint {
    display: none;
  }

  .btn,
  .icon-btn,
  .tile,
  .agent-pills li,
  .burger span {
    transition: none;
  }
}
