:root {
  --bg: #f7f2e9;
  --bg-deep: #efe4d2;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: #fffdf9;
  --text: #231b16;
  --muted: #695d54;
  --line: rgba(35, 27, 22, 0.1);
  --brand: #bf5d32;
  --brand-deep: #91411e;
  --accent: #1f6d66;
  --accent-rgb: 31, 109, 102;
  --success: #18794e;
  --warning: #b66a14;
  --danger: #b23d2f;
  --shadow: 0 22px 60px rgba(77, 53, 36, 0.14);
}

body[data-accent="blue"] {
  --accent: #2563eb;
  --accent-rgb: 37, 99, 235;
}

body[data-accent="green"] {
  --accent: #17805c;
  --accent-rgb: 23, 128, 92;
}

body[data-accent="teal"] {
  --accent: #1f6d66;
  --accent-rgb: 31, 109, 102;
}

body[data-accent="orange"] {
  --accent: #c76021;
  --accent-rgb: 199, 96, 33;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(191, 93, 50, 0.18), transparent 30%),
    radial-gradient(circle at 84% 0%, rgba(var(--accent-rgb), 0.16), transparent 30%),
    linear-gradient(140deg, var(--bg) 0%, var(--bg-deep) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(77, 53, 36, 0.09);
}

.brand,
.topbar-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf7;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-size: 13px;
  letter-spacing: 0.06em;
}

.topbar-links {
  gap: 8px;
}

.topbar-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.topbar-links a:hover {
  background: rgba(35, 27, 22, 0.06);
  color: var(--text);
}

.hero,
.hero-grid,
.main-grid,
.insight-grid {
  display: grid;
  gap: 24px;
}

.hero {
  margin-bottom: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  align-items: stretch;
}

.hero-copy,
.hero-note,
.panel,
.tool-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy,
.hero-note {
  border-radius: 32px;
  padding: 34px;
}

.eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: rgba(191, 93, 50, 0.12);
}

.hero h1,
.panel h2 {
  margin: 16px 0 10px;
  line-height: 1.04;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(42px, 7vw, 78px);
  letter-spacing: -0.055em;
}

.panel h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.hero-text,
.panel-tip,
.method-copy p,
.empty-state p,
.note-list,
.detail-grid,
.diagnosis-list,
.diagnosis-factors,
.scenario-grid p,
.tool-card small {
  color: var(--muted);
}

.hero-text {
  max-width: 64ch;
  font-size: 18px;
  line-height: 1.8;
}

.hero-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-stat-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(35, 27, 22, 0.09);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.hero-stat-strip strong {
  color: var(--accent);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
}

.primary-link {
  color: #fffaf7;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 14px 26px rgba(var(--accent-rgb), 0.2);
}

.secondary-link {
  border: 1px solid rgba(35, 27, 22, 0.12);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.7);
}

.hero-note {
  background:
    linear-gradient(180deg, rgba(31, 109, 102, 0.9), rgba(24, 73, 71, 0.96));
  color: #f9fbfb;
}

.note-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
}

.note-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(249, 251, 251, 0.9);
  line-height: 1.9;
}

.benchmark-panel,
.playbook-panel {
  margin-bottom: 24px;
}

.benchmark-grid,
.playbook-grid {
  display: grid;
  gap: 14px;
}

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

.benchmark-grid article,
.playbook-grid article {
  position: relative;
  min-height: 190px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(35, 27, 22, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.benchmark-grid article::after,
.playbook-grid article::after {
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.09);
  content: "";
}

.benchmark-grid span,
.playbook-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.benchmark-grid h3,
.playbook-grid h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.benchmark-grid p,
.playbook-grid p,
.section-head p,
.fine-print,
.site-footer {
  color: var(--muted);
}

.benchmark-grid p,
.playbook-grid p {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.7;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
}

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
}

.section-head p {
  max-width: 340px;
  margin: 0;
  line-height: 1.7;
  text-align: right;
}

.tool-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.tool-card {
  position: relative;
  min-height: 310px;
  padding: 20px;
  overflow: hidden;
  border-radius: 26px;
  text-align: left;
}

.tool-card::after {
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.11);
  content: "";
}

.tool-card:hover:not(:disabled),
.tool-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.35);
}

.tool-card.is-active {
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(255, 252, 247, 0.92));
}

.tool-card-label {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.tool-card strong,
.tool-card small,
.tool-card em,
.tool-audience,
.tool-feature-list {
  position: relative;
  z-index: 1;
  display: block;
}

.tool-card strong {
  margin-bottom: 10px;
  font-size: 22px;
}

.tool-card em {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.tool-card small {
  min-height: 72px;
  line-height: 1.7;
}

.tool-audience {
  margin-top: 14px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 900;
}

.tool-feature-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.tool-feature-list li::before {
  margin-right: 6px;
  color: var(--accent);
  content: "✓";
  font-weight: 900;
}

.main-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  margin-bottom: 24px;
}

.panel {
  border-radius: 28px;
  padding: 28px;
}

.panel-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.panel-head h2 {
  margin-bottom: 0;
}

.panel-tip {
  max-width: 286px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  text-align: right;
}

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

.field-wide {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 15px;
  font-weight: 800;
}

.field-label b {
  margin-right: 4px;
  color: var(--danger);
}

.field-hint,
.error {
  min-height: 20px;
  font-size: 13px;
  line-height: 1.5;
}

.field-hint {
  color: var(--muted);
}

.error {
  color: var(--danger);
}

input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(35, 27, 22, 0.14);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus {
  border-color: rgba(var(--accent-rgb), 0.65);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
  transform: translateY(-1px);
}

input.input-error {
  border-color: rgba(178, 61, 47, 0.45);
  box-shadow: 0 0 0 4px rgba(178, 61, 47, 0.08);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-btn {
  color: #fffaf7;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 14px 26px rgba(var(--accent-rgb), 0.24);
}

.secondary-btn {
  border: 1px solid rgba(35, 27, 22, 0.1);
  color: var(--brand-deep);
  background: #fffaf4;
}

.ghost-btn {
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

.empty-state {
  min-height: 460px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
}

.empty-mark {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(191, 93, 50, 0.14));
  font-size: 22px;
  font-weight: 900;
}

.result-content.hidden,
.hidden {
  display: none;
}

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

.metric-card {
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(35, 27, 22, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card-strong {
  color: #fff9f6;
  background: linear-gradient(160deg, var(--brand), var(--accent));
}

.metric-card-strong .metric-label {
  color: rgba(255, 249, 246, 0.82);
}

.metric-label {
  color: var(--muted);
  font-size: 14px;
}

.metric-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
}

.detail-block {
  margin-top: 24px;
}

.detail-block h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

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

.detail-item {
  padding: 14px 16px;
  border: 1px solid rgba(35, 27, 22, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.detail-item span {
  display: block;
}

.detail-item .detail-name {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.detail-item .detail-value {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.diagnosis-summary,
.diagnosis-factors,
.diagnosis-list {
  display: grid;
  gap: 12px;
}

.diagnosis-summary {
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  font-weight: 800;
}

.diagnosis-summary.is-positive {
  border-color: rgba(24, 121, 78, 0.16);
  color: var(--success);
  background: rgba(24, 121, 78, 0.08);
}

.diagnosis-summary.is-negative {
  border-color: rgba(178, 61, 47, 0.16);
  color: var(--danger);
  background: rgba(178, 61, 47, 0.08);
}

.diagnosis-summary.is-warning {
  border-color: rgba(182, 106, 20, 0.18);
  color: var(--warning);
  background: rgba(182, 106, 20, 0.09);
}

.diagnosis-factors {
  margin-top: 12px;
}

.diagnosis-factors span {
  display: inline-flex;
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid rgba(35, 27, 22, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.diagnosis-list {
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}

.insight-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  margin-bottom: 24px;
}

.formula-list {
  display: grid;
  gap: 12px;
}

.formula-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(35, 27, 22, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.formula-name {
  font-weight: 800;
}

code {
  overflow-x: auto;
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", Monaco, monospace;
  font-size: 13px;
  white-space: nowrap;
}

.method-copy {
  display: grid;
  gap: 14px;
  line-height: 1.9;
}

.tool-map {
  margin-top: 0;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.scenario-grid article {
  padding: 18px;
  border: 1px solid rgba(35, 27, 22, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.scenario-grid span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.scenario-grid h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}

.scenario-grid p {
  margin: 0;
  line-height: 1.7;
}

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

.fine-print {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(var(--accent-rgb), 0.08);
  line-height: 1.7;
}

.site-footer {
  margin-top: 24px;
  padding: 18px;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .main-grid,
  .insight-grid,
  .tool-switch,
  .scenario-grid,
  .benchmark-grid,
  .playbook-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .panel-tip {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 16px, 100%);
    padding-top: 10px;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
  }

  .topbar-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar-links a {
    background: rgba(255, 255, 255, 0.62);
  }

  .hero-grid,
  .tool-switch,
  .scenario-grid,
  .benchmark-grid,
  .playbook-grid,
  .field-grid,
  .hero-metrics,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-note,
  .panel,
  .tool-card {
    border-radius: 22px;
    padding: 18px;
  }

  .hero h1 {
    max-width: none;
    margin-top: 12px;
    font-size: 40px;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-stat-strip {
    gap: 8px;
  }

  .hero-stat-strip span {
    width: calc(50% - 4px);
    justify-content: center;
    border-radius: 16px;
  }

  .hero-actions,
  .action-row {
    flex-direction: column;
  }

  .primary-link,
  .secondary-link,
  button {
    width: 100%;
  }

  .panel-head {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
  }

  .panel h2 {
    font-size: 28px;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    max-width: none;
    margin-top: 8px;
    text-align: left;
  }

  .panel-tip {
    font-size: 13px;
  }

  .field-grid {
    gap: 14px;
  }

  input {
    height: 46px;
    font-size: 15px;
  }

  .metric-card {
    min-height: 110px;
  }

  .empty-state {
    min-height: 280px;
  }

  .tool-card {
    min-height: auto;
  }

  .tool-card small {
    min-height: auto;
  }
}

/* Toolbox landing refresh */
.tool-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.tool-card {
  isolation: isolate;
  min-height: 360px;
  padding: 26px;
  border-color: rgba(35, 27, 22, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 238, 0.86)),
    radial-gradient(circle at 86% 12%, rgba(var(--accent-rgb), 0.16), transparent 30%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.tool-card::before {
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  content: "";
}

.tool-card::after {
  right: -70px;
  bottom: -76px;
  width: 190px;
  height: 190px;
  background:
    radial-gradient(circle, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.04) 64%, transparent 70%);
}

.tool-card:hover:not(:disabled),
.tool-card.is-active {
  box-shadow: 0 28px 70px rgba(77, 53, 36, 0.18);
}

.tool-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 34px;
}

.tool-card-label {
  width: 46px;
  height: 46px;
  margin: 0;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(var(--accent-rgb), 0.18);
  font-size: 14px;
}

.tool-card em {
  margin: 0;
}

.tool-card strong {
  max-width: 13em;
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.tool-card small {
  max-width: 42em;
  min-height: 58px;
  font-size: 15px;
}

.tool-audience {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(191, 93, 50, 0.1);
}

.tool-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.tool-feature-list li {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(35, 27, 22, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

.tool-feature-list li::before {
  content: "";
}

.tool-card-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fffaf7;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 14px 28px rgba(var(--accent-rgb), 0.18);
  font-size: 14px;
  font-weight: 900;
}

.workspace {
  position: relative;
  margin: 34px 0 24px;
  padding: 18px;
  border: 1px solid rgba(35, 27, 22, 0.08);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.7), rgba(255, 252, 247, 0.34)),
    rgba(var(--accent-rgb), 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px 18px 4px;
}

.workspace-head h2 {
  margin: 14px 0 8px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.workspace-copy {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.back-btn {
  flex: 0 0 auto;
}

.workspace .main-grid,
.workspace .insight-grid {
  margin-bottom: 18px;
}

.playbook-panel {
  margin-top: 24px;
}

@media (max-width: 1080px) {
  .tool-switch,
  .tool-feature-list {
    grid-template-columns: 1fr 1fr;
  }

  .workspace-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: 36px;
  }

  .tool-switch,
  .tool-feature-list {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: auto;
    padding: 20px;
  }

  .tool-card-top {
    margin-bottom: 24px;
  }

  .tool-card strong {
    font-size: 26px;
  }

  .tool-feature-list li {
    min-height: auto;
  }

  .workspace {
    padding: 8px;
    border-radius: 24px;
  }

  .workspace-head {
    padding: 14px 10px 2px;
  }

  .workspace-head h2 {
    font-size: 30px;
  }

  .back-btn {
    width: 100%;
  }
}

/* Clean reference-style homepage */
:root {
  --clean-bg: #f3f6fb;
  --clean-card: rgba(255, 255, 255, 0.92);
  --clean-card-soft: #f8fbff;
  --clean-line: rgba(23, 37, 61, 0.09);
  --clean-text: #142033;
  --clean-muted: #60708a;
  --clean-shadow: 0 18px 50px rgba(24, 36, 58, 0.09);
  --clean-glow: rgba(67, 109, 185, 0.1);
  --clean-glow-warm: rgba(194, 123, 78, 0.1);
}

body {
  color: var(--clean-text);
  background:
    radial-gradient(circle at 14% 6%, var(--clean-glow), transparent 26%),
    radial-gradient(circle at 84% 14%, var(--clean-glow-warm), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--clean-bg) 58%, #edf2f8 100%);
}

.page-shell {
  width: min(1120px, calc(100% - 48px));
  padding-top: 24px;
}

.topbar {
  position: static;
  max-width: 980px;
  margin: 0 auto 24px;
  border-color: var(--clean-line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(18, 31, 54, 0.06);
}

.brand-mark {
  background: linear-gradient(135deg, #162235, #2f4b77);
}

.topbar-links a {
  color: var(--clean-muted);
}

.hero {
  margin-bottom: 22px;
}

.clean-hero-grid {
  grid-template-columns: 1fr;
}

.hero-copy {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.eyebrow,
.panel-kicker {
  color: #36507a;
  background: rgba(54, 80, 122, 0.08);
}

.hero h1 {
  max-width: none;
  margin: 16px 0 12px;
  font-size: clamp(42px, 5vw, 62px);
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 680px;
  margin: 0 auto;
  color: var(--clean-muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-stat-strip {
  display: none;
}

.hero-stat-strip span {
  border-color: var(--clean-line);
  color: var(--clean-muted);
  background: rgba(255, 255, 255, 0.78);
}

.hero-stat-strip strong {
  color: #101828;
}

.hero-actions {
  justify-content: center;
  margin-top: 22px;
}

.primary-link,
.secondary-link {
  min-width: 132px;
  border-radius: 999px;
}

.primary-link {
  background: linear-gradient(135deg, #1a2841, #305083);
  box-shadow: 0 14px 30px rgba(36, 62, 108, 0.22);
}

.secondary-link {
  border: 1px solid rgba(48, 80, 131, 0.08);
  color: #24406b;
  background: rgba(255, 255, 255, 0.88);
}

.section-head {
  max-width: 980px;
  margin: 0 auto 14px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.035em;
}

.section-head p {
  color: var(--clean-muted);
}

.tool-switch {
  max-width: 980px;
  margin: 0 auto 34px;
  gap: 18px;
}

.tool-card {
  min-height: 254px;
  padding: 26px;
  border-color: var(--clean-line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.88)),
    var(--clean-card);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02), 0 16px 34px rgba(25, 39, 66, 0.06);
}

.tool-card::before,
.tool-card::after {
  display: none;
}

.tool-card:hover:not(:disabled),
.tool-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: var(--clean-shadow);
}

.tool-card.is-active {
  background: #ffffff;
}

.tool-card-top {
  margin-bottom: 30px;
}

.tool-card-label {
  width: auto;
  height: auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: none;
  color: var(--accent);
}

.tool-card em {
  color: var(--clean-muted);
  background: rgba(53, 77, 120, 0.08);
}

.tool-card strong {
  max-width: none;
  margin-bottom: 12px;
  font-size: 27px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.tool-card small {
  min-height: 52px;
  color: var(--clean-muted);
  font-size: 15px;
  line-height: 1.75;
}

.tool-card-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.tool-audience {
  display: block;
  max-width: 70%;
  margin: 0;
  padding: 0;
  color: var(--clean-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.tool-card-cta {
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(var(--accent-rgb), 0.08));
  box-shadow: none;
}

.workspace {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.site-footer {
  color: var(--clean-muted);
}

@media (max-width: 1080px) {
  .tool-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[data-page="home"] .tool-card {
  display: flex;
  flex-direction: column;
}

body[data-page="home"] .tool-feature-list {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

body[data-page="home"] .tool-feature-list li {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--clean-muted);
}

body[data-page="home"] .tool-feature-list li::before {
  margin-right: 8px;
  color: var(--accent);
  content: "✓";
  font-weight: 900;
}

body[data-page="home"] .tool-card-bottom {
  margin-top: auto;
}

body[data-page="tool"] .page-shell {
  width: min(1160px, calc(100% - 40px));
  padding-top: 24px;
}

body[data-page="tool"] .topbar {
  max-width: 1120px;
}

.tool-page-hero {
  position: relative;
  isolation: isolate;
  max-width: 1120px;
  margin: 0 auto 18px;
  padding: 2px 0 0;
}

.tool-page-hero::before {
  position: absolute;
  inset: -12px -16px -10px;
  z-index: -1;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 250, 255, 0.78));
  box-shadow: 0 18px 46px rgba(24, 36, 58, 0.05);
  content: "";
}

.tool-breadcrumb {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--clean-muted);
  font-size: 13px;
  font-weight: 700;
}

.tool-breadcrumb:hover {
  color: var(--clean-text);
}

.tool-page-hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(34px, 4.2vw, 50px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.tool-page-text {
  max-width: 760px;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}

.tool-page-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tool-page-highlights span {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--clean-line);
  border-radius: 999px;
  color: #2f456d;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(var(--accent-rgb), 0.08));
  font-size: 13px;
  font-weight: 700;
}

body[data-page="tool"] .workspace {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--clean-line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(248, 251, 255, 0.74));
  box-shadow: 0 18px 54px rgba(20, 34, 56, 0.08);
}

body[data-page="tool"] .workspace-head {
  padding: 8px 6px 18px;
}

body[data-page="tool"] .workspace-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
}

body[data-page="tool"] .workspace-copy {
  max-width: 720px;
}

body[data-page="tool"] .main-grid {
  margin-bottom: 18px;
}

body[data-page="tool"] .panel {
  border-color: var(--clean-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.94));
  box-shadow: 0 14px 38px rgba(21, 36, 59, 0.06);
}

body[data-page="tool"] .secondary-btn {
  border: 1px solid rgba(179, 118, 78, 0.16);
  color: #9a532d;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(255, 245, 237, 0.92));
}

body[data-page="tool"] .primary-btn {
  background: linear-gradient(135deg, #b86d41, var(--accent));
  box-shadow: 0 14px 26px rgba(var(--accent-rgb), 0.22);
}

body[data-page="tool"] .empty-mark {
  color: var(--accent);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(184, 109, 65, 0.1));
}

body[data-page="tool"] .metric-card {
  border-color: rgba(39, 58, 90, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.88));
}

body[data-page="tool"] .detail-item,
body[data-page="tool"] .diagnosis-factors span {
  border-color: rgba(39, 58, 90, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.9));
}

body[data-page="tool"] .empty-state {
  min-height: 340px;
}

body[data-page="tool"] .site-footer {
  margin-top: 28px;
}

@media (max-width: 900px) {
  body[data-page="tool"] .tool-page-highlights span {
    width: fit-content;
  }
}

@media (max-width: 720px) {
  body[data-page="tool"] .page-shell {
    width: min(100% - 16px, 100%);
  }

  body[data-page="tool"] .tool-page-text {
    max-width: none;
  }

  body[data-page="tool"] .tool-page-highlights span {
    width: 100%;
    justify-content: center;
  }
}
