:root {
  color-scheme: light;
  --ink: #172121;
  --muted: #5d6868;
  --paper: #f7f9f5;
  --panel: #ffffff;
  --line: #d8ded8;
  --green: #1d6b55;
  --green-dark: #124838;
  --blue: #315b8f;
  --coral: #d85b3f;
  --gold: #b98b22;
  --shadow: 0 18px 50px rgba(23, 33, 33, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
}

.brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

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

.brand small,
.privacy-note,
.eyebrow,
.status-line,
footer {
  color: var(--muted);
}

.privacy-note,
p {
  margin: 0;
}

main {
  margin: 0 auto;
  max-width: 1480px;
  padding: 34px clamp(18px, 4vw, 56px) 42px;
}

.hero-tool {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  margin-bottom: 30px;
}

.hero-copy {
  max-width: 840px;
  min-width: 0;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: 1;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  margin-bottom: 0;
}

h3 {
  margin-bottom: 8px;
}

.hero-actions,
.input-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.primary-action,
.secondary-action {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 16px;
}

.primary-action {
  background: var(--green);
  color: #ffffff;
  font-weight: 800;
}

.secondary-action {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.hero-media {
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 260px;
  min-width: 0;
  overflow: hidden;
}

.hero-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.workspace,
.results-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  margin-bottom: 20px;
}

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

.panel-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.status-pill {
  background: #eef6f1;
  border: 1px solid #cae1d2;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

textarea {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  min-width: 0;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

textarea:focus,
input:focus,
button:focus-visible {
  outline: 3px solid rgba(49, 91, 143, 0.25);
  outline-offset: 2px;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field span,
.checkbox-row span {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.checkbox-row {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-row span {
  margin: 0;
}

.summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  margin-bottom: 20px;
}

.summary-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.summary-card span {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.summary-card strong {
  color: var(--blue);
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.summary-card.is-warning strong {
  color: var(--coral);
}

.summary-card.is-good strong {
  color: var(--green);
}

.table-wrap {
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 8px;
  white-space: nowrap;
}

.badge-warning {
  background: #fff1ec;
  color: #9b341b;
}

.badge-good {
  background: #eef8f2;
  color: var(--green-dark);
}

.badge-muted {
  background: #eef1f3;
  color: #4f5b66;
}

.content-guide {
  margin-top: 34px;
}

.guide-intro {
  max-width: 820px;
}

.guide-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.guide-grid article {
  border-top: 3px solid var(--green);
  padding-top: 14px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 22px clamp(18px, 4vw, 56px);
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1480px;
}

footer nav {
  display: flex;
  gap: 14px;
}

footer a {
  color: var(--green-dark);
}

@media (max-width: 1000px) {
  .hero-tool,
  .workspace,
  .results-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  main {
    padding-left: 20px;
    padding-right: 20px;
  }

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

  .summary-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .input-actions,
  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}
