@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");

:root {
  --app-surface: #ffffff;
  --app-surface-muted: #f8f9fa;
  --app-border: #e4e8eb;
  --app-border-strong: #d0d7de;
  --app-text: #363636;
  --app-text-muted: #5c6b73;
  --app-text-subtle: #7a7a7a;
  --app-accent: #4a7c8c;
  --app-accent-hover: #3d6a78;
  --app-accent-soft: rgba(74, 124, 140, 0.1);
  --app-link: #5a8f9e;
  --app-bg: #f5f6f7;
  --app-navbar: #f7f7f7;
  --app-radius: 8px;
  --app-radius-sm: 6px;
  --app-feedback-success-bg: #edf7f0;
  --app-feedback-success-border: #b8dfc4;
  --app-feedback-danger-bg: #fdf0f0;
  --app-feedback-danger-border: #f0c4c4;
  --app-feedback-info-bg: #eef5f7;
  --app-feedback-info-border: #c5dce3;
  --font-body: "Nunito", "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--app-text);
  font-family: var(--font-body);
  background: var(--app-bg);
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--app-navbar);
  border-bottom: 1px solid var(--app-border);
}
.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--app-text);
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.site-nav a { color: var(--app-text-muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--app-accent); }
.site-main { max-width: 960px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  color: var(--app-text-muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--app-link); }

.hero { margin-bottom: 2.5rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--app-accent);
  margin: 0 0 0.75rem;
}
.hero h1, .take h1, .result h1, .error h1 {
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--app-text);
}
.lede { color: var(--app-text-muted); font-size: 1.05rem; max-width: 40rem; }
.result-footer { margin-top: 1.25rem; font-size: 0.95rem; }
.result-footer a { color: var(--app-accent); }
.muted { color: var(--app-text-subtle); font-size: 0.9em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn--primary {
  background: var(--app-accent);
  color: #fff;
}
.btn--primary:hover { background: var(--app-accent-hover); }
.btn--ghost {
  background: var(--app-surface);
  border-color: var(--app-border-strong);
  color: var(--app-text);
}
.btn--ghost:hover { border-color: var(--app-accent); color: var(--app-accent); }

.catalog-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.catalog-item a {
  display: block;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.catalog-item a:hover {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px var(--app-accent-soft);
}
.catalog-item h2 { margin: 0 0 0.35rem; font-size: 1.2rem; font-weight: 700; }
.catalog-item p { margin: 0; color: var(--app-text-muted); }

.panel, .report-section {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 1.15rem 1.25rem;
  margin: 1rem 0;
}
.back-link { color: var(--app-link); text-decoration: none; display: inline-block; margin-bottom: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 1.75rem; }

.question-step { margin: 1.25rem 0; }
.question-text { font-size: 1.1rem; }
.answer-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.button-opt {
  border: 1px solid var(--app-border-strong);
  border-radius: 999px;
  padding: 0.65rem 1.05rem;
  background: var(--app-surface);
  cursor: pointer;
}
.button-opt.is-primary {
  background: var(--app-accent);
  color: #fff;
  border-color: var(--app-accent);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.is-hidden, [hidden] { display: none !important; }
.progress-text { color: var(--app-text-muted); font-size: 0.9rem; }
progress {
  width: 100%;
  height: 0.5rem;
  margin-bottom: 1rem;
  accent-color: var(--app-accent);
}
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.radio { display: block; margin: 0.6rem 0; }

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.swatch {
  aspect-ratio: 1;
  border: 2px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  cursor: pointer;
  position: relative;
}
.swatch.luscher-swatch--selected,
.swatch[aria-pressed="true"] {
  border-color: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 0 2px var(--app-accent-soft), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.luscher-swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 28rem;
  margin: 1rem 0;
}
.luscher-swatch-grid > * {
  min-width: 0;
  width: 100%;
}
.luscher-swatch {
  position: relative;
  aspect-ratio: 1;
  min-height: 3.25rem;
  padding: 0;
  border: 3px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}
.luscher-swatch:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.luscher-swatch:focus {
  outline: 2px solid var(--app-link);
  outline-offset: 2px;
}
.luscher-swatch--on-dark { border-color: rgba(255, 255, 255, 0.45); }
.luscher-swatch.luscher-swatch--selected,
.luscher-swatch[aria-pressed="true"] {
  border-color: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 0 2px var(--app-accent-soft), 0 4px 12px rgba(0, 0, 0, 0.2);
}
.luscher-swatch--on-dark.luscher-swatch--selected,
.luscher-swatch--on-dark[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.65);
}
.luscher-swatch__badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.82);
  text-shadow: 0 0 2px #fff, 0 0 6px #fff;
  pointer-events: none;
}
.luscher-swatch--on-dark .luscher-swatch__badge {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}
.luscher-swatch-grid--cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 40rem;
}
.luscher-swatch-grid--cols-10 {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  max-width: 50rem;
}
.luscher-full-calibration {
  width: 8rem;
  height: 8rem;
  border-radius: 6px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  margin: 1rem 0;
}
.luscher-full-shape-button {
  min-height: 3.25rem;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--app-border-strong);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface);
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}
.luscher-full-shape-button.luscher-swatch--selected,
.luscher-full-shape-button[aria-pressed="true"] {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 2px var(--app-accent-soft), 0 4px 12px rgba(0, 0, 0, 0.12);
}
.luscher-full-shape-glyph { font-size: 1.35rem; line-height: 1; }
.wizard-panel { margin-bottom: 1rem; }
.wizard-nav { margin-top: 1.25rem; }

.is-hidden { display: none !important; }
