@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");
:root {
  --paper: #f3f1e9;
  --ink: #252a25;
  --muted: #62665e;
  --line: #d5d6ca;
  --orange: #c34520;
  --white: #fffef8;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
::selection {
  background: #ffd2b8;
}
.shell {
  max-width: 1120px;
  margin: auto;
  padding-left: 36px;
  padding-right: 36px;
}
header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 29px;
  letter-spacing: -1.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-dot {
  color: var(--orange);
  margin-left: -10px;
}
nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
}
nav a:hover,
.text-link:hover {
  color: var(--orange);
}
.nav-github {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.eyebrow {
  font:
    600 10px ui-monospace,
    monospace;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
h1,
h2,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  line-height: 1.08;
}
.pitch {
  padding-top: 45px;
  padding-bottom: 34px;
  text-align: center;
}
.pitch .eyebrow {
  justify-content: center;
}
h1 {
  font-size: clamp(38px, 4.8vw, 60px);
  letter-spacing: -2.8px;
  margin-bottom: 18px;
}
h1 span {
  color: var(--orange);
}
.pitch-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 22px;
}
.pitch-actions {
  display: flex;
  gap: 27px;
  align-items: center;
  justify-content: center;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 3px;
}
.primary {
  background: var(--ink);
  color: var(--white);
}
.primary:hover {
  background: var(--orange);
}
.text-link {
  font-size: 13px;
  font-weight: 600;
}
.flow-demo {
  margin-top: 30px;
  border: 1px solid #bdc4b0;
  background: var(--white);
  border-radius: 5px;
  text-align: left;
  overflow: hidden;
}
.flow-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.7px;
}
.flow-caption button {
  font-size: 10px;
  letter-spacing: 0;
  border: 0;
  background: transparent;
  padding: 5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.flow-track {
  display: grid;
  grid-template-columns: 1fr 35px 1fr 35px 1fr 35px 1fr;
  grid-template-rows: auto 37px;
  padding: 20px 26px 13px;
  align-items: center;
}
.flow-node {
  display: grid;
  grid-template-columns: 32px auto;
  gap: 0 9px;
  align-items: center;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f6f6ef;
  transition:
    background 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.node-symbol {
  grid-row: span 2;
  font-size: 23px;
  color: #748063;
  text-align: center;
}
.flow-node strong {
  font-size: 15px;
  font-weight: 600;
}
.flow-node small {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.flow-node.is-active {
  background: #fff0e5;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px #c3452014;
}
.flow-node.is-active .node-symbol {
  color: var(--orange);
}
.flow-connector {
  text-align: center;
  color: #adb49f;
  font-size: 23px;
  transition: color 0.25s;
}
.flow-connector.is-active {
  color: var(--orange);
}
.repair-loop {
  grid-column: 3/6;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  align-self: stretch;
  align-items: end;
  margin: 0 45px;
  border: solid #bdc4b0;
  border-width: 0 1px 1px;
  border-radius: 0 0 5px 5px;
  font:
    10px ui-monospace,
    monospace;
  color: var(--muted);
  padding: 0 0 3px;
  position: relative;
}
.repair-loop > span:not(:nth-child(2)) {
  position: absolute;
  top: -5px;
  background: var(--white);
  font-size: 15px;
  line-height: 1;
}
.repair-loop > span:first-child {
  left: -5px;
}
.repair-loop > span:last-child {
  right: -5px;
}
.repair-loop > span:nth-child(2) {
  background: var(--white);
  margin: 0 auto;
  position: relative;
  top: 10px;
  padding: 0 8px;
}
.is-repairing .repair-loop {
  border-color: var(--orange);
  color: var(--orange);
}
.is-repairing .repair-loop > span:nth-child(2) {
  font-weight: 700;
}
.flow-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  background: #eef0e7;
  min-height: 46px;
}
.example-label {
  margin-left: auto;
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: var(--muted);
}
.pitch-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 23px;
  text-align: left;
}
.pitch-benefits span {
  font-size: 12px;
  color: var(--muted);
  padding-left: 15px;
  border-left: 2px solid #c4ccb6;
}
.pitch-benefits b {
  display: block;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 3px;
}
.install {
  padding-top: 30px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
}
.install .eyebrow {
  margin-bottom: 12px;
}
h2 {
  font-size: 29px;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.install-top p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.install-command {
  display: flex;
  background: var(--white);
  border: 1px solid #b7bfaa;
  border-radius: 3px;
  align-items: center;
  gap: 20px;
  padding: 14px 17px;
}
.install-command code {
  font-size: 12px;
  overflow-wrap: anywhere;
  flex: 1;
}
.install-command button {
  padding: 7px 12px;
  white-space: nowrap;
  border: 1px solid #c2c7b7;
  background: transparent;
  font-size: 12px;
  border-radius: 3px;
  color: var(--ink);
}
.install-command button:hover {
  background: #e3e7d8;
}
#copy-status {
  font-size: 12px;
  margin: 3px 0;
  min-height: 19px;
}
.requirements,
.usage-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.requirements a,
.more a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.more {
  padding-bottom: 30px;
}
.more details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.more summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
}
.more summary::-webkit-details-marker {
  display: none;
}
.more summary:after {
  content: "+";
  color: var(--orange);
}
.more details[open] summary:after {
  content: "−";
}
.more p {
  font-size: 14px;
  color: var(--muted);
  max-width: 850px;
  margin: 12px 0 0;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 25px;
}
footer .brand {
  font-size: 25px;
}
footer p,
footer > a:last-child {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 10px;
  background: var(--white);
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
@media (max-width: 950px) {
  .flow-track {
    padding-left: 14px;
    padding-right: 14px;
    grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1fr;
  }
  .flow-node {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 9px 5px;
  }
  .node-symbol {
    display: none;
  }
  .flow-node small {
    font-size: 9px;
  }
  .repair-loop {
    margin: 0 25px;
  }
  .pitch-intro {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .shell {
    padding-left: 20px;
    padding-right: 20px;
  }
  header {
    height: 70px;
  }
  nav {
    gap: 17px;
    font-size: 12px;
  }
  .nav-github {
    padding-left: 17px;
  }
  .brand {
    font-size: 26px;
  }
  .pitch {
    padding-top: 32px;
    text-align: left;
    padding-bottom: 26px;
  }
  .pitch .eyebrow {
    justify-content: start;
    font-size: 9px;
  }
  h1 {
    font-size: 42px;
    letter-spacing: -2px;
  }
  .desktop-break {
    display: none;
  }
  .pitch-intro {
    font-size: 15px;
  }
  .pitch-actions {
    justify-content: start;
    gap: 22px;
  }
  .flow-demo {
    margin-top: 24px;
  }
  .flow-caption {
    padding: 8px 10px;
    font-size: 8px;
    letter-spacing: 0;
  }
  .flow-caption > span {
    max-width: 160px;
  }
  .flow-caption button {
    font-size: 9px;
    white-space: nowrap;
  }
  .flow-track {
    padding: 15px 12px 20px;
    grid-template-columns: 1fr 22px 1fr;
    grid-template-rows: auto 22px auto 30px;
  }
  .flow-node {
    padding: 10px 5px;
  }
  .flow-node small {
    font-size: 9px;
  }
  .flow-node strong {
    font-size: 14px;
  }
  [data-node="plan"] {
    grid-area: 1/1;
  }
  [data-edge="build"] {
    grid-area: 1/2;
  }
  [data-node="build"] {
    grid-area: 1/3;
  }
  [data-edge="review"] {
    grid-area: 2/3;
    transform: rotate(90deg);
    font-size: 20px;
  }
  [data-node="review"] {
    grid-area: 3/3;
  }
  [data-edge="deliver"] {
    grid-area: 3/2;
    transform: rotate(180deg);
  }
  [data-node="deliver"] {
    grid-area: 3/1;
  }
  .repair-loop {
    grid-area: 4/1/5/4;
    margin: 0 15px;
    border-width: 0 0 1px;
    justify-content: center;
  }
  .repair-loop > span:first-child,
  .repair-loop > span:last-child {
    display: none;
  }
  .repair-loop > span:nth-child(2) {
    font-size: 9px;
  }
  .flow-status {
    padding: 10px;
    font-size: 11px;
    min-height: 54px;
  }
  .example-label {
    display: none;
  }
  .pitch-benefits {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
  }
  .pitch-benefits span {
    font-size: 12px;
  }
  .pitch-benefits b {
    display: inline;
    margin-right: 5px;
  }
  .install {
    padding-top: 24px;
  }
  .install h2 {
    font-size: 27px;
  }
  .install-command {
    gap: 8px;
    padding: 12px;
  }
  .install-command code {
    font-size: 10px;
  }
  .install-command button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .requirements {
    line-height: 1.8;
  }
  footer p {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .flow-node,
  .flow-connector {
    transition: none;
  }
}
/* Keep the review-to-build return path attached on narrow screens. */
@media (max-width: 600px) {
  .flow-track {
    position: relative;
    padding-right: 25px;
  }
  .repair-loop {
    position: absolute;
    grid-area: auto;
    right: 8px;
    top: 44px;
    height: 82px;
    width: 11px;
    margin: 0;
    border-width: 1px 1px 1px 0;
    border-radius: 0 5px 5px 0;
  }
  .repair-loop > span:nth-child(2) {
    position: absolute;
    top: 132px;
    right: 0;
    width: 280px;
    text-align: center;
    background: transparent;
  }
  .repair-loop > span:first-child {
    display: block;
    left: -5px;
    top: -7px;
    transform: rotate(-90deg);
  }
}
/* The landing page is a single screen; setup opens in a native dialog. */
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body > .shell,
main {
  width: 100%;
}
main {
  flex: 1;
  display: flex;
  align-items: center;
}
.pitch {
  width: 100%;
  padding-top: 22px;
  padding-bottom: 20px;
}
.pitch-actions button {
  border: 0;
}
.pitch-benefits {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
  text-align: center;
}
.pitch-benefits span {
  border: 0;
  padding: 0;
  font-size: 12px;
}
.pitch-benefits span::before {
  content: "✓";
  color: var(--orange);
  margin-right: 7px;
}
footer {
  padding-top: 14px;
  padding-bottom: 14px;
}
dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 100px #252a2533;
}
dialog::backdrop {
  background: #252a2580;
  backdrop-filter: blur(4px);
}
dialog .install {
  padding: 0;
  border: 0;
}
#close-install {
  display: block;
  margin: 0 0 20px auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
@media (min-width: 601px) and (max-height: 820px) {
  header {
    height: 60px;
  }
  .pitch {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  h1 {
    font-size: 46px;
    margin-bottom: 12px;
  }
  .pitch .eyebrow {
    margin-bottom: 12px;
  }
  .pitch-intro {
    font-size: 15px;
    margin-bottom: 14px;
  }
  .flow-demo {
    margin-top: 18px;
  }
  .flow-track {
    padding-top: 12px;
  }
}
@media (max-width: 600px) {
  .pitch {
    padding-top: 18px;
    padding-bottom: 14px;
  }
  h1 {
    font-size: 36px;
    margin-bottom: 14px;
  }
  .pitch-intro {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .pitch-benefits {
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
  }
  .pitch-benefits span {
    font-size: 10px;
  }
  .pitch-benefits span::before {
    margin-right: 4px;
  }
  .flow-demo {
    margin-top: 18px;
  }
  footer .brand {
    font-size: 21px;
  }
  dialog {
    padding: 20px;
  }
}
@media (max-width: 600px) and (max-height: 700px) {
  header {
    height: 54px;
  }
  .pitch {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .pitch .eyebrow {
    margin-bottom: 10px;
    font-size: 8px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
  }
  .pitch-intro {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .button {
    padding: 9px 13px;
  }
  .flow-demo {
    margin-top: 12px;
  }
  .flow-caption {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .flow-status {
    min-height: 38px;
    font-size: 10px;
    padding: 7px 10px;
  }
  .pitch-benefits {
    margin-top: 10px;
    gap: 8px;
  }
  footer {
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

@media (max-width: 600px) and (max-height: 700px) {
  .pitch-actions {
    gap: 15px;
  }
  .pitch-actions .button,
  .pitch-actions .text-link {
    font-size: 11px;
    white-space: nowrap;
  }
  .pitch-actions .button {
    gap: 14px;
  }
  .flow-track {
    grid-template-columns: 1fr 16px 1fr 16px 1fr 16px 1fr;
    grid-template-rows: auto 30px;
    padding: 12px 8px 14px;
  }
  .flow-node {
    padding: 9px 2px;
  }
  .flow-node strong {
    font-size: 11px;
  }
  .flow-node small {
    display: none;
  }
  [data-node="plan"] {
    grid-area: 1/1;
  }
  [data-edge="build"] {
    grid-area: 1/2;
  }
  [data-node="build"] {
    grid-area: 1/3;
  }
  [data-edge="review"] {
    grid-area: 1/4;
    transform: none;
  }
  [data-node="review"] {
    grid-area: 1/5;
  }
  [data-edge="deliver"] {
    grid-area: 1/6;
    transform: none;
  }
  [data-node="deliver"] {
    grid-area: 1/7;
  }
  .repair-loop {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    height: auto;
    grid-area: 2/3/3/6;
    margin: 0 10px;
    border-width: 0 1px 1px;
    border-radius: 0 0 5px 5px;
  }
  .repair-loop > span:nth-child(2) {
    top: 9px;
    right: auto;
    width: auto;
    font-size: 8px;
    background: var(--white);
    white-space: nowrap;
    padding: 0 2px;
  }
  .repair-loop > span:first-child {
    top: -5px;
    transform: none;
  }
  .repair-loop > span:last-child {
    display: block;
  }
}
@media (max-width: 360px) and (max-height: 620px) {
  h1 {
    font-size: 27px;
  }
  .pitch-benefits {
    display: none;
  }
}
