:root {
  color-scheme: light;
  --ink: #1d2430;
  --muted: #667085;
  --line: #d9e0e8;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --green: #26735d;
  --green-dark: #185442;
  --blue: #2d5f9a;
  --amber: #9a651d;
  --rose: #a23d4b;
  --shadow: 0 18px 55px rgba(24, 38, 61, .11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Meiryo", system-ui, sans-serif;
  background: linear-gradient(180deg, #eef4f2 0%, #f8fafc 44%, #edf1f5 100%);
  color: var(--ink);
}

a {
  color: var(--blue);
}

.app {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 46px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: #44505f;
  font-size: 18px;
  line-height: 1.8;
}

.notice {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #cbd7d1;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
  line-height: 1.65;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 500px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

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

.form-panel {
  padding: 22px;
}

.result-panel {
  position: sticky;
  top: 20px;
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
}

.section-heading:first-child {
  margin-top: 0;
}

.section-heading span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #e3f0eb;
  color: var(--green-dark);
  font-weight: 800;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid #c9d3df;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 9px 12px;
}

input:focus,
select:focus {
  outline: 3px solid rgba(38, 115, 93, .18);
  border-color: var(--green);
}

.grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

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

.checks {
  display: grid;
  gap: 9px;
}

.checks label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #fbfcfe;
  font-weight: 650;
  line-height: 1.45;
}

.checks input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.primary {
  width: 100%;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  min-height: 50px;
  cursor: pointer;
}

.primary:hover {
  background: var(--green-dark);
}

.secondary {
  display: none;
  width: 100%;
  margin-top: 10px;
  border: 1px solid #bfd0c9;
  border-radius: 8px;
  background: #f4faf7;
  color: var(--green-dark);
  font: inherit;
  font-weight: 800;
  min-height: 48px;
  cursor: pointer;
}

.secondary:hover {
  background: #e8f3ef;
}

.result-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.result-top h2 {
  margin: 0;
  font-size: 24px;
}

.score {
  display: flex;
  align-items: baseline;
  gap: 3px;
  min-width: 76px;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  background: #e8f3ef;
  color: var(--green-dark);
}

.score span {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.summary {
  margin: 16px 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
  color: #485467;
  line-height: 1.7;
}

.results {
  display: grid;
  gap: 14px;
}

.card {
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.card h3 {
  margin: 0;
  font-size: 19px;
}

.badge {
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 9px;
  background: #e8f3ef;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.badge.medium {
  background: #eef3fb;
  color: var(--blue);
}

.badge.check {
  background: #fff3df;
  color: var(--amber);
}

.card p {
  margin: 10px 0 0;
  color: #475467;
  line-height: 1.7;
}

.meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf1f5;
  color: #3f4a5a;
  line-height: 1.6;
}

.meta strong {
  color: var(--ink);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  background: #fbfdff;
  color: #214b77;
  font-weight: 800;
  text-decoration: none;
}

.seo-content {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

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

.seo-content article,
.faq-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  padding: 20px;
  box-shadow: var(--shadow);
}

.seo-content h2 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.35;
}

.seo-content p,
.seo-content li {
  color: #475467;
  line-height: 1.75;
}

.seo-content p:last-child,
.seo-content ol {
  margin-bottom: 0;
}

.seo-content ol {
  padding-left: 22px;
}

.faq-block {
  display: grid;
  gap: 10px;
}

.faq-block h2 {
  margin-bottom: 4px;
}

.faq-block details {
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px 14px;
}

.faq-block summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.faq-block p {
  margin: 10px 0 0;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.sources h2 {
  width: 100%;
  margin: 0 0 4px;
  font-size: 17px;
}

.sources a {
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d8e2ea;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 920px) {
  .intro,
  .workspace,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .app {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

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

  .form-panel,
  .result-panel,
  .seo-content article,
  .faq-block {
    padding: 16px;
  }

  .jump-result {
    display: block;
  }

  .card-header,
  .result-top {
    flex-direction: column;
  }
}
