:root {
  font-family: Inter, Arial, sans-serif;
  color: #10233f;
  background: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  max-width: 1180px;
  margin: auto;
  padding: 0 22px;
}

header {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 25px;
  font-weight: 900;
}

.brand span {
  color: #3867ff;
}

nav {
  font-size: 14px;
  color: #60708a;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr .7fr;
  gap: 30px;
  align-items: center;
  padding: 64px 0 40px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.04;
  margin: 10px 0 18px;
  max-width: 790px;
}

.hero p {
  font-size: 18px;
  line-height: 1.65;
  color: #53647c;
}

.eyebrow {
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 2px;
  color: #3867ff !important;
}

.scoreCard,
.panel,
article,
.metrics {
  background: white;
  border: 1px solid #e2e8f2;
  border-radius: 20px;
  box-shadow: 0 14px 35px rgba(20, 45, 90, .07);
}

.scoreCard {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.scoreCard b {
  font-size: 18px;
}

.scoreCard span {
  color: #51627b;
}

.panel {
  padding: 28px;
  display: grid;
  gap: 20px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
}

small {
  color: #718096;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #cfd8e6;
  border-radius: 12px;
  font: inherit;
  background: #fbfcfe;
}

button,
.downloadLink {
  border: 0;
  border-radius: 12px;
  background: #315efb;
  color: white;
  padding: 14px 20px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:disabled {
  opacity: .6;
}

.error {
  color: #b42318;
}

.results {
  display: grid;
  gap: 22px;
  padding: 30px 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px;
}

.metrics div {
  display: grid;
  text-align: center;
  border-right: 1px solid #edf0f5;
}

.metrics div:last-child {
  border: 0;
}

.metrics strong {
  font-size: 34px;
}

.metrics span {
  color: #68778e;
}

article {
  padding: 26px;
}

article h2 {
  margin-top: 0;
}

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

.chips span {
  padding: 8px 11px;
  background: #eaf7ef;
  color: #16794b;
  border-radius: 999px;
  font-size: 13px;
}

.chips.warning span {
  background: #fff2dc;
  color: #9a5b00;
}

.articleHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.articleHead div {
  display: flex;
  gap: 8px;
}

.articleHead button,
.articleHead .downloadLink {
  padding: 9px 13px;
}

pre,
.editableDoc {
  white-space: pre-wrap;
  font: 15px/1.65 Inter, Arial;
  color: #293c57;
}

.editableDoc {
  min-height: 180px;
  padding: 14px;
  border: 1px solid #d7e1ef;
  border-radius: 10px;
  background: #fbfcfe;
  outline: none;
}

.editableDoc:focus {
  border-color: #315efb;
  box-shadow: 0 0 0 3px rgba(49, 94, 251, .12);
}

.addition {
  background: #fff1a8;
  color: #172033;
  border-radius: 4px;
  padding: 1px 3px;
  font-weight: 800;
}

li {
  margin: 9px 0;
  line-height: 1.5;
}

footer {
  text-align: center;
  padding: 40px;
  color: #718096;
}

@media (max-width: 760px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid #edf0f5;
    padding-bottom: 16px;
  }

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

  nav {
    display: none;
  }
}
