/* MOVA V9.1 – styles */
:root{ --ocean-top:#f6fbff; --ocean-bottom:#eaf6ff; }
*{ box-sizing:border-box; }
body{ margin:0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color:#0b1733; }
.topbar{ display:flex; align-items:center; justify-content:flex-start; padding:16px 24px; }
.logo{ font-weight:800; text-decoration:none; color:#0b1733; text-transform:lowercase; letter-spacing:.5px; }
.container{ max-width:860px; margin:0 auto; padding:12px; }
.card{ background:#fff; border-radius:18px; box-shadow:0 20px 60px rgba(5,24,70,.08), 0 2px 8px rgba(5,24,70,.06); padding:28px; margin:14px; }
.question{ font-size:28px; margin:8px 0 14px; }
.sub{ color:#4b5b7a; margin:12px 0 6px; }
.sub.err{ color:#b00020; }
.center{ text-align:center; }
.answers{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:16px 0 8px; }
.recap{ list-style:none; padding:0; margin:10px 0 2px; display:grid; gap:8px; }
.recap li{ background:#f6f9ff; border:1px solid #e3edff; padding:10px 12px; border-radius:10px; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:14px 16px; border-radius:12px; border:1px solid #dde6f5; background:#fff; cursor:pointer; font-weight:600; color:#0b1733; }
.btn:hover{ border-color:#cfdaf0; background:#f7fbff; }
.btn--primary{ background:#0a3a8a; color:#fff; border-color:#0a3a8a; }
.btn--primary:hover{ filter:brightness(1.05); }
.btn--ghost{ background:transparent; border-color:transparent; color:#2c4b8a; }
.btn--ghost:hover{ background:#f3f7ff; border-color:#e7efff; }
.row{ margin:10px 0; }
.row.two{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
input{ width:100%; padding:12px 12px; border-radius:10px; border:1px solid #d7e3f8; font-size:16px; }
.navs{ display:flex; justify-content:space-between; margin-top:12px; }

/* Dots */
.dots{ display:flex; gap:10px; align-items:center; justify-content:center; padding:6px 0 14px; }
.dots > span{ width:8px; height:8px; border-radius:999px; background:rgba(0,0,0,0.25); transition:transform .22s ease, background .22s ease; }
.dots > span.is-active{ background:rgba(0,0,0,0.85); transform:scale(1.6); }

/* Base gradient fallback (JS will override inline for deepening effect) */
body.ocean-bg{
  min-height:100vh;
  background:
    radial-gradient(1200px 700px at 50% 120%, rgba(0,45,120,0.15) 0%, rgba(0,45,120,0.0) 60%),
    linear-gradient(180deg, var(--ocean-top) 0%, var(--ocean-bottom) 100%);
  transition: background 1000ms ease-in-out;
}

/* Loading */
.loadingWrap{ display:flex; flex-direction:column; align-items:center; gap:14px; padding:12px 0; }
.ring{ transform:rotate(-90deg); }
.ring-bg{ stroke:rgba(10,30,80,0.15); }
.ring-fg{ stroke:#0a3a8a; stroke-dasharray:264; stroke-dashoffset:264; transition:stroke-dashoffset 120ms linear; }
.pulse{ animation:pulse 1.2s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{ transform:scale(1);} 50%{ transform:scale(1.04);} }
.bounce{ animation:bounce 1.6s ease-in-out infinite; }
@keyframes bounce{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-4px);} }
.fadePhrase{ animation:fadePhrase 1.2s ease-in-out infinite; }
@keyframes fadePhrase{ 0%,100%{ opacity:.8;} 50%{ opacity:1;} }

/* --- Aura effect for loading ring --- */
.ring-wrap.aura{
  /* add a gentle glowing halo around the ring */
  animation: auraPulse 2s ease-in-out infinite;
  border-radius:50%;
  /* initial subtle shadow */
  box-shadow: 0 0 0px 0px rgba(0,75,160,0.35);
}
@keyframes auraPulse{
  0%,100%{ box-shadow: 0 0 0px 0px rgba(0,75,160,0.35); }
  50%    { box-shadow: 0 0 20px 8px rgba(0,75,160,0.6); }
}

/* --- Mid-loading prompt overlay --- */
/* Position the overlay relative to the fake loading step */
#fakeLoadingStep{
  position: relative;
}
.mid-prompt{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.6);
  backdrop-filter:blur(6px);
  z-index:5;
}
.mid-prompt.hidden{
  display:none;
}
.mid-card{
  background:#ffffff;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(5,24,70,0.12);
  padding:24px 28px;
  text-align:center;
  max-width:420px;
}
.mid-card .mid-question{
  font-size:20px;
  font-weight:700;
  margin:0 0 20px;
}
.mid-actions{
  display:flex;
  gap:14px;
  justify-content:center;
}

/* Step appear */
.step-card.show{ animation:fadeSlide .25s ease-out; }
@keyframes fadeSlide{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:translateY(0);} }
@media (prefers-reduced-motion: reduce){
  .step-card.show{ animation:none; }
  .pulse,.bounce,.fadePhrase{ animation:none; }
}

.logo{font-size:48px;}

/* --- Larger, square QCM cards --- */
.answers{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 1fr; gap:14px; }
.answer{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-height:120px; border-radius:16px; border:1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08); backdrop-filter: blur(6px);
  padding:16px; text-align:center; cursor:pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.answer:hover{ transform: translateY(-2px); background: rgba(255,255,255,0.12); }
/* Ensure answer text remains legible on hover */
.answer:hover .ans-label,
.answer:hover .ans-emoji{
  color:#0b1733;
}

/* Success halo (green glow) applied when a choice or form submission is valid */
.success{
  position:relative;
  box-shadow:0 0 0 3px rgba(0,255,150,0.5),0 0 8px rgba(0,255,150,0.4),0 0 12px rgba(0,255,150,0.3);
  transition:box-shadow 0.2s ease-in-out;
}

/* Error state: red neon border with shake animation */
.error{
  position:relative;
  box-shadow:0 0 0 3px rgba(255,60,60,0.5),0 0 8px rgba(255,60,60,0.4),0 0 12px rgba(255,60,60,0.3);
  animation:shake 0.4s ease-in-out;
}

@keyframes shake{
  0%,100%{ transform:translateX(0); }
  20%{ transform:translateX(-4px); }
  40%{ transform:translateX(4px); }
  60%{ transform:translateX(-4px); }
  80%{ transform:translateX(4px); }
}
.answer:focus-visible{ outline: 2px solid rgba(255,255,255,0.9); outline-offset:2px; }
.answer .ans-emoji{ font-size:36px; line-height:1; display:block; margin-bottom:8px; }
.answer .ans-label{ font-size:18px; font-weight:600; letter-spacing:.2px; }
.answer.is-selected{ border-color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.16); transform: translateY(-1px); }
@media (min-width: 640px){ .answers{ gap:16px; } .answer{ min-height:140px; } .answer .ans-emoji{ font-size:42px; } .answer .ans-label{ font-size:20px; } }

/* --- Hero section --- */
.hero-section{
  text-align:center;
  margin-top:40px;
  margin-bottom:40px;
  padding:20px 16px;
}
.hero-title{
  font-size:36px;
  line-height:1.2;
  font-weight:800;
  margin:0 0 16px;
}
.hero-title .accent a{
  color:#0a3a8a;
  text-decoration:none;
}
.hero-title .accent a:hover{
  text-decoration:underline;
}
.hero-sub{
  font-size:16px;
  color:#4b5b7a;
  margin:0 0 24px;
}
.hero-start{
  padding:14px 20px;
  font-size:16px;
}

/* --- Paywall plans --- */
.plans{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:20px;
  justify-content:center;
}
.plan{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:24px 20px;
  width:280px;
  text-align:center;
  box-shadow:0 6px 20px rgba(5,24,70,0.05);
  position:relative;
}
.plan h3{
  margin:0 0 8px;
  font-size:20px;
  font-weight:700;
}
.plan p{
  margin:0 0 16px;
  font-size:15px;
  color:#4b5b7a;
}
.plan .btn{
  width:100%;
}
.plan.recommended{
  border-color:#0a3a8a;
}
.plan.recommended .btn{
  background:#0a3a8a;
  color:#fff;
  border-color:#0a3a8a;
}
.plan .badge{
  position:absolute;
  top:-10px;
  right:-10px;
  background:#0a3a8a;
  color:#ffffff;
  padding:4px 8px;
  border-radius:12px;
  font-size:12px;
  font-weight:600;
}
