/* Upward Prep motion layer — shared by all public pages.
   Loaded via /assets/motion.css; behavior in /assets/motion.js.
   Everything is transform/opacity based, reduced-motion safe, and
   no-JS safe (reveal states are only applied by the JS at runtime). */

/* --- brand layer: elevation cue, gold = the win color ------------------
   Gold (#C9A227, the confetti gold) is reserved for moments of progress
   and achievement ONLY: completed steps, cleared pass bands, finishes.
   Blue remains the working color. The elevation cue is a pair of pale
   ridgelines pinned to the hero's bottom edge — a quiet horizon well
   below the search box (Mark's pick, 2026-10-17). A blueprint grid and
   a full-hero gradient were both tried first and pulled the same day:
   Mark found them cluttered. Personality lives in touches like this,
   the climb path, and the voice — never in texture behind copy. */
:root { --up-gold: #C9A227; --up-gold-deep: #8F6B0D; }
.up-ridges { position: relative; }
.up-ridges > *:not(.up-ridges-svg) { position: relative; z-index: 1; }
.up-ridges-svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 92%; display: block; pointer-events: none; }
@media (max-width: 680px) { .up-ridges-svg { height: 84%; } }
/* --- checkmark that draws itself in (win/confirmation moments) --- */
.up-checkdraw svg { display: block; }
.up-checkdraw svg path {
  stroke-dasharray: 26; stroke-dashoffset: 26;
  animation: upCheckDraw .55s .1s cubic-bezier(.6,0,.3,1) forwards;
}
@keyframes upCheckDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .up-checkdraw svg path { animation: none; stroke-dashoffset: 0; }
}

/* --- scroll reveal (JS adds .up-rv to below-fold blocks, .up-in on entry) --- */
.up-rv { opacity: 0; transform: translateY(14px); }
.up-rv.up-in { opacity: 1; transform: none; transition: opacity .6s ease-out, transform .6s cubic-bezier(.22,.8,.32,1); }

/* --- card lift + press states --- */
.card, .plan-card, .price-card, .exam-card, .ts-item {
  transition: transform .25s cubic-bezier(.22,.8,.32,1), box-shadow .25s ease;
}
@media (hover:hover) {
  .card:hover, .plan-card:hover, .price-card:hover, .exam-card:hover, .ts-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(5,27,57,.12);
  }
}
.card:active, .plan-card:active, .price-card:active, .exam-card:active { transform: scale(.99); }

/* --- CTA arrow nudge + button press --- */
.btn, .tq-primary, .cta-btn { transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:active, .tq-primary:active, .cta-btn:active { transform: scale(.98); }
.up-offer-row { transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.up-offer-row:active { transform: scale(.99); }
@media (hover:hover) {
  .up-offer-row:hover { box-shadow: 0 8px 22px rgba(5,27,57,.10); }
}

/* --- homepage mock readiness bars fill on reveal --- */
.up-m .mock-fill { animation: upFill 1s cubic-bezier(.22,.8,.32,1) both; }
@keyframes upFill { from { width: 0 !important; } }

/* --- section headings get a soft rise when revealed (paired with .up-rv) --- */
.section-h.up-rv { transform: translateY(10px); }

@media (prefers-reduced-motion: reduce) {
  .up-rv { opacity: 1 !important; transform: none !important; }
  .up-m .mock-fill { animation: none !important; }
  .card, .plan-card, .price-card, .exam-card, .ts-item, .btn, .up-offer-row { transition: none !important; }
}

/* --- sticky trial bar (practice pages; behavior in motion.js) --- */
.up-trialbar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; background: #fff; border-bottom: 1px solid #E3EAF3; box-shadow: 0 6px 24px rgba(5,27,57,.10); transform: translateY(-105%); transition: transform .25s ease; }
.up-trialbar.on { transform: none; }
.up-tb-in { display: flex; align-items: center; gap: 14px; max-width: 1100px; margin: 0 auto; padding: 9px 16px; }
.up-tb-name { font-weight: 700; color: #051B39; font-size: 15px; white-space: nowrap; }
.up-tb-sub { font-size: 13.5px; color: #66758A; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-tb-btn { background: #106DFF; color: #fff; font-weight: 700; font-size: 14.5px; padding: 9px 18px; border-radius: 10px; text-decoration: none; white-space: nowrap; transition: transform .15s ease; }
.up-tb-btn:active { transform: scale(.98); }
.up-tb-x { background: none; border: none; font-size: 20px; line-height: 1; color: #66758A; cursor: pointer; padding: 4px 6px; }
@media (max-width: 560px) { .up-tb-sub { display: none; } .up-tb-name { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .up-trialbar { transition: none; } }

/* --- tailored per-exam includes line (pricing sections) --- */
.up-foryou { max-width: 560px; margin: 14px auto 0; text-align: center; font-size: 14.5px; line-height: 1.55; color: #172333; }
.up-foryou b { color: #051B39; }
