/* Vetrinex Quiz — design language matched to the ClickFunnels checkout.
   Fonts: Bitter (serif headlines) + Figtree (sans body).
   Palette: navy / coral / gold / green on a soft off-white page.
   created_by: claude-code · date_created: 2026-06-20 · session: quiz-frontend-restyle */

:root {
  /* Brand */
  --navy:#19265f;        --navy-dark:#131c47;
  --coral:#ec6a5e;       --coral-dark:#df5749;   --coral-press:#d83a3a;
  --gold:#e6c463;        --gold-deep:#b7892a;
  --cream-1:#fdf0c8;     --cream-2:#fbe6a6;
  --green:#1aa06a;       --green-dark:#0f8a59;

  /* Neutrals */
  --ink:#23252f;         --muted:#6c6f7e;        --muted-2:#8d909e;
  --bg:#f6f7fb;          --surface:#ffffff;      --surface-2:#eef0f7;
  --line:#dde1ee;

  /* Type */
  --font-sans:'Figtree', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif:'Bitter', Georgia, "Times New Roman", serif;

  /* Shape */
  --radius-card:20px; --radius-btn:16px; --radius-input:14px; --radius-pill:999px;

  /* Elevation */
  --shadow-card:0 8px 24px -14px rgba(20,28,71,.45);
  --shadow-pop:0 18px 40px -18px rgba(20,28,71,.55);
  --shadow-cta:0 12px 26px -10px rgba(236,106,94,.6);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

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

body {
  margin:0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

/* ── Brand bar ─────────────────────────────────────────── */
.topbar {
  background: linear-gradient(180deg, var(--navy), var(--navy-dark));
  padding: 14px 20px;
  text-align: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ── Progress ──────────────────────────────────────────── */
.progress { height: 4px; background: var(--surface-2); flex-shrink: 0; }
.progress-fill {
  height:100%;
  background: linear-gradient(90deg, var(--coral), var(--coral-dark));
  transition: width .45s cubic-bezier(.4,0,.2,1);
}

/* ── Quiz main area — fills remaining viewport ─────────── */
#quiz {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

/* ── Screen — no card, content centred in the space ───── */
.screen {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: screen-in .3s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes screen-in {
  from { opacity:0; transform: translateY(14px); }
  to   { opacity:1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .progress-fill { transition: none; }
}

/* ── Nav sits at the bottom, not floating mid-page ─────── */
.nav {
  flex-shrink: 0;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 20px 24px;
}

.hero { width:100%; border-radius:14px; object-fit:cover; display:block; }

/* ── First-screen headline ─────────────────────────────── */
.headline {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--navy);
  margin: 4px 0 0;
}
.subhead, .transition, .lead-in {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

/* ── Education / insight band ──────────────────────────── */
.education-band {
  background: linear-gradient(170deg, var(--cream-1), var(--cream-2));
  border-left: 4px solid var(--gold-deep);
  padding: 13px 15px;
  border-radius: 12px;
  font-size: .95rem;
  color: #5c4715;
}

/* ── Prompt (the question) ─────────────────────────────── */
.prompt {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 2px 0 0;
}
.prompt b, .prompt strong { color: var(--coral-dark); }

.why {
  color: var(--muted-2);
  cursor: help;
  position: relative;
  font-size: .7em;
  vertical-align: super;
}
.why:focus-visible { outline: 2px solid var(--navy); border-radius: 4px; }
.why-tip {
  display:none; position:absolute; left:0; top:1.6em; width:240px;
  background: var(--navy-dark); color:#fff; padding:10px 12px;
  border-radius:10px; font-size:.8rem; line-height:1.4; font-weight:400;
  box-shadow: var(--shadow-pop); z-index:5;
}
.why:hover .why-tip, .why:focus .why-tip { display:block; }

/* whyWeAsk shown inline (whyWeAskInline: true) — visible rationale, no tap needed. */
.why-inline {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
  margin: 6px 0 0;
}

/* ── Multi-select hint ─────────────────────────────────── */
.multi-hint {
  margin: 0 0 4px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Options ───────────────────────────────────────────── */
.options { display:flex; flex-direction:column; gap:12px; }
.option {
  text-align:left;
  padding: 18px 22px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .08s, box-shadow .15s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.option::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  transition: border-color .15s, background .15s;
}
.option:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 18px -8px rgba(20,28,71,.35);
}
.option:hover::before { border-color: var(--navy); }
.option:active { transform: scale(.99); }
.option--on {
  border-color: var(--navy);
  background: #f0f2fa;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--navy);
}
.option--on::before {
  background: var(--navy);
  border-color: var(--navy);
}

/* ── Rating (1–5) — Typeform-style full-width rows ─────── */
.rating { display:flex; flex-direction:column; gap:10px; }
.rating-row { display:flex; gap:10px; }
.rating-btn {
  flex: 1;
  padding: 18px 8px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .08s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.rating-btn:hover {
  border-color: var(--navy);
  background: var(--surface-2);
  box-shadow: 0 4px 14px -8px rgba(20,28,71,.3);
}
.rating-btn:active { transform: scale(.97); }
.rating-btn--on {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px -6px rgba(20,28,71,.5);
}
.rating-btn .rating-sublabel {
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 500;
  opacity: .7;
  letter-spacing: .02em;
}
.rating-labels { display:flex; justify-content:space-between; color:var(--muted); font-size:.82rem; }

/* ── Text / email ──────────────────────────────────────── */
.text-field, .text-input { width:100%; }
.text-input {
  padding:15px 16px;
  border:1.5px solid var(--line);
  border-radius: var(--radius-input);
  font-family: var(--font-sans);
  font-size:1.02rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.text-input::placeholder { color: var(--muted-2); }
.text-input:focus {
  outline:none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(25,38,95,.12);
}

/* ── Dropdown select ───────────────────────────────────── */
.dropdown-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c6f7e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
  margin-bottom: 12px;
}

/* ── Primary CTA (Continue) ────────────────────────────── */
.confirm {
  margin-top:6px;
  padding:17px;
  border:0;
  border-radius: var(--radius-btn);
  background: linear-gradient(180deg, var(--coral), var(--coral-dark));
  color:#fff;
  font-family: var(--font-sans);
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:.01em;
  cursor:pointer;
  width:100%;
  box-shadow: var(--shadow-cta);
  transition: filter .15s, transform .08s, box-shadow .15s;
}
.confirm:hover { filter: brightness(1.04); }
.confirm:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.confirm:active { transform: translateY(1px); box-shadow: 0 6px 16px -10px rgba(236,106,94,.6); }

/* ── Nav (back / next) ─────────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
}
.nav button {
  background:none; border:0;
  color:var(--muted);
  font-family: var(--font-sans);
  font-size:.95rem; font-weight:600;
  cursor:pointer; padding:10px 6px;
  border-radius:10px;
  transition: color .15s, background .15s;
}
.nav button:hover { color: var(--navy); background: var(--surface-2); }

/* ── Misc ──────────────────────────────────────────────── */
.error { color:#b91c1c; font-size:.9rem; font-weight:500; margin:6px 0 0; }

:focus-visible { outline:2px solid var(--navy); outline-offset:2px; }
