/* The landing page's bento: "Wherever you work" and the review bots card on top, the four feature
   cards under them. Tokens from download.css; the few new ones are here. */

:root {
  --bento-r: 14px;
  /* The review bots card: a light tint of --merge, with dark words on it (AA: 12.9:1 and 6.6:1). */
  --lilac: #cbb2fb;
  --lilac-ink: #101010;
  --lilac-mute: #3b2d55;
  --lilac-shadow: 0 18px 40px -18px rgba(40, 20, 80, 0.55);
}

.bento {
  width: 100%;
  max-width: 1280px;
  margin-top: 144px;
}
.bento-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.bento .cards { gap: 16px; }
/* The feature row under the top: the same cards, a little shorter. */
.bento .feat { height: 340px; border-radius: var(--bento-r); }

.bcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--bento-r);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.bcard-txt { padding: 28px 32px 32px; }
.bcard h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.bcard p {
  margin: 8px 0 0;
  max-width: 44ch;
  color: var(--ink-mute);
  font-size: 14.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* Wherever you work: the apps in pill outlines, the words at the foot, on one line. */
.bcard.places { justify-content: space-between; }
.bcard.places .bcard-txt p { max-width: none; }
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  padding: 44px 28px 8px;
  list-style: none;
  flex: 1 1 auto;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 16px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
/* The apps' own icons carry the macOS shape: drawn as they are, a little over size so the shape's
   padding does not make them look small. herdr has no app icon: its avatar, rounded. */
.place-icon { flex: none; display: block; width: 24px; height: 24px; margin: 0 -1px; }
.place-icon.avatar { width: 18px; height: 18px; margin: 0 2px; border-radius: 5px; }
.chips .agent-mark { width: 17px; height: 17px; margin: 0 2px 0 3px; color: var(--ink-soft); }

/* The review bots: a light tint of --merge, and one bot comment in the app's thread box (the
   hero's .rc styles), in the card's flow, not floating. */
.bcard.local {
  border-color: transparent;
  background: var(--lilac);
  box-shadow: none;
}
.bcard.local h2 { color: var(--lilac-ink); }
.bcard.local .bcard-txt { padding-bottom: 20px; }
.bcard.local .bcard-txt p { color: var(--lilac-mute); max-width: 58ch; }
.bot-thread { display: grid; margin: auto 28px 0; padding-top: 28px; }
.bot-thread > .thread { grid-area: 1 / 1; }
.bot-thread .thread { position: static; width: auto; box-shadow: var(--lilac-shadow); animation: none; }
.bot-thread .thread-acts .ghost { cursor: default; }
.bot-thread .thread-acts .ghost.agent-claude svg { color: rgb(var(--agent-claude)); }
/* Two more comments stacked behind as plain edges, so the card reads as many bots' comments. */
.bot-thread .peek-card { align-self: stretch; padding: 0; box-shadow: none; border-color: transparent; }
.bot-thread .peek-card.back { margin: 0 40px; transform: translateY(-28px); background: color-mix(in srgb, var(--surface) 55%, var(--lilac)); }
.bot-thread .peek-card.mid { margin: 0 20px; transform: translateY(-14px); background: color-mix(in srgb, var(--surface) 78%, var(--lilac)); }
/* The other bots, small faces in a row under the box. */
.bcard.local .bots-too { display: flex; align-items: center; gap: 10px; max-width: none; margin: 14px 28px 24px; color: var(--lilac-mute); font-size: 13px; }
.bots-faces { display: inline-flex; flex: none; }
.bots-faces > * { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--lilac); }
.bots-faces > * + * { margin-left: -5px; }
.bots-faces .bot-mark { display: grid; place-items: center; background: var(--surface-3); color: var(--ink-soft); }
.bots-faces .bot-mark svg { width: 12px; height: 12px; }

/* Between a desktop and a phone: the two top cards stack. */
@media (max-width: 900px) {
  .bento-top { grid-template-columns: minmax(0, 1fr); }
  .bcard { min-height: 0; }
}

/* Phone: the feature cards run edge to edge; the two top cards float as cards, the apps as icons
   only (the names stay for screen readers), the words one step smaller. */
@media (max-width: 640px) {
  .bento { margin-top: 84px; width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; }
  .bento-top { gap: 0; margin-bottom: 0; }
  .bento .cards { gap: 0; border-top: 1px solid var(--line); }
  .bento .feat { border-radius: 0; }
  .bento-top .bcard { margin: 0 16px 16px; box-shadow: none; }
  .bento-top .bcard.local { margin-bottom: 56px; }
  .bcard-txt { padding: 24px 16px 28px; }
  .bcard.local .bcard-txt { padding: 22px 16px 24px; }
  .bcard h2 { font-size: 18px; }
  .bcard .bcard-txt p { font-size: 13px; line-height: 1.5; }
  .chips { flex-wrap: nowrap; gap: 8px; padding: 28px 16px 4px; }
  .chips li { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .chips li > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .chips .place-icon { width: 26px; height: 26px; margin: 0; }
  .chips .place-icon.avatar { width: 24px; height: 24px; }
  .chips .agent-mark { width: 22px; height: 22px; margin: 0; }
  .bot-thread { margin: auto 16px 0; }
  .bcard.local .bots-too { margin: 12px 16px 24px; }

  /* The closing download section goes: the hero has the same button, and the section did
     not sit centred on a phone (Kadet, 2026-10-26). The footer follows the feature cards. */
  .closing { display: none; }
  /* The gap from the cards down to the wordmark's letter tops matches the gap from its foot
     down to the round buttons, about 28px (Kadet, 2026-10-26). The faint dot on the "i" sits
     above the letters, so it comes closer to the cards. */
  .foot { margin-top: 7px; }
}
