/* Kill page-level horizontal scrollbar from hero ribbons / excel chips */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

#Home.landing-hero,
.scrollspy-example {
  max-width: 100%;
  overflow-x: clip;
}

/* Keep fixed navbar + privacy ticker above scrolling hero desktop */
nav.layout-navbar {
  z-index: 1030;
}

/* Top running row — L→R; sides light, center dark+thick (same font-weight = aligned) */
.site-ticker {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.55rem 0;
  border: 2px solid rgba(var(--bs-paper-bg-rgb, 255, 255, 255), 0.68);
  border-radius: 0.375rem;
  background: linear-gradient(
    90deg,
    rgba(234, 232, 253, 0.92) 0%,
    rgba(252, 229, 230, 0.88) 100%
  );
}

.site-ticker-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.site-ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: siteTickerLTR 42s linear infinite;
  will-change: transform;
}

.site-ticker-track--base {
  color: rgba(47, 43, 61, 0.42);
}

.site-ticker-emphasis {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  /* Only the middle third shows the strong layer */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 28%,
    #000 40%,
    #000 60%,
    transparent 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 28%,
    #000 40%,
    #000 60%,
    transparent 72%,
    transparent 100%
  );
}

.site-ticker-track--strong {
  /* Same weight as base so glyphs stay locked; darker + stroke = “bold” look */
  color: #1a1730;
  -webkit-text-stroke: 0.45px currentColor;
  text-shadow:
    0.4px 0 0 currentColor,
    -0.4px 0 0 currentColor;
}

.site-ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.35rem;
  padding-inline: 0.35rem;
}

.site-ticker-group span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.15rem 0.15rem 0.15rem 0.35rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.site-ticker-group span::after {
  content: "·";
  margin-left: 1.1rem;
  margin-right: 0.35rem;
  color: rgba(105, 108, 255, 0.45);
  font-weight: 700;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

/* from -50% → 0 so text travels left → right without a seam */
@keyframes siteTickerLTR {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 575.98px) {
  .site-ticker-emphasis {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      transparent 16%,
      #000 30%,
      #000 70%,
      transparent 84%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      transparent 16%,
      #000 30%,
      #000 70%,
      transparent 84%,
      transparent 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-ticker-track {
    animation: none;
    transform: translate3d(0, 0, 0);
  }
}

/* Hero product laptop + scene tabs + Coming Next product shell */

.hero-product {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 0.75rem;
  pointer-events: auto;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: -6% -16% -4% -14%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-ambient.is-live {
  opacity: 1;
}

/* Ribbon on pink side, hugging hero bottom-left rounded edge (white page below) */
.hero-tape {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(46vw, 560px);
  height: min(52%, 400px);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
  overflow: hidden;
}

.hero-tape.is-live {
  opacity: 1;
}

.hero-tape-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  /* Soft fade so the ribbon never looks like it hard-stops */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 88%,
    transparent 100%
  );
}

.hero-tape-svg-text {
  fill: rgba(70, 72, 180, 0.88);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Excel sheets ride the right pink curve (mirror of left text ribbon) */
.hero-sheet-ribbon {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(46vw, 560px);
  height: min(52%, 400px);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    270deg,
    transparent 0%,
    #000 8%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    270deg,
    transparent 0%,
    #000 8%,
    #000 90%,
    transparent 100%
  );
}

.hero-sheet-ribbon.is-live {
  opacity: 1;
}

.hero-sheet-ribbon-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hero-xlsx {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
  max-width: 210px;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(47, 43, 61, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(47, 43, 61, 0.1);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.94);
  will-change: transform, opacity;
}

.hero-xlsx-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 5px;
  background: #107c41;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-xlsx-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: #2f2b3d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
  .hero-tape,
  .hero-sheet-ribbon {
    width: min(52vw, 420px);
    height: min(48%, 320px);
  }

  .hero-tape-svg-text {
    font-size: 14px;
  }

  .hero-xlsx-name {
    max-width: 110px;
  }
}

@media (max-width: 575.98px) {
  .hero-tape,
  .hero-sheet-ribbon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sheet-ribbon.is-live .hero-xlsx {
    opacity: 0.9;
  }
}

/* Keep hero product shell still (no float / no tilt) */
.hero-product .animation-img,
.hero-product .hero-dashboard-img,
.hero-product .hero-laptop,
.hero-product .hero-scene-shot {
  animation: none !important;
  transform: none !important;
}

.hero-local-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(2, 122, 72, 0.28);
  background: rgba(2, 122, 72, 0.08);
  color: #027a48;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px) scale(0.92);
}

.hero-local-seal.is-drawn {
  animation: heroLocalSealIn 0.7s ease forwards;
}

.hero-local-seal-icon {
  flex-shrink: 0;
}

.hero-local-seal-body,
.hero-local-seal-shackle {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.hero-local-seal.is-drawn .hero-local-seal-body,
.hero-local-seal.is-drawn .hero-local-seal-shackle {
  animation: heroLocalSealStroke 0.85s ease forwards;
}

.hero-local-seal.is-drawn .hero-local-seal-shackle {
  animation-delay: 0.15s;
}

@keyframes heroLocalSealIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroLocalSealStroke {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-local-seal {
    opacity: 1;
    transform: none;
  }

  .hero-local-seal-body,
  .hero-local-seal-shackle {
    stroke-dashoffset: 0;
  }

  .hero-local-seal.is-drawn,
  .hero-local-seal.is-drawn .hero-local-seal-body,
  .hero-local-seal.is-drawn .hero-local-seal-shackle {
    animation: none;
  }
}

.hero-scene-tabs {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(47, 43, 61, 0.1);
  box-shadow: 0 4px 16px rgba(47, 43, 61, 0.05);
  pointer-events: auto;
}

.hero-scene-tab {
  border: 0;
  background: transparent;
  color: #6f6b7d;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-scene-tab:hover,
.hero-scene-tab:focus-visible {
  color: #2f2b3d;
  outline: none;
}

.hero-scene-tab.is-active {
  background: #696cff;
  color: #fff;
}

.hero-laptop {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(47, 43, 61, 0.12);
  background: #fff;
  box-shadow: 0 18px 48px rgba(47, 43, 61, 0.12);
  overflow: hidden;
  text-align: left;
}

.hero-laptop-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: #f5f5f7;
  border-bottom: 1px solid rgba(47, 43, 61, 0.08);
}

.hero-laptop-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d0d0d5;
}

.hero-laptop-dot:nth-child(1) {
  background: #ff5f57;
}

.hero-laptop-dot:nth-child(2) {
  background: #febc2e;
}

.hero-laptop-dot:nth-child(3) {
  background: #28c840;
}

.hero-laptop-title {
  margin-left: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6f6b7d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-laptop-screen {
  position: relative;
  width: 100%;
  max-width: 100%;
  /* Match finlegia-desktop.png (1918×995) so the shot is not cropped */
  aspect-ratio: 1918 / 995;
  min-height: 0;
  background: #fff;
  overflow: hidden;
}

.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-laptop-screen .hero-scene[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-scene.is-active {
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  animation: heroSceneIn 0.28s ease;
}

.hero-dashboard-img {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  height: 100%;
  inline-size: 100% !important;
  margin: 0 !important;
  background: #fff;
}

.hero-scene-shot {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: top center;
  border-radius: 0;
}

.hero-faux {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.hero-faux-main--full {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
  padding: 1.05rem 1.2rem 1.15rem;
}

.hero-faux--export {
  grid-template-columns: 1fr;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.hero-export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  flex: 1 1 auto;
  align-content: start;
}

.hero-export-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(105, 108, 255, 0.45) transparent;
}

.hero-export-scroll::-webkit-scrollbar {
  width: 6px;
}

.hero-export-scroll::-webkit-scrollbar-thumb {
  background: rgba(105, 108, 255, 0.4);
  border-radius: 999px;
}

.hero-acc {
  border: 1px solid rgba(47, 43, 61, 0.1);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 0.55rem;
  overflow: hidden;
}

.hero-acc:last-child {
  margin-bottom: 0;
}

.hero-acc-toggle {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  background: #fafafa;
  padding: 0.7rem 0.85rem;
  text-align: left;
  cursor: pointer;
  color: #2f2b3d;
}

.hero-acc-toggle:hover,
.hero-acc-toggle:focus-visible {
  background: #f3f3f8;
  outline: none;
}

.hero-acc-title {
  font-size: 0.875rem;
  font-weight: 700;
}

.hero-acc-count {
  font-size: 0.7rem;
  font-weight: 800;
  color: #696cff;
  background: rgba(105, 108, 255, 0.12);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}

.hero-acc-chevron {
  color: #6f6b7d;
  transition: transform 0.2s ease;
}

.hero-acc.is-open .hero-acc-chevron {
  transform: rotate(180deg);
}

.hero-acc.is-open .hero-acc-toggle {
  border-bottom: 1px solid rgba(47, 43, 61, 0.08);
}

.hero-acc-panel {
  padding: 0.55rem 0.65rem 0.7rem;
}

.hero-acc-panel[hidden] {
  display: none !important;
}

.hero-acc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.hero-acc-list li {
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(47, 43, 61, 0.08);
  background: #fafafa;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2f2b3d;
  line-height: 1.3;
}

.hero-faux-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 0.75rem;
  background: #2f2b3d;
}

.hero-faux-sidebar span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-faux-sidebar span.is-on {
  background: #696cff;
  box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.28);
}

.hero-faux-main {
  padding: 1rem 1.15rem 1.25rem;
  background: #fff;
}

.hero-faux-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.hero-faux-head strong {
  font-size: 0.95rem;
  color: #2f2b3d;
}

.hero-faux-head em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: #027a48;
  background: rgba(2, 122, 72, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.hero-faux-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.hero-faux-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(47, 43, 61, 0.08);
  background: #fafafa;
  font-size: 0.875rem;
  color: #2f2b3d;
  font-weight: 500;
}

.hero-faux-list b {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}

.hero-faux-list b.ok {
  color: #027a48;
  background: rgba(2, 122, 72, 0.1);
}

.hero-faux-list b.warn {
  color: #b54708;
  background: rgba(247, 144, 9, 0.14);
}

.hero-export-group h6 {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #696cff;
}

.hero-export-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.hero-export-group li {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(47, 43, 61, 0.08);
  background: #fafafa;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2f2b3d;
  line-height: 1.3;
}

.hero-export-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(47, 43, 61, 0.08);
}

.hero-export-more {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6f6b7d;
}

.hero-export-saved {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #027a48;
  background: rgba(2, 122, 72, 0.1);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
}

.hero-faux-sheet {
  display: grid;
  gap: 0.4rem;
}

.hero-faux-row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid rgba(47, 43, 61, 0.06);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2f2b3d;
}

.hero-faux-row.is-sub {
  font-weight: 500;
  color: #6f6b7d;
  padding-left: 1rem;
}

.hero-faux-row span:not(:first-child) {
  height: 8px;
  border-radius: 999px;
  background: rgba(47, 43, 61, 0.1);
}

.hero-product-caption {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #027a48;
  opacity: 0;
  transform: translateY(6px);
}

.hero-product-caption.is-shown {
  animation: heroLocalCaptionIn 0.55s ease forwards;
  animation-delay: 0.35s;
}

@keyframes heroLocalCaptionIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-product-caption {
    opacity: 1;
    transform: none;
  }

  .hero-product-caption.is-shown {
    animation: none;
  }
}

@keyframes heroSceneIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .hero-product {
    padding: 0 0.5rem;
  }

  .hero-scene-tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-laptop-screen {
    min-height: 0;
  }

  .hero-faux {
    grid-template-columns: 56px 1fr;
  }

  .landing-hero .hero-animation-img {
    margin-block-end: -6rem;
  }
}

@media (max-width: 575.98px) {
  .hero-product {
    padding: 0 0.25rem;
  }

  .hero-scene-tabs {
    gap: 0.2rem;
    padding: 0.22rem;
    margin-bottom: 0.65rem;
  }

  .hero-scene-tab {
    padding: 0.38rem 0.55rem;
    font-size: 0.72rem;
  }

  .hero-laptop {
    border-radius: 10px;
  }

  .hero-laptop-chrome {
    padding: 0.45rem 0.65rem;
    gap: 0.3rem;
  }

  .hero-laptop-dot {
    width: 7px;
    height: 7px;
  }

  .hero-laptop-title {
    font-size: 0.68rem;
  }

  .hero-local-seal {
    font-size: 0.58rem;
    padding: 0.15rem 0.4rem;
  }

  .hero-laptop-screen {
    min-height: 0;
    aspect-ratio: 1918 / 995;
  }

  .hero-faux {
    grid-template-columns: 44px 1fr;
  }

  .hero-faux--export {
    grid-template-columns: 1fr;
  }

  .hero-export-grid {
    grid-template-columns: 1fr;
  }

  .hero-acc-list {
    grid-template-columns: 1fr;
  }

  .hero-faux-list li {
    font-size: 0.8rem;
  }

  .hero-faux-main--full {
    padding: 0.75rem 0.8rem 0.85rem;
  }

  .hero-export-foot {
    display: none;
  }

  .landing-hero .hero-animation-img {
    margin-block-end: -3rem;
  }

  .landing-hero-blank {
    padding-block-start: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scene.is-active {
    animation: none;
  }
}

.landing-hero .hero-animation-img {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 100%;
  pointer-events: auto;
  overflow: hidden;
}

.landing-hero .hero-animation-img .hero-dashboard-img {
  inline-size: 100% !important;
  max-width: 100%;
}

.landing-hero,
.landing-hero .container {
  overflow: visible;
}

.landing-features,
.landing-coming-next,
#About {
  position: relative;
  z-index: 1;
}

.landing-coming-next .coming-next-lead {
  max-width: 640px;
}

.coming-next-shell {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid rgba(47, 43, 61, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(47, 43, 61, 0.08);
  overflow: hidden;
}

.coming-next-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: #f5f5f7;
  border-bottom: 1px solid rgba(47, 43, 61, 0.08);
}

.coming-next-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d0d0d5;
}

.coming-next-dot:nth-child(1) {
  background: #ff5f57;
}

.coming-next-dot:nth-child(2) {
  background: #febc2e;
}

.coming-next-dot:nth-child(3) {
  background: #28c840;
}

.coming-next-chrome-title {
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  color: #6f6b7d;
  font-weight: 500;
}

.coming-next-body {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  min-height: 320px;
}

.coming-next-rail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
  background: #fafafa;
  border-right: 1px solid rgba(47, 43, 61, 0.08);
}

.coming-next-rail-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 0.7rem 0.65rem;
  color: #2f2b3d;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.coming-next-rail-item:hover,
.coming-next-rail-item:focus-visible {
  background: #fff;
  border-color: rgba(105, 108, 255, 0.25);
  outline: none;
}

.coming-next-rail-item.is-active {
  background: #fff;
  border-color: rgba(105, 108, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.1);
}

.coming-next-rail-item:not(.is-revealed) {
  animation: comingNextPulse 2.4s ease-in-out infinite;
}

.coming-next-rail-item.is-active:not(.is-revealed),
.coming-next-rail-item.is-revealed {
  animation: none;
}

.coming-next-lock {
  display: inline-flex;
  color: #6f6b7d;
}

.coming-next-rail-item.is-revealed .coming-next-lock {
  color: #696cff;
}

.coming-next-rail-text {
  position: relative;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.coming-next-masked {
  display: inline-block;
  filter: blur(5px);
  user-select: none;
  letter-spacing: 0.02em;
}

.coming-next-revealed {
  display: none;
}

.coming-next-rail-item.is-revealed .coming-next-masked {
  display: none;
}

.coming-next-rail-item.is-revealed .coming-next-revealed {
  display: inline;
}

.coming-next-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #696cff;
  background: rgba(105, 108, 255, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  white-space: nowrap;
}

.coming-next-stage {
  padding: 1.25rem 1.35rem 1.5rem;
}

.coming-next-panel[hidden] {
  display: none !important;
}

.coming-next-panel.is-active {
  animation: comingNextReveal 0.35s ease;
}

.coming-next-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.coming-next-panel-head h5 {
  margin: 0;
  font-weight: 700;
}

.coming-next-chip {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #027a48;
  background: rgba(2, 122, 72, 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}

.coming-next-desc {
  color: #6f6b7d;
  font-size: 0.9375rem;
  max-width: 36rem;
}

.coming-next-faux {
  border: 1px dashed rgba(47, 43, 61, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfbff 0%, #f7f7fb 100%);
  padding: 1rem;
}

.coming-next-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.coming-next-steps span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(47, 43, 61, 0.06);
  color: #6f6b7d;
}

.coming-next-steps .is-done {
  background: rgba(2, 122, 72, 0.1);
  color: #027a48;
}

.coming-next-steps .is-current {
  background: rgba(105, 108, 255, 0.14);
  color: #696cff;
}

.coming-next-rows {
  display: grid;
  gap: 0.45rem;
}

.coming-next-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.5fr;
  gap: 0.45rem;
}

.coming-next-row span {
  height: 10px;
  border-radius: 999px;
  background: rgba(47, 43, 61, 0.1);
}

.coming-next-row span.ok {
  background: rgba(2, 122, 72, 0.35);
}

.coming-next-row span.warn {
  background: rgba(247, 144, 9, 0.45);
}

.coming-next-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.coming-next-col {
  display: grid;
  gap: 0.4rem;
}

.coming-next-col strong {
  font-size: 0.75rem;
  color: #6f6b7d;
}

.coming-next-col i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(47, 43, 61, 0.1);
  font-style: normal;
}

.coming-next-bridge {
  width: 28px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(105, 108, 255, 0.55) 0 6px,
    transparent 6px 10px
  );
  animation: comingNextBridge 1.4s linear infinite;
}

.coming-next-faux--docs {
  display: grid;
  gap: 0.55rem;
}

.coming-next-doc {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.coming-next-doc-icon {
  width: 28px;
  height: 34px;
  border-radius: 4px;
  background: rgba(105, 108, 255, 0.15);
  border: 1px solid rgba(105, 108, 255, 0.25);
  flex-shrink: 0;
}

.coming-next-doc > span:last-child {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(47, 43, 61, 0.1);
}

.coming-next-vote-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.coming-next-vote-btns .btn.is-selected {
  background: #696cff;
  border-color: #696cff;
  color: #fff;
}

@keyframes comingNextPulse {
  0%,
  100% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.08);
  }
}

@keyframes comingNextReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes comingNextBridge {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 16px 0;
  }
}

@media (max-width: 767.98px) {
  .coming-next-body {
    grid-template-columns: 1fr;
  }

  .coming-next-rail {
    border-right: 0;
    border-bottom: 1px solid rgba(47, 43, 61, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .coming-next-rail-item:not(.is-revealed),
  .coming-next-panel.is-active,
  .coming-next-bridge {
    animation: none;
  }
}
