/* Quiet motion responds to a choice. Nothing loops unless a request is in progress. */
@keyframes settle-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes busy-turn { to { transform: rotate(360deg); } }
@keyframes loading-breathe { 50% { opacity: .45; } }
@media (prefers-reduced-motion: no-preference) {
  .quiet-copy { animation: settle-in 420ms cubic-bezier(.2,.7,.3,1) both; }
  .monthly-visual { animation: settle-in 480ms 70ms cubic-bezier(.2,.7,.3,1) both; }
  dialog[open] { animation: settle-in 180ms ease-out; }
  .toast:not([hidden]) { animation: toast-in 180ms ease-out; }
  @keyframes toast-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
  button, .selection-item, .offer-card { transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
  .quiet-copy>.primary-button>span { transition: transform 180ms ease; }
  .squad-row progress::-webkit-progress-value, #savings-progress::-webkit-progress-value { transition: width 400ms cubic-bezier(.2,.7,.3,1); }
  .skeleton-card { animation: loading-breathe 1.6s ease-in-out infinite; }
  .skeleton-card:nth-child(2) { animation-delay: 150ms; }
}
@media (hover: hover) and (pointer: fine) {
  .primary-button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 5px 18px #ffe54314; }
  .secondary-button:not(:disabled):hover { border-color: #777; background: #252525; }
  .quiet-copy>.primary-button:hover>span { transform: translateX(3px); }
  .offer-card:hover { border-color: #747474; }
}
button:not(:disabled):active { transform: translateY(0); }
[tabindex="-1"]:focus { outline: none; }
button.is-busy { cursor: progress; }
button.is-busy::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: busy-turn 700ms linear infinite; }
.loading-label { font-size: .85rem; color: #c9c9c9; margin: 20px 0 13px; }
.search-skeleton { display: grid; gap: 14px; }
.skeleton-card { border: 1px solid #303030; border-radius: 18px; padding: 24px 20px; background: #191919; }
.skeleton-card span { display: block; height: 13px; width: 68%; margin-bottom: 18px; border-radius: 6px; background: #303030; }
.skeleton-card span:nth-child(2) { width: 90%; height: 35px; }
.skeleton-card span:last-child { width: 40%; margin-bottom: 0; }

/* The value illustration doubles as a small, usable savings calculator. */
.monthly-swap { padding-top: 19px; }
.monthly-control { margin-top: 15px; }
.monthly-control label { font-size: .7rem; color: #c9c9c9; font-weight: 500; }
input#monthly-swap { --range-fill: 17.24%; display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 28px; margin: 3px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; accent-color: var(--yellow); }
#monthly-swap::-webkit-slider-runnable-track { height: 4px; border-radius: 8px; background: linear-gradient(to right, var(--yellow) var(--range-fill), #575757 var(--range-fill)); }
#monthly-swap::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); border: 2px solid #fff2a0; margin-top: -7px; box-shadow: 0 1px 6px #0005; }
#monthly-swap::-moz-range-track { height: 4px; background: #575757; border-radius: 8px; }
#monthly-swap::-moz-range-progress { height: 4px; background: var(--yellow); border-radius: 8px; }
#monthly-swap::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--yellow); border: 2px solid #fff2a0; }
#monthly-swap:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 6px; }
.range-limits { display: flex; justify-content: space-between; color: #a8a8a8; font-size: .58rem; }
.monthly-swap>p { font-size: .6rem; padding-top: 9px; margin-top: 10px; }
.swap-equation strong { font-variant-numeric: tabular-nums; white-space: nowrap; }

.pace-timeline { margin: 22px 0; padding: 20px; border: 1px solid #343434; background: #171717; border-radius: 18px; }
.timeline-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.timeline-heading h3 { font-size: 1rem; margin: 0; letter-spacing: -.02em; }
#timeline-pace { font-size: .8rem; color: var(--yellow); font-weight: 650; }
#timeline-steps { list-style: none; margin: 20px 0 13px; padding: 0; }
#timeline-steps li { position: relative; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; column-gap: 11px; padding: 0 0 23px; }
#timeline-steps li:last-child { padding-bottom: 0; }
#timeline-steps li:first-child::after { content: ''; width: 1px; position: absolute; background: #51513d; left: 8px; top: 29px; bottom: 4px; }
.timeline-dot { width: 17px; height: 17px; border-radius: 50%; border: 1px solid #d8c63f; display: grid; place-items: center; background: #292718; color: var(--yellow); font-size: .7rem; }
#timeline-steps li>div>span { display: block; color: #a9a9a9; font-size: .73rem; }
#timeline-steps strong { display: block; font-size: .96rem; margin-top: 2px; }
#timeline-steps li>small { color: #aaa; font-size: .67rem; max-width: 98px; text-align: right; }
#timeline-note { font-size: .68rem; line-height: 1.6; color: #aaa; margin: 0; }
.pace-what-if { margin-top: 15px; padding-top: 14px; border-top: 1px solid #333; }
.pace-what-if summary { font-size: .79rem; font-weight: 550; cursor: pointer; }
.pace-what-if .helper { font-size: .8rem; line-height: 1.6; margin-bottom: 3px; }
.pace-what-if .text-button { font-size: .8rem; }
.download-plan { display: block; margin: 13px auto 0; font-size: .78rem; color: #c7c7c7; }

@media(max-width:760px) {
  .monthly-swap { padding: 16px 17px 12px; }
  .monthly-visual .quiet-photo { aspect-ratio: 1.1; }
  .monthly-control { margin-top: 12px; }
  .monthly-control label { font-size: .65rem; }
  .range-limits { font-size: .57rem; }
  .monthly-swap>p { font-size: .56rem; }
  .pace-timeline { padding: 16px; }
  #timeline-steps li { column-gap: 9px; }
  #timeline-steps strong { font-size: .85rem; }
  #timeline-steps li>small { max-width: 80px; font-size: .61rem; }
  .timeline-heading h3 { font-size: .93rem; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
