h1 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-size: 2rem;
}

.lede {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 28px;
  max-width: 60ch;
}

.tool {
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.pw-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

#pwInput {
  flex: 1;
  font: inherit;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}

.toggle-btn {
  font: inherit;
  font-weight: 600;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

.strength-bar {
  height: 10px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-bar__fill {
  height: 100%;
  width: 0%;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.strength-label {
  margin: 0 0 20px;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.stat__label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stat__value {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 2px;
}

.checklist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.checklist li {
  padding: 4px 0 4px 26px;
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
}

.checklist li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.checklist li.met {
  color: var(--ink);
}

.checklist li.met::before {
  content: "●";
  color: #1e8e3e;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.faq { margin-top: 48px; max-width: 70ch; }

.faq h2 { font-size: 1.3rem; margin-top: 32px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}
