/* Keep the page atmosphere separate from fully readable foreground content. */
.editorial-site {
  --page-backdrop: url("../media/errailium-atmosphere-diffuse.463fa1f3b07efd9c6eb827b498e9af7f.webp");
  --backdrop-opacity: .72;
  background: #fff;
  position: relative;
  isolation: isolate;
}
.editorial-site::before, .editorial-site::after {
  content: ''; position: fixed; inset: 0; pointer-events: none;
}
.editorial-site::before {
  z-index: -2; background-image: var(--page-backdrop);
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: var(--backdrop-opacity);
}
.editorial-site::after {
  z-index: -1;
  background: linear-gradient(90deg, #ffffff0a, #ffffff45 38%, #ffffff38 70%, #ffffff0a);
}
.site-header {
  background: #ffffffd9; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { background: #fffffff0; box-shadow: 0 5px 28px #14283e0c; }
.site-header::after {
  content: ''; position: absolute; inset: auto 0 -1px; height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transform: scaleX(var(--reading-progress, 0)); transform-origin: left; pointer-events: none;
}
.chapter-nav { background: #f3f5f6cc; }
.site-footer { background: #f3f5f6d9; }
.form-panel, .showcase-contact-form, .login-form-panel { background: #f3f5f6ed; }
.offer-v2-simulator-section { background: #f3f5f6eb; }
.offer-v2-formula, .offer-v2-option-card { background: #ffffffeb; }
.hero-photo, .login-photo { box-shadow: 0 20px 52px -28px #14283e55; }
.button, .offer-v2-button, .public-button, .primary-button, .nav-access {
  transition: background-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
.text-link { transition: color .2s ease, text-decoration-color .2s ease; }
.text-link:hover { text-decoration-color: var(--gold); }
.nav-dropdown[open] > .nav-panel { animation: navigation-open .2s ease-out; }
@keyframes navigation-open {
  from { transform: translateY(3px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}
@media (hover: hover) and (pointer: fine) {
  .button:hover, .offer-v2-button:hover, .public-button:hover, .primary-button:hover {
    transform: translateY(-1px); box-shadow: 0 7px 18px #14283e1c;
  }
  .audience-grid article, .feature-grid article, .software-tile,
  .offer-v2-formula, .offer-v2-option-card {
    transition: border-color .25s ease, box-shadow .25s ease;
  }
  .audience-grid article:hover, .feature-grid article:hover, .software-tile:hover {
    border-color: var(--gold-light);
  }
  .offer-v2-formula:hover, .offer-v2-option-card:hover {
    box-shadow: 0 12px 28px -18px #14283e40;
  }
}
.hero-photo figcaption, .login-photo figcaption { z-index: 2; }
.is-motion-paused [data-moment] > img { animation-play-state: paused; }
.journey-widget { margin-top: 42px; }
.journey-controls { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.journey-controls[hidden], .journey-panel[hidden], .journey-play[hidden] { display: none; }
.journey-tabs { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.journey-tab, .journey-play {
  font: 600 15px/1.4 var(--sans); cursor: pointer; color: #e1e7ed;
  background: transparent; border: 1px solid #ffffff35; border-radius: 6px;
}
.journey-tab { display: flex; align-items: center; gap: 8px; padding: 12px 15px; position: relative; overflow: hidden; }
.journey-tab span { color: #c1cbd6; font-size: 12px; }
.journey-tab[aria-selected=true] { background: #f4cc87; border-color: #f4cc87; color: #14283e; }
.journey-tab[aria-selected=true] span { color: #594324; }
.journey-tab::after {
  content: ''; position: absolute; inset: auto 0 0; height: 2px;
  background: #14283e; transform: scaleX(0); transform-origin: left;
}
.journey-widget.is-playing .journey-tab[aria-selected=true]::after { animation: journey-reading-time 5.5s linear both; }
@keyframes journey-reading-time { to { transform: scaleX(1); } }
.journey-play { display: inline-flex; align-items: center; gap: 9px; padding: 11px 13px; min-height: 44px; }
.journey-play [data-play-icon] { width: 14px; font-size: 17px; line-height: 1; }
.journey-tab:focus-visible, .journey-play:focus-visible, .journey-panel:focus-visible {
  outline: 2px solid #f4cc87; outline-offset: 4px;
}
.journey-display { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; }
.journey-widget.is-enhanced .journey-panels { display: grid; }
.journey-widget.is-enhanced .journey-panel { grid-area: 1 / 1; }
/* Reserve the tallest step so automatic playback never moves the page layout. */
.journey-widget.is-enhanced .journey-panel[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.journey-panel { min-height: 174px; padding: 12px 0; }
.journey-eyebrow { font: 600 13px/1.5 var(--sans); color: #f4cc87; letter-spacing: .03em; }
.journey-panel h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 2.3vw, 34px); line-height: 1.15; margin: 15px 0 12px; }
.journey-panel p { font-size: 16px; line-height: 1.65; margin: 0; max-width: 48ch; }
.journey-map { border: 1px solid #ffffff25; border-radius: 10px; padding: 36px 20px 25px; background: #ffffff07; }
.journey-route { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; isolation: isolate; }
.journey-route::before { content: ''; position: absolute; left: 10%; right: 10%; top: 27px; height: 1px; background: #ffffff35; z-index: -1; }
.journey-node { display: flex; align-items: center; flex-direction: column; gap: 12px; color: #c1cbd6; }
.journey-node > span {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: #21374d; border: 1px solid #ffffff35;
  transition: background-color .35s, color .35s, border-color .35s;
}
.journey-node svg { width: 29px; height: 29px; }
.journey-node small { font-size: 13px; line-height: 1.3; }
.journey-node.is-current > span { color: #14283e; background: #f4cc87; border-color: #f4cc87; }
.journey-map-caption { display: flex; justify-content: center; align-items: center; gap: 8px; color: #c1cbd6; font-size: 13px; margin-top: 28px; text-align: center; }
.journey-route-dot { width: 6px; height: 6px; border-radius: 50%; background: #f4cc87; flex: 0 0 6px; }
@media (hover: hover) {
  .journey-tab:hover:not([aria-selected=true]), .journey-play:hover { background: #ffffff12; border-color: #ffffff80; }
}
@media (max-width: 1100px) {
  .journey-controls { align-items: flex-start; flex-direction: column; gap: 14px; }
  .journey-display { gap: 28px; }
}
@media (max-width: 760px) {
  .journey-display { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .journey-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey-tab { padding: 12px 8px; flex-direction: column; gap: 4px; font-size: 14px; }
  .journey-panel { min-height: 164px; }
  .journey-map { padding: 26px 10px 20px; }
  .journey-node > span { width: 44px; height: 44px; }
  .journey-route::before { top: 22px; }
  .journey-node small { font-size: 12px; }
  .journey-map-caption { font-size: 12px; margin-top: 20px; }
}
@media (max-width: 380px) {
  .journey-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-panel { min-height: 214px; }
  .journey-node > span { width: 36px; height: 36px; }
  .journey-node svg { width: 24px; height: 24px; }
  .journey-route::before { top: 18px; }
  .journey-node small { font-size: 12px; }
}
@media (max-width: 680px) {
  .editorial-site { --backdrop-opacity: .6; }
  .hero-photo, .login-photo { box-shadow: 0 12px 30px -20px #14283e55; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover, .offer-v2-button:hover, .public-button:hover, .primary-button:hover { transform: none; }
}
