/* /pipeline promo site — round 1: nav, hero, problem, how it works, 01 Plan */


:root {
  --page: #FAF8F3;
  --band: #F3EFE6;
  --card: #FFFDF9;
  --ink: #1D2127;
  --body: #3A4048;
  --muted: #5F6670;
  --line: #E4DED2;
  --accent: #2A62C4;
  --accent-soft: #E6EEFB;
  --skeleton: #EEE9DF;
  --ok: #18753F; --ok-soft: #E3F3E8;
  --err: #B42E25; --err-soft: #FBE7E5;
  --orch-f: #FCE7A1; --orch-s: #8A6A00;
  --plan-f: #D6E4FF; --plan-s: #2A62C4;
  --dev-f: #D3F0DB;  --dev-s: #18753F;
  --test-f: #FFDAD6; --test-s: #B42E25;
  --you-f: #EEE9DF;  --you-s: #5F6670;
  --shadow: 0 10px 30px -12px rgba(60,45,20,.18), 0 2px 6px rgba(60,45,20,.08);
  --shadow-sm: 0 4px 14px -6px rgba(60,45,20,.16), 0 1px 3px rgba(60,45,20,.08);
  --sans: "Albert Sans", "Noto SC Sub", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", "Noto SC Sub", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background-color: #FAF8F3;
  background-color: var(--page);
  background-image: radial-gradient(#E4DED2 1.1px, transparent 1.3px);
  background-size: 24px 24px;
  color: #3A4048; color: var(--body);
  font-family: var(--sans);
  font-size: 17px; line-height: 1.65;
  overflow-x: hidden;
}
html[lang="zh-CN"] body { line-height: 1.75; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code, kbd, .mono { font-family: var(--mono); }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 64px; line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: 44px; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.35; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { transition: opacity .1s ease; }
html.lang-fading main, html.lang-fading .nav-center, html.lang-fading .drawer { opacity: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .04em;
  color: var(--accent); text-transform: none;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.lead { font-size: 19px; color: var(--body); max-width: 40em; }
mark.hl {
  color: inherit; padding: 0 .12em; border-radius: 3px;
  background: linear-gradient(180deg, transparent 52%, #E6EEFB 52%);
  background: linear-gradient(180deg, transparent 52%, var(--accent-soft) 52%);
}
.tag-illus {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--muted);
  border: 1px dashed #CFC7B8; border-radius: 999px; padding: 2px 10px; background: var(--page);
}

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--ink); color: #FAF8F3;
  font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: #CFC7B8; }
.btn--ghost:hover { border-color: var(--ink); background: var(--card); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.is-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn--ghost.is-ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .25; transform: scale(0);
  animation: ripple .5s ease-out forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; }
  .btn:active, .pill-link:active, .nav-link:active { transform: scale(.97); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 64px;
  background: rgba(250,248,243,.86);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.wordmark { font-family: var(--mono); font-weight: 500; font-size: 19px; color: var(--ink); letter-spacing: -.01em; display: inline-flex; align-items: center; min-height: 44px; }
.wordmark:hover { text-decoration: none; }
.wordmark b { color: var(--accent); font-weight: 500; }
.nav-center { flex: 1; display: flex; justify-content: center; gap: 4px; transition: opacity .1s ease; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--body); font-size: 15px; background: none; border: 0; cursor: pointer;
  transition: transform .22s ease, color .22s ease, background-color .22s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(29,33,39,.05); transform: translateY(-3px); text-decoration: none; }
.nav-link .caret { width: 10px; height: 10px; transition: transform .25s ease; }
.dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 6px); left: 50%; width: 360px; margin-left: -180px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 8px; list-style: none; margin-top: 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.dd.is-open .dd-panel, .no-js .dd:hover .dd-panel, .no-js .dd:focus-within .dd-panel {
  opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .2s ease, transform .2s ease;
}
.dd.is-open .caret { transform: rotate(180deg); }
.dd-panel a { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 10px; color: var(--body); font-size: 14.5px; line-height: 1.45; }
.dd-panel a:hover { background: var(--band); text-decoration: none; }
.dd-panel .n { font-family: var(--mono); font-size: 12px; color: var(--accent); flex: none; width: 20px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
}
.lang button {
  min-height: 38px; min-width: 52px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent;
  font-size: 14px; color: var(--muted); cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #FAF8F3; }
.no-js .lang { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .35s ease, opacity .35s ease, top .35s ease; }
.menu-btn i:nth-child(1) { top: 15px; } .menu-btn i:nth-child(2) { top: 21px; } .menu-btn i:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-btn[aria-expanded="true"] i:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* chapter progress */
.chapters { position: fixed; left: 22px; top: 50%; z-index: 30; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.chapters.is-on { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.chapters li { margin: 0; }
.chapters a { display: flex; align-items: center; gap: 10px; min-height: 30px; color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.chapters a:hover { text-decoration: none; color: var(--ink); }
.chapters .dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #BDB4A3; background: var(--page); transition: all .25s ease; flex: none; }
.chapters a.is-active { color: var(--ink); }
.chapters a.is-active .dot { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.chapters .lbl { opacity: .0; transition: opacity .2s ease; white-space: nowrap; }
.chapters:hover .lbl, .chapters a.is-active .lbl { opacity: 1; }
@media (min-width: 1360px) { .chapters .lbl { opacity: .75; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 148px 0 0; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; left: 50%; top: 210px; width: 760px; height: 520px; margin-left: -380px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(42,98,196,.14), rgba(42,98,196,0)); filter: blur(10px);
}
.hero .eyebrow { justify-content: center; }
.hero .eyebrow::before { display: none; }
.chip-ver { font-family: var(--mono); font-size: 13px; color: var(--body); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; display: inline-block; }
.hero h1 { margin: 26px auto 0; max-width: 12em; }
.hero h1 span { display: block; }
.hero .lead { margin: 24px auto 0; max-width: 34em; font-size: 20px; }
.hero-ctas { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }
.term-stage { position: relative; margin: 56px auto 0; max-width: 820px; padding: 0 0 0; }
.term {
  position: relative; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.term-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--line); background: #FBF9F4; }
.term-dots { display: flex; gap: 7px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #CFC7B8; }
.term-head .right { display: flex; align-items: center; gap: 10px; }
.replay { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--body); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: transform .22s ease, border-color .2s; }
.replay:hover { transform: translateY(-3px); border-color: #BDB4A3; }
.replay svg { width: 14px; height: 14px; }
.no-js .replay, .replay[hidden], [hidden] { display: none !important; }
.term-body { padding: 22px 24px 26px; font-family: var(--mono); font-size: 14.5px; line-height: 1.6; min-height: 330px; }
.term-in { display: flex; gap: 10px; color: var(--ink); font-weight: 500; padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.term-in .prompt { color: var(--accent); }
.caret-blink { display: inline-block; width: 8px; height: 1.1em; background: var(--accent); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-in .caret-blink { display: none; }
.term.is-typing .term-in .caret-blink { display: inline-block; }
.msgs { list-style: none; margin: 0; padding: 0; }
.msg { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; color: var(--body); }
.who {
  flex: none; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
  border-radius: 6px; padding: 1px 8px; margin-top: 2px; border: 1px solid; white-space: nowrap;
}
.who--orch { background: var(--orch-f); border-color: var(--orch-s); color: #5E4800; }
.who--you  { background: var(--you-f); border-color: var(--you-s); color: #474D55; }
.who--plan { background: var(--plan-f); border-color: var(--plan-s); color: #1F4C99; }
.msg .txt { min-width: 0; }
.js .term:not(.is-done) .msg { opacity: 0; transform: translateY(8px); }
.js .term .msg.is-in { opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease; }

/* ---------- section scaffolding ---------- */
.section { padding: 128px 0; position: relative; }
.section--band { background: rgba(243,239,230,.72); }
.sec-head { max-width: 760px; }
.sec-head h2 { margin-top: 14px; }
.sec-head .lead { margin-top: 18px; }
.bridge { margin: 72px auto 0; text-align: center; font-size: 19px; color: var(--ink); max-width: 36em; }
.bridge::before { content: ""; display: block; width: 1.5px; height: 40px; margin: 0 auto 18px; background: linear-gradient(var(--line), #BDB4A3); }

/* ---------- problem cards ---------- */
.pains { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain { position: relative; perspective: 1000px; min-height: 280px; outline: none; cursor: default; }
.pain-tilt { position: relative; height: 100%; min-height: 280px; transition: transform .25s ease; transform-style: preserve-3d; }
.pain-inner { position: relative; height: 100%; min-height: 280px; transition: transform .5s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.pain-face {
  position: absolute; inset: 0; border-radius: 16px; padding: 26px 26px 24px; display: flex; flex-direction: column;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pain-face h3 { font-size: 22px; margin-top: 16px; }
.pain-face p { margin-top: 10px; font-size: 16.5px; }
.pain-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--band); color: var(--ink); }
.pain-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pain-hint { margin-top: auto; padding-top: 16px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.pain-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
.pain-back { transform: rotateY(180deg); background: var(--ink); border-color: var(--ink); color: #E9E5DC; justify-content: center; }
.pain-back .num { font-family: var(--mono); font-size: 13px; color: #A8ADB5; }
.pain-back p { font-size: 19px; color: #FAF8F3; line-height: 1.55; margin-top: 12px; }
.pain-back a { margin-top: 22px; color: #9FC0FF; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
.pain-back a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.pain:hover .pain-inner, .pain:focus-within .pain-inner, .pain.is-flipped .pain-inner { transform: rotateY(180deg); }
.js .pain.is-unflip .pain-inner { transform: none; }

/* ---------- how it works ---------- */
.how-sum { margin-top: 20px; font-size: 30px; line-height: 1.35; color: var(--ink); font-weight: 600; letter-spacing: -.015em; max-width: 26em; }
.how-grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.dia-sticky { position: -webkit-sticky; position: sticky; top: 92px; }
.dia-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 18px 18px 12px; }
.dia-card .tag-illus { position: absolute; top: 14px; right: 14px; }
.dia-svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 150px); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; }
.step:first-child { min-height: 36vh; padding-top: 0; justify-content: flex-start; }
.step-k { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.step-k .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #BDB4A3; color: var(--ink); font-size: 13px; background: var(--card); transition: all .3s ease; }
.step h3 { margin-top: 14px; font-size: 26px; line-height: 1.25; }
.step p { margin-top: 12px; }
.js .step { opacity: .38; transition: opacity .35s ease; }
.js .step.is-active { opacity: 1; }
.js .step.is-active .step-k .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.no-io .step, .reduce .step { opacity: 1 !important; }
.step-mini { display: none; }
.how-more { margin-top: 8px; }
.no-js .how-more { display: none; }

/* SVG diagram */
.dg text { font-family: var(--sans); fill: var(--ink); }
.dg .t-node { font-size: 14px; font-weight: 600; }
.dg .t-small { font-size: 12px; font-weight: 400; fill: var(--body); }
.dg .t-mono { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.dg .t-note { font-size: 11.5px; fill: var(--muted); }
.dg .t-red { fill: var(--err); }
.dg .t-green { fill: var(--ok); }
.dg .n-orch { fill: var(--orch-f); stroke: var(--orch-s); }
.dg .n-plan { fill: var(--plan-f); stroke: var(--plan-s); }
.dg .n-dev  { fill: var(--dev-f);  stroke: var(--dev-s); }
.dg .n-test { fill: var(--test-f); stroke: var(--test-s); }
.dg .n-you  { fill: var(--you-f);  stroke: var(--you-s); }
.dg .n-white { fill: #FFFDF9; stroke: #9AA0A8; }
.dg .n-fail { fill: var(--err-soft); stroke: var(--err); }
.dg rect, .dg ellipse { stroke-width: 1.5; }
.dg .ln { fill: none; stroke: #5F6670; stroke-width: 1.5; }
.dg .ln-blue { stroke: var(--accent); }
.dg .ln-red { stroke: var(--err); }
.dg .ln-green { stroke: var(--ok); }
.dg .dash { stroke-dasharray: 5 5; }
.dg .ghost { fill: none; stroke: var(--dev-s); stroke-dasharray: 5 4; }
.dg .beam { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 4 104; stroke-dashoffset: 4; opacity: 0; }
.dg .beam.is-run { opacity: 1; animation: beam 1.3s ease-in-out 2 forwards; }
.dg .beam--red { stroke: var(--err); }
@keyframes beam { 0% { stroke-dashoffset: 4; } 100% { stroke-dashoffset: -100; } }
.dg .hot { cursor: help; outline: none; }
.dg .hot:focus-visible > rect, .dg .hot:focus-visible > ellipse { stroke-width: 3; }
.dg .gauge-bg { fill: #EEE9DF; stroke: none; }
.dg .gauge-fg { fill: var(--accent); stroke: none; }
.dg .gauge-th { stroke: var(--err); stroke-width: 1.5; }
.dg .chip { fill: #FFFDF9; stroke: var(--dev-s); }
.dg .frame { fill: rgba(255,218,214,.22); stroke: var(--test-s); stroke-dasharray: 6 4; }
.dg .bubble { fill: #FFFDF9; stroke: var(--plan-s); }
/* stepping: only when JS turned it on */
.dg [data-s] { transition: opacity .4s ease; }
.dg.is-stepping [data-s] { opacity: .16; }
.dg.is-stepping.s1 [data-s~="1"], .dg.is-stepping.s2 [data-s~="2"], .dg.is-stepping.s3 [data-s~="3"],
.dg.is-stepping.s4 [data-s~="4"], .dg.is-stepping.s5 [data-s~="5"] { opacity: 1; }
.dg.is-stepping .pop { transform-box: fill-box; transform-origin: center; }
.dg.is-stepping.s2 .pop { animation: pop .4s cubic-bezier(.3,1.5,.5,1) both; }
.dg.is-stepping.s2 .pop.d2 { animation-delay: .25s; } .dg.is-stepping.s2 .pop.d3 { animation-delay: .5s; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

.tip {
  position: absolute; z-index: 20; max-width: 260px; padding: 10px 13px; border-radius: 10px;
  background: var(--ink); color: #F1EEE7; font-size: 14px; line-height: 1.5; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .22s ease, transform .22s ease;
}
.tip.is-on { opacity: 1; transform: none; }
.tip b { display: block; color: #fff; font-weight: 600; font-size: 13px; margin-bottom: 2px; font-family: var(--mono); }

.legend-nojs { margin-top: 28px; padding: 18px 22px; border: 1px dashed #CFC7B8; border-radius: 12px; font-size: 15px; }
.legend-nojs dt { font-weight: 600; color: var(--ink); margin-top: 6px; }
.legend-nojs dd { margin: 0; }
.nojs-note { margin: 0; padding: 10px 16px; text-align: center; font-size: 14px; background: var(--accent-soft); color: var(--ink); position: relative; z-index: 60; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 32px; background: rgba(29,33,39,.42); opacity: 0; transition: opacity .25s ease; }
.modal.is-open { display: flex; }
.modal.is-shown { opacity: 1; }
.modal-box { position: relative; width: 100%; max-width: 1060px; max-height: 100%; background: var(--card); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(29,33,39,.4); display: flex; flex-direction: column; transform: translateY(10px) scale(.98); transition: transform .25s ease; }
.modal.is-shown .modal-box { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line); }
.modal-head .wordmark { font-size: 15px; min-height: 0; }
.modal-body { overflow: auto; padding: 18px 22px 22px; -webkit-overflow-scrolling: touch; }
.modal-body svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 150px); margin: 0 auto; }
.x-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; display: grid; place-items: center; transition: transform .22s ease; }
.x-btn:hover { transform: translateY(-3px); }
.x-btn svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.5; fill: none; }
body.is-locked { overflow: hidden; }

/* ---------- 01 Plan ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.demo { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px 22px; }
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.demo-head .who { margin-top: 0; }
.qs { list-style: none; margin: 0; padding: 0; min-height: 344px; }
.qs > li { padding: 10px 0; }
.qs .msg { padding: 0; }
.q { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #FFFEFB; display: flex; gap: 12px; }
.q .qn { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 500; color: #1F4C99; background: var(--plan-f); border: 1px solid var(--plan-s); border-radius: 6px; padding: 0 7px; height: 22px; line-height: 20px; margin-top: 2px; }
.q .qt { color: var(--ink); font-size: 16px; line-height: 1.5; }
.q .rec { display: block; margin-top: 4px; font-size: 15px; color: var(--body); }
.q .rec b { color: var(--ok); font-weight: 600; }
.js .demo:not(.is-done) .pop-in { opacity: 0; transform: translateY(8px); }
.js .demo .pop-in.is-in { opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease; }
.demo-foot { margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--line); min-height: 112px; }
.final {
  margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; font-family: var(--mono); font-size: 14px; color: var(--ok);
  background: var(--ok-soft); border-radius: 10px; padding: 10px 12px;
}
.final svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 2; }
.js .final { opacity: 0; transform: translateY(6px); visibility: hidden; }
.js .final.is-in { opacity: 1; transform: none; visibility: visible; transition: opacity .3s ease, transform .3s ease; }
.no-js .go-btn { display: none; }
.go-btn .ok-ico { display: none; }
.go-btn.is-ok .ok-ico { display: inline; }
.go-btn.is-ok .lbl { display: none; }

.cards3 { margin-top: 72px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.mini-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.mini-card h3 { font-size: 19px; }
.mini-card p { margin-top: 8px; font-size: 16px; }
.mini-card--big { background: var(--ink); border-color: var(--ink); color: #E9E5DC; }
.mini-card--big h3 { color: #fff; font-size: 24px; }
.mini-card--big p { color: #D7D3CA; font-size: 17px; }
.mini-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--band); margin-bottom: 18px; color: var(--ink); }
.mini-card--big .mini-ico { background: rgba(255,255,255,.08); color: #fff; }
.mini-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- toast & mobile bar & drawer ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #FAF8F3; border-radius: 999px; padding: 10px 18px; font-size: 15px; box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: 8px; transition: opacity .2s ease, transform .2s ease;
}
.toast svg { width: 16px; height: 16px; stroke: #8FE0AE; fill: none; stroke-width: 2; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.mbar { display: none; }
.drawer-wrap { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer-wrap.is-open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(29,33,39,.38); opacity: 0; transition: opacity .3s ease; }
.drawer {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; background: var(--card);
  border-radius: 20px 20px 0 0; padding: 10px 20px 28px; transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .1s;
}
.drawer-wrap.is-shown .drawer-scrim { opacity: 1; }
.drawer-wrap.is-shown .drawer { transform: none; }
.drawer .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 4px auto 12px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a.big { display: flex; align-items: center; min-height: 52px; font-size: 18px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer .subs a { display: flex; gap: 10px; align-items: baseline; min-height: 48px; padding: 10px 0 10px 4px; color: var(--body); font-size: 16px; line-height: 1.45; border-bottom: 1px solid var(--line); }
.drawer .subs .n { font-family: var(--mono); font-size: 12px; color: var(--accent); flex: none; width: 22px; }
.drawer .sub-h { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 16px 0 2px; }
.drawer .btn { width: 100%; margin-top: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-center .nav-link { padding: 0 10px; }
  .how-grid { gap: 36px; }
  .chapters { display: none; }
}
@media (max-width: 900px) {
  .nav-center { display: none; }
  .menu-btn { display: inline-block; }
  .nav-right .gh-btn { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; line-height: 1.22; }
  .lead { font-size: 17px; }
  .nav .wrap { gap: 10px; }
  .nav-right { margin-left: auto; gap: 8px; }
  .lang button { min-width: 44px; padding: 0 10px; min-height: 38px; font-size: 13.5px; }
  .wordmark { font-size: 17px; }
  .hero { padding-top: 104px; }
  .hero h1 { margin-top: 18px; }
  .hero .lead { font-size: 17px; margin-top: 16px; }
  .hero-ctas { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .hero-ctas .btn { width: 100%; }
  .fine { font-size: 13.5px; }
  .term-stage { margin-top: 36px; }
  .term-body { padding: 16px 14px 18px; font-size: 13px; min-height: 380px; }
  .term-in { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .msg { flex-direction: column; gap: 4px; }
  .hero-glow { width: 420px; height: 420px; margin-left: -210px; animation: drift 14s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate(-30px, 0); } to { transform: translate(30px, 40px); } }

  .section { padding: 80px 0; }
  .bridge { margin-top: 48px; font-size: 17px; }
  .pains {
    margin: 32px -16px 0; padding: 4px 16px 12px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .pains::-webkit-scrollbar { display: none; }
  .pain { scroll-snap-align: start; min-height: 268px; }
  .pain-tilt, .pain-inner { min-height: 268px; }
  .pain-face { padding: 22px 20px 20px; }
  .pain-back p { font-size: 17px; }

  .how-sum { font-size: 21px; }
  .how-grid { display: block; margin-top: 32px; }
  .dia-sticky { display: none; }
  .step, .step:first-child { min-height: 0; padding: 0 0 40px; display: block; }
  .js .step { opacity: 1; }
  .js .step .step-k .n { background: var(--accent); border-color: var(--accent); color: #fff; }
  .step h3 { font-size: 21px; margin-top: 10px; }
  .step-mini { display: block; margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px 8px; position: relative; }
  .step-mini svg { display: block; width: 100%; height: auto; }
  .how-more .btn { width: 100%; }

  .modal { padding: 0; }
  .modal-box { max-width: none; height: 100%; border-radius: 0; }
  .modal-body { padding: 12px; }
  .modal-body svg { width: 720px; max-width: none; max-height: none; }

  .demo { padding: 14px 14px 18px; }
  .qs { min-height: 0; }
  .q { padding: 10px 12px; gap: 10px; }
  .q .qt { font-size: 16px; }
  .demo-foot { min-height: 128px; }
  .go-btn { width: 100%; }
  .cards3 {
    margin: 44px -16px 0; padding: 4px 16px 12px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
    gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .cards3::-webkit-scrollbar { display: none; }
  .mini-card { scroll-snap-align: start; padding: 20px; }

  .chapters-m { position: fixed; top: 64px; left: 0; right: 0; z-index: 45; display: flex; gap: 2px; padding: 0 8px; height: 40px; align-items: center; overflow-x: auto; scrollbar-width: none;
    background: rgba(250,248,243,.94); border-bottom: 1px solid var(--line); transform: translateY(-100%); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s; }
  .chapters-m::-webkit-scrollbar { display: none; }
  .chapters-m.is-on { transform: none; opacity: 1; visibility: visible; transition: transform .25s ease, opacity .25s ease; }
  .chapters-m a { flex: 1 0 auto; text-align: center; font-size: 13px; font-family: var(--mono); color: var(--muted); padding: 0 8px; line-height: 40px; position: relative; }
  .chapters-m a.is-active { color: var(--ink); }
  .chapters-m a.is-active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; }

  .mbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; gap: 8px; padding: 8px;
    background: rgba(255,253,249,.96); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
    transform: translateY(140%); transition: transform .3s ease;
  }
  .mbar.is-on { transform: none; }
  .mbar .btn { flex: 1; min-height: 48px; }
  .mbar .gh-ico { flex: none; width: 48px; padding: 0; }
  .toast { bottom: 92px; }
  .no-js .mbar { display: none; }
}
@media (min-width: 761px) { .chapters-m { display: none; } }

/* reduced motion: no movement, content fully shown */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .pain-inner { transition: none; }
  .hero-glow { animation: none !important; }
}
.reduce .dg .beam { display: none; }
.reduce .js .msg, .reduce .msg, .reduce .pop-in { opacity: 1 !important; transform: none !important; }
/* the node notes feed the tooltips when JS is on; keep them for screen readers only */
.js .legend-nojs { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; border: 0; }

/* =====================================================================
   Round 2: 02 Build → footer, plus round-two motion
   ===================================================================== */
.wrap--narrow { max-width: 860px; }
.split--rev > :first-child { order: 2; }
.split--rev > :last-child { order: 1; }
.who--dev  { background: var(--dev-f);  border-color: var(--dev-s);  color: #125A30; }
.who--test { background: var(--test-f); border-color: var(--test-s); color: #8E241D; }
.mono-h { font-family: var(--mono); font-weight: 500; letter-spacing: -.01em; }

/* highlighter: full by default, swept in when JS is on */
mark.hl { background-image: linear-gradient(180deg, transparent 54%, #E6EEFB 54%); background-image: linear-gradient(180deg, transparent 54%, var(--accent-soft) 54%);
  background-color: transparent; background-repeat: no-repeat; background-size: 100% 100%; transition: background-size .4s ease; }
.js.anim mark.hl:not(.is-on) { background-size: 0% 100%; }

/* title reveal by clause */
.rv-c { display: inline-block; }
.js.anim .rv:not(.is-on) .rv-c { opacity: 0; transform: translateY(.45em); }
.js.anim .rv .rv-c { transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); }

/* word-by-word lighting */
.wl .w { transition: color .25s ease; }
.js.anim .wl .w { color: #BDB4A3; }
.js.anim .wl .w.on { color: var(--ink); }

/* generic pill buttons used in demos */
.pill {
  position: relative; overflow: hidden; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--card); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: transform .22s ease, background-color .2s ease, color .2s ease, box-shadow .22s ease, opacity .2s;
}
.pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.pill[aria-pressed="true"] { background: var(--ink); color: #FAF8F3; }
.pill--ghost { border-color: #CFC7B8; color: var(--body); }
.pill:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }
@media (hover: none) { .pill:hover { transform: none; box-shadow: none; } .pill:active { transform: scale(.97); } }
.no-js .pill, .no-js .bt-foot, .no-js .qm-btns, .no-js #sum-open, .no-js .car-nav, .no-js .car-dots { display: none !important; }

/* tabs (02 roles, install) */
.tabs { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--band); border: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: color .2s ease; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab-slider { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), width .3s cubic-bezier(.2,.7,.2,1); }
.no-js .tab-slider { display: none; }
.rdot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid; flex: none; }
.rdot--orch { background: var(--orch-f); border-color: var(--orch-s); } .rdot--plan { background: var(--plan-f); border-color: var(--plan-s); }
.rdot--dev { background: var(--dev-f); border-color: var(--dev-s); } .rdot--test { background: var(--test-f); border-color: var(--test-s); }
.panels { position: relative; }
.tabpanel { padding-top: 18px; }
.js .tabpanel { display: none; }
.js .tabpanel.is-on { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.nojs-h { display: none; margin: 0 0 8px; }
.no-js .nojs-h { display: block; }
.no-js .tabs { display: none; }
.no-js .tabpanel + .tabpanel { border-top: 1px dashed var(--line); margin-top: 16px; }

/* 02 */
.demo-col { display: flex; flex-direction: column; gap: 18px; }
.rwn { margin: 0; }
.rwn > div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.rwn > div:last-child { border-bottom: 0; }
.rwn dt { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.rwn dd { margin: 0; color: var(--ink); font-size: 16.5px; }
.rwn .never dt, .rwn .never dd { color: var(--err); }
.handoff { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 16px 18px 12px; }
.handoff-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; color: var(--ink); }
.handoff-lines { list-style: none; margin: 0; padding: 0; }
.handoff-lines li { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; cursor: help; outline: none; transition: background-color .2s ease; min-height: 40px; }
.handoff-lines li:hover, .handoff-lines li:focus-visible { background: var(--band); }
.handoff-lines code { font-size: 13.5px; color: var(--ink); word-break: break-word; }
.handoff-lines li:first-child code { color: var(--err); font-weight: 500; }
.handoff .legend-nojs { margin-top: 12px; }
.cards-collage { margin-top: 64px; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.cards-collage .mini-card--tall { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; background: var(--ink); border-color: var(--ink); }
.cards-collage .mini-card--tall h3 { color: #fff; font-size: 24px; } .cards-collage .mini-card--tall p { color: #D7D3CA; }
.cards-collage .mini-card--tall .mini-ico { background: rgba(255,255,255,.08); color: #fff; margin-bottom: auto; }
.tag-exp { display: inline-block; vertical-align: 3px; margin-left: 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: #8A6A00; background: var(--orch-f); border: 1px solid var(--orch-s); border-radius: 999px; padding: 0 8px; }
.cards3--even { grid-template-columns: repeat(3, 1fr); }

/* 03 batch test demo */
.bt { margin-top: 48px; padding: 18px 22px 22px; }
.bt-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #FFFEFB; }
.bt-row { display: grid; grid-template-columns: 110px 1fr 180px; gap: 16px; align-items: center; padding: 14px 18px; }
.bt-head { background: var(--band); font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 10px; padding-bottom: 10px; }
.bt-batch { border-top: 1px solid var(--line); }
.bt-id { font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: 15px; }
.bt-stg { font-family: var(--mono); font-size: 14px; color: var(--body); }
.bt-status { justify-self: start; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; border-radius: 999px; padding: 3px 11px; border: 1px solid; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st--pending { color: #8A6A00; background: #FFF6D6; border-color: #E8D48A; }
.st--testing { color: var(--accent); background: var(--accent-soft); border-color: #B9CDF0; }
.st--passed, .st--done { color: var(--ok); background: var(--ok-soft); border-color: #A9D8B9; }
.st--dev { color: #125A30; background: #EEF8F1; border-color: #BFE3CB; }
.st--todo { color: var(--muted); background: #F3EFE6; border-color: var(--line); }
.st--stuck { color: var(--err); background: var(--err-soft); border-color: #EDB5AF; }
.st--partial { color: #8A6A00; background: #FFF6D6; border-color: #E8D48A; }
.st--testing::before { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
/* B1 status: without JS the end of the story is shown */
.bt-batch[data-b="1"] .st { display: none; }
.no-js .bt-batch[data-b="1"] .st--passed { display: inline-flex; }
.js .bt[data-state="idle"] .st--pending { display: inline-flex; }
.js .bt[data-state="running"] .st--testing, .js .bt[data-state="failed"] .st--testing, .js .bt[data-state="fixing"] .st--testing,
.js .bt[data-state="fixed"] .st--testing, .js .bt[data-state="retesting"] .st--testing { display: inline-flex; }
.js .bt[data-state="passed"] .bt-batch[data-b="1"] .st--passed { display: inline-flex; }
/* tester rows: collapse/expand (layout transition) */
.bt-run { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease; }
.bt-run-in { overflow: hidden; min-height: 0; padding: 0 18px; }
.js .bt[data-state="idle"] .bt-run { grid-template-rows: 0fr; }
.bt-run-in > :last-child { margin-bottom: 16px; }
.tr { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); margin-top: 8px; }
.tr .who { justify-self: start; }
.tr-body { min-height: 30px; display: flex; align-items: center; }
.tr-prog, .tr-fail, .tr-ok { display: none; margin: 0; }
.tr[data-st="prog"] .tr-prog { display: flex; }
.tr[data-st="fail"] .tr-fail, .tr[data-st="fixing"] .tr-fail { display: block; }
.tr[data-st="ok"] .tr-ok { display: inline-flex; }
.tr-prog { align-items: center; gap: 10px; width: 100%; flex-wrap: wrap; }
.sk { display: inline-block; height: 10px; width: 120px; border-radius: 6px; background: linear-gradient(90deg, #EEE9DF 0%, #F7F4EE 50%, #EEE9DF 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.sk--short { width: 60px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
.tr-steps { display: inline-flex; gap: 12px; font-size: 13px; color: #A9A194; font-family: var(--mono); }
.tr-steps .ps::before { content: "○ "; }
.tr[data-step="1"] .ps1, .tr[data-step="2"] .ps2 { color: var(--accent); }
.tr[data-step="1"] .ps1::before, .tr[data-step="2"] .ps2::before { content: "● "; }
.tr[data-step="2"] .ps1 { color: var(--ok); }
.tr[data-step="2"] .ps1::before { content: "✓ "; }
.tr-bar { flex: 1 1 80px; min-width: 60px; height: 4px; border-radius: 4px; background: var(--skeleton); overflow: hidden; }
.tr-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width 1s linear; }
.tr[data-step="1"] .tr-bar i { width: 50%; } .tr[data-step="2"] .tr-bar i { width: 100%; }
.tr-fail { color: var(--err); font-family: var(--mono); font-size: 14px; font-weight: 500; }
.tr[data-st="fail"] { border-color: #EDB5AF; background: #FFF8F7; }
.tr[data-st="fixing"] .tr-fail { opacity: .45; text-decoration: line-through; }
.tr-ok { color: var(--ok); width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft); align-items: center; justify-content: center; }
.tr-ok svg, .bt-msg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tr.shake { animation: shake .45s ease; }
@keyframes shake { 0%,100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.bt-msg { display: none; margin: 10px 0 0; font-size: 15px; align-items: center; gap: 8px; }
.m-fixed { color: var(--body); font-family: var(--mono); font-size: 14px; }
.m-pass { color: var(--ok); font-weight: 600; background: var(--ok-soft); border-radius: 10px; padding: 10px 12px; }
.no-js .bt-msg, .js .bt[data-state="retesting"] .m-fixed { display: flex; }
.js .bt[data-state="passed"] .m-pass { display: flex; animation: fadein .3s ease; }
.bt-foot { margin-top: 16px; display: flex; gap: 12px; align-items: center; }
.bt-btn .bl { display: none; }
.bt[data-state="idle"] .bl-run, .bt[data-state="running"] .bl-run, .bt[data-state="failed"] .bl-fix, .bt[data-state="fixing"] .bl-fix,
.bt[data-state="fixed"] .bl-retest, .bt[data-state="retesting"] .bl-retest, .bt[data-state="passed"] .bl-reset { display: inline; }
.bt-btn:disabled { opacity: .55; cursor: progress; transform: none; box-shadow: none; }
.bt[data-state="passed"] .bt-btn { background: var(--card); color: var(--ink); border-color: #CFC7B8; }

/* number wall */
.nums { margin-top: 56px; display: grid; gap: 20px; }
.nums--4 { grid-template-columns: repeat(4, 1fr); }
.nums--3 { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.num { border-top: 1.5px solid var(--ink); padding-top: 16px; }
.num b { display: block; font-size: 56px; line-height: 1; font-weight: 600; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num > span { display: block; margin-top: 10px; font-size: 16px; color: var(--muted); }
.num-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

/* 04 recover */
.pl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pr { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; background: #FFFEFB; border: 1px solid var(--line); }
.pid { font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: 14px; }
.pname { color: var(--ink); font-size: 16px; }
.pr .st { display: none; }
.pr[data-st="done"] .st[data-v="done"], .pr[data-st="stuck"] .st[data-v="stuck"], .pr[data-st="todo"] .st[data-v="todo"], .pr[data-st="partial"] .st[data-v="partial"] { display: inline-flex; }
.pr[data-st="stuck"] { border-color: #EDB5AF; background: #FFF8F7; }
.pr--split { display: none; }
.rc[data-mode="split"] .pr--split { display: grid; }
.rc[data-mode="split"] .pr[data-id="p3"] { display: none; }
.pr.is-new { animation: popin .35s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes popin { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.pr.is-changed { box-shadow: 0 0 0 3px var(--accent-soft); border-color: #B9CDF0; background: #FBFCFF; }
.rc-notes { list-style: none; margin: 14px 0 0; padding: 0; min-height: 46px; }
.rc-notes li { display: none; font-size: 15px; color: var(--ink); background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; }
.no-js .rc-notes li { display: block; margin-top: 6px; background: var(--band); }
.rc[data-mode="approach"] li[data-for="approach"], .rc[data-mode="reorder"] li[data-for="reorder"], .rc[data-mode="split"] li[data-for="split"], .rc[data-mode="descope"] li[data-for="descope"] { display: block; animation: fadein .3s ease; }
.rc-btns { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.rc-lower { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.trace { position: relative; padding-left: 34px; }
.trace-line { position: absolute; left: 9px; top: 18px; bottom: 18px; width: 2px; background: var(--line); border-radius: 2px; }
.trace-line i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--accent); border-radius: 2px; transform-origin: top; }
.js.anim .trace-line i { transform: scaleY(0); transform: scaleY(var(--p, 0)); }
.trace ol { list-style: none; margin: 0; padding: 0; }
.trace li { position: relative; padding: 9px 0; font-size: 17px; color: var(--ink); transition: color .3s ease; }
.trace li::before { content: ""; position: absolute; left: -31px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--accent); border: 2px solid var(--accent); box-sizing: border-box; transition: background-color .3s ease, border-color .3s ease; }
.trace li.t-end { font-weight: 600; }
.js.anim .trace li:not(.on) { color: #B4AC9E; }
.js.anim .trace li:not(.on)::before { border-color: #CFC7B8; background: var(--page); }
.rc-cards { display: grid; gap: 16px; }

/* 05 resume */
.qm-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.gauge { margin-top: 6px; }
.g-track { position: relative; height: 16px; border-radius: 999px; background: var(--skeleton); }
.g-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--accent); transition: width .5s cubic-bezier(.2,.7,.2,1), background-color .3s; }
.qm[data-paused="true"] .g-fill { background: var(--err); }
.g-th { position: absolute; left: 90%; top: -6px; bottom: -6px; width: 2px; background: var(--err); border-radius: 2px; }
.g-labels { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 14px; }
.g-val { font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.g-thl { color: var(--err); }
.qm-btns { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.qm-msgs { min-height: 70px; margin-top: 12px; }
.qm-msg { display: none; margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.no-js .qm-msg { display: block; margin-top: 6px; }
.m-pause { background: var(--err-soft); color: #7E1F19; }
.m-reset { background: var(--ok-soft); color: var(--ok); }
.qm[data-msg="pause"] .m-pause, .qm[data-msg="reset"] .m-reset { display: block; animation: fadein .3s ease; }
.sum-card { margin-top: 6px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #FFFEFB; }
.sum-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--orch-f); border: 1px solid var(--orch-s); display: grid; place-items: center; flex: none; color: #5E4800; }
.sum-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.sum-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15px; line-height: 1.4; }
.sum-t b { color: var(--ink); font-size: 15px; }
.sum-t span { color: var(--muted); }
.sum-doc { margin-top: 12px; }
.qm > .sum-doc { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #FFFEFB; }
.doc-h1 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.doc-dl { margin: 0; }
.doc-dl > div { padding: 10px 0; border-top: 1px solid var(--line); }
.doc-dl dt { font-weight: 600; color: var(--ink); font-size: 15px; }
.doc-dl dd { margin: 2px 0 0; font-size: 16px; }
.doc-dl code { font-size: 14px; background: var(--band); padding: 2px 6px; border-radius: 6px; }
.modal--doc .modal-box { max-width: 640px; transform-origin: 0 0; }
.modal--doc .modal-body { padding: 18px 26px 26px; }

/* safeguards */
.stack { margin-top: 64px; position: relative; }
.rl { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; border-radius: 18px; background: var(--card); border: 1px solid #EDB5AF;
  box-shadow: var(--shadow); margin-bottom: 18px; transform-origin: top center; transition: transform .3s ease; }
.rl h3 { font-size: 22px; }
.rl p { margin-top: 6px; }
.rl-ico { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--err-soft); color: var(--err); }
.rl-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-height: 700px) {
  .js .stack .rl { position: -webkit-sticky; position: sticky; top: calc(110px + var(--i) * 14px); margin-bottom: 20vh; }
  .js .stack .rl:last-child { margin-bottom: 0; }
  .js .stack .rl.is-covered { transform: scale(.96); }
}
.car { position: relative; margin-top: 72px; }
.car-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.car-head h3 { font-size: 24px; }
.car-nav { display: flex; gap: 8px; }
.car-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #CFC7B8; background: var(--card); cursor: pointer; display: grid; place-items: center; transition: transform .22s ease, opacity .2s; }
.car-arrow:hover { transform: translateY(-3px); }
.car-arrow:disabled { opacity: .35; transform: none; cursor: default; }
.car-arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.car-track { margin-top: 20px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-track.is-drag { scroll-snap-type: none; }
.car-track.is-drag * { pointer-events: none; -webkit-user-select: none; user-select: none; }
.fcard { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; min-height: 150px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.fcard code { display: inline-block; font-size: 15px; font-weight: 500; color: var(--ink); background: var(--band); border-radius: 8px; padding: 3px 9px; }
.fcard p { margin-top: 14px; }
.car-dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
.car-dots button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.car-dots button::after { content: ""; width: 8px; height: 8px; border-radius: 4px; background: #CFC7B8; transition: all .25s ease; }
.car-dots button[aria-current="true"]::after { width: 22px; background: var(--ink); }
.drag-cur { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--ink); color: #FAF8F3;
  display: grid; place-items: center; font-size: 14px; font-weight: 600; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .2s ease; }
.drag-cur.is-on { opacity: 1; transform: scale(1); }
.car.has-cur .car-track, .car.has-cur .car-track * { cursor: none; }
.notice { margin-top: 64px; padding: 22px 26px; border-radius: 16px; background: var(--accent-soft); border: 1px solid #C9D8F3; }
.notice h3 { font-size: 18px; }
.notice dl { margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.notice dt { font-weight: 600; color: var(--ink); }
.notice dd { margin: 4px 0 0; }
.closing { margin: 80px auto 0; max-width: 18em; text-align: center; font-size: 36px; line-height: 1.3; font-weight: 600; color: var(--ink); letter-spacing: -.015em; }

/* install */
.inst-grid { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.inst-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.cmd { position: relative; display: flex; align-items: center; gap: 12px; }
.cmd pre { flex: 1 1 auto; min-width: 0; margin: 0; padding: 18px; background: var(--ink); border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.cmd code { font-size: 14.5px; color: #F1EEE7; white-space: pre; }
.cmd-copy { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer; overflow: hidden; transition: background-color .2s ease, transform .22s ease; }
.cmd-copy:hover { transform: translateY(-2px); background: #2457B0; border-color: #2457B0; }
.cmd-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cmd-copy.is-ok { background: var(--ok); border-color: var(--ok); }
.no-js .cmd-copy { display: none; }
.inst-note { margin-top: 12px; font-size: 14.5px; color: var(--muted); padding: 0 4px; }
.inst-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.inst-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.inst-steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #FAF8F3; font-weight: 600; font-family: var(--mono); font-size: 14px; }
.inst-steps h3 { font-size: 18px; }
.inst-steps p { margin-top: 2px; font-size: 16px; }
.inst-more { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; }
.cmd-table h3, .reqs h3 { font-size: 18px; margin-bottom: 10px; }
.cmd-table dl { margin: 0; border-top: 1px solid var(--line); }
.cmd-table dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cmd-table code { font-size: 14px; color: var(--ink); background: var(--band); border-radius: 6px; padding: 2px 7px; }
.cmd-table dd { margin: 0; font-size: 16px; }
.reqs ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.reqs li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; }
.reqs li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 4px; font-size: 19px; font-weight: 600; color: var(--ink); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.chev { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); transition: background-color .2s; }
.chev::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); transition: transform .35s ease, margin .35s ease; }
.faq details[open] .chev::before { transform: rotate(45deg); margin: -6px 0 0 -4px; }
.faq details[open] .chev { background: var(--accent-soft); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 4px 22px; max-width: 46em; }

/* CTA */
.cta { padding-top: 96px; padding-bottom: 120px; }
.cta-card { position: relative; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 72px 32px; box-shadow: var(--shadow); max-width: 880px; margin: 0 auto; }
.cta-card .lead { margin: 18px auto 0; }
.cta-card .hero-ctas { margin-top: 30px; }
.edge { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.edge rect { width: calc(100% - 2px); height: calc(100% - 2px); fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 14 86; stroke-dashoffset: 14; opacity: 0; }
.edge.is-run rect { animation: edge 2.6s ease-in-out forwards; }
@keyframes edge { 0% { stroke-dashoffset: 14; opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -86; opacity: 0; } }

/* footer (the only dark area) */
.foot { background: #1D2127; color: #E9E5DC; padding: 64px 0 72px; }
.foot-mark { font-size: 18px; color: #fff; }
.foot-mark .mono { font-weight: 500; }
.foot-legal { margin-top: 14px; color: #A8ADB5; font-size: 15px; max-width: 44em; }
.foot-row { margin-top: 28px; padding-top: 20px; border-top: 1px solid #343A43; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-lic { color: #A8ADB5; font-size: 15px; }
.foot-links { display: flex; gap: 6px; flex-wrap: wrap; margin-left: -10px; }
.foot-links a { color: #E9E5DC; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; transition: transform .22s ease, background-color .2s; }
.foot-links a:hover { background: #2A2F37; text-decoration: none; transform: translateY(-3px); }

/* hero round-two: tilt + pointer glow */
.term-stage { perspective: 1200px; }
.term { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hero-glow { will-change: transform; }

/* --------------- responsive for round 2 --------------- */
@media (max-width: 1080px) {
  .nums--4 { grid-template-columns: repeat(2, 1fr); }
  .bt-row { grid-template-columns: 80px 1fr 150px; }
  .tr { grid-template-columns: 1fr; gap: 8px; }
  .fcard { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 900px) {
  .split--rev > :first-child, .split--rev > :last-child { order: 0; }
  .rc-lower, .inst-grid, .inst-more { grid-template-columns: 1fr; gap: 32px; }
  .notice dl { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .bridge { margin-top: 32px; }
  .bridge::before { height: 24px; margin-bottom: 10px; }
  .swipe { margin-left: -16px !important; margin-right: -16px !important; padding: 4px 16px 12px !important; display: grid; grid-template-columns: none !important; grid-template-rows: none !important;
    grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { scroll-snap-align: start; }
  .cards-collage { margin-top: 32px; }
  .cards-collage .mini-card--tall { grid-row: auto; min-height: 0; }
  .cards-collage .mini-card--tall .mini-ico { margin-bottom: 18px; }
  .cards3 { margin-top: 32px; }
  .mini-card .mini-ico { margin-bottom: 12px; }
  .demo-col { gap: 14px; }
  .tab { padding: 0 14px; font-size: 14.5px; }
  .tabpanel { padding-top: 10px; }
  .rwn > div { grid-template-columns: 64px 1fr; gap: 10px; padding: 9px 0; }
  .rwn dd { font-size: 16px; }
  .handoff { padding: 12px 14px 8px; }
  .handoff-lines li { padding: 6px 10px; min-height: 44px; }
  .handoff-lines code { font-size: 13px; }

  .bt { margin-top: 28px; padding: 14px 12px 14px; }
  .bt-table { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .bt-head { display: none; }
  .bt-batch { border: 1px solid var(--line); border-radius: 12px; background: #FFFEFB; margin-top: 8px; }
  .bt-head + .bt-batch { margin-top: 0; }
  .bt-row { grid-template-columns: auto 1fr; gap: 4px 10px; padding: 10px 12px; }
  .bt-id { font-size: 16px; } .bt-status { justify-self: end; } .bt-stg { grid-column: 1 / -1; }
  .bt-run-in { padding: 0 10px; }
  .tr { padding: 8px 10px; margin-top: 6px; }
  .sk { width: 70px; } .sk--short { display: none; }
  .bt-foot .btn { width: 100%; }

  .nums { margin-top: 32px; }
  .nums.swipe { grid-auto-columns: 44%; }
  .num b { font-size: 40px; }
  .num > span { font-size: 15px; }

  .pr { grid-template-columns: 38px 1fr auto; padding: 9px 12px; gap: 8px; }
  .pname { font-size: 15.5px; }
  .rc-btns .pill { flex: 1 1 calc(50% - 4px); }
  .rc-btns #rc-reset { flex-basis: 100%; }
  .rc-lower { margin-top: 36px; }
  .trace li { font-size: 16px; padding: 5px 0; }

  .qm-btns .pill { flex: 1; }
  .qm-msgs { min-height: 92px; }
  .sum-card { flex-wrap: wrap; }
  .sum-card .btn { width: 100%; }
  .modal--doc .modal-box { max-width: none; }
  .modal--doc .modal-body { padding: 16px; }

  .stack { margin-top: 32px; }
  .rl { padding: 16px 18px; gap: 14px; margin-bottom: 10px; }
  .rl h3 { font-size: 18px; }
  .rl-ico { width: 40px; height: 40px; }
  .js .stack .rl { margin-bottom: 12vh; top: calc(80px + var(--i) * 14px); }
  .js .stack .rl.is-covered { transform: none; }
  .car { margin-top: 44px; }
  .car-head h3 { font-size: 20px; }
  .fcard { flex-basis: 80%; min-height: 0; padding: 18px; }
  .car-nav { display: none; }
  .car-dots { margin-top: 0; }
  .notice { margin-top: 32px; padding: 18px; }
  .closing { margin-top: 44px; font-size: 26px; }

  .inst-grid { margin-top: 28px; gap: 18px; }
  .inst-card { padding: 10px; }
  .cmd { gap: 8px; }
  .cmd pre { padding: 14px; }
  .cmd-copy { padding: 0 14px; }
  .cmd code { font-size: 13.5px; }
  .inst-steps { gap: 10px; }
  .inst-steps li { padding: 12px 14px; }
  .inst-more { margin-top: 28px; gap: 24px; }
  .cmd-table dl > div { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .reqs li { padding: 9px 0 9px 26px; }
  .reqs li::before { top: 16px; }

  .faq { margin-top: 20px; }
  .faq summary { font-size: 17px; min-height: 56px; padding: 10px 2px; }

  .cta { padding-top: 40px; padding-bottom: 72px; }
  .cta-card { padding: 40px 18px; border-radius: 22px; }
  .edge rect { rx: 22px; ry: 22px; }
  .foot { padding: 40px 0 32px; }
  .term-stage { perspective: none; }
  .js:not(.reduce) .term { animation: float 6s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-8px); } }
}
/* fixes after review */
mark.hl { padding: 0 .04em; }
.tab { padding: 0 12px; font-size: 14.5px; gap: 7px; }
/* keep wide children (scrolling tabs, long commands) from widening the grid on phones */
.split > *, .inst-grid > *, .inst-more > *, .rc-lower > *, .how-grid > *, .demo-col, .tabset, .panels, .tabpanel, .cmd { min-width: 0; }
@media (max-width: 900px) {
  .split, .rc-lower, .inst-grid, .inst-more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .fine, .num-note, .inst-note, .foot-legal, .foot-lic, .legend-nojs { font-size: 16px; }
  .lang { padding: 2px; }
  .lang button { min-height: 44px; }
  .chapters-m { height: 44px; }
  .chapters-m a { line-height: 44px; }
}
@media (max-width: 760px) {
  .bt-row:not(.bt-head) .bt-status { grid-row: 1; grid-column: 2; }
  .bt-row:not(.bt-head) .bt-id { grid-row: 1; grid-column: 1; }
  .bt-row:not(.bt-head) .bt-stg { grid-row: 2; }
}
