:root {
  --bg: #f4f5f8;
  --bg-deep: #eceef3;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --ink: #15171c;
  --ink-2: #4a505c;
  --ink-3: #5f6672;
  --line: #e1e4ea;
  --blue: #2563d9;
  --blue-hover: #1d55c2;
  --blue-ink: #1d58c8;
  --blue-wash: #e6eefc;
  --pink: #b8264d;
  --pink-wash: #fde8ee;
  --code-bg: #eef0f4;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.06), 0 1px 3px rgb(16 24 40 / 0.05);
  --shadow-lg: 0 2px 4px rgb(16 24 40 / 0.04), 0 24px 48px -16px rgb(16 24 40 / 0.22);
  --radius: 14px;
  --radius-lg: 20px;
  --font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --container: 1120px;
  --section-space: clamp(5rem, 10vw, 8.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --bg-deep: #0b0c0f;
    --panel: #181b21;
    --panel-2: #1d2027;
    --ink: #eceef2;
    --ink-2: #a9b0bc;
    --ink-3: #8b93a1;
    --line: #2a2e37;
    --blue: #2f6fe0;
    --blue-hover: #2a63cc;
    --blue-ink: #7fa9ff;
    --blue-wash: #1a2a48;
    --pink: #ff7896;
    --pink-wash: #3a1b25;
    --code-bg: #23272f;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 28px 56px -18px rgb(0 0 0 / 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--blue-wash); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--blue-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
}

code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--ink);
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  text-align: center;
  line-height: 1.45;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.skip:focus { top: 1rem; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav nav { margin-left: auto; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.button-primary {
  padding: 0.95rem 1.7rem;
  background: var(--blue);
  color: #fff;
  font-size: 1.06rem;
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.12), 0 8px 20px -8px rgb(16 24 40 / 0.35);
}
.button-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.button-primary:active { transform: translateY(0); }

.button-compact { padding: 0.7rem 1.25rem; font-size: 0.95rem; }

.button-small {
  padding: 0.42rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
}
.button-small:hover { background: var(--blue); color: #fff; }

.link-quiet {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}
.link-quiet:hover { color: var(--ink); text-decoration: underline; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 2.75rem) 1.5rem 0;
  text-align: center;
}

.hero-icon {
  width: clamp(88px, 8vw, 112px);
  margin-bottom: 1rem;
  filter: drop-shadow(0 10px 18px rgb(37 70 160 / 0.18));
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.14;
  letter-spacing: -0.032em;
}

.lede {
  max-width: 38rem;
  margin-top: 1.1rem;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.6rem;
}

.meta {
  margin-top: 1rem;
  color: var(--ink-3);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.stage {
  width: 100%;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 10% 100%, #bcd3ff 0%, transparent 55%),
    radial-gradient(110% 90% at 95% 95%, #ffc4d4 0%, transparent 55%),
    linear-gradient(180deg, #eef3ff 0%, #f8eaf3 100%);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

@media (prefers-color-scheme: dark) {
  .stage {
    background:
      radial-gradient(120% 90% at 10% 100%, #1c3566 0%, transparent 55%),
      radial-gradient(110% 90% at 95% 95%, #4a1d33 0%, transparent 55%),
      linear-gradient(180deg, #161c2b 0%, #20172a 100%);
  }
}

.menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 0.9rem;
  background: rgb(255 255 255 / 0.55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #1b1d22;
  font-size: 0.8rem;
}

@media (prefers-color-scheme: dark) {
  .menubar { background: rgb(20 22 28 / 0.55); color: #eceef2; }
}

.menubar-left, .menubar-right {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  white-space: nowrap;
}

.menubar-key { width: 22px; height: 22px; }

.desk {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem);
}

.window {
  width: min(100%, 720px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 22px 50px -18px rgb(16 24 40 / 0.35);
}

@media (prefers-color-scheme: dark) {
  .window { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 22px 50px -18px rgb(0 0 0 / 0.8); }
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.lights { display: flex; gap: 8px; }
.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.15);
}
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-3);
  font-size: 0.82rem;
  font-weight: 600;
}

.window-body {
  min-height: 150px;
  padding: 1.2rem 2rem 1.6rem;
}

.note-date {
  color: var(--ink-3);
  font-size: 0.82rem;
  text-align: center;
}

.typed {
  margin-top: 0.9rem;
  min-height: 1.3em;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.changed {
  border-radius: 6px;
  background: var(--blue-wash);
  box-shadow: 0 0 0 3px var(--blue-wash);
  transition: background-color 0.5s var(--ease-out);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.14em;
  background: var(--blue);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}

.keystrip-wrap {
  display: grid;
  justify-items: center;
  gap: 1rem;
  width: 100%;
}

.keystrip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.key {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 34px;
  padding: 0 0.45rem;
  border-radius: 7px;
  background: rgb(255 255 255 / 0.6);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.08), inset 0 -2px 0 rgb(0 0 0 / 0.06);
  color: rgb(27 29 34 / 0.38);
  font-family: var(--mono);
  font-size: 0.92rem;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.12s var(--ease-out);
}

.key-space { min-width: 64px; font-size: 0.7rem; letter-spacing: 0.02em; }

.key.is-typed { background: #fff; color: #1b1d22; }

.key.is-pressed {
  transform: translateY(2px);
  background: #dbe7ff;
  color: #174ab0;
  box-shadow: 0 0 0 rgb(0 0 0 / 0.08), inset 0 1px 2px rgb(0 0 0 / 0.08);
}

@media (prefers-color-scheme: dark) {
  .key { background: rgb(40 44 54 / 0.6); color: rgb(236 238 242 / 0.35); box-shadow: 0 1px 0 rgb(0 0 0 / 0.4), inset 0 -2px 0 rgb(0 0 0 / 0.3); }
  .key.is-typed { background: #2a2f3a; color: #eceef2; }
  .key.is-pressed { background: #23407a; color: #dbe7ff; }
}

.scenes {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.5);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.05);
}

@media (prefers-color-scheme: dark) {
  .scenes { background: rgb(30 33 40 / 0.6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
}

.scene {
  padding: 0.38rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.scene:hover { color: var(--ink); }
.scene[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }

.stage-caption {
  padding: 0 1.5rem 1.6rem;
  color: #3b4150;
  font-size: 0.92rem;
  text-align: center;
}

.stage-caption code { background: rgb(255 255 255 / 0.65); }

@media (prefers-color-scheme: dark) {
  .stage-caption { color: #b8bfcc; }
  .stage-caption code { background: rgb(255 255 255 / 0.08); }
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-space) 1.5rem 0;
}

.feature-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-flip .feature-copy { order: 2; }

.feature h2, .details h2, .cheatsheet h2, .install h2, .faq h2, .closing h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.16;
}

.feature-copy p, .points { margin-top: 1.25rem; color: var(--ink-2); max-width: 34rem; }
.feature-copy p + p { margin-top: 1rem; }
.feature-copy strong { color: var(--ink); font-weight: 600; }

.points { padding: 0; list-style: none; display: grid; gap: 0.9rem; }
.points li { position: relative; padding-left: 1.4rem; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
}

.tag {
  padding: 0.08em 0.45em;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.tag-v { background: var(--blue-wash); color: var(--blue-ink); }
.tag-e { background: var(--pink-wash); color: var(--pink); }

.feature-visual {
  min-width: 0;
}

.compare {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.compare-row {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.compare-row.is-senkey { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); background: color-mix(in srgb, var(--blue-wash) 45%, var(--panel)); }

.compare-label { color: var(--ink-3); font-size: 0.8rem; font-weight: 600; }

.compare-text {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.marked {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--ink-3);
  background: color-mix(in srgb, var(--ink-3) 12%, transparent);
  border-radius: 3px;
}

.addressbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--ink-3);
  font-size: 1rem;
}
.addressbar span:first-of-type { color: var(--ink); }

.modes {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.mode-keys {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: var(--ink-3);
}
.mode-keys img { width: 64px; height: 64px; }

.app-modes {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.app-modes li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.why { color: var(--ink-3); font-size: 0.86rem; font-weight: 400; }

.badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.12);
}
.badge-v { background: #2f6fe0; color: #fff; }
.badge-e { background: #d6355f; color: #fff; }

.feature-dark {
  max-width: none;
  margin-top: var(--section-space);
  padding: var(--section-space) max(1.5rem, calc((100% - var(--container)) / 2 + 1.5rem));
  background: #0f1115;
  color: #eceef2;
}

.feature-dark .feature-copy p, .feature-dark .points { color: #b4bbc7; }
.feature-dark strong { color: #eceef2; }
.feature-dark code { background: #23272f; color: #eceef2; }
.feature-dark kbd { background: #1b1e25; border-color: #343a46; color: #eceef2; }
.feature-dark .points li::before { background: #7fa9ff; }

.editor {
  border-radius: 12px;
  overflow: hidden;
  background: #16181e;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 60px -20px rgb(0 0 0 / 0.8);
}

.editor-bar { background: #1d2027; border-bottom-color: #2a2e37; }
.editor-bar .window-title { color: #8b93a1; }
.editor-mode { margin-left: auto; width: 18px; height: 18px; }

.code {
  margin: 0;
  padding: 1.4rem 1.5rem;
  overflow-x: auto;
  color: #d7dce5;
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.3vw, 0.95rem);
  line-height: 1.75;
}

.code code { padding: 0; background: none; font-size: inherit; color: inherit; }
.code .ln { display: inline-block; width: 1.6rem; color: #7c8493; user-select: none; }
.code .k { color: #ff8fab; }
.code .s { color: #9fd18b; }
.code .f { color: #7fb2ff; }
.code .t { color: #f2c57c; }

.esc-demo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.5rem 1.3rem;
  border-top: 1px solid #2a2e37;
  font-size: 1.05rem;
}

.esc-word { font-weight: 600; color: #eceef2; }
.esc-raw { font-family: var(--mono); color: #b4bbc7; }
.esc-key { background: #23272f; border-color: #3a404c; color: #eceef2; font-size: 0.78rem; }

.window.shot-window { width: 100%; max-width: 640px; margin: 0 auto; }
.shot img { width: 100%; }

.encodings dl { margin: 0; }

.encodings {
  display: grid;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.encodings dl div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.encodings dl div:first-child { padding-top: 0; }
.encodings dl div:last-of-type { border-bottom: 0; padding-bottom: 0; }
.encodings dt { color: var(--ink-3); font-size: 0.86rem; font-weight: 600; }
.encodings dd { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; }
.encodings dl div:first-child dd { color: var(--blue-ink); }
.encodings dl div:not(:first-child) dd { font-family: var(--mono); font-weight: 500; font-size: clamp(1.05rem, 1.9vw, 1.3rem); }

.encodings-note { padding-top: 1rem; color: var(--ink-3); font-size: 0.84rem; }

.details, .cheatsheet, .install, .faq {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-space) 1.5rem 0;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  margin: 2.5rem 0 0;
}

.detail-list div {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.detail-list dt { font-weight: 600; font-size: 1.06rem; }
.detail-list dd { margin: 0.35rem 0 0; color: var(--ink-2); }

.table-wrap {
  margin-top: 2.25rem;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

table { width: 100%; border-collapse: collapse; }

th, td {
  padding: 0.95rem 1.4rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { color: var(--ink-3); font-size: 0.85rem; font-weight: 600; background: var(--panel-2); }
tbody th { font-weight: 500; }
td { white-space: nowrap; }
td kbd { margin: 0.1rem 0.08rem; }
.muted { color: var(--ink-3); font-size: 0.88rem; margin: 0 0.25rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--blue-wash);
  color: var(--blue-ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.steps h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
.steps p { color: var(--ink-2); font-size: 0.98rem; }
.steps strong { color: var(--ink); font-weight: 600; }
.steps .button { align-self: flex-start; margin-top: 0.5rem; }
.steps .aside { color: var(--ink-3); font-size: 0.9rem; }

.command {
  margin: 0;
  padding: 0.8rem 1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 10px;
  background: var(--code-bg);
  font-size: 0.85rem;
  line-height: 1.5;
}
.command code { padding: 0; background: none; font-size: inherit; }

.faq h2 { margin-bottom: 1.75rem; }

.faq details {
  max-width: 50rem;
  border-top: 1px solid var(--line);
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 0.3rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p, .faq details .command { max-width: 44rem; margin-bottom: 1.25rem; color: var(--ink-2); }

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-space) 1.5rem;
  text-align: center;
}
.closing img { filter: drop-shadow(0 8px 14px rgb(37 70 160 / 0.16)); }
.closing .meta { margin-top: -0.25rem; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .feature, .feature-flip { grid-template-columns: minmax(0, 1fr); }
  .feature-flip .feature-copy { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav nav { margin-left: auto; }
  .hide-narrow { display: none; }
  .detail-list { grid-template-columns: minmax(0, 1fr); }
  .window-body { padding: 1.25rem 1.25rem 1.6rem; }
  .encodings dl div { grid-template-columns: 1fr; gap: 0.15rem; }
  .app-modes li { grid-template-columns: 1fr auto; }
  .app-modes .why { display: none; }
  th, td { padding: 0.8rem 1rem; }
  .footer { flex-direction: column; }
  .hero h1 { font-size: 2.05rem; }
  .br-wide { display: none; }
  thead { display: none; }
  .table-wrap table, .table-wrap tbody { display: block; }
  .table-wrap tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  .table-wrap tbody tr:last-child { border-bottom: 0; }
  .table-wrap tbody th { grid-column: 1 / -1; padding-bottom: 0.25rem; border-bottom: 0; font-weight: 600; }
  .table-wrap td { border-bottom: 0; padding-top: 0.35rem; white-space: normal; }
  .table-wrap td::before { content: attr(data-label); display: block; margin-bottom: 0.3rem; color: var(--ink-3); font-family: var(--font); font-size: 0.78rem; font-weight: 600; }
  .lede { font-size: 1.02rem; margin-top: 0.9rem; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-icon { width: 72px; margin-bottom: 0.9rem; }
  .meta { margin-top: 0.75rem; }
  .stage { margin-top: 1.5rem; }
  .hero-actions .link-quiet, .note-date { display: none; }
  .desk { gap: 1rem; }
  .window-body { min-height: 120px; }
  .key { min-width: 22px; height: 28px; padding: 0 0.3rem; font-size: 0.8rem; }
  .key-space { min-width: 40px; font-size: 0.62rem; }
  .stage-caption { padding-bottom: 1.2rem; font-size: 0.86rem; }
}
