/* =========================================================
   解混淆 jiehunxiao.net
   设计语言：清爽白底 + 品牌绿 + 大圆角 + 充足留白
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --green: #06c755;
  --green-hover: #05b04c;
  --green-ink: #047a36;
  --green-deep: #056b31;
  --green-tint: #e3f8f7;
  --green-soft: #edfbf2;
  --blue-tint: #e8f1ff;
  --yellow-tint: #fff8db;
  --bg: #ffffff;
  --muted: #f6f6f6;
  --dark: #282c2e;
  --text: #333333;
  --text-2: #282c2e;
  --text-soft: #5b6468;
  --text-mute: #7a8387;
  --border: #dddddd;
  --border-soft: #e8eeea;
  --border-dark: #404446;

  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 48px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 18px 50px -32px rgba(6, 79, 40, 0.35);

  --font-head: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --ease: cubic-bezier(0.4, 0.4, 0, 1);
  --dur: 0.4s;
  --wrap: 1180px;
  --header-h: 72px;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body.menu-open {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.22;
  color: var(--text-2);
  letter-spacing: -0.012em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: #c9f6da;
  color: #12351f;
}

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--text-2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 84px 0;
}

.section.tight {
  padding: 56px 0;
}

.section.muted {
  background: var(--muted);
}

.section.tint {
  background: linear-gradient(180deg, #f4fdf8 0%, #ffffff 100%);
}

.section.tint-blue {
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.section.dark {
  background: var(--dark);
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin: 14px 0 14px;
  font-size: clamp(26px, 3.3vw, 40px);
  font-weight: 500;
}

.section-head p {
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.8;
}

.section-head.center p {
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.eyebrow.blue {
  background: var(--blue-tint);
  color: #2d5c9e;
}

.eyebrow.yellow {
  background: var(--yellow-tint);
  color: #8a6a05;
}

.lead {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.muted-text {
  color: var(--text-soft);
}

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

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(6, 199, 85, 0.65);
}

.btn-primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(6, 199, 85, 0.7);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--text-2);
}

.btn-outline:hover {
  background: #f5f5f5;
  border-color: #c9d2cc;
  transform: translateY(-1px);
}

.btn-soft {
  background: var(--green-soft);
  border-color: transparent;
  color: var(--green-ink);
}

.btn-soft:hover {
  background: #dcf7e7;
}

.btn-dark {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: #3a4144;
  border-color: #3a4144;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-soft);
}

.btn-ghost:hover {
  background: #f5f5f5;
  color: var(--text-2);
}

.btn-sm {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 12px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-ink);
  font-size: 14.5px;
  font-weight: 600;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.brand-text small {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 12px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--green-ink);
  background: var(--muted);
}

.site-nav a.active {
  color: var(--green-ink);
  background: var(--green-soft);
  font-weight: 600;
}

.site-nav .nav-cta {
  margin-left: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--green);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px -8px rgba(6, 199, 85, 0.8);
}

.site-nav .nav-cta:hover {
  background: var(--green-hover);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-2);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 76px;
  background: radial-gradient(900px 420px at 12% -8%, #e3f8f7 0%, rgba(227, 248, 247, 0) 62%),
    radial-gradient(760px 420px at 96% 2%, #e8f1ff 0%, rgba(232, 241, 255, 0) 58%),
    linear-gradient(180deg, #ffffff 0%, #fbfefc 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(6, 199, 85, 0.55) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
  opacity: 0.28;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 360px;
  height: 360px;
  border: 44px solid rgba(6, 199, 85, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  animation: rise 0.7s var(--ease) both;
}

.hero h1 {
  margin: 18px auto 0;
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 900px;
}

.hero h1 .hl {
  padding: 0 0.08em;
  background: linear-gradient(180deg, transparent 62%, #d3f8e2 62%, #d3f8e2 94%, transparent 94%);
  border-radius: 4px;
}

.hero-copy > p {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--text-soft);
  font-size: 17.5px;
  line-height: 1.8;
}

.hero-tool {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  animation: rise 0.8s 0.08s var(--ease) both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  color: var(--text-mute);
  font-size: 12.5px;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

/* ---------- 7. Tool ---------- */
.tool-card {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding: 16px;
  border: 1px solid #e2ebe5;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 30px 70px -36px rgba(4, 74, 36, 0.42), 0 2px 6px rgba(0, 0, 0, 0.02);
}

.tool-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 4px 12px;
}

.tool-bar-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.12);
}

.tool-bar-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mute);
  font-size: 12px;
}

.tool-bar-note svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 342px;
  padding: 18px;
  border: 1.5px dashed #cfdad3;
  border-radius: var(--radius-sm);
  background: #fbfcfb;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.stage:hover,
.stage.dragover {
  border-color: var(--green);
  background: #f6fdf9;
}

.stage.dragover {
  box-shadow: inset 0 0 0 3px rgba(6, 199, 85, 0.12);
}

.stage.has-image {
  border-style: solid;
  border-color: var(--border-soft);
  background-color: #f2f5f3;
  background-image: linear-gradient(45deg, #e9eeea 25%, transparent 25%, transparent 75%, #e9eeea 75%),
    linear-gradient(45deg, #e9eeea 25%, transparent 25%, transparent 75%, #e9eeea 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  cursor: default;
  padding: 10px;
}

.stage-empty {
  text-align: center;
  pointer-events: none;
}

.stage-empty .empty-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 24px;
  background: var(--green-tint);
  color: var(--green-ink);
}

.stage-empty .empty-icon svg {
  width: 38px;
  height: 38px;
}

.stage-empty b {
  display: block;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 16.5px;
  font-weight: 600;
}

.stage-empty span {
  display: block;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.7;
}

.stage-empty .kbd-row {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.kbd {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid #dbe4de;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: #67716c;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

.preview-box {
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preview-box img {
  max-width: 100%;
  max-height: 462px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.28);
  image-rendering: auto;
}

.compare-layer {
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease);
  z-index: 3;
}

.compare-layer img {
  max-width: 100%;
  max-height: 462px;
  border-radius: 8px;
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.3);
}

.stage.show-compare .compare-layer {
  opacity: 1;
}

.compare-btn {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-full);
  background: rgba(40, 44, 46, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0.9;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.compare-btn:hover {
  background: rgba(40, 44, 46, 0.9);
  opacity: 1;
}

.compare-btn svg {
  width: 14px;
  height: 14px;
}

.stage-busy {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.stage-busy[hidden],
.stage-empty[hidden],
.compare-btn[hidden] {
  display: none;
}

.busy-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 13px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #d8f6e3;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding: 8px 3px 0;
  color: var(--text-mute);
  font-size: 12px;
}

.file-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.file-name svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--green);
}

.file-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 400px;
}

.file-dim {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8a938f;
}

.tool-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.tool-actions .btn {
  min-height: 46px;
  padding: 10px 18px;
  font-size: 14.5px;
}

.tool-actions .btn-primary {
  min-width: 116px;
}

.fmt-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--text-mute);
  font-size: 12px;
}

.fmt-control select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  padding: 8px 30px 8px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7478' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--text-soft);
  font-size: 12.5px;
  cursor: pointer;
}

.tool-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--green-soft);
  color: #3c5a49;
  font-size: 12.5px;
  line-height: 1.65;
}

.tool-tip svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  color: var(--green-ink);
}

.tool-tip a {
  color: var(--green-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.status-text {
  margin: 5px 3px 2px;
  color: var(--text-mute);
  font-size: 12.5px;
  line-height: 1.65;
}

.status-text.is-error {
  color: #b23b2e;
}

.status-text.is-ok {
  color: var(--green-ink);
}

/* ---------- 8. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 26px 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.stat {
  padding: 4px 18px;
  text-align: center;
  border-right: 1px solid #edf2ee;
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--green-ink);
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--text-mute);
  font-size: 12.5px;
}

/* ---------- 9. Cards & grids ---------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 17.5px;
  font-weight: 600;
}

.card p {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.78;
}

.card p:last-child,
.step p:last-child {
  margin-bottom: 0;
}

.card .card-foot {
  margin-top: 16px;
}

.card-green {
  background: var(--green-tint);
  border-color: #d5f0ec;
}

.card-green:hover {
  border-color: var(--green);
}

.card-blue {
  background: var(--blue-tint);
  border-color: #dbe7fb;
}

.card-blue:hover {
  border-color: #4375c0;
}

.card-yellow {
  background: var(--yellow-tint);
  border-color: #f4ecc7;
}

.card-yellow:hover {
  border-color: #d9a610;
}

.card-link {
  display: block;
}

.card-link .link-arrow {
  margin-top: 18px;
}

.ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-ink);
}

.ico svg {
  width: 22px;
  height: 22px;
}

.ico.blue {
  background: var(--blue-tint);
  color: #35619f;
}

.ico.yellow {
  background: var(--yellow-tint);
  color: #9a7509;
}

.ico.solid {
  background: var(--green);
  color: #fff;
}

/* ---------- 10. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.step:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--green-tint);
  color: var(--green-ink);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.step p {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.78;
}

.step::after {
  content: attr(data-step);
  position: absolute;
  right: 18px;
  bottom: -12px;
  font-family: var(--font-head);
  font-size: 84px;
  font-weight: 700;
  line-height: 1;
  color: rgba(6, 199, 85, 0.05);
  pointer-events: none;
}

/* ---------- 11. Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.split h2 {
  margin: 14px 0 18px;
  font-size: clamp(26px, 3.2vw, 38px);
}

.split p {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.split .btn {
  margin-top: 8px;
}

.visual-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 28px;
  border: 1px solid #d7efeb;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, #e3f8f7 0%, #f3fcf8 70%, #ffffff 100%);
  overflow: hidden;
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(6, 199, 85, 0.4) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.25;
  pointer-events: none;
}

.visual-panel svg {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  height: auto;
}

.visual-panel .panel-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  color: var(--green-ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- 12. Lists ---------- */
.check-list,
.cross-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li,
.cross-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.7;
}

.check-list li::before,
.cross-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--green-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

.check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047a36' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E");
}

.cross-list li::before {
  background-color: #fdf1e7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a35a12' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}

.check-list.strong li,
.cross-list.strong li {
  color: var(--text);
  font-size: 15px;
}

/* ---------- 13. Tables ---------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
}

table.data th,
table.data td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eef2ef;
  line-height: 1.7;
}

table.data th {
  background: #f7faf8;
  color: var(--text-2);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  border-bottom-color: var(--border);
}

table.data td {
  color: var(--text-soft);
}

table.data td:first-child {
  color: var(--text);
  font-weight: 500;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #f2f5f3;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #355043;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.tag.warn {
  background: var(--yellow-tint);
  color: #8a6a05;
}

.tag.gray {
  background: #f1f3f2;
  color: #67716c;
}

.tag.blue {
  background: var(--blue-tint);
  color: #2d5c9e;
}

/* ---------- 14. Article / prose ---------- */
.doc-hero {
  padding: 22px 0 46px;
  background: linear-gradient(180deg, #f4fdf8 0%, #ffffff 100%);
  border-bottom: 1px solid #eef4f0;
}

.doc-hero h1 {
  max-width: 980px;
  margin: 12px 0 16px;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.22;
}

.doc-hero p {
  max-width: 780px;
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.8;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 20px;
  color: var(--text-mute);
  font-size: 12.5px;
}

.doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.doc-meta svg {
  width: 14px;
  height: 14px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  color: var(--text-mute);
  font-size: 12.5px;
}

.crumbs a:hover {
  color: var(--green-ink);
}

.crumbs .sep {
  color: #b8c1bc;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 52px;
  align-items: start;
  padding: 48px 0 76px;
}

.prose {
  min-width: 0;
  max-width: 820px;
  color: #394144;
  font-size: 16.5px;
  line-height: 1.88;
}

.prose h2 {
  margin: 46px 0 16px;
  font-size: clamp(23px, 2.5vw, 29px);
  font-weight: 600;
  scroll-margin-top: 96px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 30px 0 10px;
  font-size: 18.5px;
  font-weight: 600;
  scroll-margin-top: 96px;
}

.prose p {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 9px;
}

.prose li::marker {
  color: var(--green-ink);
}

.prose strong {
  color: #1e2426;
  font-weight: 600;
}

.prose a {
  color: var(--green-ink);
  text-decoration: underline;
  text-decoration-color: #a5ddbe;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--green-ink);
}

.prose blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: #f4fbf7;
  color: #3b4a42;
  font-size: 15.5px;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f5f2;
  color: #2f5843;
  font-family: var(--font-mono);
  font-size: 13px;
}

.prose hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--border-soft);
}

.summary-box {
  margin: 0 0 28px;
  padding: 22px 24px;
  border: 1px solid #d6f0e2;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
}

.summary-box h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-ink);
}

.summary-box p {
  margin: 0;
  color: #355043;
  font-size: 15px;
  line-height: 1.8;
}

.note-box {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #f1e4bd;
  border-radius: 14px;
  background: #fffdf4;
  color: #5d5127;
  font-size: 14.5px;
  line-height: 1.8;
}

.note-box b {
  color: #4c3d0b;
}

.code-block {
  position: relative;
  margin: 22px 0;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: #23282a;
  color: #dcefe4;
  overflow: auto;
}

.code-block pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  tab-size: 2;
}

.code-block .copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border: 1px solid #4a5550;
  border-radius: 8px;
  background: #2c3335;
  color: #b9c8c0;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.code-block .copy-btn:hover {
  background: #394244;
  color: #fff;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #fff;
}

.toc h2 {
  margin-bottom: 12px;
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.toc a {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid #edf1ee;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.toc a:hover,
.toc a.on {
  border-left-color: var(--green);
  color: var(--green-ink);
}

.toc .toc-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.toc .toc-cta .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border-left: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.2;
}

.toc .toc-cta .btn:hover {
  border-left-color: transparent;
  color: #fff;
}

/* ---------- 15. FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--border-soft);
}

.faq-list details {
  border-bottom: 1px solid var(--border-soft);
}

.faq-list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  color: var(--text-2);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.faq-list details[open] summary::after {
  content: "−";
  background: var(--green);
  color: #fff;
}

.faq-list details[open] summary {
  color: var(--green-ink);
}

.faq-answer {
  padding: 0 44px 24px 4px;
  color: var(--text-soft);
  font-size: 14.8px;
  line-height: 1.85;
}

.faq-answer p {
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--green-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-group {
  margin-bottom: 40px;
  scroll-margin-top: 96px;
}

.section[id],
.tool-card[id] {
  scroll-margin-top: 90px;
}

.faq-group > h2 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 600;
}

.faq-group > .group-note {
  margin-bottom: 12px;
  color: var(--text-mute);
  font-size: 13.5px;
}

/* ---------- 16. CTA ---------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 46px 48px;
  border-radius: var(--radius-md);
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 199, 85, 0.4) 0%, rgba(6, 199, 85, 0) 68%);
  pointer-events: none;
}

.cta::after {
  content: "";
  position: absolute;
  left: 42%;
  bottom: -110px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.cta-copy {
  position: relative;
  z-index: 1;
}

.cta h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
}

.cta p {
  color: #b7c0c3;
  font-size: 14.5px;
  line-height: 1.75;
  max-width: 560px;
}

.cta .btn {
  position: relative;
  z-index: 1;
  flex: none;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  margin-top: 0;
  padding: 58px 0 24px;
  background: var(--dark);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 44px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand .brand-text {
  color: #fff;
}

.footer-brand .brand-text small {
  color: #8e999d;
}

.footer-brand p {
  max-width: 320px;
  color: #aeb8bb;
  font-size: 13.5px;
  line-height: 1.8;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 6px 11px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
  color: #c7d0d3;
  font-size: 11.5px;
}

.footer-badge svg {
  width: 13px;
  height: 13px;
  color: var(--green);
}

.footer-col h3 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: #aeb8bb;
  font-size: 13.5px;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
  color: #879296;
  font-size: 12px;
  line-height: 1.7;
}

.footer-bottom p {
  max-width: 820px;
}

.footer-bottom a {
  color: #aeb8bb;
}

.footer-bottom a:hover {
  color: var(--green);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-2);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease),
    transform 0.25s var(--ease), background-color 0.25s var(--ease);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--green-soft);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

/* ---------- 18. Scenario & misc blocks ---------- */
.scenario-list {
  display: grid;
  gap: 20px;
}

.scenario {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  scroll-margin-top: 96px;
}

.scenario .scenario-no {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--green-tint);
  color: var(--green-ink);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
}

.scenario h2 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 600;
}

.scenario p {
  color: var(--text-soft);
  font-size: 14.8px;
  line-height: 1.85;
  margin-bottom: 12px;
}

.scenario .scenario-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scenario .scenario-meta span {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #f5f7f6;
  color: #67716c;
  font-size: 11.5px;
}

.value-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-soft);
}

.value-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}

.value-item h3 {
  font-size: 16px;
  font-weight: 600;
}

.value-item p {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 24px;
  border-left: 2px solid #e1f3e8;
}

.timeline-item {
  position: relative;
  padding: 0 0 26px 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 5px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px #ccefdc;
}

.timeline-item time {
  display: block;
  margin-bottom: 4px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.timeline-item h3 {
  margin-bottom: 4px;
  font-size: 15.5px;
  font-weight: 600;
}

.timeline-item p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0;
  padding: 24px;
  border: 1px solid #d8efe4;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
}

.contact-box h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.contact-box p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
}

.contact-box a {
  color: var(--green-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.metric {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.metric b {
  display: block;
  color: var(--green-ink);
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1.2;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--text-mute);
  font-size: 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.pill {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--text-soft);
  font-size: 12px;
}


/* ---------- Article extras ---------- */
.formula {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid #e3ece6;
  border-radius: 14px;
  background: #fbfdfc;
  color: #2f5843;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.9;
  overflow-x: auto;
}

.figure {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid #d7efeb;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, #e3f8f7 0%, #f7fdfa 100%);
}

.figure svg {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
}

.figcaption {
  margin-top: 10px;
  color: var(--text-mute);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}

.pill:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-ink);
}

/* ---------- 19. 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 300px);
  padding: 72px 0 88px;
  text-align: center;
  background: radial-gradient(700px 360px at 50% 0%, #e3f8f7 0%, transparent 70%);
}

.error-code {
  font-family: var(--font-head);
  font-size: clamp(78px, 14vw, 150px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--green);
}

.error-page h1 {
  margin: 18px 0 14px;
  font-size: clamp(26px, 3.4vw, 38px);
}

.error-page p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 30px;
  font-size: 13px;
}

.error-links a {
  color: var(--green-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 20. Motion ---------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.js .reveal {
  transform: translateY(14px);
  transition: transform 0.6s var(--ease);
}

.js .reveal.in {
  transform: none;
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav a {
    padding: 8px 9px;
    font-size: 14px;
  }

  .site-nav .nav-cta {
    padding: 10px 15px;
  }

  .brand-text small {
    display: none;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - var(--header-h) - 30px);
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px -20px rgba(25, 45, 33, 0.28);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease),
      transform 0.25s var(--ease);
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .site-nav .nav-cta {
    margin: 6px 0 0;
    padding: 13px 16px;
    border-radius: 12px;
    text-align: center;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split.reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .split.reverse .visual-panel {
    order: 2;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 36px;
  }

  .toc {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero::after {
    display: none;
  }

  .hero-copy > p {
    font-size: 15.5px;
    margin-top: 16px;
  }

  .hero h1 {
    font-size: clamp(32px, 8.6vw, 46px);
  }

  .hero-tool {
    margin-top: 24px;
  }

  .hero-trust {
    gap: 8px 16px;
    font-size: 11.5px;
  }

  .tool-card {
    padding: 11px;
    border-radius: 20px;
  }

  .tool-bar {
    padding-bottom: 9px;
  }

  .tool-bar-note {
    display: none;
  }

  .stage {
    min-height: 250px;
    padding: 12px;
  }

  .stage-empty .empty-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    margin-bottom: 12px;
  }

  .stage-empty .empty-icon svg {
    width: 31px;
    height: 31px;
  }

  .stage-empty b {
    font-size: 15px;
  }

  .stage-empty span {
    font-size: 12px;
  }

  .stage-empty .kbd-row {
    display: none;
  }

  .preview-box img,
  .compare-layer img {
    max-height: 320px;
  }

  .file-meta {
    font-size: 11.5px;
    flex-wrap: wrap;
    gap: 2px 10px;
  }

  .file-name span {
    max-width: 200px;
  }

  .tool-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tool-actions .btn {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 13.5px;
  }

  .tool-actions .btn-primary {
    grid-column: 1 / -1;
    min-height: 48px;
    font-size: 15px;
  }

  .tool-actions .pick {
    grid-column: 1 / -1;
  }

  .fmt-control {
    grid-column: 1 / -1;
    justify-content: space-between;
    margin: 2px 0 0;
  }

  .fmt-control select {
    flex: 1;
    max-width: 200px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px 6px;
    gap: 0;
  }

  .stat {
    padding: 12px;
    border-right: 0;
  }

  .stat:nth-child(odd) {
    border-right: 1px solid #edf2ee;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid #edf2ee;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 22px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    padding: 24px;
  }

  .step::after {
    font-size: 68px;
  }

  .doc-hero {
    padding: 14px 0 34px;
  }

  .doc-hero h1 {
    font-size: clamp(28px, 7.6vw, 38px);
  }

  .doc-hero p {
    font-size: 15px;
  }

  .article-layout {
    padding: 30px 0 56px;
  }

  .prose {
    font-size: 15.5px;
    line-height: 1.85;
  }

  .prose h2 {
    margin-top: 38px;
    font-size: 23px;
  }

  .prose h3 {
    font-size: 17.5px;
  }

  .summary-box {
    padding: 18px;
  }

  .scenario {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
  }

  .scenario .scenario-no {
    width: 44px;
    height: 44px;
    font-size: 16px;
    border-radius: 13px;
  }

  .value-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .faq-list summary {
    padding: 18px 2px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 26px 20px 2px;
    font-size: 14.2px;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 26px;
    gap: 22px;
  }

  .cta .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-right: 56px;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .table-wrap {
    border-radius: 14px;
  }

  table.data {
    min-width: 540px;
    font-size: 13px;
  }

  table.data th,
  table.data td {
    padding: 12px 14px;
  }

  .error-page {
    padding: 48px 0 64px;
  }

  .contact-box {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand-text {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .stage {
    min-height: 220px;
  }

  .tool-bar-title {
    font-size: 12.5px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .to-top,
  .tool-card,
  .cta {
    display: none !important;
  }

  body {
    color: #000;
  }
}
