/* v0.11.9 — Hub-node mark and one blueprint per page */

body {
  --bg-light: url("/static/bg-home-light.svg?v=0.11.9");
  --bg-dark: url("/static/bg-home-dark.svg?v=0.11.9");
  background-color: #f4efe4;
  background-image:
    var(--bg-light),
    linear-gradient(180deg, #fbf7ee 0%, #f4efe4 62%, #f8f3e8 100%);
  background-size: cover, 100% 100%;
  background-position: center top, 0 0;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

html[data-theme="dark"] body {
  background-color: #090b0e;
  background-image:
    var(--bg-dark),
    linear-gradient(180deg, #0d1015 0%, #090b0e 60%, #0c0f14 100%);
}

body.page-home {
  --bg-light: linear-gradient(180deg, #fbf7ee 0%, #f4efe4 62%, #f8f3e8 100%);
  --bg-dark: linear-gradient(180deg, #0d1015 0%, #090b0e 60%, #0c0f14 100%);
  position: relative;
}
body.page-home > .site-header {
  z-index: 50;
}
.lp-review footer b { color: var(--ink); }
html[data-theme="dark"] .lp-review footer b { color: #fff; }
body.page-home > main,
body.page-home > .site-footer {
  position: relative;
  z-index: 1;
}

/* The home page is a sheet of all page wallpapers; scroll changes the sheet. */
.home-wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #f4efe4;
}
html[data-theme="dark"] .home-wallpaper {
  background: #090b0e;
}
.home-wallpaper-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity .65s ease;
  will-change: opacity;
}
.home-wallpaper-slide.is-active {
  opacity: 1;
}
.hw-home {
  --hw-light: url("/static/bg-home-light.svg?v=0.11.9");
  --hw-dark: url("/static/bg-home-dark.svg?v=0.11.9");
}
.hw-demo {
  --hw-light: url("/static/bg-demo-light.svg?v=0.11.9");
  --hw-dark: url("/static/bg-demo-dark.svg?v=0.11.9");
}
.hw-pricing {
  --hw-light: url("/static/bg-pricing-light.svg?v=0.11.9");
  --hw-dark: url("/static/bg-pricing-dark.svg?v=0.11.9");
}
.hw-faq {
  --hw-light: url("/static/bg-faq-light.svg?v=0.11.9");
  --hw-dark: url("/static/bg-faq-dark.svg?v=0.11.9");
}
.hw-contacts {
  --hw-light: url("/static/bg-contacts-light.svg?v=0.11.9");
  --hw-dark: url("/static/bg-contacts-dark.svg?v=0.11.9");
}
.hw-privacy {
  --hw-light: url("/static/bg-privacy-light.svg?v=0.11.9");
  --hw-dark: url("/static/bg-privacy-dark.svg?v=0.11.9");
}
.hw-terms {
  --hw-light: url("/static/bg-terms-light.svg?v=0.11.9");
  --hw-dark: url("/static/bg-terms-dark.svg?v=0.11.9");
}
.hw-login {
  --hw-light: url("/static/bg-login-light.svg?v=0.11.9");
  --hw-dark: url("/static/bg-login-dark.svg?v=0.11.9");
}
.hw-register {
  --hw-light: url("/static/bg-register-light.svg?v=0.11.9");
  --hw-dark: url("/static/bg-register-dark.svg?v=0.11.9");
}
.hw-account {
  --hw-light: url("/static/bg-account-light.svg?v=0.11.9");
  --hw-dark: url("/static/bg-account-dark.svg?v=0.11.9");
}
.hw-admin {
  --hw-light: url("/static/bg-admin-light.svg?v=0.11.9");
  --hw-dark: url("/static/bg-admin-dark.svg?v=0.11.9");
}
.hw-error {
  --hw-light: url("/static/bg-error-light.svg?v=0.11.9");
  --hw-dark: url("/static/bg-error-dark.svg?v=0.11.9");
}
.home-wallpaper-slide {
  background-image:
    var(--hw-light),
    var(--hw-light),
    linear-gradient(180deg, rgba(251, 247, 238, .2), rgba(244, 239, 228, .5));
  background-size: cover, cover, 100% 100%;
  background-position: center, center, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat;
  filter: saturate(1.08);
}
html[data-theme="dark"] .home-wallpaper-slide {
  background-image:
    var(--hw-dark),
    var(--hw-dark),
    linear-gradient(180deg, rgba(9, 11, 14, .24), rgba(9, 11, 14, .58));
  background-size: cover, cover, 100% 100%;
  background-position: center, center, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
@media (max-width: 640px) {
  .home-wallpaper-slide {
    background-size: 100% 100%, 100% 100%, 100% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-wallpaper-slide { transition: none; }
}
body.page-pricing {
  --bg-light: url("/static/bg-pricing-light.svg?v=0.11.9");
  --bg-dark: url("/static/bg-pricing-dark.svg?v=0.11.9");
}
body.page-faq {
  --bg-light: url("/static/bg-faq-light.svg?v=0.11.9");
  --bg-dark: url("/static/bg-faq-dark.svg?v=0.11.9");
}
body.page-contacts {
  --bg-light: url("/static/bg-contacts-light.svg?v=0.11.9");
  --bg-dark: url("/static/bg-contacts-dark.svg?v=0.11.9");
}
body.page-legal-privacy {
  --bg-light: url("/static/bg-privacy-light.svg?v=0.11.9");
  --bg-dark: url("/static/bg-privacy-dark.svg?v=0.11.9");
}
body.page-legal-terms {
  --bg-light: url("/static/bg-terms-light.svg?v=0.11.9");
  --bg-dark: url("/static/bg-terms-dark.svg?v=0.11.9");
}
body.page-login {
  --bg-light: url("/static/bg-login-light.svg?v=0.11.9");
  --bg-dark: url("/static/bg-login-dark.svg?v=0.11.9");
}
body.page-register {
  --bg-light: url("/static/bg-register-light.svg?v=0.11.9");
  --bg-dark: url("/static/bg-register-dark.svg?v=0.11.9");
}
body.page-error {
  --bg-light: url("/static/bg-error-light.svg?v=0.11.9");
  --bg-dark: url("/static/bg-error-dark.svg?v=0.11.9");
}
body.demo-body {
  --bg-light: url("/static/bg-demo-light.svg?v=0.11.9");
  --bg-dark: url("/static/bg-demo-dark.svg?v=0.11.9");
}
body.account-body {
  --bg-light: url("/static/bg-account-light.svg?v=0.11.9");
  --bg-dark: url("/static/bg-account-dark.svg?v=0.11.9");
}
body.admin-body {
  --bg-light: url("/static/bg-admin-light.svg?v=0.11.9");
  --bg-dark: url("/static/bg-admin-dark.svg?v=0.11.9");
}
body.demo-body,
body.account-body,
body.admin-body {
  animation-name: portal-art-in-dark;
  background-color: #090b0e;
  background-image:
    var(--bg-dark),
    linear-gradient(180deg, #0d1015 0%, #090b0e 60%, #0c0f14 100%);
}
html[data-theme="dark"] body.demo-body,
html[data-theme="dark"] body.account-body,
html[data-theme="dark"] body.admin-body {
  background-image:
    var(--bg-dark),
    linear-gradient(180deg, #0d1015 0%, #090b0e 60%, #0c0f14 100%);
}
body.demo-body .brand-mark,
body.account-body .brand-mark,
body.admin-body .brand-mark {
  background: #2347ff;
  color: #fff;
}

/* The mark: three connected nodes around one amber hub. No serpentine S. */
.brand-mark {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 15px 15px 5px 15px;
  background: #2347ff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .2),
    0 7px 18px rgba(35, 71, 255, .2);
}
.brand-mark::after { display: none; }
.brand-mark svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* A slight, quiet arrival for the art; the image itself stays fixed. */
@media (prefers-reduced-motion: no-preference) {
  body {
    animation: portal-art-in .5s ease-out both;
  }
}
@keyframes portal-art-in {
  from { background-color: color-mix(in srgb, #f4efe4 82%, #fff); }
  to { background-color: #f4efe4; }
}
html[data-theme="dark"] body {
  animation-name: portal-art-in-dark;
}
@keyframes portal-art-in-dark {
  from { background-color: #11161d; }
  to { background-color: #090b0e; }
}

@media (max-width: 640px) {
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 13px 13px 4px 13px; }
  .brand-mark svg { width: 26px; height: 26px; }
}
