@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");
:root {
  --ink: #111315;
  --muted: #697077;
  --paper: #f7f7f4;
  --card: #fff;
  --line: #dedfd9;
  --lime: #c6f36b;
  --blue: #3558f4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
header,
footer,
main {
  max-width: 1180px;
  margin: auto;
}
header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.brand span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
  margin-right: 9px;
}
.badge {
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hero {
  padding: 88px 24px 58px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
h1 {
  font: 800 clamp(48px, 8vw, 96px)/0.98 Manrope;
  margin: 14px 0 24px;
  letter-spacing: -0.06em;
}
h1 em {
  font-style: normal;
  color: var(--blue);
}
.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}
.panel,
.result {
  margin: 0 24px 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 25px 70px #20251b0a;
}
.step {
  float: right;
  background: var(--lime);
  font-weight: 800;
  padding: 12px;
  border-radius: 12px;
}
h2 {
  font: 700 28px Manrope;
  margin: 0;
}
.muted,
.notice {
  color: var(--muted);
}
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px;
}
label {
  font-weight: 600;
  font-size: 14px;
}
.wide {
  grid-column: 1/-1;
}
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbf8;
  font: inherit;
  padding: 15px;
  outline: none;
}
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #3558f418;
}
textarea {
  min-height: 230px;
  resize: vertical;
  line-height: 1.5;
}
.counter {
  display: block;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
button {
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  padding: 17px 20px;
  font: 700 16px inherit;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
button:hover {
  background: var(--blue);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.resulthead {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 15px;
}
.result pre {
  white-space: pre-wrap;
  font: 16px/1.7 "DM Sans";
  margin: 28px 0;
}
.notice {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 13px;
}
.fetch-status {
  padding: 13px 15px;
  border-radius: 12px;
  background: #f2f3ef;
  color: var(--muted);
  font-size: 14px;
}
.fetch-status[data-state="loading"] {
  color: var(--blue);
}
.fetch-status[data-state="success"] {
  background: #eff9df;
  color: #38550c;
}
.fetch-status[data-state="error"] {
  background: #fff0ef;
  color: #a3261d;
}
.source-link {
  display: inline-block;
  margin-top: 9px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px 45px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 680px) {
  .badge {
    display: none;
  }
  .hero {
    padding-top: 58px;
  }
  .panel,
  .result {
    padding: 22px;
    margin-inline: 14px;
  }
  form {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .resulthead,
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}
