/* Motion layer: timings match the supplied reference, without changing content. */
body.motion-ready .motion-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--motion-delay, 0s);
}
body.motion-ready .motion-reveal.motion-in {
  opacity: 1;
  transform: translateY(0);
}

h2.motion-shine {
  background-image: linear-gradient(120deg, var(--ink) 0%, var(--ink) 43%, #8aafff 49%, #eff5ff 50%, var(--blue) 53%, var(--ink) 58%, var(--ink) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: motion-title-shine 1.5s ease-in-out 2;
}
h2.motion-shine span { color: inherit; }
@keyframes motion-title-shine {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

.eligibility-card li {
  position: relative;
  transition: color .4s ease, font-weight .4s ease;
}
.eligibility-card li::before { transition: color .4s ease; }
.eligibility-card:not(.caution) li.is-active,
.eligibility-card:not(.caution) li.is-active::before {
  color: var(--navy);
  font-weight: 800;
}
body.motion-ready .eligibility-card.caution h3 {
  animation: motion-caution-heading 1.6s ease-in-out infinite;
}
@keyframes motion-caution-heading {
  0%, 100% { background: #9ca0ae; }
  50% { background: var(--red); }
}
.eligibility-card.caution li::after {
  content: "";
  position: absolute;
  left: 23px;
  right: 8px;
  bottom: 1px;
  height: 2px;
  background: var(--red);
  opacity: .72;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s ease;
}
.eligibility-card.caution li.is-shown::after { transform: scaleX(1); }
.eligibility-card.caution li.is-shown::before { color: var(--red); }

.cert-grid article {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .22s ease, opacity .6s ease;
}
body.motion-ready .cert-grid article { background: #f1f0ea; opacity: .62; }
.cert-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(160deg, #fff3e0, #ffe3d6 60%, #ffd9d9);
  box-shadow: 0 24px 48px -20px rgba(214, 40, 57, .28);
  opacity: 0;
  transition: opacity .6s ease;
}
body.motion-ready .cert-grid article.is-active { opacity: 1; }
body.motion-ready .cert-grid article.motion-reveal.motion-in:not(.is-active) { opacity: .62; }
.cert-grid article.is-active::before { opacity: 1; }
.cert-grid .cert-icon {
  background: #e9e8e1;
  filter: grayscale(1);
  box-shadow: none;
  transition: background-color .5s ease, color .5s ease, box-shadow .5s ease, filter .5s ease;
}
.cert-grid article.is-active .cert-icon {
  background: #fff;
  color: var(--blue);
  filter: none;
  box-shadow: 0 10px 26px -10px rgba(18, 20, 43, .25);
}
.cert-grid article:nth-child(2).is-active .cert-icon { color: var(--red); }
.cert-grid article:nth-child(3).is-active .cert-icon { color: #95661c; }
.cert-grid article h3 { color: #8b8d9c; transition: color .5s ease; }
.cert-grid article.is-active h3 { color: var(--ink); }

.benefit-grid.motion-tab-enter { animation: motion-tab-enter .45s ease both; }
@keyframes motion-tab-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.status-ticker {
  height: 300px;
  overflow: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.status-ticker::-webkit-scrollbar { display: none; width: 0; height: 0; }
.status-ticker .status-table { border-collapse: separate; border-spacing: 0; }
.status-ticker thead th { position: sticky; top: 0; z-index: 1; }
.status-ticker .status-table tbody tr.status-loop-copy { background: #fff; }
.status-ticker .status-table tbody tr.status-loop-copy.status-loop-even { background: #fbfaf9; }
.status-ticker:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.motion-row-enter { animation: motion-row-enter 1.4s ease both; }
.status-table tr.motion-row-enter > td { animation: motion-row-cell 1.4s ease both; }
@keyframes motion-row-enter {
  0% { opacity: 0; transform: translateY(-10px); background-color: rgba(29, 63, 145, .12); }
  60% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); background-color: transparent; }
}
@keyframes motion-row-cell {
  0% { background-color: rgba(29, 63, 145, .12); }
  100% { background-color: transparent; }
}
.motion-toast-text,
.motion-hero-badge-text,
.eyebrow-pill > span:not(.pulse-dot):not(.preview-tag),
[data-motion-text] {
  transition: opacity .35s ease, transform .35s ease;
}
.motion-swapping { opacity: 0 !important; transform: translateY(3px); }
.motion-hero-badge-text { display: inline-block; }

.hero .floating-card.card-one { animation: motion-float-card 6s ease-in-out infinite; }
.hero .floating-card.card-two { animation: motion-float-card 7s ease-in-out infinite 1s; }
@keyframes motion-float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.pulse-dot { animation: motion-blip 1.8s ease-in-out infinite; }
.live-badge i,
.motion-toast-label::before { animation: motion-blip 1.6s ease-in-out infinite; }
.status-badge.ongoing::before { animation: motion-blip 1.8s ease-in-out infinite; }
@keyframes motion-blip {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* Native details semantics remain intact; the answer height is animated by JS. */
.faq-list { border-top: 0; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq-list details:last-child { margin-bottom: 0; }
.faq-list details[open] { box-shadow: 0 16px 34px -20px rgba(18, 20, 43, .2); }
.faq-list summary { padding: 20px 24px; font-size: 15.5px; }
.faq-list summary > span {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(29, 63, 145, .1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
.faq-list summary > svg { transition: transform .3s ease; }
.faq-answer { padding: 0 24px 20px 62px; overflow: hidden; }
.mobile-menu.motion-menu-enter { animation: motion-menu-enter .25s ease both; }
@keyframes motion-menu-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.review-dialog[open] { animation: motion-dialog-pop .45s cubic-bezier(.2, .75, .25, 1) both; }
.review-dialog[open]::backdrop { animation: motion-backdrop-in .3s ease both; }
@keyframes motion-dialog-pop {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes motion-backdrop-in { from { opacity: 0; } to { opacity: 1; } }

.floating-tools { align-items: flex-end; }
body.motion-ready .back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
body.motion-ready .back-to-top.motion-top-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.motion-toast {
  position: relative;
  width: 252px;
  max-width: calc(100vw - 44px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px 22px 18px;
  margin-bottom: 4px;
  text-align: left;
  color: var(--ink);
  line-height: 1.4;
  box-shadow: 0 16px 34px -14px rgba(18, 20, 43, .3);
  animation: motion-toast-float 3s ease-in-out infinite;
}
.motion-toast::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 24px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.motion-toast-close {
  position: absolute;
  top: -9px;
  right: -8px;
  width: 27px;
  height: 27px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  padding: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.motion-toast-close svg { width: 14px; height: 14px; }
.motion-toast-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .03em;
  margin-bottom: 7px;
}
.motion-toast-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.motion-toast-text { font-size: 14px; font-weight: 700; line-height: 1.55; min-height: 43px; }
.motion-toast-link, .motion-toast-text { display: block; }
.motion-toast-text b { color: var(--blue); }
@keyframes motion-toast-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.motion-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e1e6ef;
  background: #fff;
  color: #5b6b88;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-right: 14px;
  box-shadow: 0 5px 12px rgba(27, 45, 75, .07);
  padding: 0;
  font-size: 14px;
  line-height: 1;
  transition: color .2s ease, border-color .2s ease;
}
.motion-toggle svg { width: 15px; height: 15px; }
.motion-toggle[aria-pressed="true"] { color: var(--blue); border-color: #9aaedb; }
.news-controls { display: none; }
.news-count {
  min-width: 30px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}
.motion-slide-enter { animation: motion-slide-enter .45s ease both; }
@keyframes motion-slide-enter {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (hover: hover) and (pointer: fine) {
  body.motion-ready .service-card.motion-in:hover,
  body.motion-ready .news-card.motion-in:hover { transform: translateY(-6px); }
  .cert-grid article.motion-in:hover { transform: translateY(-6px); }
  .motion-toggle:hover { color: var(--blue); border-color: #9aaedb; }
  .news-prev:hover, .news-next:hover { background: #f0f4fe; border-color: #b5c6e8; }
}
@media (hover: none), (pointer: coarse) {
  .button:hover, .floating-chat:hover, .cert-grid article.motion-in:hover { transform: none; }
}

@media (min-width: 701px) {
  .hero-strip .container > span {
    opacity: 1 !important;
    transform: none !important;
    display: flex !important;
  }
}
@media (max-width: 700px) {
  body.motion-ready .hero-strip .container { position: relative; height: 55px; display: block; }
  body.motion-ready .hero-strip .container > span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
  }
  body.motion-ready .hero-strip .container > span.is-active { opacity: 1; }
  body.motion-ready .hero-strip .container:not(:has(> span.is-active)) > span:first-child { opacity: 1; }
  .faq-list summary { padding: 18px 16px; font-size: 14px; gap: 10px; }
  .faq-answer { padding: 0 16px 20px 48px; }
  .motion-toast { width: 218px; padding: 14px 17px 15px; border-radius: 16px; }
  .motion-toast-text { font-size: 12px; min-height: 37px; }
  .motion-toast-label { font-size: 10px; margin-bottom: 6px; }
  .motion-toast::after { right: 17px; }
  .motion-toast-close { width: 25px; height: 25px; font-size: 16px; }
  .motion-toggle { width: 31px; height: 31px; font-size: 12px; margin-right: 8px; }
  body.motion-ready .news-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
  .news-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
  }
  .news-prev, .news-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 21px;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease;
  }
  .news-prev svg, .news-next svg { width: 17px; height: 17px; }
  .news-dots { display: flex; align-items: center; justify-content: center; gap: 2px; }
  .news-dots button {
    position: relative;
    width: 25px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 9px;
    font-size: 0;
  }
  .news-dots button::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #d9dfe9;
    border-radius: 4px;
    transition: width .25s ease, background .25s ease;
  }
  .news-dots button[aria-current="true"]::before { width: 18px; background: var(--blue); }
}

.card-companies-section { background: #fff; }
.card-logo-rows { display: grid; gap: 8px; margin-top: 40px; }
.card-marquee {
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.card-logo-track { display: flex; width: max-content; }
.card-logo-group {
  list-style: none;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 38px;
  margin: 0;
  padding: 0 38px 0 0;
}
.card-logo-group > li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 164px;
  width: 164px;
  height: 58px;
}
.card-logo-sprite {
  display: block;
  flex: none;
  width: calc(var(--logo-w) * var(--logo-scale) * 1px);
  height: calc(var(--logo-h) * var(--logo-scale) * 1px);
  background-image: url('assets/cards/card-logos-reference.png');
  background-repeat: no-repeat;
  background-size: calc(874px * var(--logo-scale)) calc(588px * var(--logo-scale));
  background-position: calc(var(--logo-x) * var(--logo-scale) * -1px) calc(var(--logo-y) * var(--logo-scale) * -1px);
  filter: none;
  opacity: 1;
}
.logo-loop-ready .card-logo-track {
  animation: card-logo-flow var(--logo-duration, 70s) linear infinite;
  will-change: transform;
}
.card-marquee-reverse .card-logo-track { animation-direction: reverse; }
@keyframes card-logo-flow {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--logo-loop-width))); }
}
@media (max-width: 700px) {
  .card-logo-rows { margin-top: 30px; gap: 6px; }
  .card-logo-group { gap: 24px; padding-right: 24px; }
  .card-logo-group > li { flex-basis: 132px; width: 132px; height: 60px; }
  .card-logo-sprite { transform: scale(.84); }
  .card-marquee {
    mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  }
}
html.motion-paused .card-marquee { overflow-x: auto; }
html.motion-paused .card-logo-track { animation: none; transform: none; }
html.motion-paused .card-logo-loop,
html.motion-paused [data-loop-fill] { display: none; }

/* Pause preserves readable content instead of freezing an off-screen reveal. */
html.motion-paused { scroll-behavior: auto; }
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after {
  animation-play-state: paused !important;
  transition-duration: .01ms !important;
  transition-delay: 0s !important;
}
html.motion-paused body.motion-ready .motion-reveal,
html.motion-paused body.motion-ready .cert-grid article,
html.motion-paused body.motion-ready .cert-grid article.motion-reveal.motion-in:not(.is-active),
html.motion-paused .motion-swapping {
  opacity: 1 !important;
  transform: none !important;
}
html.motion-paused h2.motion-shine {
  animation: none !important;
  background-image: none;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}
html.motion-paused .motion-row-enter,
html.motion-paused .motion-tab-enter,
html.motion-paused .motion-slide-enter,
html.motion-paused .motion-menu-enter,
html.motion-paused .review-dialog[open],
html.motion-paused .review-dialog[open]::backdrop {
  animation: none !important;
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .card-marquee { overflow-x: auto; }
  .card-logo-track { transform: none; }
  .card-logo-loop, [data-loop-fill] { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body.motion-ready .motion-reveal,
  body.motion-ready .cert-grid article,
  body.motion-ready .cert-grid article.motion-reveal.motion-in:not(.is-active),
  .motion-swapping { opacity: 1 !important; transform: none !important; }
  h2.motion-shine { background: none; color: var(--ink); -webkit-text-fill-color: var(--ink); }
  .cert-grid article h3 { color: var(--ink); }
  .hero .floating-card, .motion-toast { transform: none; }
}
