:root {
  color-scheme: light;
  --bg: #f6f9fb;
  --surface: #ffffff;
  --surface-2: #edf3f7;
  --ink: #061629;
  --ink-soft: #33485f;
  --muted: #64748b;
  --line: #d7e1ea;
  --accent: #2563eb;
  --accent-2: #14b8a6;
  --success: #0f766e;
  --danger: #b42318;
  --amber: #f59e0b;
  --shadow: 0 18px 48px rgba(6, 22, 41, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans TC", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0f1d31;
  --surface-2: #14263c;
  --ink: #f3f7fb;
  --ink-soft: #c5d3e2;
  --muted: #94a8bd;
  --line: #263b55;
  --accent: #60a5fa;
  --accent-2: #2dd4bf;
  --success: #5eead4;
  --danger: #fca5a5;
  --amber: #fbbf24;
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% -10%, rgba(20, 184, 166, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fbfd 0%, var(--bg) 42%, #edf7f5 100%);
  color: var(--ink);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% -8%, rgba(45, 212, 191, 0.18), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(96, 165, 250, 0.16), transparent 26%),
    linear-gradient(180deg, #050b13 0%, var(--bg) 48%, #081b24 100%);
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 225, 234, 0.78);
  background: rgba(246, 249, 251, 0.9);
  backdrop-filter: blur(16px);
}

html[data-theme="dark"] .topbar {
  border-bottom-color: rgba(38, 59, 85, 0.8);
  background: rgba(7, 17, 31, 0.88);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: url("logo.svg") center / contain no-repeat;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.control-button {
  display: inline-flex;
  min-width: 54px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.control-button:hover,
.control-button.is-active {
  border-color: rgba(37, 99, 235, 0.32);
  background: rgba(37, 99, 235, 0.09);
  color: var(--accent);
}

html[data-theme="dark"] .control-button {
  background: rgba(15, 29, 49, 0.72);
}

.button,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.nav-cta {
  min-height: 38px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.button {
  gap: 8px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 10px 24px rgba(6, 22, 41, 0.18);
}

.button.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: none;
}

html[data-theme="dark"] .button.ghost {
  background: rgba(15, 29, 49, 0.72);
}

.button:hover,
.nav-cta:hover {
  filter: brightness(0.95);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(246, 249, 251, 0.96), rgba(229, 241, 255, 0.9) 48%, rgba(204, 251, 241, 0.84)),
    url("lab-grid.svg") center / cover;
}

html[data-theme="dark"] .hero {
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.96), rgba(11, 31, 54, 0.92) 52%, rgba(12, 57, 63, 0.82)),
    url("lab-grid.svg") center / cover;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 40px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 62px 20px 52px;
}

.hero-center {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 20px 58px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9em;
  margin-bottom: 20px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-center h1 {
  max-width: 12em;
  margin-inline: auto;
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.74;
}

.hero-center .hero-copy {
  margin-inline: auto;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 540px;
  overflow: hidden;
  border: 1px solid rgba(215, 225, 234, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .proof-strip {
  background: rgba(15, 29, 49, 0.7);
}

.hero-center .proof-strip {
  margin-inline: auto;
}

.proof-item {
  padding: 14px 16px;
  border-left: 1px solid var(--line);
}

.proof-item:first-child {
  border-left: 0;
}

.proof-value {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
  font-weight: 900;
}

.proof-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 54px 20px;
}

.section-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(237, 243, 247, 0.9) 55%, rgba(224, 242, 254, 0.72)),
    url("lab-grid.svg") center / cover;
}

html[data-theme="dark"] .section-band {
  background:
    linear-gradient(135deg, rgba(9, 21, 36, 0.92), rgba(15, 36, 57, 0.88) 55%, rgba(15, 61, 64, 0.68)),
    url("lab-grid.svg") center / cover;
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

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

.section-head h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.28;
}

.section-head p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 14px;
}

.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 {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  box-shadow: 0 12px 30px rgba(6, 22, 41, 0.08);
}

html[data-theme="dark"] .card {
  background: rgba(15, 29, 49, 0.88);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 17px;
}

.card p,
.card li {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.72;
}

.icon-box {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  color: var(--accent);
  font-weight: 900;
}

html[data-theme="dark"] .icon-box {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(45, 212, 191, 0.14));
}

.audit-panel {
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

html[data-theme="dark"] .audit-panel {
  border-color: rgba(38, 59, 85, 0.88);
  background: rgba(15, 29, 49, 0.86);
}

.founder-card {
  position: relative;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(236, 253, 245, 0.72)),
    url("lab-grid.svg") center / cover;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

html[data-theme="dark"] .founder-card {
  border-color: rgba(38, 59, 85, 0.88);
  background:
    linear-gradient(160deg, rgba(15, 29, 49, 0.92), rgba(13, 54, 62, 0.7)),
    url("lab-grid.svg") center / cover;
}

.founder-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--amber));
  content: "";
}

.founder-top {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 28px 26px 18px;
}

.founder-avatar {
  display: block;
  width: 118px;
  height: 118px;
  max-width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background: #e0f2fe;
  box-shadow: 0 18px 32px rgba(6, 22, 41, 0.12);
  object-fit: cover;
  object-position: center 34%;
}

.founder-meta .eyebrow {
  margin-bottom: 8px;
}

.founder-name {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.founder-role {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.lab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 26px 22px;
}

.lab-tag {
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 7px 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

html[data-theme="dark"] .lab-tag {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(7, 17, 31, 0.58);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.signal-card {
  min-height: 118px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

html[data-theme="dark"] .signal-card {
  background: rgba(7, 17, 31, 0.5);
}

.signal-card:first-child {
  border-left: 0;
}

.signal-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.signal-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.brand-note {
  border-top: 1px solid var(--line);
  background: rgba(6, 22, 41, 0.94);
  padding: 16px 26px;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.65;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 0;
}

.panel-kicker {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.panel-title {
  margin: 0;
  font-size: 22px;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 7px 10px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.status-pill {
  gap: 8px;
  border-color: rgba(20, 184, 166, 0.28);
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--success);
  font-family: inherit;
}

html[data-theme="dark"] .status-pill {
  background: rgba(20, 184, 166, 0.12);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.audit-form,
.unlock-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.audit-form {
  padding: 20px 22px 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 750;
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  outline: 0;
  padding: 0 14px;
}

html[data-theme="dark"] .field input {
  background: rgba(7, 17, 31, 0.72);
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.mock-turnstile {
  margin: 0 22px 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(246, 249, 251, 0.76);
  padding: 12px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mock-turnstile.is-verified {
  border-color: rgba(20, 184, 166, 0.58);
  background: rgba(236, 253, 245, 0.82);
}

html[data-theme="dark"] .mock-turnstile {
  background: rgba(7, 17, 31, 0.5);
}

html[data-theme="dark"] .mock-turnstile.is-verified {
  background: rgba(20, 184, 166, 0.12);
}

.turnstile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  gap: 12px;
  padding: 0;
  text-align: left;
}

.turnstile-row:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.fake-checkbox {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.54);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: transparent;
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.turnstile-row[aria-pressed="true"] .fake-checkbox {
  border-color: rgba(20, 184, 166, 0.38);
  background: #ecfdf5;
  color: var(--success);
}

.turnstile-row[aria-pressed="true"] .fake-checkbox::after {
  content: "✓";
}

.turnstile-row[aria-pressed="true"] .checkbox-row {
  color: var(--ink);
}

html[data-theme="dark"] .fake-checkbox,
html[data-theme="dark"] .unlock-note,
html[data-theme="dark"] .impact.low {
  background: rgba(20, 184, 166, 0.12);
}

.cf-label {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.mini-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.mini-card {
  padding: 16px;
  border-left: 1px solid var(--line);
}

.mini-card:first-child {
  border-left: 0;
}

.mini-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.mini-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.result {
  display: none;
  grid-template-columns: 336px minmax(0, 1fr);
  gap: 24px;
}

.result.is-visible {
  display: grid;
}

.score-card,
.issue-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(6, 22, 41, 0.08);
}

html[data-theme="dark"] .score-card,
html[data-theme="dark"] .issue-card {
  background: rgba(15, 29, 49, 0.92);
  box-shadow: var(--shadow);
}

.score-card {
  background: var(--bg);
  padding: 24px;
  box-shadow: 0 14px 36px rgba(6, 22, 41, 0.1);
}

html[data-theme="dark"] .score-card {
  background: var(--surface);
}

.report-id {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.score-ring {
  --score-deg: 288deg;
  display: grid;
  width: 210px;
  height: 210px;
  place-items: center;
  margin: 26px auto;
  border-radius: 50%;
  background: conic-gradient(var(--success) var(--score-deg), #dbeafe 0deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 36px rgba(6, 22, 41, 0.12);
}

.score-inner {
  display: flex;
  width: 168px;
  height: 168px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: var(--bg);
}

html[data-theme="dark"] .score-inner {
  border-color: rgba(38, 59, 85, 0.86);
}

.score-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.score-number {
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 70px;
  font-weight: 900;
  line-height: 1;
}

.grade-box {
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 8px;
  background: #fffbeb;
  padding: 15px;
}

html[data-theme="dark"] .grade-box {
  background: rgba(251, 191, 36, 0.12);
}

.grade-box h2 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.grade-box p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.result-stack {
  display: grid;
  gap: 20px;
}

.issue-card {
  overflow: hidden;
}

.issue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 249, 251, 0.78);
}

html[data-theme="dark"] .issue-head {
  background: rgba(7, 17, 31, 0.5);
}

.issue-head h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.issue-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.dimension-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

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

.evidence-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 12px;
}

.evidence-item dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.evidence-item dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dimension {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 12px;
}

.dimension strong {
  display: block;
  font-size: 14px;
}

.dimension span {
  color: var(--muted);
  font-size: 12px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}

.bar > i {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
}

.dimension-score {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
  text-align: right;
}

.issue-list {
  display: grid;
}

.issue-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

html[data-theme="dark"] .issue-row {
  background: rgba(15, 29, 49, 0.78);
}

.issue-row:first-child {
  border-top: 0;
}

.issue-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.issue-row h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.45;
}

.issue-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.issue-row p strong {
  color: var(--ink-soft);
}

.issue-evidence {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.impact {
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

.impact.high {
  border: 1px solid #f4b3ad;
  background: #fff1f0;
  color: var(--danger);
}

html[data-theme="dark"] .impact.high {
  background: rgba(252, 165, 165, 0.12);
}

.impact.medium {
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: #fffbeb;
  color: #a15c00;
}

html[data-theme="dark"] .impact.medium {
  background: rgba(251, 191, 36, 0.12);
  color: var(--amber);
}

.impact.low {
  border: 1px solid rgba(20, 184, 166, 0.28);
  background: #ecfdf5;
  color: var(--success);
}

.locked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 15px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.unlock-form {
  padding: 18px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.unlock-note {
  display: none;
  margin: 0;
  border-top: 1px solid var(--line);
  background: #ecfdf5;
  padding: 14px 18px;
  color: var(--success);
  font-size: 14px;
  font-weight: 750;
}

.unlock-note.is-visible {
  display: block;
}

.price {
  margin: 8px 0 14px;
  font-size: 28px;
  font-weight: 900;
}

.card.featured {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.14);
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li::before {
  content: "\2713";
  margin-right: 8px;
  color: var(--success);
  font-weight: 900;
}

.page-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 16px 18px;
}

html[data-theme="dark"] .page-list a {
  background: rgba(15, 29, 49, 0.86);
}

.page-list span {
  color: var(--muted);
  font-size: 14px;
}

.policy {
  max-width: 860px;
}

.policy h2 {
  margin-top: 28px;
}

.policy p,
.policy li {
  color: var(--ink-soft);
  line-height: 1.78;
}

.footer {
  background:
    linear-gradient(135deg, rgba(6, 22, 41, 0.96), rgba(8, 44, 77, 0.96)),
    url("lab-grid.svg") center / cover;
  color: var(--bg);
}

html[data-theme="dark"] .footer {
  color: var(--ink);
}

.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 20px;
  text-align: center;
}

.footer h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer h2::before {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: url("logo.svg") center / contain no-repeat;
  content: "";
}

.footer p {
  color: #cbd5e1;
  line-height: 1.72;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  color: #cbd5e1;
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 18px;
  top: 76px;
  z-index: 50;
  display: none;
  max-width: 340px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(6, 22, 41, 0.14);
  padding: 12px 16px;
  color: var(--ink);
  font-size: 14px;
}

html[data-theme="dark"] .toast {
  background: var(--surface);
}

.toast.is-visible {
  display: block;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav {
    gap: 14px;
  }

  .hero-inner,
  .result,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 48px;
  }

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

@media (max-width: 640px) {
  .nav {
    padding-inline: 16px;
  }

  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .nav-controls {
    gap: 4px;
  }

  .control-button {
    min-width: 48px;
    min-height: 32px;
    padding-inline: 8px;
  }

  .nav-cta {
    display: none;
  }

  .hero-inner,
  .section,
  .hero-center {
    padding-inline: 16px;
  }

  .hero-inner {
    gap: 14px;
    padding-block: 22px;
  }

  h1 {
    font-size: 32px;
  }

  .hero-copy {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.5;
  }

  .proof-strip,
  .mini-preview,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .mini-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .proof-item:first-child,
  .mini-card:first-child {
    border-top: 0;
  }

  .founder-top {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 18px 10px;
  }

  .founder-avatar {
    width: 86px;
    height: 86px;
  }

  .founder-name {
    font-size: 25px;
  }

  .founder-role {
    font-size: 13px;
    display: -webkit-box;
    max-height: 38px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .lab-tags,
  .brand-note {
    padding-inline: 18px;
  }

  .lab-tags {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .lab-tag {
    flex: 0 0 auto;
    padding: 5px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

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

  .signal-card {
    min-height: 46px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    padding: 10px;
  }

  .signal-card span {
    display: none;
  }

  .signal-card:nth-child(1),
  .signal-card:nth-child(2) {
    border-top: 0;
  }

  .signal-card:nth-child(odd) {
    border-left: 0;
  }

  .brand-note {
    padding-block: 12px;
    font-size: 12px;
    display: none;
  }

  .audit-form,
  .unlock-form {
    grid-template-columns: 1fr;
  }

  .audit-form .button,
  .unlock-form .button {
    width: 100%;
  }

  .turnstile-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .cf-label {
    text-align: left;
  }

  .dimension {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .dimension-score {
    text-align: left;
  }

  .issue-head,
  .issue-row {
    grid-template-columns: 1fr;
  }

  .issue-head {
    align-items: flex-start;
  }

  .impact {
    width: fit-content;
  }
}
