/* doc2json: monochrome. Dark bands take after Linear (light from above, hairline borders, framed product window);
   light bands take after Tailscale (airy white, soft grey panels). No accent colour anywhere. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1E9F;
}

:root {
  --black: #000;
  --white: #fff;
  --ink-2: #5e5e5e;
  --panel: #f5f5f5;
  --line: #e8e8e8;
  --d-text-2: #a1a1a1;
  --d-line: rgba(255, 255, 255, 0.1);
  --d-raise: rgba(255, 255, 255, 0.035);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--black);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: 0.9em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* ---------- dark top ---------- */
.dark {
  background: radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0) 70%), var(--black);
  color: var(--white);
}
.mark-bg { fill: var(--white); }
.mark-fg { stroke: var(--black); }
.bar { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.brand-mark { width: 26px; height: 26px; }
.nav-link { font-size: 14px; color: var(--d-text-2); text-decoration: none; }
.nav-link:hover { color: var(--white); }

.hero { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px); text-align: center; }
.hero-title {
  font-size: clamp(56px, 12vw, 168px); line-height: 0.9; font-weight: 600; letter-spacing: -0.065em;
  background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, 0.45));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.brace { font-weight: 200; }
.lead { margin-top: 18px; font-size: clamp(17px, 1.8vw, 21px); color: var(--d-text-2); letter-spacing: -0.01em; }

/* the tool: drop on the left, JSON on the right */
.app {
  position: relative; margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  min-height: 400px; text-align: left;
  border: 1px solid var(--d-line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: 0 30px 100px -30px rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.app::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}
.drop { display: flex; padding: 12px; border-right: 1px solid var(--d-line); }
.drop-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 32px 20px; text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: 12px;
  transition: border-color 0.15s, background-color 0.15s;
}
.drop.is-over .drop-empty, .drop.is-over .drop-files { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }
.drop-icon { width: 30px; height: 30px; color: var(--white); margin-bottom: 8px; }
.drop-title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.drop-hint { font-size: 14px; color: var(--d-text-2); margin-bottom: 14px; }
.drop-files { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 4px; border: 1px solid transparent; border-radius: 12px; }
.drop-actions { display: flex; gap: 8px; margin-top: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: #e5e5e5; }
.btn-ghost { height: 32px; padding: 0 12px; font-size: 13.5px; border-color: var(--d-line); background: transparent; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); }

.file-list { display: grid; gap: 4px; }
.file {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; text-align: left;
  border: 1px solid transparent; border-radius: 9px; background: transparent;
}
button.file:hover { background: rgba(255, 255, 255, 0.05); }
.file[aria-current="true"] { background: rgba(255, 255, 255, 0.08); border-color: var(--d-line); }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-status { font-size: 12.5px; color: var(--d-text-2); white-space: nowrap; }
.file-status.is-busy::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%;
  background: var(--white); vertical-align: 1px; animation: pulse 1s ease-in-out infinite alternate;
}
@keyframes pulse { from { opacity: 0.25; } to { opacity: 1; } }

.out { display: flex; flex-direction: column; min-width: 0; }
.out-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 50px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--d-line);
  font: 400 13px var(--mono); color: var(--d-text-2);
}
.out-tools { display: flex; align-items: center; gap: 4px; }
.tag { font: 500 12px var(--sans); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--d-line); color: var(--white); margin-right: 4px; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--d-text-2); }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.icon-btn svg { width: 17px; height: 17px; }
.notice { margin: 14px 14px 0; padding: 10px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.07); font-size: 14px; }
.json { flex: 1; margin: 0; padding: 18px; font: 400 13px/1.75 var(--mono); color: #d4d4d4; overflow: auto; max-height: 520px; }
.json k { color: var(--white); }
.json s { text-decoration: none; color: #bdbdbd; }
.json n { color: #6f6f6f; }
.app-note { margin-top: 14px; font-size: 13px; color: var(--d-text-2); }

/* ---------- light ---------- */
.problem { padding-block: clamp(72px, 10vw, 140px) clamp(48px, 7vw, 88px); }
.giant { font-size: clamp(72px, 18vw, 240px); line-height: 0.82; font-weight: 650; letter-spacing: -0.07em; margin-left: -0.05em; }
.problem-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: end;
  margin-top: clamp(32px, 5vw, 56px);
}
.problem-lead { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -0.025em; font-weight: 500; max-width: 22em; }
.facts { display: grid; gap: 8px; }
.facts li { background: var(--panel); border-radius: 12px; padding: 14px 18px; font-weight: 500; }
.source { margin-top: 24px; font-size: 13px; color: var(--ink-2); }

.how { padding-block: 0 clamp(72px, 10vw, 120px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 14px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 28px;
  border-radius: 50%; background: var(--black); color: var(--white); font-size: 13px; font-weight: 600;
}
.steps h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin-top: 4px; color: var(--ink-2); }

.foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .drop { border-right: 0; border-bottom: 1px solid var(--d-line); }
  .json { max-height: 340px; }
  .problem-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
