/* Anti-Larp · anti-larp.com */

:root {
  --bg: #0D0D0C;
  --bg-2: #131312;
  --bg-3: #1A1A18;
  --bg-4: #222220;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --text: #EDEBE6;
  --text-2: #A8A59F;
  --muted: #6F6C66;
  --white: #FAFAF7;
  --ok: #6BD49A;

  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 24px;
  --ease: cubic-bezier(.65, 0, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text-2);
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(250, 250, 247, .9); color: var(--bg); }
:focus-visible { outline: 1.5px solid rgba(250, 250, 247, .7); outline-offset: 2px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.display {
  margin: 0; color: var(--text);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 8.6vw, 116px); line-height: .94; letter-spacing: -0.02em;
}
.display-2 { font-size: clamp(44px, 6vw, 80px); line-height: .98; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

/* pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.pill svg { width: 15px; height: 15px; }
.pill:active { transform: scale(.98); }
.pill-sm { height: 34px; padding: 0 15px; font-size: 13.5px; }
.pill-light { background: var(--white); color: var(--bg); }
.pill-light:hover { background: #fff; }
.pill-dark { background: var(--bg-3); color: var(--text); border: 1px solid var(--line-2); }
.pill-dark:hover { background: var(--bg-4); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 12, .94);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 550; font-size: 15px; letter-spacing: -0.01em; }
.brand-mark { width: 19px; height: 19px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-menu { display: contents; }
.nav-note { display: none; }
.nav-toggle { display: none; }
/* who each button is for */
.who {
  display: inline-flex; align-items: center; align-self: stretch; margin: 0 2px 0 -4px; padding-right: 10px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  border-right: 1px solid currentColor; opacity: .55;
}
.pill-sm .who { margin-top: 9px; margin-bottom: 9px; }

/* ---------- 1 · hero ---------- */
.hero { position: relative; padding: 88px 0 0; }
.hero-lines {
  position: absolute; z-index: -1; left: 0; right: 0; top: -64px; height: 760px; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.045) 0 1px, transparent 1px 7px);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(60% 70% at 50% 0%, #000 30%, transparent 100%);
  animation: rise 2.6s var(--ease) both;
}
@keyframes rise { from { transform: translateY(70px); opacity: 0; } }
.hero-copy { text-align: center; max-width: 760px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 34px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.025);
  font-size: 13px; color: var(--text-2); transition: border-color .2s, color .2s;
}
.badge span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--white); color: var(--bg); }
.badge svg { width: 13px; height: 13px; transition: transform .2s; }
.badge:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.badge:hover svg { transform: translateX(2px); }
.lede { margin: 30px auto 0; max-width: 600px; font-size: 17.5px; line-height: 1.6; color: var(--text-2); }

/* tool */
.tool {
  margin-top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 490px) minmax(0, 1fr);
  grid-template-areas: "build preview" "code preview";
  background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4);
}
.tool-build { grid-area: build; padding: 22px 22px 20px; border-bottom: 1px solid var(--line); }
.tool-code { grid-area: code; display: flex; flex-direction: column; min-width: 0; background: #0F0F0E; }
.tool-preview { grid-area: preview; display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); padding: 18px; }

.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 28px; margin-bottom: 16px; }

/* proof stack */
.row { display: grid; grid-template-columns: 50px minmax(0, 1fr) 26px; align-items: center; gap: 6px; }
.row + .row { margin-top: 8px; }
.row.is-new { animation: rowIn .3s cubic-bezier(.2,.8,.2,1); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-4px); } }
.conj {
  justify-self: start; font-size: 14px; line-height: 1; color: var(--muted);
  padding: 4px 0;
}
button.conj { border-bottom: 1px dashed var(--line-2); transition: color .2s, border-color .2s; }
button.conj:hover { color: var(--text); border-color: var(--text-2); }
.field {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; height: 54px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 13px;
  transition: border-color .2s;
}
.field:hover, .field:focus-within { border-color: var(--line-2); }
.pick, .param { display: flex; align-items: center; min-width: 0; height: 100%; text-align: left; }
.pick { gap: 11px; padding: 0 10px 0 12px; border-radius: 12px 0 0 12px; }
.param {
  gap: 6px; padding: 0 12px 0 14px; border-left: 1px solid var(--line); border-radius: 0 12px 12px 0;
  font-family: var(--mono); font-size: 13px; color: var(--text); white-space: nowrap;
  min-width: 128px;
}
.param > svg { margin-left: auto; }
.pick:hover, .param:hover, .pick[aria-expanded="true"], .param[aria-expanded="true"] { background: rgba(255,255,255,.03); }
.glyph { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-4); color: var(--text); }
.glyph svg { width: 16px; height: 16px; }
.fav { display: block; width: 18px; height: 18px; border-radius: 4px; }
.glyph:has(.fav), .mi-g:has(.fav) { background: #F4F3EF; }
.pick-text { flex: 1; min-width: 0; }
.pick-name { display: block; color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-src { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 1px; }
.pick > svg, .param > svg { flex: none; width: 14px; height: 14px; color: var(--muted); }
.param .op { color: var(--muted); }
.rm { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s; }
.rm svg { width: 13px; height: 13px; }
.rm:hover { color: var(--text); background: rgba(255,255,255,.05); }
.rm[disabled] { visibility: hidden; }
.add {
  display: inline-flex; align-items: center; gap: 7px; margin: 10px 0 0 56px; height: 30px; padding: 0 10px 0 8px;
  border-radius: 8px; font-size: 13px; color: var(--text-2); transition: color .2s, background .2s;
}
.add svg { width: 14px; height: 14px; }
.add:hover { color: var(--text); background: rgba(255,255,255,.04); }
.add[disabled] { display: none; }


/* code */
.code-head { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 12px 0 10px; border-bottom: 1px solid var(--line); }
.code-tabs { display: flex; height: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs button { flex: none; position: relative; height: 100%; padding: 0 11px; font-family: var(--mono); font-size: 12px; color: var(--muted); transition: color .2s; }
.code-tabs button:hover { color: var(--text-2); }
.code-tabs button[aria-selected="true"] { color: var(--text); }
.code-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 1px; background: var(--text); }
.copy {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-2); border: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.copy svg { width: 13px; height: 13px; }
.copy:hover { color: var(--text); border-color: var(--line-2); }
.copy.done { color: var(--ok); border-color: rgba(107, 212, 154, .35); }
.code-body {
  flex: 1; margin: 0; padding: 16px 0 20px; min-height: 230px; overflow: auto;
  font-family: var(--mono); font-size: 12.25px; line-height: 1.8; color: #CFCCC5; counter-reset: ln; tab-size: 2;
}
.code-body code { display: block; min-width: max-content; }
.ln { display: block; padding-right: 20px; white-space: pre; transition: background .8s; }
.ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 40px; padding-right: 16px; text-align: right; color: #3D3B38; user-select: none; }
.ln.flash { background: rgba(255,255,255,.06); transition: none; }
.t-c { color: #5C5954; }
.t-k { color: #8F8B84; }
.t-s { color: #E6D3A8; }
.t-n { color: #F0AE7C; }
.t-p { color: #A8A59F; }
.t-f { color: #FAFAF7; }
.t-x { color: #5C5954; }

/* preview */
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 28px; margin-bottom: 14px; }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px;
  font-size: 12.5px; color: var(--text-2); transition: color .2s, background .2s;
}
.ghost-btn svg { width: 13px; height: 13px; }
.ghost-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.ghost-btn[hidden], .pv-hint[hidden] { display: none; }
.pv-hint { font-size: 12.5px; color: var(--muted); }
.stage { flex: 1; display: flex; min-height: 540px; }
.scene { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.win { flex: 1; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.win-bar { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; height: 36px; padding: 0 12px; background: #F3F2EF; border-bottom: 1px solid #E6E4DF; }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 9px; height: 9px; border-radius: 50%; background: #D9D6D0; }
.win-url { justify-self: center; display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: #6B6862; }
.win-url svg { width: 11px; height: 11px; }

/* the veil: the real site, blurred, with an Anti-Larp check on top */
.area { position: relative; flex: 1; overflow: hidden; min-height: 0; }
.veil { position: absolute; inset: 0; z-index: 2; background: rgba(248, 248, 246, .42); transition: opacity .8s ease; }
.scene.open .veil { opacity: 0; pointer-events: none; }
.scene .site, .scene .note-doc { filter: blur(9px) saturate(.8); transition: filter .8s ease; }
.scene.open .site, .scene.open .note-doc { filter: blur(0) saturate(1); }

.gate {
  position: absolute; z-index: 3; left: 50%; top: 50%;
  width: min(390px, calc(100% - 32px)); max-height: calc(100% - 24px); overflow: auto;
  transform: translate(-50%, -50%);
  font-family: var(--sans); color: #1d1d1c; text-align: left;
  transition: opacity .35s, transform .5s cubic-bezier(.2,.8,.2,1);
}
.scene.open .gate { opacity: 0; transform: translate(-50%, -47%); pointer-events: none; }
.gate-title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: #141413; }
.gate-sub { margin: 6px 0 16px; font-size: 13.5px; color: #55534f; }
.gk { background: #FAFAFA; border: 1px solid #D3D3D0; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.gate-list { list-style: none; margin: 0; padding: 2px 14px; }
.gate-list li {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 11px; align-items: center;
  padding: 11px 0; font-size: 13.5px; color: #1d1d1c; line-height: 1.35;
}
.gate-list li + li { border-top: 1px solid #E7E7E4; }
.gl-src { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: #8a8884; white-space: nowrap; transition: color .3s; }
.gl-src .fav { width: 14px; height: 14px; border-radius: 3px; }
.gl-src svg { width: 13px; height: 13px; }
.st {
  width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid #B5B5B1; background: #fff;
  display: grid; place-items: center; color: #fff; transition: background .25s, border-color .25s, border-radius .25s;
}
.st svg { width: 12px; height: 12px; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s cubic-bezier(.3,1.5,.5,1); }
.gate-list li.run .st { border-radius: 50%; border-color: #E2E2DF; border-top-color: #1d1d1c; background: transparent; animation: spin .8s linear infinite; }
.gate-list li.run .gl-src { color: #55534f; }
.gate-list li.ok .st { background: #1A7F37; border-color: #1A7F37; }
.gate-list li.ok .st svg { opacity: 1; transform: none; }
.gate-list li.ok .gl-src { color: #1A7F37; }
.gate-list li.skip { opacity: .45; }
@keyframes spin { to { transform: rotate(360deg); } }
.gk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 14px; border-top: 1px solid #E7E7E4; }
.gate-btn {
  height: 34px; padding: 0 14px; border-radius: 5px; background: #1d1d1c; color: #fff;
  font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .2s;
}
.gate-btn:hover { background: #000; }
.gate-btn[disabled] { background: #45443f; cursor: default; }
.gk-brand { display: flex; align-items: center; gap: 7px; color: #1d1d1c; }
.gk-brand svg { width: 22px; height: 22px; flex: none; }
.gk-brand span { display: flex; flex-direction: column; line-height: 1.25; }
.gk-brand b { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.gk-brand small { font-size: 9.5px; color: #8a8884; white-space: nowrap; }
.gate-fine { margin: 12px 0 0; font-size: 11.5px; line-height: 1.5; color: #77746f; }

.pass {
  position: absolute; z-index: 4; left: 50%; bottom: 14px;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 7px; border-radius: 999px;
  background: rgba(13,13,12,.92); color: var(--text); font-size: 12px; white-space: nowrap;
  transition: opacity .4s, transform .6s cubic-bezier(.2,.8,.2,1);
}
.pass i { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: var(--bg); display: grid; place-items: center; }
.pass i svg { width: 10px; height: 10px; }
.scene.open .pass { opacity: 1; transform: translate(-50%, 0); transition-delay: .9s; }

/* mini site */
.site { position: absolute; inset: 0; padding: 26px 28px; background: #fff; color: #1b1b1a; font-family: var(--sans); overflow: hidden; }
.s-nav { display: flex; align-items: center; gap: 18px; font-size: 12px; color: #77746e; }
.s-logo { display: flex; align-items: center; gap: 7px; margin-right: auto; font-weight: 600; color: #1b1b1a; font-size: 13px; }
.s-logo i { width: 12px; height: 12px; border-radius: 3px; background: var(--acc); }
.s-hero { margin: 44px 0 28px; }
.s-tag { font-size: 11px; font-weight: 500; color: var(--acc); }
.s-hero h4 { margin: 8px 0 8px; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.01em; color: #121211; }
.s-hero p { margin: 0; font-size: 13.5px; color: #6b6862; max-width: 380px; }
.s-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.s-cards div { border: 1px solid #ecebe7; border-radius: 10px; padding: 11px 12px; min-width: 0; }
.s-cards span { display: block; font-size: 10.5px; color: #8f8c86; }
.s-cards b { display: block; margin-top: 3px; font-size: 13px; font-weight: 550; color: #1b1b1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #f0efeb; font-size: 12.5px; color: #33322f; }
.s-list span { color: #8f8c86; white-space: nowrap; }


/* ---------- sections ---------- */
.section { padding: 168px 0 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.sec-sub { margin: 22px auto 0; max-width: 520px; font-size: 17px; color: var(--text-2); }

/* ---------- 2 · notes ---------- */
.notes {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  max-width: var(--wrap); margin: 0 auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
}
.composer { padding: 28px; display: flex; flex-direction: column; }
.nt-editor {
  margin-bottom: 24px; padding: 14px 16px 12px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px;
  cursor: text; transition: border-color .2s, box-shadow .2s;
}
.nt-editor:hover { border-color: rgba(255,255,255,.24); }
.nt-editor:focus-within { border-color: rgba(255,255,255,.42); box-shadow: 0 0 0 4px rgba(255,255,255,.05); }
.nt-hint { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; font-size: 12.5px; color: var(--text-2); }
.nt-hint svg { width: 13px; height: 13px; flex: none; }
.nt-editor:focus-within .nt-hint { color: var(--muted); }
.nt-title {
  display: block; width: 100%; border: 0; outline: 0; background: transparent; padding: 0; color: var(--text);
  font-family: var(--serif); font-size: 28px; line-height: 1.15; letter-spacing: -0.01em;
}
.nt-body {
  display: block; width: 100%; margin-top: 10px; border: 0; outline: 0; background: transparent; padding: 0; resize: none;
  font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--text-2); min-height: 92px; overflow: hidden;
}
.stack-compact .param { min-width: 0; }
.nt-title:focus, .nt-body:focus { outline: none; }
.composer > .eyebrow { margin-bottom: 12px; }
.nt-foot { margin-top: auto; padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.switch i { position: relative; width: 28px; height: 16px; border-radius: 999px; background: var(--bg-4); border: 1px solid var(--line-2); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--text-2); transition: transform .25s cubic-bezier(.3,1.4,.5,1), background .2s; }
.switch[aria-checked="true"] i { background: var(--white); border-color: var(--white); }
.switch[aria-checked="true"] i::after { transform: translateX(12px); background: var(--bg); }
.switch:hover { color: var(--text); }
.sealed { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); animation: rowIn .3s cubic-bezier(.2,.8,.2,1); }
.sealed[hidden] { display: none; }
.sealed code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.recipient { display: flex; flex-direction: column; padding: 18px; border-left: 1px solid var(--line); background: #0F0F0E; min-width: 0; }
.recipient .eyebrow { text-transform: none; letter-spacing: 0; font-size: 11.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-note { min-height: 440px; }
.paper { flex: 1; display: flex; border-radius: 12px; overflow: hidden; background: #FBFAF7; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.note-doc { position: absolute; inset: 0; padding: 30px 26px; color: #1b1b1a; overflow: auto; }
.nd-k { font-family: var(--mono); font-size: 10.5px; color: #8f8c86; }
.note-doc h4 { margin: 10px 0 14px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; color: #121211; word-wrap: break-word; }
.nd-body { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: #45433f; white-space: pre-wrap; word-break: break-word; }
.nd-burn { margin-top: 22px; padding-top: 14px; border-top: 1px solid #ecebe7; font-size: 12px; color: #8f8c86; }

/* ---------- 3 · how: four cards, each with a small picture ---------- */
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hw { padding: 18px 18px 26px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.hw-n { display: block; margin: 22px 6px 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.hw h3 { margin: 0 6px 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
.hw p { margin: 0 6px; max-width: 54ch; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.hv {
  height: 176px; display: grid; place-items: center; border-radius: 13px; overflow: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 16px 16px; background-position: 8px 8px;
}

/* 01 padlock */
.hv-lock { width: 280px; display: flex; flex-direction: column; gap: 8px; }
.hv-url {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; margin-bottom: 4px;
  border-radius: 10px; background: #F4F3EF; color: #1d1d1c; font-family: var(--mono); font-size: 12px;
}
.hv-url svg { width: 12px; height: 12px; color: #1A7F37; }
.hv-line { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.hv-line i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.hv-line i svg { width: 10px; height: 10px; }
.hv-line.ok i { background: var(--ok); color: var(--bg); }
.hv-line.no { color: var(--muted); }
.hv-line.no i { border: 1px solid var(--line-2); color: var(--muted); }

/* 02 split key */
.hv-key { width: 300px; }
.hv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hv-split span {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px;
  font-family: var(--mono); font-size: 11.5px; border-radius: 10px;
}
.hv-split span svg { width: 13px; height: 13px; }
.hv-split span:first-child { background: var(--white); color: var(--bg); border-radius: 10px 4px 4px 10px; }
.hv-split span:last-child { background: var(--bg-4); color: var(--text); border: 1px solid var(--line-2); border-radius: 4px 10px 10px 4px; }
.hv-sees { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.hv-sees span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.hv-sees code { font-family: var(--mono); font-size: 12px; color: var(--text-2); letter-spacing: .02em; }

/* 03 one fact */
.hv-fact { display: flex; align-items: center; gap: 14px; }
.hv-page { width: 150px; padding: 6px 10px; border-radius: 10px; background: #F4F3EF; color: #1d1d1c; }
.hv-page div { display: flex; align-items: center; justify-content: space-between; height: 30px; font-size: 11.5px; }
.hv-page div + div { border-top: 1px solid #E6E4DF; }
.hv-page span { color: #9a978f; }
.hv-page i { width: 38px; height: 9px; border-radius: 2px; background: #DEDBD4; }
.hv-page .claim { margin: 0 -6px; padding: 0 6px; border-radius: 6px; border-top-color: transparent; background: rgba(26,127,55,.1); }
.hv-page .claim + div { border-top-color: transparent; }
.hv-page .claim span { color: #1d1d1c; }
.hv-page .claim b { color: #1A7F37; font-weight: 600; }
.hv-arrow { width: 16px; height: 16px; color: var(--muted); flex: none; }
.hv-proof {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 11px;
  background: var(--bg-3); border: 1px solid rgba(107,212,154,.38);
}
.hv-proof > i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--bg); flex: none; }
.hv-proof > i svg { width: 11px; height: 11px; }
.hv-proof b { display: block; font-size: 12.5px; font-weight: 500; color: var(--text); white-space: nowrap; }
.hv-proof small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10px; color: var(--muted); white-space: nowrap; }

/* 04 any site */
.hv-any { display: grid; grid-template-columns: repeat(5, 40px); gap: 10px; justify-content: center; }
.as-tile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #F4F3EF; color: var(--bg); }
.as-tile .fav { width: 20px; height: 20px; }
.as-tile svg { width: 18px; height: 18px; }
.as-any {
  order: 1; grid-column: 1 / -1; justify-self: center; margin-top: 4px;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-2);
}

/* faq */
.faq { max-width: 760px; margin: 144px auto 0; }
.faq-title { margin: 0 0 32px; text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 52px); line-height: 1; color: var(--text); letter-spacing: -0.015em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 2px; font-size: 16px; font-weight: 500; color: var(--text); letter-spacing: -0.01em;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  color: var(--muted); transition: transform .25s var(--ease), color .2s;
}
.faq summary:hover::after { color: var(--text); }
.faq details[open]:not(.closing) summary::after { transform: rotate(45deg); color: var(--text); }
/* spacing lives in padding so the height animation includes it */
.faq details p { margin: -4px 0 0; padding: 0 2px 22px; max-width: 64ch; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.faq details p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.faq details p a:hover { text-decoration-color: var(--text); }

/* footer */
.foot { margin-top: 168px; border-top: 1px solid var(--line); }
.foot-inner { height: 88px; display: flex; align-items: center; gap: 28px; }
.foot .brand { font-size: 14px; }
.foot-links { display: flex; gap: 22px; margin-left: auto; }
.foot-links a, .foot-c { font-size: 13px; color: var(--muted); transition: color .2s; }
.foot-links a:hover { color: var(--text); }

/* menu */
.menu {
  position: fixed; z-index: 100; width: 340px; max-height: 420px;
  display: flex; flex-direction: column;
  background: #1A1A18; color: var(--text);
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.85);
  animation: menuIn .14s ease-out;
}
.menu[hidden] { display: none; }
.menu.menu-sm { width: auto; min-width: 170px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } }
.menu-search { flex: none; display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.menu-search svg { width: 14px; height: 14px; color: var(--muted); }
.menu-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--text); }
.menu-search input::placeholder { color: var(--muted); }
.menu-scroll { overflow: auto; padding: 6px; overscroll-behavior: contain; }
.menu-group { padding: 10px 8px 5px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.menu-item { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; text-align: left; font-size: 13.5px; color: var(--text-2); }
.menu-item .mi-g { width: 26px; height: 26px; border-radius: 7px; background: var(--bg-4); color: var(--text); display: grid; place-items: center; }
.menu-item .mi-g svg { width: 14px; height: 14px; }
.menu-item .mi-g .fav { width: 16px; height: 16px; }
.menu-item .mi-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item .mi-src { font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.menu-item.active { background: rgba(255,255,255,.05); color: var(--text); }
.menu-item[aria-selected="true"] { color: var(--text); }
.menu-item[aria-disabled="true"] { opacity: .35; cursor: default; }
.menu-item.simple { grid-template-columns: minmax(0, 1fr) 14px; font-family: var(--mono); font-size: 13px; padding: 8px 10px; }
.menu-item.simple svg { width: 13px; height: 13px; color: var(--text); }
.menu-empty { padding: 16px 10px; font-size: 13px; color: var(--muted); }
.menu-num { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-top: 1px solid var(--line); }
.menu-num .op { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.menu-num input {
  flex: 1; min-width: 0; height: 32px; padding: 0 9px; border-radius: 8px; outline: none;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--text);
  font-family: var(--mono); font-size: 13px; -moz-appearance: textfield; appearance: textfield;
}
.menu-num input::-webkit-outer-spin-button, .menu-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.menu-num input::placeholder { color: var(--muted); }
.menu-num input:focus { border-color: rgba(255,255,255,.4); }
.menu-num input[aria-invalid="true"] { border-color: #E5534B; }
.menu-num button { flex: none; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--white); color: var(--bg); font-size: 12.5px; font-weight: 500; }
.menu-num-hint { margin: -2px 0 0; padding: 0 12px 10px; font-size: 11.5px; color: #E5534B; }
.menu-num-hint[hidden] { display: none; }
.menu-custom .mi-name small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-custom .mi-g { background: transparent; border: 1px dashed var(--line-2); color: var(--text-2); }

/* reveal */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 1s, transform 1s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .tool { grid-template-columns: minmax(0, 1fr); grid-template-areas: "build" "preview" "code"; }
  .tool-preview { border-left: 0; border-bottom: 1px solid var(--line); }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .recipient { border-left: 0; border-top: 1px solid var(--line); }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .nav-inner { height: 60px; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; width: 42px; height: 42px; margin: 0 -9px 0 auto; border-radius: 10px;
  }
  .nav-toggle i { display: block; width: 20px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease); }
  .nav.open .nav-toggle i:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.open .nav-toggle i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-menu {
    display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0;
    padding: 6px var(--gutter) 22px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.open .nav-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .3s var(--ease); }
  .nav.open { border-bottom-color: var(--line); }
  .nav-links { flex-direction: column; gap: 0; margin: 0; }
  .nav-links a { padding: 15px 2px; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 20px; }
  .nav-cta .pill { height: 50px; font-size: 15px; justify-content: flex-start; padding: 0 18px; }
  .nav-cta .pill-sm .who { margin-top: 14px; margin-bottom: 14px; font-size: 10px; }
  .nav-cta .pill-light { order: -1; }
  .nav-note { display: block; margin: 12px 2px 0; font-size: 12.5px; color: var(--muted); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 56px; }
  .badge { margin-bottom: 26px; }
  .lede { font-size: 16px; }
  .tool { margin-top: 48px; border-radius: 18px; }
  .tool-build { padding: 18px 14px 16px; }
  .tool-preview { padding: 12px; }
  .row { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 4px; }
  .field { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pick { height: 50px; border-radius: 12px 12px 0 0; }
  .param { height: 38px; border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
  .param > svg { margin-left: auto; }
  .add { margin-left: 44px; }
  .stage { min-height: 480px; }
  .site { padding: 22px 18px; }
  .s-nav span { display: none; }
  .s-hero { margin: 32px 0 22px; }
  .s-hero h4 { font-size: 34px; }
  .s-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-cards div:nth-child(3) { display: none; }
  .code-tabs button { padding: 0 8px; }
  .code-head { padding-right: 8px; }
  .copy { padding: 0 8px; }
  .copy span { display: none; }
  .rm { width: 32px; height: 32px; }
  .row { grid-template-columns: 40px minmax(0, 1fr) 32px; }
  .stage-note { min-height: 360px; }
  .hv { height: auto; padding: 26px 14px; }
  .hv-lock, .hv-key { width: 100%; max-width: 300px; }
  .hv-fact { flex-direction: column; gap: 8px; }
  .hv-arrow { transform: rotate(90deg); }
  .hv-any { grid-template-columns: repeat(5, 38px); gap: 8px; }
  .as-tile { width: 38px; height: 38px; }
  .gate-title { font-size: 19px; }
  .gate-list li { grid-template-columns: 20px minmax(0, 1fr); }
  .gate-list .gl-src { grid-column: 2; margin-top: -7px; }
  .gk-brand small { display: none; }
  .gate { width: calc(100% - 20px); overflow-x: hidden; }
  .gk-foot { padding: 10px 10px 10px 12px; gap: 8px; }
  .gate-btn { padding: 0 11px; font-size: 12.5px; }
  .gk-brand { gap: 5px; }
  .gk-brand svg { width: 18px; height: 18px; }
  .gk-brand b { font-size: 9.5px; }
  .section { padding-top: 96px; }
  .sec-head { margin-bottom: 44px; }
  .composer { padding: 20px 16px; }
  .hw { padding: 14px 14px 22px; }
  .faq { margin-top: 88px; }
  .faq summary { font-size: 15.5px; padding: 18px 2px; }
  .recipient { padding: 12px; }
  .foot { margin-top: 96px; }
  .foot-inner { height: auto; padding: 28px var(--gutter); flex-wrap: wrap; gap: 14px 22px; }
  .foot-links { margin-left: 0; order: 3; width: 100%; }
  .menu { width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
