/* ─────────────────────────────────────────────────────────────
   wisp — a product manual.
   paper, ink, one signal color. rules instead of boxes.
   ───────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --paper: #eceae4;
  --paper-2: #e2e0d9;
  --ink: #121212;
  --ink-2: #3a3936;
  --mute: #7a7871;
  --rule: #121212;
  --rule-soft: rgba(18, 18, 18, 0.14);
  --sig: #ff4d00;

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(16px, 2.2vw, 28px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--sig); color: #fff; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.01em; }
.nowrap { white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* A drawn key, like in a printed manual */
.k {
  display: inline-grid;
  place-items: center;
  min-width: 1.55em;
  height: 1.55em;
  padding: 0 0.35em;
  margin: 0 0.08em;
  border: 1px solid var(--ink);
  border-radius: 0.28em;
  box-shadow: 0 0.12em 0 var(--ink);
  font: 500 0.78em/1 var(--mono);
  vertical-align: 0.12em;
  background: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 46px;
  padding: 0 16px;
  border-radius: 2px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn span { margin-left: auto; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--sig); border-color: var(--sig); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.label { margin: 0; color: var(--mute); display: flex; gap: 10px; align-items: baseline; }
.num { color: var(--sig); font-weight: 700; }

/* ───────────── Top bar ───────────── */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 48px;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.bar-brand { display: flex; align-items: center; gap: 10px; height: 100%; font-weight: 700; font-size: 18px; letter-spacing: -0.04em; }
.bar-brand img { flex: none; }
/* Lowercase "wisp" has a descender; nudge it so its x-height centers on the mark. */
.bar-brand span { line-height: 1; transform: translateY(-1.5px); }
.bar-sound {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 0;
  border-left: 1px solid var(--rule-soft);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.bar-sound:hover { background: var(--ink); color: var(--paper); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq i { width: 2px; height: 3px; background: currentColor; }
.bar-sound[aria-pressed="true"] .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.bar-sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -0.3s; }
.bar-sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -0.6s; }
.bar-sound[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -0.15s; }
.bar-sound[aria-pressed="true"] .eq i { background: var(--sig); }
.bar-sound:hover .eq i { background: currentColor; }
@keyframes eq { from { height: 2px; } to { height: 11px; } }
.bar-mid { color: var(--mute); }
.bar-mid i { font-style: normal; color: var(--rule-soft); margin: 0 6px; }
.bar-nav { margin-left: auto; display: flex; align-items: stretch; height: 100%; }
.bar-nav a { display: grid; place-items: center; padding: 0 16px; border-left: 1px solid var(--rule-soft); transition: background 0.2s, color 0.2s; }
.bar-nav a:hover { background: var(--ink); color: var(--paper); }
.bar-nav .bar-dl { background: var(--ink); color: var(--paper); border-left-color: var(--ink); margin-right: calc(-1 * var(--pad)); padding: 0 22px; }
.bar-nav .bar-dl:hover { background: var(--sig); }

/* ───────────── Hero ───────────── */
.hero { border-bottom: 1px solid var(--rule); }
.hero-text {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  padding: var(--pad);
  padding-top: calc(var(--pad) * 1.2);
  border-right: 1px solid var(--rule);
}
.toc { list-style: none; margin: 22px 0 0; padding: 0; max-width: 360px; }
.toc a { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; color: var(--ink-2); transition: color 0.15s; }
.toc span { color: var(--mute); width: 22px; }
.toc i { flex: 1; border-bottom: 1px dotted var(--rule-soft); transform: translateY(-3px); }
.toc em { font-style: normal; color: var(--mute); }
.toc a:hover { color: var(--sig); }
.toc a:hover span, .toc a:hover em { color: var(--sig); }
.hero-title {
  margin: auto 0 0;
  padding-top: 60px;
  font-size: clamp(46px, 5.3vw, 92px);
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.05em;
}
.ln { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ln > span { display: inline-block; will-change: transform; }
.hero-sub { margin: 28px 0 32px; max-width: 30em; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; }

.hero-fig { position: relative; grid-column: 6 / span 7; margin: 0; min-height: min(78vh, 720px); background: var(--paper); }
.keys3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; touch-action: pan-y; }
.hero-fig figcaption { position: absolute; left: var(--pad); bottom: var(--pad); color: var(--mute); display: flex; gap: 14px; }
.hero-fig figcaption span { color: var(--ink); }
.hero-fig figcaption b { color: var(--sig); font-weight: 700; }
.corner { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); pointer-events: none; }
.corner.c-tl { top: var(--pad); left: var(--pad); border-top-width: 1px; border-left-width: 1px; }
.corner.c-tr { top: var(--pad); right: var(--pad); border-top-width: 1px; border-right-width: 1px; }
.corner.c-bl { bottom: calc(var(--pad) + 30px); left: var(--pad); border-bottom-width: 1px; border-left-width: 1px; }
.corner.c-br { bottom: var(--pad); right: var(--pad); border-bottom-width: 1px; border-right-width: 1px; }

.specs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--rule); }
.specs > div { padding: 18px var(--pad) 22px; border-right: 1px solid var(--rule-soft); }
.specs > div:last-child { border-right: 0; }
.specs dt { color: var(--mute); margin-bottom: 10px; }
.specs dd { margin: 0; font-size: 15px; color: var(--ink-2); }
.specs b { font-size: clamp(36px, 3.6vw, 56px); font-weight: 600; letter-spacing: -0.05em; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }

/* ───────────── Sections ───────────── */
.sec { border-bottom: 1px solid var(--rule); padding-bottom: clamp(56px, 7vw, 96px); }
.sec-head { padding: var(--pad); padding-bottom: clamp(36px, 5vw, 64px); align-items: start; row-gap: 20px; }
.sec-head .label { grid-column: 1 / span 3; padding-top: 0.9em; }
.sec-title {
  grid-column: 4 / span 6;
  margin: 0;
  font-size: clamp(36px, 4.4vw, 70px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.sec-title.big { grid-column: 4 / -1; font-size: clamp(48px, 8vw, 140px); line-height: 0.88; }
.sec-note { grid-column: 10 / -1; margin: 0; padding-top: 0.5em; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.split-line { overflow: clip; padding-bottom: 0.06em; margin-bottom: -0.06em; }

/* 01 · feed + columns */
.feed { border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); padding: 16px 0 18px; overflow: hidden; }
.feed-label { margin: 0 var(--pad) 12px; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--sig); animation: rec 1.4s steps(1) infinite; }
@keyframes rec { 50% { opacity: 0.2; } }
.feed-track { display: flex; gap: 10px; padding: 0 var(--pad); white-space: nowrap; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font: 13px/1.2 var(--mono);
  background: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip em { font-style: normal; color: var(--mute); font-size: 11px; }
.chip.is-new { background: var(--sig); border-color: var(--sig); color: #fff; }
.chip.is-new em { color: rgba(255, 255, 255, 0.8); }
.chip .sw { width: 12px; height: 12px; border: 1px solid var(--ink); }
.cols { margin-top: clamp(40px, 5vw, 64px); }
.col { grid-column: span 4; padding: 4px var(--pad) 0; border-left: 1px solid var(--rule-soft); }
.col:first-child { border-left: 0; }
.col h3 { margin: 0 0 14px; font-weight: 700; color: var(--ink); }
.col p { margin: 0; max-width: 26em; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* 02 · try it */
.try { border-top: 1px solid var(--rule-soft); }
.specimens { grid-column: 1 / span 7; border-right: 1px solid var(--rule-soft); }
.tag { margin: 0; padding: 14px var(--pad); color: var(--mute); border-bottom: 1px solid var(--rule-soft); display: flex; justify-content: space-between; }
.spec-list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.spec-list li {
  display: grid;
  grid-template-columns: 34px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
  transition: background 0.15s;
}
.spec-list li:hover { background: var(--paper-2); }
.spec-list li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 12px var(--mono); color: var(--mute); }
.s-type { font: 700 11.5px var(--mono); color: var(--sig); }
.s-val { font: 13.5px/1.4 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-copy { font: 12px var(--mono); padding: 7px 11px; border: 1px solid var(--ink); background: transparent; cursor: pointer; border-radius: 2px; color: var(--ink); }
.spec-list li:hover .s-copy { background: var(--ink); color: var(--paper); }
.spec-list li.is-copied .s-copy { background: var(--sig); border-color: var(--sig); color: #fff; }
.pad-wrap { grid-column: 8 / -1; display: flex; flex-direction: column; }
.pad-hint { color: var(--sig); }
.pad {
  flex: 1;
  min-height: 300px;
  margin: 0;
  padding: 18px var(--pad);
  border: 0;
  resize: none;
  outline: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 28px;
  background: repeating-linear-gradient(var(--paper) 0 27px, var(--rule-soft) 27px 28px);
  background-attachment: local;
}
.pad:focus { background-color: #f1efe9; box-shadow: inset 3px 0 0 var(--sig); }
.pad::placeholder { color: var(--mute); }
.open-wisp { margin: var(--pad); margin-top: 0; }

/* 03 · actions table */
.table { border-top: 1px solid var(--rule-soft); }
.tr { display: grid; grid-template-columns: 3fr 4.5fr 4.5fr; border-bottom: 1px solid var(--rule-soft); transition: background 0.15s; position: relative; }
.tr > * { padding: 18px var(--pad); margin: 0; }
.tr > * + * { border-left: 1px solid var(--rule-soft); }
.tr pre { font: 13.5px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--mute); }
.tr pre.out { color: var(--ink); }
.tr .act { font-weight: 700; font-size: 13.5px; }
.tr:not(.th):not(.tr-more):hover { background: var(--paper-2); }
.tr:not(.th):not(.tr-more):hover::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 4px; background: var(--sig); }
.tr:not(.th):not(.tr-more):hover .act { color: var(--sig); }
.th { color: var(--mute); }
.th > * { padding-top: 12px; padding-bottom: 12px; }
.tr-more { grid-template-columns: 3fr 9fr; color: var(--mute); }
.tr-more span:first-child { color: var(--ink); font-weight: 700; }

/* 04 · keymap */
.keymap { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-soft); }
.km { display: flex; flex-direction: column; justify-content: space-between; gap: 34px; min-height: 220px; padding: var(--pad); border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); transition: background 0.2s; }
.km:nth-child(3n) { border-right: 0; }
.km-keys { display: flex; gap: 8px; }
.km-keys b {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--ink);
  background: var(--paper);
  font: 500 22px/1 var(--sans);
  transition: transform 0.08s, box-shadow 0.08s, background 0.15s, color 0.15s;
}
.km-keys b.w { width: 86px; }
.km p { margin: 0; display: flex; gap: 14px; font-size: 18px; letter-spacing: -0.01em; }
.km p .mono { color: var(--mute); padding-top: 4px; }
.km.is-hit { background: var(--paper-2); }
.km.is-hit b { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); background: var(--sig); border-color: var(--sig); color: #fff; }

/* 05 · spec sheet */
.sheet { margin: 0; border-top: 1px solid var(--rule-soft); }
.sheet > div { display: grid; grid-template-columns: 3fr 9fr; border-bottom: 1px solid var(--rule-soft); }
.sheet dt, .sheet dd { margin: 0; padding: 16px var(--pad); font-size: 14px; }
.sheet dt { color: var(--mute); }
.sheet dd { border-left: 1px solid var(--rule-soft); }

/* 06 · install */
.install { border-top: 1px solid var(--rule-soft); }
.cmd { position: relative; grid-column: 1 / span 8; margin: var(--pad); padding: 28px 30px; background: var(--ink); color: var(--paper); border-radius: 2px; font-size: 15px; line-height: 2; }
.cmd p { margin: 0; }
.cmd .pr { color: var(--sig); margin-right: 10px; }
.cmd .ok { color: #9fe3a4; }
.copy-cmd { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border: 1px solid rgba(236, 234, 228, 0.4); background: transparent; color: var(--paper); cursor: pointer; border-radius: 2px; }
.copy-cmd:hover { background: var(--sig); border-color: var(--sig); }
.install-alt { grid-column: 9 / -1; padding: var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; border-left: 1px solid var(--rule-soft); }
.install-alt p { margin: 0; color: var(--ink-2); }

/* ───────────── Footer ───────────── */
.foot { overflow: hidden; }
.foot-big {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 28px var(--pad) 22px;
  user-select: none;
}
/* Each glyph is SVG text so its outline can be drawn in and traced like a pen plotter. */
.glyph { height: clamp(110px, 25vw, 400px); width: auto; overflow: visible; }
.glyph text { font: 700 400px var(--sans); }
.g-base { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.g-trace {
  fill: none;
  stroke: var(--sig);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 24 520;
  animation: trace 8s linear infinite;
  opacity: 0;
  transition: opacity 1.2s;
}
.glyph:nth-child(2) .g-trace { animation-duration: 11s; animation-direction: reverse; }
.foot-big.is-drawn .g-trace { opacity: 1; }
.glyph:hover .g-trace { animation-duration: 2.5s; }
@keyframes trace { to { stroke-dashoffset: -544; } }
.g-fill { fill: var(--sig); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px var(--pad) calc(env(safe-area-inset-bottom, 0px) + 18px); border-top: 1px solid var(--rule); color: var(--mute); }
.foot-row a { color: var(--ink); }
.foot-row a:hover { color: var(--sig); }

/* ───────────── "caught" ticket ───────────── */
.caught {
  position: fixed;
  z-index: 90;
  left: var(--pad);
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--pad));
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(460px, calc(100vw - 32px));
  padding: 12px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  box-shadow: 6px 6px 0 var(--sig);
  visibility: hidden;
}
.caught b { color: var(--sig); flex: none; }
.caught span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ───────────── Wisp, in the browser ───────────── */
.app { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.app[hidden] { display: none; }
.app-scrim { position: absolute; inset: 0; background: rgba(236, 234, 228, 0.55); backdrop-filter: blur(6px) grayscale(0.4); -webkit-backdrop-filter: blur(6px) grayscale(0.4); }
.panel {
  position: relative;
  width: min(760px, 100%);
  height: min(480px, calc(100svh - 32px));
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: #1c1c1c;
  color: #ededef;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  font: 13px/1.4 -apple-system, "SF Pro Text", var(--sans);
}
.panel .ico { width: 15px; height: 15px; color: #8b8b94; flex: none; }
.pk { display: inline-grid; place-items: center; min-width: 18px; height: 17px; padding: 0 5px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.12); background: #111113; color: #8b8b94; font: 500 10px/1 var(--sans); }
.p-search { height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #151515; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.p-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #ededef; font: 15px var(--sans); }
.p-input::placeholder { color: #55555c; }
.p-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px 1fr; }
.p-list { position: relative; overflow-y: auto; padding: 6px; border-right: 1px solid rgba(255, 255, 255, 0.06); scrollbar-width: none; }
.p-list::-webkit-scrollbar { display: none; }
.p-cursor { position: absolute; left: 6px; right: 6px; top: 6px; height: 48px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.06); pointer-events: none; }
.p-rows { position: relative; }
.p-row { height: 48px; margin-bottom: 1px; display: flex; align-items: center; gap: 10px; padding: 0 8px; border-radius: 8px; cursor: pointer; }
/* Deleting: erased left to right behind a soft edge (--cut is animated from JS) */
.p-row.is-dusting {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent var(--cut), #000 calc(var(--cut) + 25%));
  mask-image: linear-gradient(90deg, transparent var(--cut), #000 calc(var(--cut) + 25%));
}
.p-thumb { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 6px; background: #151515; border: 1px solid rgba(255, 255, 255, 0.06); color: #2ad4e4; font: 700 9.5px var(--mono); overflow: hidden; }
.p-thumb.plain { color: #8b8b94; }
.p-thumb .sw { width: 60%; height: 60%; border-radius: 3px; }
.p-meta { flex: 1; min-width: 0; }
.p-title { color: rgba(237, 237, 239, 0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-row.is-on .p-title { color: #fff; }
.p-sub { font-size: 11px; color: #8b8b94; white-space: nowrap; }
.p-sub b { font-weight: 400; color: #2ad4e4; }
.p-sub .pin { color: #ff8a4c; }
.p-num { font-size: 10.5px; color: #55555c; }
.p-row.is-on .p-num { display: none; }
.p-del { display: none; place-items: center; width: 26px; height: 24px; margin-right: 2px; flex: none; border: 0; border-radius: 6px; background: transparent; color: #8b8b94; cursor: pointer; transition: background 0.15s, color 0.15s; }
.p-del svg { width: 14px; height: 14px; }
.p-row.is-on .p-del { display: grid; }
.p-del:hover { background: rgba(255, 69, 58, 0.16); color: #ff5f57; }
.p-row .p-enter { display: none; }
.p-row.is-on .p-enter { display: inline-grid; }
.p-empty { padding: 30px 14px; text-align: center; color: #6e6e76; }
.p-preview { display: flex; flex-direction: column; min-width: 0; }
.p-code { flex: 1; overflow: auto; padding: 16px; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; color: #ededef; }
.p-code .swatch { height: 110px; border-radius: 10px; margin-bottom: 10px; border: 1px solid rgba(255, 255, 255, 0.08); }
.p-info { padding: 12px 16px 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); background: rgba(21, 21, 21, 0.5); font-size: 12px; }
.p-info h6 { margin: 0 0 6px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #8b8b94; }
.p-info div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.p-info span { color: #8b8b94; }
.p-foot { height: 38px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; background: #151515; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 12px; color: #8b8b94; }
.p-brand { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.p-brand img { border-radius: 4px; }
.p-brand em { font-style: normal; color: #55555c; }
.p-hints { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.p-hints b { color: #ededef; font-weight: 500; }
.p-hints i { width: 1px; height: 13px; background: rgba(255, 255, 255, 0.1); margin: 0 6px; }
.p-actions { position: absolute; right: 14px; bottom: 46px; width: 360px; max-height: 330px; display: flex; flex-direction: column; border-radius: 12px; background: #202022; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.7); overflow: hidden; }
.p-actions[hidden] { display: none; }
.pa-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8b8b94; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pa-list { overflow-y: auto; padding: 5px; scrollbar-width: none; }
.pa-item { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 7px; cursor: pointer; }
.pa-item b { font-weight: 500; white-space: nowrap; }
.pa-item span { flex: 1; min-width: 0; font: 11px var(--mono); color: #6e6e76; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-item.is-on { background: #ff4d00; color: #fff; }
.pa-item.is-on span { color: rgba(255, 255, 255, 0.75); }
.p-smoke { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.panel .t-k { color: #2ad4e4; }
.panel .t-s { color: #7ee787; }
.panel .t-n { color: #ffa657; }
.panel .t-w { color: #d2a8ff; }
.panel .t-p { color: #8b8b94; }

/* ───────────── Pre-animation ───────────── */
.js .hero-title .ln > span { transform: translateY(105%); }
.js .hero .reveal { opacity: 0; }

/* ───────────── Responsive ───────────── */
@media (max-width: 1000px) {
  .bar-mid { display: none; }
  .hero-text, .hero-fig { grid-column: 1 / -1; }
  .hero-text { border-right: 0; border-bottom: 1px solid var(--rule); }
  .hero-title { padding-top: 40px; }
  .hero-fig { min-height: 440px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs > div:nth-child(2) { border-right: 0; }
  .specs > div:nth-child(-n + 2) { border-bottom: 1px solid var(--rule-soft); }
  .sec-head .label, .sec-title, .sec-title.big, .sec-note { grid-column: 1 / -1; }
  .col { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule-soft); padding-top: 20px; padding-bottom: 20px; }
  .specimens, .pad-wrap { grid-column: 1 / -1; border-right: 0; }
  .keymap { grid-template-columns: repeat(2, 1fr); }
  .km:nth-child(3n) { border-right: 1px solid var(--rule-soft); }
  .km:nth-child(2n) { border-right: 0; }
  .cmd, .install-alt { grid-column: 1 / -1; }
  .install-alt { border-left: 0; }
}
@media (max-width: 640px) {
  .bar-nav a:not(.bar-dl) { display: none; }
  .bar-sound .lbl { display: none; }
  .hero-cta { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 1fr; }
  .tr > * + * { border-left: 0; border-top: 1px dashed var(--rule-soft); }
  .th { display: none; }
  .keymap { grid-template-columns: 1fr; }
  .km { border-right: 0 !important; min-height: 0; }
  .spec-list li { grid-template-columns: 26px 54px minmax(0, 1fr) auto; gap: 10px; }
  .sheet > div { grid-template-columns: 1fr; }
  .sheet dd { border-left: 0; padding-top: 0; }
  .p-body { grid-template-columns: 1fr; }
  .p-preview { display: none; }
  .p-hints > :not(b) { display: none; }
  .p-actions { left: 10px; right: 10px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-title .ln > span { transform: none; }
  .js .hero .reveal { opacity: 1; }
}

/* 07 · faq */
.faq dt { color: var(--ink); font-weight: 600; font-size: 16px; }
.faq dd { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.faq dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sig); text-underline-offset: 3px; }
.faq dd a:hover { color: var(--sig); }
.install-alt p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sig); text-underline-offset: 3px; }
.install-alt p a:hover { color: var(--sig); }
