/* LaunchOps AI — static scorecard. No external fonts, CDN, or tracking. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1a1f2e;
  --muted: #5a6478;
  --border: #d8dee6;
  --primary: #1e5a8a;
  --primary-hover: #16456a;
  --accent: #0d7377;
  --danger: #9b2c2c;
  --warning: #b7791f;
  --ok: #276749;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --max-width: 720px;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  text-align: center;
}

.brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem;
}

section {
  margin-bottom: 2.5rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.hero-lead {
  font-size: 1.0625rem;
  margin: 0 0 0.75rem;
}

.hero-audience,
.section-intro {
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero-bullets {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.hero-bullets li {
  margin-bottom: 0.35rem;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 540px) {
  .check-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.check-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  box-shadow: var(--shadow);
}

.check-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.notice-section {
  background: #eef6fa;
  border: 1px solid #b8d4e8;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.btn {
  display: inline-block;
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--primary);
  margin: 0.25rem 0.25rem 0.25rem 0;
}

.btn-secondary:hover {
  background: #eef4fa;
}

.category-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 1.25rem;
  padding: 1rem;
  background: var(--surface);
}

.category-fieldset legend {
  font-weight: 700;
  padding: 0 0.35rem;
}

.question-block {
  margin-bottom: 1rem;
}

.question-block:last-child {
  margin-bottom: 0;
}

.question-text {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (min-width: 480px) {
  .answer-options {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
}

.answer-label {
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-error {
  color: var(--danger);
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
}

.results-panel {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.result-header {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.state-not-ready {
  background: #fde8e8;
  border: 1px solid #f5c6c6;
}

.state-risky {
  background: #fef3cd;
  border: 1px solid #f0d896;
}

.state-close {
  background: #e6f4ea;
  border: 1px solid #b7dfc3;
}

.state-caveats {
  background: #e8f0fe;
  border: 1px solid #aecbfa;
}

.result-score {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.result-score-max {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.result-state-label {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
}

.result-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.weakest-list,
.steps-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.weakest-list li,
.steps-list li {
  margin-bottom: 0.35rem;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 1fr minmax(80px, 120px) 2.5rem;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}

.breakdown-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 0.5rem;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  min-width: 2px;
}

.breakdown-pct {
  text-align: right;
  font-weight: 600;
}

.secrets-reminder {
  font-size: 0.875rem;
  background: #eef6fa;
  padding: 0.75rem;
  border-radius: var(--radius);
  margin: 1rem 0 0;
}

.intent-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.intent-feedback {
  font-size: 0.875rem;
  color: var(--accent);
  margin: 0.75rem 0 0;
}

.intent-counts {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.disclaimer-section {
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.site-footer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer a {
  color: var(--primary);
}

.site-footer p {
  margin: 0.25rem 0;
}
