:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --ink: #16201f;
  --muted: #60706c;
  --panel: #ffffff;
  --line: #dce4df;
  --brand: #126b5f;
  --brand-strong: #0b4f46;
  --mint: #d8f1e8;
  --amber: #b96b00;
  --amber-bg: #fff1d8;
  --red: #b43731;
  --red-bg: #ffe4df;
  --green: #16734f;
  --green-bg: #e2f5ea;
  --blue: #275f91;
  --blue-bg: #e4eef8;
  --shadow: 0 24px 60px rgba(22, 32, 31, 0.12);
  --radius: 8px;
  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:
    linear-gradient(135deg, rgba(18, 107, 95, 0.08), rgba(185, 107, 0, 0.06) 42%, transparent 65%),
    var(--bg);
  color: var(--ink);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(220, 228, 223, 0.84);
  background: rgba(246, 247, 244, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

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

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

.lang-toggle {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lang-btn {
  min-width: 48px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-btn.active {
  background: var(--ink);
  color: #fff;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 68px);
  padding: 56px 0 38px;
}

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

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

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(44px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 28px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.hero-lede {
  max-width: 690px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions,
.form-actions,
.report-actions,
.batch-controls,
.template-row,
.url-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 760;
  cursor: pointer;
}

.button.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px rgba(18, 107, 95, 0.24);
}

.button.primary:hover {
  background: var(--brand-strong);
}

.button.secondary,
.button.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.button.ghost:hover,
.button.secondary:hover {
  border-color: #b7c5bf;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.lead-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 580px;
  margin-top: 16px;
}

.lead-mini input {
  flex: 1 1 260px;
  min-height: 44px;
  margin-top: 0;
}

.trust-row span {
  padding: 7px 10px;
  border: 1px solid rgba(22, 32, 31, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 460px;
}

.label-sheet {
  position: absolute;
  inset: 36px 34px auto auto;
  width: min(360px, 88%);
  min-height: 430px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    repeating-linear-gradient(90deg, rgba(18, 107, 95, 0.06) 0, rgba(18, 107, 95, 0.06) 1px, transparent 1px, transparent 16px);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.label-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 34px;
}

.ce-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.barcode {
  width: 116px;
  height: 54px;
  background: repeating-linear-gradient(90deg, #111 0 3px, transparent 3px 7px, #111 7px 9px, transparent 9px 13px);
}

.label-lines {
  display: grid;
  gap: 16px;
}

.label-lines span {
  height: 16px;
  border-radius: 4px;
  background: #e6ede9;
}

.label-lines span:nth-child(2) {
  width: 78%;
}

.label-lines span:nth-child(3) {
  width: 62%;
}

.label-lines span:nth-child(4) {
  width: 88%;
}

.warning-strip {
  margin-top: 70px;
  padding: 14px;
  border-radius: 7px;
  background: var(--red-bg);
  color: var(--red);
  font-weight: 800;
}

.score-card {
  position: absolute;
  left: 6px;
  bottom: 24px;
  width: 245px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.score-card span,
.score-card small {
  display: block;
  color: var(--muted);
}

.score-card strong {
  display: block;
  margin: 6px 0;
  font-size: 56px;
  line-height: 1;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.status-band div {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.status-band div:last-child {
  border-right: 0;
}

.status-band strong,
.status-band span {
  display: block;
}

.status-band span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: start;
  gap: 22px;
  padding: 26px 0;
}

.panel,
.playbook article,
.disclaimer,
.price-card,
.evidence-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(22, 32, 31, 0.07);
}

.input-panel,
.report-panel,
.batch-panel,
.url-panel {
  padding: clamp(20px, 3vw, 30px);
}

.url-panel {
  margin-bottom: 22px;
}

.evidence-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: clamp(20px, 3vw, 28px);
}

.source-links {
  display: grid;
  gap: 10px;
}

.source-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-strong);
  font-weight: 800;
}

.source-links a::after {
  content: "->";
  color: var(--muted);
}

.url-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.url-status {
  min-height: 0;
  margin-top: 12px;
}

.notice {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f7;
  color: var(--muted);
  line-height: 1.45;
}

.notice.success {
  border-color: rgba(22, 115, 79, 0.24);
  background: var(--green-bg);
  color: var(--green);
}

.notice.warning {
  border-color: rgba(185, 107, 0, 0.24);
  background: var(--amber-bg);
  color: var(--amber);
}

.report-panel {
  position: sticky;
  top: 90px;
}

.section-head.compact {
  max-width: 820px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.market-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.market-picker.slim {
  width: min(360px, 100%);
  margin-bottom: 0;
}

.market-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.market-option:has(input:checked) {
  border-color: rgba(18, 107, 95, 0.42);
  background: var(--mint);
  color: var(--brand-strong);
  font-weight: 800;
}

.form-row {
  margin-bottom: 16px;
}

.field-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

label,
legend {
  color: #344540;
  font-size: 13px;
  font-weight: 800;
}

input[type="text"],
select,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cfd9d4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input[type="text"],
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  line-height: 1.45;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(18, 107, 95, 0.22);
  outline-offset: 2px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-weight: 650;
}

.report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, white 67%, transparent 68%),
    conic-gradient(var(--brand) calc(var(--score) * 1%), #e7ece9 0);
}

.score-ring span {
  font-size: 26px;
  font-weight: 900;
}

.risk-meter {
  height: 10px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eeeb;
}

.risk-meter div {
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 240ms ease, background 240ms ease;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.summary-cards div {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.summary-cards strong,
.summary-cards span {
  display: block;
}

.summary-cards strong {
  font-size: 24px;
}

.summary-cards span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quick-fix {
  margin: 16px 0;
  padding: 16px;
  border-radius: 8px;
  background: #eef5f1;
}

.deductions {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.deductions:empty {
  display: none;
}

.deduction {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--muted);
  font-size: 13px;
}

.deduction strong {
  color: var(--red);
}

.quick-fix p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.issues {
  display: grid;
  gap: 10px;
  max-height: 640px;
  overflow: auto;
  padding-right: 4px;
}

.issue {
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  background: #fff;
}

.issue.critical {
  border-left-color: var(--red);
}

.issue.warning {
  border-left-color: var(--amber);
}

.issue.pass {
  border-left-color: var(--green);
}

.issue.info {
  border-left-color: var(--blue);
}

.issue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.issue h3 {
  margin-bottom: 5px;
  font-size: 15px;
}

.issue p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.issue ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tag {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tag.critical {
  background: var(--red-bg);
  color: var(--red);
}

.tag.warning {
  background: var(--amber-bg);
  color: var(--amber);
}

.tag.pass {
  background: var(--green-bg);
  color: var(--green);
}

.tag.info {
  background: var(--blue-bg);
  color: var(--blue);
}

.suggestion {
  padding: 10px;
  border-radius: 7px;
  background: #f6f8f7;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.report-actions {
  margin-top: 16px;
}

.batch-panel {
  margin: 24px 0;
}

.template-row {
  margin: 16px 0;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.mapping-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.mapping-panel summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 900;
}

.mapping-panel p {
  margin: 0;
  padding: 0 16px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.mapping-grid label {
  display: grid;
  gap: 6px;
}

.mapping-grid select {
  margin-top: 0;
}

.batch-errors {
  margin-top: 16px;
}

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

.error-item {
  padding: 12px 14px;
  border: 1px solid rgba(180, 55, 49, 0.22);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: var(--red-bg);
  color: var(--red);
  font-size: 14px;
  line-height: 1.45;
}

.batch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  align-items: start;
}

.batch-controls {
  align-content: start;
}

.batch-results {
  margin-top: 18px;
  overflow-x: auto;
}

.batch-results table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.batch-results th,
.batch-results td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.batch-results th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.score-pill {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green);
  font-weight: 900;
}

.score-pill.low {
  background: var(--red-bg);
  color: var(--red);
}

.score-pill.mid {
  background: var(--amber-bg);
  color: var(--amber);
}

.playbook {
  padding: 34px 0 10px;
}

.pricing {
  padding: 34px 0 8px;
}

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

.price-card {
  padding: 22px;
}

.price-card.featured {
  border-color: rgba(18, 107, 95, 0.38);
  background: linear-gradient(180deg, #ffffff, #eef8f4);
}

.price-card strong {
  display: block;
  margin: 8px 0;
  font-size: 36px;
}

.price-card p {
  min-height: 70px;
  color: var(--muted);
  line-height: 1.5;
}

.playbook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.playbook article {
  padding: 20px;
}

.playbook p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.icon-dot {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: inset 9px 0 rgba(255, 255, 255, 0.3);
}

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

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

.icon-dot.green {
  background: var(--green);
}

.disclaimer {
  display: flex;
  gap: 10px;
  margin: 24px 0 56px;
  padding: 16px 18px;
  color: var(--muted);
  line-height: 1.5;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(22, 32, 31, 0.46);
}

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

.modal {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.lead-form {
  display: grid;
  gap: 10px;
  margin: 18px 0 12px;
}

.lead-form input,
.lead-form select {
  margin-top: 0;
}

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

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .app-grid,
  .batch-grid,
  .url-grid,
  .evidence-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  .label-sheet {
    inset: 10px 0 auto auto;
  }

  .report-panel {
    position: static;
  }

  .status-band,
  .playbook-grid,
  .mapping-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 20px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .label-sheet {
    width: 82%;
    min-height: 310px;
    padding: 18px;
  }

  .ce-badge {
    width: 54px;
    height: 54px;
    font-size: 18px;
  }

  .warning-strip {
    margin-top: 34px;
  }

  .score-card {
    width: 210px;
    bottom: 0;
  }

  .status-band,
  .form-row.two,
  .check-grid,
  .summary-cards,
  .playbook-grid,
  .mapping-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

  .status-band div:last-child {
    border-bottom: 0;
  }

  .market-picker {
    grid-template-columns: 1fr;
  }

  .disclaimer {
    display: block;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 12px 18px;
    gap: 12px;
  }

  .nav {
    gap: 16px;
    font-size: 13px;
  }

  .hero {
    display: block;
    padding: 26px 0 18px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.02;
    margin-bottom: 14px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .hero-lede {
    margin-bottom: 16px;
    line-height: 1.45;
  }

  .lead-mini,
  .trust-row {
    display: none;
  }

  .hero-visual {
    min-height: 138px;
    margin-top: 18px;
    overflow: hidden;
  }

  .label-sheet {
    right: 0;
    width: 72%;
    min-height: 155px;
    padding: 12px;
    transform: rotate(1deg);
  }

  .label-head {
    margin-bottom: 12px;
  }

  .barcode {
    width: 70px;
    height: 34px;
  }

  .label-lines {
    gap: 8px;
  }

  .label-lines span {
    height: 9px;
  }

  .warning-strip {
    display: none;
  }

  .score-card {
    left: 0;
    bottom: 8px;
    width: 155px;
    padding: 12px;
  }

  .score-card strong {
    font-size: 34px;
  }
}

@media print {
  .topbar,
  .hero,
  .input-panel,
  .batch-panel,
  .playbook,
  .disclaimer,
  .report-actions {
    display: none;
  }

  body {
    background: #fff;
  }

  main {
    width: 100%;
  }

  .app-grid {
    display: block;
    padding: 0;
  }

  .report-panel {
    position: static;
    border: 0;
    box-shadow: none;
  }

  .issues {
    max-height: none;
    overflow: visible;
  }
}
