/* V1.5.124-rc.1 · Progressive UX polish for public and learner-facing surfaces. */
:root {
  --ux-focus: #1769df;
  --ux-brand: #f8320d;
  --ux-radius: 16px;
  --ux-ease: cubic-bezier(.2, .8, .2, 1);
}

.ux-skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  max-width: calc(100vw - 24px);
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: #151515;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
  font: 800 14px/1.2 Montserrat, Inter, sans-serif;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s var(--ux-ease);
}

.ux-skip-link:focus { transform: translateY(0); }

.public-landing :is(a, button, video):focus-visible,
.access-gateway-page :is(a, button, input, select):focus-visible,
.campus-page :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--ux-focus);
  outline-offset: 4px;
}

.public-landing ::selection,
.access-gateway-page ::selection,
.campus-page ::selection {
  background: #ffd7cc;
  color: #161616;
}

/* Commercial landing */
.public-landing .page-progress {
  position: fixed;
  z-index: 110;
  inset: 0 0 auto;
  height: 4px;
  pointer-events: none;
  background: rgba(255, 255, 255, .12);
}

.public-landing .page-progress > i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ux-brand), #f7990e);
  box-shadow: 0 0 14px rgba(248, 50, 13, .48);
  transition: width .08s linear;
}

.public-landing .sales-nav nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.public-landing .sales-nav nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--ux-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ux-ease);
}

.public-landing .sales-nav nav a:hover::after,
.public-landing .sales-nav nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.public-landing :is(.cta, .nav-cta) {
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.public-landing :is(.ecosystem-card, .problem-card, .outcome-card, .mini-plan) {
  transition: transform .22s var(--ux-ease), box-shadow .22s var(--ux-ease), border-color .22s var(--ux-ease);
}

@media (hover: hover) and (pointer: fine) {
  .public-landing :is(.ecosystem-card, .problem-card, .outcome-card, .mini-plan):hover {
    transform: translateY(-5px);
    border-color: rgba(248, 50, 13, .28);
    box-shadow: 0 22px 55px rgba(28, 22, 18, .12);
  }
}

.public-landing #video-demo { scroll-margin-top: 110px; }

.public-landing .hero-video-shell.is-video-target {
  animation: uxVideoTarget .75s var(--ux-ease);
}

@keyframes uxVideoTarget {
  0%, 100% { box-shadow: 0 44px 110px rgba(0, 0, 0, .68), 0 0 0 1px rgba(248, 50, 13, .2); }
  45% { box-shadow: 0 44px 110px rgba(0, 0, 0, .68), 0 0 0 5px rgba(248, 50, 13, .72); }
}

.public-landing .back-to-top {
  position: fixed;
  z-index: 105;
  right: 22px;
  bottom: 92px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(20, 20, 20, .92);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s var(--ux-ease), background .18s ease;
}

.public-landing .back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.public-landing .back-to-top:hover { background: var(--ux-brand); }

/* Access gateway */
.access-gateway-page .access-card,
.access-gateway-page .quick-access a {
  outline: none;
}

.access-gateway-page .access-card:focus-visible {
  box-shadow: 0 0 0 5px rgba(23, 105, 223, .2), 0 28px 70px rgba(18, 33, 48, .15);
}

.access-gateway-page .card-cta {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.access-gateway-page .language-switch button {
  min-width: 44px;
  min-height: 44px;
}

.access-gateway-page .choice-heading h2,
.access-gateway-page .hero-copy h1,
.public-landing h1,
.public-landing h2,
.campus-page h1,
.campus-page h2 {
  text-wrap: balance;
}

/* Campus */
.campus-page .topbar { box-shadow: 0 8px 24px rgba(23, 23, 23, .05); }

.campus-page :is(.ghost, .select, .primary, .link-button, .course-open) {
  min-height: 44px;
}

.campus-page :is(input, select, textarea) { font-size: max(16px, 1em); }

.campus-page .course-card,
.campus-page .metrics article,
.campus-page .promise-grid article {
  transition-timing-function: var(--ux-ease);
}

.campus-page .empty {
  border-width: 2px;
  box-shadow: inset 0 0 0 7px rgba(248, 50, 13, .025);
}

@media (max-width: 680px) {
  .public-landing .back-to-top {
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }

  .public-landing .sticky-sale { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .access-gateway-page .gateway-nav-actions > a { min-height: 44px; display: inline-flex; align-items: center; }
  .campus-page .top-actions { flex-wrap: wrap; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .public-landing *,
  .public-landing *::before,
  .public-landing *::after,
  .access-gateway-page *,
  .access-gateway-page *::before,
  .access-gateway-page *::after,
  .campus-page *,
  .campus-page *::before,
  .campus-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .public-landing .reveal { opacity: 1 !important; transform: none !important; }
}

