/* Cacher · survey. Same tokens as the landing page, paper ground throughout. */
:root {
  --paper: #f6f5f0; --paper-2: #efeee7; --ink: #20211f; --muted: #696a63; --line: #e4e4dd;
  --sun: #ffde59; --sun-soft: #fff1b4; --white: #fff;
  --font: "Plus Jakarta Sans", "Jakarta", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --r: 0.875rem;
  --t-eyebrow: 0.75rem; --t-q: clamp(1.5rem, 2.6vw, 2.125rem); --t-hint: 0.875rem; --t-opt: 0.9375rem; --t-btn: 0.9375rem; --t-fine: 0.8125rem; --t-body: 1rem;
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-6: 3rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
button, input, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

/* bar */
.sbar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem;
  padding: 1rem var(--gutter);
  background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: blur(10px);
}
.mark { display: inline-flex; align-items: baseline; gap: 0.3rem; text-decoration: none; color: inherit; }
.mark__word { font-weight: 600; font-size: 1.35rem; letter-spacing: -0.04em; line-height: 1; }
.mark__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sun); transform: translateY(-0.1rem); }
.sbar__progress { height: 4px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 10%, transparent); overflow: hidden; max-width: 28rem; justify-self: center; width: 100%; }
.sbar__progress span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 999px; transition: width 420ms var(--ease); }
a.sbar__count { text-decoration: none; }
a.sbar__count:hover { color: var(--ink); }
.sbar__count { font-size: var(--t-fine); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sbar__right { display: flex; align-items: center; gap: var(--s-2); }
.menu-btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); background: #fff; position: relative; cursor: pointer; padding: 0; }
.menu-btn span { position: absolute; left: 50%; top: 50%; width: 1rem; height: 1.5px; margin: -0.75px 0 0 -0.5rem; background: var(--ink); border-radius: 2px; transition: transform 240ms var(--ease); }
.menu-btn span:first-child { transform: translateY(-0.2rem); }
.menu-btn span:last-child { transform: translateY(0.2rem); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 20; }
.menu__scrim { position: absolute; inset: 0; background: rgba(32, 33, 31, 0.18); border: 0; }
.menu__panel { position: absolute; top: 4.25rem; right: var(--gutter); z-index: 1; min-width: 14rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 0.5rem; box-shadow: 0 24px 48px -24px rgba(32, 33, 31, 0.28); }
.menu__item { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); height: 3rem; padding: 0 1rem; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--t-opt); }
.menu__item:hover { background: var(--sun-soft); }
.menu__item--quiet { color: var(--muted); font-weight: 400; font-size: var(--t-fine); }
[hidden] { display: none !important; }

/* steps */
.survey { min-height: 100svh; display: grid; }
#steps { display: contents; }
.step {
  grid-area: 1 / 1; min-height: 100svh;
  display: flex; align-items: center;
  padding: 6.5rem var(--gutter) 4rem;
  opacity: 0; visibility: hidden; transform: translate3d(0, 18px, 0);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease), visibility 0s linear 380ms;
}
.step.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.step.is-leaving { transform: translate3d(0, -18px, 0); }
.step__in { width: 100%; max-width: 46rem; margin: 0 auto; }
.step__in--centre { text-align: center; }

.eyebrow { margin: 0 0 var(--s-2); font-size: var(--t-eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.h1 { font-weight: 600; font-size: clamp(2.5rem, 5.6vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
.h1 .em { font-size: 1.06em; }
.lede { margin: var(--s-3) 0 var(--s-4); font-size: 1.125rem; line-height: 1.5; color: var(--muted); max-width: 42ch; text-wrap: pretty; }
.step__in--centre .lede { margin-inline: auto; }
.fine { margin: var(--s-2) 0 0; font-size: var(--t-fine); color: var(--muted); }
.fine.is-error { color: #a52b2b; }

.q { font-weight: 600; font-size: var(--t-q); line-height: 1.15; letter-spacing: -0.03em; margin: 0; text-wrap: balance; max-width: 24ch; }
.q .em { font-size: 1.05em; }
.hint { margin: var(--s-1) 0 var(--s-3); color: var(--muted); font-size: var(--t-hint); }

/* options */
.opts { display: grid; gap: var(--s-1); margin: 0 0 var(--s-3); padding: 0; list-style: none; }
.opts--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 3rem; padding: 0.625rem 1rem; border-radius: var(--r);
  background: var(--white); border: 1px solid var(--line);
  transition: background 140ms var(--ease), border-color 140ms var(--ease), transform 140ms var(--ease);
  cursor: pointer; line-height: 1.35; font-size: var(--t-opt); font-weight: 500;
}
.opt span::before {
  content: ""; flex: 0 0 auto; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  border: 1.5px solid #b9b9b0; background: #fff; transition: all 140ms var(--ease);
}
.opt--multi span::before { border-radius: 6px; }
.opt:hover span { border-color: #c9c9c0; }
.opt input:checked + span { background: var(--sun-soft); border-color: var(--sun); }
.opt input:checked + span::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--sun-soft); }
.opt--multi input:checked + span::before { box-shadow: none; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6' fill='none' stroke='%23fff1b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt input:active + span { transform: scale(0.985); }
.opt input:disabled + span { opacity: 0.45; cursor: default; }
.opt__key { margin-left: auto; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt--other span { align-items: stretch; }
.other { width: 100%; border: 0; background: transparent; padding: 0; margin-left: 0.2rem; }
.other::placeholder { color: #8a8b82; }
.other:focus { outline: none; }

.input, .textarea {
  width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: var(--r);
  padding: 0.875rem 1rem; margin: 0 0 var(--s-3); font-size: var(--t-body);
}
.textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #8a8b82; }

/* nav */
.nav { display: flex; gap: var(--s-1); align-items: center; flex-wrap: wrap; }
.nav--centre { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 3rem; padding: 0 1.5rem; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: var(--t-btn); line-height: 1;
  transition: transform 140ms var(--ease), background 140ms var(--ease), color 140ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #000; }
.btn--primary:disabled { opacity: 0.55; cursor: default; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.nav__hint { margin-left: auto; font-size: var(--t-fine); color: var(--muted); }

.tick { display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--sun); margin: 0 auto 1.5rem; }
.tick::after { content: ""; width: 1.3rem; height: 0.7rem; border: 3px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -2px); }

@media (max-width: 700px) {
  .sbar { grid-template-columns: auto 1fr auto; }
  .sbar__count { display: none; }
  a.sbar__count { display: inline; }
  .opts--cols { grid-template-columns: 1fr; }
  .opt__key { display: none; }
  .step { padding-top: 5.5rem; align-items: flex-start; }
  .step--welcome, .step--done { align-items: center; }
  .nav__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .step { transition: opacity 200ms linear; transform: none; }
  .step.is-leaving { transform: none; }
}

[hidden] { display: none !important; }
