:root {
  color-scheme: light;
  --surface-base: #ffffff;
  --surface-raised: #ffffff;
  --surface-muted: #f6f7f7;
  --surface-overlay: #eeeeef;
  --ink: #1b1b1b;
  --text-secondary: #4a4a4a;
  --text-tertiary: #5f5f5f;
  --border-default: #dedede;
  --accent: #5e6ad2;
  --success: #277c58;
  --warning: #946500;
  --danger: #b42318;
  --shadow: 0 24px 80px rgba(15, 15, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

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

h1,
h2 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 75px;
}

h2 {
  margin-bottom: 18px;
  font-size: 48px;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

p {
  text-wrap: pretty;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  padding-top: calc(14px + env(safe-area-inset-top));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border-default);
}

.brand,
.nav,
.hero-actions,
.hero-proof,
.audit-status-pill,
.dashboard-topbar,
.scan-panel-head,
.finding-row,
.report-strip,
.cta,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  gap: 22px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100dvh - 72px);
  padding: 44px clamp(20px, 5vw, 72px) 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-default);
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.label,
.panel-label {
  display: block;
  margin: 0 0 12px;
  color: var(--text-tertiary);
  font-size: 15px;
  font-weight: 500;
}

.lede {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 21px;
  font-size: 16px;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.primary {
  background: #0f0f0f;
  color: #ffffff;
}

.primary:hover {
  background: #282828;
}

.secondary {
  background: var(--surface-base);
  border-color: var(--border-default);
  color: var(--ink);
}

.secondary:hover {
  border-color: #bdbdbd;
}

.hero-proof {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.hero-proof span {
  padding: 7px 12px;
  border: 1px solid var(--border-default);
  border-radius: 21px;
  background: var(--surface-base);
}

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

.dashboard-shell {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  width: min(100%, 900px);
  min-height: 604px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: 22px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 20px;
  background: #f7f7f8;
  border-right: 1px solid var(--border-default);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.sidebar-logo img {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 500;
}

.sidebar-nav span {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
}

.sidebar-nav .active {
  background: #0f0f0f;
  color: #ffffff;
}

.dashboard-main {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  background:
    linear-gradient(#eeeeef 1px, transparent 1px),
    linear-gradient(90deg, #eeeeef 1px, transparent 1px),
    var(--surface-base);
  background-size: 32px 32px;
}

.dashboard-topbar {
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid var(--border-default);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.94);
}

.dashboard-topbar strong,
.scan-panel-head strong,
.report-strip strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-topbar .panel-label,
.scan-panel-head .panel-label {
  margin-bottom: 4px;
  font-size: 12px;
}

.audit-status-pill {
  flex: 0 0 auto;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-default);
  border-radius: 21px;
  background: var(--surface-base);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

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

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

.metric-card,
.scan-panel,
.report-strip {
  border: 1px solid var(--border-default);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.96);
}

.metric-card {
  min-height: 124px;
  padding: 16px;
}

.metric-card span,
.report-strip span,
.scan-panel-head > span {
  display: block;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
}

.metric-card strong {
  display: block;
  margin: 12px 0 5px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.scan-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.scan-panel-head {
  justify-content: space-between;
  gap: 16px;
}

.scan-panel-head > span {
  padding: 7px 10px;
  border: 1px solid var(--border-default);
  border-radius: 21px;
  background: var(--surface-muted);
}

.scan-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12px;
}

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

.risk-cell {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.risk-cell.low {
  color: var(--success);
  background: #eef8f3;
  border-color: #cfe7dc;
}

.risk-cell.medium {
  color: var(--warning);
  background: #fff7e6;
  border-color: #f1d99d;
}

.risk-cell.high {
  color: var(--danger);
  background: #fff1f0;
  border-color: #f1c2bd;
}

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

.finding-row {
  gap: 12px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--surface-base);
}

.finding-row > span {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.finding-row div {
  min-width: 0;
  flex: 1;
}

.finding-row strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finding-row p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finding-row em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 21px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.finding-row.high > span,
.finding-row.high em {
  background: var(--danger);
  color: #ffffff;
}

.finding-row.medium > span,
.finding-row.medium em {
  background: var(--warning);
  color: #ffffff;
}

.finding-row.low > span,
.finding-row.low em {
  background: var(--success);
  color: #ffffff;
}

.report-strip {
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  padding: 16px;
}

.report-progress {
  position: relative;
  flex: 0 0 148px;
  height: 8px;
  overflow: hidden;
  border-radius: 21px;
  background: var(--surface-overlay);
}

.report-progress span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: #0f0f0f;
}

.price-band {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 44px clamp(20px, 5vw, 72px);
  background: #0f0f0f;
  color: #ffffff;
}

.price-band strong {
  display: block;
  font-size: 75px;
  font-weight: 700;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.price-band p {
  max-width: 820px;
  margin-bottom: 0;
  color: #eeeeef;
  font-size: 20px;
}

.price-band .label {
  color: #b1b1b1;
}

.section,
.cta,
.site-footer {
  padding-right: clamp(20px, 5vw, 72px);
  padding-left: clamp(20px, 5vw, 72px);
}

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

.section-heading {
  max-width: 850px;
  margin-bottom: 48px;
}

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

.feature-grid article {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--surface-base);
}

.icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.feature-grid p,
.report-copy p,
.report-list p {
  color: var(--text-secondary);
}

.report {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
  background: var(--surface-muted);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.report-copy {
  max-width: 720px;
}

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

.report-list div {
  padding: 20px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--surface-base);
}

.report-list span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.report-list p {
  margin-bottom: 0;
}

.cta {
  justify-content: space-between;
  gap: 24px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.cta h2 {
  max-width: 820px;
  margin-bottom: 0;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 26px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-default);
  font-size: 15px;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    margin-right: auto;
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 40px;
  }

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

  .dashboard-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dashboard-sidebar {
    display: none;
  }

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

  .cta,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
  }

  .nav {
    width: 100%;
    gap: 10px;
    justify-content: space-between;
    font-size: 14px;
  }

  .hero {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .lede,
  .price-band p {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .dashboard-main {
    gap: 12px;
    padding: 12px;
  }

  .dashboard-topbar,
  .report-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-summary,
  .scan-grid {
    grid-template-columns: 1fr;
  }

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

  .risk-cell {
    min-height: 56px;
  }

  .report-progress {
    flex-basis: auto;
    width: 100%;
  }

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

  .price-band strong {
    font-size: 56px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 38px;
  }

  .audit-status-pill {
    width: 100%;
    justify-content: center;
  }

  .finding-row {
    align-items: flex-start;
  }

  .finding-row strong,
  .finding-row p {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
