/* The web survey (survey.pumpfitness.app): the app's onboarding question screen as a page.
   Colors are the app's light and dark surfaces; mockup: workout-survey-campaign/SurveyCards.tsx. */
:root {
  --bg: #F2EEE4; --card: #FAF7F0; --raised: #FFFFFF; --ink: #14110D; --sub: #6B6962;
  --muted: #A8A398; --faint: #8A857A; --border: rgba(20, 17, 13, .10);
  --orange: #FF5A1F; --on-orange: #FAF7F0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130F; --card: #1A1813; --raised: #2A2722; --ink: #F0EAD9; --sub: #C8C2AE;
    --muted: #6B6962; --faint: #8A8578; --border: rgba(240, 234, 217, .12);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink); min-height: 100vh; min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; text-align: inherit; }
[hidden] { display: none !important; }

.survey { width: 100%; max-width: 520px; margin: 0 auto; padding: 18px 20px 28px; padding-top: calc(18px + env(safe-area-inset-top)); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.wordmark { font-family: 'Archivo Black', sans-serif; font-size: 22px; line-height: 1; color: var(--orange); transform: skewX(-10deg); letter-spacing: -.5px; }
.back {
  width: 36px; height: 36px; border-radius: 18px; background: var(--card); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
}
.back svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rail { display: flex; gap: 5px; flex: 1; max-width: 150px; }
.rail span { flex: 1; height: 3px; border-radius: 2px; background: var(--border); }
.rail span.on { background: var(--orange); }
.skip { font-size: 15px; font-weight: 600; color: var(--sub); min-width: 36px; text-align: right; padding: 8px 0; }
.skip.gone { visibility: hidden; }

.step { margin-top: 34px; animation: step-in .28s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }
.intro { font-size: 14px; line-height: 1.45; color: var(--faint); margin-bottom: 12px; }
.headline { font-family: 'Archivo', sans-serif; font-style: italic; font-weight: 900; font-size: 29px; line-height: 1.08; letter-spacing: -.02em; }
.hint { font-size: 14px; color: var(--faint); margin-top: 10px; }
.answers { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.answers.words { gap: 14px; }

.option {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 14px 15px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border); font-size: 16px; font-weight: 500; line-height: 1.3;
  transition: background .12s;
}
.option > span:first-child { flex: 1; }
.option .mark { flex: none; width: 22px; height: 22px; border-radius: 11px; border: 1.5px solid var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.option.any .mark { border-radius: 6px; }
.option .mark svg { width: 13px; height: 13px; stroke: var(--orange); stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.option.on { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.option.on .mark { border: 0; background: var(--on-orange); }
.option.on .mark svg { visibility: visible; }
.option:focus-visible, .cta:focus-visible, .back:focus-visible, .skip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.field { display: flex; background: var(--raised); border-radius: 12px; border: 1px solid var(--border); padding: 12px 14px; }
.field.filled, .field:focus-within { border-color: var(--orange); }
.field input, .field textarea { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; resize: none; font-size: 16px; line-height: 1.4; }
.field ::placeholder { color: var(--faint); }

.cta {
  display: block; width: 100%; background: var(--orange); color: var(--on-orange); font-size: 17px; font-weight: 600;
  text-align: center; padding: 15px 17px; border-radius: 16px; text-decoration: none;
}
.cta:disabled { opacity: .4; cursor: default; }
.answers > .cta { margin-top: 6px; }
.answers.words > .cta { margin-top: 0; }

.ending { display: flex; flex-direction: column; gap: 12px; }
.ending p { font-size: 16px; line-height: 1.5; color: var(--sub); margin-bottom: 12px; }
.ending .later { font-size: 15px; color: var(--faint); margin: 0; }

@media (min-width: 700px) {
  .survey { padding-top: 28px; }
  .step { margin-top: 56px; }
}
