/* What’s New — roadmap spotlight, bars, motion (CSS + JS; no Flash/Java) */

.whats-new-page {
  position: relative;
  overflow-x: hidden;
}

.wn-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.wn-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--blue-soft) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--blue-soft) 4%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}
.wn-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: wn-orb 14s ease-in-out infinite alternate;
}
.wn-bg-orb--a {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(0, 255, 159, 0.22), transparent 70%);
}
.wn-bg-orb--b {
  width: 380px;
  height: 380px;
  bottom: 10%;
  left: -100px;
  background: radial-gradient(circle, rgba(10, 92, 173, 0.35), transparent 70%);
  animation-delay: -4s;
}
@keyframes wn-orb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-24px, 18px) scale(1.08); }
}

.whats-new-page .portal-topbar,
.whats-new-page .legal-main,
.whats-new-page .portal-footer {
  position: relative;
  z-index: 1;
}

.whats-new-main {
  max-width: 960px;
}

.wn-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}
.wn-grad {
  background: linear-gradient(100deg, var(--blue-soft) 0%, #00ff9f 55%, #00c97e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wn-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted, #8b9aab);
  line-height: 1.55;
  max-width: 42rem;
}
.wn-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
}
.wn-jump a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #8b9aab;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #1a2d40;
  background: rgba(12, 24, 36, 0.8);
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.wn-jump a:hover {
  color: #00ff9f;
  border-color: rgba(0, 255, 159, 0.4);
  box-shadow: 0 0 16px rgba(0, 255, 159, 0.12);
}

.wn-load-status {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #8b9aab;
}

/* Spotlight section */
.wn-section--spotlight {
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.15rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 255, 159, 0.22);
  background:
    linear-gradient(165deg, rgba(10, 92, 173, 0.18) 0%, rgba(4, 10, 18, 0.5) 40%, rgba(0, 255, 159, 0.06) 100%),
    #0a1520;
  box-shadow:
    0 0 0 1px rgba(0, 255, 159, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.wn-section--spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(0, 255, 159, 0.04) 50%, transparent 60%);
  animation: wn-sheen 7s linear infinite;
  pointer-events: none;
}
@keyframes wn-sheen {
  from { transform: translateX(-40%); }
  to { transform: translateX(40%); }
}
.wn-section-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00ff9f;
  text-shadow: 0 0 12px rgba(0, 255, 159, 0.35);
}
.wn-section--spotlight h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #f0fdf8;
}
.wn-section--spotlight .wn-section-lead {
  color: #a8b8c8;
  max-width: 36rem;
}

/* Overall fulfillment */
.wn-overall {
  margin: 1.15rem 0 1.35rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--blue-soft) 25%, transparent);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}
.wn-overall-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.wn-overall-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.wn-overall-title {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #e8eef4;
}
.wn-overall-pct {
  font-size: 2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--blue-soft), #00ff9f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.wn-overall-note {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: #8b9aab;
}
.wn-overall-honesty {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #a8c4b0;
  line-height: 1.4;
}

/* Progress bars */
.wn-bar {
  position: relative;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.wn-bar--xl {
  height: 0.85rem;
}
.wn-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a5cad 0%, #00c97e 55%, #00ff9f 100%);
  box-shadow: 0 0 16px rgba(0, 255, 159, 0.45);
  transition: width 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.wn-bar-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: wn-bar-shine 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes wn-bar-shine {
  0%, 100% { opacity: 0; transform: translateX(-30%); }
  50% { opacity: 1; transform: translateX(30%); }
}

/* Roadmap cards — equal height, checklist scrolls inside */
.wn-roadmap-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 700px) {
  .wn-roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wn-road-card {
  display: flex;
  flex-direction: column;
  height: 22.5rem;
  min-height: 22.5rem;
  max-height: 22.5rem;
  padding: 1rem 1.05rem 0.65rem;
  border-radius: 14px;
  border: 1px solid #1a2d40;
  background: rgba(6, 16, 24, 0.92);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  opacity: 0;
  transform: translateY(16px);
  overflow: hidden;
}
.wn-road-card.is-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 0.04s);
}
.wn-road-card:hover {
  border-color: rgba(0, 255, 159, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 255, 159, 0.08);
}
.wn-road-card--done {
  border-color: rgba(0, 255, 159, 0.28);
}
.wn-road-card--active {
  border-color: color-mix(in srgb, var(--blue-soft) 40%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue-soft) 8%, transparent);
}
.wn-road-card--next {
  border-color: rgba(251, 191, 36, 0.28);
}
.wn-road-card-head {
  flex: 0 0 auto;
  min-height: 0;
}
.wn-road-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.wn-road-pct {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #00ff9f;
}
.wn-road-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: #e8eef4;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wn-road-sum {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #8b9aab;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wn-road-card .wn-bar {
  margin-bottom: 0.35rem;
}
.wn-road-count {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #7a8a9a;
}

.wn-check-list {
  list-style: none;
  margin: 0;
  padding: 0 0.15rem 0.55rem 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 159, 0.35) transparent;
  mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
}
.wn-check-list:hover,
.wn-check-list:focus {
  mask-image: none;
  -webkit-mask-image: none;
}
.wn-check-list::-webkit-scrollbar {
  width: 6px;
}
.wn-check-list::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 159, 0.28);
  border-radius: 999px;
}
.wn-check-list li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: #a8b8c8;
  line-height: 1.4;
}
.wn-check-list li.is-done {
  color: #7a9a88;
  opacity: 0.85;
}
.wn-check-list li.is-open {
  color: #c8d4e0;
}
.wn-check {
  flex-shrink: 0;
  width: 1rem;
  font-weight: 800;
  color: #5c6b7a;
}
.wn-check-list li.is-done .wn-check {
  color: #00ff9f;
}
.wn-check-list li.is-open .wn-check {
  color: #fbbf24;
}

/* History columns — fixed height scroll, not endless page */
.wn-history-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}
@media (min-width: 800px) {
  .wn-history-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}
.wn-history-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.wn-history-col h2 {
  margin: 0 0 0.35rem;
}
.wn-history-col .wn-section-lead {
  margin: 0 0 0.75rem;
}
.wn-scroll-stack {
  max-height: 28rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 92, 173, 0.55) transparent;
}
.wn-scroll-stack::-webkit-scrollbar {
  width: 6px;
}
.wn-scroll-stack::-webkit-scrollbar-thumb {
  background: rgba(10, 92, 173, 0.5);
  border-radius: 999px;
}
.wn-scroll-stack .wn-card {
  margin: 0;
  flex-shrink: 0;
}
#wn-latest .wn-card {
  margin-bottom: 0;
}

.wn-item-text {
  display: inline;
}
.wn-pri {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.35rem;
  margin-right: 0.35rem;
  border-radius: 4px;
  vertical-align: 0.1em;
  border: 1px solid transparent;
}
.wn-pri--p0 {
  color: #ff8a80;
  border-color: rgba(255, 100, 90, 0.45);
  background: rgba(255, 80, 70, 0.12);
}
.wn-pri--p1 {
  color: #ffcc80;
  border-color: rgba(255, 180, 80, 0.4);
  background: rgba(255, 160, 50, 0.1);
}
.wn-pri--p2 {
  color: #80cbc4;
  border-color: rgba(80, 200, 180, 0.35);
  background: rgba(40, 160, 140, 0.1);
}
.wn-pri--p3 {
  color: #90caf9;
  border-color: rgba(100, 160, 220, 0.35);
  background: rgba(60, 120, 200, 0.1);
}
.wn-priority-legend-wrap {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}
.wn-pri-legend-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a9aab;
}
.wn-pri-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.wn-pri-legend li {
  font-size: 0.84rem;
  color: #b0bec5;
  line-height: 1.4;
}

/* Badges (status) */
.wn-badge--done,
.wn-badge--shipped {
  color: #00ff9f;
  border-color: rgba(0, 255, 159, 0.35);
  background: rgba(0, 255, 159, 0.08);
}
.wn-badge--active {
  color: var(--blue-soft);
  border-color: color-mix(in srgb, var(--blue-soft) 40%, transparent);
  background: rgba(10, 92, 173, 0.2);
}
.wn-badge--next {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}
.wn-badge--later {
  color: #8b9aab;
  border-color: rgba(139, 154, 171, 0.35);
  background: rgba(139, 154, 171, 0.08);
}

.wn-agent-line {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #5c6b7a;
  font-style: italic;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .wn-bg-orb,
  .wn-section--spotlight::before,
  .wn-bar-glow {
    animation: none;
  }
  .wn-bar-fill {
    transition: none;
  }
  [data-reveal],
  .wn-road-card {
    opacity: 1;
    transform: none;
  }
}

/* —— Embed mode (Mission popup / iframe): no site chrome —— */
html.wn-embed,
html.wn-embed body,
body.wn-embed {
  background: #040a12;
}
html.wn-embed .wn-site-chrome,
body.wn-embed .wn-site-chrome {
  display: none !important;
}
html.wn-embed .wn-embed-only,
body.wn-embed .wn-embed-only {
  display: flex !important;
}
body.wn-embed .wn-embed-only[hidden] {
  display: flex !important;
}
body.wn-embed .whats-new-main {
  padding-top: 1rem;
  max-width: 920px;
}
body.wn-embed .wn-bg-orb {
  opacity: 0.28;
}
/* CTA buttons: never stack awkwardly */
.wn-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 1rem 0 0.75rem;
}
.wn-cta-row .btn {
  white-space: nowrap;
}
