/*
 * Public pages: the landing page, the 404 page and, mostly, the taker.
 * One sheet because they share a lot and are tiny on their own. Accent text
 * uses --accent-ink (set by take.js to a contrast-checked shade of the poll's
 * accent) and falls back to --accent where no poll is loaded.
 */

/* ================================================================== */
/* Landing + 404                                                       */
/* ================================================================== */

.site {
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.site main {
  flex: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg);
  font-weight: 750;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 2.5rem 4rem;
}

.hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 750;
}

.hero-accent {
  color: var(--accent);
}

.hero-pitch {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.signin-note {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--warning) 40%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--warning) 8%, var(--surface));
  max-width: 34rem;
}
.signin-note[hidden] { display: none; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-demo {
  display: flex;
  justify-content: center;
}

.demo-card {
  width: 100%;
  max-width: 26rem;
  padding: 1.75rem 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow), 0 24px 48px -24px color-mix(in srgb, var(--accent) 35%, transparent);
  rotate: -1.5deg;
}

.demo-progress {
  height: 4px;
  border-radius: 4px;
  background: var(--accent-soft);
  overflow: hidden;
}

.demo-progress span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
}

.demo-num {
  margin-top: 1.75rem;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.9375rem;
}

.demo-title {
  margin-top: 0.35rem;
  font-size: 1.375rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.demo-stars {
  display: flex;
  gap: 0.3rem;
  margin-top: 1.25rem;
  font-size: 2.1rem;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 22%, transparent);
}

.demo-stars .is-on {
  color: var(--accent);
}

.demo-ok {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.demo-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 0.9375rem;
}

.demo-hint {
  color: var(--muted);
  font-size: 0.8125rem;
}

.features {
  display: grid;
  gap: 1rem;
  padding-bottom: 3rem;
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
}

.feature h2 {
  margin-top: 1rem;
  font-size: 1.125rem;
}

.feature p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer nav a {
  color: var(--muted);
}

.brand-sm {
  font-weight: 700;
  margin-right: 0.35rem;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    padding-block: 4.5rem 5.5rem;
  }
}

.notfound {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  max-width: 36rem;
  min-height: 100dvh;
  padding-block: 3rem;
}

.notfound .brand {
  margin-bottom: 1rem;
}

.notfound-code {
  font-size: clamp(4rem, 3rem + 6vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ================================================================== */
/* Taker                                                               */
/* ================================================================== */

.taker {
  overflow-x: clip;
  --ink: var(--accent-ink, var(--accent));
  /* Outlines and tints derive from the contrast-checked ink, so a navy
     accent on a dark page still draws visible option borders. */
  --line: color-mix(in srgb, var(--ink) 40%, transparent);
  --tint: color-mix(in srgb, var(--ink) 8%, transparent);
  --tint-strong: color-mix(in srgb, var(--ink) 18%, transparent);
  --focus: 0 0 0 3px color-mix(in srgb, var(--ink) 55%, transparent);
  --bar-h: 4.5rem;
}

.taker :focus-visible {
  outline-color: var(--ink);
}

/* Fixed-size icons: base.css caps svg at max-width 100%, which collapses
   them to zero inside shrink-to-fit parents. */
.q-num-icon, .ok-icon, .choice-check, .combo-check, .combo-chevron,
.q-error-icon, .thanks-check {
  flex: none;
  max-width: none;
}

.taker svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- chrome: progress, preview banner, bottom bar ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 4px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
  transition: transform 0.45s var(--ease);
}

.preview-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 25;
  translate: -50% 0;
  max-width: calc(100vw - 2rem);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent);
  background: color-mix(in srgb, var(--warning) 14%, var(--surface));
  color: var(--fg);
  font-size: 0.8125rem;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.taker-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  pointer-events: none;
}

.taker-bar > * {
  pointer-events: auto;
}

.made-with {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.made-with strong {
  color: var(--fg);
}

.made-with:hover {
  color: var(--fg);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-btn {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 0;
}

.nav-btn:first-child {
  border-radius: 8px 0 0 8px;
}

.nav-btn:last-child {
  border-radius: 0 8px 8px 0;
}

.nav-btn:disabled {
  opacity: 0.45;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- stage + screens ---------- */

/* Screens share one grid cell so the outgoing and incoming screens overlap
   during the transition without the page height jumping. */
.stage {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
}

.screen {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  padding: 4.5rem 1.5rem calc(var(--bar-h) + 2.5rem);
}

.is-preview .screen {
  padding-top: 5.5rem;
}

.q,
.welcome,
.status {
  width: 100%;
  max-width: 44rem;
  min-width: 0;
}

.is-leaving {
  pointer-events: none;
}

.is-entering.enter-up { animation: enter-up 0.42s var(--ease) both; }
.is-entering.enter-down { animation: enter-down 0.42s var(--ease) both; }
.is-leaving.leave-up { animation: leave-up 0.36s var(--ease) both; }
.is-leaving.leave-down { animation: leave-down 0.36s var(--ease) both; }

@keyframes enter-up {
  from { opacity: 0; transform: translateY(56px); }
  to { opacity: 1; transform: none; }
}

@keyframes enter-down {
  from { opacity: 0; transform: translateY(-56px); }
  to { opacity: 1; transform: none; }
}

@keyframes leave-up {
  to { opacity: 0; transform: translateY(-56px); }
}

@keyframes leave-down {
  to { opacity: 0; transform: translateY(56px); }
}

/* ---------- status screens (loading, not found, closed, thanks) ---------- */

.status {
  max-width: 34rem;
  text-align: center;
}

.status-glyph {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.status-eyebrow {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.status-title {
  font-size: clamp(1.625rem, 1.2rem + 2vw, 2.25rem);
}

.status-title:focus-visible,
.q-title:focus-visible,
.welcome-title:focus-visible {
  outline: none; /* focused by script only, to start screen readers here */
}

.status-text {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.125rem;
  white-space: pre-line;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.screen-thanks .pill {
  margin-top: 1rem;
}

.spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 1rem;
  border: 3px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.thanks-mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  animation: pop 0.5s var(--ease) both 0.1s;
}

.thanks-check {
  width: 2rem;
  height: 2rem;
  stroke-width: 3;
}

@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  to { transform: scale(1); }
}

/* ---------- welcome ---------- */

.welcome {
  text-align: center;
}

.welcome-title {
  font-size: clamp(1.875rem, 1.2rem + 3vw, 3rem);
  letter-spacing: -0.03em;
}

.welcome-desc {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.1875rem;
  white-space: pre-line;
}

.welcome .q-actions {
  justify-content: center;
  margin-top: 2rem;
}

.welcome-meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- question ---------- */

.q {
  position: relative;
}

.q-num {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.q-num-icon {
  width: 1em;
  height: 1em;
  stroke-width: 2.5;
}

.q-title {
  font-size: clamp(1.375rem, 1.05rem + 1.4vw, 1.875rem);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.q-req {
  color: var(--ink);
}

.q-desc {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 1.125rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.q-answer {
  margin-top: 2rem;
}

.q-hint {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.q-choices > .q-hint {
  margin: 0 0 0.75rem;
}

.q-error {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--danger) 11%, transparent);
  color: var(--danger);
  font-size: 0.9375rem;
  font-weight: 550;
}

.q-error:empty {
  padding: 0;
  margin: 0;
  background: none;
}

.q-error-icon {
  flex: none;
  width: 1.1em;
  height: 1.1em;
}

.q-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

.ok-btn {
  min-height: 48px;
  font-weight: 700;
}

.ok-icon {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 3;
}

.ok-btn.is-busy {
  opacity: 0.8;
}

.enter-hint {
  color: var(--muted);
  font-size: 0.8125rem;
}

.enter-hint strong {
  color: var(--fg);
  font-weight: 650;
}

/* Touch devices have no Enter key worth advertising. */
@media (hover: none) {
  .enter-hint {
    display: none;
  }
}

.submit-box:empty {
  display: none;
}

.submit-box {
  margin-top: 1.25rem;
}

.submit-notice p {
  color: var(--fg);
}

.submit-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.is-shaking {
  animation: shake 0.4s var(--ease);
}

@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

/* ---------- text inputs (underline style) ---------- */

.q-input {
  display: block;
  width: 100%;
  padding: 0.35rem 0 0.5rem;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); /* never below 16px: iOS zooms */
  line-height: 1.35;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.q-input::placeholder {
  color: color-mix(in srgb, var(--ink) 40%, transparent);
  opacity: 1;
}

.q-input:focus {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);
}

.q-input[aria-invalid="true"] {
  border-bottom-color: var(--danger);
}

textarea.q-input {
  resize: none;
  overflow: hidden;
  min-height: 2.2em;
}

input[type="date"].q-input {
  max-width: 16rem;
  min-height: 2.2em;
}

input[type="date"].q-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}

.char-count {
  margin-top: 0.35rem;
  text-align: right;
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.char-count.is-over {
  color: var(--danger);
}

/* ---------- choices ---------- */

/* Options size to the longest label (like Typeform) but never past the
   screen, and never so narrow that short labels make thin targets. */
.choices {
  display: grid;
  gap: 0.5rem;
  width: fit-content;
  min-width: min(100%, 18rem);
  max-width: 100%;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.45rem 0.75rem 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
  color: var(--fg);
  font-size: 1.0625rem;
  line-height: 1.3;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s var(--ease), border-color 0.12s var(--ease), box-shadow 0.12s var(--ease);
}

.choice:hover {
  background: var(--tint-strong);
}

.choice:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.choice.is-selected {
  border-color: var(--ink);
  background: var(--tint-strong);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.choice.is-selected:focus-visible {
  box-shadow: inset 0 0 0 1px var(--ink), var(--focus);
}

.choice-key {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.3rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.choice-key:empty {
  visibility: hidden;
}

.choice.is-selected .choice-key {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
}

.choice-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.choice-check {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.5rem;
  color: var(--ink);
  stroke-width: 3;
  opacity: 0;
  transition: opacity 0.12s var(--ease);
}

.choice.is-selected .choice-check {
  opacity: 1;
}

.is-blinking {
  animation: blink 0.36s steps(1) 1;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  25%, 75% { opacity: 0.5; }
}

@media (min-width: 720px) {
  .choices-many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

.other-wrap {
  max-width: 28rem;
  margin-top: 0.75rem;
}

.other-input {
  font-size: max(1.125rem, 16px);
}

/* ---------- dropdown ---------- */

.combo {
  max-width: 34rem;
}

.combo-field {
  position: relative;
}

.combo-input {
  padding-right: 2.75rem;
}

.combo-toggle {
  position: absolute;
  right: 0;
  bottom: 0.3rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
}

.combo-toggle:hover {
  background: var(--tint);
}

.combo-chevron {
  width: 1.4rem;
  height: 1.4rem;
  transition: rotate 0.15s var(--ease);
}

.combo-toggle.is-open .combo-chevron {
  rotate: 180deg;
}

.combo-list {
  margin: 0.5rem 0 0;
  padding: 0.25rem;
  max-height: min(18rem, 45dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.combo-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 1.0625rem;
  cursor: pointer;
}

.combo-option.is-active {
  background: var(--tint-strong);
}

.combo-option.is-selected {
  font-weight: 650;
}

.combo-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.combo-check {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink);
  stroke-width: 3;
  visibility: hidden;
}

.combo-option.is-selected .combo-check {
  visibility: visible;
}

.combo-empty {
  margin-top: 0.75rem;
  color: var(--muted);
}

/* ---------- rating (stars) ---------- */

.scale-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
}

.star-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: clamp(2.9rem, 10vw, 4rem);
  padding: 0.3rem 0.2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.star-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.star {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  stroke-width: 1.5;
  fill: transparent;
  transition: fill 0.1s var(--ease), transform 0.15s var(--ease);
}

.star-btn.is-lit .star {
  fill: var(--ink);
  stroke: var(--ink);
}

.star-btn:hover .star {
  transform: scale(1.08);
}

.star-num {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.star-btn.is-selected .star-num {
  color: var(--ink);
}

/* ---------- opinion scale ---------- */

.scale-numbers {
  display: grid;
  grid-template-columns: repeat(var(--count, 11), minmax(0, 1fr));
  gap: 0.4rem;
}

.scale-btn {
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
  color: var(--fg);
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s var(--ease);
}

.scale-btn:hover {
  background: var(--tint-strong);
}

.scale-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.scale-btn.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.scale-labels span:last-child {
  text-align: right;
}

@media (max-width: 600px) {
  .scale-numbers.scale-wide {
    grid-template-columns: repeat(var(--half, 6), minmax(0, 1fr));
  }
}

/* ---------- small screens ---------- */

@media (max-width: 600px) {
  .taker {
    --bar-h: 4rem;
  }

  .screen {
    align-items: flex-start;
    padding: 3.5rem 1rem calc(var(--bar-h) + 2rem);
  }

  .is-preview .screen {
    padding-top: 4.25rem;
  }

  .screen-status,
  .screen-welcome {
    align-items: center;
  }

  /* A soft floor behind the bar so it never sits on top of content. */
  .taker-bar {
    background: linear-gradient(to top, var(--bg) 55%, color-mix(in srgb, var(--bg) 0%, transparent));
  }

  .choices {
    width: 100%;
  }

  .q-answer {
    margin-top: 1.5rem;
  }
}

/* Wide screens: hang the number in the margin like Typeform. */
@media (min-width: 960px) {
  .q-num {
    position: absolute;
    right: 100%;
    top: 0.45em;
    margin: 0 0.9rem 0 0;
    white-space: nowrap;
  }
}
