:root {
  color-scheme: light;
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-2: #f5f8f7;
  --surface-3: #eef6f2;
  --ink: #17211f;
  --muted: #61706b;
  --line: #e3ebe7;
  --brand: #0f766e;
  --brand-dark: #0b4f49;
  --accent: #9a562d;
  --danger: #b42318;
  --soft-danger: #fff1ed;
  --shadow: 0 1px 2px rgba(20, 32, 28, 0.04), 0 14px 32px rgba(20, 32, 28, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #eef6f2 0, rgba(247, 250, 248, 0) 260px),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button {
  border: 0;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 20;
  transform: translateY(-72px);
  padding: 9px 13px;
  border-radius: 6px;
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.38);
  outline-offset: 3px;
}

.app-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(188, 201, 198, 0.82);
  background: rgba(247, 250, 248, 0.9);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 256px;
  gap: 28px;
  align-items: center;
  min-height: 64px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.brand-mark strong {
  font-size: 15px;
  font-weight: 900;
}

.top-links {
  display: flex;
  gap: 22px;
  align-items: center;
  min-width: 0;
}

.top-links a {
  position: relative;
  color: #3d4947;
  text-decoration: none;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.top-links a:hover {
  color: var(--brand-dark);
}

.top-links a:first-child {
  color: var(--brand-dark);
}

.top-links a:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -21px;
  height: 2px;
  background: var(--brand);
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-search::before {
  content: "";
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid #6d7a77;
  border-radius: 50%;
  pointer-events: none;
}

.site-search::after {
  content: "";
  position: absolute;
  left: 25px;
  width: 7px;
  height: 2px;
  margin-top: 11px;
  border-radius: 999px;
  background: #6d7a77;
  transform: rotate(45deg);
  pointer-events: none;
}

.site-search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 78px 8px 38px;
  border: 1px solid #bcc9c6;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--ink);
  font-size: 14px;
}

.site-search input::placeholder {
  color: #6d7a77;
}

.mobile-title-break {
  display: none;
}

.search-hint {
  position: absolute;
  right: 10px;
  color: #6d7a77;
  font-size: 12px;
  pointer-events: none;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 28px;
  padding: 22px 0 12px;
  align-items: center;
  min-width: 0;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: #51605b;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
li,
strong,
small,
a {
  margin-top: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  margin-bottom: 12px;
  max-width: 720px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: balance;
  line-break: anywhere;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button-link:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.44);
  background: var(--surface-2);
}

.button-link.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.button-link.primary:hover {
  background: var(--brand-dark);
}

.status-card {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
}

.status-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.status-list {
  display: grid;
  gap: 6px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  position: relative;
  padding-left: 18px;
  color: #41504c;
  font-size: 13px;
  font-weight: 700;
}

.status-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.42);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--line);
}

.trust-strip > div {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 2px;
  color: var(--brand-dark);
  font-size: 15px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 13px;
}

.layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 80px;
  z-index: 10;
  display: grid;
  gap: 2px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 9px 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(10px);
}

.side-nav-title {
  margin: 0 0 5px;
  padding: 5px 8px;
  color: #6d7a77;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.side-nav::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.side-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.22);
}

.nav-item {
  display: block;
  padding: 8px 10px 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.nav-item:hover,
.nav-item.active {
  background: var(--surface-3);
  border-left-color: var(--brand);
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.nav-cta:hover {
  background: var(--brand-dark);
}

.content {
  display: grid;
  gap: 16px;
  padding-bottom: 44px;
  min-width: 0;
}

.content > section {
  scroll-margin-top: 88px;
}

.tool-panel,
.band,
.split,
.closing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
  min-width: 0;
}

.tool-panel {
  padding: 24px;
}

.section-head p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.scenario-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 13px;
  align-content: start;
  min-height: 108px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  min-width: 0;
}

.scenario-card:hover,
.scenario-card.selected {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08);
}

.scenario-card .icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  grid-row: 1 / span 2;
  margin: 1px 0 0;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand-dark);
  font-weight: 800;
}

.scenario-card strong,
.scenario-card small {
  display: block;
}

.scenario-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.result-card {
  min-height: 180px;
  padding: 18px;
  border-radius: 8px;
  background: #f8fbfa;
  border: 1px solid #d8e8e2;
  min-width: 0;
}

.result-card ul,
.route-card ul,
.dos-donts ul {
  margin: 10px 0 0;
  padding-left: 18px;
  min-width: 0;
}

.result-card li + li,
.route-card li + li,
.dos-donts li + li {
  margin-top: 6px;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid rgba(15, 118, 110, 0.24);
  font-size: 13px;
  font-weight: 700;
}

.band,
.split,
.closing-card {
  padding: 24px;
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.signal-card,
.route-card,
.script-card,
.ledger-demo article,
.strength-card,
.matrix-grid article,
.wrong-grid article,
.scam-card,
.risk-columns article,
.threat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  min-width: 0;
}

.signal-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.signal-card p,
.route-card p,
.script-card p,
.ledger-demo p,
.strength-card p,
.matrix-grid p,
.wrong-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.case-demo {
  background: var(--surface);
}

.ledger-demo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.ledger-demo article {
  position: relative;
  padding-top: 46px;
}

.ledger-demo article span {
  position: absolute;
  top: 16px;
  left: 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.sample-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.2);
}

.sample-row > div {
  padding: 13px 14px;
  background: #fff;
  min-width: 0;
}

.sample-row strong,
.sample-row span {
  display: block;
}

.sample-row strong {
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-size: 13px;
}

.sample-row span {
  color: var(--muted);
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.checklist {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-2);
  min-width: 0;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.strength-grid,
.matrix-grid,
.wrong-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.strength-card {
  min-height: 218px;
  border-top: 4px solid var(--brand);
}

.strength-card > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  margin-bottom: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.strength-card small {
  display: block;
  margin-top: 13px;
  color: #41504c;
  font-size: 13px;
}

.strength-card.strong {
  border-top-color: #0f766e;
}

.strength-card.medium {
  border-top-color: #2563eb;
}

.strength-card.clue {
  border-top-color: #c05621;
}

.strength-card.pending {
  border-top-color: #7c3aed;
}

.material-matrix {
  background: #fff;
}

.matrix-grid article {
  border-left: 4px solid rgba(15, 118, 110, 0.58);
}

.matrix-grid ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.matrix-grid li + li {
  margin-top: 6px;
}

.basis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.basis-card {
  display: flex;
  flex-direction: column;
  min-height: 248px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fbfdfc;
  min-width: 0;
}

.basis-card.court {
  border-left-color: #0f766e;
}

.basis-card.regulator {
  border-left-color: #2563eb;
}

.basis-card.credit {
  border-left-color: #7c3aed;
}

.basis-card.privacy {
  border-left-color: #b42318;
}

.basis-card.market {
  border-left-color: #c05621;
}

.basis-card p {
  margin-bottom: 10px;
  color: var(--muted);
}

.basis-card small {
  display: block;
  margin-top: auto;
  color: #41504c;
  font-size: 13px;
}

.use-tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.source-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px dashed rgba(15, 118, 110, 0.36);
  border-radius: 8px;
  background: #f8fbfa;
  min-width: 0;
}

.source-panel p {
  margin-bottom: 12px;
  color: var(--muted);
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.source-list a:hover {
  border-color: rgba(15, 118, 110, 0.48);
  background: var(--surface-2);
}

.wrong-claims {
  border-color: #f0d7c8;
  background: #fffdfb;
}

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

.wrong-grid article {
  border-left: 4px solid var(--accent);
}

.wrong-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
}

.scam-alert {
  border-color: rgba(180, 35, 24, 0.18);
  background: #fffdfc;
}

.notice-strip {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 8px;
  background: rgba(255, 247, 237, 0.8);
}

.notice-strip strong {
  color: var(--accent);
  font-size: 15px;
}

.notice-strip span {
  color: var(--muted);
  line-height: 1.65;
}

.scam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.scam-card {
  min-height: 0;
  background: #fff;
}

.scam-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--soft-danger);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.scam-card h3,
.threat-card h3 {
  margin-bottom: 8px;
}

.scam-card p,
.risk-columns li,
.risk-columns p,
.threat-card p,
.trustee-box p,
.disclaimer-box p {
  color: var(--muted);
}

.risk-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.risk-columns article {
  background: rgba(255, 255, 255, 0.78);
}

.risk-columns ul,
.risk-columns ol {
  margin: 10px 0 0;
  padding-left: 19px;
}

.risk-columns li + li {
  margin-top: 7px;
}

.sms-panel {
  border-color: rgba(154, 86, 45, 0.18);
  background: #fffdfa;
}

.sms-notice {
  border-color: rgba(154, 86, 45, 0.18);
  background: rgba(255, 251, 235, 0.72);
}

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

.sms-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sms-methods article {
  border: 1px solid rgba(227, 235, 231, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.sms-methods ol,
.sms-methods ul {
  margin: 10px 0 0;
  padding-left: 19px;
}

.sms-methods li + li {
  margin-top: 7px;
}

.trustee-box,
.disclaimer-box {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.trustee-box h3,
.disclaimer-box h3 {
  margin-bottom: 8px;
}

.trustee-box p,
.disclaimer-box p {
  margin-bottom: 0;
}

.warning-panel {
  border-color: #f1c4b8;
  background: #fffafa;
}

.threat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.threat-card {
  min-height: 0;
  background: rgba(255, 255, 255, 0.76);
}

.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dos-donts > div {
  padding: 18px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  min-width: 0;
}

.script-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.script-card {
  border-left: 4px solid var(--brand);
}

.script-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.script-head h3 {
  margin-bottom: 0;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.copy-button:hover {
  transform: translateY(-1px);
  background: var(--brand);
  color: #fff;
}

.copy-button.copied {
  background: #d8f3e8;
  color: #0f5132;
}

.closing-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
  background: #fff;
}

.closing-card > div:first-child p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.guardrail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guardrail-grid article {
  padding: 17px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  min-width: 0;
}

.guardrail-grid ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.guardrail-grid li + li {
  margin-top: 6px;
}

.support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0) 44%),
    #fff;
  min-width: 0;
}

.support-copy p {
  max-width: 760px;
  margin-bottom: 10px;
  color: var(--muted);
}

.support-copy p:last-child {
  margin-bottom: 0;
}

.reward-box {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reward-box img {
  display: block;
  width: min(100%, 210px);
  height: auto;
  border-radius: 6px;
}

.reward-box figcaption {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.right-rail {
  position: sticky;
  top: 80px;
  align-self: start;
  padding: 8px 10px;
  border: 1px solid rgba(15, 118, 110, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 13px;
  min-width: 0;
}

.search-hit {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 6px;
  transition: outline-color 0.25s ease;
}

.right-rail a {
  display: block;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(227, 235, 231, 0.72);
  border-radius: 5px;
  color: var(--muted);
  text-decoration: none;
}

.right-rail a:hover {
  background: var(--surface-3);
  color: var(--brand-dark);
}

.rail-note {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.rail-note-quiet {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.68);
}

.rail-note strong {
  color: var(--ink);
  font-size: 13px;
}

.rail-note span {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .site-header-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .top-links {
    justify-content: flex-end;
  }

  .site-search {
    grid-column: 1 / -1;
    margin-bottom: 12px;
  }

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

  .right-rail {
    display: none;
  }
}

@media (max-width: 980px) {
  .topbar,
  .layout,
  .split,
  .closing-card,
  .support-card {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: sticky;
    top: 102px;
    z-index: 18;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 10px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 252, 251, 0.96);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
    backdrop-filter: blur(12px);
  }

  .side-nav-title,
  .nav-cta {
    display: none;
  }

  .content > section {
    scroll-margin-top: 92px;
  }

  .scenario-grid,
  .signal-list,
  .route-grid,
  .basis-grid,
  .scam-grid,
  .risk-columns,
  .threat-grid,
  .ledger-demo,
  .strength-grid,
  .matrix-grid,
  .sample-row,
  .wrong-grid,
  .sms-methods,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-mark strong {
    font-size: 14px;
  }

  .top-links {
    display: none;
  }

  .site-search {
    grid-column: auto;
    margin-bottom: 0;
  }

  .site-search input {
    min-height: 36px;
    padding-right: 70px;
  }

  .app-shell {
    width: min(100% - 24px, 1280px);
  }

  .topbar {
    gap: 16px;
    padding: 22px 0 14px;
  }

  h1 {
    max-width: none;
    margin-bottom: 10px;
    font-size: 23px;
    line-height: 1.18;
    text-wrap: auto;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .mobile-title-break {
    display: block;
  }

  h2 {
    font-size: 24px;
  }

  .lead {
    font-size: 15px;
    line-height: 1.68;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .status-card {
    padding: 14px;
  }

  .status-card p {
    font-size: 13px;
  }

  .status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
  }

  .status-list li {
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 12px;
  }

  .status-list li::before {
    display: none;
  }

  .trust-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 14px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .trust-strip > div {
    flex: 0 0 178px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    scroll-snap-align: start;
  }

  .trust-strip strong {
    font-size: 14px;
  }

  .trust-strip span {
    font-size: 12px;
    line-height: 1.45;
  }

  .side-nav {
    gap: 6px;
    top: 103px;
    padding: 8px 0;
  }

  .nav-item {
    padding: 8px 10px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 6px;
    font-size: 13px;
  }

  .nav-item:hover,
  .nav-item.active {
    border-bottom-color: var(--brand);
  }

  .content > section {
    scroll-margin-top: 82px;
  }

  .tool-panel,
  .band,
  .split,
  .closing-card,
  .support-card {
    padding: 18px;
    overflow: hidden;
  }

  .reward-box {
    justify-self: start;
    width: 100%;
  }

  .reward-box img {
    width: min(100%, 220px);
  }

  .scenario-grid,
  .signal-list,
  .route-grid,
  .basis-grid,
  .scam-grid,
  .risk-columns,
  .threat-grid,
  .ledger-demo,
  .strength-grid,
  .matrix-grid,
  .sample-row,
  .wrong-grid,
  .sms-methods,
  .dos-donts,
  .trust-strip,
  .guardrail-grid {
    grid-template-columns: 1fr;
  }

  .basis-card {
    min-height: 0;
  }

  .notice-strip {
    grid-template-columns: 1fr;
  }

  .scam-card,
  .threat-card {
    min-height: 0;
  }

  .source-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .scenario-card {
    min-height: 118px;
  }

  .result-card {
    font-size: 15px;
    overflow: hidden;
  }

  .result-card p {
    max-width: 100%;
  }

  .pill {
    white-space: normal;
  }

  .footer {
    flex-direction: column;
  }
}

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

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