.safety-check-page { background: var(--mist); }

.safety-check-hero {
  padding: clamp(40px, 6vw, 78px) 0 clamp(32px, 5vw, 58px);
  background: var(--harbor-700);
  color: var(--white);
}

.safety-check-hero .guide-breadcrumbs { margin-bottom: clamp(32px, 5vw, 56px); }
.safety-check-hero .guide-breadcrumbs a { color: var(--white); }
.safety-check-hero .guide-breadcrumbs span { color: var(--calibration); }

.safety-check-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: end;
}

.safety-check-intro h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.7rem);
  font-weight: 870;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-wrap: balance;
}

.safety-check-intro > div > p {
  max-width: 66ch;
  margin: 28px 0 0;
  color: oklch(0.93 0.025 220);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.safety-check-intro aside {
  padding: 24px 0 4px;
  border-block: 1px solid oklch(0.68 0.06 220 / 0.58);
}

.safety-check-intro aside strong {
  display: block;
  margin-bottom: 8px;
  color: var(--calibration);
  font-size: 1rem;
}

.safety-check-intro aside p { margin: 0; color: oklch(0.88 0.02 230); line-height: 1.55; }
.safety-check-hero .guide-meta { margin-top: clamp(34px, 5vw, 58px); color: oklch(0.83 0.025 230); }

.safety-check-layout { padding-block: clamp(42px, 7vw, 84px); }

.safety-check-form {
  overflow: hidden;
  border: 2px solid var(--harbor-700);
  border-radius: var(--radius-md);
  background: var(--white);
}

.safety-check-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
  gap: 24px;
  align-items: center;
  padding: 24px clamp(20px, 4vw, 38px);
  background: var(--harbor-700);
  color: var(--white);
}

.safety-check-progress div { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.safety-check-progress strong { font-size: var(--type-body); }
.safety-check-progress span { color: oklch(0.83 0.025 230); font-size: var(--type-support); }

.safety-check-progress progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--harbor-900);
  color: var(--calibration);
}

.safety-check-progress progress::-webkit-progress-bar { background: var(--harbor-900); }
.safety-check-progress progress::-webkit-progress-value { background: var(--calibration); }
.safety-check-progress progress::-moz-progress-bar { background: var(--calibration); }

.safety-check-gates fieldset {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 14px clamp(30px, 5vw, 74px);
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: clamp(26px, 4vw, 42px) clamp(20px, 4vw, 38px);
  border: 0;
  border-bottom: 1px solid var(--line);
}

.safety-check-gates fieldset[data-state] { background: var(--surface); }

.safety-check-gates legend {
  grid-column: 1;
  max-width: 65ch;
  padding: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 720;
  line-height: 1.48;
  text-wrap: pretty;
}

.safety-check-gates legend span {
  display: block;
  margin-bottom: 7px;
  color: var(--harbor-600);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.safety-check-gates fieldset > p {
  grid-column: 1;
  max-width: 68ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.safety-check-options {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.safety-check-options label { min-width: 0; cursor: pointer; }
.safety-check-options input { position: absolute; opacity: 0; pointer-events: none; }

.safety-check-options span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--harbor-700);
  font-size: 0.84rem;
  font-weight: 780;
  text-align: center;
  transition: background 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out;
}

.safety-check-options label:hover span { border-color: var(--harbor-500); }
.safety-check-options input:focus-visible + span { outline: 3px solid var(--calibration); outline-offset: 2px; }
.safety-check-options input:active + span { transform: translateY(1px); }
.safety-check-options input:checked + span { border-color: var(--harbor-700); background: var(--harbor-700); color: var(--white); }

.safety-check-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 24px clamp(20px, 4vw, 38px);
  background: oklch(0.95 0.018 220);
}

.safety-check-actions .button { min-height: 48px; }
.safety-check-actions button:disabled { cursor: not-allowed; opacity: 0.52; }
.safety-check-actions p { flex: 1 1 260px; margin: 0 0 0 8px; color: var(--ink-soft); font-size: 0.88rem; }

.safety-check-result {
  margin-top: clamp(32px, 6vw, 64px);
  border: 2px solid var(--harbor-700);
  border-radius: var(--radius-md);
  background: var(--white);
}

.safety-check-result > header { padding: clamp(26px, 4vw, 42px); background: var(--harbor-700); color: var(--white); }
.safety-check-result > header > span { color: var(--calibration); font-size: 0.84rem; font-weight: 850; }
.safety-check-result h2 { margin: 8px 0 12px; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1; }
.safety-check-result > header p { max-width: 64ch; margin: 0; color: oklch(0.88 0.02 230); line-height: 1.58; }

.safety-check-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.safety-check-totals div { padding: 24px clamp(18px, 4vw, 36px); border-right: 1px solid var(--line); }
.safety-check-totals div:last-child { border-right: 0; }
.safety-check-totals dt { color: var(--ink-soft); font-size: 0.82rem; font-weight: 760; }
.safety-check-totals dd { margin: 4px 0 0; color: var(--harbor-700); font-family: var(--display); font-size: var(--type-price); font-weight: 850; }

.safety-check-priorities { padding: clamp(26px, 4vw, 42px); }
.safety-check-priorities h3 { margin: 0 0 18px; font-size: var(--type-body); }
.safety-check-priorities ul { margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.safety-check-priorities li { display: flex; gap: 18px; justify-content: space-between; padding: 15px 0; border-top: 1px solid var(--line); }
.safety-check-priorities li:first-child { border-top: 0; }
.safety-check-priorities li span:first-child { font-weight: 720; }
.safety-check-priorities li span:last-child { color: var(--ink-soft); font-size: 0.9rem; font-weight: 700; }
.safety-check-priorities li[data-state="missing"] span:last-child { color: var(--signal-red); }
.safety-check-priorities li[data-state="unknown"] span:last-child { color: var(--muted); }
.safety-check-priorities li[data-state="confirmed"] span:last-child { color: var(--harbor-600); }

.safety-check-result-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 clamp(26px, 4vw, 42px) clamp(26px, 4vw, 42px); }
.safety-check-disclaimer { margin: 0; padding: 22px clamp(26px, 4vw, 42px); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.86rem; line-height: 1.55; }

.safety-check-next-step {
  display: grid;
  grid-template-columns: minmax(210px, 0.6fr) minmax(0, 1.2fr) auto;
  gap: 20px 34px;
  align-items: center;
  margin-top: clamp(32px, 6vw, 64px);
  padding: clamp(24px, 4vw, 38px);
  border-block: 1px solid var(--line-strong);
}

.safety-check-next-step h2 { margin: 0; font-family: var(--display); font-size: var(--type-price); letter-spacing: -0.02em; line-height: 1.05; }
.safety-check-next-step p { max-width: 65ch; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.safety-check-next-step a { color: var(--harbor-700); font-weight: 800; white-space: nowrap; }

@media (max-width: 840px) {
  .safety-check-intro { grid-template-columns: 1fr; }
  .safety-check-intro aside { max-width: 65ch; }
  .safety-check-gates fieldset { grid-template-columns: 1fr; }
  .safety-check-options { grid-column: 1; grid-row: auto; }
  .safety-check-next-step { grid-template-columns: 1fr; }
  .safety-check-next-step a { white-space: normal; }
}

@media (max-width: 620px) {
  .safety-check-intro h1 { max-width: 11ch; font-size: clamp(2.55rem, 12vw, 4.2rem); }
  .safety-check-progress { grid-template-columns: 1fr; gap: 14px; }
  .safety-check-totals { grid-template-columns: 1fr; }
  .safety-check-totals div { display: flex; align-items: baseline; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); }
  .safety-check-totals div:last-child { border-bottom: 0; }
  .safety-check-totals dd { font-size: var(--type-price); }
  .safety-check-actions .button, .safety-check-result-actions .button { width: 100%; }
  .safety-check-actions p { margin-left: 0; }
  .safety-check-priorities li { align-items: baseline; }
}

@media (prefers-reduced-motion: reduce) {
  .safety-check-options span { transition: none; }
}
