/* Spring motion shared by the expo pages. The curves are sampled from a real damped spring (stiffness / damping),
   so things settle the way a physical object would: "spring" overshoots ~5 %, "bouncy" ~24 %, "snappy" ~2 %.
   Browsers without linear() fall back to a cubic-bezier with a little overshoot. */
:root {
  --spring: cubic-bezier(.2, 1.15, .35, 1);
  --bouncy: cubic-bezier(.3, 1.6, .4, 1);
  --snappy: cubic-bezier(.25, 1.05, .4, 1);
  --spring-t: .7s; --bouncy-t: .9s; --snappy-t: .45s;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.024, 0.081, 0.162, 0.255, 0.355, 0.455, 0.552, 0.641, 0.722, 0.793, 0.854, 0.905, 0.946, 0.979, 1.004, 1.022, 1.035, 1.043, 1.047, 1.048, 1.047, 1.044, 1.04, 1.035, 1.031, 1.026, 1.021, 1.017, 1.013, 1.01, 1.007, 1.004, 1.003, 1.001, 1, 0.999, 0.998, 0.998, 0.998, 0.998, 1);
    --bouncy: linear(0, 0.051, 0.176, 0.348, 0.539, 0.728, 0.898, 1.038, 1.142, 1.209, 1.242, 1.245, 1.225, 1.189, 1.145, 1.097, 1.052, 1.012, 0.98, 0.958, 0.944, 0.939, 0.941, 0.947, 0.957, 0.968, 0.98, 0.991, 1, 1.007, 1.012, 1.014, 1.015, 1.014, 1.012, 1.01, 1.007, 1.004, 1.001, 0.999, 0.998, 1);
    --snappy: linear(0, 0.02, 0.068, 0.134, 0.212, 0.295, 0.38, 0.463, 0.543, 0.616, 0.683, 0.742, 0.795, 0.84, 0.879, 0.912, 0.939, 0.96, 0.978, 0.991, 1.001, 1.009, 1.014, 1.017, 1.019, 1.02, 1.02, 1.019, 1.018, 1.016, 1.015, 1.013, 1.011, 1.01, 1.008, 1.007, 1.006, 1.005, 1.004, 1.003, 1.002, 1.001, 1.001, 1.001, 1, 1);
  }
}

/* press: squish fast, spring back */
.springy, button, .btn, a.btn, .chips button, .opts button, .results button, .liked-list button, .ex, .job, .bcard, .ag, .kpi {
  transition: transform var(--snappy-t) var(--snappy), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
button:active, .btn:active, a.btn:active, .ex:active, .job:active, .bcard:active, .ag:active { transform: scale(.955); transition-duration: .08s; transition-timing-function: ease-out; }
.chips button.on { animation: chipOn var(--bouncy-t) var(--bouncy); }
@keyframes chipOn { from { transform: scale(.82); } }

/* pop-ins */
@keyframes springIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes popIn { from { opacity: 0; transform: scale(.5); } }
@keyframes sheetUp { from { transform: translateY(105%); } }
.pop { animation: popIn var(--bouncy-t) var(--bouncy) both; }

/* the sliding tab indicator */
.tab-host { position: relative; }
.tab-ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 12px; background: #2a2752; box-shadow: inset 0 0 0 1px rgba(168, 156, 255, .3);
  transition: transform var(--spring-t) var(--spring), width var(--spring-t) var(--spring), height var(--spring-t) var(--spring); pointer-events: none; }

/* bottom sheets (phones): a grab handle, dragged by the finger, sprung by JS */
.grab { display: none; }
@media (max-width: 900px) {
  .grab { display: block; position: sticky; top: -1px; z-index: 5; height: 26px; margin: -12px -16px 6px; cursor: grab; touch-action: none; background: inherit; border-radius: inherit; }
  .grab::after { content: ""; position: absolute; left: 50%; top: 10px; width: 42px; height: 5px; margin-left: -21px; border-radius: 99px; background: rgba(255, 255, 255, .28); }
  .scrim { position: fixed; inset: 0; z-index: 13; background: rgba(5, 4, 18, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .scrim.on { opacity: 1; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
