/* survey.hinetra.ai. Colors and fonts follow hinetra.ai (CI navy #15253F, gold #FFC632,
   Manrope + Poppins, self-hosted, SIL OFL: fonts/OFL.txt). No external resources. */

@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("fonts/poppins-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("fonts/poppins-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  color-scheme: dark;
  --ink: #15253F;
  --ink-soft: #1C3050;
  --ink-muted: #2A3F5F;
  --line: #35496A;
  --gold: #FFC632;
  --gold-light: #FFD35C;
  --gold-tint: rgb(255 198 50 / 0.08);
  --text: #FFFFFF;
  --text-2: #A8B2C4;
  --text-3: #7C879C;
  --error: #FCA5A5;
  --error-line: #F87171;
  --radius: 12px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Poppins", "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-underline-offset: 0.2em; }
a:hover { color: var(--gold-light); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.95em; }

/* Layout */
.site-header, .page, .site-footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-inline: 1rem;
}
.site-header { padding-block: 1.5rem 0.5rem; }
.site-header .logo { display: inline-block; }
.site-header img { display: block; height: 2rem; width: auto; }
.page { flex: 1; padding-block: 1.5rem 3rem; }
.site-footer {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--ink-muted);
  font-size: 0.875rem;
}
.site-footer a { color: var(--text-3); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* Typography */
h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw + 0.5rem, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0 0 1rem; }
.kicker {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.meta { color: var(--text-2); font-weight: 600; }
.intro { margin-bottom: 2rem; }
.intro > p:not(.kicker, .meta, .privacy) { color: var(--text-2); }
.privacy {
  margin-top: 1.5rem;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--gold);
  background: var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* Questions */
.survey { display: grid; gap: 1rem; }
.q {
  margin: 0;
  min-width: 0;
  padding: 1.25rem;
  background: var(--ink-soft);
  border: 1px solid var(--ink-muted);
  border-radius: calc(var(--radius) + 4px);
}
@media (min-width: 40rem) { .q { padding: 1.5rem 1.75rem; } }
.q.has-error { border-color: var(--error-line); }
/* Keep <legend> inside the card instead of on its top border. */
legend.q-label { float: left; width: 100%; }
legend.q-label + * { clear: both; }
.q-label {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.45;
}
.q-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold);
  font-size: 0.875rem;
  transform: translateY(-0.1em);
}
.optional {
  margin-left: 0.25rem;
  color: var(--text-3);
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
}
.q-help { margin: -0.25rem 0 0.75rem; color: var(--text-3); font-size: 0.9375rem; }
.error { margin: 0 0 0.75rem; color: var(--error); font-weight: 600; font-size: 0.9375rem; }

/* Single and multiple choice: native inputs, whole row clickable */
.options { display: grid; gap: 0.5rem; }
.option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.option:hover { border-color: var(--text-3); }
.option:has(input:checked) { border-color: var(--gold); background: var(--gold-tint); }
.option input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.22rem 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.options input.other-text { margin: -0.125rem 0 0.25rem 2.875rem; width: calc(100% - 2.875rem); }
/* Show the "Other" text field once "Other" is picked. Browsers without :has() ignore this rule
   and always show the field, which the server handles too. */
.options:has(.option-other input:not(:checked)) .other-text { display: none; }

/* Scale: row of numbered buttons */
.scale {
  display: grid;
  grid-template-columns: repeat(var(--points, 5), minmax(0, 1fr));
  gap: 0.5rem;
}
.point { position: relative; }
.point input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.point > span {
  display: grid;
  place-items: center;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.point:hover > span { border-color: var(--text-3); }
.point input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.point input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  color: var(--text-3);
  font-size: 0.875rem;
}
.scale-labels span:last-child { text-align: right; }

/* Text fields */
input[type="text"], textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--ink);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem; /* 16px+ keeps iOS from zooming in */
  line-height: 1.5;
}
textarea { min-height: 7rem; resize: vertical; }
input[type="text"]::placeholder, textarea::placeholder { color: var(--text-3); }
input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(255 198 50 / 0.25);
}
[aria-invalid="true"] { border-color: var(--error-line); }

/* Errors */
.error-summary {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--error-line);
  border-radius: var(--radius);
  background: rgb(248 113 113 / 0.08);
}
.error-summary p { margin: 0 0 0.25rem; }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--error); }

/* Spam trap: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.submit-row { margin-top: 1rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}
.button:hover { background: var(--gold-light); }
@media (max-width: 30rem) { .submit-row .button { width: 100%; } }

/* Home, thank-you and error pages */
.message { padding-top: 1rem; }
.message > p:not(.kicker, .error) { color: var(--text-2); }
.code-form { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.code-form input {
  flex: 1 1 12rem;
  max-width: 16rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.code-form input::placeholder { letter-spacing: 0.15em; }
.message .error { margin-top: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
