:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #1d241b;
  background: #f7f7f0;
  --ink: #1d241b;
  --quiet: #505c4a;
  --line: #d9ded1;
  --paper: #fcfcf7;
  --green: #284228;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 5.5rem; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: #152512; }
:focus-visible { outline: 2px solid #426443; outline-offset: 4px; }
button { font: inherit; }
.shell { width: min(70rem, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar, .wordmark, .site-header nav, .console, .button, .hero-actions, .footer {
  display: flex;
  align-items: center;
}
.topbar { justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.wordmark { gap: .48rem; font-size: 1.16rem; font-weight: 720; letter-spacing: -.05em; color: var(--ink); text-decoration: none; }
.wordmark img { border-radius: .4rem; }
.site-header nav, .footer nav { display: flex; flex-wrap: wrap; gap: clamp(.7rem, 2vw, 1.65rem); }
.site-header nav a, .console, .footer nav a { color: var(--quiet); font-size: .85rem; font-weight: 630; text-decoration: none; }
.site-header a:hover, .footer a:hover { text-decoration: underline; }
.console { gap: .35rem; white-space: nowrap; }
a svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  margin-block: clamp(1.4rem, 5vw, 4.6rem) clamp(2.35rem, 7vw, 5.25rem);
  min-height: 22rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--paper);
}
.hero-copy { align-self: center; padding: clamp(1.6rem, 4.7vw, 4rem); }
h1, h2, h3, p { margin: 0; }
h1 { max-width: 13ch; font-size: clamp(2.65rem, 5vw, 4.45rem); line-height: .99; letter-spacing: -.075em; font-weight: 700; }
.hero p { max-width: 40ch; margin-top: 1.35rem; color: var(--quiet); font-size: clamp(.98rem, 1.8vw, 1.07rem); line-height: 1.65; }
.hero-actions { gap: 1.1rem; flex-wrap: wrap; margin-top: 1.65rem; font-size: .89rem; font-weight: 650; }
.hero-art { position: relative; min-height: 100%; background: #192018; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }
.button { width: fit-content; min-height: 2.7rem; justify-content: center; gap: .5rem; padding: .55rem .9rem; border: 1px solid transparent; border-radius: .6rem; font-size: .86rem; font-weight: 670; text-decoration: none; }
.primary { color: #fff; background: var(--green); }
.primary:hover { color: #fff; background: #1f351e; }
.secondary { color: var(--green); background: var(--paper); border-color: #c8d3c0; }
.secondary:hover { background: #e6eedf; }

.stage {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 6vw, 5.5rem);
  padding: clamp(1.35rem, 4vw, 2.8rem) 0;
  border-top: 1px solid var(--line);
}
.stage-label p, .market p { margin-top: .55rem; color: var(--quiet); font-size: .93rem; line-height: 1.55; }
.step { display: inline-grid; width: 1.65rem; height: 1.65rem; margin-bottom: .65rem; place-items: center; color: var(--green); border: 1px solid #cdd9c7; border-radius: .35rem; background: #e9efdf; font-family: ui-monospace, monospace; font-weight: 700; font-size: .77rem; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); letter-spacing: -.047em; line-height: 1.13; }
h3 { font-size: 1.13rem; letter-spacing: -.023em; }

.command { min-width: 0; overflow: hidden; color: #ecf0e5; border: 1px solid #303b2b; border-radius: .7rem; background: #1a2419; }
.command-bar { display: flex; min-height: 2.65rem; padding: .25rem .75rem .25rem 1rem; align-items: center; justify-content: space-between; gap: .55rem; color: #d7dfcf; border-bottom: 1px solid #344330; font-size: .77rem; font-weight: 600; }
.command-bar button { display: flex; align-items: center; gap: .3rem; min-height: 2rem; padding: .15rem .45rem; border: 1px solid #54674f; border-radius: .33rem; color: #eef2e7; background: transparent; cursor: pointer; font-size: .75rem; }
.command-bar button:hover { background: #354b34; }
.command :focus-visible { outline-color: #c2e7ae; outline-offset: -3px; }
.command svg { width: .88rem; height: .88rem; }
pre { margin: 0; padding: .9rem 1rem 1.05rem; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: "SFMono-Regular", Consolas, ui-monospace, monospace; font-size: .83em; line-height: 1.65; }
pre code { color: #cef0b0; font-size: .82rem; }
.hint { margin: .72rem 0 0; color: var(--quiet); font-size: .85rem; line-height: 1.55; }
.editor-link + .hint { margin-bottom: .65rem; }

.connect { min-width: 0; border: 1px solid var(--line); border-radius: .75rem; background: var(--paper); }
.providers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; padding: .7rem; background: #eff1e9; border-bottom: 1px solid var(--line); border-radius: .75rem .75rem 0 0; }
.providers a { display: flex; align-items: center; gap: .48rem; min-width: 0; min-height: 3rem; padding: .36rem .44rem; border: 1px solid transparent; border-radius: .5rem; color: var(--ink); text-decoration: none; font-size: .83rem; font-weight: 650; line-height: 1.16; }
.providers a:hover { background: #f9fbf4; }
.providers a[aria-current] { border-color: #becbb8; background: #fff; }
.provider-icon { width: 2rem; height: 2rem; display: grid; place-items: center; flex-shrink: 0; border-radius: .38rem; background: #e6ebdf; }
.provider-icon img { width: 1.3rem; height: 1.3rem; object-fit: contain; }
.provider-icon.claude { background: #f6e5db; }
.provider-icon.vscode { background: #e3f0f8; }
.provider-icon.cursor { background: #e9e6ee; }
.provider-panel { padding: clamp(.8rem, 2.5vw, 1.35rem); }
.provider-panel + .provider-panel:not([hidden]) { border-top: 1px solid var(--line); }
.provider-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem .8rem; margin-bottom: .85rem; }
.provider-heading a { display: flex; align-items: center; gap: .2rem; white-space: nowrap; font-size: .8rem; }
.provider-heading svg { width: .85rem; height: .85rem; }
.scope-note { border-top: 1px solid var(--line); padding: .8rem 1.35rem; color: var(--quiet); font-size: .84rem; line-height: 1.55; }
.scope-note strong { color: var(--ink); }

.market { margin-top: 1.7rem; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid #ccd7c3; border-radius: .9rem; background: #ebf0e3; }
.market-intro { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.market details { margin-top: 1.35rem; padding-top: 1rem; border-top: 1px solid #cfd9c7; }
.market summary { width: fit-content; color: var(--green); font-size: .89rem; font-weight: 690; cursor: pointer; }
.market-commands { display: grid; gap: .7rem; margin-top: .9rem; }
.footer { min-height: 7rem; justify-content: space-between; gap: 1.1rem; padding-block: 1.6rem; }
.footer nav a { font-size: .81rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 48rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: clamp(9rem, 35vw, 16rem); }
  .hero-art img { object-position: 58% 51%; }
  .stage { grid-template-columns: 1fr; }
  .stage-label p { max-width: 52ch; }
}

@media (max-width: 34rem) {
  .shell { width: calc(100% - 1.5rem); }
  .topbar { display: grid; grid-template-columns: 1fr auto; gap: 0 .65rem; padding-block: .65rem; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; margin-top: .65rem; padding-top: .5rem; border-top: 1px solid var(--line); }
  .footer, .market-intro { align-items: flex-start; flex-direction: column; }
  .providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
