:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #17211d;
  background: #f4f7f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

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

h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.intro,
.controls,
.workspace,
.method,
footer {
  border: 1px solid #d4ded8;
  background: #fff;
  box-shadow: 0 12px 30px rgb(24 45 35 / 6%);
}

.intro {
  padding: clamp(28px, 5vw, 72px);
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 92% 4%, rgb(68 115 255 / 20%), transparent 34%),
    radial-gradient(circle at 72% 100%, rgb(28 154 100 / 13%), transparent 38%),
    #fff;
}

.eyebrow {
  margin-bottom: 9px;
  color: #245f49;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 900px;
  color: #4d5f56;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

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

.guardrails span {
  border: 1px solid #bfd3c8;
  border-radius: 999px;
  padding: 7px 11px;
  color: #245f49;
  background: #eff8f3;
  font-size: 0.83rem;
  font-weight: 750;
}

.controls {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(180px, 1fr));
  gap: 22px;
  align-items: end;
  padding: 28px clamp(24px, 4vw, 52px);
}

label {
  display: grid;
  gap: 8px;
  color: #3f5048;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.workspace {
  padding: 28px 0 16px;
  overflow: hidden;
}

.workspace-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px 20px;
}

.workspace-heading h2 {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  border: 1px solid #b8c8bf;
  border-radius: 9px;
  padding: 10px 14px;
  color: #17211d;
  background: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  border-color: #245f49;
  outline: 3px solid rgb(36 95 73 / 16%);
}

button.primary {
  border-color: #245f49;
  color: #fff;
  background: #245f49;
}

button.secondary {
  color: #2b438f;
  background: #eef2ff;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid #d4ded8;
  border-bottom: 1px solid #d4ded8;
}

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

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

th {
  color: #405047;
  background: #f0f4f1;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td:nth-child(1) {
  width: 78px;
}

td:nth-child(2) {
  width: 140px;
  color: #245f49;
  font-weight: 800;
}

td:nth-child(3) {
  width: 210px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c9d4ce;
  border-radius: 7px;
  padding: 9px;
  color: #17211d;
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #245f49;
  outline: 3px solid rgb(36 95 73 / 14%);
}

.status {
  min-height: 24px;
  margin: 12px 28px 0;
  color: #245f49;
  font-weight: 750;
}

.method,
footer {
  padding: 28px clamp(24px, 4vw, 52px);
}

.method p,
footer p {
  max-width: 980px;
  color: #4d5f56;
  line-height: 1.65;
}

footer {
  border-radius: 0 0 24px 24px;
}

footer p:last-child {
  margin-bottom: 0;
}

a {
  color: #2b438f;
  font-weight: 750;
}

@media (max-width: 980px) {
  main {
    width: min(100% - 18px, 1500px);
    padding-top: 10px;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .workspace-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
