:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --surface-2: #eef0ed;
  --surface-3: #e7eae6;
  --ink: #16191b;
  --ink-soft: #3e454a;
  --muted: #68707a;
  --faint: #8b949b;
  --line: #dde1dc;
  --line-strong: #c7cdc6;
  --accent: #0f766e;
  --accent-strong: #0b5d57;
  --accent-soft: #e2f2ef;
  --accent-ring: rgba(15, 118, 110, .22);
  --warm: #c96a08;
  --warm-soft: #fdf0dd;
  --danger: #bf3b2d;
  --danger-soft: #fbe9e6;
  --success: #1a7f3d;
  --success-soft: #e3f2e8;
  --info: #2563eb;
  --info-soft: #e7edfd;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .07);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --radius: 8px;
  --radius-sm: 6px;
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #0f1211;
  --surface: #171b19;
  --surface-2: #1d2220;
  --surface-3: #252b28;
  --ink: #eef2ef;
  --ink-soft: #c4ccc7;
  --muted: #9aa49e;
  --faint: #717c76;
  --line: #2a322e;
  --line-strong: #38433e;
  --accent: #2ea99c;
  --accent-strong: #46bfb0;
  --accent-soft: rgba(46, 169, 156, .14);
  --accent-ring: rgba(46, 169, 156, .28);
  --warm: #e8a23d;
  --warm-soft: rgba(233, 162, 61, .14);
  --danger: #ef6a5d;
  --danger-soft: rgba(239, 106, 93, .14);
  --success: #5cc47f;
  --success-soft: rgba(92, 196, 127, .14);
  --info: #7aa2ff;
  --info-soft: rgba(122, 162, 255, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px rgba(0, 0, 0, .28);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font-family: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  transition: top .15s ease;
}

.skip-link:focus {
  top: 12px;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-narrow {
  max-width: 900px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

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

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

.brand-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.brand-mark svg {
  width: 36px;
  height: 36px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: .02em;
}

.brand-text small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: .16em;
}

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

.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 550;
  transition: background .15s ease, color .15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--ink);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible,
.icon-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
details summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-ghost {
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}

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

.btn-warm:hover {
  filter: brightness(1.06);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-lg {
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
}

.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-strong);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn .lucide-moon {
  display: none;
}

[data-theme="dark"] .icon-btn .lucide-sun {
  display: none;
}

[data-theme="dark"] .icon-btn .lucide-moon {
  display: block;
}

.menu-btn {
  display: none;
}

.mobile-menu {
  display: grid;
  gap: 4px;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-menu a {
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.mobile-menu a:hover {
  background: var(--surface-2);
}

.mobile-menu .btn {
  justify-content: center;
}

main {
  flex: 1;
}

.page {
  animation: pageIn .25s ease both;
}

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

/* Home */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 mark {
  background: none;
  color: var(--accent);
}

.hero-sub {
  margin: 0 0 22px;
  max-width: 560px;
  font-size: 16px;
  color: var(--muted);
}

.hero-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  max-width: 620px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hero-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.input-wrap {
  position: relative;
  min-width: 0;
}

.input-wrap > svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--faint);
  pointer-events: none;
}

.field {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field::placeholder {
  color: var(--faint);
}

.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.field[data-prefix] {
  padding-left: 42px;
}

select.field {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2368707a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

textarea.field {
  min-height: 92px;
  resize: vertical;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

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

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

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

.report-preview {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.report-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.report-preview-head strong {
  font-size: 13px;
}

.report-preview-head small {
  color: var(--muted);
  font-size: 12px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 127, 61, .35); }
  50% { box-shadow: 0 0 0 5px rgba(26, 127, 61, 0); }
}

.preview-answer {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.preview-answer-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 8px;
}

.preview-answer-label svg {
  width: 14px;
  height: 14px;
}

.preview-answer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.preview-answer p b {
  color: var(--accent);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.preview-metric {
  padding: 12px 10px;
  background: var(--surface);
}

.preview-metric strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.preview-metric span {
  color: var(--muted);
  font-size: 11px;
}

.preview-models {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.preview-model {
  display: grid;
  grid-template-columns: 1fr 84px;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--surface);
}

.preview-model-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  min-width: 0;
}

.model-dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.preview-model-state {
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.badge-warm {
  background: var(--warm-soft);
  color: var(--warm);
}

.badge-muted {
  background: var(--surface-3);
  color: var(--muted);
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-info {
  background: var(--info-soft);
  color: var(--info);
}

.model-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.model-strip-inner {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  overflow-x: auto;
}

.model-strip-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.model-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.model-chip .model-dot {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.section {
  padding-top: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}

.section-tight {
  padding-top: 48px;
  padding-bottom: 48px;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
}

.section-head.center .eyebrow::after {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: 0;
}

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

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

.feature-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
}

.stat-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.stat-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-number {
  font-size: 28px;
  font-weight: 850;
  color: var(--accent);
  line-height: 1;
  text-align: center;
  padding-top: 2px;
}

.stat-row h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.stat-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.compare-box {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.compare-box-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.compare-box-head strong {
  display: block;
  font-size: 14px;
}

.compare-box-head small {
  color: var(--muted);
  font-size: 12px;
}

.compare-list {
  display: grid;
  gap: 0;
}

.compare-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-row span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.compare-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.compare-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.compare-row small {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

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

.step-item {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.step-item::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.step-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.answer-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.answer-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.answer-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.answer-panel-head strong {
  font-size: 13px;
}

.answer-panel-head .badge {
  font-size: 10px;
}

.answer-panel-body {
  padding: 16px;
}

.answer-question {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.answer-excerpt {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.answer-excerpt b {
  color: var(--accent);
}

.answer-excerpt em {
  color: var(--danger);
  font-style: normal;
  font-weight: 700;
}

.citation-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.citation-row .badge {
  font-size: 10px;
}

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

.missing-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 12px;
}

.missing-list svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--danger);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.plan.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring), var(--shadow);
}

.plan-popular-tag {
  position: absolute;
  top: -11px;
  left: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.plan h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.plan-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  min-height: 42px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}

.plan-price strong {
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

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

.plan ul {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.plan li svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--success);
}

.pricing-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  font-size: 14px;
}

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

.faq-item summary svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform .2s ease;
}

.faq-item[open] summary svg {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-bottom: 0;
}

[data-theme="dark"] .cta-band {
  background: linear-gradient(135deg, #13201d, #1a2b27);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 32px);
}

.cta-inner p {
  margin: 0;
  color: color-mix(in srgb, var(--bg) 72%, transparent);
  max-width: 620px;
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-actions .btn-primary {
  background: var(--accent);
  color: #fff;
}

.cta-actions .btn-secondary {
  background: transparent;
  border-color: color-mix(in srgb, var(--bg) 30%, transparent);
  color: var(--bg);
}

.cta-actions .btn-secondary:hover {
  background: color-mix(in srgb, var(--bg) 12%, transparent);
}

/* Check wizard */

.check-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

.check-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.check-head h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.check-head p {
  margin: 0;
  color: var(--muted);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 26px;
}

.stepper-step {
  position: relative;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper-step .step-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  font-size: 12px;
}

.stepper-step.active {
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.stepper-step.active .step-num {
  background: var(--accent);
  color: #fff;
}

.stepper-step.done {
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.stepper-step.done .step-num {
  background: var(--success-soft);
  color: var(--success);
}

.wizard-panel {
  max-width: 860px;
  margin: 0 auto;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

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

.panel-body {
  padding: 20px;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-soft);
}

.form-hint {
  color: var(--muted);
  font-size: 12px;
}

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

.model-option {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.model-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.model-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  background: var(--accent-soft);
}

.model-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.model-option-head strong {
  font-size: 13px;
}

.model-option small {
  color: var(--muted);
  font-size: 11px;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.wizard-actions .btn-group {
  display: flex;
  gap: 8px;
}

.question-list {
  display: grid;
  gap: 10px;
}

.question-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.question-card .q-check {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.question-meta .badge {
  font-size: 10px;
}

.question-text {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  padding: 0;
  resize: none;
}

.question-text:focus {
  outline: none;
}

.question-card.editing .question-text {
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 8px 10px;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.question-actions {
  display: flex;
  gap: 6px;
}

.question-actions .icon-btn {
  width: 32px;
  height: 32px;
}

.run-area {
  text-align: center;
  padding: 34px 20px;
}

.run-model-list {
  display: grid;
  gap: 10px;
  max-width: 560px;
  margin: 22px auto 0;
  text-align: left;
}

.run-model-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.run-model-row .model-dot {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.run-model-name {
  font-size: 13px;
  font-weight: 700;
}

.run-model-name small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.run-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  min-width: 90px;
  justify-content: flex-end;
}

.run-status.done {
  color: var(--success);
}

.run-status.running {
  color: var(--accent);
}

.run-status svg {
  width: 15px;
  height: 15px;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width .35s ease;
}

/* Report */

.report-page {
  padding-top: 32px;
  padding-bottom: 80px;
}

.report-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.report-title {
  min-width: 0;
}

.report-title h1 {
  margin: 0 0 4px;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.report-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.report-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.kpi-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.kpi-card .kpi-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 10px;
}

.kpi-card .kpi-label svg {
  width: 14px;
  height: 14px;
}

.kpi-card strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.kpi-card small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.trend-up {
  color: var(--success);
}

.trend-down {
  color: var(--danger);
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
  gap: 16px;
  align-items: start;
}

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

.model-report {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.model-report-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.model-report-head .model-dot {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.model-report-name strong {
  display: block;
  font-size: 14px;
}

.model-report-name small {
  color: var(--muted);
  font-size: 12px;
}

.model-report-body {
  padding: 14px 16px;
}

.model-report-excerpt {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.model-report-excerpt b {
  color: var(--accent);
}

.model-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 12px;
}

.model-report-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.model-report-meta svg {
  width: 13px;
  height: 13px;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.side-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.side-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.side-panel-head h3 {
  margin: 0;
  font-size: 14px;
}

.side-panel-head .badge {
  font-size: 10px;
}

.side-panel-body {
  padding: 14px 16px;
}

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

.source-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
}

.source-item svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.source-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-list {
  display: grid;
  gap: 10px;
}

.competitor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.competitor-row strong {
  font-size: 13px;
}

.competitor-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.competitor-count {
  min-width: 42px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.chart-wrap {
  min-height: 220px;
}

.chart-wrap svg {
  width: 100%;
  height: auto;
}

.chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

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

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.save-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
}

.save-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.save-banner strong {
  color: var(--ink);
}

/* Dashboard */

.dashboard-page {
  padding-top: 28px;
  padding-bottom: 60px;
}

.dash-container {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.dashboard-nav {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: grid;
  gap: 4px;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}

.dash-nav-item svg {
  width: 16px;
  height: 16px;
}

.dash-nav-item:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.dash-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.dashboard-main {
  min-width: 0;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.dash-topbar h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.dash-topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dash-section {
  margin-bottom: 22px;
}

.dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dash-section-head h2 {
  margin: 0;
  font-size: 15px;
}

.dash-section-head .link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}

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

.project-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

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

.project-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.project-card h3 {
  margin: 0;
  font-size: 15px;
}

.project-card .project-domain {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.project-metric {
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.project-metric strong {
  display: block;
  font-size: 15px;
}

.project-metric span {
  color: var(--muted);
  font-size: 10px;
}

.project-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-models .model-chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 11px;
}

.project-models .model-dot {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.project-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.project-card-foot small {
  color: var(--muted);
  font-size: 12px;
}

.table-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

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

.data-table th {
  padding: 11px 14px;
  text-align: left;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

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

.data-table .num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.data-table .cell-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  min-width: 0;
}

.data-table .cell-brand .model-dot {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.question-table-extra {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state svg {
  width: 34px;
  height: 34px;
  color: var(--faint);
}

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

.benchmark-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.benchmark-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.benchmark-card .benchmark-sub {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.bar-row span {
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row .bar {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.bar-row .bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.bar-row small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.alert-item:last-child {
  border-bottom: 0;
}

.alert-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--warm-soft);
  color: var(--warm);
}

.alert-icon svg {
  width: 15px;
  height: 15px;
}

.alert-item strong {
  display: block;
  font-size: 13px;
}

.alert-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.settings-list {
  display: grid;
  gap: 14px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.setting-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.toggle {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--surface-3);
  transition: background .15s ease;
  cursor: pointer;
}

.toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease;
}

.toggle input:checked + i {
  background: var(--accent);
}

.toggle input:checked + i::after {
  transform: translateX(20px);
}

/* Modal */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-root[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 13, .52);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

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

.modal-body {
  padding: 20px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

/* Toast */

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: toastIn .22s ease both;
}

.toast svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--success);
}

.toast strong {
  display: block;
  font-size: 13px;
}

.toast p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.toast.leaving {
  animation: toastOut .2s ease both;
}

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

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(8px); }
}

/* Footer */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .8fr));
  gap: 36px;
  padding-top: 46px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 340px;
}

.footer-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-models span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

/* Responsive */

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
  }

  .hero-visual {
    max-width: 720px;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .pricing-grid .plan:last-child {
    grid-column: 1 / -1;
  }

  .dashboard-page {
    padding-top: 20px;
  }

  .dash-container {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .dash-nav-item {
    flex: 0 0 auto;
    width: auto;
  }

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

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

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

  .menu-btn {
    display: inline-flex;
  }

  .header-actions .btn-ghost {
    display: none;
  }

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

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

  .answer-demo {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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

@media (max-width: 620px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-inner {
    gap: 8px;
  }

  .header-actions .btn-primary span {
    display: none;
  }

  .header-actions .btn-primary {
    padding: 0 10px;
  }

  .hero {
    padding-top: 4px;
  }

  .hero-grid {
    padding-top: 36px;
    padding-bottom: 48px;
  }

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

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

  .hero-form .btn {
    width: 100%;
  }

  .feature-grid,
  .pricing-grid,
  .project-grid,
  .benchmark-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid .plan:last-child {
    grid-column: auto;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

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

  .stepper-step {
    padding: 10px 12px;
  }

  .wizard-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-actions .btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .question-actions {
    grid-column: 2;
    justify-content: flex-end;
  }

  .model-report-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .model-report-head .badge {
    grid-column: 1 / -1;
    width: fit-content;
  }

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

  .preview-metric {
    border-bottom: 1px solid var(--line);
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .report-actions .btn {
    flex: 1;
  }

  .save-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .save-banner .btn {
    width: 100%;
  }

  .dash-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-topbar .btn {
    width: 100%;
  }

  .compare-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .compare-row small {
    display: none;
  }

  .bar-row {
    grid-template-columns: 76px minmax(0, 1fr) 36px;
  }
}
