:root {
  --homeShell: 1120px;
  --homeContent: 1040px;
  --pageBg: #e6eef7;
  --pageGlow: rgba(0, 33, 71, 0.14);
  --card: #ffffff;
  --ink: #0d1d36;
  --muted: #314866;
  --line: #9fb2cb;
  --accent: #001a36;
  --accentSoft: rgba(0, 26, 54, 0.12);
  --shadow: 0 18px 36px rgba(0, 33, 71, 0.12);
  --labelRowMin: 2.45em;

  --bad: #b91c1c;
  --mid: #b45309;
  --good: #047857;

  --badBg: rgba(185, 28, 28, 0.08);
  --midBg: rgba(245, 158, 11, 0.16);
  --goodBg: rgba(4, 120, 87, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Times New Roman", Times, "Nimbus Roman No9 L", serif;
  background:
    radial-gradient(circle at top right, var(--pageGlow), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--pageBg) 100%);
  color: var(--ink);
  padding: 24px 16px 48px;
}

a {
  color: inherit;
}

.siteShell {
  max-width: var(--homeShell);
  margin: 0 auto;
}

.homeContent {
  width: min(100%, var(--homeContent));
  max-width: var(--homeContent);
  margin: 0 auto;
}

.homeContent > * {
  width: 100%;
}

.siteBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(146, 166, 191, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(0, 33, 71, 0.08);
  backdrop-filter: blur(10px);
}

.siteBrand {
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.siteTagline {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: right;
}

.homeHero,
.panel,
.homeFooter,
.card {
  background: var(--card);
  border: 1px solid #99aec9;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.homeHero {
  padding: 30px 32px 34px;
  background:
    linear-gradient(135deg, rgba(0, 26, 54, 0.13), rgba(255, 255, 255, 0.99) 55%),
    var(--card);
  text-align: center;
}

.heroBrand {
  margin: 0 0 18px;
}

.heroBrandMarkWrap {
  width: min(100%, 210px);
  margin: 0 auto;
}

.heroBrandMark {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.homeHero h1 {
  margin: 0;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  color: var(--accent);
  font-size: clamp(30px, 3.15vw, 43px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.homeLead {
  margin: 10px 0 0;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  color: #213651;
  font-size: 20px;
  line-height: 1.65;
}

.buttonLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.buttonLink:hover {
  transform: translateY(-1px);
}

.primaryLink {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(0, 33, 71, 0.18);
}

.secondaryLink {
  border-color: #7f97b7;
  background: #ffffff;
  color: var(--accent);
}

.statusNote {
  color: #223955;
  font-size: 16px;
  line-height: 1.5;
}

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

.panel {
  padding: 28px 24px;
  text-align: center;
}

.categoryPanel {
  text-align: center;
}

.categoryPanel > .eyebrow {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.categoryGroup {
  margin-top: 10px;
  padding: 18px 18px 16px;
  border: 1px solid #d6e0eb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
}

.categoryGroup h3 {
  margin: 0;
  color: #183353;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-align: center;
}

.toolList {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.toolItem {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 0;
}

.toolItem + .toolItem {
  border-top: 1px solid #d9e2ed;
}

.toolCopy {
  min-width: 0;
  flex: 1;
  max-width: none;
  text-align: left;
}

.toolLink {
  color: #0f4f96;
  display: inline;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.toolSummary {
  margin: 0;
  color: #27405f;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  white-space: nowrap;
}

.statusPill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d6e0eb;
  background: #f2f6fb;
  color: #294560;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.statusTesting {
  border-color: #e2c296;
  background: #fff3e6;
  color: #8d4c00;
}

.categoryNote {
  margin: 16px 0 0;
  color: #355171;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}

.managedBy {
  margin: 0;
  color: #223955;
  font-size: 16px;
  line-height: 1.5;
  font-style: italic;
  text-align: center;
}

.feedbackNote {
  margin: 10px auto 0;
  max-width: none;
  color: #213651;
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
  white-space: nowrap;
}

.homeFooter {
  margin-top: 28px;
  padding: 24px 18px 0;
  border-top: 1px solid #c9d6e5;
  text-align: center;
}

.homeFooterContent {
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0 auto;
}

.homeFooterText {
  min-width: 0;
}

.footerCopyright {
  margin: 16px 0 0;
  color: #27405f;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.siteDisclaimer {
  margin: 10px auto 0;
  max-width: 860px;
  color: #355171;
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.inlineMail {
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
}

.hdr {
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.brand {
  width: min(100%, 420px);
  display: flex;
  justify-content: center;
  padding-inline: clamp(8px, 2vw, 18px);
}

.site-logo {
  display: block;
  width: 100%;
  max-width: clamp(220px, 42vw, 360px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.hdr h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(20px, 1rem + 1vw, 28px);
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.sub {
  margin: 0 auto 20px;
  max-width: 860px;
  color: #27405f;
  font-size: clamp(13px, 0.78rem + 0.25vw, 16px);
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 16px;
  align-items: start;
}

.field {
  display: grid;
  grid-template-rows: minmax(var(--labelRowMin), auto) minmax(54px, auto);
  align-content: start;
  min-width: 0;
}

.field > span,
.labelRow span {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.field > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--labelRowMin);
  margin: 0;
  text-align: center;
}

.labelRow {
  position: relative;
  display: block;
  min-height: var(--labelRowMin);
  margin: 0;
}

.field.has-help {
  grid-template-rows: minmax(var(--labelRowMin), auto) minmax(54px, auto) auto;
}

.labelRow span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--labelRowMin);
  width: 100%;
  padding: 0 36px;
  text-align: center;
}

.field-wide {
  grid-column: 1 / -1;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}

select,
input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 17px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus,
input:focus {
  border-color: rgba(0, 33, 71, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.12);
}

.helpBtn {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  width: 30px;
  height: 20px;
  border: 1px solid #879bb8;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.helpBtn:hover {
  background: rgba(0, 33, 71, 0.06);
}

.helpText {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fafb;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}

button {
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.actions button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(0, 33, 71, 0.14);
}

button.primary {
  width: min(420px, 100%);
  background: var(--accent);
  color: #ffffff;
  border-color: rgba(0, 26, 54, 0.6);
}

button.secondary {
  width: min(420px, 100%);
  background: #ffffff;
  color: var(--accent);
  border-color: #7f97b7;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.result {
  width: min(760px, 100%);
  margin: 16px auto 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pill {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef3f9;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.big {
  margin-top: 10px;
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.result[data-band="red"] {
  border-color: rgba(185, 28, 28, 0.45);
  background: var(--badBg);
}

.result[data-band="red"] .pill {
  border-color: rgba(185, 28, 28, 0.55);
  background: rgba(185, 28, 28, 0.1);
}

.result[data-band="yellow"] {
  border-color: rgba(245, 158, 11, 0.55);
  background: var(--midBg);
}

.result[data-band="yellow"] .pill {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.18);
}

.result[data-band="green"] {
  border-color: rgba(4, 120, 87, 0.45);
  background: var(--goodBg);
}

.result[data-band="green"] .pill {
  border-color: rgba(4, 120, 87, 0.55);
  background: rgba(4, 120, 87, 0.1);
}

.about {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #c4d2e3;
}

.about summary {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.aboutBody {
  padding-top: 8px;
  color: #2b4464;
  font-size: 15px;
  line-height: 1.6;
}

.fine {
  color: #355171;
  font-size: 13px;
}

@media (max-width: 900px) {
  .siteBar {
    flex-direction: column;
    align-items: flex-start;
  }

  .siteTagline {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 760px) {
  body {
    padding: 18px 12px 36px;
  }

  .homeHero,
  .panel,
  .card {
    padding: 22px;
  }

  .homeHero h1 {
    margin-top: 10px;
    font-size: clamp(30px, 7vw, 40px);
    white-space: normal;
  }

  .heroBrand {
    margin: 0 0 28px;
  }

  .heroBrandMarkWrap {
    width: min(100%, 176px);
  }

  .site-logo {
    max-width: min(100%, 300px);
  }

  .toolSummary {
    white-space: normal;
  }

  .feedbackNote {
    white-space: normal;
  }

  .categoryGroup {
    padding: 16px;
  }

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

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

  .field {
    grid-template-rows: auto minmax(54px, auto);
  }

  .field.has-help {
    grid-template-rows: auto minmax(54px, auto) auto;
  }

  .field > span,
  .labelRow {
    min-height: 1.9em;
  }
}
