:root {
  --primary: #2B6BF3;
  --primary-2: #5B93FF;
  --accent: #2B6BF3;
  --accent-dark: #1B2E6B;
  --accent-on-dark: #D9CCFF;
  --on-primary: #FFFFFF;
  --landing-text: #111827;
  --landing-muted: rgba(20, 18, 31, 0.66);
  --landing-muted-strong: rgba(20, 18, 31, 0.82);
  --landing-card-bg: rgba(255, 255, 255, 0.76);
  --landing-card-border: rgba(255, 255, 255, 0.86);
  --landing-font: 'Inter', 'Segoe UI', sans-serif;
  --landing-shell-width: 1280px;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --bg: #F7F8FB;
  --text: var(--landing-text);
  --muted: var(--landing-muted);
}

body {
  font-family: var(--landing-font);
  color: var(--landing-text);
}

body.app-shell--guest-landing {
  padding-top: 76px;
}

body.app-shell--guest-landing .container,
body.app-shell--guest-auth .landing-navbar .container {
  width: min(100%, var(--landing-shell-width));
  max-width: var(--landing-shell-width);
}

body.app-shell--guest-landing .landing-navbar__inner,
body.app-shell--guest-auth .landing-navbar__inner {
  max-width: var(--landing-shell-width);
  margin-inline: auto;
}

.landing-doc-hero {
  padding: calc(var(--navbar-height) + 3.5rem) 0 2.75rem;
  background:
    radial-gradient(160% 160% at 110% -20%, rgba(43, 107, 243, 0.32), rgba(43, 107, 243, 0)),
    linear-gradient(180deg, #f7f8fb 0%, #f1e9ff 75%, rgba(255, 255, 255, 0.92) 100%);
  text-align: center;
}

.landing-doc-hero .landing-doc__title {
  font-size: clamp(2.3rem, 4.5vw, 3.3rem);
  line-height: 1.08;
  margin-bottom: 0.8rem;
}

.landing-doc-hero .landing-doc__meta {
  font-size: 1rem;
  color: var(--landing-muted-strong);
  margin: 0;
}

.landing-doc {
  padding: 0 0 5rem;
  background:
    radial-gradient(140% 140% at 120% -10%, rgba(43, 107, 243, 0.12), rgba(43, 107, 243, 0)),
    linear-gradient(180deg, rgba(248, 243, 255, 0.92) 0%, #ffffff 65%);
}

.landing-doc__container {
  max-width: 900px;
  margin: 0 auto;
}

.landing-doc__container--wide {
  max-width: 1080px;
}

.landing-doc__header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.landing-doc__header--center {
  text-align: center;
}

.landing-doc__title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.landing-doc__meta {
  color: var(--landing-muted);
  font-size: 0.95rem;
}

.landing-doc__body > * + * {
  margin-top: 1.5rem;
}

.landing-doc__body h2 {
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.landing-doc__body p {
  color: var(--landing-muted-strong);
  line-height: 1.65;
}

.landing-doc__body ul:not(.list-unstyled) {
  padding-left: 1.1rem;
  color: var(--landing-muted-strong);
}

.landing-doc__footer {
  margin-top: 3rem;
}

.landing-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: 0 24px 60px -40px rgba(20, 18, 31, 0.35);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid rgba(43, 107, 243, 0.08);
}

.landing-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.landing-card__lead {
  color: var(--landing-muted-strong);
  margin-bottom: 1.5rem;
}

.landing-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--landing-muted-strong);
}

.landing-card__list a {
  color: var(--landing-text);
  text-decoration: underline;
}

.landing-card--form {
  border: 1px solid rgba(43, 107, 243, 0.12);
}


@keyframes landingAccentPulse {
  0% { background-position: 0% 50%; box-shadow: 0 20px 35px -26px rgba(146, 137, 24, 0.55); }
  50% { background-position: 100% 50%; box-shadow: 0 28px 45px -22px rgba(146, 137, 24, 0.62); }
  100% { background-position: 0% 50%; box-shadow: 0 20px 35px -26px rgba(146, 137, 24, 0.55); }
}

@keyframes ksHeroFloat {
  0%, 100% { transform: translate3d(0, 4px, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -26px, 0) rotate(1.4deg); }
}

@keyframes ksHeroRocket {
  0%, 100% { transform: translate3d(-4px, 2px, 0) rotate(-10deg); }
  50% { transform: translate3d(12px, -18px, 0) rotate(6deg); }
}

@keyframes ksHeroSlider {
  0%, 100% { transform: translate3d(6px, -4px, 0) rotate(3deg); }
  50% { transform: translate3d(-24px, 18px, 0) rotate(-4deg); }
}

@keyframes ksCtaIconFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(2deg); }
}

.landing-navbar {
  --nav-text: var(--landing-text);
  --nav-muted: var(--landing-muted);
  --nav-hover: var(--landing-muted-strong);
  --bs-navbar-color: var(--landing-muted);
  --bs-navbar-hover-color: var(--landing-muted-strong);
  --bs-navbar-active-color: var(--landing-text);
  --bs-navbar-brand-color: var(--landing-text);
  --bs-navbar-brand-hover-color: var(--landing-text);
  --bs-navbar-toggler-border-color: rgba(20, 18, 31, 0.12);
  --bs-navbar-toggler-focus-width: 0;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' stroke='rgba(20,18,31,0.85)' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='6' y1='10' x2='26' y2='10'/%3E%3Cline x1='6' y1='16' x2='26' y2='16'/%3E%3Cline x1='6' y1='22' x2='26' y2='22'/%3E%3C/svg%3E");

  position: fixed; 
  top: 0;          
  left: 0;
  width: 100%;
  padding: clamp(0.2rem, 0.55vw, 0.5rem) clamp(0.45rem, 1.4vw, 0.9rem);
  z-index: 1080;
  background: transparent;
  transition: box-shadow 0.4s ease; 
}

.landing-navbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 1vw, 0.8rem);
  width: 100%;
  padding: clamp(0.12rem, 0.38vw, 0.28rem) clamp(0.55rem, 1.2vw, 0.95rem);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px -25px rgba(140, 104, 220, 0.25);
  transition: box-shadow 0.4s ease;
}

.landing-navbar.is-scrolled .landing-navbar__inner {
  box-shadow: 0 22px 45px -30px rgba(64, 51, 114, 0.45);
}

.landing-navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--landing-text) !important;
}

.landing-navbar__brand--wordmark {
  gap: clamp(0.4rem, 1vw, 0.75rem);
  color: var(--landing-text) !important;
  text-decoration: none;
}

.landing-navbar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.landing-navbar__logo img {
  display: block;
  height: clamp(40px, 3.2vw, 50px);
  width: auto;
}

body.app-shell--guest-landing .landing-navbar__logo img,
body.app-shell--guest-auth .landing-navbar__logo img {
  height: clamp(34px, 2.55vw, 42px);
  opacity: 1;
  filter: brightness(0.78) saturate(0.9) contrast(1.08);
}

.landing-navbar__brand--wordmark:hover .landing-navbar__logo,
.landing-navbar__brand--wordmark:focus-visible .landing-navbar__logo {
  transform: translateY(-1px);
}

.landing-navbar__brand--icon {
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(43, 107, 243, 0.16);
  border: 1px solid rgba(43, 107, 243, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.landing-navbar__symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(43, 107, 243, 0.18);
  border: 1px solid rgba(43, 107, 243, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.landing-navbar__brand--icon .landing-navbar__symbol {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.landing-navbar__symbol svg {
  width: 22px;
  height: 18px;
  fill: var(--landing-text);
}

.landing-navbar__symbol img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.landing-navbar__wordmark {
  font-size: 1.05rem;
}

.landing-navbar__menu {
  gap: clamp(0.5rem, 1vw, 0.9rem);
}

.landing-navbar .nav-link {
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.34rem 0.62rem;
  font-size: 0.95rem;
  color: var(--landing-muted);
  border-radius: 0.85rem;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.landing-navbar .nav-link:hover,
.landing-navbar .nav-link:focus-visible {
  color: var(--landing-text);
  background: rgba(43, 107, 243, 0.14);
  outline: none;
}

.landing-navbar .nav-link.active {
  color: var(--landing-text);
  background: rgba(43, 107, 243, 0.22);
  box-shadow: 0 16px 32px -28px rgba(43, 107, 243, 0.6);
}

.landing-navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--landing-font);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.56rem 1.28rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.landing-btn--sm {
  padding: 0.36rem 1rem;
  font-size: 0.86rem;
}

.landing-btn--lg {
  min-width: 220px;
  font-size: 1.02rem;
}

.landing-btn--ghost {
  color: var(--landing-text);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(20, 18, 31, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.landing-btn--ghost:hover,
.landing-btn--ghost:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -22px rgba(64, 51, 114, 0.35);
}

.landing-btn--accent {
  color: var(--on-primary);
  background: linear-gradient(120deg, #2B6BF3 0%, #1B2E6B 42%, #5B93FF 100%);
  background-size: 200% 200%;
  border-color: transparent;
  box-shadow: 0 20px 35px -26px rgba(146, 137, 24, 0.55);
  animation: landingAccentPulse 6s ease-in-out infinite;
}

.landing-btn--accent:hover,
.landing-btn--accent:focus-visible {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 22px 42px -24px rgba(146, 137, 24, 0.55);
}

.landing-navbar__cta.d-lg-none {
  flex-direction: column;
  width: 100%;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(20, 18, 31, 0.1);
}

.landing-hero {
  position: relative;
  padding: 0 0 clamp(5rem, 10vw, 7rem);
  background: linear-gradient(135deg, #FFEEC7 0%, #F8C5FF 45%, #C8BEFF 100%);
  color: var(--landing-text);
  overflow: hidden;
}

.landing-hero__background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.65;
  transform: translateZ(0);
  mix-blend-mode: screen;
}

.landing-hero__orb--sun {
  top: -30%;
  left: -20%;
  width: 60vw;
  height: 60vw;
  min-width: 420px;
  min-height: 420px;
  background: radial-gradient(circle at center, rgba(255, 239, 136, 0.9), rgba(255, 239, 136, 0));
}

.landing-hero__orb--violet {
  bottom: -25%;
  right: -18%;
  width: 52vw;
  height: 52vw;
  min-width: 360px;
  min-height: 360px;
  background: radial-gradient(circle at center, rgba(199, 140, 255, 0.75), rgba(199, 140, 255, 0));
}

.landing-hero__card {
  position: relative;
  max-width: 760px;
  padding: clamp(2.75rem, 6vw, 3.5rem) clamp(2.25rem, 5vw, 3.75rem);
  border-radius: 2.4rem;
  background: var(--landing-card-bg);
  border: 1px solid var(--landing-card-border);
  box-shadow: 0 45px 80px -45px rgba(88, 70, 142, 0.35);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.landing-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: rgba(43, 107, 243, 0.32);
  color: var(--landing-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.landing-hero__title {
  font-size: clamp(2.3rem, 4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 1.25rem 0;
  text-transform: uppercase;
}

.landing-hero__title-accent {
  background: linear-gradient(90deg, #8F3BFF 0%, #FF59D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: none;
}

.landing-hero__subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--landing-muted-strong);
}

.landing-hero__subtitle--muted {
  font-weight: 500;
  color: var(--landing-muted);
  margin-bottom: 1.6rem;
}

.landing-hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--landing-muted-strong);
}

.landing-hero__benefits span {
  position: relative;
  padding-left: 1.35rem;
}

.landing-hero__benefits span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgba(43, 107, 243, 0.85);
  transform: translateY(-50%);
  box-shadow: 0 4px 12px -4px rgba(146, 137, 24, 0.6);
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .landing-navbar {
    padding-inline: clamp(0.65rem, 4vw, 1.2rem);
  }

  .landing-navbar__inner {
    border-radius: 1.5rem;
  }

  .landing-hero__card {
    border-radius: 1.8rem;
  }
}

@media (max-width: 767.98px) {
  body.app-shell--guest-landing {
    padding-top: 75px;
  }

  .landing-navbar {
    padding-inline: 0;
    padding-block: clamp(0.65rem, 4vw, 0.85rem);
  }

  .landing-navbar__inner {
    border-radius: 0;
    box-shadow: 0 16px 45px -30px rgba(140, 104, 220, 0.35);
  }

  .landing-navbar__menu {
    padding-top: 1rem;
  }

  .landing-navbar__logo {
    padding: 0.4rem 1rem 0.45rem;
  }

  .landing-navbar__logo img {
    height: 22px;
  }

  body.app-shell--guest-landing .landing-navbar__logo img,
  body.app-shell--guest-auth .landing-navbar__logo img {
    height: 20px;
  }

  .landing-hero__actions {
    flex-direction: column;
  }

  .landing-btn--lg {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-navbar,
  .landing-btn,
  .landing-hero__orb {
    transition: none !important;
  }

  .landing-btn--accent,
  .ks-hero-device,
  .ks-hero-pill,
  .ks-hero-mini-card,
  .ks-footer__logo {
    animation: none !important;
    background-position: 50% 50% !important;
  }
}


.ks-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.28rem 0.72rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(43, 107, 243, 0.14);
  border: 1px solid rgba(43, 107, 243, 0.22);
  color: #1B2E6B;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ks-hero {
  position: relative;
  padding: clamp(2.6rem, 4.4vw, 4.5rem) 0 clamp(2rem, 4vw, 3.8rem);
  color: var(--landing-text);
  overflow: hidden;
}

.ks-hero__grid {
  display: grid;
  gap: clamp(1.8rem, 3.2vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.ks-hero__content {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.ks-hero__headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.6vw, 2.6rem);
  flex-wrap: nowrap;
  margin: 0 auto 1.2rem;
}

.ks-hero__mp-logo {
  width: clamp(64px, 7vw, 104px);
  height: auto;
  border-radius: clamp(16px, 1.8vw, 24px);
  flex: 0 0 auto;
  filter: drop-shadow(0 22px 38px -18px rgba(43, 107, 243, 0.5));
}

.ks-hero__title {
  font-size: clamp(2.1rem, 3.4vw, 3.95rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 13em;
}

.ks-hero__title span {
  color: var(--primary);
}

.ks-hero__lead {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.5;
  color: var(--landing-muted-strong);
  margin: 0 auto 1.45rem;
  max-width: 58ch;
}

.ks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.ks-btn--primary {
  color: var(--on-primary);
  background: linear-gradient(90deg, #2B6BF3 0%, #1B2E6B 100%);
  box-shadow: 0 22px 48px -24px rgba(43, 107, 243, 0.55);
}

.ks-btn--primary:hover,
.ks-btn--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 26px 54px -24px rgba(43, 107, 243, 0.62);
  outline: none;
}

.ks-btn--ghost {
  color: var(--landing-text);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(20, 18, 31, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.ks-btn--ghost:hover,
.ks-btn--ghost:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -24px rgba(64, 51, 114, 0.35);
  outline: none;
}

.ks-btn--link {
  color: var(--landing-text);
  padding: 0.1rem 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.ks-btn--link:hover,
.ks-btn--link:focus-visible {
  color: var(--landing-muted-strong);
  text-decoration: underline;
  transform: none;
  outline: none;
}

.ks-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0;
}

.ks-hero__stats {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 2rem;
}

.ks-hero__stats strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
}

.ks-hero__stats span {
  display: block;
  font-size: 0.95rem;
  color: var(--landing-muted);
}

.ks-hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.ks-hero__trust-label {
  font-weight: 600;
  color: var(--landing-muted-strong);
}

.ks-hero__logos {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  opacity: 0.85;
}

.ks-hero__visual {
  position: relative;
  width: min(1080px, 100%);
  min-height: clamp(390px, 42vw, 560px);
  margin-top: clamp(0.1rem, 0.8vw, 0.7rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ks-hero-device {
  position: relative;
  margin: 0;
  width: min(850px, 76vw);
  z-index: 1;
}

.ks-hero-device__glow {
  position: absolute;
  inset: 14% -8% -18%;
  border-radius: 44px;
  background: linear-gradient(180deg, rgba(224, 238, 255, 0.95), rgba(224, 238, 255, 0.22));
  filter: blur(2px);
  opacity: 0.95;
}

.ks-hero-device__screen {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 3px solid rgba(109, 137, 255, 0.75);
  box-shadow:
    0 48px 120px -76px rgba(18, 24, 54, 0.55),
    0 28px 70px -48px rgba(42, 97, 255, 0.35);
}

.ks-hero-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 210px;
  padding: 1rem 1.25rem;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 34px 86px -54px rgba(31, 46, 94, 0.45);
  z-index: 2;
  animation: heroBadgeFloat 12s ease-in-out infinite;
}

.ks-hero-pill--left {
  top: 28%;
  left: 0;
}

.ks-hero-pill--right {
  right: 1%;
  top: 49%;
  animation-delay: -4s;
}

.ks-hero-pill__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7248ff 0%, #a568ff 100%);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.06em;
}

.ks-hero-pill__icon--ozon {
  background: linear-gradient(135deg, #005bff 0%, #ff2f6c 100%);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.ks-hero-pill__logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}

.ks-hero-pill__body p {
  margin: 0;
  font-weight: 700;
  color: var(--landing-text);
}

.ks-hero-pill__body span {
  display: block;
  font-size: 0.85rem;
  color: var(--landing-muted);
}

.ks-hero-mini-card {
  position: absolute;
  width: clamp(190px, 17vw, 285px);
  padding: 0.85rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(235, 255, 176, 32.85);
  box-shadow: 0 34px 86px -54px rgba(31, 46, 94, 0.48);
  z-index: 2;
  animation: heroBadgeFloat 14s ease-in-out infinite;
}

.ks-hero-mini-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(235, 255, 176, 32.8);
}

.ks-hero-mini-card figcaption {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--landing-muted-strong);
}

.ks-hero-mini-card--chart {
  top: 2%;
  right: 4%;
}

.ks-hero-mini-card--pie {
  bottom: 7%;
  left: 4%;
  animation-duration: 16s;
}

.ks-hero__statement {
  max-width: 980px;
  margin: clamp(0.1rem, 1vw, 0.8rem) auto 0;
  text-align: center;
  font-size: clamp(1.55rem, 2.5vw, 2.55rem);
  line-height: 1.18;
  font-weight: 800;
  color: var(--landing-text);
}

.ks-hero__statement span {
  display: block;
  color: var(--primary-2);
}

.ks-trust {
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
}
.ks-trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.1rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(235, 255, 176, 32.9);
  box-shadow: 0 36px 90px -64px rgba(46, 36, 96, 0.5);
  text-align: center;
}
.ks-trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}
.ks-trust-value {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent, #2b6bf3);
  display: inline-flex;
  align-items: baseline;
}
.ks-trust-plus {
  font-size: 0.7em;
}
.ks-trust-label {
  font-size: 0.95rem;
  color: var(--landing-muted-strong);
  max-width: 240px;
}
@media (min-width: 992px) {
  .ks-trust-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

@keyframes heroBadgeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.ks-section {
  position: relative;
  padding-block: clamp(4rem, 7vw, 6.5rem);
  color: var(--landing-text);
}

.ks-section--product {
  background: rgba(255, 255, 255, 0.82);
}

.ks-section--pricing {
  background: #f7f8fb;
}

.ks-section--faq {
  background: rgba(255, 255, 255, 0.86);
}

.ks-section--glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-block: 1px solid rgba(235, 255, 176, 32.6);
}

.ks-section__head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.ks-section__head h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.ks-section__head h2 span {
  color: var(--primary-2);
}

.ks-section__head p {
  color: var(--landing-muted-strong);
  font-size: 1.05rem;
  margin: 0 auto;
}

.onboarding-progress {
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(89,108,179,0.18);
  background: linear-gradient(145deg,#ffffff 0%,#f5f7ff 85%);
  box-shadow: 0 32px 90px -60px rgba(23,29,74,0.45);
}

.onboarding-progress__head {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.onboarding-progress__eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  font-weight: 700;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(90,123,255,0.15);
  color: #2d3c7e;
  margin-bottom: .65rem;
}

.onboarding-progress__badge {
  padding: .65rem 1rem;
  border-radius: 999px;
  background: rgba(90,123,255,0.1);
  font-weight: 600;
  color: #2b3567;
}

.onboarding-progress__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.onboarding-progress__item {
  position: relative;
  padding: 1.15rem 1.25rem 1.25rem 1rem;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(95,108,186,0.16);
  box-shadow: 0 16px 40px -28px rgba(26,32,74,0.35);
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.onboarding-progress__item.status-done {
  border-color: rgba(65,171,120,0.35);
  box-shadow: 0 20px 50px -28px rgba(46,184,106,0.4);
}

.onboarding-progress__item.status-progress {
  border-color: rgba(255,168,46,0.3);
  box-shadow: 0 20px 48px -28px rgba(255,168,46,0.35);
}

.onboarding-progress__item.status-disabled {
  opacity: .55;
}

.onboarding-progress__index {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(90,123,255,0.12);
  color: #2b3567;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-progress__title {
  font-weight: 700;
  font-size: 1rem;
  color: #1f2654;
}

.onboarding-progress__body p {
  margin-bottom: 0;
  color: #57607c;
}

.onboarding-progress__hint {
  font-size: .85rem;
  color: #1f6f43;
  font-weight: 600;
}

.onboarding-progress__item.status-progress .onboarding-progress__hint {
  color: #b26a00;
}

.onboarding-progress__item.status-pending .onboarding-progress__hint {
  color: #5b6280;
}

.onboarding-progress__item .btn {
  align-self: flex-start;
}

@media (max-width: 767.98px) {
  .onboarding-progress__list {
    grid-template-columns: 1fr;
  }
}

.ks-feature-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ks-feature-card {
  position: relative;
  padding: 2rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(235, 255, 176, 32.8);
  box-shadow: 0 32px 68px -48px rgba(46, 36, 96, 0.4);
  overflow: hidden;
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.ks-feature-card::before {
  content: "";
  position: absolute;
  inset: -40% -40%;
  background: radial-gradient(circle at 20% 20%, rgba(43, 107, 243, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.ks-feature-card h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.ks-feature-card p {
  color: var(--landing-muted);
  margin: 0;
}

.ks-metrics-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .ks-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ks-metric-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(235, 255, 176, 32.65);
  box-shadow: 0 30px 60px -50px rgba(46, 36, 96, 0.45);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.ks-metric-card img {
  width: 48px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.ks-metric-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.ks-metric-card p {
  margin: 0;
  color: var(--landing-muted);
}

@media (hover: hover) {
  .ks-feature-card:hover,
  .ks-feature-card:focus-visible {
    transform: translateY(-14px);
    box-shadow: 0 40px 80px -46px rgba(46, 36, 96, 0.55);
    border-color: rgba(43, 107, 243, 0.35);
  }

  .ks-feature-card:hover::before,
  .ks-feature-card:focus-visible::before {
    opacity: 1;
  }

  .ks-metric-card:hover,
  .ks-metric-card:focus-visible {
    transform: translateY(-10px);
    box-shadow: 0 36px 72px -50px rgba(46, 36, 96, 0.55);
    border-color: rgba(43, 107, 243, 0.25);
  }
}

.ks-testimonials {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ks-testimonial {
  display: flex;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(235, 255, 176, 32.7);
  box-shadow: 0 28px 56px -48px rgba(46, 36, 96, 0.4);
}

.ks-testimonial p {
  margin-bottom: 0.65rem;
  color: var(--landing-muted-strong);
  font-style: italic;
}

.ks-testimonial span {
  font-size: 0.92rem;
  color: var(--landing-muted);
}

.ks-product-showcase {
  position: relative;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(235, 255, 176, 32.9);
  box-shadow: 0 48px 120px -72px rgba(46, 36, 96, 0.6);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.ks-product-showcase__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ks-product-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 18px;
  background: rgba(245, 246, 255, 0.9);
  border: 1px solid rgba(223, 223, 255, 0.8);
  padding: 0.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.ks-product-tabs::-webkit-scrollbar { display: none; }

.ks-product-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--landing-muted-strong);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  outline: none;
}

.ks-product-tab:hover {
  background: rgba(43, 107, 243, 0.08);
  color: var(--accent-dark);
}

.ks-product-tab:focus-visible {
  box-shadow: 0 0 0 3px rgba(82, 68, 146, 0.3);
}

.ks-product-panes {
  position: relative;
}

.ks-product-pane {
  display: none;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.ks-shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(223, 223, 255, 0.85);
  box-shadow: 0 36px 90px -52px rgba(46, 36, 96, 0.55);
}

.ks-shot__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 40px;
  padding: 0 0.9rem;
  background: linear-gradient(180deg, #f7f7fc, #eef0fa);
  border-bottom: 1px solid rgba(223, 223, 255, 0.9);
}

.ks-shot__dots {
  display: inline-flex;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.ks-shot__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d6d7e4;
}

.ks-shot__dots i:nth-child(1) { background: #ff5f57; }
.ks-shot__dots i:nth-child(2) { background: #febc2e; }
.ks-shot__dots i:nth-child(3) { background: #28c840; }

.ks-shot__url {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(223, 223, 255, 0.9);
  color: var(--landing-muted);
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ks-shot__screen {
  display: block;
  overflow: hidden;
}

.ks-shot__screen img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  transition: transform 0.4s ease;
}

.ks-shot:hover .ks-shot__screen img {
  transform: scale(1.015);
}

.ks-product-pane__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  padding: 0 0.25rem;
}

.ks-product-pane__cap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ks-product-pane__eyebrow {
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent-dark);
}

.ks-product-pane__cap h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.ks-product-pane__actions {
  margin-top: auto;
}

.ks-product-pane__cta {
  min-width: 220px;
  text-align: center;
}

#product-tab-digitization:checked ~ .ks-product-tabs label[for="product-tab-digitization"],
#product-tab-goods:checked ~ .ks-product-tabs label[for="product-tab-goods"],
#product-tab-rnp:checked ~ .ks-product-tabs label[for="product-tab-rnp"],
#product-tab-opiu:checked ~ .ks-product-tabs label[for="product-tab-opiu"],
#product-tab-costs:checked ~ .ks-product-tabs label[for="product-tab-costs"],
#product-tab-expenses:checked ~ .ks-product-tabs label[for="product-tab-expenses"] {
  background: var(--accent);
  color: var(--on-primary);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.55), 0 18px 38px -24px rgba(43, 107, 243, 0.65);
}

#product-tab-digitization:checked ~ .ks-product-panes .pane--digitization,
#product-tab-goods:checked ~ .ks-product-panes .pane--goods,
#product-tab-rnp:checked ~ .ks-product-panes .pane--rnp,
#product-tab-opiu:checked ~ .ks-product-panes .pane--opiu,
#product-tab-costs:checked ~ .ks-product-panes .pane--costs,
#product-tab-expenses:checked ~ .ks-product-panes .pane--operations {
  display: flex;
  animation: ksPaneFade 0.45s ease;
}

@media (min-width: 768px) {
  /* Tabs become a vertical left sidebar; panes fill the content column. */
  .ks-product-showcase {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
    align-items: start;
  }

  .ks-product-tabs {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 0.3rem;
    margin-bottom: 0;
    border-radius: 0;
    padding: 0.2rem 1.25rem 0.2rem 0;
    align-self: stretch;
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(223, 223, 255, 0.9);
  }

  .ks-product-tab {
    width: 100%;
    text-align: left;
    white-space: normal;
    border-radius: 12px;
    padding: 0.8rem 1rem;
  }
}

@media (min-width: 992px) {
  .ks-product-showcase {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .ks-product-tab {
    padding: 0.85rem 1.1rem;
  }
}

@keyframes ksPaneFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal-on-scroll — paired with landing.js:enableReveals.
   Hidden state is gated behind html.ks-js (added by JS), so without JS the
   content is always visible — a section can never stay blank. */
html.ks-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

html.ks-js .reveal.reveal-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Reduced motion: show everything instantly, no transform. */
@media (prefers-reduced-motion: reduce) {
  html.ks-js .reveal,
  html.ks-js .reveal.reveal-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}



.ks-pricing,
.ks-section--pricing {
  padding-block: clamp(3.8rem, 6vw, 5.6rem);
  background-color: #f3f6fb;
}

.ks-pricing .container {
  max-width: var(--landing-shell-width);
}

.ks-section-title {
  margin: 0 0 1.55rem;
  text-align: center;
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--landing-text);
}

.pricing-header {
  text-align: center;
}

.pricing-included {
  margin: 0 auto clamp(1.35rem, 2.4vw, 2rem);
  text-align: center;
}

.pricing-included h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--landing-text);
}

.pricing-included p {
  margin: 0 auto;
  color: var(--landing-muted-strong);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  max-width: 58ch;
}

.pricing-period-toggle {
  display: flex;
  justify-content: center;
  background-color: #e6ebf0;
  border-radius: 99px;
  padding: 0.45rem;
  max-width: 720px;
  margin: 0 auto clamp(1.6rem, 3vw, 2.4rem);
}
.pricing-period-toggle button {
  flex: 1;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border: none;
  background-color: transparent;
  border-radius: 99px;
  font-weight: 700;
  color: rgba(20, 18, 31, 0.72);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.pricing-period-toggle button.active {
  background-color: var(--accent);
  color: var(--on-primary);
  box-shadow: 0 14px 30px -22px rgba(43, 107, 243, 0.52);
}
.discount-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  background-color: #ff7468;
  color: #fff;
  border-radius: 99px;
  vertical-align: middle;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
  align-items: stretch;
}
.pricing-card {
  background-color: #fff;
  border-radius: 18px;
  padding: clamp(1.35rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(220, 226, 236, 0.9);
  box-shadow: 0 18px 48px -38px rgba(31, 46, 94, 0.28);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
@media (hover: hover) {
  .pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 70px -42px rgba(31, 46, 94, 0.42);
    border-color: rgba(43, 107, 243, 0.35);
  }
}
.pricing-card--popular {
  position: relative;
  border-color: rgba(43, 107, 243, 0.55);
  box-shadow: 0 26px 60px -32px rgba(43, 107, 243, 0.55);
}
.pricing-popular-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2b6bf3 0%, #1b2e6b 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px -16px rgba(43, 107, 243, 0.8);
  white-space: nowrap;
}
.pricing-card h3 {
  margin: 0;
  font-weight: 800;
  font-size: 1.18rem;
  text-transform: none;
  color: var(--landing-text);
}
.pricing-card .price {
  font-size: 0.92rem;
  color: var(--landing-muted-strong);
  margin: 0.85rem 0 1.15rem;
}
.pricing-card .price .price-amount {
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 800;
  color: var(--landing-text);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  color: var(--landing-muted-strong);
  flex-grow: 1;
}
.pricing-features li {
  margin-bottom: 0.56rem;
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  line-height: 1.35;
}
.pricing-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}
.pricing-btn {
  background: linear-gradient(180deg, #2b6bf3 0%, #1b2e6b 100%);
  color: #fff;
  border-radius: 999px !important;
  font-weight: 800 !important;
  padding: 0.72rem 1.2rem !important;
  text-align: center;
  margin-top: auto;
  box-shadow: 0 18px 34px -24px rgba(65, 28, 142, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -22px rgba(65, 28, 142, 0.82);
}
.pricing-card--platinum {
  position: relative;
  min-height: 260px;
  margin-top: clamp(1.1rem, 2vw, 1.4rem);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.1rem 2rem;
  padding: clamp(1.8rem, 3.4vw, 3rem);
  background: #fff;
  border: 1px solid rgba(220, 226, 236, 0.9);
  border-radius: 18px;
  box-shadow: 0 24px 64px -46px rgba(31, 46, 94, 0.35);
}

@media (min-width: 992px) {
  .pricing-card--platinum {
    grid-template-columns: minmax(240px, 0.9fr) minmax(160px, 0.45fr) minmax(320px, 1.2fr) auto;
  }
}
.platinum-title .platinum-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--primary);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1;
}
.platinum-title h3 {
  color: var(--landing-text);
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  line-height: 1.12;
  text-transform: uppercase;
  font-weight: 800;
}

.platinum-limit {
  margin: 0;
  color: var(--landing-text);
  font-weight: 800;
  font-size: 1.05rem;
}

.platinum-desc p {
  margin: 0;
  color: var(--landing-muted-strong);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 52ch;
}
.platinum-cta {
  position: relative;
  z-index: 1;
  text-align: right;
}
@media (max-width: 991.98px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platinum-cta {
    text-align: left;
  }
}

.pricing-footnote {
  color: rgba(20, 18, 31, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 1.15rem 0 0;
  max-width: none;
}


.ks-faq-grid {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.ks-faq-grid__media {
  text-align: center;
  color: var(--landing-muted-strong);
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.ks-faq-accordion {
  display: grid;
  gap: 1rem;
}

.ks-faq-accordion--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ks-faq-accordion details {
  padding: 0;
  border-radius: 16px;
  background: #e9edf2;
  border: 1px solid rgba(220, 226, 236, 0.8);
  box-shadow: none;
  overflow: hidden;
}

.ks-faq-accordion summary {
  position: relative;
  cursor: pointer;
  min-height: 66px;
  display: flex;
  align-items: center;
  padding: 1rem 3rem 1rem 1.35rem;
  font-weight: 800;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  color: var(--landing-text);
  list-style: none;
}

.ks-faq-accordion summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.35rem;
  width: 0.72rem;
  height: 0.72rem;
  border-right: 2px solid rgba(20, 18, 31, 0.76);
  border-bottom: 2px solid rgba(20, 18, 31, 0.76);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.ks-faq-accordion summary::-webkit-details-marker {
  display: none;
}

.ks-faq-accordion details[open] summary {
  color: var(--landing-text);
}

.ks-faq-accordion details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.ks-faq-accordion p {
  margin: -0.2rem 0 0;
  padding: 0 1.35rem 1.15rem;
  color: var(--landing-muted-strong);
  line-height: 1.48;
}

@media (max-width: 767.98px) {
  .landing-navbar__inner {
    padding: 0.6rem 1.2rem;
  }

  .ks-hero__headline {
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .ks-hero__mp-logo {
    width: clamp(52px, 16vw, 72px);
  }

  .ks-hero__title {
    font-size: clamp(2.1rem, 10.5vw, 2.85rem);
    order: 1;
    flex-basis: 100%;
  }

  .ks-hero__grid {
    grid-template-columns: 1fr;
  }

  .ks-hero__visual {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0.8rem;
  }

  .ks-hero-device {
    width: 100%;
  }

  .ks-hero-pill,
  .ks-hero-mini-card {
    position: static;
    width: min(320px, 100%);
    animation: none;
    text-align: left;
    align-self: flex-start;
  }

  .ks-hero__statement {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .ks-hero__stats {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-period-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 22px;
  }

  .pricing-card--platinum {
    min-height: auto;
  }

  .ks-faq-accordion--grid {
    grid-template-columns: 1fr;
  }

}

.ks-footer {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(140deg, #1a1336 0%, #231a4c 45%, #43219a 100%);
  padding-block: clamp(4rem, 8vw, 5.5rem) clamp(2.1rem, 4.5vw, 3.1rem);
}

.ks-footer::before,
.ks-footer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ks-footer::before {
  width: 520px;
  height: 520px;
  top: -320px;
  right: -200px;
  background: radial-gradient(circle at 30% 30%, rgba(123, 69, 255, 0.28), rgba(123, 69, 255, 0));
  filter: blur(0);
}

.ks-footer::after {
  width: 480px;
  height: 480px;
  bottom: -260px;
  left: -160px;
  background: radial-gradient(circle at 60% 60%, rgba(43, 107, 243, 0.24), rgba(43, 107, 243, 0));
}

.ks-footer .container {
  position: relative;
  z-index: 1;
}

.ks-footer__grid {
  display: grid;
  gap: clamp(2.5rem, 4vw, 3.6rem);
  grid-template-columns: minmax(0, 1.05fr) repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
}

.ks-footer__brand {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.ks-footer__logo {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.32);
  margin-bottom: 0.35rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.ks-footer__logo img {
  display: block;
  width: clamp(160px, 18vw, 220px);
  height: auto;
}

.ks-footer__logo:hover,
.ks-footer__logo:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.38);
}

.ks-footer__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ks-footer__meta {
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
}

.ks-footer__meta-item {
  display: block;
}

.ks-footer__heading {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 1.15rem;
  color: rgba(43, 107, 243, 0.78);
}

.ks-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.ks-footer__list a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.ks-footer__list a:hover,
.ks-footer__list a:focus-visible {
  color: #ffffff;
  transform: translateX(4px);
}

.ks-footer__bottom {
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.ks-footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.ks-footer__top-link::after {
  content: "↑";
  font-size: 0.85rem;
}

.ks-footer__top-link:hover,
.ks-footer__top-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .ks-footer__grid {
    grid-template-columns: 1fr;
  }

  .ks-footer__brand {
    max-width: 100%;
  }

  .ks-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


body.app-shell--auth .app-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  min-height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 32px -22px rgba(25, 33, 56, 0.35);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

body.app-shell--auth {
  min-height: 100svh;
  overflow-x: hidden;
}

@supports not (min-height: 100svh) {
  body.app-shell--auth {
    min-height: 100vh;
  }
}

body.app-shell--auth .app-shell__workspace {
  padding-top: 0;
}

body.app-shell--auth {
  --container-padding: clamp(0.78rem, 1.15vw, 1.08rem);
}

body.app-shell--auth .app-shell__content--auth {
  padding:
    clamp(0.52rem, 0.7vw + 0.28rem, 0.92rem)
    clamp(0.72rem, 1.45vw, 1.14rem)
    clamp(1rem, 1.7vw, 1.45rem);
}

body.app-shell--auth .app-shell__inner {
  width: 100%;
  max-width: none;
}

body.app-shell--auth #wrapper {
  padding-top: 0;
}

body.app-shell--auth #page-content-wrapper {
  padding-top: var(--app-navbar-height, var(--navbar-height));
  min-height: calc(100svh - var(--app-navbar-height, var(--navbar-height)));
  overflow-x: clip;
}

body.app-shell--auth #sidebarMenu {
  top: var(--app-navbar-height, var(--navbar-height));
  height: calc(100svh - var(--app-navbar-height, var(--navbar-height)));
}

@supports not (min-height: 100svh) {
  body.app-shell--auth #page-content-wrapper {
    min-height: calc(100vh - var(--app-navbar-height, var(--navbar-height)));
  }
}

@media (max-width: 1199.98px) {
  body.app-shell--auth .app-shell__content--auth {
    padding-inline: clamp(0.68rem, 2.6vw, 1.04rem);
  }
}

body.app-shell--guest.app-shell--guest-auth {
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(43, 107, 243, 0.14), rgba(43, 107, 243, 0)),
    linear-gradient(180deg, #faf7ff 0%, #efe7ff 100%);
}

.app-shell__content--guest--auth {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--navbar-height) + clamp(0.45rem, 1.2vh, 0.9rem));
  padding-bottom: clamp(1rem, 2.6vh, 1.8rem);
  padding-inline: clamp(0.8rem, 2.1vw, 1.4rem);
  min-height: calc(100svh - var(--navbar-height));
  overflow-x: hidden;
  overflow-y: auto;
  scroll-padding-top: calc(var(--navbar-height) + 1.5rem);
}

@supports not (min-height: 100svh) {
  .app-shell__content--guest--auth {
    min-height: calc(100vh - var(--navbar-height));
  }
}

.app-shell__content--guest--auth::before,
.app-shell__content--guest--auth::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  z-index: 0;
}

.app-shell__content--guest--auth::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -90px;
  background: radial-gradient(circle at 20% 20%, rgba(43, 107, 243, 0.18), rgba(43, 107, 243, 0));
}

.app-shell__content--guest--auth::after {
  width: 360px;
  height: 360px;
  bottom: -170px;
  left: -120px;
  background: radial-gradient(circle at 70% 60%, rgba(43, 107, 243, 0.2), rgba(43, 107, 243, 0));
}

.app-shell__inner--guest-auth {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-page {
  --auth-primary: #2b6bf3;
  --auth-primary-dark: #1b2e6b;
  --auth-accent: #5B93FF;
  --auth-surface: rgba(255, 255, 255, 0.88);
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 372px);
  background: var(--auth-surface);
  margin-top: 0;
  border-radius: clamp(1.35rem, 2.6vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 30px 70px -46px rgba(20, 18, 31, 0.34);
  overflow: visible;
  position: relative;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(43, 107, 243, 0.08), rgba(43, 107, 243, 0.04));
  opacity: 0.9;
}

.auth-page__intro,
.auth-page__card {
  position: relative;
  z-index: 1;
}

.auth-page__intro {
  padding: clamp(1.35rem, 2.4vw, 2rem) clamp(1.35rem, 2.3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.78rem, 1.4vh, 1.05rem);
  color: var(--landing-text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%);
}

.auth-page__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  color: var(--auth-primary-dark);
  background: rgba(43, 107, 243, 0.12);
  border: 1px solid rgba(43, 107, 243, 0.28);
}

.auth-page__title {
  font-size: clamp(1.62rem, 2.1vw, 2.15rem);
  line-height: 1;
  margin: 0;
  color: var(--landing-text);
}

.auth-page__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.42;
  color: var(--landing-muted-strong);
  max-width: 42ch;
}

.auth-page__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.52rem;
}

.auth-page__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
  font-weight: 500;
  font-size: 0.89rem;
  color: rgba(20, 18, 31, 0.82);
}

.auth-page__list-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 10px;
  background: rgba(43, 107, 243, 0.12);
  color: var(--auth-primary);
  font-size: 0.8rem;
  margin-top: 0.08rem;
}

.auth-page__card {
  padding: clamp(1.35rem, 2.1vw, 1.9rem);
  background: rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(43, 107, 243, 0.12);
  display: flex;
  align-items: stretch;
}

.auth-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-card__header {
  display: grid;
  gap: 0.5rem;
}

.auth-card__title {
  margin: 0;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--landing-text);
}

.auth-card__subtitle {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(20, 18, 31, 0.7);
}

.auth-card__alerts {
  display: grid;
  gap: 0.75rem;
}

.auth-card__body {
  display: grid;
  gap: 0.82rem;
}

.auth-form {
  display: grid;
  gap: 0.78rem;
}

.auth-form .mb-3 {
  margin-bottom: 0;
}

.auth-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(20, 18, 31, 0.82);
}

.auth-form .form-control {
  padding: 0.68rem 0.88rem;
  border-radius: 12px;
  border: 1px solid rgba(20, 18, 31, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px -18px rgba(20, 18, 31, 0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-form .form-control:focus {
  border-color: rgba(43, 107, 243, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 107, 243, 0.16);
}

.auth-form .form-check {
  margin-top: 0.35rem;
}

.auth-form .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.45rem;
  border-color: rgba(20, 18, 31, 0.22);
}

.auth-form .form-check-input:checked {
  background-color: var(--auth-primary);
  border-color: var(--auth-primary);
}

.auth-form .form-check-label {
  color: rgba(20, 18, 31, 0.68);
}

.auth-form .btn {
  border-radius: 999px;
  font-weight: 600;
  padding-block: 0.72rem;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 26px -18px rgba(43, 107, 243, 0.34);
}

.auth-form .btn:active {
  transform: translateY(1px);
  box-shadow: 0 14px 26px -16px rgba(43, 107, 243, 0.4);
}

.auth-aux {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.86rem;
  color: rgba(20, 18, 31, 0.65);
}

.auth-aux a {
  font-weight: 600;
}

.auth-card__footer {
  margin-top: 0.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(20, 18, 31, 0.08);
  font-size: 0.9rem;
  color: rgba(20, 18, 31, 0.68);
  text-align: center;
}

.auth-card__footer a {
  font-weight: 600;
  color: var(--auth-primary);
}

.auth-card__footer .text-muted {
  color: rgba(20, 18, 31, 0.55) !important;
}

.auth-card__footer .text-muted a {
  color: var(--auth-primary-dark);
}

.app-shell--guest-auth .landing-navbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: transparent;
}

@media (max-width: 1440px) {
  .ks-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .ks-hero__visual {
    min-height: clamp(380px, 42vw, 540px);
  }

  .ks-hero-device {
    width: min(820px, 74vw);
  }

  .ks-hero-pill {
    scale: 0.92;
  }

  .ks-hero-mini-card {
    width: clamp(172px, 16vw, 245px);
  }
}

@media (max-width: 1199.98px) {
  .landing-navbar .nav-link {
    padding-inline: 0.58rem;
  }

  .ks-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .ks-hero__visual {
    min-height: clamp(360px, 48vw, 500px);
  }

  .ks-hero-device {
    width: min(760px, 74vw);
  }

  .ks-hero-pill {
    min-width: 180px;
    padding: 0.82rem 1rem;
    scale: 0.84;
  }

  .ks-hero-mini-card {
    width: clamp(155px, 17vw, 210px);
  }

  .auth-page {
    width: min(940px, 100%);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  }
}

@media (max-width: 991.98px) {
  .ks-hero__visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    min-height: auto;
    gap: 0.85rem;
  }

  .ks-hero-device {
    grid-column: 1 / -1;
    width: 100%;
  }

  .ks-hero-pill,
  .ks-hero-mini-card {
    position: static;
    width: 100%;
    min-width: 0;
    scale: 1;
    animation: none;
  }

  .app-shell__content--guest--auth {
    padding-top: calc(var(--navbar-height) + 0.9rem);
  }

  .auth-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-page__card {
    border-left: none;
    border-top: 1px solid rgba(43, 107, 243, 0.12);
  }

  .auth-card__footer {
    padding-top: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .ks-hero__visual {
    grid-template-columns: 1fr;
  }

  .app-shell__content--guest--auth {
    padding-inline: clamp(0.8rem, 4vw, 1.15rem);
  }

  .auth-page {
    border-radius: 1.35rem;
    box-shadow: 0 22px 46px -30px rgba(20, 18, 31, 0.28);
  }

  .auth-page__intro {
    padding: 1.15rem 1.05rem;
  }

  .auth-page__card {
    padding: 1.15rem 1.05rem 1.3rem;
  }
}

@media (max-width: 575.98px) {
  body.app-shell--guest.app-shell--guest-auth {
    background: linear-gradient(180deg, #f9f6ff 0%, #ede5ff 100%);
  }

  .auth-page__badge {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }

  .auth-card__title {
    font-size: 1.6rem;
  }

  .auth-card__footer {
    font-size: 0.92rem;
  }
}


body.app-shell--auth .dashboard-filters-card {
  border-radius: 1rem;
  border: 1px solid rgba(102, 125, 182, 0.08);
  box-shadow: 0 12px 28px -20px rgba(16, 30, 63, 0.2);
}

body.app-shell--auth .dashboard-filters-card .card-body {
  padding: 0.7rem 0.86rem 0.76rem;
}

body.app-shell--auth #dashboard-filter-form {
  row-gap: 0.48rem !important;
}

body.app-shell--auth .dashboard-date-control .input-group-text,
body.app-shell--auth .dashboard-date-control .form-control,
body.app-shell--auth .dashboard-date-control .btn-outline-secondary {
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
}

body.app-shell--auth .dashboard-date-control .form-control {
  font-weight: 600;
}

body.app-shell--auth .dashboard-date-control .form-text {
  margin-top: 0.35rem !important;
  font-size: 0.82rem;
}

body.app-shell--auth .dashboard-page-header {
  margin-bottom: 0.42rem !important;
}

body.app-shell--auth .dashboard-page-title {
  font-size: clamp(1.7rem, 1.42rem + 0.7vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

body.app-shell--auth .dashboard-quick-presets {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.app-shell--auth .dashboard-quick-presets .btn {
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  border-radius: 999px;
}

body.app-shell--auth .modal {
  padding-top: calc(var(--navbar-height) + 1rem);
}


body.app-shell--auth #dashboard-widgets-container .card {
  border-radius: 1.15rem;
  border: 1px solid rgba(99, 123, 182, 0.1);
  box-shadow: 0 14px 32px -26px rgba(18, 31, 72, 0.22);
}

body.app-shell--auth #dashboard-widgets-container .card .card-body {
  padding: 1rem 1.05rem 1.25rem;
  gap: 0.75rem;
}

body.app-shell--auth #dashboard-widgets-container .widget-card-title {
  font-size: clamp(0.9rem, 0.84rem + 0.16vw, 1rem);
  color: rgba(38, 48, 74, 0.78);
  letter-spacing: 0.01em;
}

body.app-shell--auth #dashboard-widgets-container .widget-main-value {
  font-size: clamp(1.56rem, 1.24rem + 0.78vw, 1.9rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em;
}

body.app-shell--auth #dashboard-widgets-container .widget-main-value--compound {
  /* BUGFIX 2026-06: was flex-wrap:nowrap + segment min-width:0 + white-space:nowrap
     — the canonical flex-overlap recipe. On sidebar toggle the card narrows, the
     segments shrink below their content width and the secondary value after the "/" paints
     OVER the primary (ghost number). Wrap instead: the secondary drops cleanly to
     its own line and can never overlap. This rule MUST live here — its ID selector
     (#dashboard-widgets-container) wins the cascade over the class-only rule in
     dashboard-widgets-v2.css, which is why past fixes there silently regressed. */
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 2px;
  column-gap: 0.14em;
  font-size: clamp(1.62rem, 1.28rem + 0.86vw, 1.96rem) !important;
  letter-spacing: -0.03em;
}

body.app-shell--auth #dashboard-widgets-container .widget-main-value__segment {
  white-space: nowrap;
  /* No min-width:0 here: it let a segment shrink below its content and the
     nowrap text then overflowed its box over the neighbour. Clamp to the
     container so a too-wide segment wraps as a whole unit instead. */
  max-width: 100%;
}

body.app-shell--auth #dashboard-widgets-container .widget-main-value--compound .widget-main-value__segment--primary {
  font-size: 1.08em;
  font-weight: 760;
}

body.app-shell--auth #dashboard-widgets-container .widget-main-value--compound .widget-main-value__segment--separator {
  font-size: 0.5em;
  opacity: 0.42;
}

body.app-shell--auth #dashboard-widgets-container .widget-main-value--compound .widget-main-value__segment--secondary {
  font-size: 0.58em;
  font-weight: 640;
  opacity: 0.84;
  line-height: 1.1;
}

body.app-shell--auth #dashboard-widgets-container .widget-main-value small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9rem;
  color: var(--text-color-secondary);
  font-weight: 500;
}

body.app-shell--auth #dashboard-widgets-container .widget-trend {
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

body.app-shell--auth #dashboard-widgets-container .widget-trend span {
  font-weight: 600;
}

body.app-shell--auth #dashboard-widgets-container .btn-icon {
  --btn-size: 1.85rem;
}

body.app-shell--auth #dashboard-widgets-container .widget-info-btn {
  --btn-size: 1.55rem;
}

body.app-shell--auth #dashboard-widgets-container .widget-info-btn.widget-info-inline {
  --btn-size: 1.2rem;
}

body.app-shell--auth #dashboard-widgets-container .widget-info-btn .fas {
  font-size: 0.75rem;
}

body.app-shell--auth #dashboard-widgets-container .widget-drag-handle.btn-icon {
  --btn-size: 1.9rem;
}

body.app-shell--auth #dashboard-widgets-container .widget-drag-handle .fas {
  font-size: 0.9rem;
}

@media (max-width: 1199.98px) {
  body.app-shell--auth #dashboard-widgets-container .card .card-body {
    padding: 0.95rem 1rem 1.2rem;
  }
  body.app-shell--auth #dashboard-widgets-container .widget-main-value {
    font-size: clamp(1.42rem, 1.12rem + 0.62vw, 1.68rem) !important;
  }
  body.app-shell--auth #dashboard-widgets-container .widget-main-value--compound {
    font-size: clamp(1.48rem, 1.16rem + 0.66vw, 1.74rem) !important;
  }
}

@media (max-width: 767.98px) {
  body.app-shell--auth #dashboard-widgets-container .card {
     border-radius: 1rem;
  }
  body.app-shell--auth #dashboard-widgets-container .card .card-body {
     padding: 0.9rem 0.95rem 1.1rem;
  }
  body.app-shell--auth #dashboard-widgets-container .widget-main-value--compound {
     font-size: clamp(1.28rem, 1.08rem + 0.44vw, 1.46rem) !important;
  }
  body.app-shell--auth #dashboard-widgets-container .widget-main-value--compound .widget-main-value__segment--primary {
     font-size: 1.04em;
  }
}
.ks-file-input{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.ks-file-input__control{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.ks-file-input__button{flex:0 0 auto}
.ks-file-input__name{flex:1;min-width:180px;display:flex;align-items:center}

/* Alerts contrast fix */
.alert {
  border-radius: 0.5rem;
  border: 1px solid transparent;
}

.alert-info {
  background: #e7f0ff !important;
  border-color: #7aa7ff !important;
  color: #102a56 !important;
}

.alert-warning {
  background: #fff4d6;
  border-color: #f2b84b;
  color: #7a3e00;
}

.alert-success {
  background: #e7f7ee;
  border-color: #6fcf97;
  color: #0f5132;
}

.alert-danger,
.alert-error {
  background: #fdecec;
  border-color: #f1a7a7;
  color: #7f1d1d;
}

.alert a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}


/* ---- Google sign-in ---------------------------------------------------- */
/* Markup: templates/partials/auth/_google_button.html, included by login and register.
   Lives HERE, not in auth-shell.css: that file is dead — no template loads it, so styles
   put there apply to nothing (found the hard way when the button rendered unstyled). */

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0 1rem;
  color: var(--ks-color-text-muted, #5B6472);
  font-size: .8125rem;
}

/* Rules drawn with pseudo-elements rather than a border under the text, so the line always
   meets the label whatever length the translated word turns out to be. */
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--ks-color-border, #E5E8EF);
}

/* `.btn` is co-specific with a single class, and Bootstrap loads after this file, so
   .btn-outline-secondary's transparent background would win a tie. Qualifying with .btn
   raises specificity to (0,2,0) without reaching for !important. */
.btn.auth-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  background-color: #fff;
  border-color: var(--ks-color-border, #E5E8EF);
  color: var(--ks-color-text, #111827);
  font-weight: 600;
}

.btn.auth-google-btn:hover,
.btn.auth-google-btn:focus-visible {
  background-color: var(--ks-color-canvas, #F7F8FB);
  border-color: var(--ks-color-border, #E5E8EF);
  color: var(--ks-color-text, #111827);
}

.btn.auth-google-btn svg { flex: 0 0 auto; }

/* The mark is Google's and keeps its own colours, so the button stays white-backed in dark
   mode rather than inheriting a surface that would wash the logo out. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.auth-google-btn { background-color: #fff; color: #111827; }
  :root:not([data-theme="light"]) .btn.auth-google-btn:hover { background-color: #F1F3F7; }
}
:root[data-theme="dark"] .btn.auth-google-btn { background-color: #fff; color: #111827; }
:root[data-theme="dark"] .btn.auth-google-btn:hover { background-color: #F1F3F7; }
