/* ===== Design tokens (from Claude Design handoff: Diagnostic IA.dc.html) ===== */
:root{
  --navy-deep:#26385C;
  --navy-mid:#2B3F69;
  --navy-dark:#22334F;
  --blue:#4E86B7;
  --blue-hover:#5E96C7;
  --blue-light:#8FBBE0;
  --blue-lighter:#B8D4EC;
  --cream:#F5F2EC;
  --text-body-dark:#43506B;
  --text-title-dark:#2B3F69;
  --text-sub-dark:#5A6477;
  --font-display:Montserrat,sans-serif;
  --font-body:Inter,system-ui,sans-serif;
  --max-w:520px;

  /* Session fit scale. Set ONCE per session by js/app.js (see fitToViewport):
     the landing and every question are measured at --s:1, and the whole UI is
     scaled by a single factor until the tallest of them fits the viewport.
     One factor for the whole session is the point — the type never changes
     size from one question to the next, because the fit is never redone
     per screen, only per device orientation. */
  --s:1;

  --pad-x:1.375rem;
  --safe-t:env(safe-area-inset-top,0px);
  /* max(...,12px): Android's gesture nav bar sits over the page with no
     safe-area-inset-bottom reported (that env var is effectively iOS-only in
     practice), so without a floor here content (e.g. the landing tagline)
     ends up flush against the gesture strip on phones like Samsung's. */
  --safe-b:max(env(safe-area-inset-bottom,0px),12px);
  --safe-l:env(safe-area-inset-left,0px);
  --safe-r:env(safe-area-inset-right,0px);
}

/* Everything below is sized in rem, so the single --s factor scales the whole
   UI coherently. Using % (not a px value) keeps the user's own browser
   font-size preference intact. text-size-adjust stops iOS from silently
   inflating text on rotation. */
html{
  font-size:calc(var(--s) * 100%);
  -webkit-text-size-adjust:100%;text-size-adjust:100%
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--navy-deep)}
body{
  font-family:var(--font-body);-webkit-font-smoothing:antialiased;
  overscroll-behavior-y:contain /* no pull-to-refresh / rubber-band on the fixed screens */
}
a{color:var(--blue-light)}
a:hover{color:var(--blue-lighter)}
button{font-family:inherit}
h1,h2{margin:0}
p{margin:0}

/* display:block + margin:0 override the UA defaults (inline-block, margin:2px):
   with width:100% those 2px side margins made the input 4px wider than
   .question-body and pushed a horizontal scrollbar under the Next button. */
input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;width:100%;display:block;margin:0}
input[type=range]::-webkit-slider-runnable-track{height:.5rem;border-radius:.25rem;background:rgba(255,255,255,.14)}
input[type=range]::-moz-range-track{height:.5rem;border-radius:.25rem;background:rgba(255,255,255,.14)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:1.875rem;height:1.875rem;border-radius:50%;background:var(--blue);border:3px solid var(--cream);margin-top:-.6875rem;box-shadow:0 2px 10px rgba(0,0,0,.35);cursor:pointer}
input[type=range]::-moz-range-thumb{width:1.5rem;height:1.5rem;border-radius:50%;background:var(--blue);border:3px solid var(--cream);box-shadow:0 2px 10px rgba(0,0,0,.35);cursor:pointer}

@keyframes qinA{from{opacity:0;transform:translateX(44px)}to{opacity:1;transform:none}}
@keyframes qinB{from{opacity:0;transform:translateX(-44px)}to{opacity:1;transform:none}}
@keyframes popin{from{opacity:0;transform:scale(.92) translateY(12px)}to{opacity:1;transform:none}}
@keyframes tipin{from{transform:translateY(102%)}to{transform:none}}
@keyframes fadein{from{opacity:0}to{opacity:1}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes pulse{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes riseA{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}

/* ===== App shell ===== */
/* svh (the "small" viewport — toolbars shown) everywhere, never dvh/vh:
   dvh changes as the mobile toolbar collapses and as the on-screen keyboard
   opens, which made the layout jump around mid-interaction. svh is a fixed
   number for a given device+orientation, so nothing reflows when the keyboard
   appears — the browser just scrolls the focused field into view. */
.app{
  min-height:100svh;
  padding-top:var(--safe-t);padding-bottom:var(--safe-b);
  background:linear-gradient(160deg,var(--navy-deep) 0%,var(--navy-mid) 55%,var(--navy-dark) 100%);
  display:flex;justify-content:center;position:relative;overflow-x:hidden
}
/* Landing, quiz, loading and error are one screen, no scroll. Results is the
   only screen allowed to be taller than the viewport. */
body[data-screen="landing"] .app,
body[data-screen="quiz"] .app,
body[data-screen="email"] .app,
body[data-screen="loading"] .app,
body[data-screen="error"] .app{height:100svh;overflow:hidden}

.bg-blob{position:fixed;border-radius:50%;pointer-events:none}
.bg-blob--tr{top:-260px;right:-220px;width:640px;height:640px;background:radial-gradient(circle,rgba(78,134,183,.32),rgba(78,134,183,0) 65%)}
.bg-blob--bl{bottom:-320px;left:-260px;width:700px;height:700px;background:radial-gradient(circle,rgba(78,134,183,.16),rgba(78,134,183,0) 65%)}

/* No min-height here on purpose: .app is a flex row with the default
   align-items:stretch, so .shell always fills exactly the space left by the
   safe-area insets — which is also the number #vh-probe reports to the fit
   pass. */
.shell{
  width:100%;max-width:var(--max-w);min-width:0;
  display:flex;flex-direction:column;position:relative;
  padding-left:calc(var(--pad-x) + var(--safe-l));
  padding-right:calc(var(--pad-x) + var(--safe-r));
}

.screen{display:flex;flex-direction:column;flex:1;min-height:0}

/* Height reference for the fit pass: clientHeight excludes padding, so this
   reports exactly the usable height (viewport minus notch and home indicator).
   Being svh-based, the on-screen keyboard never changes this number. */
#vh-probe{
  position:fixed;top:0;left:0;width:1px;height:100svh;box-sizing:border-box;
  padding-top:var(--safe-t);padding-bottom:var(--safe-b);
  visibility:hidden;pointer-events:none;z-index:-1
}

/* ===== Landing ===== */
.screen--landing{padding:1.25rem 2px 1.25rem;animation:fadein .5s ease both;overflow:hidden}
.landing-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-shrink:0}
.wordmark{height:2.125rem;width:auto;max-width:55%;object-fit:contain;object-position:left center}
.lang-switch{display:flex;gap:.375rem;background:rgba(255,255,255,.08);border-radius:1.375rem;padding:.25rem;flex-shrink:0}
.lang-btn{
  padding:.5rem 1rem;border:none;border-radius:1.125rem;background:transparent;color:rgba(245,242,236,.6);
  font-family:var(--font-display);font-weight:800;font-size:max(11px,.75rem);letter-spacing:.08em;cursor:pointer;
  min-height:2.25rem;touch-action:manipulation;transition:background .12s ease,color .12s ease
}
.lang-btn.is-active{background:var(--blue);color:#fff}

.landing-main{
  flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;
  padding:1rem 0 .75rem;overflow-y:auto;overscroll-behavior:contain
}
.eyebrow{
  font-family:var(--font-display);font-weight:700;font-size:max(10px,.75rem);letter-spacing:.24em;color:var(--blue-light);
  text-transform:uppercase;display:flex;align-items:center;gap:.75rem
}
.eyebrow--tight{font-size:max(10px,.6875rem)}
.eyebrow-bar{width:1.625rem;height:2px;background:var(--blue-light);display:inline-block;flex-shrink:0}

.landing-title{
  margin:.75rem 0 0;font-family:var(--font-display);font-weight:900;font-size:min(2.75rem,calc(9.2vw * var(--s)));
  line-height:1.04;color:var(--cream);text-transform:uppercase;letter-spacing:.01em
}
.landing-title .accent{color:var(--blue-light)}
.landing-promise{margin:.875rem 0 0;font-size:max(13px,1.03rem);line-height:1.5;color:rgba(245,242,236,.78);max-width:26rem}

.steps{margin-top:1.125rem;display:flex;flex-direction:column;gap:.625rem}
.step{display:flex;align-items:center;gap:.75rem;color:rgba(245,242,236,.85);font-size:max(12.5px,.90625rem)}
.step-num{
  width:1.875rem;height:1.875rem;border-radius:.5625rem;background:rgba(78,134,183,.22);display:flex;align-items:center;
  justify-content:center;flex-shrink:0;font-family:var(--font-display);font-weight:800;font-size:max(11px,.78125rem);color:var(--blue-light)
}

.fine-print{margin-top:.75rem;text-align:center;font-size:max(11px,.78125rem);color:rgba(245,242,236,.5)}
.tagline{
  flex-shrink:0;text-align:center;font-family:var(--font-display);font-weight:700;font-size:max(9px,.65625rem);letter-spacing:.26em;
  color:rgba(143,187,224,.55);text-transform:uppercase
}

/* ===== Buttons ===== */
.btn{
  border:none;border-radius:.875rem;font-family:var(--font-display);font-weight:800;letter-spacing:.08em;
  text-transform:uppercase;cursor:pointer;transition:transform .1s ease,background .15s ease;text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;touch-action:manipulation
}
.btn--block{width:100%;box-sizing:border-box}
.btn--primary{
  padding:1.0625rem;background:var(--blue);color:#fff;font-size:max(13px,.9375rem);min-height:2.75rem
}
.btn--primary:hover{background:var(--blue-hover);transform:translateY(-2px)}
.btn--primary:active{background:var(--blue-hover);transform:scale(.97)}
#btn-start{margin-top:1.25rem;flex-shrink:0}
.btn--dark{padding:1rem;background:var(--navy-mid);color:var(--cream);font-size:max(12px,.84375rem);border-radius:.8125rem}
.btn--dark:hover{background:var(--blue)}
.btn--dark:active{background:var(--blue);transform:scale(.97)}
.btn--icon{gap:.625rem}
.btn--icon svg{width:1.125rem;height:1.125rem;flex-shrink:0}
.btn--link{
  margin-top:1.5rem;align-self:center;background:none;border:none;color:var(--blue-light);font-size:max(13px,.84375rem);
  font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px;padding:.625rem;
  font-family:var(--font-body);text-transform:none;letter-spacing:normal;touch-action:manipulation
}
.btn--link:hover{color:var(--blue-lighter)}
.btn--link:active{color:var(--blue-lighter)}

.icon-btn{
  width:2.375rem;height:2.375rem;border-radius:.6875rem;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);
  color:var(--cream);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;
  touch-action:manipulation;transition:background .12s ease,transform .1s ease
}
.icon-btn:hover{background:rgba(255,255,255,.14)}
.icon-btn:active{background:rgba(255,255,255,.14);transform:scale(.93)}
.icon-btn svg{width:1.0625rem;height:1.0625rem}

/* ===== Quiz top / progress ===== */
/* The quiz is capped at one viewport: header, progress bar and the Next button
   always stay put. The fit pass in app.js sizes the session so even the longest
   question fits here without scrolling; .question-body keeps overflow-y:auto
   purely as a safety net for extremes (tiny landscape phones, very large user
   font settings). */
.screen--quiz{padding:.875rem 2px 1rem;overflow:hidden}
.quiz-top{display:flex;align-items:center;gap:.75rem;flex-shrink:0;min-width:0}
.quiz-top--results{gap:.625rem}
.quiz-logo{width:1.5rem;height:1.5rem;object-fit:contain;flex-shrink:0}
.quiz-brand{font-family:var(--font-display);font-weight:800;font-size:max(10px,.75rem);letter-spacing:.14em;color:var(--cream);text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quiz-count{margin-left:auto;font-family:var(--font-display);font-weight:700;font-size:max(11px,.78125rem);color:var(--blue-light);white-space:nowrap;flex-shrink:0}

.progress-wrap{margin:.75rem 0 1.25rem;position:relative;flex-shrink:0}
.progress-track{height:.4375rem;border-radius:.25rem;background:rgba(255,255,255,.1);overflow:hidden}
.progress-fill{height:100%;border-radius:.25rem;background:linear-gradient(90deg,var(--blue),var(--blue-light));transition:width .5s cubic-bezier(.4,0,.2,1);width:0%}
.milestones{position:absolute;inset:0;pointer-events:none}
.milestone{
  position:absolute;top:50%;transform:translate(-50%,-50%);width:1.0625rem;height:1.0625rem;border-radius:50%;
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;transition:all .35s ease;
  background:var(--navy-mid);border:2px solid rgba(255,255,255,.3)
}
.milestone.is-done{background:var(--blue-light);border-color:var(--blue-light)}
.milestone svg{width:.5625rem;height:.5625rem;transition:stroke .35s ease}
.milestone-label{
  position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:.375rem;white-space:nowrap;
  font-family:var(--font-display);font-weight:700;font-size:max(8.5px,.59375rem);letter-spacing:.08em;text-transform:uppercase;
  color:rgba(245,242,236,.4);transition:color .35s ease
}
.milestone.is-done .milestone-label{color:var(--blue-light)}

.cheer{margin-top:.375rem;min-height:1.0625rem;font-size:max(11px,.78125rem);color:var(--blue-light);font-weight:600;text-align:right;flex-shrink:0}

/* ===== Question body ===== */
.question-body{
  flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  display:flex;flex-direction:column;padding-top:.5rem;animation:qinB .28s cubic-bezier(.2,.8,.2,1) both
}
.question-body.anim-a{animation-name:qinA}
.question-body.anim-b{animation-name:qinB}

.q-theme{font-family:var(--font-display);font-weight:700;font-size:max(9.5px,.6875rem);letter-spacing:.22em;color:var(--blue-light);text-transform:uppercase;flex-shrink:0}
.q-title{margin:.5rem 0 0;font-family:var(--font-display);font-weight:800;font-size:min(1.6875rem,calc(6.2vw * var(--s)));line-height:1.16;color:var(--cream);text-transform:uppercase;letter-spacing:.01em;flex-shrink:0}
.q-sub{margin:.4375rem 0 0;font-size:max(12px,.875rem);color:rgba(245,242,236,.65);flex-shrink:0}

/* flex:1 0 auto — grow into spare space, but never shrink below the options'
   real height: shrinking would clip the centered content instead of letting
   .question-body scroll. */
.widget{flex:1 0 auto;display:flex;padding:.875rem 0}

/* choice */
.widget--choice{flex-direction:column;justify-content:center;gap:.5625rem;padding:.875rem 0}
.opt-choice{
  display:flex;align-items:center;gap:.875rem;text-align:left;padding:.8125rem 1.0625rem;border-radius:.875rem;
  border:2px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:rgba(245,242,236,.9);font-weight:600;
  font-size:max(13px,.9375rem);cursor:pointer;min-height:3.125rem;width:100%;
  transition:background .12s ease,border-color .12s ease,color .12s ease,transform .1s ease;
  touch-action:manipulation
}
.opt-choice:hover{border-color:var(--blue-light)}
.opt-choice:active{transform:scale(.98)}
.opt-choice.is-selected{background:var(--blue);border-color:var(--blue);color:#fff}
.opt-key{
  flex-shrink:0;width:1.6875rem;height:1.6875rem;border-radius:.5rem;display:flex;align-items:center;justify-content:center;
  background:rgba(78,134,183,.22);color:var(--blue-light);font-family:var(--font-display);font-weight:800;font-size:max(11px,.78125rem)
}
.opt-choice.is-selected .opt-key{background:rgba(255,255,255,.22);color:#fff}

/* multi */
.widget--multi{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;align-content:center;padding:.875rem 0}
.opt-multi{
  padding:.75rem;border-radius:.8125rem;border:2px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);
  color:rgba(245,242,236,.85);font-weight:600;font-size:max(12px,.84375rem);cursor:pointer;display:flex;flex-direction:column;
  align-items:flex-start;gap:.4375rem;transition:background .12s ease,border-color .12s ease,color .12s ease,transform .1s ease;
  min-height:3.5rem;text-align:left;touch-action:manipulation;overflow-wrap:anywhere
}
.opt-multi:hover{border-color:var(--blue-light)}
.opt-multi:active{transform:scale(.98)}
.opt-multi.is-selected{background:rgba(78,134,183,.3);border-color:var(--blue);color:#fff}
.opt-dot{width:.5625rem;height:.5625rem;border-radius:50%;background:rgba(255,255,255,.2);transition:background .2s ease;flex-shrink:0}
.opt-multi.is-selected .opt-dot{background:var(--blue-light)}

/* slider */
.widget--slider{flex-direction:column;justify-content:center;padding:.875rem 0}
.slider-readout{display:flex;flex-direction:column;align-items:center;gap:.3125rem;margin-bottom:1.375rem}
.slider-big{font-family:var(--font-display);font-weight:900;font-size:min(3.875rem,calc(13vw * var(--s)));line-height:1;color:#fff;text-align:center}
.slider-unit{font-family:var(--font-display);font-weight:700;font-size:max(10px,.71875rem);letter-spacing:.2em;color:var(--blue-light);text-transform:uppercase;text-align:center}
#slider-input{height:2.75rem;cursor:pointer}
.slider-range-labels{display:flex;justify-content:space-between;gap:.75rem;font-size:max(10.5px,.71875rem);color:rgba(245,242,236,.5);margin-top:.25rem}

/* scale */
.widget--scale{flex-direction:column;align-items:center;justify-content:center;gap:1.25rem;padding:.875rem 0}
.scale-dots{display:flex;gap:.625rem;max-width:100%}
.scale-dot{
  width:2.875rem;height:2.875rem;flex:0 1 2.875rem;min-width:2.25rem;border-radius:50%;
  border:2px solid rgba(255,255,255,.22);background:rgba(255,255,255,.06);
  color:rgba(245,242,236,.6);font-family:var(--font-display);font-weight:800;font-size:max(14px,1rem);cursor:pointer;
  transition:background .12s ease,border-color .12s ease,color .12s ease,transform .1s ease;touch-action:manipulation
}
.scale-dot:hover{border-color:var(--blue-light)}
.scale-dot:active{transform:scale(.92)}
.scale-dot.is-active{background:var(--blue);border-color:var(--blue);color:#fff}
.scale-label{font-family:var(--font-display);font-weight:800;font-size:max(15px,1.1875rem);color:var(--blue-light);text-transform:uppercase;letter-spacing:.06em;min-height:1.5rem;text-align:center}

.other-input-wrap{padding:0 0 .75rem;flex-shrink:0}
/* The 16px floor is not cosmetic: below it, iOS Safari zooms the whole page in
   when the field takes focus — the "everything got bigger when the keyboard
   opened" bug. It must stay an absolute px value, outside the --s scale. */
.other-input{
  width:100%;box-sizing:border-box;padding:.75rem 1rem;border-radius:.75rem;border:2px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);color:var(--cream);font-family:var(--font-body);font-size:16px;font-weight:500
}
.other-input::placeholder{color:rgba(245,242,236,.4)}
.other-input:focus{outline:none;border-color:var(--blue-light)}

#btn-next{margin-top:auto;flex-shrink:0;padding:.9375rem;border-radius:.8125rem;font-size:max(12.5px,.875rem)}
#btn-next.is-disabled{background:rgba(78,134,183,.35)}

/* ===== Email gate ===== */
.screen--email{padding:.875rem 2px 1rem;overflow:hidden;animation:fadein .35s ease both}
.progress-wrap--email{margin:.75rem 0 1rem}
.progress-fill--full{width:100%}
.email-body{
  flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  display:flex;flex-direction:column;justify-content:center;padding-top:.5rem;
  animation:qinB .28s cubic-bezier(.2,.8,.2,1) both
}
.email-title{
  margin:.75rem 0 0;font-family:var(--font-display);font-weight:900;font-size:min(2.125rem,calc(7.4vw * var(--s)));
  line-height:1.08;color:var(--cream);text-transform:uppercase;letter-spacing:.01em
}
.email-sub{margin:.75rem 0 0;font-size:max(13px,.96875rem);line-height:1.5;color:rgba(245,242,236,.75)}
.email-form{margin-top:1.5rem;display:flex;flex-direction:column}
/* Same 16px floor as .other-input — anything smaller makes iOS Safari zoom the
   page in when the field takes focus. Must stay outside the --s scale. */
.email-input{
  width:100%;box-sizing:border-box;padding:.9375rem 1rem;border-radius:.875rem;
  border:2px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:var(--cream);
  font-family:var(--font-body);font-size:16px;font-weight:500
}
.email-input::placeholder{color:rgba(245,242,236,.38)}
.email-input:focus{outline:none;border-color:var(--blue-light)}
.email-input.is-invalid{border-color:#E4796B}
.email-error{margin:.625rem 0 0;font-size:max(12px,.84375rem);line-height:1.4;color:#F0A79B}
.email-suggest{
  margin:.625rem 0 0;align-self:flex-start;background:none;border:none;padding:.125rem 0;cursor:pointer;
  font-family:var(--font-body);font-size:max(12px,.84375rem);font-weight:600;color:var(--blue-light);
  text-decoration:underline;text-underline-offset:3px;text-align:left;touch-action:manipulation
}
.email-suggest:hover{color:var(--blue-lighter)}
#btn-email-submit{margin-top:1.125rem;flex-shrink:0}
#btn-email-submit.is-disabled{background:rgba(78,134,183,.35);box-shadow:none}
.email-privacy{
  margin-top:1.25rem;flex-shrink:0;font-size:max(11px,.78125rem);line-height:1.45;
  color:rgba(245,242,236,.5);text-align:center
}

/* ===== Tip overlay ===== */
.tip-overlay{position:fixed;inset:0;z-index:20;display:flex;justify-content:center;align-items:flex-end}
.tip-scrim{position:absolute;inset:0;background:rgba(15,24,44,.55);animation:fadein .3s ease both}
.tip-sheet{
  position:relative;width:100%;max-width:var(--max-w);background:var(--cream);border-radius:1.625rem 1.625rem 0 0;
  padding:1.625rem calc(1.5rem + var(--safe-r)) calc(1.75rem + var(--safe-b)) calc(1.5rem + var(--safe-l));
  box-sizing:border-box;max-height:90svh;overflow-y:auto;overscroll-behavior:contain;
  animation:tipin .38s cubic-bezier(.2,.8,.2,1) both
}
.tip-head{display:flex;align-items:center;gap:.6875rem}
.tip-icon{width:2.25rem;height:2.25rem;border-radius:.6875rem;background:rgba(78,134,183,.14);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.tip-icon svg{width:1.1875rem;height:1.1875rem}
.tip-label{font-family:var(--font-display);font-weight:800;font-size:max(10px,.71875rem);letter-spacing:.22em;color:var(--blue);text-transform:uppercase}
.tip-text{margin:.875rem 0 0;color:var(--text-title-dark);font-size:max(13.5px,.96875rem);line-height:1.5}
#btn-tip-next{margin-top:1.25rem}

/* ===== Loading / error ===== */
.screen--loading,.screen--error{align-items:center;justify-content:center;padding:1.875rem 2px;text-align:center;animation:fadein .4s ease both}
.spinner{position:relative;width:5.75rem;height:5.75rem;flex-shrink:0}
.spinner-ring{position:absolute;inset:0;border-radius:50%;border:4px solid rgba(78,134,183,.2);border-top-color:var(--blue-light);animation:spin 1s linear infinite}
.spinner-logo{position:absolute;inset:0;margin:auto;width:2.375rem;height:2.375rem;object-fit:contain;animation:pulse 1.6s ease infinite}
.load-title{margin:1.875rem 0 0;font-family:var(--font-display);font-weight:900;font-size:max(18px,1.375rem);color:var(--cream);text-transform:uppercase}
.load-msg{margin:.75rem 0 0;font-size:max(12.5px,.90625rem);color:var(--blue-light);min-height:1.375rem;animation:fadein .4s ease both}
.screen--error .btn{margin-top:1.375rem}

/* ===== Results (the one screen allowed to scroll) ===== */
.screen--results{padding:1.625rem 2px calc(2.125rem + var(--safe-b))}
.results-intro{margin-top:1.5rem;animation:riseA .5s ease both}
.results-title{margin:.875rem 0 0;font-family:var(--font-display);font-weight:900;font-size:min(2.375rem,calc(8.4vw * var(--s)));line-height:1.05;color:var(--cream);text-transform:uppercase}
.results-lead{margin:.875rem 0 0;font-size:max(13px,.9375rem);line-height:1.5;color:rgba(245,242,236,.75)}

.rec-list{margin-top:1.625rem;display:flex;flex-direction:column;gap:.875rem}
.rec-card{
  background:var(--cream);border-radius:1.125rem;padding:1.375rem 1.375rem 1.25rem;animation:riseA .5s ease both;
  box-shadow:0 8px 26px rgba(15,24,44,.25)
}
.rec-head{display:flex;align-items:center;gap:.8125rem}
.rec-rank{
  width:2.5rem;height:2.5rem;border-radius:.75rem;background:linear-gradient(135deg,var(--navy-mid),var(--blue));color:var(--cream);
  display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:900;font-size:max(15px,1.0625rem);flex-shrink:0
}
.rec-meta{min-width:0}
.rec-name{font-family:var(--font-display);font-weight:900;font-size:max(16px,1.1875rem);color:var(--text-title-dark);letter-spacing:.01em;overflow-wrap:anywhere}
.rec-category{
  margin-top:.1875rem;display:inline-block;font-family:var(--font-display);font-weight:700;font-size:max(9.5px,.65625rem);letter-spacing:.14em;
  color:var(--blue);text-transform:uppercase;background:rgba(78,134,183,.12);padding:.25rem .5625rem;border-radius:.375rem
}
.rec-reason{margin:.875rem 0 0;font-size:max(12.5px,.875rem);line-height:1.55;color:var(--text-body-dark)}
.rec-footer{margin-top:.875rem;display:flex;align-items:center;justify-content:space-between;gap:.625rem;flex-wrap:wrap}
.rec-price{
  font-family:var(--font-display);font-weight:700;font-size:max(10px,.6875rem);letter-spacing:.04em;color:var(--text-title-dark);
  background:rgba(43,63,105,.08);padding:.375rem .6875rem;border-radius:1.25rem;white-space:nowrap
}
.rec-link{font-size:max(12px,.8125rem);font-weight:600;color:var(--blue);text-decoration:none}
.rec-link:hover{color:var(--text-title-dark)}

.more-card{
  margin-top:2.125rem;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:1.25rem;
  padding:1.625rem 1.5rem;animation:riseA .5s .45s ease both
}
.more-title{margin:.6875rem 0 0;font-family:var(--font-display);font-weight:900;font-size:max(18px,1.4375rem);line-height:1.12;color:var(--cream);text-transform:uppercase}
.more-pitch{margin:.75rem 0 0;font-size:max(13px,.90625rem);line-height:1.55;color:rgba(245,242,236,.78)}
.more-bullets{margin-top:1rem;display:flex;flex-direction:column;gap:.5625rem}
.bullet{display:flex;gap:.6875rem;align-items:flex-start;font-size:max(12.5px,.84375rem);color:rgba(245,242,236,.85)}
.bullet .dot{flex-shrink:0;width:.4375rem;height:.4375rem;border-radius:50%;background:var(--blue-light);margin-top:.375rem}
#cta-calendar{margin-top:1.375rem;box-shadow:0 10px 28px rgba(78,134,183,.35)}
#cta-calendar:hover{background:var(--blue-hover);transform:translateY(-2px);color:#fff}
#cta-calendar-popup{margin-top:1.375rem}
#cta-calendar-popup:hover{background:var(--blue-hover);transform:translateY(-2px);color:#fff}
.more-card .fine-print{margin-top:.6875rem}

.screen--results .tagline{margin-top:1.125rem}

/* ===== Go further: floating CTA + popup ===== */
.float-cta{
  position:fixed;left:0;right:0;bottom:calc(1rem + var(--safe-b));z-index:15;display:flex;justify-content:center;
  padding-left:calc(1.375rem + var(--safe-l));padding-right:calc(1.375rem + var(--safe-r));
  pointer-events:none;opacity:1;transform:none;transition:opacity .25s ease,transform .25s ease
}
.float-cta.is-hidden{opacity:0;transform:translateY(14px);pointer-events:none}
.float-cta .btn{width:100%;max-width:var(--max-w);box-sizing:border-box;pointer-events:auto;box-shadow:0 12px 30px rgba(15,24,44,.5)}

.gofurther-overlay{
  position:fixed;inset:0;z-index:25;display:flex;justify-content:center;align-items:center;
  padding:calc(1.375rem + var(--safe-t)) calc(1.375rem + var(--safe-r)) calc(1.375rem + var(--safe-b)) calc(1.375rem + var(--safe-l))
}
.gofurther-scrim{position:fixed;inset:0;background:rgba(15,24,44,.62);animation:fadein .3s ease both}
.gofurther-card{
  position:relative;width:100%;max-width:var(--max-w);max-height:100%;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;
  background:var(--navy-mid);border:1px solid rgba(255,255,255,.14);border-radius:1.375rem;padding:1.875rem 1.5rem 1.625rem;
  animation:popin .32s cubic-bezier(.2,.8,.2,1) both
}
.gofurther-close{
  position:absolute;top:.875rem;right:.875rem;width:2rem;height:2rem;border-radius:.625rem;border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);color:var(--cream);cursor:pointer;display:flex;align-items:center;justify-content:center
}
.gofurther-close:hover{background:rgba(255,255,255,.16)}
.gofurther-close svg{width:.9375rem;height:.9375rem}
.gofurther-card .more-title{margin-top:1rem;padding-right:2rem}

/* ===== Utility ===== */
[hidden]{display:none !important}

/* Visually-hidden but still natively rendered — required for the iOS Safari
   haptic switch trick below, which needs a real rendered <input switch>, not
   display:none. */
.ios-haptic-hidden{
  position:fixed;top:0;left:0;width:1px;height:1px;overflow:hidden;
  clip-path:inset(50%);opacity:.01;pointer-events:none
}

/* Tap "pulse" feedback, used everywhere as a visual stand-in for haptics
   (and the only feedback iOS gets once the native switch trick stops working) */
.haptic-pulse{animation:hapticPulse .22s ease-out}
@keyframes hapticPulse{0%{transform:scale(1)}35%{transform:scale(.96)}100%{transform:scale(1)}}

/* ===== Measuring mode =====
   On for a few milliseconds inside fitToViewport() at startup (and on
   rotation). Everything that would clamp or absorb overflow is switched off so
   a screen reports its true natural height; the app is taken out of flow and
   made invisible with animations off, so none of this is ever painted. */
/* !important because body[data-screen="…"] .app outranks this on specificity
   and would keep the height clamp on during the measurement. */
.app.is-measuring{
  position:absolute !important;top:0;left:0;right:0;
  height:auto !important;min-height:0 !important;overflow:visible !important;visibility:hidden
}
.app.is-measuring .shell{height:auto;overflow:visible}
.app.is-measuring .screen{flex:0 0 auto;max-height:none;overflow:visible}
.app.is-measuring .question-body,
.app.is-measuring .email-body,
.app.is-measuring .landing-main{flex:0 0 auto;overflow:visible}
.app.is-measuring *{animation:none !important;transition:none !important}

/* ===== Responsive ===== */
@media (max-width:400px){
  :root{--pad-x:1.0625rem}
}
@media (max-width:340px){
  :root{--pad-x:.875rem}
}
/* Short viewports (small phones) — height is the scarce axis, so the multi
   options switch from stacked (dot on its own line above the label) to inline.
   Same information, ~16px less per row, five rows on the longest question.
   It is a media query, not something the fit pass decides, so the layout is
   fixed for the whole session and identical on every question. */
@media (max-height:600px){
  .opt-multi{flex-direction:row;align-items:center;gap:.5rem;min-height:2.875rem}
  .widget--scale{gap:1rem}
  .slider-readout{margin-bottom:1rem}
}
/* Phone landscape: height is the scarce axis and width is plentiful, so widen
   the column and spread the options sideways rather than shrinking the type
   into the ground. */
@media (orientation:landscape) and (max-height:560px){
  :root{--max-w:860px}
  .screen--quiz{padding:.625rem 2px .75rem}
  .progress-wrap{margin:.5rem 0 1rem}
  .widget--choice{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
  .widget--multi{grid-template-columns:repeat(3,1fr)}
  .opt-multi{min-height:0;flex-direction:row;align-items:center;gap:.625rem}
  .widget--scale{flex-direction:row;gap:1.5rem}
  .scale-label{min-height:0}
  .screen--landing{padding:.75rem 2px .75rem}
  .screen--email{padding:.625rem 2px .75rem}
  .email-privacy{margin-top:.875rem}
  .landing-promise{max-width:none}
  .steps{flex-direction:row;flex-wrap:wrap;column-gap:1.25rem}
}
@media (min-width:640px){
  :root{--pad-x:1.375rem}
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}
