@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("/fonts/kalam-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --ink: #141414;
  --soft: #565b58;
  --rule: #e1e4e0;
  --win: #ffffff;
  --winbar: #eceeec;
  --winline: #dcdfdb;
  --shadow: 0 40px 70px -30px rgba(20, 26, 22, .35);
  --blue: #1f5fd6;
  --red: #dc3129;
  --green: #13904a;
  --btn: #141414;
  --btntext: #ffffff;
  --app-side: #f5f6f7;
  --app-text: #1d2433;
  --app-soft: #6b7385;
  --app-line: #d9dde4;
  --app-on: #e4e9f3;
  --save-bg: #eceff3;
  --save-text: #5b6478;
  --hint: #cfd3da;
  --term: #16181d;
  --term-bar: #22252c;
  --term-line: #2a2d35;
  --term-text: #e7e9ee;
  --term-soft: #8c94a2;
  --pill: #17181b;
  --display: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --hand: "Kalam", "Bradley Hand", cursive;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1014;
    --ink: #eef0f3;
    --soft: #a4aab4;
    --rule: #252931;
    --win: #1b1e24;
    --winbar: #24282f;
    --winline: #30353d;
    --shadow: 0 40px 70px -24px rgba(0, 0, 0, .7);
    --blue: #6f9dff;
    --red: #ff6157;
    --green: #43d17f;
    --btn: #eef0f3;
    --btntext: #0e1014;
    --app-side: #20242a;
    --app-text: #e8eaee;
    --app-soft: #98a0ab;
    --app-line: #353a43;
    --app-on: #2e343d;
    --save-bg: #2b3038;
    --save-text: #9aa1ab;
    --hint: #474d57;
    --term: #08090b;
    --term-bar: #16181c;
    --pill: #2a2d33;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--soft) var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 18px/1.6 var(--display); -webkit-font-smoothing: antialiased; caret-color: var(--blue); }
body > main { flex: 1; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .88em; font-weight: 500; }
.wrap { max-width: 1260px; margin: 0 auto; padding-left: clamp(16px, 4vw, 44px); padding-right: clamp(16px, 4vw, 44px); }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(58px, 7.2vw, 96px); line-height: .95; margin-bottom: 34px; }
h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; }

/* Marker ink: blue points, red marks what's wrong, green means done. */
.inked { position: relative; display: inline-block; white-space: nowrap; }
.ink { position: absolute; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.s-blue { stroke: var(--blue); }
.s-red { stroke: var(--red); }
.s-green { stroke: var(--green); }
.ink-under { left: -4px; bottom: -.14em; width: calc(100% + 8px); height: .26em; stroke-width: 8; }
.ink-ring { left: -.32em; top: -.17em; width: calc(100% + .64em); height: calc(100% + .34em); stroke-width: 7; }
.ink-strike { left: -6px; top: 46%; width: calc(100% + 12px); height: .34em; stroke-width: 7; }
.note { font: 700 25px/1.1 var(--hand); white-space: nowrap; }

/* Buttons */
.nav-download, .download, .close-download { display: inline-flex; align-items: center; gap: 10px; background: var(--btn); color: var(--btntext); font-weight: 600; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.nav-download { padding: 11px 16px; border-radius: 12px; font-size: 15px; white-space: nowrap; }
.download, .close-download { padding: 18px 26px; border-radius: 14px; font-size: 19px; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); }
.nav-download:hover, .download:hover, .close-download:hover { transform: translateY(-2px); }
a[aria-disabled="true"] { opacity: .55; cursor: default; }
a[aria-disabled="true"]:hover { transform: none; }

/* Nav */
.bar-inner { height: 88px; display: flex; align-items: center; gap: 28px; }
.wordmark { font: 800 30px/1 var(--display); letter-spacing: -.045em; text-decoration: none; margin-right: auto; }
.brand-dot { color: var(--blue); }
.bar nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--soft); font-size: 16px; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 3px; text-underline-offset: .4em; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding-top: 40px; padding-bottom: 110px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--soft); margin: 0 0 34px; max-width: 470px; }
.requirements { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; font-size: 15px; color: var(--soft); white-space: nowrap; }
.status-line { margin: 6px 0 0; font-size: 15px; color: var(--soft); }
.brew-install { max-width: 470px; margin-top: 24px; }
.brew-install .copy { flex-shrink: 0; white-space: nowrap; }
.brew-install pre { margin: 0; padding: 13px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 13px/1.7 var(--mono); }
.brew-install code { font: inherit; }

/* The agent install: a prompt to paste into Claude Code, always on the dark terminal. */
.agent-install { max-width: 470px; margin-top: 30px; }
.agent-install-head { display: flex; align-items: flex-end; gap: 6px; margin: 0 0 6px 10px; }
.note-or { color: var(--blue); font-size: 23px; transform: rotate(-3deg); }
.ink-or { position: relative; width: 46px; height: 31px; stroke-width: 3.5; margin-bottom: -10px; }
.prompt { background: var(--term); color: var(--term-text); border: 1px solid var(--term-line); border-radius: 12px; overflow: hidden; }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--term-line); font-size: 14px; font-weight: 600; color: var(--term-soft); }
.copy { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 8px; background: var(--term-text); color: var(--term); font: 600 14px/1 var(--display); cursor: pointer; transition: background .2s; }
.copy .icon { width: 15px; height: 15px; }
.copy:hover { background: #ffffff; }
.copy.is-copied { background: #43d17f; color: #06140b; }
.copy:focus-visible { outline-color: #86aaff; }
.prompt-body summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; font: 400 13.5px/1.4 var(--mono); cursor: pointer; list-style: none; }
.prompt-body summary::-webkit-details-marker { display: none; }
.prompt-body summary:focus-visible { outline-offset: -3px; outline-color: #86aaff; }
.prompt-body summary .p { flex-shrink: 0; }
.more { margin-left: auto; flex-shrink: 0; padding-left: 8px; font: 600 14px/1 var(--display); color: var(--term-soft); text-decoration: underline; text-underline-offset: .25em; }
.prompt-body[open] .more-open, .prompt-body:not([open]) .more-close, .prompt-body[open] .summary-text { display: none; }
.prompt-body pre { margin: 0; padding: 0 16px 16px; font: 400 13px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--term-text); }
.prompt-body pre::selection { background: #86aaff; color: #08090b; }
.sep { width: 4px; height: 4px; flex-shrink: 0; border-radius: 50%; background: currentColor; }

/* The illustration: a 720×700 coordinate space scaled by --u so marks stay on their targets. */
.stage { margin: 0; min-width: 0; container-type: inline-size; }
.stage-inner { --u: calc(100cqi / 720); position: relative; aspect-ratio: 720 / 700; }
.stage-inner > * { position: absolute; }
.stage figcaption, .stage > figcaption { margin-top: 12px; font-size: 14px; color: var(--soft); text-align: right; }
.win { display: flex; flex-direction: column; overflow: hidden; background: var(--win); border: 1px solid var(--winline); border-radius: 14px; box-shadow: var(--shadow); }
.winbar { flex-shrink: 0; height: 3em; display: flex; align-items: center; gap: .67em; padding: 0 1.17em; background: var(--winbar); border-bottom: 1px solid var(--winline); font-size: .923em; color: var(--soft); }
.winbar i { width: 1em; height: 1em; border-radius: 50%; flex-shrink: 0; }
.winbar i:nth-child(1) { background: #ff5f57; }
.winbar i:nth-child(2) { background: #febc2e; }
.winbar i:nth-child(3) { background: #28c840; }
.winbar span { margin: 0 auto; transform: translateX(-2.5em); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app { left: 0; top: calc(30 * var(--u)); width: calc(600 * var(--u)); height: calc(400 * var(--u)); border-radius: calc(14 * var(--u)); font: calc(13 * var(--u))/1.3 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; color: var(--app-text); }
.app-body { flex: 1; display: flex; min-height: 0; }
.side { width: 11.54em; display: flex; flex-direction: column; gap: .31em; padding: 1.38em .92em; background: var(--app-side); border-right: 1px solid var(--app-line); }
.side span { font-size: .96em; padding: .48em .8em; border-radius: .48em; color: var(--app-soft); }
.side .on { background: var(--app-on); color: var(--app-text); font-weight: 600; }
.main { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 1.85em 2.15em; }
.main b { font-size: 1.62em; font-weight: 600; }
.main small { font-size: .92em; color: var(--app-soft); margin: .33em 0 .83em; }
.main .label { font-size: .85em; font-weight: 600; color: var(--app-soft); margin: .91em 0 .45em; }
.in { display: flex; align-items: center; width: 20.8em; height: 2.4em; padding: 0 .8em; font-size: .96em; border: 1px solid var(--app-line); border-radius: .48em; }
.hint { font-size: .85em; color: var(--hint); margin-top: .55em; }
.btns { display: flex; gap: .62em; margin-top: auto; }
.save, .del { font-size: .92em; padding: .67em 1.08em; border-radius: .5em; }
.save { background: var(--save-bg); color: var(--save-text); }
.del { background: #d63c35; color: #fff; }
.ink-app { left: 0; top: calc(30 * var(--u)); width: calc(600 * var(--u)); height: calc(400 * var(--u)); stroke-width: 6; }
.ink-app .thin { stroke-width: 5; }
.stage-inner .note { font-size: max(12px, calc(25 * var(--u))); }
.note-hint { left: calc(186 * var(--u)); top: calc(300 * var(--u)); color: var(--red); transform: rotate(-3deg); }
.note-claude { left: calc(20 * var(--u)); top: calc(520 * var(--u)); color: var(--green); transform: rotate(-4deg); }
.ink-claude { left: calc(150 * var(--u)); top: calc(540 * var(--u)); width: calc(110 * var(--u)); height: calc(60 * var(--u)); stroke-width: 4; }

.pill { display: inline-flex; align-items: center; gap: .92em; padding: .75em 1.17em; border-radius: 1.17em; background: var(--pill); color: #fff; font: 500 12px/1 var(--mono); box-shadow: 0 1.2em 2.2em -.8em rgba(0, 0, 0, .5); }
.pill-hero { left: calc(196 * var(--u)); top: calc(6 * var(--u)); font-size: calc(12 * var(--u)); }
.pill i { width: 1em; height: 1em; border-radius: 50%; flex-shrink: 0; }
.pill .rec { width: .67em; height: .67em; background: #ff5c6c; }
.pill .sep { width: 1px; height: 1.33em; border-radius: 0; background: #4a4d55; }
.pill svg { width: 1.33em; height: 1.33em; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sw-pink { background: #ee6ca3; }
.sw-blue { background: #7d9ff7; }
.sw-yellow { background: #f4d65c; }

.term { left: calc(250 * var(--u)); top: calc(450 * var(--u)); width: calc(470 * var(--u)); height: calc(230 * var(--u)); border-radius: calc(14 * var(--u)); background: var(--term); border-color: var(--term-line); color: var(--term-text); font: 400 calc(13.5 * var(--u))/1.75 var(--mono); }
.term .winbar { font-size: .89em; background: var(--term-bar); border-color: var(--term-line); color: var(--term-soft); }
.term pre { margin: 0; padding: 1.19em 1.48em; font: inherit; white-space: pre-wrap; }
.tl { display: block; }
/* Issue lines hang: wrapped text lines up after "✓ #142 ". */
.tl.issue { padding-left: 9ch; text-indent: -7ch; }
.p { color: var(--term-soft); }
.g { color: #43d17f; }
.b { color: #86aaff; }
.w { color: #fff; font-weight: 500; }
.cursor { display: inline-block; width: .59em; height: 1.19em; vertical-align: -.22em; background: var(--term-text); }

/* The signature moment: marks draw in order, then Claude Code's terminal fills in. */
.hero .ink path { stroke-dasharray: 1 1; animation: draw .8s var(--ease) backwards; }
.ink-under path { animation-delay: .3s; }
.ink-ring path { animation-delay: .7s; }
.ink-app path:nth-child(1) { animation-delay: 1.15s; }
.ink-app path:nth-child(2) { animation-delay: 1.55s; }
.ink-app path:nth-child(3) { animation-delay: 2s; }
.ink-app path:nth-child(4) { animation-delay: 2.2s; }
.note-hint { animation: fade .4s ease-out 2.5s backwards; }
.tl { animation: rise .35s var(--ease) backwards; }
.tl:nth-child(1) { animation-delay: 2.8s; }
.tl:nth-child(2) { animation-delay: 3.1s; }
.tl:nth-child(3) { animation-delay: 3.35s; }
.tl:nth-child(4) { animation-delay: 3.6s; }
.tl:nth-child(5) { animation-delay: 3.75s; }
.tl:nth-child(6) { animation-delay: 3.9s; }
.tl:nth-child(7) { animation-delay: 4.1s; }
.cursor { animation: blink 1.1s steps(2, jump-none) 4.3s infinite; }
.note-claude { animation: fade .5s ease-out 4.3s backwards; }
.ink-claude path { animation-delay: 4.4s; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(.4em); } }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.band { padding: 110px 0; border-top: 1px solid var(--rule); }
.sub { font-size: clamp(18px, 1.5vw, 20px); color: var(--soft); margin: 18px 0 0; max-width: 560px; }
.steps-wrap { position: relative; margin-top: 80px; }
.steps-line { left: 70px; top: 20px; width: calc((100% - 112px) * 2 / 3 + 36px); height: 24px; stroke: var(--soft); stroke-width: 2.5; stroke-dasharray: 4 12; opacity: .55; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.c-blue { --c: var(--blue); }
.c-red { --c: var(--red); }
.c-green { --c: var(--green); }
.num { position: relative; width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 26px; background: var(--bg); border-radius: 50%; font: 700 30px/1 var(--hand); color: var(--c); }
.num svg { position: absolute; inset: 0; width: 64px; height: 64px; fill: none; stroke: var(--c); stroke-width: 3.5; stroke-linecap: round; }
.step { display: grid; grid-template-rows: auto auto 1fr auto; }
.step h3 { font: 800 25px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 10px; }
.step p { margin: 0 0 24px; color: var(--soft); font-size: 16.5px; }
.vis { position: relative; height: 96px; display: flex; align-items: center; }
.bubble { position: relative; padding: 18px 24px; font: 700 26px/1 var(--hand); color: var(--c); }
.bubble svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--c); stroke-width: 3; }
.mini { padding: 12px 16px; font: 400 13px/1.7 var(--mono); color: var(--term-text); background: var(--term); border-radius: 10px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 34px 0 0; }
.ticks li { position: relative; padding: 12px 0 12px 44px; font-size: 18px; color: var(--soft); border-bottom: 1px solid var(--rule); }
.ticks strong { color: var(--ink); font-weight: 600; }
.ticks svg { position: absolute; left: 0; top: 14px; width: 30px; height: 26px; fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.fine { margin: 24px 0 0; font-size: 16px; color: var(--soft); max-width: 46ch; }
.file { position: relative; margin: 0; min-width: 0; }
.file .win { font-size: 13px; }
.file .winbar span { transform: none; margin-left: .5em; }
.file pre { margin: 0; padding: 24px 26px 30px; font: 400 14.5px/1.85 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.m { color: var(--soft); }
.k { color: var(--blue); }
.note-file { position: absolute; right: -10px; top: -46px; color: var(--blue); transform: rotate(4deg); }

.center { text-align: center; }
.center p { font-size: clamp(18px, 1.6vw, 21px); color: var(--soft); max-width: 640px; margin: 28px auto 0; }
.close { padding: 130px 0 140px; border-top: 1px solid var(--rule); }
.close h2 { font-size: clamp(44px, 6.4vw, 88px); }
.close h2 .line { display: block; text-wrap: balance; }
.close-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px 26px; margin-top: 44px; }
.note-close { color: var(--red); transform: rotate(-4deg); }

.foot { border-top: 1px solid var(--rule); }
.foot-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--soft); font-size: 15px; }
.foot .wordmark { margin: 0; font-size: 24px; color: var(--ink); }

/* Changelog */
.changelog-page { max-width: 840px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 44px) 110px; }
.changelog-heading h1 { font-size: clamp(56px, 9vw, 88px); margin-bottom: 22px; }
.changelog-heading > p:not(.requirements):not(.status-line) { font-size: 20px; color: var(--soft); margin: 0 0 30px; }
.release-notes { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); }
.release-notes h2 { font-size: 40px; margin: 72px 0 18px; }
.release-notes h2:first-child { margin-top: 0; }
.release-notes h3 { font: 700 23px/1.2 var(--display); letter-spacing: -.015em; margin: 36px 0 10px; }
.release-notes p, .release-notes li { color: var(--soft); }
.release-notes ul { margin: 0; padding-left: 22px; }
.release-notes * + ul { margin-top: 12px; }
.release-notes ul + ul { margin-top: 0; }
.release-notes li { margin: 0; padding: 4px 0; }
.release-notes li::marker { color: var(--blue); }
.release-notes a, .retry { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 16px; line-height: inherit; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.retry { background: none; border: 0; padding: 0; margin-right: 18px; cursor: pointer; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .stage { max-width: 720px; }
  .steps { gap: 36px; }
  .steps-line { width: calc((100% - 72px) * 2 / 3 - 4px); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 72px; }
}

@media (max-width: 800px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .steps-line { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .bar-inner { height: 68px; gap: 18px; }
  .bar nav { gap: 18px; }
  .wordmark { font-size: 26px; }
  .nav-link[href$="#how-it-works"] { display: none; }
  .nav-download { padding: 9px 12px; font-size: 14px; gap: 8px; }
  .nav-download .icon { display: none; }
  .hero { padding-top: 24px; padding-bottom: 72px; }
  .requirements, .status-line { font-size: 14px; }
  /* On phones the terminal leaves the scaled drawing so Claude Code's output stays readable. */
  .stage-inner { aspect-ratio: auto; display: flex; flex-direction: column; padding-top: calc(440 * var(--u)); }
  .stage-inner > .note-claude { position: relative; left: auto; top: auto; order: 0; align-self: flex-start; margin: 4px 0 2px 4px; font-size: 20px; }
  .stage-inner > .term { position: relative; left: auto; top: auto; order: 1; width: auto; height: auto; border-radius: 12px; font-size: 12px; }
  .ink-claude { display: none; }
  .download { font-size: 17px; padding: 16px 20px; }
  .band { padding: 72px 0; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .file pre { padding: 18px; font-size: 13px; }
  .note-file { right: 0; top: -40px; font-size: 21px; }
  .close { padding: 90px 0 100px; }
  .foot .wordmark { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .ink path, .note-hint, .note-claude, .tl, .cursor { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
