/* ============================================================
   能抓老鼠 · 经营瓶颈解决方案库
   视觉系统：暖纸 / 墨色 / 余烬橙；编辑部式排版 + 技术矩阵
   ============================================================ */

:root {
  --paper: #fbfaf8;
  --paper-2: #f3f1ec;
  --surface: #ffffff;
  --surface-2: #f8f6f2;
  --ink: #1f2328;
  --ink-2: #343b42;
  --muted: #6b7280;
  --muted-2: #9aa1ab;
  --line: rgba(31, 35, 40, 0.1);
  --line-strong: rgba(31, 35, 40, 0.24);
  --ember: #b4442a;
  --ember-deep: #8f331f;
  --ember-soft: rgba(180, 68, 42, 0.07);
  --gold: #9a7a35;
  --good: #4d6957;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, serif;
  --mono: "Cascadia Mono", "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --max: 1080px;
  --radius: 5px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 650px at 88% -12%, rgba(180, 68, 42, 0.035), transparent 62%),
    radial-gradient(900px 600px at -12% 32%, rgba(154, 122, 53, 0.025), transparent 58%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.9'/></svg>");
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--ember); color: #fff7ef; }

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; }

.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 250, 248, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15.5px; font-weight: 700; letter-spacing: 0.06em; }
.brand-text span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 4px;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav a.active::after { transform: scaleX(1); }
.head-actions { display: flex; align-items: center; gap: 12px; }
.head-wecom {
  padding: 5px 0;
  border-bottom: 1px solid rgba(180, 68, 42, 0.32);
  font-size: 12.5px;
  color: var(--ember-deep);
  text-decoration: none;
  white-space: nowrap;
}
.head-wecom:hover { border-color: var(--ember); color: var(--ember); }
@media (max-width: 1100px) { .head-wecom { display: none; } }

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 24px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: #f7f4ee;
  padding: 46px 0 20px;
  color: var(--muted);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.foot-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}
.foot-brand p {
  margin-top: 12px;
  max-width: 38ch;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}
.foot-label {
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.foot-col a { color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--ember); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted-2);
}

/* ---------- buttons / links / tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { background: var(--ember-deep); border-color: var(--ember-deep); color: #fff7ef; }
.btn:active { transform: translateY(1px) scale(0.995); }
.btn[disabled] { opacity: 0.42; pointer-events: none; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-primary { background: var(--ember); border-color: var(--ember); color: #fff8f1; }
.btn-primary:hover { background: var(--ember-deep); border-color: var(--ember-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn .btn-arrow { font-family: var(--mono); font-size: 15px; transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--ember); border-color: var(--ember); }
.text-link .arw { font-family: var(--mono); transition: transform 0.25s var(--ease); }
.text-link:hover .arw { transform: translateX(3px); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.back-link:hover { color: var(--ember); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  white-space: nowrap;
}
.tag--force { border-color: rgba(193, 74, 38, 0.34); color: var(--ember-deep); }
.tag--c { border-color: rgba(160, 122, 53, 0.4); color: #7d5c20; }
.tag--dim { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tag--product { border-color: var(--line-strong); }
.tag--soft { background: var(--surface); }

.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-deep);
}
.kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--ember);
}
.kicker--light { color: #e5b39e; }
.kicker--light::before { background: #e5b39e; }

/* ---------- sections ---------- */
.section { padding: 92px 0; border-bottom: 1px solid var(--line); }
.section--tight { padding: 62px 0; }
.section--flush { border-bottom: 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 46px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 16px;
}
.section-head p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 46ch;
  padding-bottom: 4px;
}
.section-head .head-note {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 78px 0 64px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 22px 0 26px;
  max-width: 12em;
}
.hero h1 .mark {
  font-style: normal;
  color: var(--ember);
  position: relative;
  white-space: nowrap;
}
.hero h1 .mark::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.02em;
  height: 0.34em;
  background: rgba(193, 74, 38, 0.12);
  z-index: -1;
}
.hero-sub {
  max-width: 50ch;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.85;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-direct {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.hero-direct a {
  color: var(--ember-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 68, 42, 0.3);
}
.hero-direct a:hover { border-color: var(--ember); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; background: var(--ember); border-radius: 50%; }

.hero-board {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 18px 22px 0 -14px rgba(25, 20, 16, 0.09), 0 30px 60px -50px rgba(25, 20, 16, 0.5);
  padding: 22px 24px 20px;
}
.hero-board::before {
  content: "MATRIX 01";
  position: absolute;
  top: -9px;
  left: 22px;
  padding: 0 7px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.board-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.board-title { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.board-title span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); margin-top: 5px; }
.board-count { text-align: right; font-family: var(--mono); line-height: 1.1; }
.board-count strong { display: block; font-size: 28px; color: var(--ember); font-weight: 500; }
.board-count span { font-size: 9px; letter-spacing: 0.14em; color: var(--muted); }

.board-matrix { display: grid; grid-template-columns: 54px repeat(8, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.bm-corner { border-bottom: 1px solid var(--line); }
.bm-col {
  padding: 8px 0 7px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  writing-mode: horizontal-tb;
}
.bm-label {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  gap: 7px;
}
.bm-label b { font-weight: 500; font-size: 9px; color: var(--muted); width: 8px; }
.bm-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  min-height: 30px;
  position: relative;
}
.bm-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.bm-dot--1 { background: rgba(193, 74, 38, 0.45); }
.bm-dot--2 { width: 7px; height: 7px; background: var(--ember); }
.bm-dot--3 { width: 9px; height: 9px; background: var(--ember); box-shadow: 0 0 0 2px rgba(193, 74, 38, 0.16); }
.board-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.board-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.board-legend i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; }
.board-legend i::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ember); }
.board-legend i:nth-child(2)::before { background: rgba(193, 74, 38, 0.45); }
.board-legend i:nth-child(3)::before { background: var(--line-strong); }

/* ---------- stat band ---------- */
.stat-band {
  border-bottom: 1px solid var(--line);
}
.stat-band-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: 34px 28px 32px 28px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  font-family: var(--mono);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stat-num em { font-style: normal; font-size: 0.45em; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stat-label { font-size: 13.5px; font-weight: 600; margin-top: 8px; }
.stat-note { font-size: 11.5px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.03em; }

/* ---------- dimension list ---------- */
.dim-list { border-top: 1px solid var(--line-strong); }
.dim-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 0.9fr) minmax(0, 1.25fr) 96px 26px;
  gap: 22px;
  align-items: center;
  padding: 20px 8px 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.25s var(--ease), padding 0.25s var(--ease);
}
.dim-row:hover { background: var(--ember-soft); padding-left: 10px; }
.dim-row__idx { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.dim-row__name { display: flex; flex-direction: column; gap: 2px; }
.dim-row__name strong { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.dim-row__name span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.dim-row__q { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.dim-row__q small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; font-family: var(--mono); letter-spacing: 0.02em; }
.dim-row__count { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-align: right; letter-spacing: 0.03em; }
.dim-row__arrow { font-family: var(--mono); color: var(--muted); transition: transform 0.25s var(--ease), color 0.25s; }
.dim-row:hover .dim-row__arrow { transform: translateX(4px); color: var(--ember); }

/* ---------- forces / 3C dark ---------- */
.lens-section {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink);
  padding: 92px 0;
}
.lens-section .section-head h2 { color: var(--paper); }
.lens-section .section-head p { color: rgba(242, 236, 226, 0.62); }
.lens-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; }
.force-list { border-top: 1px solid rgba(242, 236, 226, 0.18); }
.force-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(242, 236, 226, 0.14);
}
.force-num { font-family: var(--mono); font-size: 11px; color: rgba(242, 236, 226, 0.45); padding-top: 3px; }
.force-body strong { display: block; font-size: 16px; font-weight: 600; color: var(--paper); letter-spacing: 0.01em; }
.force-body p { margin-top: 5px; font-size: 13.5px; line-height: 1.7; color: rgba(242, 236, 226, 0.72); }
.force-body a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(242, 236, 226, 0.25); }
.force-body a:hover { color: #fff; border-color: #fff; }
.c3-panel {
  background: rgba(242, 236, 226, 0.045);
  border: 1px solid rgba(242, 236, 226, 0.18);
  padding: 30px 30px 24px;
  align-self: start;
}
.c3-panel__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: #d9a58d; text-transform: uppercase; margin-bottom: 20px; }
.c-item { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(242, 236, 226, 0.14); }
.c-item:first-of-type { border-top: 0; padding-top: 0; }
.c-letter { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: #d9a58d; padding-top: 2px; }
.c-body strong { display: block; font-size: 15px; font-weight: 600; color: var(--paper); }
.c-body span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: rgba(242, 236, 226, 0.4); margin-top: 2px; text-transform: uppercase; }
.c-body p { font-size: 12.5px; line-height: 1.65; color: rgba(242, 236, 226, 0.72); margin-top: 5px; }
.c3-panel__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(242, 236, 226, 0.14); font-size: 12px; line-height: 1.7; color: rgba(242, 236, 226, 0.64); }

/* ---------- method rail ---------- */
.method-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.method-step {
  background: var(--surface);
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  position: relative;
}
.method-num { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ember); }
.method-step h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.3; margin-top: 6px; }
.method-step p { font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.method-step .method-link { margin-top: auto; padding-top: 18px; font-size: 12px; }

/* ---------- featured ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  background: var(--surface);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: background 0.25s var(--ease);
  position: relative;
}
.feature:hover { background: #fffaf2; }
.feature--lead { grid-row: span 2; padding: 34px; }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feature-code { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.feature-title { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.32; letter-spacing: -0.01em; }
.feature--lead .feature-title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.28; }
.feature-line { font-size: 13px; color: var(--muted); line-height: 1.7; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.feature-meta b { color: var(--ink); font-weight: 500; }

/* ---------- market / facts ---------- */
.facts-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: start;
}
.facts-strip h2 { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 34px); line-height: 1.3; font-weight: 600; }
.facts-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.fact { padding: 18px 20px 16px 0; border-bottom: 1px solid var(--line); }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact-num { font-family: var(--mono); font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
.fact-num span { font-size: 13px; color: var(--muted); margin-left: 3px; }
.fact p { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
.fact small { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 3px; }
.source-line { margin-top: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em; color: var(--muted-2); line-height: 1.6; }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; padding: 90px 0; }
.cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 13em;
  margin-top: 18px;
}
.cta-inner p { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 46ch; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 6px; flex-shrink: 0; }
.cta-paw { position: absolute; right: -20px; bottom: -40px; width: 260px; opacity: 0.06; pointer-events: none; }

/* ---------- wizard ---------- */
.wizard { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 64px; padding: 56px 0 96px; align-items: start; }
.wizard-rail { position: sticky; top: 100px; }
.rail-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; margin-bottom: 22px; }
.steps { list-style: none; }
.step { position: relative; padding: 0 0 28px 22px; border-left: 1px solid var(--line); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: -4px; top: 5px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  transition: background 0.3s, border-color 0.3s;
}
.step--active::before { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 0 4px rgba(193, 74, 38, 0.12); }
.step--done::before { background: var(--ink); border-color: var(--ink); }
.step__num { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--muted-2); }
.step__label { display: block; font-size: 14px; font-weight: 600; margin-top: 2px; color: var(--muted); }
.step--active .step__label { color: var(--ink); }
.step--done .step__label { color: var(--ink-2); }
.step__hint { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 3px; line-height: 1.5; }
.rail-progress { margin-top: 30px; }
.rail-progress__meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 8px; }
.rail-bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.rail-bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ember); transition: width 0.5s var(--ease); }
.rail-save { margin-top: 22px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; color: var(--muted-2); line-height: 1.7; }

.wizard-main { min-width: 0; max-width: 820px; }
.step-head { margin-bottom: 12px; }
.step-kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--ember); text-transform: uppercase; }
.step-title { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.16; font-weight: 600; letter-spacing: -0.02em; margin-top: 12px; }
.step-desc { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin-top: 12px; max-width: 58ch; }
.step-progress { height: 2px; background: var(--line); margin: 28px 0 8px; overflow: hidden; }
.step-progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.5s var(--ease); }

.q-block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.q-block:last-of-type { border-bottom: 0; }
.q-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.q-label { font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }
.q-num { font-family: var(--mono); font-size: 10px; color: var(--muted-2); letter-spacing: 0.06em; flex-shrink: 0; }
.q-hint { color: var(--muted); font-size: 12.5px; line-height: 1.65; margin-top: 5px; max-width: 62ch; }
.q-error { display: none; color: var(--ember-deep); font-size: 12.5px; margin-top: 10px; }
.q-block--error .q-error { display: block; }
.q-block--error .option__body { border-color: rgba(193, 74, 38, 0.4); }

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.option { position: relative; display: block; }
.option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.option__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 15px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(250, 246, 238, 0.45);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.18s var(--ease);
}
.option:hover .option__body { border-color: var(--line-strong); background: var(--surface); }
.option:active .option__body { transform: scale(0.995); }
.option input:checked + .option__body {
  border-color: var(--ember);
  background: var(--ember-soft);
  box-shadow: inset 0 0 0 1px var(--ember);
}
.option input:focus-visible + .option__body { outline: 2px solid var(--ember); outline-offset: 2px; }
.option__label { font-size: 14px; font-weight: 500; line-height: 1.5; }
.option__sub { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* dimension selection */
.dim-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.dim-pick { position: relative; display: block; }
.dim-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dim-pick__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(250, 246, 238, 0.45);
  cursor: pointer;
  min-height: 128px;
  transition: border-color 0.2s, background 0.2s, transform 0.18s;
}
.dim-pick:hover .dim-pick__body { border-color: var(--line-strong); background: var(--surface); }
.dim-pick input:checked + .dim-pick__body { border-color: var(--ember); background: var(--ember-soft); box-shadow: inset 0 0 0 1px var(--ember); }
.dim-pick input:focus-visible + .dim-pick__body { outline: 2px solid var(--ember); outline-offset: 2px; }
.dim-pick__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dim-pick__name { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
.dim-pick__count { font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.dim-pick__q { font-size: 12px; line-height: 1.55; color: var(--muted); }
.dim-pick__order {
  position: absolute;
  top: 10px; right: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ember);
  opacity: 0;
  transition: opacity 0.2s;
}
.dim-pick input:checked + .dim-pick__body .dim-pick__order { opacity: 1; }
.dim-pick input:checked + .dim-pick__body .dim-pick__count { opacity: 0; }

.subq-list { margin-top: 8px; }
.subq { padding: 24px 0 4px; border-top: 1px dashed var(--line); }
.subq:first-child { border-top: 0; }
.subq__tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--ember-deep); text-transform: uppercase; margin-bottom: 4px; }
.subq__tag::before { content: ""; width: 5px; height: 5px; background: var(--ember); }
.subq .q-label { font-size: 15.5px; }
.subq .options { margin-top: 12px; }

.pick-count { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted); margin-top: 12px; }
.pick-count b { color: var(--ember); font-weight: 500; }
.pick-count.is-max b { color: var(--ink); }

/* wizard footer */
.wizard-main { padding-bottom: 28px; }
.wizard-foot {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 34px -10px 0;
  padding: 14px 10px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -18px 28px -26px rgba(25, 20, 16, 0.55);
}
.wizard-step-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.wizard-btns { display: flex; gap: 10px; }
.wizard-skip { margin-top: 12px; text-align: right; }
.wizard-skip button {
  border: 0; background: none; padding: 4px;
  font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}
.wizard-skip button:hover { color: var(--ember); border-color: var(--ember); }

.review { border: 1px solid var(--line); background: var(--surface); padding: 20px 22px; margin-top: 24px; }
.review-title { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.review-row { display: flex; gap: 16px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.review-row:first-of-type { border-top: 0; }
.review-row span:first-child { width: 96px; flex-shrink: 0; color: var(--muted); }
.review-row span:last-child { color: var(--ink); }

/* ---------- result ---------- */
.result-head { padding: 52px 0 30px; border-bottom: 1px solid var(--line); }
.result-kicker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.result-kicker .dot { width: 5px; height: 5px; background: var(--ember); border-radius: 50%; }
.result-title { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 58px); line-height: 1.14; font-weight: 600; letter-spacing: -0.03em; margin: 16px 0 18px; max-width: 20em; }
.result-title em { font-style: normal; color: var(--ember); }
.result-lede { font-size: 16px; line-height: 1.85; color: var(--ink-2); max-width: 64ch; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.result-grid { display: grid; grid-template-columns: 318px minmax(0, 1fr); gap: 60px; padding: 44px 0 90px; align-items: start; }
.result-side { position: sticky; top: 96px; }
.side-block { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.side-block:last-child { border-bottom: 0; }
.side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.side-title { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.side-note { font-family: var(--mono); font-size: 9px; color: var(--muted-2); letter-spacing: 0.04em; }
.score-list { display: flex; flex-direction: column; gap: 12px; }
.score-row { display: grid; grid-template-columns: 42px 1fr 34px; gap: 10px; align-items: center; }
.score-name { font-size: 12px; color: var(--ink-2); }
.score-bar { height: 5px; background: var(--line); position: relative; overflow: hidden; }
.score-bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); transition: width 0.8s var(--ease); }
.score-row--hot .score-bar span { background: var(--ember); }
.score-level { font-family: var(--mono); font-size: 9px; color: var(--muted); text-align: right; letter-spacing: 0.02em; }
.score-row--hot .score-level { color: var(--ember-deep); }

.pressure-list { display: flex; flex-direction: column; gap: 9px; }
.pressure { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pressure-name { font-size: 12px; color: var(--ink-2); }
.pressure-level { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em; color: var(--muted); }
.pressure-level i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.pressure-level--1 i { background: rgba(193, 74, 38, 0.45); }
.pressure-level--2 i { background: var(--ember); }
.pressure-level--3 i { background: var(--ember); box-shadow: 0 0 0 2px rgba(193, 74, 38, 0.18); }
.c3-list { display: flex; flex-direction: column; gap: 8px; }
.c3-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-2); }
.c3-line b { font-weight: 500; color: var(--ember-deep); font-family: var(--mono); font-size: 10px; }

.rec { border: 1px solid var(--line-strong); background: var(--surface); padding: 34px 36px 30px; position: relative; }
.rec::before { content: ""; position: absolute; top: -1px; left: -1px; width: 76px; height: 3px; background: var(--ember); }
.rec-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rec-kicker { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--ember-deep); text-transform: uppercase; }
.rec-index { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.rec-title { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.22; font-weight: 600; letter-spacing: -0.02em; }
.rec-product { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.rec-product b { font-weight: 600; color: var(--ink-2); }
.rec-line { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); margin-top: 16px; max-width: 62ch; }
.rec-framework { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin-top: 24px; border-top: 1px solid var(--line); }
.rec-step { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rec-step__w { font-family: var(--mono); font-size: 9.5px; color: var(--muted); padding-top: 2px; }
.rec-step__t { font-size: 13px; font-weight: 500; line-height: 1.5; }
.rec-step__t small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; line-height: 1.55; margin-top: 3px; }
.rec-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 22px; }
.rec-meta { display: flex; flex-wrap: wrap; gap: 22px; }
.rec-meta div { display: flex; flex-direction: column; gap: 2px; }
.rec-meta span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.rec-meta b { font-size: 14px; font-weight: 600; }
.rec-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.rec-list { margin-top: 18px; border-top: 1px solid var(--line); }
.rec-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 4px 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s, padding 0.2s;
}
.rec-item:hover { background: var(--ember-soft); padding-left: 8px; }
.rec-item__idx { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.rec-item__title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.rec-item__title small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 3px; }
.rec-item__meta { font-family: var(--mono); font-size: 10px; color: var(--muted); text-align: right; line-height: 1.6; white-space: nowrap; }

.advice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 34px; }
.advice { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.advice h3 { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.advice h3::before { content: "+"; font-size: 12px; color: var(--good); }
.advice--dont h3::before { content: "−"; color: var(--ember); }
.advice ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.advice li { font-size: 13px; line-height: 1.65; color: var(--ink-2); padding-left: 14px; position: relative; }
.advice li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 4px; height: 4px; background: var(--line-strong); }
.advice--dont li::before { background: rgba(193, 74, 38, 0.45); }

.path-wrap { margin-top: 44px; }
.path-title { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-bottom: 18px; }
.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.path-step { padding: 18px 22px 6px 0; border-bottom: 1px solid var(--line); position: relative; }
.path-step + .path-step { padding-left: 22px; border-left: 1px solid var(--line); }
.path-step__num { font-family: var(--mono); font-size: 9.5px; color: var(--ember); letter-spacing: 0.1em; }
.path-step__title { font-size: 15px; font-weight: 600; margin-top: 6px; }
.path-step__desc { font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 4px; }

.alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(193, 74, 38, 0.28);
  background: rgba(193, 74, 38, 0.055);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 18px;
}
.alert::before { content: "!"; font-family: var(--mono); font-size: 11px; color: var(--ember); border: 1px solid var(--ember); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.alert b { font-weight: 600; }

.result-empty { padding: 100px 0; text-align: center; }
.result-empty h2 { font-family: var(--serif); font-size: 34px; margin-bottom: 12px; }
.result-empty p { color: var(--muted); margin-bottom: 24px; }

/* ---------- case detail ---------- */
.case-head { padding: 46px 0 38px; border-bottom: 1px solid var(--line); }
.case-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.case-title { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.14; letter-spacing: -0.03em; font-weight: 600; max-width: 20em; }
.case-sub { font-size: 15.5px; line-height: 1.85; color: var(--muted); max-width: 70ch; margin-top: 18px; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 64px; padding: 44px 0 96px; align-items: start; }
.case-main { min-width: 0; }
.case-aside { position: sticky; top: 96px; }
.case-section { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.case-section:last-child { border-bottom: 0; margin-bottom: 0; }
.case-section h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.3; margin-bottom: 18px; letter-spacing: -0.01em; }
.case-section h2 .sec-num { font-family: var(--mono); font-size: 10px; color: var(--ember); letter-spacing: 0.1em; margin-right: 12px; vertical-align: 2px; }
.case-section p { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); max-width: 70ch; }
.case-section p + p { margin-top: 12px; }

.signal-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 4px; }
.signal-list li { background: var(--surface); padding: 16px 18px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.signal-list li::before { content: "SIGNAL"; display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; color: var(--ember); margin-bottom: 6px; }

.ft { border-top: 1px solid var(--line-strong); }
.ft-item { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ft-week { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; padding-top: 3px; }
.ft-title { font-size: 16px; font-weight: 600; line-height: 1.45; }
.ft-desc { font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 5px; }
.ft-out { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.02em; color: var(--ink-2); border: 1px solid var(--line); padding: 3px 8px; }
.ft-out::before { content: "OUT"; font-size: 8px; color: var(--ember); letter-spacing: 0.1em; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.check-list li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--ember); flex-shrink: 0; margin-top: 0.52em; }

.terms-list, .rules-list { list-style: none; counter-reset: item; display: flex; flex-direction: column; }
.terms-list li, .rules-list li {
  counter-increment: item;
  position: relative;
  padding: 12px 0 12px 40px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.terms-list li::before, .rules-list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0; top: 13px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ember);
  letter-spacing: 0.04em;
}
.rules-list li::before { color: var(--muted); }

.fee-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.fee-table th { text-align: left; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 0 10px 8px 0; border-bottom: 1px solid var(--line-strong); }
.fee-table td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
.fee-table td:first-child { font-weight: 600; white-space: nowrap; }
.fee-table .fee-price { font-family: var(--mono); font-size: 15px; white-space: nowrap; }
.fee-table .fee-unit { font-family: var(--mono); font-size: 9.5px; color: var(--muted); display: block; margin-top: 2px; }
.fee-note { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-top: 12px; }

.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fit-cell { background: var(--surface); padding: 16px 18px; }
.fit-cell span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; }
.fit-cell p { font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.fit-cell--no span { color: var(--ember); }

.followup-form { border: 1px solid var(--line); background: var(--surface); padding: 24px 26px; }
.followup-form .form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.followup-form h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.form-status { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.06em; }
.field { display: flex; flex-direction: column; gap: 7px; padding: 16px 0; border-top: 1px solid var(--line); }
.field:first-of-type { border-top: 0; }
.field label { font-size: 13.5px; font-weight: 500; line-height: 1.55; }
.field textarea, .field input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
  min-height: 44px;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 76px; }
.field textarea:focus, .field input:focus { outline: none; border-color: var(--ember); background: #fffaf3; }
.field textarea:focus-visible, .field input:focus-visible { outline: 2px solid rgba(193, 74, 38, 0.25); outline-offset: 1px; }

.summary {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 28px 30px;
  margin-top: 34px;
  position: relative;
}
.summary::before { content: "BRIEF"; position: absolute; top: -8px; left: 24px; background: var(--paper); padding: 0 7px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.18em; color: var(--muted); }
.summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.summary-head h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.summary-head span { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.04em; }
.summary-body { font-size: 12.5px; line-height: 1.8; color: var(--ink-2); white-space: pre-line; }
.summary-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.summary-hint { font-size: 11.5px; color: var(--muted); margin-top: 12px; }

.aside-card { border: 1px solid var(--line); background: var(--surface); padding: 22px 22px 20px; }
.aside-card + .aside-card { margin-top: 16px; }
.aside-title { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; }
.aside-fact { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.aside-fact:first-of-type { border-top: 0; padding-top: 0; }
.aside-fact span { color: var(--muted); }
.aside-fact b { font-weight: 600; text-align: right; }
.aside-card .btn { width: 100%; margin-top: 16px; }
.aside-links { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.aside-links a { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; text-decoration: none; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.aside-links a:hover { color: var(--ember); }
.aside-links a span:last-child { font-family: var(--mono); color: var(--muted); }

/* ---------- library ---------- */
.lib-head { padding: 56px 0 30px; border-bottom: 1px solid var(--line); }
.lib-title { font-family: var(--serif); font-size: clamp(36px, 4.6vw, 60px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; margin: 16px 0 14px; }
.lib-sub { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 62ch; }
.lib-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.search { position: relative; flex: 1 1 280px; max-width: 360px; }
.search input { width: 100%; height: 42px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius); padding: 0 14px 0 38px; font-size: 13px; }
.search input:focus { outline: none; border-color: var(--ember); }
.search svg { position: absolute; left: 13px; top: 13px; width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 1.5; }
.lib-count { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--ink-2);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--line-strong); background: var(--surface); }
.chip--active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--active:hover { background: var(--ink); color: var(--paper); }
.chip small { font-family: var(--mono); font-size: 9px; opacity: 0.6; margin-left: 4px; }

.lib-body { padding: 32px 0 90px; }
.matrix-wrap { border: 1px solid var(--line); overflow-x: auto; background: var(--surface); margin-bottom: 40px; }
.matrix { width: 100%; border-collapse: collapse; min-width: 720px; }
.matrix th {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: var(--muted);
  padding: 10px 6px;
  border-bottom: 1px solid var(--line-strong);
  text-align: center;
  white-space: nowrap;
}
.matrix th:first-child { text-align: left; padding-left: 16px; width: 104px; }
.matrix td { border-top: 1px solid var(--line); border-left: 1px solid var(--line); text-align: center; padding: 0; }
.matrix tr:first-child td { border-top: 0; }
.matrix td:first-child { border-left: 0; text-align: left; padding: 0 12px 0 16px; }
.matrix-dim { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 15px; padding: 10px 0; text-decoration: none; color: var(--ink); }
.matrix-dim small { font-family: var(--mono); font-size: 8.5px; color: var(--muted); letter-spacing: 0.06em; }
.mx-cell { width: 100%; height: 42px; border: 0; background: transparent; display: grid; place-items: center; gap: 2px; color: var(--muted); font-family: var(--mono); font-size: 8.5px; transition: background 0.2s; }
.mx-cell:hover { background: var(--ember-soft); }
.mx-cell b { font-weight: 500; font-size: 10px; color: var(--ink-2); }
.mx-cell--0 { opacity: 0.28; }
.mx-cell--hot b { color: var(--ember); }
.matrix-legend { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 8.5px; color: var(--muted); letter-spacing: 0.04em; flex-wrap: wrap; }
.matrix-legend span { display: inline-flex; align-items: center; gap: 6px; }
.matrix-legend i { width: 4px; height: 4px; border-radius: 50%; background: var(--ember); }

.lib-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.lib-list-head h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.lib-list-head span { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.case-list { display: flex; flex-direction: column; }
.case-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 210px 20px;
  gap: 20px;
  align-items: center;
  padding: 20px 4px 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s, padding 0.2s;
}
.case-row:hover { background: var(--ember-soft); padding-left: 10px; }
.case-row__code { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.case-row__title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.case-row__title small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 4px; }
.case-row__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.case-row__side { text-align: right; }
.case-row__side b { display: block; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.case-row__side span { display: block; font-family: var(--mono); font-size: 9px; color: var(--muted); margin-top: 3px; letter-spacing: 0.02em; }
.case-row__arw { font-family: var(--mono); color: var(--muted); transition: transform 0.25s; }
.case-row:hover .case-row__arw { transform: translateX(4px); color: var(--ember); }
.group-label { display: flex; align-items: center; gap: 12px; margin: 34px 0 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.empty-state { padding: 64px 0; text-align: center; border-bottom: 1px solid var(--line); }
.empty-state h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }

/* ---------- method page ---------- */
.method-head { padding: 56px 0 34px; border-bottom: 1px solid var(--line); }
.method-head h1 { font-family: var(--serif); font-size: clamp(38px, 4.8vw, 62px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; margin: 16px 0 16px; }
.method-head p { color: var(--muted); font-size: 15.5px; line-height: 1.85; max-width: 66ch; }
.method-body { padding: 44px 0 96px; }
.lens-panels { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; margin-bottom: 56px; }
.lens-panel h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 6px; }
.lens-panel > p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.lens-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.lens-item:hover .lens-name { color: var(--ember); }
.lens-num { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.lens-name { font-size: 15px; font-weight: 600; line-height: 1.5; }
.lens-name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 3px; }
.lens-count { font-family: var(--mono); font-size: 9px; color: var(--muted); white-space: nowrap; }

.rule-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px; margin-top: 20px; }
.rule-block h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.rule-block > p { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.rule-block ul { list-style: none; }
.rule-block li { padding: 10px 0 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; color: var(--ink-2); position: relative; }
.rule-block li::before { content: "—"; position: absolute; left: 0; color: var(--ember); font-family: var(--mono); font-size: 10px; }

.product-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.product-table th { text-align: left; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 0 10px 8px 0; border-bottom: 1px solid var(--line-strong); }
.product-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; vertical-align: top; }
.product-table td:first-child { font-family: var(--mono); font-size: 10px; color: var(--ember); white-space: nowrap; }
.product-table td:nth-child(2) { font-weight: 500; }
.product-table td:last-child { color: var(--muted); }
.product-table a { text-decoration: none; border-bottom: 1px solid transparent; }
.product-table a:hover { border-color: var(--ember); color: var(--ember); }

.disclaimer { border-top: 1px solid var(--line-strong); padding-top: 20px; margin-top: 50px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.disclaimer strong { color: var(--ink-2); font-weight: 600; }

/* ---------- misc ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  font-size: 12.5px;
  padding: 10px 16px;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.noscript { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: var(--paper); padding: 40px; text-align: center; font-size: 16px; }

.reveal { opacity: 1; transform: translateY(14px); transition: transform 0.75s var(--ease), opacity 0.75s var(--ease); }
.reveal.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- print ---------- */
#print-area { display: none; }
@media print {
  @page { size: A4; margin: 15mm 14mm; }
  body { background: #fff; color: #111; font-size: 10.5pt; }
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; }
  #print-area .print-doc { font-family: var(--sans); }
  .print-doc .p-head { border-bottom: 2px solid #111; padding-bottom: 10px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
  .print-doc .p-brand { font-size: 9pt; letter-spacing: 0.12em; color: #555; }
  .print-doc h1 { font-size: 20pt; line-height: 1.3; margin: 0; font-family: var(--serif); }
  .print-doc h2 { font-size: 12pt; margin: 18px 0 8px; padding-bottom: 5px; border-bottom: 1px solid #ccc; font-family: var(--serif); }
  .print-doc .p-meta { font-size: 8.5pt; color: #555; }
  .print-doc table { width: 100%; border-collapse: collapse; font-size: 9pt; }
  .print-doc td, .print-doc th { border: 1px solid #ddd; padding: 5px 7px; vertical-align: top; text-align: left; }
  .print-doc th { background: #f4f0e9; font-weight: 600; }
  .print-doc p, .print-doc li { font-size: 9.5pt; line-height: 1.6; }
  .print-doc ul { margin: 4px 0 4px 16px; }
  .print-doc .p-note { font-size: 8pt; color: #666; border-top: 1px solid #ddd; margin-top: 16px; padding-top: 8px; }
  .print-doc .p-line { border-bottom: 1px solid #999; height: 18px; }
  .print-doc .p-kv { display: grid; grid-template-columns: 90px 1fr; gap: 2px 10px; font-size: 9pt; }
  .print-doc .p-kv b { font-weight: 600; color: #333; }
  .print-doc .p-avoid { break-inside: avoid; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .shell { padding: 0 28px; }
  .hero-grid { gap: 40px; }
  .wizard { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .result-grid { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; }
  .case-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .lens-grid { gap: 40px; }
}

@media (max-width: 940px) {
  .nav {
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    z-index: 55;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s var(--ease);
    box-shadow: 0 20px 30px -24px rgba(25, 20, 16, 0.5);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .menu-btn { display: block; }
  .head-actions .btn-sm { display: none; }

  .hero { padding: 54px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 14em; }
  .hero-board { max-width: 520px; }
  .hero-board::before { background: var(--paper); }
  .stat-band-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 20px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { padding-left: 20px; }
  .section { padding: 66px 0; }
  .section-head { grid-template-columns: 1fr; gap: 18px; align-items: start; margin-bottom: 32px; }
  .dim-row { grid-template-columns: 36px minmax(0, 1fr) 74px 20px; gap: 14px; }
  .dim-row__q { display: none; }
  .lens-section { padding: 66px 0; }
  .lens-grid { grid-template-columns: 1fr; gap: 40px; }
  .method-rail { grid-template-columns: 1fr; }
  .method-step { min-height: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature--lead { grid-row: auto; }
  .facts-strip { grid-template-columns: 1fr; gap: 26px; }
  .facts-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .cta-paw { width: 180px; right: -30px; bottom: -40px; }

  .wizard { grid-template-columns: 1fr; gap: 22px; padding-top: 34px; }
  .wizard-rail { position: static; }
  .rail-kicker, .rail-save { display: none; }
  .steps { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); }
  .step { flex: 1 0 auto; border-left: 0; border-bottom: 2px solid transparent; padding: 0 16px 12px 0; }
  .step::before { display: none; }
  .step--active { border-bottom-color: var(--ember); }
  .step__hint { display: none; }
  .step__label { font-size: 12.5px; }
  .rail-progress { display: none; }
  .wizard-main { max-width: none; }

  .result-grid { grid-template-columns: 1fr; gap: 32px; }
  .result-side { position: static; order: 2; }
  .result-main { order: 1; }
  .case-layout { grid-template-columns: 1fr; gap: 36px; }
  .case-aside { position: static; }
  .signal-list { grid-template-columns: 1fr; }
  .rec-framework { grid-template-columns: 1fr; }
  .advice-grid { grid-template-columns: 1fr; gap: 22px; }
  .path { grid-template-columns: 1fr; }
  .path-step + .path-step { border-left: 0; padding-left: 0; }
  .case-row { grid-template-columns: 46px minmax(0, 1fr) 130px 16px; gap: 12px; }
  .lens-panels { grid-template-columns: 1fr; gap: 36px; }
  .rule-cols { grid-template-columns: 1fr; gap: 32px; }
  .lib-tools { align-items: stretch; }
  .search { max-width: none; }
}

@media (max-width: 640px) {
  .shell { padding: 0 20px; }
  .head-inner { height: 62px; }
  .brand img { width: 28px; height: 28px; }
  .brand-text span { display: none; }
  .hero h1 { font-size: clamp(36px, 10.6vw, 50px); }
  .hero-sub { font-size: 15.5px; }
  .hero-cta .btn { width: 100%; }
  .hero-board { padding: 18px 16px 16px; }
  .board-matrix { grid-template-columns: 46px repeat(8, minmax(0, 1fr)); }
  .bm-col { font-size: 8px; }
  .bm-label { font-size: 9px; }
  .board-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stat { padding: 18px 14px; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 12px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 30px; }
  .dim-row { grid-template-columns: 30px 1fr 18px; padding: 16px 0; }
  .dim-row__count { display: none; }
  .dim-row__name strong { font-size: 21px; }
  .force-item { grid-template-columns: 26px 1fr; gap: 10px; }
  .facts-list { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; padding-left: 0; }
  .fact { padding: 14px 0; }
  .cta-band { padding: 60px 0; }
  .cta-inner h2 { font-size: 34px; }

  .options { grid-template-columns: 1fr; }
  .dim-picks { grid-template-columns: 1fr; }
  .dim-pick__body { min-height: 0; }
  .step-title { font-size: 28px; }
  .q-label { font-size: 16px; }
  .wizard-foot { flex-direction: column-reverse; align-items: stretch; gap: 10px; background: var(--paper); padding: 12px 0; }
  .wizard-btns .btn { flex: 1; }
  .wizard-step-label { text-align: center; }
  .review-row span:first-child { width: 76px; }

  .result-head { padding-top: 34px; }
  .result-title { font-size: 34px; }
  .result-actions .btn { width: 100%; }
  .rec { padding: 24px 20px; }
  .rec-title { font-size: 26px; }
  .rec-actions .btn { width: 100%; }
  .rec-item { grid-template-columns: 26px 1fr; }
  .rec-item__meta { display: none; }
  .case-title { font-size: 34px; }
  .case-section h2 { font-size: 23px; }
  .ft-item { grid-template-columns: 58px 1fr; gap: 12px; }
  .fit-grid { grid-template-columns: 1fr; }
  .followup-form { padding: 20px 18px; }
  .summary { padding: 22px 18px; }
  .signal-list { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 42px minmax(0, 1fr); }
  .case-row__side, .case-row__arw { display: none; }
  .lib-head { padding-top: 34px; }
  .lib-title { font-size: 36px; }
  .matrix { min-width: 640px; }
  .method-head { padding-top: 34px; }
  .product-table th:nth-child(3), .product-table td:nth-child(3) { display: none; }
}

/* ---------- late additions ---------- */
.resume-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
}
.resume-note .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ember); }
.resume-note b { font-weight: 500; color: var(--ember-deep); }
.resume-note:hover { border-color: var(--ember); color: var(--ink-2); }

.text-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.text-input:focus { outline: none; border-color: var(--ember); background: #fffaf3; }
.text-input:focus-visible { outline: 2px solid rgba(193, 74, 38, 0.25); outline-offset: 1px; }
.text-input::placeholder { color: var(--muted-2); }

.rail-reset {
  margin-top: 16px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.rail-reset:hover { color: var(--ember); border-color: var(--ember); }

.subq .options { grid-template-columns: 1fr; }
.alert .text-link { font-size: 12.5px; color: var(--ink); }

.mx-cell:focus-visible { outline-offset: -2px; }

.force-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 236, 226, 0.18);
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(242, 236, 226, 0.62);
  max-width: 40ch;
}

/* result: unselected dimensions */
.score-row--muted { opacity: 0.42; }
.score-row--muted .score-bar span { background: var(--line-strong); }

/* home: lead feature framework */
.feature-framework { margin-top: 4px; border-top: 1px solid var(--line); }
.ff-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.ff-week { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.02em; padding-top: 2px; }
.ff-title { font-size: 12.5px; font-weight: 500; line-height: 1.5; }
.ff-title small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.feature-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; color: var(--ember-deep); }
.feature-cta i { font-style: normal; transition: transform 0.25s var(--ease); }
.feature:hover .feature-cta i { transform: translateX(4px); }

/* hero board: mobile list */
.board-scroll { overflow-x: auto; scrollbar-width: none; }
.board-scroll::-webkit-scrollbar { display: none; }
.board-mobile { display: none; }
.bm-mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.bm-mobile-row:last-child { border-bottom: 0; }
.bm-mobile-name { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 16px; font-weight: 600; }
.bm-mobile-name b { font-family: var(--mono); font-size: 9px; color: var(--muted); font-weight: 400; }
.bm-mobile-meta { font-family: var(--mono); font-size: 9.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.bm-mobile-meta i { font-style: normal; color: var(--ember); }

.chip-label {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

@media (max-width: 640px) {
  .board-scroll { display: none; }
  .board-mobile { display: block; border-top: 1px solid var(--line); margin-top: 2px; }
  .board-legend { display: none; }
  .dim-row { grid-template-columns: 26px minmax(0, 1fr) 46px 14px; gap: 10px; }
  .dim-row__count { display: block; font-size: 8.5px; white-space: nowrap; }
  .dim-row__arrow { display: block; }
  .wizard-foot { margin: 24px 0 0; padding: 12px 0; }
  .nav { top: 62px; }

  .fee-table thead { display: none; }
  .fee-table tbody { display: block; }
  .fee-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .fee-table td { display: block; width: auto; padding: 1px 0; border-bottom: 0; }
  .fee-table td:first-child { font-size: 14px; }
  .fee-table .fee-price { font-size: 16px; margin-top: 3px; }
  .fee-table td:last-child { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
  .fee-table .fee-unit { display: inline; margin-left: 2px; }
}

@media print {
  .print-doc p, .print-doc li { font-size: 10pt; }
  .print-doc tr, .print-doc li, .print-doc .p-avoid { break-inside: avoid; }
  .print-doc h2 { break-after: avoid; }
  .print-doc table { margin: 4px 0 8px; break-inside: avoid; }
}

.side-caveat {
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted-2);
}

.pick-help { margin-top: 12px; font-size: 12px; color: var(--muted); }
.pick-help a { color: var(--ember-deep); text-decoration: none; border-bottom: 1px solid rgba(193, 74, 38, 0.3); }
.pick-help a:hover { border-color: var(--ember); }

@media (max-width: 940px) {
  .nav { visibility: hidden; }
  .nav.open { visibility: visible; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-bottom { flex-direction: column; }
}
