@font-face { font-family: "Geist"; src: url(fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

/* Night ground, one violet accent, and rsnap's own Dusk gradient as the
   one big color field (the hero's backdrop is the product's backdrop). */
:root {
  --bg: #111116;
  --raise: #1A1A21;
  --raise-2: #23232C;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #F2F2F6;
  --muted: #A3A4B1;
  --faint: #7C7D8A;
  --accent: #9B8CFF;
  --on-accent: #120F2A;
  --dusk-a: #8360C3;
  --dusk-b: #2EBF91;
  --red: #FF453A;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Kantumruy Pro", "Khmer Sangam MN", sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, monospace;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; scrollbar-color: var(--raise-2) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
::selection { background: color-mix(in oklab, var(--accent) 45%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 7vw, 92px); line-height: 1.0; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.06; font-weight: 680; letter-spacing: -0.03em; }
h3 { font-size: 19px; font-weight: 620; letter-spacing: -0.01em; }
.paste { color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 36em; margin: 26px auto 34px; }
.section-lead { font-size: 17px; color: var(--muted); max-width: 34em; margin: 14px 0 0; }
.facts { margin: 20px 0 0; font: 400 13px/1.5 var(--mono); color: var(--faint); }
kbd { display: inline-block; min-width: 1.7em; padding: 0.05em 0.38em; margin: 0 0.06em; font: 600 0.82em/1.5 var(--sans); text-align: center; color: var(--text); background: var(--raise-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; vertical-align: 0.06em; }
code { font: 400 0.86em/1.4 var(--mono); background: var(--raise-2); padding: 0.1em 0.35em; border-radius: 4px; }
.num { font-family: var(--mono); font-size: 0.92em; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 600 15.5px/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: transform 150ms var(--out), filter 150ms ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.btn-ghost { background: var(--raise); color: var(--text); border-color: var(--line-2); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-big { height: 58px; padding: 0 34px; font-size: 18px; border-radius: 12px; }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---- Bar ---- */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in oklab, var(--bg) 84%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 680; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { border-radius: 7px; }
nav { display: flex; align-items: center; gap: 24px; font-size: 14.5px; }
nav a:not(.btn) { color: var(--muted); text-decoration: none; }
nav a:not(.btn):hover { color: var(--text); }

/* ---- Hero: the shot sits on the product's own backdrop ---- */
.hero { padding: 84px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 360px -10% -10%; background: linear-gradient(115deg, var(--dusk-a), var(--dusk-b)); opacity: 0.16; filter: blur(80px); pointer-events: none; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stage { position: relative; margin: 64px auto 0; }
.draw { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); cursor: crosshair; touch-action: none; }
.draw canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage figcaption { margin-top: 16px; color: var(--faint); font-size: 14px; }

/* ---- Sections ---- */
.section { padding: 120px 0; }
.tools { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.tools li { display: grid; grid-template-columns: 28px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.tools svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tools b { font-weight: 620; font-size: 16.5px; }
.tools kbd { justify-self: end; }
.tools span { grid-column: 2 / -1; color: var(--muted); font-size: 15px; }

.backdrops { padding-bottom: 80px; }
.strip { margin-top: 48px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 20px; padding: 0 max(28px, calc((100vw - 1120px) / 2 + 28px)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { border-radius: 14px; }
.strip figcaption { margin-top: 10px; color: var(--faint); font-size: 14px; }

.editor-shot { margin-top: 48px; border-radius: 16px; border: 1px solid var(--line-2); }

.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.sheet { margin: 0; border-top: 1px solid var(--line); }
.sheet > div { display: grid; grid-template-columns: 8em 1fr; gap: 22px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sheet dt { font-weight: 620; }
.sheet dd { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.steps .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; box-shadow: 0 0 0 3px #fff; margin-bottom: 18px; }
.steps p { color: var(--muted); margin: 8px 0 0; font-size: 15.5px; }
.closing { margin-top: 80px; text-align: center; }
.alt { color: var(--muted); max-width: 32em; margin: 0 auto 20px; font-size: 15.5px; }

/* ---- Command block: scrolls inside, never widens the page ---- */
.cmd { display: flex; align-items: stretch; min-width: 0; max-width: 100%; margin-top: 16px; background: var(--raise); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; text-align: left; }
.cmd code { flex: 1; min-width: 0; padding: 14px 16px; background: none; border-radius: 0; font-size: 13.5px; line-height: 1.5; white-space: nowrap; overflow-x: auto; scrollbar-width: thin; user-select: all; }
.cmd code::before { content: "$ "; color: var(--faint); }
.copy { flex: none; width: 48px; display: grid; place-items: center; background: var(--raise-2); color: var(--muted); border: 0; border-left: 1px solid var(--line-2); cursor: pointer; }
.copy:hover { color: var(--text); }
.copy svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy .i-ok { display: none; }
.copy.done { color: var(--dusk-b); }
.copy.done .i-copy { display: none; }
.copy.done .i-ok { display: block; }
.cmd-hero { max-width: 780px; margin: 0 auto; }
.cmd-hero + .facts { margin-top: 18px; }
.facts a { color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--faint); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media (max-width: 860px) {
  .split, .steps { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 88px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-extra { display: none; }
  .hero { padding-top: 48px; }
  .sheet > div { grid-template-columns: 1fr; gap: 4px; }
  .steps > li { min-width: 0; }
  .strip { grid-auto-columns: 72%; padding: 0 20px; }
}
