:root {
  --bg: #09090b;
  --bg-elev: #111214;
  --card: #16171b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f5f7;
  --muted: #9aa3ad;
  --faint: #6f777e;
  --blue: #3b9eff;
  --blue-fill: #0f7ed4;
  --blue-deep: #004070;
  --ring: rgba(59, 158, 255, 0.35);
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box }
html { scroll-padding-top: 88px }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ring) }
a { color: var(--blue) }
a:hover { color: #8cc8f5 }
:focus-visible { outline: 2px solid var(--blue-fill); outline-offset: 2px }
code, pre { font-family: var(--mono) }
img { max-width: 100%; height: auto; display: block }
h1, h2, h3, h4, p { text-wrap: pretty }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 28px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text) }
.mark {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 26px;
  flex: none;
}
.mark i:first-child {
  position: absolute;
  left: 6px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 3px;
  background: var(--blue-fill);
  transform: rotate(14deg);
}
.mark i:last-child {
  position: absolute;
  left: 1px; top: 1px;
  width: 18px; height: 18px;
  border-radius: 3px;
  border: 2px solid #d7dbdf;
  transform: rotate(14deg);
}
.mark-sm { width: 22px; height: 22px }
.mark-sm i:first-child { width: 15px; height: 15px; left: 5px; top: 5px }
.mark-sm i:last-child { width: 15px; height: 15px }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text) }
.nav-inner > .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex: none;
}
.nav-burger:hover { background: rgba(255, 255, 255, 0.06) }
.nav-burger-bars,
.nav-burger-bars::before,
.nav-burger-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 160ms ease, top 160ms ease, background-color 160ms ease;
}
.nav-burger-bars { position: relative }
.nav-burger-bars::before,
.nav-burger-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-burger-bars::before { top: -6px }
.nav-burger-bars::after { top: 6px }
.nav-open .nav-burger-bars { background: transparent }
.nav-open .nav-burger-bars::before { top: 0; transform: rotate(45deg) }
.nav-open .nav-burger-bars::after { top: 0; transform: rotate(-45deg) }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  line-height: 1;
  cursor: pointer;
  background: none;
  color: var(--text);
  font-family: inherit;
}
.btn-sm { padding: 9px 16px; font-size: 13px }
.btn-lg { padding: 14px 24px; font-size: 15px }
.btn-primary { background: #f7f8f8; color: #0c0d0f }
.btn-primary:hover { background: #e4e6e8; color: #0c0d0f }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--text) }
.btn-ico { flex: none; display: block }
.btn-white { background: #fff; color: #0c0d0f }
.btn-white:hover { background: #e8eaed; color: #0c0d0f }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px }
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 0;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -180px;
  width: 720px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(15, 126, 212, 0.28), transparent 72%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 126, 212, 0.1);
  color: #9ccaf3;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero h1 {
  position: relative;
  max-width: 13.5em;
  margin: 22px auto 0;
  font-size: clamp(40px, 7.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.lede {
  position: relative;
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}
.cta-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.cli-pill {
  display: inline-flex;
  align-items: center;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: #dfe5ea;
  font-size: 13.5px;
}
.fine { font-size: 13px; color: var(--faint); margin-top: 14px }

.shot {
  margin: 56px auto 0;
  max-width: 1180px;
  padding: 0 28px;
}
.shot-frame {
  /* Tight chrome: a thin inset mat around the screenshot (which keeps its own
     window corners), with a modest shadow — tighter than the earlier frame. */
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0e0f12;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.shot-cap {
  text-align: center;
  font-size: 13px;
  color: var(--faint);
  margin: 14px 0 0;
}
.shot-swap {
  position: relative;
  /* Taller of the two shots. Do not animate this — the page below would jump. */
  aspect-ratio: 2706 / 1781;
}
.shot-swap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shot-a { animation: shot-show-a 10s ease-in-out infinite; }
.shot-b { animation: shot-show-b 10s ease-in-out infinite; }
.shot-swap-caps { display: grid; }
.shot-swap-caps span { grid-area: 1 / 1; }
.shot-swap-caps span:first-child { animation: shot-cap-a 10s linear infinite; }
.shot-swap-caps span:last-child { animation: shot-cap-b 10s linear infinite; }
@keyframes shot-show-a {
  0%, 40% { opacity: 1; visibility: visible; }
  50%, 90% { opacity: 0; visibility: hidden; }
  100% { opacity: 1; visibility: visible; }
}
@keyframes shot-show-b {
  0%, 40% { opacity: 0; visibility: hidden; }
  50%, 90% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes shot-cap-a {
  0%, 44% { opacity: 1; visibility: visible; }
  45%, 100% { opacity: 0; visibility: hidden; }
}
@keyframes shot-cap-b {
  0%, 44% { opacity: 0; visibility: hidden; }
  45%, 94% { opacity: 1; visibility: visible; }
  95%, 100% { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .shot-swap, .shot-a, .shot-b, .shot-swap-caps span { animation: none; }
  .shot-swap { aspect-ratio: 2706 / 1781; }
  .shot-b, .shot-swap-caps span:last-child { opacity: 0; visibility: hidden; }
}

.agents {
  padding: 72px 0 8px;
  text-align: center;
}
.agents p {
  margin: 0 0 22px;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.agent-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.agent-chip {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.section { padding: 96px 0 0 }
.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 700;
}
.section .sub {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 36px;
  padding: 5px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
}
.tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.tabs button.is-on {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line);
}
.panel { margin-top: 28px }
.panel[hidden] { display: none }
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}
.panel h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}
.panel p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 650;
  margin-bottom: 10px;
}

.mock {
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #0e0f12;
  padding: 18px;
  min-height: 300px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.mock-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mock-worktree {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mock-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #141519;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.mock-col-h {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 650;
}
.mock-col i {
  display: block;
  height: 34px;
  border-radius: 8px;
  background: #1d1f24;
  border: 1px solid var(--line);
}
.mock-col i.hot {
  border-color: rgba(59, 158, 255, 0.5);
  background: rgba(59, 158, 255, 0.12);
}
.mock-col i.done {
  border-color: rgba(40, 200, 100, 0.4);
  background: rgba(40, 200, 100, 0.1);
}
.mock-chat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
}
.mock-row {
  padding: 11px 13px;
  border-radius: 10px;
  background: #141519;
  border: 1px solid var(--line);
  color: #cfd6dd;
}
.mock-row b { color: var(--blue); font-weight: 600 }
.mock-row.dim { color: var(--faint) }
.mock-row.ok { color: #7fe0a3; border-color: rgba(40, 200, 100, 0.3) }
.mock-phone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.mock-phone .msg {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 88%;
}
.mock-phone .you {
  align-self: flex-end;
  background: rgba(59, 158, 255, 0.14);
  border: 1px solid rgba(59, 158, 255, 0.3);
  color: #dbeafe;
}
.mock-phone .bot {
  align-self: flex-start;
  background: #141519;
  border: 1px solid var(--line);
  color: #cfd6dd;
}
.mock-phone .peer {
  align-self: flex-start;
  background: #141519;
  border: 1px solid var(--line);
  color: #9aa3ad;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.card {
  padding: 24px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.card h3, .card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.origin {
  margin-top: 96px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.origin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.compare th, .compare td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 650;
}
.compare td:last-child, .compare th:last-child { color: var(--text); font-weight: 550 }
.compare td:nth-child(2) { color: var(--faint) }

.reach {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.reach .card code {
  font-size: 12.5px;
  color: #8cc8f5;
}

.phone-band {
  margin-top: 96px;
  border-radius: 28px;
  padding: 56px;
  background:
    radial-gradient(420px 280px at 100% 120%, rgba(15, 126, 212, 0.45), transparent 60%),
    var(--blue-deep);
  overflow: hidden;
  position: relative;
}
.phone-band h2, .phone-band p { color: #fff }
.phone-band p { opacity: 0.86; max-width: 640px }
.phone-band .cli-pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: transparent;
  color: #fff;
}
.phone-band a { color: #fff; font-weight: 700 }

.phone-features { padding-top: 72px }
.phone-features h2 { max-width: 16ch }
.phone-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.phone-row figure { margin: 0 }
.phone-row img {
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.phone-row figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.phone-row figcaption strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.phone-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}
.phone-pair img {
  width: min(220px, 46%);
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.faq { margin-top: 96px }
.faq-list { margin-top: 28px; border-top: 1px solid var(--line) }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none }
.faq-list details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 720px;
}

.split-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 96px;
}
.end-cta {
  margin: 96px 0 110px;
  text-align: center;
  padding: 64px 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(15, 126, 212, 0.18), transparent 70%),
    var(--bg-elev);
}
.end-cta h2 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.foot {
  border-top: 1px solid var(--line);
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.foot-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.foot-inner nav a, .foot .muted {
  color: var(--faint);
  text-decoration: none;
  font-size: 13.5px;
}
.foot-inner nav a:hover { color: var(--text) }

.page { max-width: 800px; margin: 0 auto; padding: 56px 28px 110px }
.page-wide { max-width: var(--max); margin: 0 auto; padding: 56px 28px 0 }
.page h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 16px 0 0;
  font-weight: 700;
}
.back { color: var(--faint); text-decoration: none; font-size: 14px }
.back:hover { color: var(--text) }

article h2 { font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin: 40px 0 12px }
article h3 { font-weight: 700; font-size: 19px; margin: 28px 0 10px }
article p { font-size: 16.5px; line-height: 1.65; color: var(--muted); margin: 0 0 14px }
article li { font-size: 16.5px; line-height: 1.6; color: var(--muted); margin: 0 0 8px }
article ul, article ol { margin: 0 0 18px; padding-left: 22px }
article pre {
  margin: 0 0 18px;
  padding: 20px;
  border-radius: 16px;
  background: #0e0f11;
  border: 1px solid var(--line);
  color: #dfe5ea;
  font-size: 14px;
  line-height: 1.8;
  overflow-x: auto;
}
article code { font-size: 13.5px; color: #8cc8f5 }
article pre code { color: #dfe5ea }
article table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14.5px }
article th, article td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}
article th { color: var(--text); background: var(--card) }

.docs-hero .lede { margin-left: 0; text-align: left }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

@media (max-width: 880px) {
  .hero { padding-top: 56px }
  .panel-grid, .origin-grid, .cards, .reach, .split-fit {
    grid-template-columns: 1fr;
  }
  .phone-band { padding: 36px 24px }
  .phone-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 8px;
  }
  .phone-row figure {
    flex: 0 0 68%;
    scroll-snap-align: center;
  }
  .nav-inner { gap: 12px 16px }
  .nav-links { gap: 14px }
  .origin-grid { overflow-x: auto }
  .compare { min-width: 560px }
}

.btn-blue { display: inline-flex; align-items: center }

/* A phone cannot install the Mac app. Hide every download link on a
   narrow window and on touch screens (including phone landscape).
   Those same screens use a hamburger instead of the link row. */
@media (max-width: 720px), ((hover: none) and (pointer: coarse)) {
  a[href*="Sideboard-latest-arm64.dmg"] { display: none }
  .nav-burger { display: inline-flex }
  .nav-links {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0 8px;
  }
  .nav-open .nav-links { display: flex }
  .nav-links a {
    padding: 14px 2px;
    font-size: 16px;
    border-top: 1px solid var(--line);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-burger-bars,
  .nav-burger-bars::before,
  .nav-burger-bars::after { transition: none }
}
