/* Doctor offer quiz (/oferta). Colours follow the iClear Brand Guidelines 2026 (p. 20). */
:root {
  --navy: #051c2c;
  --navy-2: #072b49;
  --sapphire: #003a5d;
  --sapphire-2: #096293;
  --sapphire-3: #0d87bc;
  --sky: #0dabd6;
  --ice: #ceecf4;
  --teal: #007da5;
  --teal-2: #1baacc;
  --aqua: #63c4ce;
  --aqua-2: #a4f0f4;
  --mint: #dde8e8;
  --paper: #f6f6f6;
  --ink: #051c2c;
  --ink-soft: #4b6475;
  --line: #d9e3ea;
  --danger: #d6363c;
  --font-display: 'Stabil Grotesk', 'General Sans', 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  font-family: var(--font-display);
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
  min-width: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

[hidden] {
  display: none !important;
}

/* Font Awesome icons as inline SVG (components/fa.tsx) */
.fa {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1em;
  vertical-align: -0.125em;
  overflow: visible;
}

.oq-spin {
  animation: oq-spin 1s linear infinite;
}

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

/* ------------------------------------------------------------------ */
/* Page shell                                                          */
/* ------------------------------------------------------------------ */

.oq-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow-x: clip;
  background:
    radial-gradient(70vmax 55vmax at 100% 110%, rgba(9, 98, 147, 0.75), transparent 62%),
    radial-gradient(50vmax 40vmax at -10% -10%, rgba(7, 43, 73, 0.9), transparent 70%),
    linear-gradient(165deg, var(--navy) 0%, #06253d 55%, #0a3556 100%);
}

.oq-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.oq-bg__mark {
  position: absolute;
  left: -12vmin;
  bottom: -14vmin;
  width: 62vmin;
  color: var(--teal-2);
  opacity: 0.06;
  transform: rotate(-14deg);
}

.oq-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(27, 170, 204, 0.55), rgba(9, 98, 147, 0.38) 60%, rgba(9, 98, 147, 0.18));
  animation: oq-float 9s ease-in-out infinite alternate;
}

.oq-bubble--1 { width: 64px; height: 64px; right: 8%; bottom: 66%; animation-delay: -1s; }
.oq-bubble--2 { width: 76px; height: 76px; right: 3%; bottom: 46%; animation-delay: -3s; }
.oq-bubble--3 { width: 64px; height: 64px; right: 21%; bottom: 40%; animation-delay: -5s; }
.oq-bubble--4 { width: 76px; height: 76px; right: 15%; bottom: 26%; animation-delay: -2s; }
.oq-bubble--5 { width: 84px; height: 84px; right: 7%; bottom: 20%; animation-delay: -6s; }
.oq-bubble--6 { width: 84px; height: 84px; right: -1%; bottom: 30%; animation-delay: -4s; opacity: 0.8; }
.oq-bubble--7 { width: 66px; height: 66px; right: 27%; bottom: 8%; animation-delay: -7s; }
.oq-bubble--8 { width: 76px; height: 76px; right: 19%; bottom: 3%; animation-delay: -8s; }
.oq-bubble--9 { width: 84px; height: 84px; right: 9%; bottom: -3%; animation-delay: -2.5s; }

@keyframes oq-float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-10px, -18px, 0); }
}

.oq-top,
.oq-main,
.oq-foot {
  position: relative;
  z-index: 1;
}

.oq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3vw, 28px) var(--gutter);
}

.oq-top__logo {
  display: inline-flex;
  border-radius: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo__mark {
  width: clamp(34px, 3.2vw, 44px);
  height: auto;
  color: var(--teal-2);
}

.logo__word {
  height: clamp(24px, 2.2vw, 31px);
  width: auto;
  color: #fff;
}

.oq-top__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.oq-top__badge .fa {
  color: var(--aqua);
}

.oq-main {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) var(--gutter) clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.oq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(13, 171, 214, 0.12);
  border: 1px solid rgba(13, 171, 214, 0.35);
  color: var(--aqua-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.oq-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 0 rgba(99, 196, 206, 0.7);
  animation: oq-pulse 1.8s infinite;
}

@keyframes oq-pulse {
  70% { box-shadow: 0 0 0 10px rgba(99, 196, 206, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 196, 206, 0); }
}

.oq-hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 3.7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.oq-hero h1 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--aqua-2), var(--sky) 55%, var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.oq-hero__lead {
  margin: 20px 0 0;
  max-width: 36ch;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  color: rgba(255, 255, 255, 0.76);
}

.oq-perks {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 440px;
}

.oq-perks li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(6px);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.oq-perks strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.oq-perks__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sapphire-2), var(--teal-2));
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(13, 171, 214, 0.7);
}

/* ------------------------------------------------------------------ */
/* Card                                                                */
/* ------------------------------------------------------------------ */

.oq-card {
  position: relative;
  scroll-margin-top: 12px;
  background: #fff;
  border-radius: 28px;
  padding: clamp(20px, 3.4vw, 38px);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.oq-progress {
  margin-bottom: 26px;
}

.oq-progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sapphire);
}

.oq-progress__time {
  color: var(--ink-soft);
  font-weight: 500;
}

.oq-progress__bar {
  height: 8px;
  border-radius: 999px;
  background: #e7eef3;
  overflow: hidden;
}

.oq-progress__bar span {
  position: relative;
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sapphire), var(--sapphire-3) 60%, var(--teal-2));
  transition: width 0.6s var(--ease);
  overflow: hidden;
}

.oq-progress__bar span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: oq-shine 2.4s 0.6s infinite;
}

@keyframes oq-shine {
  60%, 100% { transform: translateX(100%); }
}

/* Step transitions */
.oq-step,
.oq-end {
  animation: oq-in 0.5s var(--ease) both;
}

.oq-card[data-dir='back'] .oq-step {
  --from: -28px;
}

@keyframes oq-in {
  from {
    opacity: 0;
    transform: translateX(var(--from, 28px));
  }
}

.oq-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.oq-head__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sapphire), var(--sapphire-3) 60%, var(--teal-2));
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 12px 24px -10px rgba(13, 135, 188, 0.8);
}

.oq-head h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
  outline: none;
  text-wrap: balance;
}

.oq-head p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.oq-wave {
  display: inline-block;
  transform-origin: 70% 80%;
  animation: oq-wave 2.4s ease-in-out 0.4s infinite;
}

@keyframes oq-wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(16deg); }
  20%, 40% { transform: rotate(-8deg); }
}

legend {
  padding: 0;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--navy);
}

.oq-req {
  color: var(--danger);
}

/* Choice cards */
.oq-choices {
  display: grid;
  gap: 12px;
}

.oq-choices--grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 10px;
}

.oq-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 64px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.2s,
    box-shadow 0.25s,
    transform 0.25s var(--ease),
    background 0.2s;
}

@media (hover: hover) {
  .oq-choice:hover,
  .oq-case:hover {
    border-color: var(--sapphire-3);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -16px rgba(0, 58, 93, 0.55);
  }

  .oq-btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -14px rgba(0, 58, 93, 0.95);
  }

  .oq-btn--primary:hover:not(:disabled) .fa:not(.oq-spin) {
    transform: translateX(4px);
  }

  .oq-btn--ghost:hover:not(:disabled) {
    border-color: var(--sapphire-3);
  }
}

.oq-choice,
.oq-case,
.oq-btn,
.oq-consent {
  touch-action: manipulation;
}

.oq-choice:active {
  transform: scale(0.985);
}

.oq-choice:has(input:focus-visible),
.oq-case:has(input:focus-visible) {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.oq-choice.is-checked {
  border-color: var(--sapphire-3);
  background: linear-gradient(180deg, #f3fafd, #e7f5fb);
  box-shadow: 0 0 0 4px rgba(13, 135, 188, 0.14);
}

.oq-choice__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #edf5f9;
  color: var(--sapphire);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  transition:
    background 0.25s,
    color 0.25s;
}

.oq-choice.is-checked .oq-choice__icon {
  background: linear-gradient(135deg, var(--sapphire), var(--sapphire-3));
  color: #fff;
}

.oq-choice__mark {
  width: 26px;
  height: auto;
}

.oq-choice__label {
  flex: 1;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

.oq-choice__label small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.oq-choice__tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #c5d3dd;
  color: #fff;
  font-size: 0.7rem;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.oq-choice__tick .fa {
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}

.oq-choice.is-checked .oq-choice__tick {
  background: var(--sapphire-3);
  border-color: var(--sapphire-3);
}

.oq-choice.is-checked .oq-choice__tick .fa {
  transform: scale(1);
}

.oq-choice--compact {
  min-height: 58px;
  padding: 10px 12px;
  gap: 12px;
  border-radius: 16px;
}

.oq-choice--compact .oq-choice__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 0.95rem;
}

.oq-choice--compact .oq-choice__label {
  font-size: 0.94rem;
}

/* Monthly cases: signal-style volume tiles */
.oq-cases {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.oq-case {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 6px 12px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.2;
  color: var(--navy);
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.2s,
    box-shadow 0.25s,
    transform 0.25s var(--ease),
    background 0.2s;
}


.oq-case.is-checked {
  border-color: var(--sapphire-3);
  background: linear-gradient(180deg, #f3fafd, #e7f5fb);
  box-shadow: 0 0 0 4px rgba(13, 135, 188, 0.14);
}

.oq-case strong {
  font-size: 0.95rem;
  white-space: nowrap;
}

.oq-case small {
  margin-top: -8px;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.oq-case__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.oq-case__bars span {
  width: 5px;
  border-radius: 3px;
  background: #dbe5ec;
  transition: background 0.3s;
}

.oq-case__bars span:nth-child(1) { height: 6px; }
.oq-case__bars span:nth-child(2) { height: 10px; }
.oq-case__bars span:nth-child(3) { height: 15px; }
.oq-case__bars span:nth-child(4) { height: 19px; }
.oq-case__bars span:nth-child(5) { height: 24px; }

.oq-case__bars .on {
  background: var(--aqua);
}

.oq-case.is-checked .oq-case__bars .on {
  background: var(--sapphire-3);
}

/* Text fields */
.oq-field {
  margin-bottom: 16px;
}

.oq-field--inline {
  margin: 12px 0 0;
}

.oq-field > label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--navy);
}

.oq-input {
  position: relative;
}

.oq-input > .fa {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7d93a3;
  pointer-events: none;
  transition: color 0.2s;
}


.oq-input input {
  width: 100%;
  padding: 15px 16px 15px 46px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #f6f9fb;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS from zooming into the field */
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.oq-input input::placeholder {
  color: #9aaab6;
}

.oq-input input:focus {
  outline: none;
  border-color: var(--sapphire-3);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 135, 188, 0.15);
}

.oq-input:focus-within > .fa {
  color: var(--sapphire-3);
}

.oq-input--phone:focus-within > .fa {
  color: #1faa59;
}

/* Phone: country code picker + number in one field. The native select is invisible on top of the flag + code it shows. */
.oq-dial {
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  width: 112px;
  height: 36px;
  border-right: 1.5px solid var(--line);
}

.oq-dial__show {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 6px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
}

.oq-dial__show img {
  flex: none;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(5, 28, 44, 0.12);
}

.oq-dial__show::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: -3px 0 0 auto;
  border-right: 2px solid #7d93a3;
  border-bottom: 2px solid #7d93a3;
  transform: rotate(45deg);
}

.oq-dial select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  font-size: 16px; /* no iOS zoom */
  cursor: pointer;
}

.oq-dial:has(select:focus-visible) {
  outline: 2px solid var(--sky);
  border-radius: 6px;
}

.oq-input--phone input {
  padding-left: 160px;
}

.is-invalid .oq-input input {
  border-color: var(--danger);
  background: #fff8f8;
}

.oq-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: start;
  margin: 6px 0 4px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.oq-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--sapphire-3);
  cursor: pointer;
}

.oq-consent label {
  cursor: pointer;
}

.oq-consent a {
  color: var(--sapphire-3);
  font-weight: 600;
}

.oq-consent .oq-err {
  grid-column: 2;
}

.oq-err {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 0.87rem;
  font-weight: 500;
  animation: oq-shake 0.4s;
}

@keyframes oq-shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.oq-alert {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f1;
  color: #a5262b;
  font-size: 0.92rem;
  font-weight: 500;
}

.cf-turnstile {
  margin-top: 14px;
}

/* Buttons */
.oq-nav {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.oq-nav--center {
  justify-content: center;
  flex-wrap: wrap;
}

.oq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 24px;
  white-space: nowrap;
  border-radius: 14px;
  border: 0;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.25s,
    background 0.2s,
    border-color 0.2s;
}

.oq-btn:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.oq-btn:disabled {
  cursor: progress;
  opacity: 0.75;
}

.oq-btn--primary {
  flex: 1;
  color: #fff;
  background: linear-gradient(120deg, #0b6496, var(--sapphire) 70%);
  box-shadow: 0 14px 28px -14px rgba(0, 58, 93, 0.9);
}

.oq-nav--center .oq-btn--primary,
.oq-end > .oq-btn--primary {
  flex: none;
}

.oq-btn--primary .fa {
  transition: transform 0.25s var(--ease);
}

.oq-btn--ghost {
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--line);
}


.oq-trust {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.oq-trust .fa {
  color: var(--teal);
  margin-right: 4px;
}

/* End screens */
.oq-end {
  text-align: center;
  padding: 8px 0 4px;
}

.oq-end h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
  outline: none;
}

.oq-end p {
  margin: 10px auto 0;
  max-width: 42ch;
  color: var(--ink-soft);
}

.oq-end p strong {
  color: var(--navy);
}

.oq-end__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sapphire), var(--sapphire-3) 60%, var(--teal-2));
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 0 0 10px rgba(13, 135, 188, 0.12);
  animation: oq-pop 0.6s var(--ease) both;
}

.oq-end__icon--soft {
  background: linear-gradient(135deg, var(--teal), var(--aqua));
}

.oq-end__icon > .fa {
  animation: oq-pop 0.5s 0.25s var(--ease) both;
}

@keyframes oq-pop {
  from { transform: scale(0.3); opacity: 0; }
}

/* Logomark-style dots bursting out of the success badge */
.oq-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 50%;
  background: var(--teal-2);
  opacity: 0;
  animation: oq-burst 1s 0.3s var(--ease) both;
}

.oq-burst:nth-child(odd) {
  background: var(--sapphire-2);
  width: 7px;
  height: 7px;
  margin: -3.5px;
}

@keyframes oq-burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-78px) scale(0.4); }
}

.oq-next {
  list-style: none;
  margin: 22px auto 24px;
  padding: 0;
  max-width: 400px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.oq-next li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f1f7fa;
  font-size: 0.92rem;
  color: var(--navy);
}

.oq-next .fa {
  color: var(--sapphire-3);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.oq-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 18px var(--gutter) max(18px, env(safe-area-inset-bottom));
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.oq-foot__by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.oq-foot__by strong {
  color: #fff;
}

.oq-foot__mark {
  width: 20px;
  color: var(--teal-2);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 960px) {
  .oq-main {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
    gap: 24px;
    align-items: start;
  }

  .oq-hero__lead {
    max-width: none;
  }

  .oq-perks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    gap: 10px;
    margin-top: 22px;
  }

  .oq-perks li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    font-size: 0.82rem;
  }

  .oq-perks strong {
    font-size: 0.9rem;
  }

  /* Once the quiz has started, the hero shrinks so the question stays in view. */
  .oq-main:has(.oq-card:not([data-step='0'])) :is(.oq-hero__lead, .oq-perks, .oq-eyebrow) {
    display: none;
  }

  .oq-main:has(.oq-card:not([data-step='0'])) .oq-hero h1 {
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  }

  .oq-bubble {
    opacity: 0.45;
  }
}

@media (max-width: 600px) {
  .oq-top__badge {
    font-size: 0.78rem;
    padding: 7px 11px;
  }

  /* Phones: keep the first question above the fold (the timer is already in the progress bar). */
  .oq-perks {
    display: none;
  }

  .oq-eyebrow {
    margin-bottom: 14px;
    font-size: 0.72rem;
  }

  .oq-hero h1 {
    font-size: clamp(1.9rem, 1.2rem + 3.6vw, 2.4rem);
  }

  .oq-hero__lead {
    margin-top: 12px;
    font-size: 0.98rem;
  }

  .oq-main {
    gap: 20px;
  }

  .oq-card {
    border-radius: 22px;
  }

  .oq-head {
    gap: 12px;
  }

  .oq-head__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 1.05rem;
  }

  .oq-cases {
    gap: 6px;
  }

  .oq-case {
    padding: 12px 2px 10px;
    border-radius: 14px;
  }

  .oq-case strong {
    font-size: 0.85rem;
  }

  .oq-choices--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .oq-choice--compact {
    gap: 8px;
    padding: 8px 10px;
  }

  .oq-choice--compact .oq-choice__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.85rem;
  }

  .oq-choice--compact .oq-choice__label {
    font-size: 0.86rem;
  }

  .oq-choice--compact .oq-choice__tick {
    display: none;
  }

  /* Buttons stay under the thumb while a long step scrolls. */
  .oq-nav:not(.oq-nav--center) {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 18px calc(-1 * clamp(20px, 3.4vw, 38px)) 0;
    padding: 12px clamp(20px, 3.4vw, 38px) max(12px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 -12px 20px -16px rgba(5, 28, 44, 0.35);
  }

  /* Back becomes an arrow-only button so the main action keeps one line. */
  .oq-nav .oq-btn--ghost {
    flex: none;
    width: 54px;
    padding: 0;
  }

  .oq-hide-sm {
    display: none;
  }

  .oq-btn {
    padding-inline: 18px;
  }

  .oq-bubble {
    animation: none;
  }

  .oq-foot {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .oq-top__badge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
