*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: system-ui, sans-serif;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: #111;
  background: #fff;
}

a { color: #0057b8; }
a:hover { color: #003d80; }

h1 { font-size: 1.75rem; margin-top: 0; }

nav { margin-bottom: 1.5rem; font-size: 0.9rem; }

ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

/* ---- Homepage ---- */
/* Hero */
.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 2rem;
}
.site-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #0057b8; margin: 0 0 1rem; }
.site-icon { vertical-align: -4px; margin-right: 5px; }
.hero-headline { font-size: 2rem; line-height: 1.2; margin: 0 0 0.75rem; }
.hero-sub { font-size: 1rem; color: #444; max-width: 520px; margin: 0; line-height: 1.6; }

/* Homepage — sections */
.section { margin-bottom: 2.5rem; }
.section--tinted { background: #f9f9f9; border-radius: 6px; padding: 1.5rem; margin-left: -1rem; margin-right: -1rem; }
.section-heading { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.75rem; color: #111; }
.section-sub { font-size: 0.95rem; color: #444; margin: 0 0 1rem; line-height: 1.6; }

/* Tool cards */
.card-title { margin: 0 0 0.4rem; font-size: 1.1rem; color: #0057b8; }

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: #0057b8; box-shadow: 0 2px 8px rgba(0,87,184,0.1); color: inherit; }
.card p  { margin: 0; font-size: 0.9rem; color: #444; }

/* Homepage — who this is for */
.for-list { padding-left: 1.25rem; margin: 0; }
.for-list li { margin-bottom: 0.6rem; font-size: 0.95rem; line-height: 1.5; color: #333; }

/* Homepage — email capture */
.capture-form { margin-top: 1rem; }
.capture-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.capture-row input[type="email"] {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex: 1 1 220px;
  max-width: 340px;
}
.capture-row input[type="email"]:focus { outline: 2px solid #0057b8; border-color: transparent; }
.capture-row button {
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  background: #0057b8;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.capture-row button:hover { background: #003d80; }
.capture-note { font-size: 0.8rem; color: #888; margin: 0.5rem 0 0; }

/* Homepage — teams CTA */
.section--cta {
  background: #0057b8;
  color: #fff;
  border-radius: 6px;
  padding: 2rem 1.5rem;
  margin-left: -1rem;
  margin-right: -1rem;
}
.cta-heading { font-size: 1.2rem; margin: 0 0 0.5rem; color: #fff; }
.cta-sub { font-size: 0.95rem; color: rgba(255,255,255,0.85); margin: 0 0 1.25rem; line-height: 1.6; max-width: 480px; }
.btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: #fff;
  color: #0057b8;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  text-decoration: none;
}
.btn:hover { background: #e8f0fb; color: #003d80; }

/* Homepage — footer */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-brand { font-size: 0.85rem; font-weight: 600; color: #888; margin: 0; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: 0.85rem; color: #555; text-decoration: none; }
.footer-links a:hover { color: #0057b8; }

/* Accessibility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Calculator */
.calc-form { margin-top: 1.5rem; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}
.field label { font-size: 0.9rem; font-weight: 500; }
.field input {
  padding: 0.5rem 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 320px;
}
.field input:focus { outline: 2px solid #0057b8; border-color: transparent; }

.results {
  margin-top: 1.75rem;
  border-top: 1px solid #eee;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.result-item { display: flex; justify-content: space-between; align-items: baseline; }
.result-label { font-size: 0.9rem; color: #555; }
.result-value { font-size: 1.4rem; font-weight: 600; color: #111; }

/* Decision tool */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 480px) { .option-grid { grid-template-columns: 1fr; } }
.option-heading { font-size: 1rem; font-weight: 600; margin: 0 0 0.75rem; color: #555; }
.hint { font-size: 0.8rem; font-weight: 400; color: #888; }

.result-item--guidance { border-top: 1px solid #eee; padding-top: 0.75rem; margin-top: 0.25rem; }
.result-value--guidance { font-size: 1rem; font-weight: 500; }
.result-value--ok   { color: #1a7f37; }
.result-value--warn { color: #92400e; }
.result-value--stop { color: #b91c1c; }
