:root {
  color-scheme: light;
  --ink: #1b2428;
  --muted: #657278;
  --line: #d9e0df;
  --paper: #ffffff;
  --soft: #f6f7f2;
  --green: #1f7a58;
  --teal: #0f6b78;
  --gold: #d89b30;
  --red: #c84e43;
  --shadow: 0 18px 50px rgba(27, 36, 40, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 224, 223, 0.9);
  background: rgba(246, 247, 242, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

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

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

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

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

.workspace {
  padding: clamp(32px, 6vw, 72px) clamp(18px, 4vw, 56px) 48px;
}

.intro {
  width: min(1080px, 100%);
  margin: 0 auto 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 14px;
  font-size: clamp(2.05rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.input-panel,
.output-panel {
  padding: clamp(18px, 3vw, 28px);
}

.panel-heading {
  margin-bottom: 20px;
}

.panel-heading h2 {
  margin-bottom: 6px;
  font-size: 1.22rem;
}

.panel-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #2e3d42;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd4d3;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 500;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 107, 120, 0.12);
}

.file-drop {
  border: 1px dashed #b9c8c7;
  border-radius: 8px;
  padding: 18px;
  background: #fbfcf9;
  cursor: pointer;
}

.file-drop input {
  display: none;
}

.file-drop span {
  color: var(--teal);
  font-weight: 900;
}

.file-drop small {
  color: var(--muted);
  line-height: 1.4;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 10px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.primary-btn {
  border: 0;
  color: #fff;
  background: var(--ink);
}

.primary-btn:hover {
  background: #2d3a3f;
}

.secondary-btn {
  border: 0;
  color: #fff;
  background: var(--teal);
}

.muted-btn {
  background: var(--green);
}

.ghost-btn {
  border: 1px solid #c7d2d1;
  color: var(--ink);
  background: #fff;
}

.privacy,
.fine-print {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.empty-state {
  display: grid;
  min-height: 410px;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 1px dashed #c2cdcc;
  border-radius: 8px;
  padding: 34px;
  background: #fbfcfa;
  text-align: center;
}

.empty-state span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  background: #e0eff0;
  font-weight: 900;
}

.empty-state p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hidden {
  display: none;
}

.results {
  display: grid;
  gap: 14px;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.score-strip div {
  border: 1px solid #d9e2df;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.score-strip small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.score-strip strong {
  display: block;
  color: var(--teal);
  font-size: 1.35rem;
}

.result-block {
  border: 1px solid #dbe2df;
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfa;
}

.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.block-title h3 {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.block-title button {
  min-width: 58px;
  border: 1px solid #c7d0cc;
  border-radius: 8px;
  padding: 7px 10px;
  color: #24312d;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding-left: 22px;
  color: #2d3b37;
  line-height: 1.65;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: #2d3b37;
  font-size: 0.9rem;
}

th,
td {
  border-bottom: 1px solid #e2e8e5;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #536165;
  font-size: 0.8rem;
}

.report-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #e8f0eb;
}

.section-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: clamp(22px, 4vw, 52px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 48px clamp(18px, 4vw, 56px);
  align-items: center;
}

.section-copy h2,
.order-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3vw, 2.9rem);
  line-height: 1.08;
}

.section-copy p:last-child,
.order-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.inline-link {
  display: inline-flex;
  margin-top: 18px;
  border-bottom: 2px solid rgba(15, 107, 120, 0.35);
  color: var(--teal);
  font-weight: 900;
}

.visual-report {
  border: 1px solid #d1dcda;
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(27, 36, 40, 0.08);
}

.report-line {
  width: 72%;
  height: 13px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #d8e2df;
}

.report-line.long {
  width: 92%;
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 140px;
  margin: 24px 0;
  padding: 14px;
  border-radius: 8px;
  background: #f7f9f5;
}

.mini-chart span {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--teal), var(--green));
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.report-grid span {
  height: 54px;
  border-radius: 8px;
  background: #edf2ef;
}

.pricing {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 52px clamp(18px, 4vw, 56px) 8px;
}

.pricing-copy {
  max-width: 780px;
  margin-bottom: 22px;
}

.pricing-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3vw, 2.9rem);
  line-height: 1.08;
}

.pricing-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.sku-grid article {
  display: grid;
  min-height: 230px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(27, 36, 40, 0.06);
}

.sku-grid strong {
  color: var(--red);
  font-size: 1.7rem;
}

.sku-grid h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
}

.sku-grid p,
.sku-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.sku-grid span {
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

.order {
  display: grid;
  grid-template-columns: 1fr minmax(310px, 440px);
  gap: clamp(22px, 4vw, 52px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 52px clamp(18px, 4vw, 56px);
  align-items: start;
}

.price-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.price-row div {
  min-height: 110px;
  border: 1px solid #d8e1de;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.boundary-list {
  margin-top: 18px;
  margin-bottom: 0;
}

.price-row strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 1.4rem;
}

.price-row span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.order-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  box-shadow: var(--shadow);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 900px) {
  .tool-grid,
  .section-inner,
  .order,
  .sku-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .price-row,
  .score-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .actions,
  .report-actions {
    grid-template-columns: 1fr;
  }

  footer {
    display: grid;
  }
}
