:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #64716d;
  --line: #d7dedb;
  --soft: #f5f7f3;
  --paper: #ffffff;
  --mint: #dcefe7;
  --mint-strong: #1d7c63;
  --coral: #d95d45;
  --amber: #f3c05f;
  --blue: #496f91;
  --shadow: 0 20px 55px rgba(22, 33, 31, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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, 56px);
  border-bottom: 1px solid rgba(215, 222, 219, 0.9);
  background: rgba(245, 247, 243, 0.92);
  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(--mint-strong);
  font-weight: 800;
}

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

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

.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, 76px) clamp(18px, 4vw, 56px) 48px;
}

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

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

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

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

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

.tool-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(320px, 1.08fr);
  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: 22px;
}

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

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

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #33413d;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8d2ce;
  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(--mint-strong);
  box-shadow: 0 0 0 4px rgba(29, 124, 99, 0.12);
}

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

.primary-btn {
  width: 100%;
  color: #fff;
  background: var(--ink);
}

.primary-btn:hover {
  background: #25322f;
}

.secondary-btn {
  width: 100%;
  color: #fff;
  background: var(--coral);
}

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

.empty-state span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--mint-strong);
  background: var(--mint);
  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;
}

.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: 64px;
  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;
}

.result-block p,
.result-block pre {
  margin: 0;
  color: #2d3b37;
  line-height: 1.58;
}

pre {
  white-space: pre-wrap;
  font-family: inherit;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid #cbd7d2;
  border-radius: 999px;
  padding: 7px 10px;
  color: #263530;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

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

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

.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,
.audit-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

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

.payment-note {
  margin-top: 22px;
  border: 1px solid #cfdad6;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(22, 33, 31, 0.08);
}

.payment-note span {
  display: block;
  margin-bottom: 8px;
  color: var(--mint-strong);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.payment-note strong {
  display: block;
  margin-bottom: 9px;
  font-size: 1.08rem;
}

.payment-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.payment-note a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.metric-row div {
  min-height: 126px;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22, 33, 31, 0.08);
}

.metric-row strong {
  display: block;
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 2rem;
}

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

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

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

.fine-print {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

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

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

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .tool-grid,
  .section-inner,
  .audit {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .empty-state {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .nav {
    gap: 10px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: 2.22rem;
  }

  .workspace {
    padding-top: 26px;
  }
}
