/* ===========================================================================
   gwt — 頁面樣式

   方向：one-motif。母題取自工具本身：選單裡標示位置的那個「>」。
   顏色取自工具的 ANSI 配色（青色光棒、黃色目前位置），其餘是終端機的
   黑、紙白與灰。尺寸只用六個級距：13 / 17 / 21 / 36 / 56 / 80。
   =========================================================================== */

:root {
  --bg: #0a0a0b;
  --surface: #141518;
  --surface-2: #1b1d21;
  --ink: #f1f2f3;
  --muted: #a6acb4;
  --accent: #2ee6e6;
  --accent-ink: #04161a;
  --field: #f4c451;
  --paper: #eaeae6;
  --paper-ink: #101113;

  --frame: clamp(16px, 2.2vw, 30px);
  --gap: 12px;
  --radius: 16px;

  --t-small: 0.8125rem;
  --t-body: 1.0625rem;
  --t-lead: 1.3125rem;
  --t-stmt: clamp(1.3125rem, 1rem + 1.6vw, 2.25rem);
  --t-head: clamp(1.75rem, 1rem + 2.6vw, 3.5rem);
  --t-hero: clamp(2.375rem, 1rem + 5.4vw, 5rem);

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; /* taste-skill-ignore: 終端機片段是產品介面本身 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", "Noto Sans TC", system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

code {
  font-family: var(--mono); /* taste-skill-ignore: 行內的指令名稱 */
  font-size: 1em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

kbd {
  font-family: var(--mono); /* taste-skill-ignore: 按鍵名稱 */
  font-size: 1em;
  background: var(--surface-2);
  color: var(--ink);
  padding: 0.16em 0.4em;
  border-radius: 6px;
  white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--frame);
  top: -70px;
  z-index: 20;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.18s var(--ease);
}
.skip:focus { top: 12px; }

/* --- 母題：把「>」用在按鈕、色塊與記號上 -------------------------------- */

.chev { color: var(--accent); font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font: inherit;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 14px 26px 14px 22px;
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  transition: transform 0.16s var(--ease), background 0.16s var(--ease);
}
.btn:hover { background: #7cf2f2; transform: translateX(3px); }
.btn:active { transform: translateX(0); }

.btn-quiet { background: var(--surface-2); color: var(--ink); clip-path: none; }
.btn-quiet:hover { background: #262a30; color: var(--ink); transform: translateX(3px); }

.btn-dark { background: var(--paper-ink); color: var(--paper); padding: 12px 22px 12px 18px; }
.btn-dark:hover { background: #2a2d33; color: var(--paper); }

.btn-tiny {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px 10px 14px;
  font-size: var(--t-small);
  font-weight: 500;
}

/* --- 頂部 ---------------------------------------------------------------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--frame);
  background: var(--bg);
  font-size: var(--t-small);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: var(--t-lead);
  letter-spacing: -0.02em;
}
.mark span { color: var(--accent); font-size: 1.1em; }

.bar-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.bar-links a { color: var(--muted); }
.bar-links a:hover { color: var(--ink); }
.bar-cta { color: var(--ink) !important; font-weight: 500; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  padding: 0 clamp(var(--frame), 2.4vw, 34px);
  align-items: stretch;
  min-height: min(64svh, 600px);
  overflow: clip;
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(26px, 3.2vw, 46px);
}

.band {
  height: 34px;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--t-lead);
  font-weight: 700;
  line-height: 34px;
  letter-spacing: -0.1em;
  white-space: nowrap;
  opacity: 0.55;
}
.band::before { content: ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"; }

.hero h1 {
  margin-top: 14px;
  font-size: var(--t-hero);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.lead {
  margin-top: 22px;
  text-wrap: pretty;
  font-size: var(--t-lead);
  line-height: 1.4;
  max-width: 30ch;
}
.lead code { background: transparent; padding: 0; color: var(--accent); }

.install-block { margin-top: 26px; }

.install-name {
  font-size: var(--t-small);
  color: var(--muted);
  margin-bottom: 10px;
}

.install-code {
  margin: 0;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono); /* taste-skill-ignore: 使用者要複製的真指令 */
  font-size: var(--t-small);
  line-height: 1.7;
  color: var(--ink);
}
.install-code code { background: none; padding: 0; border-radius: 0; font: inherit; white-space: pre; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.copy-state {
  font-size: var(--t-small);
  color: var(--accent);
  min-height: 1.5em;
  margin-top: 8px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 10px;
  font-size: var(--t-small);
}
.hero-links a { color: var(--muted); }
.hero-links a:hover { color: var(--accent); }

.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--gap) 0;
  min-width: 0;
}

/* 母題在最大的尺度：終端機坐在一塊被裁成「>」的色台上 */
.chevron-field {
  position: absolute;
  inset: 4% -9% 14% -4%;
  background: #10262b;
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 6% 50%);
  z-index: 0;
}

.term {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  background: #08090a;
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono); /* taste-skill-ignore: 重現真的終端機輸出 */
  font-size: var(--t-small);
  line-height: 1.85;
  color: #d9dde2;
}

.term-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: var(--t-small);
  white-space: nowrap;
  overflow: hidden;
}
.term-shell { color: var(--accent); }

.term-body {
  margin: 0;
  padding: 18px 16px 22px;
  font: inherit;
  white-space: normal;
  overflow-x: auto;
}
.term-body code {
  display: block;
  white-space: normal;
  background: none;
  padding: 0;
  border-radius: 0;
  font: inherit;
  color: inherit;
}
.term-raw code { white-space: pre; }
.term-body .line { display: block; }
.term-body .line.hint { color: var(--muted); }
.term-body .line.gap { height: 0.7em; }
.term-body .dir { color: var(--accent); }
.term-body .after { margin-top: 14px; }
.term-body .after .dim { color: var(--muted); }
.term-body .menu { display: block; margin: 6px 0 0; }

.term-cmd { color: var(--ink); }
.prompt { color: var(--accent); margin-right: 0.4em; }
.term-hint { color: var(--muted); }

.menu { margin: 6px 0 0; }

.row {
  display: flex;
  align-items: baseline;
  gap: 1.4ch;
  padding-inline: 0.2ch;
  white-space: nowrap;
  overflow: hidden;
}

.row .sel {
  display: inline-flex;
  gap: 0.9ch;
  min-width: 0;
  padding-inline: 0.4ch;
  border-radius: 2px;
}

.row .path {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
}

.row .branch { color: var(--accent); }
.row .sha { color: #98a0a9; }
.row .mark { color: var(--field); }

.row.is-active .sel { background: var(--accent); color: var(--accent-ink); }
.row.is-active .num { font-weight: 700; }

.term-after { margin-top: 14px; color: var(--ink); }
.term-after .dim { color: var(--muted); }

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.2em;
  background: var(--accent);
  vertical-align: -0.2em;
  animation: blink 1.15s steps(1, end) infinite;
}

@keyframes blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

.stage-note {
  position: relative;
  z-index: 1;
  font-size: var(--t-small);
  color: var(--muted);
  padding-left: 2px;
}

/* --- 聲明 ----------------------------------------------------------------- */

.statement {
  padding: clamp(90px, 14vw, 190px) var(--frame);
  display: flex;
  justify-content: center;
}

.statement-text {
  max-width: 34ch;
  font-size: var(--t-stmt);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.frame {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 1.35em;
  height: 0.82em;
  margin: 0 0.14em;
  padding: 0 0.16em;
  border-radius: 3px;
  background: var(--surface-2);
  vertical-align: -0.08em;
}
.frame i { display: block; height: 2px; background: #565d66; border-radius: 1px; }
.frame i.hot { background: var(--accent); }

/* --- 操作 ----------------------------------------------------------------- */

.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px);
  padding: 0 clamp(var(--frame), 2.4vw, 34px) clamp(80px, 9vw, 130px);
  align-items: center;
  overflow: clip;
}

.how-line {
  font-size: var(--t-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 17ch;
  text-wrap: balance;
}

.how-say {
  margin-top: 22px;
  max-width: 32ch;
  font-size: var(--t-body);
  line-height: 1.6;
}

.how-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.chevron-field-sm { inset: auto -16% -14% auto; width: 40%; height: 52%; background: #152a30; }

.term-live .term-body { min-height: 232px; }

.menu-live:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }

.live-help { position: relative; z-index: 1; font-size: var(--t-small); color: var(--muted); padding-left: 2px; }

.how-band { grid-column: 1 / -1; margin-top: clamp(30px, 4vw, 52px); }

.how-band-name {
  font-size: var(--t-small);
  color: var(--muted);
  margin-bottom: 12px;
}

.term-wide { flex: none; }
.term-wide .sha { display: none; }
.term-wide .term-body { padding: 16px 18px 20px; }
.term-body .range { color: var(--field); display: block; margin-top: 12px; }

.how-control {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: clamp(28px, 3.5vw, 48px);
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: var(--surface-2);
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  background: var(--accent);
  border: 0;
  clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%, 30% 50%);
  cursor: grab;
}
.range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border: 0;
  border-radius: 0;
}
.range:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }

.stage-names {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  font-size: var(--t-small);
}
.stage-names button {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.16s var(--ease);
}
.stage-names button:hover { color: var(--ink); }
.stage-names button[aria-current="true"] { color: var(--ink); font-weight: 500; }

/* --- 按鍵與它讀的輸出 ----------------------------------------------------- */

.keys {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: clamp(70px, 8vw, 120px) var(--frame);
  align-items: start;
}

.keys-title {
  grid-column: 1 / 6;
  font-size: var(--t-head);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.keys-body {
  grid-column: 6 / 13;
  display: grid;
  gap: clamp(34px, 4vw, 56px);
}

.keys-name {
  display: grid;
  grid-template-columns: 7ch minmax(0, 1fr) auto;
  gap: 12px;
  font-size: var(--t-small);
  color: var(--muted);
  margin-bottom: 16px;
}
.keys-name span:last-child { text-align: right; }

.rows { display: flex; flex-direction: column; gap: 22px; }

.rows .row {
  display: grid;
  grid-template-columns: 7ch minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  white-space: normal;
  overflow: visible;
  padding-inline: 0;
}
.rows .row:nth-child(4) { margin-top: 16px; }

.rows dt {
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.rows dd { font-size: var(--t-body); }
.rows .tag { font-size: var(--t-small); color: var(--muted); white-space: nowrap; }
.rows .tag-on { color: var(--accent); }

.keys-foot { margin-top: 26px; font-size: var(--t-small); color: var(--muted); max-width: 42ch; }

.porcelain-name { font-size: var(--t-small); color: var(--muted); margin-bottom: 12px; }

.term-mini { flex: none; }
.term-mini .term-body { padding: 16px 16px 18px; }
.term-mini .gap-line { height: 1.85em; }

.porcelain-note { margin-top: 14px; font-size: var(--t-small); color: var(--muted); max-width: 44ch; }

/* --- 數字（反白的一段） --------------------------------------------------- */

.figures {
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(64px, 7vw, 110px) var(--frame);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.figures-head { grid-column: 7 / 13; grid-row: 1; margin-bottom: clamp(24px, 3vw, 40px); }

.figures-title {
  font-size: var(--t-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.figures-say { margin-top: 14px; font-size: var(--t-body); max-width: 30ch; }

.tiles { display: contents; }

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 2.4vw, 32px);
  min-height: 168px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
}

.tile-accent {
  grid-column: 1 / 7;
  grid-row: 1 / 3;
  background: var(--accent);
  color: var(--accent-ink);
  min-height: clamp(300px, 38vw, 440px);
}
.tile-paper { grid-column: 7 / 10; grid-row: 2; background: #d8d8d3; }
.tile-ink { grid-column: 10 / 13; grid-row: 2; background: var(--paper-ink); color: var(--paper); margin-top: 10vh; }

.tile-num {
  font-size: var(--t-hero);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.03em;
}
.tile-cap { font-size: var(--t-body); max-width: 20ch; }

/* --- 常見問題 ------------------------------------------------------------- */

.faq {
  padding: clamp(80px, 10vw, 150px) var(--frame);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.faq-title {
  grid-column: 1 / 5;
  font-size: var(--t-head);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  align-self: start;
  position: sticky;
  top: 92px;
}

.cards { grid-column: 5 / 13; display: flex; flex-direction: column; min-width: 0; }

.card-faq {
  position: relative;
  border-radius: 10px;
  margin-top: -12px;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
  transition: background 0.2s var(--ease);
}
.card-faq:first-child { margin-top: 0; }
.card-faq:nth-child(3n + 2) { background: var(--surface-2); }
.card-faq:nth-child(3n + 3) { background: #23262b; }

.card-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  padding: 24px 24px 22px;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.card-head:hover .q { color: var(--accent); }

.card-faq:nth-child(2) .tab { margin-left: 34px; }
.card-faq:nth-child(3) .tab { margin-left: 68px; }
.card-faq:nth-child(4) .tab { margin-left: 102px; }
.card-faq:nth-child(5) .tab { margin-left: 136px; }
.card-faq:nth-child(6) .tab { margin-left: 170px; }

.tab {
  flex: none;
  font-size: var(--t-small);
  color: var(--accent-ink);
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 6px;
}

.q { font-size: var(--t-lead); font-weight: 500; line-height: 1.3; }

.card-body { padding: 0 24px 26px; max-width: 54ch; font-size: var(--t-body); }
.card-body[hidden] { display: none; }
.card-body p + .term-mini { margin-top: 18px; }
.card-body code { background: #0d0e10; color: var(--ink); }

/* --- 結尾 ----------------------------------------------------------------- */

.close {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  padding: clamp(60px, 7vw, 110px) var(--frame);
  align-items: stretch;
}

.tile-main {
  grid-column: 3 / 11;
  background: var(--accent);
  color: var(--accent-ink);
  padding: clamp(26px, 3.2vw, 44px);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-height: 300px;
}

.close h2 {
  font-size: var(--t-head);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.close-say { max-width: 32ch; }

.install { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }

.install-cmd {
  flex: 1 1 300px;
  min-width: 0;
  display: block;
  background: rgba(4, 22, 26, 0.16);
  color: var(--accent-ink);
  padding: 14px 16px;
  border-radius: 8px;
  font-family: var(--mono); /* taste-skill-ignore: 使用者要複製的真指令 */
  font-size: var(--t-small);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tile-side {
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-side-a {
  grid-column: 1 / 3;
  background: var(--surface);
  font-size: var(--t-hero);
  font-weight: 700;
  color: var(--accent);
}
.tile-side-b { grid-column: 11 / 13; background: var(--surface-2); }

/* --- 頁尾 ----------------------------------------------------------------- */

.foot {
  padding: clamp(56px, 6vw, 90px) var(--frame) 40px;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 60px);
}

.foot-mark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: clamp(80px, 14vw, 180px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.foot-mark .block {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: var(--bg);
  font-size: var(--t-hero);
  line-height: 1;
}
.b1 { flex: 1; height: 62%; background: var(--accent); }
.b2 { flex: 2.4; height: 88%; background: var(--ink); }
.b3 { flex: 3; height: 100%; background: var(--ink); }
.b4 { flex: 2.2; height: 76%; background: var(--surface-2); color: var(--ink); }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  font-size: var(--t-small);
}
.foot-head { color: var(--muted); margin-bottom: 12px; }
.foot-cols ul { display: flex; flex-direction: column; gap: 8px; }
.foot-cols a:hover { color: var(--accent); }

.foot-end {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-small);
  color: var(--muted);
}

/* --- 動態 ----------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- 手機與平板 ----------------------------------------------------------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero-stage { order: -1; padding: 0; }
  .hero-card { gap: 26px; }
  .lead { max-width: none; }
  .chevron-field { inset: -3% -10% auto auto; width: 58%; height: 48%; }

  .statement-text { max-width: none; }

  .how { grid-template-columns: minmax(0, 1fr); }
  .how-line { max-width: none; }
  .stage-names { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }

  .keys { grid-template-columns: minmax(0, 1fr); }
  .keys-title { grid-column: 1; }
  .keys-body { grid-column: 1; margin-top: 28px; }

  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures-head { grid-column: 1; grid-row: auto; }
  .tiles { display: flex; flex-direction: column; gap: 8px; }
  .tile-accent, .tile-paper, .tile-ink { grid-column: auto; grid-row: auto; margin-top: 0; }
  .tile { flex-direction: row; align-items: flex-end; justify-content: space-between; min-height: 132px; }
  .tile-accent { min-height: 190px; }
  .tile-cap { max-width: 16ch; text-align: right; }
  .tile-num { font-size: var(--t-head); }

  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq-title { grid-column: 1; position: static; margin-bottom: 26px; }
  .cards { grid-column: 1; }
  .card-head { padding: 20px 18px 18px; gap: 12px; }
  .card-faq:nth-child(2) .tab { margin-left: 16px; }
  .card-faq:nth-child(3) .tab { margin-left: 32px; }
  .card-faq:nth-child(4) .tab { margin-left: 48px; }
  .card-faq:nth-child(5) .tab { margin-left: 64px; }
  .card-faq:nth-child(6) .tab { margin-left: 80px; }
  .card-body { padding: 0 18px 22px; }

  .close { grid-template-columns: minmax(0, 1fr); }
  .tile-main { grid-column: 1; }
  .tile-side { display: none; }

  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-end { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) and (min-width: 701px) {
  .keys-body {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
  }
}

@media (max-width: 900px) {
  .keys-name span:last-child, .rows .tag { display: none; }
  .keys-name { grid-template-columns: 7ch minmax(0, 1fr); }
  .rows .row { grid-template-columns: 7ch minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .row .sha { display: none; }
  .row { gap: 1ch; }

  .rows .row { grid-template-columns: 5ch minmax(0, 1fr) auto; }
  .keys-name { grid-template-columns: 5ch minmax(0, 1fr) auto; }
}
