:root {
  --primary: #3fa3bb;
  --primary-dark: #2b7487;
  --primary-soft: #e8f7fb;
  --background: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f8fbfd;
  --text: #22313b;
  --text-muted: #5b6872;
  --border: #dde4ec;
  --good: #287a55;
  --good-soft: #edf8f2;
  --warning: #93600f;
  --warning-soft: #fff8e6;
  --critical: #9a3b36;
  --critical-soft: #fff1ef;
  --radius: 14px;
  --radius-small: 10px;
  --shadow: 0 8px 24px rgba(34, 49, 59, .08);
  --content-width: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.container {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding: 24px;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: -9999px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
}
.skip-link:focus { left: 8px; }

.hero {
  padding: 20px 0;
  background: var(--surface);
  border-top: 24px solid var(--primary);
  border-bottom: 1px solid #e7e7e7;
  text-align: center;
}
.hero__inner { padding-block: 22px; }
.brand { display: inline-block; margin-bottom: 18px; border-radius: 8px; }
.logo-camp { display: block; width: 120px; height: 120px; object-fit: contain; }
.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; }
.subtitle {
  max-width: 700px;
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.powered {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  color: #666;
  font-size: .94rem;
}
.logo-tortuga { width: 140px; height: auto; margin-top: 8px; opacity: .85; }

.card, .result-section {
  margin: 24px 0;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.intro { text-align: center; }
h2 { margin: 0 0 10px; line-height: 1.25; }
h3 { line-height: 1.35; }
.eyebrow {
  margin: 0 0 7px;
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.lead, .question-help, .section-intro { color: var(--text-muted); }
.lead { max-width: 760px; margin-inline: auto; font-size: 1.05rem; }
.benefits {
  max-width: 760px;
  margin: 26px auto;
  padding: 22px 26px;
  background: var(--primary-soft);
  border: 1px solid #b7e4ef;
  border-left: 6px solid var(--primary);
  border-radius: 12px;
  text-align: left;
}
.benefits p, .benefits ul { margin-block: 0 8px; }
.privacy-note, .legal-note {
  max-width: 760px;
  margin: 24px auto;
  padding: 16px 18px;
  background: var(--surface-soft);
  border-left: 4px solid var(--primary);
  border-radius: 7px;
  color: var(--text-muted);
  text-align: left;
}
.duration { margin-left: 14px; color: var(--text-muted); font-size: .92rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--primary); color: var(--text); }
.button--primary:hover { background: var(--primary-dark); color: #fff; }
.button--secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.button--secondary:hover { background: var(--surface-soft); border-color: var(--primary); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
.option:has(input:focus-visible) { outline: 3px solid var(--primary-dark); outline-offset: 3px; }

.wizard fieldset { margin: 0; padding: 0; border: 0; }
.wizard legend { max-width: 800px; margin-bottom: 8px; font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 750; line-height: 1.3; }
.question-help { margin-top: 0; }
.progress-wrap { margin-bottom: 32px; }
.progress-copy { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 7px; font-size: .9rem; font-weight: 700; }
.progress { height: 10px; overflow: hidden; background: #dce5ea; border-radius: 20px; }
.progress div { width: 0; height: 100%; background: var(--primary); transition: width .25s; }
.options { display: grid; gap: 10px; margin: 22px 0; }
.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  cursor: pointer;
}
.option:hover, .option:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); }
.option input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary-dark); }
.option span { min-width: 0; overflow-wrap: anywhere; }
.actions, .result-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.text-button { padding: 8px 0; border: 0; background: transparent; color: var(--primary-dark); font: inherit; text-decoration: underline; cursor: pointer; }
.wizard > .text-button { margin-top: 18px; }
.error { padding: 10px 12px; background: var(--critical-soft); border-radius: 7px; color: #7f2521; font-weight: 700; }
.select-field { margin: 16px 0; }
.select-field label { display: block; margin-bottom: 6px; font-weight: 700; }
select { width: 100%; padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: 8px; color: inherit; }

.review-list { border-top: 1px solid var(--border); }
.review-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-row p { margin: 4px 0; color: var(--text-muted); }
.results { margin-top: 24px; }
.result-hero { border-top: 6px solid var(--primary); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 5px 11px; background: var(--primary-soft); border-radius: 20px; font-size: .86rem; }
.result-section { border-left: 6px solid var(--primary); }
.result-section--good { background: var(--good-soft); border-color: var(--good); }
.result-section--critical { background: var(--critical-soft); border-color: var(--critical); }
.result-section--urgent { background: var(--warning-soft); border-color: var(--warning); }
.result-section li { margin: 8px 0; }
.measure-list { padding-left: 1.5rem; }
.measure-list li { margin-bottom: 18px; padding-left: 6px; }
.measure-list p { margin: 3px 0; }
.empty { color: var(--text-muted); }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan-grid section { padding: 18px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-small); }
.plan-grid h3 { margin-top: 0; }
.related { border: 1px solid var(--border); box-shadow: none; }
.legal-note { max-width: none; }

.site-footer { margin-top: 60px; padding: 35px 20px; background: #f8f9fb; border-top: 1px solid #e5e7eb; text-align: center; }
.footer-links { margin-bottom: 18px; }
.footer-links a { display: inline-block; margin: 4px 14px; color: var(--primary-dark); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { color: #666; font-size: .875rem; line-height: 1.6; }
.last-updated { display: inline-block; margin-top: 4px; }
.noscript { margin: 20px; padding: 20px; background: #fff4d8; }

@media (max-width: 640px) {
  .container { padding: 16px; }
  .hero { border-top-width: 16px; }
  .hero__inner { padding-block: 18px; }
  .logo-camp { width: 104px; height: 104px; }
  .card, .result-section { margin: 16px 0; padding: 20px; }
  .benefits { padding: 18px 20px; }
  .duration { display: block; margin: 10px 0 0; }
  .actions, .result-actions { flex-direction: column-reverse; }
  .button { width: 100%; }
  .plan-grid { grid-template-columns: 1fr; }
  .review-row { align-items: flex-start; }
  .review-row .text-button { flex: 0 0 auto; }
  .footer-links a { margin-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .progress div { transition: none; }
}

@media print {
  body { background: #fff; font-size: 10.5pt; }
  .skip-link, #intro, #wizard, #review, .result-actions, .related, .site-footer, .powered { display: none !important; }
  .hero { padding: 0; border: 0; text-align: left; }
  .hero__inner { padding: 0; }
  .brand { margin: 0 0 6mm; }
  .logo-camp { width: 24mm; height: 24mm; }
  .hero h1 { font-size: 22pt; }
  .container { width: 100%; max-width: none; padding: 0; }
  .card, .result-section { margin: 4mm 0; padding: 5mm; border: 1px solid #bbb; box-shadow: none; break-inside: avoid; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .legal-note { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  @page { margin: 14mm; }
}
