:root {
  --green: #2e7acb;
  --green-bright: #67c7ff;
  --ink: #10263b;
  --muted: #64788c;
  --line: #7bc5f7;
  --panel: #fff;
  --bg: #eef8ff;
  --blue-soft: #dff3ff;
  --blue-mid: #b9e5ff;
  --blue-deep: #1f66bd;
  --shadow: 0 24px 60px rgba(31, 102, 189, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  color: var(--ink);
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(246, 252, 255, 0.9), rgba(239, 248, 255, 0.94)),
    repeating-linear-gradient(115deg, rgba(120, 199, 255, 0.14) 0 54px, rgba(213, 237, 255, 0.18) 54px 108px),
    radial-gradient(circle at 18% 18%, rgba(111, 199, 255, 0.34), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(31, 102, 189, 0.18), transparent 26rem),
    var(--bg);
}

a {
  color: #027bff;
}

.page-shell {
  margin: 0 auto;
  max-width: 960px;
  min-height: 100vh;
  text-align: center;
  width: min(960px, 100vw);
}

.headline-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(123, 197, 247, 0.28);
  box-shadow: var(--shadow);
  padding: 34px 24px 40px;
}

.top-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.top-brand img {
  display: block;
  height: auto;
  max-width: 220px;
  width: min(220px, 72vw);
}

.date-line {
  color: #6f8fa8;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}

.date-line::before {
  content: "🏠 ";
}

h1 {
  font-size: clamp(32px, 4.7vw, 54px);
  letter-spacing: 0;
  line-height: 1.06;
  margin: 0 auto;
  max-width: 850px;
  overflow-wrap: anywhere;
}

h1 span {
  color: var(--green);
}

h1 u {
  text-decoration-color: #79c9ff;
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

h1 mark {
  background: linear-gradient(transparent 52%, #b9e8ff 52%);
  color: inherit;
  padding: 0 0.05em;
}

.subhead {
  color: #27445f;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.22;
  margin: 22px auto 0;
  max-width: 820px;
  overflow-wrap: anywhere;
}

.arrow {
  height: 64px;
  margin: 18px auto 12px;
  position: relative;
  width: 48px;
}

.arrow::before {
  background: var(--blue-deep);
  content: "";
  height: 48px;
  left: 20px;
  position: absolute;
  top: 0;
  width: 8px;
  border-radius: 999px;
}

.arrow::after {
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  content: "";
  left: 2px;
  position: absolute;
}

.arrow-down::after {
  border-top: 22px solid var(--blue-deep);
  top: 42px;
}

.arrow-up {
  margin-top: 20px;
}

.arrow-up::before {
  bottom: 0;
  top: auto;
}

.arrow-up::after {
  border-bottom: 22px solid var(--blue-deep);
  bottom: 42px;
}

.quiz-card {
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 900px;
  min-height: 300px;
  padding: 34px 38px 26px;
}

.quiz-card h2 {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0;
  margin: 0 0 22px;
}

.quiz-card h2::before {
  content: "📋 ";
}

.progress {
  background: #d8eaf7;
  border-radius: 999px;
  height: 16px;
  margin: 0 auto 24px;
  max-width: 760px;
  overflow: hidden;
}

.progress span {
  background: linear-gradient(90deg, var(--blue-deep), var(--green-bright));
  display: block;
  height: 100%;
  transition: width 0.25s ease;
  width: 8%;
}

form {
  margin: 0 auto;
  max-width: 760px;
}

.step {
  display: none;
  min-height: 150px;
  text-align: left;
}

.step.active {
  display: block;
}

.question {
  color: #173650;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 14px;
}

.hint {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 14px;
}

label {
  background: rgba(235, 248, 255, 0.58);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  font-size: 16px;
  line-height: 1.4;
  margin: 8px 0;
  padding: 8px 10px;
}

label:hover {
  border-color: #9bd7ff;
  background: #eef9ff;
}

input[type="radio"] {
  margin-right: 8px;
}

input:not([type="radio"]) {
  border: 1px solid #a9d8f8;
  border-radius: 8px;
  display: block;
  font: inherit;
  margin-top: 12px;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

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

.calc-step,
.done-step {
  min-height: 160px;
  padding: 36px 0 14px;
  text-align: center;
}

.calc-step.active {
  animation: softPulse 1.25s ease-in-out infinite;
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.86;
    transform: scale(1.01);
  }
}

.actions {
  align-items: center;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  margin-top: 20px;
}

.cta {
  background: linear-gradient(180deg, #2f91e8, var(--blue-deep));
  border: 1px solid rgba(15, 75, 145, 0.35);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(31, 102, 189, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 28px;
}

.cta::before {
  content: "✅ ";
}

.back-link {
  background: none;
  border: 0;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.back-link[hidden] {
  display: none;
}

.gdpr-note {
  color: #8fa7b9;
  font-size: 13px;
  margin: 18px 0 0;
  text-align: center;
}

.footer {
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(123, 197, 247, 0.34);
  padding: 22px 18px 42px;
}

.footer-brand {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0 auto 14px;
}

.footer-logo {
  display: block;
  height: auto;
  max-width: 260px;
  width: min(260px, 82vw);
}

.footer p {
  color: #33516c;
  font-size: 16px;
  line-height: 1.4;
  margin: 14px auto 0;
  max-width: 850px;
}

.footer .meta-disclaimer,
.footer-grid p {
  color: #8298aa;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px auto 0;
  max-width: 760px;
}

.legal-shell {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(123, 197, 247, 0.34);
  box-shadow: var(--shadow);
  margin: 32px auto;
  max-width: 900px;
  padding: 28px;
  text-align: left;
}

.legal-shell h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  text-align: left;
}

.legal-shell h2 {
  font-size: 22px;
  margin: 28px 0 10px;
}

.legal-shell p,
.legal-shell li {
  line-height: 1.58;
}

.legal-shell ul {
  padding-left: 22px;
}

.legal-shell .back-home {
  display: inline-block;
  margin-bottom: 20px;
}

.placeholder-note {
  background: #eaf7ff;
  border: 1px solid #a9d8f8;
  margin: 20px 0;
  padding: 12px;
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
  }

  .page-shell {
    margin: 0;
    max-width: 100vw;
    overflow-x: hidden;
    width: 100vw;
  }

  .headline-panel {
    padding: 24px 14px 30px;
    width: 100vw;
  }

  .top-brand {
    margin-bottom: 14px;
  }

  .top-brand img {
    max-width: 190px;
  }

  .date-line {
    font-size: 16px;
  }

  h1 {
    font-size: 27px;
    line-height: 1.06;
    max-width: calc(100vw - 28px);
  }

  .subhead {
    font-size: 17px;
    max-width: calc(100vw - 28px);
  }

  .arrow {
    height: 58px;
    margin: 12px auto 10px;
  }

  .quiz-card {
    border-radius: 12px;
    margin: 0 10px;
    max-width: calc(100vw - 20px);
    padding: 24px 18px 20px;
    width: calc(100vw - 20px);
  }

  .quiz-card h2 {
    font-size: 17px;
  }

  .progress {
    height: 14px;
  }

  .question {
    font-size: 17px;
  }

  .hint,
  label {
    font-size: 15px;
  }

  form,
  .step {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .option-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-shell {
    margin: 0;
    padding: 20px;
  }
}
