:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #5d6b63;
  --line: #d8ded8;
  --panel: #ffffff;
  --paper: #f7f4ef;
  --accent: #0f7b63;
  --accent-dark: #075645;
  --warn: #b85b18;
  --soft: #e7f3ef;
  --shadow: 0 18px 45px rgba(31, 44, 37, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f7f4ef 0%, #eef4f1 100%);
  color: var(--ink);
}

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

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand,
.site-header a,
.site-footer a,
.text-link {
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: none;
}

.brand {
  font-size: 1rem;
}

.site-header nav,
.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-header nav a,
.site-footer a,
.text-link {
  font-size: 0.9rem;
}
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(460px, 1.22fr);
  gap: 36px;
  align-items: start;
  min-height: calc(100vh - 110px);
}

.intro {
  padding: 42px 0 0;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: 3.95rem;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.lede {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.proof-row span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(15, 123, 99, 0.2);
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

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

.analyzer-form {
  padding: 24px;
  min-width: 0;
}

.form-header,
.results-head,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-header h2,
.results-head h2,
.panel h3 {
  margin-bottom: 0;
}

label {
  display: block;
  margin: 18px 0 8px;
  color: #29342e;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cdd5ce;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 123, 99, 0.13);
}

textarea {
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.manual-box {
  margin: 18px 0 0;
  border: 1px solid #dce1dc;
  border-radius: 8px;
  background: #fbfaf7;
  padding: 12px 14px;
}

.manual-box summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 800;
}

.manual-box textarea {
  margin-top: 12px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.mini-btn {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.primary-btn {
  width: 100%;
  margin-top: 18px;
  background: var(--accent);
  color: #fff;
  padding: 15px 18px;
}

.primary-btn:hover,
.secondary-btn:hover {
  background: var(--accent-dark);
}

.ghost-btn,
.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-dark);
}

.ghost-btn {
  padding: 11px 14px;
}

.mini-btn {
  padding: 7px 10px;
}

.secondary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
}

.secondary-btn:disabled,
.primary-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

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

.scope-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
  margin: 6px 0 26px;
  border-block: 1px solid rgba(23, 32, 27, 0.12);
  padding: 24px 0;
}

.scope-strip h2 {
  margin-bottom: 0;
}

.scope-strip ul {
  display: grid;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.results {
  margin-top: 28px;
}

.results-head {
  margin-bottom: 18px;
}

.score-band {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.score-card {
  display: grid;
  place-items: center;
  min-height: 170px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.score-number {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.score-label {
  color: #dbe7df;
  font-weight: 750;
}

.priority-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.priority-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(31, 44, 37, 0.07);
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.output-grid .panel {
  padding: 20px;
}

.wide {
  grid-column: 1 / -1;
}

.snippet {
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}

.snippet-title {
  margin-bottom: 4px;
  color: #1558c0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.snippet-url {
  margin-bottom: 6px;
  color: #1f7a45;
  font-size: 0.88rem;
  word-break: break-word;
}

.snippet-description {
  color: #4d5b52;
  line-height: 1.45;
}

.facts {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.facts div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  border-bottom: 1px solid #edf0ed;
  padding-bottom: 10px;
}

.facts dt {
  color: var(--muted);
  font-weight: 800;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

pre {
  max-height: 380px;
  margin: 14px 0 0;
  overflow: auto;
  border: 1px solid #dde3de;
  border-radius: 8px;
  background: #111814;
  color: #e8f5ef;
  padding: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
}

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

.check-list li {
  border: 1px solid #e4e9e4;
  border-radius: 8px;
  padding: 11px 12px;
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.offer p {
  color: var(--muted);
  line-height: 1.55;
}

.request-form label {
  margin-top: 12px;
}

.request-form .secondary-btn {
  width: 100%;
  margin-top: 14px;
}

.request-form .text-link {
  display: inline-flex;
  margin-top: 12px;
}

#request-website {
  position: absolute;
  left: -9999px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  border-top: 1px solid rgba(23, 32, 27, 0.12);
  padding-top: 20px;
  color: var(--muted);
}

.site-footer p {
  max-width: 600px;
  margin-bottom: 0;
  line-height: 1.5;
}

.legal-page {
  max-width: 820px;
}

.legal-page h1 {
  margin-top: 36px;
  font-size: 3rem;
}

.legal-page p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 880px) {
  .shell {
    width: min(100% - 24px, 680px);
    padding-top: 18px;
  }

  .tool-grid,
  .output-grid,
  .score-band,
  .scope-strip {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-top: 4px;
  }

  h1 {
    font-size: 2.9rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ghost-btn {
    width: 100%;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .analyzer-form,
  .output-grid .panel {
    padding: 16px;
  }

  .form-header,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 2.35rem;
  }

  .lede {
    font-size: 1rem;
  }

  .facts div {
    grid-template-columns: 1fr;
  }
}
