:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;
  --border: #e1e6ee;
  --text: #10151f;
  --text-muted: #57647a;
  --accent: #0f9d72;
  --accent-2: #1c73c4;
  --danger: #d84343;
  --warning: #c8792b;
  --radius: 10px;
  --max-width: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #04140f;
  padding: 12px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

a {
  color: inherit;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
}

p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

ul, ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  font-family: var(--font-mono);
  color: var(--accent);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #0c8560;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 157, 114, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 157, 114, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at top, black, transparent 70%);
}

.hero-inner {
  position: relative;
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 20ch;
  background: linear-gradient(120deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 60ch;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 640px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  margin: 0;
}

.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.hero-stats dd {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-lead {
  max-width: 60ch;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* Survey */

.survey-wrap {
  max-width: 720px;
}

.survey-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 1px 3px rgba(16, 21, 31, 0.05);
}

.survey-intro .btn {
  margin-top: 8px;
}

.survey-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.survey-progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
}

.survey-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
  width: 0%;
}

.survey-progress-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.survey-category {
  font-family: var(--font-mono);
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  margin: 0 0 10px;
}

.survey-question {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.survey-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 0.92rem;
  color: var(--text);
}

.survey-option:hover {
  border-color: var(--accent);
}

.survey-option input {
  margin-top: 3px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.survey-option.selected {
  border-color: var(--accent);
  background: rgba(15, 157, 114, 0.06);
}

.survey-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Lead form */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin: 16px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--accent);
}

.form-status.is-error {
  color: var(--danger);
}

/* Result */

.result-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid currentColor;
  margin-bottom: 16px;
}

.result-score {
  font-size: 2.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin: 0 0 8px;
  color: var(--text);
}

.result-summary {
  font-size: 1rem;
  margin-bottom: 32px;
}

.result-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.result-category-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-category-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text);
}

.result-category-label span:last-child {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.result-category-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
}

.result-category-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent-2);
}

.result-card .btn {
  margin-top: 8px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-inner .brand {
  margin-bottom: 4px;
}

.footer-inner p {
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive */

@media (max-width: 720px) {
  .hero {
    padding: 64px 0 48px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .survey-card {
    padding: 28px 20px;
  }

  .survey-nav {
    gap: 12px;
  }
}
