:root {
  /* Ink */
  --ink-900: #141B26;
  --ink-800: #1E2D42;
  --ink-600: #2A3F5C;
  --ink-400: #4A6080;

  /* Emerald - accent only, never a large fill, 10% max per surface */
  --emerald-600: #0D7A52;
  --emerald-400: #0D9E68;
  --emerald-200: #5AB894;
  --emerald-50:  #E0F4ED;

  /* Parchment - replaces pure white everywhere */
  --parchment-50:  #FAF7F2;
  --parchment-100: #EEE8DE;
  --parchment-200: #DDD5C4;

  /* Slate */
  --slate-900: #2A3540;
  --slate-600: #4E5E70;
  --slate-300: #8C9BAD;

  /* Fonts */
  --font-headline: 'Cormorant Garamond', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-label: 'DM Mono', monospace;

  --radius: 10px;
  --shadow-card: 0 12px 32px rgba(20, 27, 38, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--parchment-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 64px;
}

.app-shell {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin: 0 0 12px;
}

h1, h2, h3 {
  font-family: var(--font-headline);
  color: var(--ink-900);
  margin: 0 0 16px;
  font-weight: 600;
}

h1 { font-size: 42px; line-height: 1.1; }
h2 { font-size: 30px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.3; }

p { line-height: 1.6; color: var(--slate-600); }

.screen {
  display: none;
  animation: fade-in 0.25s ease;
}
.screen.is-active { display: block; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Landing screen */
.landing {
  text-align: center;
  padding: 64px 0 32px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: block;
}
.landing .trust-line {
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--slate-300);
  margin-top: 20px;
}

/* Progress bar */
.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--parchment-200);
  overflow: hidden;
  margin-bottom: 28px;
}
.progress-fill {
  height: 100%;
  background: var(--emerald-600);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.progress-label {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--slate-300);
  margin-bottom: 8px;
}

/* Question card */
.question-card {
  background: var(--parchment-50);
  border: 1px solid var(--parchment-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border: 1px solid var(--parchment-200);
  border-radius: 8px;
  background: var(--parchment-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option:hover { border-color: var(--emerald-400); }
.option.is-selected {
  border-color: var(--emerald-600);
  background: var(--emerald-50);
}

/* Scale input */
.scale-row {
  display: flex;
  gap: 8px;
  margin: 24px 0;
}
.scale-option {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  border: 1px solid var(--parchment-200);
  border-radius: 8px;
  background: var(--parchment-50);
  cursor: pointer;
  font-family: var(--font-label);
}
.scale-option.is-selected {
  border-color: var(--emerald-600);
  background: var(--emerald-50);
}

/* Contact form */
.field-group { margin-bottom: 16px; }
.field-group label {
  display: block;
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--slate-600);
  margin-bottom: 6px;
}
.field-group input[type="text"],
.field-group input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--parchment-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--parchment-50);
  color: var(--ink-900);
}
.field-group input:focus {
  outline: none;
  border-color: var(--emerald-600);
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* Nav row */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.btn-back {
  background: none;
  border: none;
  color: var(--slate-600);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
}
.btn-primary {
  display: inline-block;
  background: var(--emerald-600);
  color: var(--parchment-50);
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--emerald-400); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  display: inline-block;
  background: none;
  color: var(--slate-600);
  border: 1px solid var(--parchment-200);
  border-radius: 999px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 12px;
}
.btn-secondary:hover { border-color: var(--emerald-400); }

/* Results screen */
.results-score {
  font-family: var(--font-headline);
  font-size: 64px;
  color: var(--ink-900);
  margin: 8px 0 4px;
}
.results-score span {
  font-size: 24px;
  color: var(--slate-300);
}
.gap-item {
  border-left: 3px solid var(--emerald-600);
  padding-left: 16px;
  margin: 16px 0;
}
.gap-item h3 { margin-bottom: 6px; font-size: 18px; }
.tier-card {
  background: var(--emerald-50);
  border-radius: var(--radius);
  padding: 28px;
  margin: 28px 0 12px;
  text-align: center;
}
.tier-card .tier-name {
  font-family: var(--font-headline);
  font-size: 26px;
  margin-bottom: 4px;
}
.tier-card .tier-price {
  font-family: var(--font-label);
  font-size: 18px;
  color: var(--emerald-600);
  margin-bottom: 12px;
}
.results-actions {
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  .question-card { padding: 24px 18px; }
  .scale-row { flex-wrap: wrap; }
}
