/* ngenAOS Working Style Profiler — tokens from landing/vol_2/DESIGN.md.
   Light editorial: warm paper ground, near-black ink, single cobalt accent,
   Georgia-italic emphasis, Helvetica display. No dark "console" surfaces. */
:root {
  --ground: #faf8f4;      /* warm off-white page ground */
  --ground-2: #ffffff;    /* raised card surface */
  --ink: #14161a;         /* near-black display + body (~15:1) */
  --ink-2: #4a4e57;       /* secondary text (~7.4:1) */
  --hairline: #e3dfd6;    /* rules / borders — non-text */
  --accent: #1e32d6;      /* cobalt — brand accent fill */
  --accent-text: #182ab4; /* cobalt as text on paper (~7.6:1) */
  --accent-hover: #16269e;/* cobalt hover / pressed */
  --field-tint: rgba(30, 50, 214, 0.07);
  --ctrl-border: #cfc9bd;
  --placeholder: #8a8578;

  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 14px;
  --r-full: 100px;

  --display: "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --focus: 0 0 0 4px rgba(30, 50, 214, 0.22);
  --card-shadow: 0 24px 54px -30px rgba(20, 22, 26, 0.4);
  --btn-glow: 0 10px 24px -8px rgba(30, 50, 214, 0.6);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 22px 56px;
}

/* Header — flat wordmark, one cobalt letter */
.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 2px 22px;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 700;
}
.brandmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brandmark .a { color: var(--accent); }

/* Progress */
.progress { margin: 0 2px 18px; }
.progress-track {
  height: 8px;
  background: var(--hairline);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: var(--r-full);
  transition: width .25s ease;
}
.progress-label {
  margin-top: 7px;
  font-size: 12px;
  color: var(--ink-2);
}

/* Cards */
.card {
  background: var(--ground-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--card-shadow);
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0 0 14px;
}

.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 22px; }
.muted { color: var(--ink-2); }

.facts {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.facts li {
  padding: 14px 2px;
  background: var(--ground-2);
  font-size: 15px;
  color: var(--ink-2);
}
.facts strong { color: var(--ink); font-weight: 700; }

/* Intro form */
.fields { display: grid; gap: 18px; }
.fields label {
  display: grid;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.fields .opt { font-weight: 400; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.fields input {
  font-family: var(--display);
  font-size: 16px;
  padding: 0 15px;
  min-height: 54px;
  background: var(--ground-2);
  border: 1.5px solid var(--ctrl-border);
  border-radius: var(--r-md);
  color: var(--ink);
}
.fields input::placeholder { color: var(--placeholder); }
.fields input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

.consent { font-size: 12px; color: var(--ink-2); margin: 4px 0 0; line-height: 1.5; }

/* Buttons */
.btn {
  appearance: none;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  min-height: 56px;
  padding: 0 26px;
  border-radius: var(--r-md);
  cursor: pointer;
  box-shadow: var(--btn-glow);
  transition: background .15s ease, transform .06s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ctrl-border);
  box-shadow: none;
  margin-left: 10px;
}
.btn.ghost:hover { background: var(--ground); border-color: var(--ink-2); }

.error { color: #b42318; font-size: 14px; margin: 14px 0 0; min-height: 1em; }

/* Questions */
.q-progress-of {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin: 0 0 10px;
}
.q-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 30px;
  line-height: 1.15;
}
.scale-legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.scale {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 30px;
}
.scale button {
  appearance: none;
  border: 1.5px solid var(--ctrl-border);
  background: var(--ground-2);
  border-radius: var(--r-md);
  min-height: 52px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all .12s ease;
}
.scale button:hover { border-color: var(--accent); background: var(--field-tint); }
.scale button.selected {
  background: var(--field-tint);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.scale button:focus-visible { outline: none; box-shadow: var(--focus); }
@media (max-width: 520px) {
  .scale { gap: 5px; }
  .scale button { min-height: 46px; font-size: 14px; }
  .q-text { font-size: 21px; }
  h1 { font-size: 28px; }
}

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

/* Done */
.check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--field-tint); color: var(--accent-text);
  font-size: 26px; line-height: 56px; text-align: center;
  margin: 0 0 18px;
}
.done-headline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--accent-text);
  margin-top: 10px;
}

.foot {
  margin-top: 24px;
  padding: 0 4px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: -2px;
  margin-right: 9px;
}
@keyframes spin { to { transform: rotate(360deg); } }
