@font-face {
  font-family: "Pretendard";
  src: url("assets/pretendard.woff2") format("woff2");
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --gray: #8a8a8a;
  --past: #5c5c5c;
  --line: #e6e6e6;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 3.2vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* A spring with one overshoot, sampled for linear(); browsers without it fall back to --ease below. */
  --spring: var(--ease);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.077 22.4%, 1.101 24.4%, 1.11 26.6%, 1.098 29.5%, 1.065 33.2%, 0.996 41.4%, 0.985 45.2%, 0.981 49.4%, 0.998 64.6%, 1); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 400 17px/1.5 "Pretendard", -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif;
  letter-spacing: -0.02em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--black); color: var(--white); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* staggered text: letters fall in out of a blur, one after another */
.st .w { display: inline-block; white-space: nowrap; }
.st .ch {
  display: inline-block;
  transition: opacity .6s ease-out calc(var(--d) * 32ms), filter .7s ease-out calc(var(--d) * 32ms), transform .9s cubic-bezier(.5, -0.4, .2, 1) calc(var(--d) * 32ms);
}
.st:not(.in) .ch { opacity: 0; filter: blur(8px); transform: translateY(-0.45em); }
.js [data-stagger]:not(.st) { visibility: hidden; }
sup { font-size: 0.62em; margin-left: 0.2em; vertical-align: 0.6em; letter-spacing: 0; }

.wordmark {
  display: block; width: 100%; aspect-ratio: 102.58 / 24; background: currentColor;
  -webkit-mask: url("assets/wordmark.svg") no-repeat center / contain;
          mask: url("assets/wordmark.svg") no-repeat center / contain;
}

/* top */
.top {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad); background: var(--white); color: var(--black);
}
.brand-mark { display: block; width: 30px; height: 30px; transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(180deg); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border: 1px solid var(--black); border-radius: 999px; background: var(--black); color: var(--white); font-weight: 600; transition: opacity .3s var(--ease); }
.nav .nav-btn.line { background: none; color: var(--black); }
.nav .nav-btn::after { content: none; }
.nav .nav-btn:hover { opacity: .7; }

/* hero */
.hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto auto; padding: 0 var(--pad) var(--pad);
}
.trail { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-line {
  position: relative; grid-row: 2; margin: 0 0 clamp(16px, 2.4vw, 36px);
  font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: -0.03em;
  pointer-events: none;
}
.hero-rev {
  position: absolute; right: var(--pad); top: 50%; margin: 0;
  font: 500 12px/1 var(--mono); color: var(--gray); letter-spacing: 0; pointer-events: none;
}
html:not(.js) .hero-rev { display: none; }
/* The wordmark is 102.58:24, so its height is capped by width: on wide, short windows it stops at about 30% of the screen height. */
.hero-word { position: relative; grid-row: 3; width: min(100%, calc(30svh * 102.58 / 24)); margin: 0; pointer-events: none; }
.js .hero-word .wordmark { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease) .15s; }
.js.ready .hero-word .wordmark { clip-path: inset(0 0 0 0); }

.hero-copy { position: relative; grid-row: 2; display: grid; gap: 14px; max-width: 36rem; margin: 0 0 clamp(16px, 2.4vw, 36px); }
.hero-copy .hero-line { grid-row: auto; margin: 0; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.15; }
.hero-sub { margin: 0; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; color: var(--past); pointer-events: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
.hero-now { position: relative; margin: 6px 0 0; max-width: 32rem; font-size: 13px; line-height: 1.5; color: var(--gray); pointer-events: none; }
.hero-now b { margin-right: 8px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; font: 600 11px/1 var(--mono); color: var(--black); letter-spacing: 0; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--black); border-radius: 999px; background: var(--black); color: var(--white); font-size: 15px; font-weight: 600; transition: opacity .3s var(--ease); }
.btn.line { background: var(--white); color: var(--black); }
.btn:hover { opacity: .7; }
/* echo: every state the mark has been in, kept; depth is time, the bar walks it like the app's time orbit */
.echo { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
html:not(.js) .echo { display: none; }
.echo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.echo-canvas:active { cursor: grabbing; }
.echo-line {
  position: absolute; left: var(--pad); top: clamp(92px, 13vh, 140px); margin: 0; pointer-events: none;
  font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: -0.03em;
}
/* The app's History panel without its frame: newest revision on top, older ones flow down and fade. */
.echo-history {
  position: absolute; z-index: 2; top: clamp(92px, 13vh, 140px); right: var(--pad); width: clamp(400px, 40vw, 500px); height: min(560px, 56vh);
  margin: 0; padding: 0; list-style: none; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease);
  -webkit-mask: linear-gradient(#000 65%, transparent); mask: linear-gradient(#000 65%, transparent);
}
.echo-history.in { opacity: 1; }
.echo-history li { position: relative; display: grid; grid-template-columns: 7px 132px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
.echo-history li::before { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.echo-history li:first-child::before { top: 17px; }
.echo-history li::after { content: ""; position: absolute; left: 21px; right: 0; bottom: 0; height: 1px; background: var(--line); }
.eh-sq { position: relative; z-index: 1; width: 7px; height: 7px; margin-top: 5px; background: #c4c4c4; }
.echo-history li:first-child .eh-sq { background: var(--black); }
.eh-meta, .eh-what { display: grid; align-content: start; gap: 3px; min-width: 0; }
.eh-rev { font: 500 11px/1.4 var(--mono); color: var(--gray); letter-spacing: 0; }
.eh-who { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.eh-av { flex: none; width: 20px; height: 20px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); object-fit: contain; }
.eh-face { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; object-fit: cover; }
.eh-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eh-role { font: 500 10.5px/1.3 var(--mono); color: var(--gray); letter-spacing: 0; text-transform: uppercase; }
.eh-when, .eh-rest { font-size: 12.5px; line-height: 1.35; color: var(--gray); }
.eh-main { font-size: 14px; font-weight: 600; line-height: 1.3; }
.eh-change { display: flex; gap: 7px; font-size: 13.5px; line-height: 1.4; color: var(--past); }
.eh-change::before { content: "•"; color: #c4c4c4; }
@media (max-aspect-ratio: 20 / 23) { .echo-history { height: 320px; } }
@media (max-width: 700px) {
  .echo-history { top: calc(clamp(92px, 13vh, 140px) + 92px); left: var(--pad); width: auto; height: 200px; }
  .echo-history li { grid-template-columns: 7px 112px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 600px) {
  .nav { font-size: 13px; }
  .nav .nav-btn { padding-inline: 10px; }
}
.tl-track { position: absolute; left: 50%; height: 60px; transform: translateX(-50%); border-radius: 8px; cursor: grab; touch-action: pan-y; }
.tl-track:active { cursor: grabbing; }
.tl-play, .tl-live { position: absolute; border: 0; background: var(--black); color: var(--white); cursor: pointer; }
.tl-play { left: var(--pad); bottom: 24px; width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.tl-play svg { width: 14px; height: 14px; fill: currentColor; }
.tl-play .i-pause, .tl-play.on .i-play { display: none; }
.tl-play.on .i-pause { display: inline; }
.tl-live {
  right: var(--pad); bottom: 27px; height: 34px; padding: 0 16px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; transition: opacity .4s var(--ease);
}
.tl-live.off { opacity: 0; pointer-events: none; }
.tl-at { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
.tl-at p { margin: 0; min-width: 8.5em; display: grid; justify-items: center; gap: 6px; }
.tl-at b { font: 700 15px/1 var(--mono); letter-spacing: 0; }
.tl-at span { font-size: 12px; line-height: 1; color: var(--gray); font-variant-numeric: tabular-nums; }
.tl-at button { width: 30px; height: 30px; padding: 0; border: 0; background: none; color: var(--black); cursor: pointer; display: grid; place-items: center; }
.tl-at svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* download */
/* Title and tiles share the width at every size, so a wide window never leaves an empty middle. */
.get {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(32px, 6vw, 120px);
  padding: clamp(96px, 12vw, 160px) var(--pad); border-top: 1px solid var(--line);
}
.get-title { margin: 0; font-size: clamp(56px, 8vw, 168px); font-weight: 800; line-height: 0.92; letter-spacing: -0.065em; }
.get-side { display: grid; justify-items: stretch; gap: 18px; min-width: 0; }
.get-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1vw, 20px); margin: 0; padding: 0; list-style: none; }
.get-tiles > li { display: flex; min-width: 0; }
.get-tile {
  display: flex; align-items: center; gap: clamp(14px, 1.2vw, 22px); width: 100%; min-width: 0; min-height: clamp(96px, 7.4vw, 140px); padding: clamp(16px, 1.4vw, 28px);
  border: 1px solid var(--line); border-radius: clamp(16px, 1.2vw, 22px); transition: border-color .3s var(--ease);
}
a.get-tile:hover { border-color: var(--black); }
.get-tile.soon { border-style: dashed; }
.get-tile.soon img, .get-tile.soon strong { opacity: .55; }
.get-tile img { flex: none; width: clamp(40px, 3vw, 56px); height: clamp(40px, 3vw, 56px); object-fit: contain; }
.get-tile-copy { display: grid; gap: 5px; min-width: 0; }
.get-tile strong { font-size: clamp(16px, 1.25vw, 22px); font-weight: 700; line-height: 1.25; }
.get-tile small { font-size: clamp(12px, .9vw, 15px); line-height: 1.4; color: var(--past); }
.get-tile-copy small a { text-decoration: underline; text-underline-offset: 2px; }
.get-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; }
.get-links a, .get-guide { text-decoration: underline; text-underline-offset: 3px; }
.get-guide { font-size: 15px; font-weight: 600; }
@media (max-width: 400px) { .get-tile { flex-direction: column; align-items: flex-start; gap: 10px; } }
/* Nine tiles read as a 3 × 3 grid once the side column is wide enough; each tile stacks its mark over the copy. */
@media (min-width: 1100px) {
  .get-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .get-tile { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
}
.get-note { margin: 0; font: 500 12px/1.7 var(--mono); color: var(--gray); letter-spacing: 0; text-align: right; }
.get-note.view-note { max-width: 24rem; }

/* footer */
.foot { padding: clamp(56px, 7vw, 96px) var(--pad) 28px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.foot-mark { display: block; width: 28px; height: 28px; }
.foot-brand p { margin: 18px 0 0; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }
.foot-col { display: grid; align-content: start; gap: 10px; font-size: 15px; }
.foot-col h2 { margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--gray); }
.foot-col a { width: fit-content; }
.foot-col a span { margin-left: 8px; color: var(--gray); }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-col a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.foot-row {
  display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 6vw, 80px); padding-top: 20px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--gray);
}
.foot-row a:hover { color: var(--black); }

/* legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 150px var(--pad) clamp(80px, 10vw, 140px); }
.doc h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -0.055em; }
.doc .doc-date { margin: 18px 0 44px; font: 500 12px/1 var(--mono); color: var(--gray); letter-spacing: 0; }
.doc h2 { margin: 48px 0 12px; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: #222; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc .lede { font-size: 18px; color: var(--black); }
.doc .brief { margin: 28px 0 0; padding: 20px 24px; border: 1px solid var(--black); border-radius: 12px; }
.doc .brief ul { margin: 0; }
.doc table { width: 100%; margin: 8px 0 18px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 10px 14px 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.doc th { font-size: 13px; font-weight: 600; color: var(--gray); }

/* install guide */
.guide { padding: 150px 0 0; }
.g-hero, .g-track, .g-help { padding-inline: var(--pad); }
.g-hero h1 { margin: 0; font-size: clamp(56px, 10vw, 168px); font-weight: 800; line-height: 0.92; letter-spacing: -0.065em; }
.g-lede { max-width: 34rem; margin: 28px 0 0; font-size: 19px; line-height: 1.5; color: var(--past); }
.g-picks { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.g-pick { position: relative; display: grid; align-content: start; gap: 8px; height: 100%; padding: 24px 24px 22px; border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s var(--ease); }
.g-pick::after { content: "↓"; position: absolute; top: 22px; right: 24px; transition: transform .5s var(--ease); }
.g-pick:hover { border-color: var(--black); }
.g-pick:hover::after { transform: translateY(3px); }
.g-pick small, .g-kicker, .g-part small { font: 500 12px/1 var(--mono); letter-spacing: 0; color: var(--gray); }
.g-pick b { margin-top: 18px; font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.g-pick span { font-size: 15px; line-height: 1.45; color: var(--past); }
.g-pick em { margin-top: 10px; font: normal 500 12px/1.4 var(--mono); letter-spacing: 0; }
.g-pick.to::after { content: "→"; }
.g-pick.to:hover::after { transform: translateX(3px); }
.g-hand { margin: clamp(56px, 7vw, 96px) var(--pad) 0; padding: clamp(28px, 4.4vw, 56px); border-radius: 24px; background: var(--black); color: var(--white); }
.g-hand h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.g-hand > p { max-width: 36rem; margin: 14px 0 0; color: #b5b5b5; line-height: 1.55; }
.g-hand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.g-prompt { display: grid; align-content: start; gap: 12px; padding: 22px; border: 1px solid #2c2c2c; border-radius: 16px; }
.g-prompt h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.g-prompt p { margin: 0; font-size: 15px; line-height: 1.5; color: #b5b5b5; }
.g-prompt > a { width: fit-content; font-size: 14px; color: #b5b5b5; text-decoration: underline; text-underline-offset: 3px; }
.g-prompt > a:hover { color: var(--white); }

.g-code { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 0; padding: 12px 12px 12px 16px; border-radius: 12px; background: #f4f4f4; }
.g-code code { flex: 1; min-width: 0; padding: 4px 0; font: 500 13.5px/1.6 var(--mono); letter-spacing: 0; white-space: pre; overflow-x: auto; }
.g-code code.one { white-space: pre-wrap; overflow-wrap: anywhere; }
.g-copy { flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--black); border-radius: 999px; background: var(--white); color: var(--black); font: 600 13px/1 inherit; font-family: inherit; letter-spacing: -0.01em; cursor: pointer; transition: background .2s, color .2s; }
.g-copy:hover, .g-copy.done { background: var(--black); color: var(--white); }
html:not(.js) .g-copy { display: none; }
.g-hand .g-code { margin: 0; background: #1b1b1b; }
.g-hand .g-copy { border-color: var(--white); background: var(--black); color: var(--white); }
.g-hand .g-copy:hover, .g-hand .g-copy.done { background: var(--white); color: var(--black); }

.g-track { padding-block: clamp(96px, 12vw, 160px) 0; }
.g-track + .g-track { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.g-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); align-items: end; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.g-head h2 { margin: 14px 0 0; font-size: clamp(44px, 6.6vw, 108px); font-weight: 800; line-height: 0.92; letter-spacing: -0.065em; }
.g-head p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--past); }
.g-logo { display: block; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 14px; object-fit: contain; }
.g-needs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.g-needs li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; }

.g-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.g-step { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 400px); gap: 0 clamp(24px, 4vw, 64px); padding: 32px 0; border-top: 1px solid var(--line); counter-increment: step; }
.g-step::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--black); border-radius: 50%; font: 600 15px/1 var(--mono); letter-spacing: 0; }
.g-body { max-width: 40rem; }
.g-step > .g-body:last-child { grid-column: 2 / -1; }
.g-body h3 { margin: 4px 0 10px; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.035em; }
.g-body p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: #222; }
.g-body b, .g-trouble b, .g-callout b { font-weight: 650; color: var(--black); }
.g-body a:not(.g-btn), .g-trouble a, .g-callout a, .g-help a, .g-other a { text-decoration: underline; text-underline-offset: 3px; }
.g-note { font-size: 14px !important; color: var(--past) !important; }
.g-list { margin: 0 0 12px; padding-left: 1.2em; font-size: 16px; line-height: 1.65; }
.g-list li + li { margin-top: 6px; }
.guide kbd { display: inline-block; min-width: 1.6em; margin: 0 1px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; font: 500 13px/1.6 var(--mono); text-align: center; letter-spacing: 0; }
.guide :not(.g-code) > code { padding: 1px 6px; border-radius: 6px; background: #f2f2f2; font: 500 0.86em/1.5 var(--mono); letter-spacing: 0; overflow-wrap: anywhere; }
.g-btn { display: inline-flex; align-items: center; gap: 12px; height: 48px; margin: 6px 0 14px; padding: 0 22px; border: 1px solid var(--black); border-radius: 999px; background: var(--black); color: var(--white); font-size: 16px; font-weight: 600; transition: opacity .3s var(--ease); }
.g-btn::after { content: "→"; }
.g-btn.dl::after { content: "↓"; }
.g-btn.line { background: none; color: var(--black); }
.g-btn:hover { opacity: .7; }

.g-side { margin: 0; align-self: start; }
.g-dmg { display: block; width: 100%; height: auto; font-family: inherit; }
.mock { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .08); font-size: 13px; letter-spacing: -0.01em; }
.mock-bar { position: relative; display: flex; gap: 6px; align-items: center; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fafafa; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dcdcdc; }
.mock-bar span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--past); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid #f0f0f0; }
.mock-bar + .mock-row { border-top: 0; }
.mock-sec { margin: 0; padding: 14px 14px 4px; font-size: 11px; font-weight: 600; color: var(--gray); }
.mock .seg { display: inline-flex; padding: 2px; border-radius: 8px; background: #efefef; }
.mock .seg b { padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--past); white-space: nowrap; }
.mock .seg b.on { background: var(--white); color: var(--black); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.mock .pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--black); border-radius: 999px; font-size: 12px; font-weight: 600; }
.mock .pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--black); }
.mock .mbtn { padding: 4px 11px; border: 1px solid var(--black); border-radius: 7px; background: var(--black); color: var(--white); font-size: 12px; font-weight: 600; }
.mock .mbtn.line { background: none; color: var(--black); }
.mock-body { padding: 20px 18px 18px; }
.mock-body p { margin: 0; }
.mock-title { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.mock-label { margin-top: 14px !important; font-size: 11px; font-weight: 600; color: var(--gray); }
.mock-input { margin-top: 6px !important; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: 500 12px/1.4 var(--mono); letter-spacing: 0; }
.mock-check { position: relative; margin-top: 12px !important; padding-left: 24px; font-weight: 600; line-height: 1.4; }
.mock-check::before { content: ""; position: absolute; left: 0; top: 1px; width: 15px; height: 15px; border: 1.5px solid var(--black); border-radius: 4px; }
.mock-check.on::before { content: "✓"; display: grid; place-items: center; background: var(--black); color: var(--white); font-size: 10px; line-height: 1; }
.mock-check.sub { margin-top: 8px !important; margin-left: 14px; font-size: 12px; font-weight: 400; color: var(--past); }
.mock-submit { margin-top: 18px !important; padding: 10px; border-radius: 999px; background: var(--black); color: var(--white); text-align: center; font-weight: 600; }

.g-tabs, .g-agents { margin-top: 16px; }
.g-tablist, .g-chips { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.g-chips { margin-bottom: 2px; }
.g-tablist label, .g-chips label { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--gray); cursor: pointer; transition: color .2s, background .2s; }
.g-tablist label:hover, .g-chips label:hover { color: var(--black); }
#way-app:checked ~ .g-tablist [for="way-app"], #way-ask:checked ~ .g-tablist [for="way-ask"], #way-term:checked ~ .g-tablist [for="way-term"],
#ag-claude:checked ~ .g-chips [for="ag-claude"], #ag-codex:checked ~ .g-chips [for="ag-codex"], #ag-opencode:checked ~ .g-chips [for="ag-opencode"], #ag-omp:checked ~ .g-chips [for="ag-omp"] { background: var(--black); color: var(--white); }
.g-tabs > input:focus-visible ~ .g-tablist, .g-agents > input:focus-visible ~ .g-chips { outline: 1.5px solid var(--black); outline-offset: 2px; }
.g-panel { display: none; padding-top: 18px; }
#way-app:checked ~ [data-way="app"], #way-ask:checked ~ [data-way="ask"], #way-term:checked ~ [data-way="term"] { display: block; }
.g-agents > .g-code { display: none; }
#ag-claude:checked ~ [data-agent="claude"], #ag-codex:checked ~ [data-agent="codex"], #ag-opencode:checked ~ [data-agent="opencode"], #ag-omp:checked ~ [data-agent="omp"] { display: flex; }

.g-callout { max-width: 52rem; margin-bottom: clamp(40px, 5vw, 64px); padding: 24px 26px; border: 1px solid var(--black); border-radius: 18px; }
.g-callout p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; color: #222; }
.g-callout .g-code { margin-top: 4px; }
.g-part { margin: clamp(48px, 6vw, 80px) 0 16px; font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.05; letter-spacing: -0.05em; }
.g-callout + .g-part { margin-top: 0; }
.g-part small { display: block; margin-bottom: 10px; }
.g-fields { margin: 0; border-bottom: 1px solid var(--line); }
.g-fields > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.g-fields dt { font-size: 13px; color: var(--gray); }
.g-fields dd { margin: 0; font-weight: 600; }
.g-fields dd .g-code { margin: 0; }
.g-fields .wide { grid-template-columns: 1fr; gap: 8px; }
.g-fields .dim { font-weight: 400; color: var(--gray); }

.g-trouble { max-width: 52rem; margin: 40px 0 0 calc(56px + clamp(24px, 4vw, 64px)); }
.g-trouble h3, .g-other h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.g-trouble details { border-top: 1px solid var(--line); }
.g-trouble details:last-child { border-bottom: 1px solid var(--line); }
.g-trouble summary { position: relative; display: block; padding: 14px 32px 14px 0; font-weight: 600; cursor: pointer; list-style: none; }
.g-trouble summary::-webkit-details-marker { display: none; }
.g-trouble summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-weight: 400; transition: transform .3s var(--ease); }
.g-trouble details[open] summary::after { transform: rotate(45deg); }
.g-trouble details p { margin: 0 0 16px; font-size: 15px; line-height: 1.65; color: var(--past); }
.g-other { max-width: 52rem; margin: 48px 0 0 calc(56px + clamp(24px, 4vw, 64px)); padding: 22px 24px; border-radius: 16px; background: #f6f6f6; }
.g-other p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--past); }

.g-help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: 16px 32px; margin-top: clamp(96px, 12vw, 160px); padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.g-help h2 { margin: 0; font-size: clamp(32px, 4vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.g-help p { grid-column: 1; margin: 0; font-size: 17px; line-height: 1.55; color: var(--past); }
.g-help ul { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; }
.g-help li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; }
.g-help li span { font-weight: 400; font-size: 14px; color: var(--gray); }
.guide + .foot { border-top: 0; }

/* topic pages: agent memory and the .gram file */
.m-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.m-grid li { padding: 26px 0 28px; border-top: 1px solid var(--line); }
.m-grid h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -0.035em; }
.m-grid p { margin: 0; font-size: 16px; line-height: 1.65; color: #222; }
.m-grid a, .m-more a { text-decoration: underline; text-underline-offset: 3px; }
.m-more { margin: 28px 0 0; font-size: 16px; font-weight: 600; }
.m-faq { margin-left: 0; }

@media (max-width: 820px) {
  .guide { padding-top: 120px; }
  .g-picks, .g-hand-grid, .g-head, .g-help { grid-template-columns: 1fr; }
  .g-help ul { grid-column: 1; grid-row: auto; }
  .g-step { grid-template-columns: 44px minmax(0, 1fr); }
  .g-step > .g-side { grid-column: 2; margin-top: 18px; }
  .g-trouble, .g-other { margin-left: 0; }
  .g-fields > div { grid-template-columns: 1fr; gap: 6px; }
  .mock-row > span:first-child { white-space: nowrap; }
  .m-grid { grid-template-columns: 1fr; }
}

/* home: the rules and the one-sentence setup */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --angle: 360deg; } }

.rules { padding: clamp(96px, 12vw, 160px) var(--pad); border-top: 1px solid var(--line); }
.rules-title, .start-title { margin: 0; font-size: clamp(56px, 8vw, 128px); font-weight: 800; line-height: 0.92; letter-spacing: -0.065em; }
.rules-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; }
.rules-grid li { display: grid; align-content: start; gap: 12px; padding-top: 20px; border-top: 2px solid var(--black); }
.rules-n { font: 500 12px/1 var(--mono); color: var(--gray); letter-spacing: 0; }
.rules-grid b { font-size: clamp(22px, 2vw, 28px); font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
.rules-grid p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--past); }
.rules-note { max-width: 48rem; margin: clamp(40px, 5vw, 64px) 0 0; font-size: 14px; line-height: 1.6; color: var(--gray); }
.rules-note a { color: var(--black); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.start { padding: clamp(96px, 12vw, 160px) var(--pad); border-top: 1px solid var(--line); }
.start-sub { max-width: 36rem; margin: 24px 0 0; font-size: 18px; line-height: 1.55; color: var(--past); }
.start-code { position: relative; max-width: 920px; margin: 36px 0 0; padding: 18px 18px 18px 24px; border: 1.5px solid transparent; border-radius: 18px; color: var(--white); background: linear-gradient(var(--black), var(--black)) padding-box, conic-gradient(from var(--angle), #0a0a0a, #0a0a0a 55%, #8a8a8a 70%, #fff 78%, #8a8a8a 86%, #0a0a0a) border-box; animation: spin 4s linear infinite; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); }
.start-code code { font-size: clamp(14px, 1.4vw, 18px); }
.start-code .g-copy { border-color: var(--white); background: var(--black); color: var(--white); }
.start-code .g-copy:hover, .start-code .g-copy.done { background: var(--white); color: var(--black); }
.start-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }

/* Sections that enter the screen play their entrance once, on a clock rather than tied to scrolling. */
.js .pop-in { opacity: 0; transform: translateY(40px) scale(.97); filter: blur(6px); transition: opacity .9s var(--ease), transform 1s var(--spring), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .pop-in.in { opacity: 1; transform: none; filter: none; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }

@media (max-width: 820px) {
  .rules-grid { grid-template-columns: 1fr; }
}

/* reveal */
.js .rise { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .tl-at { gap: 4px; }
  .tl-at p { min-width: 6.5em; }
  .hero-rev { top: 20%; }
  .nav { gap: 20px; }
  .get { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .doc { padding-top: 120px; }
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { padding: 4px 0; border: 0; }
  .doc tr { padding: 10px 0; border-top: 1px solid var(--line); }
}
@media (max-width: 400px) {
  .nav { gap: 12px; }
  .nav .nav-btn { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; transition-delay: 0s !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
