@import url("https://fonts.googleapis.com/css2?family=Bitcount+Single:wght@100..900&family=IBM+Plex+Serif:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light dark;
  --hero-font: "Bitcount Single", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-font: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --system-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-muted: #f0f3f6;
  --border: #d0d7de;
  --border-strong: #8c959f;
  --text: #1f2328;
  --muted: #59636e;
  /* Brand primary — yellow to match the app icon */
  --green: #fdc326;
  --green-dark: #c89200;
  --yellow: #bf8700;
  --orange: #bc4c00;
  --blue: #0969da;
  --shadow: 0 24px 80px rgba(31, 35, 40, 0.16);
  --header-bg: rgba(246, 248, 250, 0.9);
  --header-border: rgba(208, 215, 222, 0.82);
  --header-h: 63px;
  --footer-h: 72px;
  --check-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.65);
  --mascot-glow: #fff7d6;
  --panel-shadow: 0 18px 60px rgba(31, 35, 40, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface-muted: #21262d;
    --border: #30363d;
    --border-strong: #8b949e;
    --text: #f0f6fc;
    --muted: #8b949e;
    --green: #fdc326;
    --green-dark: #ffd24d;
    --yellow: #d29922;
    --orange: #f78166;
    --blue: #58a6ff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
    --header-bg: rgba(13, 17, 23, 0.9);
    --header-border: rgba(48, 54, 61, 0.86);
    --check-shadow: inset 0 0 0 3px rgba(13, 17, 23, 0.72);
    --mascot-glow: rgba(210, 153, 34, 0.18);
    --panel-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--header-h);
}

/* Full-screen scroll snapping: each primary section fills the viewport
   and the scroll locks onto one section at a time. */
.hero,
.section.github-feed,
.screens-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero,
.section.github-feed,
.screens-section {
  min-height: calc(100dvh - var(--header-h));
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    var(--body-font);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

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

@media (prefers-color-scheme: dark) {
  .brand img {
    filter: invert(1);
  }
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 7px;
}

nav a:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.github-link i {
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 1;
}

.button i {
  font-size: 18px;
  line-height: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  align-content: center;
  min-height: calc(100dvh - var(--header-h));
  padding: clamp(34px, 5vw, 78px) clamp(18px, 5vw, 76px) 44px;
}

.hero-copy {
  max-width: 660px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 18px;
  font-family: var(--hero-font);
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.display-title {
  font-family: var(--hero-font);
  font-weight: 400;
  line-height: 1.08;
}

.hero-lede,
.section-copy p {
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-weight: 750;
  font-size: 15px;
  white-space: nowrap;
}

.button.primary {
  color: #1f2328;
  background: var(--green);
  border-color: rgba(214, 165, 18, 0.65);
  box-shadow: 0 10px 24px rgba(253, 195, 38, 0.28);
}

.button.primary:hover {
  background: #ffce40;
}

.button.secondary {
  background: var(--surface);
}

.button.secondary:hover {
  border-color: var(--border-strong);
}

.pr-window {
  font-family: var(--system-font);
  overflow: hidden;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pr-title-row,
.pr-main,
.mascot-stage {
  margin: 0 22px;
}

.github-repo-head {
  border-bottom: 1px solid var(--border);
  color: #24292f;
  background: #f6f8fa;
}

.repo-path {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px 12px;
}

.octicon-mark-github {
  width: 32px;
  height: 32px;
  color: #24292f;
  flex: 0 0 auto;
}

.repo-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  padding: 0 14px;
  color: #57606a;
  font-size: 14px;
  font-weight: 700;
}

.repo-tabs span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  white-space: nowrap;
}

.repo-tabs i {
  font-size: 17px;
}

.repo-tabs .active {
  color: #24292f;
}

.repo-tabs .active::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: #fd8c73;
}

@media (prefers-color-scheme: dark) {
  .github-repo-head {
    color: #f0f6fc;
    background: #010409;
  }

  .octicon-mark-github {
    color: #f0f6fc;
  }

  .repo-tabs {
    color: #8b949e;
  }

  .repo-tabs .active {
    color: #f0f6fc;
  }
}

.repo-name {
  color: var(--blue);
  font-size: 18px;
}

.repo-name a {
  color: inherit;
  font-weight: 700;
}

.repo-name span {
  margin: 0 8px;
  color: var(--muted);
  font-weight: 500;
}

.repo-pill,
.state {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.pr-title-row {
  padding: 20px 0;
}

.pr-title-row h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 30px);
}

.pr-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pr-title-row p,
.check-line p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.state.open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  background: #1a7f37;
  border-color: #1a7f37;
}

.state.open i {
  font-size: 14px;
}

.checks-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
}

.check-line {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
}

.check-line + .check-line {
  border-top: 1px solid var(--border);
}

.check-dot {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: var(--check-shadow);
}

.check-dot.approved {
  background: var(--green);
}

.check-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mascot-stage {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 20px 0 24px;
  text-align: right;
}

.mascot-stage .stage-copy {
  order: 1;
}

.mascot-stage .mascot-ring {
  order: 2;
}

.mascot-ring {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 116px;
  height: 116px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--mascot-glow) 0 41%, transparent 42%),
    var(--surface-muted);
}

.mascot-ring img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  animation: hatch 0.72s ease;
}

.stage-copy {
  min-width: 0;
}

.stage-kicker {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.stage-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 24px;
}

.stage-copy span {
  color: var(--muted);
}

/* GitHub-style PR: full-width tabs, then comment + reviewers sidebar */
.pr-main {
  padding: 9px 0 22px;
}

.pr-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 16px;
  margin-top: 18px;
}

/* GitHub-style PR tabs row: the active tab is an open-bottomed box. */
.pr-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.pr-tabs > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-radius: 7px 7px 0 0;
  color: var(--muted);
  white-space: nowrap;
}

.pr-tabs > span.active {
  color: var(--text);
  font-weight: 700;
  border-color: var(--border);
  border-bottom-color: var(--surface);
  background: var(--surface);
}

.pr-tabs i {
  font-size: 16px;
}

.pr-tabs em {
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}

.pr-tabs span.active em {
  background: color-mix(in srgb, var(--text) 12%, transparent);
}

.pr-diffstat {
  margin-left: auto;
  padding-right: 0 !important;
  gap: 5px !important;
  font-weight: 700;
}

.pr-diffstat .plus {
  color: #1a7f37;
}

.pr-diffstat .minus {
  color: #cf222e;
}

.diff-squares {
  display: inline-flex;
  gap: 2px;
}

.diff-squares .sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.diff-squares .add {
  background: #2da44e;
}

.diff-squares .del {
  background: #cf222e;
}

.diff-squares .partial {
  background: linear-gradient(135deg, #cf222e 0 50%, var(--border) 50% 100%);
}

.diff-squares .none {
  background: var(--border);
}

/* PR comment thread */
.pr-comment {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-muted);
}

.comment-box {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.comment-head {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 13px;
}

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

.comment-body {
  padding: 12px 14px;
}

.comment-body p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.comment-body p + p,
.comment-body ul + p {
  margin-top: 10px;
}

.comment-body ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.comment-body li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.comment-body li + li {
  margin-top: 5px;
}

.comment-body strong {
  font-weight: 700;
}

.pr-sidebar {
  min-width: 0;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-head i {
  color: var(--muted);
  font-size: 16px;
}

.reviewers {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reviewer {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 9px;
  align-items: center;
}

.rv-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-muted);
}

.rv-name {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rv-status {
  display: inline-flex;
  align-items: center;
}

.rv-status .oct {
  display: block;
}

.rv-status .pending {
  color: #d4a72c;
}

.rv-status .done {
  display: none;
  color: #1a7f37;
}

.reviewer.approved .rv-status .pending {
  display: none;
}

.reviewer.approved .rv-status .done {
  display: block;
}


.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.timeline-step {
  display: grid;
  gap: 7px;
}

.timeline-step .seg {
  height: 6px;
  border-radius: 999px;
  background-color: var(--border);
  transition: background-color 0.25s ease;
}

.timeline-step small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: color 0.25s ease;
}

/* Completed steps are a softer gold; the current step is full strength. */
.timeline-step.done .seg {
  background-color: color-mix(in srgb, var(--green) 55%, var(--surface));
}

.timeline-step.current .seg {
  background-color: var(--green);
}

.timeline-step.done small {
  color: var(--text);
}

.timeline-step.current small {
  color: var(--text);
  font-weight: 700;
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  align-content: center;
  padding: 56px clamp(18px, 5vw, 76px);
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--surface) 15%,
    var(--surface) 85%,
    var(--bg) 100%
  );
}

/* Zigzag layout: in the agent section the mock sits on the left. */
.section.github-feed {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.82fr);
}

.section.github-feed .agent-preview {
  order: -1;
}

.section-copy {
  max-width: 640px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.review-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.review-item strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.review-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

.review-item p code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  /* squircle app-icon look */
  border-radius: 13px;
  color: #1f2328;
  background: linear-gradient(160deg, #ffd86b 0%, var(--green) 70%);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(253, 195, 38, 0.32);
}

.avatar.user {
  color: #ffffff;
  background: linear-gradient(160deg, #3b8eea 0%, var(--blue) 70%);
  box-shadow: 0 6px 16px rgba(9, 105, 218, 0.30);
}

.avatar.rules {
  color: #ffffff;
}

.avatar.rules {
  background: linear-gradient(160deg, #e0701f 0%, var(--orange) 70%);
  box-shadow: 0 6px 16px rgba(188, 76, 0, 0.30);
}

.avatar i {
  font-size: 23px;
  line-height: 1;
}

/* The status section frames the MacBook screen with side margins so it
   doesn't fight the header/footer. */
.screens-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  /* Last panel shares its 100dvh with the footer below it */
  min-height: calc(100dvh - var(--header-h) - var(--footer-h));
  padding: clamp(24px, 3.5vw, 48px) clamp(24px, 6vw, 96px);
}

.section-copy.compact {
  max-width: 820px;
}

.menubar-demo {
  font-family: var(--system-font);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  /* True MacBook screen proportion */
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  border: 1px solid #000000;
  border-radius: 18px;
  background: #050505;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
}

/* macOS "desktop" wallpaper. The heading sits on the desktop and the
   Peck popover drops from the menu bar on the right. */
.mac-desktop {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: clamp(32px, 5vw, 88px);
  background:
    radial-gradient(1200px 620px at 16% 14%, rgba(184, 134, 11, 0.30), transparent 62%),
    radial-gradient(1000px 560px at 92% 90%, rgba(9, 105, 218, 0.18), transparent 60%),
    linear-gradient(165deg, #0c2114 0%, #060606 74%);
}

.desktop-copy {
  max-width: 560px;
}

.desktop-copy .eyebrow {
  color: #e0b23a;
}

.desktop-copy .display-title {
  margin: 0;
  color: #f0f6fc;
  font-size: clamp(34px, 3.8vw, 60px);
}

/* The popover drops from the menu bar at the top-right, like a real
   macOS menu-bar dropdown opened from the Peck icon. It's scaled down so
   the whole list shows without being clipped. */
.mac-desktop .status-grid {
  position: absolute;
  top: clamp(3px, 0.6vw, 7px);
  right: clamp(20px, 3.5vw, 64px);
  width: 432px;
  transform: scale(0.74);
  transform-origin: top right;
}

/* The speech-bubble tip hangs off the active Peck menu-bar icon so it
   always points up from the icon the popover opened from. */
.peck-menu-item.active {
  position: relative;
}

.peck-menu-item.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 8px solid var(--surface);
  transform: translateX(-50%);
  z-index: 5;
}

.mac-menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 32px;
  padding: 3px 14px;
  color: #ffffff;
  background: #050505;
  font-size: 14px;
}

.menu-left,
.menu-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-left .apple-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
  color: #ffffff;
}

.menu-app {
  font-weight: 700;
}

.menu-right {
  gap: 12px;
}

.menu-right i {
  font-size: 16px;
}

.peck-menu-item {
  display: grid;
  place-items: center;
  width: 42px;
  height: 24px;
  border-radius: 999px;
}

.peck-menu-item.active {
  background: rgba(255, 255, 255, 0.18);
}

.peck-menu-item img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Section 2: the agent Reviews window pulled up beside the copy */
.agent-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.agent-preview .app-preview-window {
  width: 100%;
  max-width: 460px;
  zoom: 0.82;
}

/* Don't force the tall 640px body in the full-height snap panels */
.agent-preview .app-preview-body,
.screens-section .app-preview-body {
  min-height: auto;
}


.app-preview-window {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--panel-shadow);
  font-family: var(--system-font);
}

/* In dark mode the window blends into the dark background, so add a soft
   gold glow + light edge to lift it off the surface. */
@media (prefers-color-scheme: dark) {
  .app-preview-window {
    box-shadow:
      0 24px 70px rgba(0, 0, 0, 0.6),
      0 0 90px 18px rgba(253, 195, 38, 0.32);
  }
}

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 46px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.app-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2da44e;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.app-actions i {
  color: var(--text);
  font-size: 20px;
}

.app-actions i:nth-of-type(2),
.app-actions i:nth-of-type(3) {
  color: var(--blue);
}

.app-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: center;
  padding: 6px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.app-tabs span {
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.app-tabs .active {
  color: var(--text);
  background: var(--surface-muted);
  font-weight: 600;
}

.window-lights {
  display: flex;
  gap: 7px;
}

.window-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.window-lights span:nth-child(2) {
  background: #ffbd2e;
}

.window-lights span:nth-child(3) {
  background: #28c840;
}

.app-preview-body {
  min-height: 640px;
  background: var(--surface);
}

.mock-screen {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
}

.my-pr-card,
.review-card {
  border-radius: 18px;
  background: var(--surface-muted);
}

.my-pr-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px 14px;
}

.conflict-card {
  background: color-mix(in srgb, var(--orange) 9%, var(--surface));
}

.my-pr-card h3,
.review-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.12;
}

.repo-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.quest-strip {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 11px;
  padding: 12px;
  border-radius: 12px;
}

.conflict-strip {
  background: color-mix(in srgb, var(--orange) 14%, var(--surface));
}

.laid-strip {
  background: color-mix(in srgb, var(--blue) 13%, var(--surface));
}

.quest-strip img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.quest-progress-copy {
  min-width: 0;
}

.quest-progress-copy > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.quest-progress-copy strong {
  color: var(--blue);
  font-size: 15px;
}

.conflict-strip .quest-progress-copy strong {
  color: var(--orange);
}

.quest-progress-copy span {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

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

.split-progress span {
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 26%, transparent);
}

.split-progress.one span:first-child {
  background: var(--blue);
}

.split-progress.full span {
  background: var(--orange);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 11px;
}

.status-row.split {
  justify-content: space-between;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 13px;
  line-height: 1;
}

.status-pill i {
  font-size: 15px;
}

.status-pill.danger {
  color: #ffffff;
  background: var(--orange);
}

.status-pill.checks {
  color: var(--green-dark);
  background: color-mix(in srgb, var(--green) 16%, var(--surface));
}

.status-pill.neutral {
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 14%, var(--surface));
}

.status-pill.sparkle {
  color: #7c3aed;
  background: color-mix(in srgb, #8b5cf6 18%, var(--surface));
}

.status-pill.pending {
  color: #9a6700;
  background: color-mix(in srgb, var(--yellow) 18%, var(--surface));
}

.waiting {
  color: var(--muted);
  font-size: 13px;
}

.review-card {
  padding: 18px;
}

.review-card + .review-card {
  margin-top: 16px;
}

.diff-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

.diff-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.diff-row .plus {
  color: var(--green-dark);
}

.diff-row .minus {
  color: #cf222e;
}

.verdict-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.review-verdict {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 11px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 750;
  line-height: 1;
}

.review-verdict.changes {
  background: #cf222e;
}

.review-verdict.approve {
  color: #1f2328;
  background: var(--green);
}

.review-summary {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.28;
}

.review-notes {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.review-notes li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
}

.review-notes i {
  color: var(--yellow);
  font-size: 18px;
  margin-top: 3px;
}

.review-body-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 850;
}

.review-body-box {
  display: block;
  width: 100%;
  min-height: 118px;
  margin-top: 6px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  font: 14px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

.app-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--panel-shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.panel-header h3 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.15;
}

.panel-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-count {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
}

.panel-count.hot {
  color: var(--orange);
}

.quest-list {
  display: grid;
}

.quest-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.quest-card + .quest-card {
  border-top: 1px solid var(--border);
}

.quest-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-muted);
}

.quest-body {
  min-width: 0;
}

.quest-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.quest-card p,
.agent-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.state.review {
  color: var(--yellow);
  border-color: color-mix(in srgb, var(--yellow) 45%, var(--border));
}

.state.merged {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.approval-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.approval-track span {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.approval-track.one span:first-child,
.approval-track.full span {
  background: var(--green);
  border-color: var(--green);
}

.review-preview {
  display: flex;
  flex-direction: column;
}

.agent-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.agent-card-title {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
}

.agent-card-title p {
  margin-top: 2px;
}

.verdict-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--green) 35%, var(--border));
  border-radius: 8px;
  color: var(--green-dark);
  background: color-mix(in srgb, var(--green) 10%, var(--surface));
  font-weight: 800;
}

.verdict-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.verdict-row i {
  font-size: 20px;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.review-actions button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  font-weight: 650;
  font-size: 14px;
}

.review-actions button:first-child {
  color: var(--green-dark);
  background: color-mix(in srgb, var(--green) 10%, var(--surface));
}

.review-actions button.danger {
  color: #cf222e;
  background: color-mix(in srgb, #cf222e 9%, var(--surface));
}

.review-actions button.comment {
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
}

.open-github {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.open-github i {
  font-size: 19px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: var(--footer-h);
  box-sizing: border-box;
  padding: 0 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer span {
  color: var(--text);
  font-weight: 800;
}

@keyframes hatch {
  0% {
    transform: translateY(6px) scale(0.9) rotate(-4deg);
    opacity: 0;
  }
  60% {
    transform: translateY(-4px) scale(1.06) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1) rotate(0);
  }
}

@media (max-width: 980px) {
  html {
    scroll-snap-type: none;
  }

  .hero,
  .section.github-feed,
  .screens-section {
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .agent-preview .app-preview-window,
  .screens-section .menubar-demo {
    zoom: 1;
  }

  .screens-section .menubar-demo {
    min-height: 0;
    aspect-ratio: auto;
  }

  .mac-desktop {
    padding: 28px 20px;
  }

  .mac-desktop .status-grid {
    transform: none;
    width: 100%;
  }

  footer {
    height: auto;
    padding: 26px;
    flex-wrap: wrap;
  }

  .agent-preview .app-preview-window {
    max-width: 460px;
  }

  .hero,
  .section,
  .screens-section {
    grid-template-columns: 1fr;
  }

  /* Stack copy above the mock on small screens. */
  .section.github-feed .agent-preview {
    order: 0;
  }

  /* Stack the desktop heading above the Peck popover on small screens. */
  .mac-desktop {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    aspect-ratio: auto;
  }

  .mac-desktop .status-grid {
    position: static;
    width: 100%;
    right: auto;
  }

  .mac-desktop .status-grid::before {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .pr-window {
    max-width: 720px;
  }

  .status-grid {
    left: auto;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    margin-bottom: 0;
    transform: none;
  }

}

@media (max-width: 680px) {
  .site-header {
    position: static;
    display: grid;
    align-items: center;
    gap: 10px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero {
    display: block;
    padding-top: 28px;
  }

  .hero-copy,
  .pr-window {
    max-width: 100%;
  }

  .pr-window {
    margin-top: 28px;
  }

  h1 {
    max-width: 11ch;
    font-size: 36px;
    overflow-wrap: break-word;
  }

  .hero-lede,
  .section-copy p {
    font-size: 16px;
  }

  .repo-row,
  .checks-panel,
  .mascot-stage,
  .pr-title-row {
    margin-right: 14px;
    margin-left: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .repo-row {
    display: grid;
  }

  .repo-tabs span:nth-child(n + 4) {
    display: none;
  }

  .repo-path {
    padding: 14px 14px 8px;
  }

  .repo-tabs {
    padding-inline: 8px;
    font-size: 13px;
  }

  .pr-title-row,
  .repo-row,
  .mascot-stage {
    align-items: flex-start;
    flex-direction: column;
  }

  .pr-title-row {
    display: block;
  }

  .state.open {
    display: inline-block;
    margin-top: 12px;
  }

  .check-line.active {
    display: none;
  }

  .mascot-ring {
    width: 96px;
    height: 96px;
  }

  .mascot-ring img {
    width: 72px;
    height: 72px;
  }

  .check-line {
    grid-template-columns: 18px 1fr;
  }

  .check-time {
    grid-column: 2;
  }

  .status-grid {
    grid-template-columns: 1fr;
    padding: 28px 12px 18px;
  }

  .menubar-demo {
    border-radius: 14px;
  }

  .mac-menu-bar {
    padding-inline: 10px;
  }

  .menu-left span:not(:first-child) {
    display: none;
  }

  .menu-right {
    gap: 8px;
  }

  .peck-menu-item {
    width: 48px;
    height: 30px;
  }

  .app-preview-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .my-pr-card,
  .review-card {
    border-radius: 14px;
  }

  .app-preview-window {
    border-radius: 22px;
  }

  .app-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: auto;
    padding: 12px 16px;
  }

  .app-tabs {
    gap: 8px;
    padding: 8px 12px;
  }

  .app-tabs span {
    min-height: 34px;
    font-size: 15px;
  }

  .app-actions {
    gap: 10px;
  }

  .my-pr-card,
  .review-card {
    padding: 18px;
  }

  .quest-strip {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .quest-strip img {
    width: 52px;
    height: 52px;
  }

  .quest-progress-copy > div:first-child,
  .status-row.split,
  .verdict-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .repo-meta,
  .waiting,
  .diff-row {
    font-size: 16px;
  }

  .review-summary {
    font-size: 17px;
  }

  .review-notes {
    font-size: 16px;
  }

  .quest-card img {
    width: 56px;
    height: 56px;
  }

  .quest-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .quest-title strong {
    white-space: normal;
  }

}

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

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