:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --paper: #ffffff;
  --ink: #232320;
  --muted: #6f6a61;
  --line: rgba(35, 35, 32, 0.13);
  --soft-line: rgba(35, 35, 32, 0.08);
  --green: #2f8f5b;
  --red: #c84630;
  --amber: #b86e1e;
  --shadow-border: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration-color: rgba(35, 35, 32, 0.35);
  text-underline-offset: 0.18em;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--ink);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 8px;
  height: 12px;
  border-right: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(42deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 44px;
  padding: 30px 24px 54px;
}

.product-line {
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 18px;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
label {
  text-wrap: pretty;
}

h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 28px;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  box-shadow: 0 14px 34px rgba(35, 35, 32, 0.14);
}

.scan-form {
  background: var(--paper);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-border);
  max-width: 660px;
}

.scan-form label,
.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.scan-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  min-height: 46px;
  padding: 11px 12px;
  outline: none;
  transition-property: border-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47, 143, 91, 0.75);
  box-shadow: 0 0 0 3px rgba(47, 143, 91, 0.16);
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
  transition-property: background-color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

button:hover {
  background: #383832;
}

button:active {
  scale: 0.96;
}

.copy-button {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.copy-button:hover {
  background: rgba(35, 35, 32, 0.06);
}

.scan-form p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.scan-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
}

.scan-actions a {
  color: var(--ink);
}

.notice,
.error {
  border-radius: 7px;
  padding: 12px 14px;
  margin: 16px 0 0;
  font-weight: 700;
}

.notice {
  background: rgba(47, 143, 91, 0.11);
  color: #1f6e44;
}

.error {
  background: rgba(200, 70, 48, 0.11);
  color: #a23725;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 24px;
  border-top: 1px solid var(--soft-line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.6fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section h2,
.report-section h2,
.report-aside h2 {
  font-size: 30px;
  line-height: 1.12;
  margin-bottom: 10px;
}

.section p,
.report-aside p {
  color: var(--muted);
  line-height: 1.55;
}

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

.check-grid article {
  background: var(--paper);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-border);
}

.check-grid h3 {
  margin-bottom: 9px;
}

.check-grid p {
  margin-bottom: 0;
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 40px;
  align-items: start;
}

.price-list {
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow-border);
  overflow: hidden;
}

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

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

.price-row strong,
.score-number {
  font-variant-numeric: tabular-nums;
}

.report-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 38px 24px 70px;
}

.report-main,
.report-aside {
  min-width: 0;
}

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

.report-kicker a {
  color: var(--muted);
  font-weight: 700;
}

.report-main h1 {
  font-size: clamp(38px, 5vw, 68px);
  margin-bottom: 8px;
}

.report-url {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.score-band {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 28px 0;
  background: var(--paper);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-border);
}

.score-box {
  display: grid;
  gap: 2px;
}

.score-number {
  font-size: 72px;
  line-height: 0.95;
  font-weight: 800;
}

.score-label {
  color: var(--muted);
  font-weight: 700;
}

.score-notes p {
  margin-bottom: 6px;
  color: var(--muted);
}

.report-section {
  margin-top: 32px;
}

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

.fix-item {
  background: var(--paper);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow-border);
  border-left: 4px solid var(--amber);
}

.fix-item.fail {
  border-left-color: var(--red);
}

.fix-item.warn {
  border-left-color: var(--amber);
}

.fix-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.fix-item h3 {
  margin: 4px 0 9px;
}

.fix-item p {
  color: var(--ink);
  line-height: 1.48;
  margin-bottom: 0;
}

.fix-item small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.check-table {
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow-border);
  overflow: hidden;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 110px minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid var(--soft-line);
  font-size: 14px;
}

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

.check-row span:nth-child(2),
.check-row em {
  color: var(--muted);
}

.check-row em {
  font-style: normal;
  text-align: right;
}

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

.status-dot.warn {
  background: var(--amber);
}

.status-dot.fail {
  background: var(--red);
}

.report-aside {
  position: sticky;
  top: 20px;
  align-self: start;
  background: var(--paper);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-border);
}

.lead-form {
  display: grid;
  gap: 13px;
}

.lead-form button {
  margin-top: 4px;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  color: var(--muted);
  border-top: 1px solid var(--soft-line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section-head,
  .split,
  .report-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 22px;
  }

  .hero-media {
    order: -1;
  }

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

  .report-aside {
    position: static;
  }
}

@media (max-width: 620px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 43px;
  }

  .lead {
    font-size: 17px;
  }

  .scan-control,
  .score-band {
    grid-template-columns: 1fr;
  }

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

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

  .check-row {
    grid-template-columns: 18px minmax(0, 1fr) 58px;
  }

  .check-row span:nth-child(2) {
    display: none;
  }
}
