/* Whoosh partner quiz.
 *
 * Every value below is lifted from whoosh-app/src/app/globals.css, which is the
 * shipped token layer (itself extracted from Figma VSTQxIVp4Lo40qGpRfATPv).
 * Nothing here is invented.
 *
 * Custom properties are declared on .wq, NOT :root. On the standalone subdomain
 * that makes the widget carry its own look; embedded in Webflow it means the
 * host stylesheet can neither clobber these nor be clobbered by them.
 */

/* Suisse Int'l is licensed, so it ships with the bundle rather than loading
 * from a CDN. Same file the app serves from /public/fonts. Only the 400 face
 * exists -- SuisseIntl-Medium.woff2 was never produced, so 500-weight text
 * synthesises, matching the app exactly.
 *
 * David Libre (the serif) is an open Google font. On Webflow the host page
 * usually already loads both; these declarations are the standalone fallback
 * and are harmless when duplicated.
 */
@font-face {
  font-family: "Suisse Int'l";
  src: url("./fonts/SuisseIntl-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

.wq {
  /* brand */
  --wq-rust: #a65d40;
  --wq-rust-hover: #8a4d35;
  --wq-rust-pressed: #6f3d29;
  --wq-slate: #585f73;
  --wq-charcoal: #333333;

  /* surfaces */
  --wq-cream: #f6f5e8;
  --wq-paper: #fffef2;
  --wq-white: #ffffff;
  --wq-option: #f6f5e8b2;   /* cream @ 70% -- unselected option row, Figma raw */
  --wq-input: #fffef280;    /* off-white @ 50% -- input fill, Figma raw */

  /* ink */
  --wq-ink: #333330;
  --wq-heading: #585f73;
  --wq-strong: #000000;
  --wq-subtle: #6b6960;
  --wq-border: #c7c0b2;
  --wq-placeholder: #00000080;

  /* geometry -- 3px card / 5px controls, corrected in the app on 2026-05-23 */
  --wq-radius-card: 3px;
  --wq-radius-control: 5px;

  --wq-font: "Suisse Int'l", "Work Sans", Arial, Helvetica, sans-serif;
  --wq-serif: "David Libre", Georgia, "Times New Roman", serif;

  font-family: var(--wq-font);
  color: var(--wq-ink);
  line-height: 1.405;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.wq *, .wq *::before, .wq *::after { box-sizing: inherit; }

/* ---------- shells ---------- */

/* Inline mount: fills whatever container it was given. */
.wq--inline { background: var(--wq-cream); padding: 32px 20px; }

/* Modal mount: the popup entry point. */
.wq--modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #00000080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.wq--modal .wq-card {
  box-shadow: 0 20px 60px -20px rgb(0 0 0 / 0.35), 0 8px 20px -8px rgb(0 0 0 / 0.20);
}

.wq-card {
  background: var(--wq-cream);
  border-radius: var(--wq-radius-card);
  width: 100%;
  max-width: 560px;
  margin: auto;
  display: flex;
  flex-direction: column;
  min-height: min(640px, 100%);
}

/* ---------- header ---------- */

.wq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--wq-border);
}
.wq-wordmark {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--wq-heading);
}
.wq-tagline { font-size: 12px; color: var(--wq-subtle); }
.wq-close {
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--wq-subtle);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--wq-radius-control);
}
.wq-close:hover { color: var(--wq-strong); }
.wq--inline .wq-close { display: none; }

/* ---------- progress ---------- */

.wq-progress { display: flex; gap: 4px; padding: 16px 20px 0; }
.wq-seg {
  flex: 1;
  height: 2px;
  background: color-mix(in srgb, var(--wq-slate) 50%, transparent);
  transition: background 0.25s;
}
.wq-seg.is-done { background: var(--wq-slate); }

/* ---------- body ---------- */

.wq-body { padding: 24px 20px 32px; flex: 1; display: flex; flex-direction: column; }
.wq-body--center { justify-content: center; }

/* Each step moves focus to its heading so the change is announced. The heading
   is not interactive, so the focus ring would read as a stray blue box. */
.wq-q:focus { outline: none; }

.wq-eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wq-rust);
  margin: 0 0 12px;
  font-weight: 500;
}
.wq-q {
  font-family: var(--wq-serif);
  font-weight: 400;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--wq-heading);
  margin: 0 0 8px;
}
.wq-help { font-size: 14px; color: var(--wq-subtle); margin: 0 0 20px; }
.wq-q + .wq-opts, .wq-q + .wq-form { margin-top: 20px; }

/* ---------- options ---------- */

.wq-opts { display: flex; flex-direction: column; gap: 8px; }
.wq-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 15px;
  color: var(--wq-ink);
  background: var(--wq-option);
  border: 1px solid var(--wq-border);
  border-radius: var(--wq-radius-control);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.wq-opt:hover { border-color: var(--wq-slate); background: var(--wq-paper); }
.wq-opt[aria-checked="true"] { border-color: var(--wq-rust); background: var(--wq-paper); }
.wq-opt:focus-visible { outline: 2px solid var(--wq-rust); outline-offset: 2px; }

/* Multi-select gets a visible box; single-select advances on click and needs none. */
.wq-box {
  width: 18px; height: 18px; flex: none;
  border: 1px solid var(--wq-slate);
  border-radius: 3px;
  background: var(--wq-white);
  position: relative;
}
.wq-opt[aria-checked="true"] .wq-box { background: var(--wq-rust); border-color: var(--wq-rust); }
.wq-opt[aria-checked="true"] .wq-box::after {
  content: "";
  position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--wq-paper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- contact form ---------- */

.wq-form { display: flex; flex-direction: column; gap: 14px; }
.wq-field { display: flex; flex-direction: column; gap: 6px; }
.wq-label { font-size: 13px; color: var(--wq-ink); }
.wq-input, .wq-select {
  font: inherit;
  font-size: 15px;
  width: 100%;
  background: var(--wq-input);
  border: 1px solid var(--wq-slate);
  border-radius: var(--wq-radius-control);
  padding: 11px 14px;
  color: var(--wq-strong);
}
.wq-select { padding: 10px 14px; }
.wq-input::placeholder { color: var(--wq-placeholder); }
.wq-input:focus, .wq-select:focus { outline: 2px solid var(--wq-rust); outline-offset: 1px; }
.wq-input[aria-invalid="true"] { border-color: #f23a29; }
.wq-error { font-size: 13px; color: #f23a29; margin: 0; }
.wq-row { display: flex; gap: 12px; }
.wq-row > * { flex: 1; }

/* ---------- buttons ---------- */

.wq-cta {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  background: var(--wq-rust);
  color: var(--wq-paper);
  border: 0;
  border-radius: var(--wq-radius-card);
  padding: 14px 28px;
  cursor: pointer;
  width: 100%;
}
.wq-cta:hover { background: var(--wq-rust-hover); }
.wq-cta:active { background: var(--wq-rust-pressed); }
.wq-cta:disabled { background: var(--wq-border); cursor: not-allowed; }
.wq-cta:focus-visible { outline: 2px solid var(--wq-strong); outline-offset: 2px; }

.wq-back {
  background: none; border: 0; font: inherit; font-size: 13px;
  color: var(--wq-placeholder);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: 24px;
  align-self: flex-start;
}
.wq-back:hover { color: var(--wq-strong); }

/* ---------- intro ---------- */

.wq-intro { text-align: center; }
.wq-intro .wq-q { font-size: clamp(28px, 6vw, 40px); }
.wq-lede { font-size: 15px; color: var(--wq-subtle); max-width: 40ch; margin: 0 auto 28px; }
.wq-intro .wq-cta { width: auto; }

/* ---------- result card ----------
 * Isaac (Slack, 2026-08-07) overrides section 2 of the doc: show the multi-
 * compound preview on screen, then email the full breakdown via Customer.io.
 */

.wq-result { background: var(--wq-paper); border: 1px solid var(--wq-charcoal); border-radius: var(--wq-radius-card); }
.wq-result-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--wq-charcoal);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wq-rust);
}
.wq-item { padding: 16px; }
.wq-item + .wq-item { border-top: 1px dashed var(--wq-border); }
.wq-item-name { font-size: 16px; font-weight: 600; color: var(--wq-strong); }
.wq-item-format { font-size: 12px; font-weight: 400; color: var(--wq-subtle); }
.wq-item-why { font-size: 14px; color: var(--wq-ink); margin: 6px 0 0; }
.wq-result-foot {
  border-top: 1px solid var(--wq-charcoal);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--wq-ink);
}
.wq-note {
  font-size: 13px;
  color: var(--wq-ink);
  background: var(--wq-option);
  border-left: 3px solid var(--wq-rust);
  padding: 12px 14px;
  margin: 16px 0 0;
  border-radius: 0 var(--wq-radius-control) var(--wq-radius-control) 0;
}
.wq-disclaimer { font-size: 12px; line-height: 1.5; color: var(--wq-subtle); margin: 20px 0; text-align: center; }

/* Respect a user's reduced-motion setting -- the only transitions here are
   colour fades, so this simply turns them off. */
@media (prefers-reduced-motion: reduce) {
  .wq * { transition: none !important; }
}

@media (max-width: 480px) {
  .wq--modal { padding: 0; }
  .wq-card { max-width: none; border-radius: 0; min-height: 100%; }
  .wq--inline { padding: 20px 12px; }
}
