/* termhint.com: one stylesheet for every page, after baubau.io's look: the system's own font set
   heavy and tight, a floating glass bar, plum night with soft glows, rounded glass cards. */

:root {
  --bg: #0d0a12;
  --bg-2: #130e1a;
  --card: rgba(255, 255, 255, 0.045);
  --card-hi: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.15);
  --fg: #f3f1f7;
  --muted: #b5b0c0;
  --faint: #7e778a;
  --rose: #f0628f;
  --rose-2: #e2457a;
  --rose-soft: #ff9bbb;
  /* Kind colors of the popup (macOS system colors, dark appearance). */
  --k-command: #0a84ff;
  --k-option: #ff9f0a;
  --k-script: #30d158;
  --k-folder: #63e6e2;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.045em; line-height: 1.02; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 50; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* ——— Floating glass bar ——— */

.bar {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(1160px, 100% - 28px);
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 10px 10px 18px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: rgba(28, 24, 36, 0.62);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.links { margin-left: auto; display: flex; gap: 28px; font-size: 14px; font-weight: 550; }
.links a { text-decoration: none; color: var(--fg); opacity: 0.86; }
.links a:hover { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font: 650 15px/1 var(--sans);
  text-decoration: none;
  border: 0;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.light { background: var(--fg); color: #0b0b10; padding: 12px 18px; font-size: 14px; }
.btn.rose {
  background: linear-gradient(180deg, #ff86ab, var(--rose) 55%, var(--rose-2));
  color: #1a0710;
  padding: 16px 28px;
  font-size: 16px;
  box-shadow: 0 14px 40px -12px rgba(240, 98, 143, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ——— Sections and their glows ——— */

.glow { position: relative; isolation: isolate; }
.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 40%, rgba(226, 69, 122, 0.22), transparent 70%);
  pointer-events: none;
}
.glow.right::before { background: radial-gradient(55% 60% at 85% 45%, rgba(226, 69, 122, 0.20), transparent 70%); }
.glow.violet::before { background: radial-gradient(55% 60% at 20% 50%, rgba(135, 143, 244, 0.16), transparent 70%); }
.band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid rgba(255, 255, 255, 0.03); }

section { padding-block: 120px; }
.kicker { color: var(--rose); font-weight: 650; font-size: 14px; letter-spacing: 0.01em; }
.kicker.plain { color: var(--fg); }
.h2 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 760; }
.h2 .rose, h1 .rose { background: linear-gradient(180deg, #ff9bbb, var(--rose) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.h2 + .sub { margin-top: 22px; }

/* ——— Hero ——— */

.hero { padding-block: 96px 0; text-align: center; }
.hero .kicker { color: var(--fg); }
.hero h1 { margin-top: 18px; font-size: clamp(56px, 9vw, 112px); font-weight: 800; }
.hero .sub { margin: 26px auto 0; max-width: 34ch; font-size: clamp(18px, 1.9vw, 21px); color: var(--fg); opacity: 0.92; }
.hero .cta { margin-top: 34px; display: grid; justify-items: center; gap: 16px; }
.fine { color: var(--muted); font-size: 13.5px; }

.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; } .d3 { animation-delay: 0.28s; } .d4 { animation-delay: 0.42s; } .d5 { animation-delay: 0.6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ——— Terminal window and the popup inside it ——— */

.stage { margin-top: 72px; position: relative; }
.stage::after { /* the window sinks into the next section, like the phones on baubau.io */
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 140px;
  background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none;
}
.term {
  --fs: clamp(12.5px, 1.5vw, 16px);
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(34, 28, 44, 0.96), rgba(20, 16, 27, 0.98));
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  text-align: left;
  overflow: hidden;
}
/* Like the real popup, it may float past the window's edge. */
.term.small { --fs: 13.5px; max-width: none; width: 100%; margin-inline: 0; border-radius: 16px; overflow: visible; }
.term-top { display: flex; align-items: center; gap: 8px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.term-top i { width: 12px; height: 12px; border-radius: 50%; }
.term-top i:nth-child(1) { background: #ff5f57; } .term-top i:nth-child(2) { background: #febc2e; } .term-top i:nth-child(3) { background: #28c840; }
.term-top span { flex: 1; text-align: center; margin-right: 52px; font: 500 12px/1 var(--sans); color: var(--faint); }
.term-body { position: relative; font: 400 var(--fs)/1.85 var(--mono); padding: 20px 24px; color: #e8e2ec; white-space: pre; }
.term-body.tall { min-height: 360px; }
.term-body.mid { min-height: 250px; }
.c-dir { color: #8f96f6; } .c-git { color: var(--rose-soft); } .c-dim { color: var(--faint); } .c-ok { color: var(--k-script); }

.line { position: relative; display: inline-block; }
.typed { display: inline-block; overflow: hidden; vertical-align: bottom; width: 0; animation: typing 10s infinite; }
.done { position: absolute; left: 0; top: 0; opacity: 0; animation: swap 10s infinite; }
.caret { display: inline-block; width: 0.58em; height: 1.15em; vertical-align: -0.2em; background: var(--rose); border-radius: 1px; animation: blink 1.05s steps(1) infinite; }
.typed + .caret { animation: blink 1.05s steps(1) infinite, gone 10s infinite; }
@keyframes typing { 0%, 6% { width: 0; animation-timing-function: steps(6, end); } 22%, 58% { width: 6ch; opacity: 1; } 60%, 100% { width: 6ch; opacity: 0; } }
@keyframes swap { 0%, 59% { opacity: 0; } 60%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes gone { 0%, 59% { visibility: visible; } 60%, 100% { visibility: hidden; } }
@keyframes blink { 50% { opacity: 0; } }

/* Where a popup sits: the column ("--col", in characters) and line ("--row") of the word's start. */
.at { position: absolute; font-size: var(--fs); left: calc(24px + var(--col) * 1ch); top: calc(var(--top, 20px) + (var(--row) + 1) * 1.85em + 2px); white-space: normal; font-family: var(--mono); }
/* Each prompt is "~/app (main) $ " (15 characters); the word being completed starts after the command. */
.at-hero { --col: 19; --row: 3; }
.at-git { --col: 19; --row: 0; }
.at-docker { --col: 26; --row: 0; }
.at-npm { --col: 23; --row: 0; }
.at-cd { --col: 18; --row: 0; }
.term.small .popup { width: min(330px, 60vw); }

.popup {
  width: min(470px, 72vw);
  font: 400 13px/1 var(--sans);
  background: rgba(44, 38, 54, 0.9);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 22px 50px -16px rgba(0, 0, 0, 0.9);
}
.popup.live { opacity: 0; transform: translateY(-3px); animation: pop 10s infinite; }
@keyframes pop { 0%, 23% { opacity: 0; transform: translateY(-3px); } 25%, 58% { opacity: 1; transform: none; } 60%, 100% { opacity: 0; transform: translateY(-3px); } }
.rows { position: relative; }
.sel { position: absolute; inset: 0 0 auto 0; height: 32px; border-radius: 6px; background: rgba(10, 132, 255, 0.85); }
.popup.live .sel { animation: move 10s infinite; }
@keyframes move { 0%, 38% { transform: none; } 41%, 100% { transform: translateY(32px); } }
.row { position: relative; display: grid; grid-template-columns: 20px auto 1fr; align-items: center; gap: 9px; height: 32px; padding: 0 9px; }
.row b { font: 500 12.5px/1 var(--mono); color: #fff; white-space: nowrap; }
.row em { font-style: normal; justify-self: end; color: rgba(255, 255, 255, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sel-row em { color: rgba(255, 255, 255, 0.85); }
.kind { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; color: #fff; }
.kind svg { width: 11px; height: 11px; }
.k-command { background: var(--k-command); } .k-option { background: var(--k-option); } .k-script { background: var(--k-script); } .k-folder { background: var(--k-folder); color: #0b2b2a; }
.pfoot { display: flex; justify-content: space-between; padding: 7px 9px 3px; margin-top: 3px; border-top: 1px solid rgba(255, 255, 255, 0.08); font: 500 11px/1 var(--sans); color: rgba(255, 255, 255, 0.45); }

/* ——— Split heading ——— */

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.split .sub { padding-top: 10px; }

/* ——— Tabs (radio inputs, no script) ——— */

.tabs-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.tabs-head .sub { max-width: 26ch; }
.tabs { margin-top: 44px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); }
.seg label { padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; transition: color 0.2s ease, background 0.2s ease; }
.seg label:hover { color: var(--fg); }
#t1:checked ~ .seg [for="t1"], #t2:checked ~ .seg [for="t2"], #t3:checked ~ .seg [for="t3"], #t4:checked ~ .seg [for="t4"] {
  color: #1a0710; background: linear-gradient(180deg, #ff86ab, var(--rose)); box-shadow: 0 8px 22px -10px rgba(240, 98, 143, 0.8);
}
#t1:focus-visible ~ .seg [for="t1"], #t2:focus-visible ~ .seg [for="t2"], #t3:focus-visible ~ .seg [for="t3"], #t4:focus-visible ~ .seg [for="t4"] { outline: 2px solid var(--fg); outline-offset: 2px; }
.panel { display: none; margin-top: 22px; }
#t1:checked ~ .p1, #t2:checked ~ .p2, #t3:checked ~ .p3, #t4:checked ~ .p4 { display: grid; animation: rise 0.45s ease forwards; }

.card {
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.panel.card { grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: center; padding: 48px; min-height: 420px; }
.panel .no { color: var(--faint); font-size: 14px; font-weight: 600; }
.panel h3 { font-size: clamp(34px, 3.6vw, 48px); font-weight: 750; margin-top: 14px; }
.panel p { color: var(--muted); margin-top: 18px; max-width: 34ch; }
.caption { margin-top: 18px; text-align: center; color: var(--faint); font-size: 13px; }

/* ——— Feature rows ——— */

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature.flip > :first-child { order: 2; }
.feature .h2 { margin-top: 14px; }
.feature .sub { margin-top: 22px; max-width: 38ch; }
.feature .note { margin-top: 22px; color: var(--muted); font-size: 14px; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips span { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); font-size: 14px; font-weight: 550; }
.chips.center { justify-content: center; }

.visual { padding: 34px; border-radius: 28px; }
.keys { display: grid; gap: 14px; }
.key-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); }
.cap { justify-self: start; min-width: 54px; padding: 10px 12px; border-radius: 10px; text-align: center; font: 600 14px/1 var(--sans); background: linear-gradient(180deg, #3a3346, #29232f); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 3px 0 #17131c, inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.key-row span { color: var(--muted); }
.key-row strong { color: var(--fg); font-weight: 600; }

.schemes { display: grid; gap: 12px; }
.scheme { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); }
.scheme b { font-weight: 600; font-size: 15px; }
.sw { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sw i { height: 26px; border-radius: 7px; }

/* Scheme colors as published by each project (see THIRD-PARTY-NOTICES.md). */
.s-cat { background: #1e1e2e; } .s-cat i:nth-child(1) { background: #f38ba8; } .s-cat i:nth-child(2) { background: #fab387; } .s-cat i:nth-child(3) { background: #f9e2af; } .s-cat i:nth-child(4) { background: #a6e3a1; } .s-cat i:nth-child(5) { background: #89b4fa; } .s-cat i:nth-child(6) { background: #cba6f7; }
.s-dra { background: #282a36; } .s-dra i:nth-child(1) { background: #ff5555; } .s-dra i:nth-child(2) { background: #ffb86c; } .s-dra i:nth-child(3) { background: #f1fa8c; } .s-dra i:nth-child(4) { background: #50fa7b; } .s-dra i:nth-child(5) { background: #8be9fd; } .s-dra i:nth-child(6) { background: #bd93f9; }
.s-nord { background: #2e3440; } .s-nord i:nth-child(1) { background: #bf616a; } .s-nord i:nth-child(2) { background: #d08770; } .s-nord i:nth-child(3) { background: #ebcb8b; } .s-nord i:nth-child(4) { background: #a3be8c; } .s-nord i:nth-child(5) { background: #88c0d0; } .s-nord i:nth-child(6) { background: #b48ead; }
.s-tok { background: #1a1b26; } .s-tok i:nth-child(1) { background: #f7768e; } .s-tok i:nth-child(2) { background: #ff9e64; } .s-tok i:nth-child(3) { background: #e0af68; } .s-tok i:nth-child(4) { background: #9ece6a; } .s-tok i:nth-child(5) { background: #7aa2f7; } .s-tok i:nth-child(6) { background: #bb9af7; }
.s-gru { background: #282828; } .s-gru i:nth-child(1) { background: #fb4934; } .s-gru i:nth-child(2) { background: #fe8019; } .s-gru i:nth-child(3) { background: #fabd2f; } .s-gru i:nth-child(4) { background: #b8bb26; } .s-gru i:nth-child(5) { background: #83a598; } .s-gru i:nth-child(6) { background: #d3869b; }

/* ——— Centered showcase ——— */

.show .h2 { margin-top: 14px; }
.show .sub { margin-top: 24px; max-width: 52ch; }
.show .term { margin-top: 56px; }

/* ——— Three cards ——— */

.three { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.three .card { padding: 26px 24px; border-radius: 20px; }
.three h3 { font-size: 24px; font-weight: 750; letter-spacing: -0.035em; }
.three p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.textlink { display: inline-block; margin-top: 34px; color: var(--rose); font-weight: 650; font-size: 15px; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* ——— Price ——— */

.price { margin: 56px auto 0; max-width: 820px; display: grid; grid-template-columns: 1fr 1fr; text-align: left; overflow: hidden; }
.price > div { padding: 40px; }
.price > div + div { border-left: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.price .big { font-size: clamp(44px, 5vw, 60px); font-weight: 800; letter-spacing: -0.05em; margin-top: 12px; }
.price .big small { display: block; font-size: 15px; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-top: 8px; }
.price .btn { margin-top: 28px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); font-size: 15.5px; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.5' fill='none' stroke='%231a0710' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.ticks strong { color: var(--fg); font-weight: 600; }

/* ——— FAQ ——— */

.faq { max-width: 860px; margin-inline: auto; }
.faq .list { margin-top: 44px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 24px 4px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; font-weight: 650; font-size: 19px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 0.8; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 66ch; }
code { font: 500 0.88em var(--mono); padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); }

/* ——— Closing ——— */

.closing { padding-block: 130px; }
.closing img { width: 84px; height: 84px; margin: 0 auto; border-radius: 19px; box-shadow: 0 20px 50px -18px rgba(240, 98, 143, 0.6); }
.closing .name { margin-top: 16px; font-weight: 650; font-size: 15px; }
.closing .h2 { margin-top: 20px; }
.closing .sub { margin-top: 20px; color: var(--fg); }
.closing .fine { margin-top: 12px; }
.closing .btn { margin-top: 30px; }

/* ——— Footer ——— */

.footer { border-top: 1px solid var(--line); background: var(--bg); padding-block: 44px 56px; }
.footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 26px 40px; align-items: start; }
.footer .tag { color: var(--muted); max-width: 30ch; text-align: right; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--fg); }
.footer .small { grid-column: 1 / -1; color: var(--faint); font-size: 13px; }

/* ——— Legal pages ——— */

.legal { max-width: 760px; padding-block: 84px 40px; }
.legal h1 { font-size: clamp(46px, 7vw, 76px); font-weight: 800; margin-top: 14px; }
.legal .updated { color: var(--faint); font-size: 14px; margin-top: 18px; }
.legal h2 { font-size: 24px; font-weight: 720; letter-spacing: -0.03em; margin-top: 52px; }
.legal p, .legal li, .legal td { color: var(--muted); }
.legal p { margin-top: 14px; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal ul { padding-left: 20px; margin: 14px 0 0; }
.legal li { margin: 8px 0; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; }
.legal a { color: var(--rose-soft); }
.pending { color: #ffb86c; font: 500 0.92em var(--mono); }

/* ——— Small screens ——— */

@media (max-width: 960px) {
  .split, .feature, .panel.card { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip > :first-child { order: 0; }
  .tabs-head { flex-direction: column; align-items: start; gap: 16px; }
  .three { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
  .price > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .links { display: none; }
  .bar .btn.light { margin-left: auto; }
  section { padding-block: 84px; }
  .hero { padding-top: 64px; }
  .panel.card { padding: 26px; min-height: 0; }
  .seg { display: flex; flex-wrap: wrap; border-radius: 20px; }
  .seg label { padding: 10px 14px; font-size: 14px; }
  .term-body { padding: 16px; }
  .at { left: calc(16px + var(--col) * 1ch); --top: 16px; }
  .popup { width: min(300px, 64vw); }
  .row em { display: none; }
  .scheme { grid-template-columns: 1fr; gap: 10px; }
  .footer .wrap { grid-template-columns: 1fr; }
  .footer .tag { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .panel { animation: none !important; opacity: 1; transform: none; }
  /* A still frame: "git ch" typed, the popup open on its second row. */
  .typed { animation: none; width: 6ch; }
  .caret, .typed + .caret { animation: none; }
  .done { animation: none; opacity: 0; }
  .popup.live { animation: none; opacity: 1; transform: none; }
  .popup.live .sel { animation: none; transform: translateY(32px); }
}
