:root {
  color-scheme: light;
  --ink: #182026;
  --muted: #5e6872;
  --paper: #f8f6f0;
  --panel: #fffdfa;
  --line: #dfd4c3;
  --brass: #b98746;
  --blue: #0f5f7a;
  --green: #157347;
  --amber: #b7791f;
  --red: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.scanner-surface {
  min-height: 94vh;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(15, 95, 122, 0.12), transparent 35%),
    linear-gradient(240deg, rgba(185, 135, 70, 0.14), transparent 42%),
    var(--paper);
}

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

.brand,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.nav-actions a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 46px;
  max-width: 1160px;
  min-height: calc(94vh - 82px);
  margin: 0 auto;
  padding: 34px 0 48px;
}

.intro {
  max-width: 580px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #756553;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.98;
}

.lead {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

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

.button,
.scan-form button,
.price-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary,
.scan-form button,
.price-panel a {
  background: var(--blue);
  color: #fff;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 253, 250, 0.78);
  color: var(--ink);
}

.scanner {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.9);
  box-shadow: 0 24px 70px rgba(37, 28, 18, 0.16);
  overflow: hidden;
}

.scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.scanner-header h2,
.pricing h2 {
  font-size: 32px;
  line-height: 1.05;
}

.case-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.scan-form {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.scan-form label,
.score-label {
  color: #756553;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.input-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  font: inherit;
}

.result-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.score-card {
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4efe7;
}

.score-card strong {
  color: var(--blue);
  font-size: 46px;
  line-height: 1;
}

.score-card.caution strong {
  color: var(--amber);
}

.score-card.high strong {
  color: var(--red);
}

.verdict {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 900;
}

.summary {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.clues {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 20px;
  list-style: none;
}

.clue {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 12px;
  background: #fffdfa;
}

.clue.medium {
  border-left-color: var(--amber);
}

.clue.high {
  border-left-color: var(--red);
}

.clue strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.clue span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section-band {
  background: #172026;
  color: #fffdfa;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px;
}

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

.feature-grid article {
  min-height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 34px;
  color: #d9b982;
  font-size: 12px;
  font-weight: 900;
}

.feature-grid h3 {
  font-size: 19px;
}

.feature-grid p {
  margin-top: 10px;
  color: rgba(255, 253, 250, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.pricing {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 30px;
  align-items: center;
}

.pricing p {
  max-width: 690px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.price-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fffdfa;
}

.price-panel span {
  color: #756553;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-panel strong {
  display: block;
  margin-top: 10px;
  font-size: 52px;
  line-height: 1;
}

.price-panel p {
  margin-top: 4px;
  font-size: 14px;
}

.price-panel a {
  width: 100%;
  margin-top: 22px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .workspace,
  .pricing {
    grid-template-columns: 1fr;
  }

  .workspace {
    min-height: 0;
  }

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

@media (max-width: 560px) {
  .scanner-surface {
    padding: 16px;
  }

  .nav,
  .nav-actions,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

  .input-row,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .input-row input,
  .scan-form button {
    min-height: 44px;
  }
}

