:root {
  color-scheme: light;
  --ink: #050505;
  --muted: #666666;
  --soft: #888888;
  --line: #e5e5e5;
  --paper: #fafafa;
  --white: #ffffff;
  --accent: #0f766e;
  --blue: #2563eb;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.icon-sprite {
  display: none;
}

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: 0 0 auto;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 64px;
}

.topbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

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

.brand {
  gap: 9px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #fff;
  background: #000;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.nav-links a {
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

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

.hero {
  display: grid;
  gap: 28px;
  align-items: start;
  padding: 48px 0 38px;
  text-align: center;
}

.hero-copy {
  width: min(760px, 100%);
  margin: 0 auto;
}

.eyebrow,
.mini-label,
.feature-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin: 0 auto 18px;
  font-size: 3rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  max-width: 720px;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.lead {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.58;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #000;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #222;
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button.secondary:hover {
  background: #f7f7f7;
}

.report-preview,
.success,
form,
.errors {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.hero-report {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 18px;
  text-align: left;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.report-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  grid-column: 1 / -1;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.report-head h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.mini-label {
  margin-bottom: 5px;
  color: var(--soft);
  font-size: 0.7rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fafafa;
  font-size: 0.75rem;
  font-weight: 700;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  border-bottom: 0;
}

.score-row div {
  min-height: 92px;
  padding: 12px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.score-row div:last-child {
  border-right: 0;
}

.metric-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: #fafafa;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.metric-icon .icon {
  width: 13px;
  height: 13px;
}

.score-row strong,
.score-row span:not(.metric-icon) {
  display: block;
}

.score-row strong {
  font-size: 1.32rem;
  line-height: 1.1;
}

.score-row span:not(.metric-icon) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.finding-list {
  margin: 0;
  padding: 14px 16px 0 34px;
  border-left: 1px solid var(--line);
  font-size: 0.94rem;
}

.finding-list li + li {
  margin-top: 8px;
}

.finding-list li:nth-child(n+3) {
  display: none;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.metrics-strip div {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.metrics-strip div:last-child {
  border-right: 0;
}

.metrics-strip strong,
.metrics-strip span:not(.metric-icon) {
  display: block;
}

.metrics-strip strong {
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.metrics-strip span:not(.metric-icon) {
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

.steps article,
.feature-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fafafa;
  font-weight: 750;
}

.steps span .icon {
  width: 14px;
  height: 14px;
}

.feature-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--soft);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fafafa;
}

.feature-icon .icon {
  width: 16px;
  height: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: start;
}

.insight-band {
  padding: 30px;
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 24px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #000;
}

.checklist li + li {
  margin-top: 10px;
}

.signup {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 24px;
  align-items: start;
}

form {
  padding: 20px;
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.14);
  border-color: var(--blue);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.errors {
  grid-column: 1 / -1;
  padding: 14px 16px;
  color: #7f1d1d;
  background: #fef2f2;
  border-color: #fecaca;
}

.errors p,
.success p:last-child {
  margin-bottom: 0;
}

.success {
  grid-column: 1 / -1;
  padding: 20px;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

code {
  background: #f2f2f2;
  padding: 2px 5px;
  border-radius: 4px;
}

.auth-page {
  width: min(520px, calc(100% - 32px));
}

.auth-panel {
  padding: 44px 0;
}

.auth-panel h1,
.dashboard-head h1 {
  margin-left: 0;
  margin-right: 0;
  font-size: 2.2rem;
}

.auth-panel .lead,
.dashboard-head .lead {
  margin-left: 0;
  margin-right: 0;
}

.dashboard-page h1 {
  max-width: 760px;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--line);
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.site-tabs a {
  min-width: 190px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
}

.site-tabs a.active {
  border-color: #000;
}

.site-tabs span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.dashboard-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

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

.dashboard-grid.metrics article,
.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.dashboard-grid.metrics article {
  padding: 16px;
}

.dashboard-grid.metrics span,
.dashboard-grid.metrics small {
  display: block;
  color: var(--muted);
}

.dashboard-grid.metrics strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 1.85rem;
  line-height: 1.1;
}

.dashboard-card {
  overflow: hidden;
}

.dashboard-card h2 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.dashboard-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dashboard-card th,
.dashboard-card td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.dashboard-card th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-card td:first-child {
  max-width: 320px;
  overflow-wrap: anywhere;
}

.ai-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #000;
  border-radius: 8px;
  background: var(--white);
}

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

.ai-panel-head h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.ai-panel-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

#ai-analysis-output {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
}

#ai-analysis-output h3 {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

#ai-analysis-output h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#ai-analysis-output ul {
  padding-left: 22px;
}

.error-text {
  color: #991b1b;
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 24px, 680px);
  }

  .hero {
    padding: 34px 0 30px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .steps,
  .feature-grid,
  .split,
  .signup,
  .metrics-strip,
  .dashboard-grid.metrics,
  .dashboard-grid.two {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    display: grid;
    align-items: start;
  }

  .dashboard-actions {
    justify-content: flex-start;
  }

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

  .finding-list {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metrics-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 20px, 680px);
    padding-top: 12px;
  }

  .topbar {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding: 7px 8px;
    font-size: 0.86rem;
  }

  .hero {
    padding: 22px 0 24px;
    gap: 22px;
  }

  h1 {
    font-size: 1.94rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.45rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
    gap: 8px;
  }

  .button {
    width: 100%;
    min-height: 42px;
  }

  .button.secondary {
    background: transparent;
    border-color: transparent;
  }

  .hero-report {
    padding: 14px;
  }

  .report-head {
    padding-bottom: 12px;
  }

  .score-row {
    display: none;
  }

  .finding-list {
    padding: 12px 0 0 20px;
    font-size: 0.88rem;
  }

  .finding-list li:nth-child(n+2) {
    display: none;
  }

  .section {
    padding: 42px 0;
  }

  .dashboard-card {
    overflow-x: auto;
  }

  .ai-panel-head {
    display: grid;
  }

  .insight-band {
    padding: 22px;
  }
}
