:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #18202f;
  --muted: #5d6878;
  --line: #dce3ee;
  --accent: #176b87;
  --accent-dark: #0f4d61;
  --low: #1f8a5b;
  --medium: #b56a00;
  --high: #c33333;
  --shadow: 0 18px 45px rgba(22, 33, 54, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(23, 107, 135, 0.12), rgba(255, 255, 255, 0) 42%),
    var(--bg);
}

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(1040px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(22, 33, 54, 0.08);
}

.site-nav a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav span {
  color: var(--muted);
}

.intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.hero {
  max-width: 850px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: 4rem;
  line-height: 1;
}

.intro-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.secondary-link {
  color: var(--accent-dark);
  font-weight: 800;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0;
}

.benefit-card,
.content-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.benefit-card {
  padding: 22px;
}

.benefit-card h2 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.benefit-card p {
  color: var(--muted);
  line-height: 1.58;
}

.content-section {
  margin-bottom: 24px;
  padding: 26px;
}

.section-header {
  max-width: 720px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.warning-grid,
.article-link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.warning-grid {
  padding-left: 20px;
}

.warning-grid li {
  margin-top: 0;
}

.article-link-grid a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--accent-dark);
  background: #f9fbfe;
  font-weight: 800;
  text-decoration: none;
}

.article-link-grid a:hover {
  border-color: #b7dce8;
  background: #eef9fc;
}

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

.checker-panel {
  padding: 28px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-header h2,
.result-topline h2 {
  margin-bottom: 0;
  font-size: 1.65rem;
}

.risk-explanation {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.privacy-note {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #c7e4ef;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #eef9fc;
  font-size: 0.92rem;
  white-space: nowrap;
}

form {
  display: grid;
  gap: 20px;
}

label,
legend {
  color: #303a49;
  font-size: 0.95rem;
  font-weight: 700;
}

textarea,
input[type="email"],
input[type="text"] {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cbd4e1;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

textarea:focus,
input[type="email"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 107, 135, 0.14);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfe;
}

legend {
  padding: 0 6px;
}

fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 600;
}

input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

button {
  justify-self: start;
  min-width: 160px;
  border: 0;
  border-radius: 8px;
  padding: 14px 22px;
  color: white;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.results {
  margin-top: 24px;
  padding: 26px;
}

.hidden {
  display: none;
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.score-badge {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  color: white;
  background: var(--low);
}

.score-badge span {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.score-badge small {
  margin-top: -22px;
  font-weight: 700;
}

.results.low .score-badge {
  background: var(--low);
}

.results.medium .score-badge {
  background: var(--medium);
}

.results.high .score-badge {
  background: var(--high);
}

.results.low #riskLabel {
  color: var(--low);
}

.results.medium #riskLabel {
  color: var(--medium);
}

.results.high #riskLabel {
  color: var(--high);
}

.result-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 22px;
}

.result-columns h3,
.next-steps h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

li + li {
  margin-top: 8px;
}

.next-steps {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.disclaimer {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.homepage-disclaimer {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.blog-list {
  display: grid;
  gap: 18px;
}

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

.article-card {
  padding: 24px;
}

.article-card h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.article-card p,
.article-page p {
  color: var(--muted);
  line-height: 1.65;
}

.read-more,
.cta-button {
  display: inline-block;
  margin-top: 8px;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.read-more {
  padding: 10px 14px;
}

.cta-button {
  padding: 13px 18px;
}

.read-more:hover,
.cta-button:hover {
  background: var(--accent-dark);
}

.article-page {
  padding: 30px;
}

.article-page h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.article-page ul {
  margin-bottom: 18px;
}

.article-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

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

.info-page p {
  color: var(--muted);
  line-height: 1.65;
}

.info-page ul {
  margin-bottom: 18px;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1040px);
    padding: 28px 0;
  }

  .checker-panel,
  .results,
  .article-page,
  .article-card,
  .info-page,
  .benefit-card,
  .content-section {
    padding: 20px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .panel-header,
  .result-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .privacy-note {
    white-space: normal;
  }

  .form-grid,
  .question-grid,
  .result-columns,
  .benefits,
  .warning-grid,
  .article-link-grid {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .hero-actions .cta-button {
    width: 100%;
    text-align: center;
  }
}
