/* Landing overrides — navbar & hero aligned with reference visuals */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');
:root {
  --primary: #7A2DFF;
  --primary-2: #9F54FF;
  --accent: #EBFF00;
  --accent-dark: #D4E600;
  --on-primary: #14121F;
  --landing-text: #14121F;
  --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: 'Manrope', 'Montserrat', 'Inter', 'Segoe UI', sans-serif;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --bg: #F8F3FF;
  --text: var(--landing-text);
  --muted: var(--landing-muted);
}

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

/* NEW: Add padding to body to prevent content from hiding under the fixed navbar */
body.app-shell--guest-landing {
  padding-top: 85px; /* Adjust this value based on the final navbar height */
}

.landing-doc-hero {
  padding: calc(var(--navbar-height) + 3.5rem) 0 2.75rem;
  background:
    radial-gradient(160% 160% at 110% -20%, rgba(235, 255, 0, 0.32), rgba(235, 255, 0, 0)),
    linear-gradient(180deg, #f8f3ff 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(235, 255, 0, 0.12), rgba(235, 255, 0, 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(122, 45, 255, 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(122, 45, 255, 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); }
}

/* EDITED: Changed navbar to be permanently fixed at the top */
.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; /* CHANGED from sticky to fixed */
  top: 0;          /* Pin to the top */
  left: 0;
  width: 100%;
  padding: clamp(0.6rem, 1.2vw, 1rem) clamp(0.75rem, 3vw, 1.5rem);
  z-index: 1080;
  background: transparent;
  transition: box-shadow 0.4s ease; /* Transition for the shadow */
}

.landing-navbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  width: 100%;
  padding: clamp(0.3rem, 1vw, 0.75rem) clamp(0.75rem, 2vw, 1.75rem);
  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);
  /* Apply shadow from the start, but make it stronger on scroll */
  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 {
  /* Make shadow stronger on scroll for a nice effect */
  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: #ffffff !important;
  text-decoration: none;
}

.landing-navbar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.2rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(136deg, rgba(122, 45, 255, 0.95) 0%, rgba(33, 20, 70, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 28px 48px -26px rgba(33, 20, 70, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.landing-navbar__logo img {
  display: block;
  height: clamp(20px, 2.45vw, 28px);
  width: auto;
  filter: drop-shadow(0 10px 20px rgba(14, 10, 40, 0.35));
}

.landing-navbar__brand--wordmark:hover .landing-navbar__logo,
.landing-navbar__brand--wordmark:focus-visible .landing-navbar__logo {
  transform: translateY(-1px);
  box-shadow: 0 34px 56px -28px rgba(33, 20, 70, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.landing-navbar__brand--icon {
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(235, 255, 0, 0.16);
  border: 1px solid rgba(235, 255, 0, 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(235, 255, 0, 0.18);
  border: 1px solid rgba(235, 255, 0, 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.75rem, 1.5vw, 1.25rem);
}

.landing-navbar .nav-link {
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.85rem;
  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(235, 255, 0, 0.14);
  outline: none;
}

.landing-navbar .nav-link.active {
  color: var(--landing-text);
  background: rgba(235, 255, 0, 0.22);
  box-shadow: 0 16px 32px -28px rgba(235, 255, 0, 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.65rem 1.5rem;
  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.5rem 1.45rem;
  font-size: 0.92rem;
}

.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, #ebff00 0%, #d4e600 42%, #f8ff88 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);
}

/* Hero */
.landing-hero {
  position: relative;
  /* EDITED: Removed top padding, because body has it now */
  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(235, 255, 0, 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(235, 255, 0, 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) {
  /* EDITED: Adjust padding-top for mobile */
  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;
  }

  .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-cta-card__icon,
  .ks-footer__logo {
    animation: none !important;
    background-position: 50% 50% !important;
  }
}

/* --- New landing layout -------------------------------------------------- */

.ks-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(122, 45, 255, 0.08);
  color: var(--landing-muted-strong);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ks-hero {
  position: relative;
  padding-block: clamp(5rem, 9vw, 8rem);
  color: var(--landing-text);
}

.ks-hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(280px, 480px) minmax(360px, 1fr);
  align-items: center;
}

.ks-hero__title {
  font-size: clamp(2.25rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.35rem;
}

.ks-hero__lead {
  font-size: 1.1rem;
  color: var(--landing-muted-strong);
  margin-bottom: 1.85rem;
}

.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, #ebff00 0%, #d4e600 100%);
  box-shadow: 0 22px 48px -24px rgba(155, 149, 22, 0.6);
}

.ks-btn--primary:hover,
.ks-btn--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 26px 54px -24px rgba(155, 149, 22, 0.68);
  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;
  gap: 1rem;
  margin-bottom: 2rem;
}

.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;
  min-height: clamp(380px, 55vw, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.ks-hero-device__glow {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(151, 119, 255, 0.35), transparent 60%);
  filter: blur(18px);
  opacity: 0.75;
}

.ks-hero-device__screen {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 50px 120px -40px rgba(21, 13, 43, 0.7),
    0 40px 90px -45px rgba(114, 74, 255, 0.55);
}

.ks-hero-pill {
  position: absolute;
  top: 12%;
  left: 6%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 30px 80px -45px rgba(46, 36, 96, 0.65);
  z-index: 2;
  animation: heroBadgeFloat 12s ease-in-out infinite;
}

.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__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(180px, 25vw, 240px);
  padding: 0.85rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(235, 235, 255, 0.85);
  box-shadow: 0 36px 90px -50px rgba(17, 12, 36, 0.65);
  z-index: 2;
  animation: heroBadgeFloat 14s ease-in-out infinite;
}

.ks-hero-mini-card img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(235, 235, 255, 0.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: 6%;
  right: 2%;
}

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

@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);
}

/* EDITED: Changed pricing background color */
.ks-section--pricing {
  background: #f8f3ff;
}

.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, 235, 255, 0.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 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, 235, 255, 0.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(122, 45, 255, 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, 235, 255, 0.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;
}

/* FIX: Prevent metric icons from squashing */
.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(122, 45, 255, 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(122, 45, 255, 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, 235, 255, 0.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);
}

/* NEW: Product Showcase */
.ks-product-showcase {
  position: relative;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(235, 235, 255, 0.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-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: 999px;
  background: rgba(245, 246, 255, 0.9);
  border: 1px solid rgba(223, 223, 255, 0.8);
  padding: 0.4rem;
}

.ks-product-tab {
  flex: 1 1 160px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--landing-muted-strong);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  outline: none;
}

.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;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  border-radius: 32px;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(235, 235, 255, 0.85);
  box-shadow: 0 36px 90px -60px rgba(46, 36, 96, 0.5);
  grid-template-columns: 1fr;
}

.ks-product-pane__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ks-product-pane__media img {
  display: block;
  width: 100%;
  max-width: 880px;
  height: auto;
  border-radius: 28px;
  border: 1px solid rgba(235, 235, 255, 0.8);
  box-shadow: 0 32px 80px -54px rgba(46, 36, 96, 0.55);
  transition: transform 0.4s ease;
}

.ks-product-pane__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.ks-product-pane__body h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
}

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

.ks-product-pane__list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ks-product-pane__list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--landing-muted-strong);
  line-height: 1.45;
}

.ks-product-pane__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(122, 45, 255, 0.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-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: 0 18px 38px -24px rgba(122, 45, 255, 0.65);
}

#product-tab-digitization:checked ~ .ks-product-panes .pane--digitization,
#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: grid;
  animation: ksPaneFade 0.45s ease;
}

@media (min-width: 992px) {
  .ks-product-pane {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
    align-items: center;
  }

  .ks-product-pane__media img {
    max-width: 960px;
  }
}

@media (min-width: 1440px) {
  .ks-product-pane {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
  }

  .ks-product-pane__media img {
    max-width: 1040px;
  }
}

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



/* --- Pricing Section Redesign (NEW) --- */
.ks-section--pricing {
  background-color: #F8F9FA; /* Light grey background for the whole section */
}
.pricing-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.pricing-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #111;
}
.pricing-period-toggle {
  display: flex;
  justify-content: center;
  background-color: #E9ECEF;
  border-radius: 99px;
  padding: 5px;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}
.pricing-period-toggle button {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background-color: transparent;
  border-radius: 99px;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.pricing-period-toggle button.active {
  background-color: #0D6EFD;
  color: #fff;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.25);
}
.discount-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  background-color: #E83E8C;
  color: #fff;
  border-radius: 99px;
  vertical-align: middle;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.pricing-card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  height: 100%;
}
.pricing-card h3 {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #6c757d;
}
.pricing-card .price {
  font-size: 1.2rem;
  color: #495057;
  margin: 0.5rem 0 1.5rem 0;
}
.pricing-card .price .price-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: #212529;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  color: #495057;
  flex-grow: 1;
}
.pricing-features li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2em;
}
.pricing-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #0D6EFD;
}
.pricing-btn {
  background-color: #0D6EFD;
  color: #fff;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  padding: 0.8rem 1rem !important;
  text-align: center;
  margin-top: auto;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.pricing-btn:hover {
  background-color: #0B5ED7;
  transform: translateY(-2px);
}
.pricing-card--platinum {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1rem 2rem;
  background-color: #F8F9FA;
  border: 1px solid #dee2e6;
}
@media (min-width: 992px) {
  .pricing-card--platinum {
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  }
}
.platinum-title .platinum-eyebrow {
  color: #0D6EFD;
  font-weight: 700;
  font-size: 0.9rem;
}
.platinum-title h3 {
  color: #212529;
  font-size: 1.5rem;
  text-transform: none;
  font-weight: 700;
}
.platinum-features ul {
  padding: 0;
  list-style: none;
}
.platinum-features li::before {
  display: none;
}
.platinum-desc p {
  margin: 0;
  color: #6c757d;
}
.platinum-cta {
  text-align: right;
}
@media (max-width: 991.98px) {
    .platinum-cta { text-align: left; }
}

.pricing-footnote {
  text-align: center;
  color: #6c757d;
  font-size: 0.85rem;
  margin-top: 2.5rem;
}


.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 details {
  padding: 1.4rem 1.6rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(235, 235, 255, 0.7);
  box-shadow: 0 24px 48px -44px rgba(46, 36, 96, 0.4);
}

.ks-faq-accordion summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--landing-text);
  list-style: none;
}

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

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

.ks-faq-accordion p {
  margin-top: 0.8rem;
  margin-bottom: 0;
  color: var(--landing-muted);
}

.ks-section--cta {
  padding-bottom: clamp(5rem, 8vw, 7rem);
}

.ks-cta-card {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  padding: clamp(2.5rem, 4vw, 3.5rem);
  border-radius: 32px;
  background: linear-gradient(130deg, rgba(122, 45, 255, 0.92), rgba(235, 255, 0, 0.3));
  color: #fff;
  overflow: hidden;
  box-shadow: 0 48px 120px -70px rgba(49, 26, 104, 0.65);
}

.ks-cta-card::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.ks-cta-card__icon {
  width: clamp(72px, 10vw, 96px);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
  justify-self: center;
  animation: ksCtaIconFloat 7s ease-in-out infinite;
}

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

.ks-cta-card__body p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.ks-cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ks-cta-card .ks-btn--ghost {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

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

  .ks-hero__title {
    font-size: 2rem;
  }

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

  .ks-hero__visual {
    flex-direction: column;
    min-height: auto;
    gap: 1rem;
  }

  .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__stats {
    grid-template-columns: 1fr;
  }

  .ks-cta-card {
    text-align: center;
  }

  .ks-cta-card__actions {
    justify-content: center;
  }
}

/* =========================================================================
   Footer refresh
   ========================================================================= */
.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(235, 255, 0, 0.24), rgba(235, 255, 0, 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;
}

.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: 1.6rem;
  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-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
}

.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(235, 255, 0, 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;
  }
}


/* =========================================================================
   Authenticated application chrome
   ========================================================================= */
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 .app-shell__workspace {
  padding-top: calc(var(--navbar-height) + 0.3rem);
}

body.app-shell--auth .app-shell__content--auth {
  padding: clamp(1.1rem, 1.2vw + 0.65rem, 1.75rem) clamp(1rem, 2.2vw, 1.85rem);
}

@media (max-width: 1199.98px) {
  body.app-shell--auth .app-shell__workspace {
    padding-top: calc(var(--navbar-height) + 0.25rem);
  }
  body.app-shell--auth .app-shell__content--auth {
    padding-inline: clamp(0.85rem, 3.5vw, 1.5rem);
  }
}

/* =========================================================================
   Auth onboarding surfaces (login & register)
   ========================================================================= */
body.app-shell--guest.app-shell--guest-auth {
  background:
    radial-gradient(120% 120% at 110% -10%, rgba(235, 255, 0, 0.22), rgba(235, 255, 0, 0)),
    linear-gradient(180deg, #f8f3ff 0%, #e7ddff 100%);
}

.app-shell__content--guest--auth {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--navbar-height) + clamp(3.5rem, 8vh, 5.25rem));
  padding-bottom: clamp(3.75rem, 12vh, 6.75rem);
  padding-inline: clamp(1.5rem, 5vw, 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: 460px;
  height: 460px;
  top: -220px;
  right: -120px;
  background: radial-gradient(circle at 20% 20%, rgba(122, 45, 255, 0.28), rgba(122, 45, 255, 0));
}

.app-shell__content--guest--auth::after {
  width: 520px;
  height: 520px;
  bottom: -260px;
  left: -160px;
  background: radial-gradient(circle at 70% 60%, rgba(235, 255, 0, 0.28), rgba(235, 255, 0, 0));
}

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

.auth-page {
  --auth-primary: #7a2dff;
  --auth-primary-dark: #5b29d0;
  --auth-accent: #ebff00;
  --auth-surface: rgba(255, 255, 255, 0.88);
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  background: var(--auth-surface);
  margin-top: clamp(0.75rem, 2vh, 1.5rem);
  border-radius: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 48px 120px -64px rgba(20, 18, 31, 0.55);
  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(122, 45, 255, 0.12), rgba(235, 255, 0, 0.08));
  opacity: 0.65;
}

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

.auth-page__intro {
  padding: clamp(2.8rem, 5vw, 3.8rem) clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.75rem, 4vh, 2.5rem);
  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.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  color: var(--auth-primary-dark);
  background: rgba(122, 45, 255, 0.12);
  border: 1px solid rgba(122, 45, 255, 0.28);
}

.auth-page__title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0;
  color: var(--landing-text);
}

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

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

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

.auth-page__list-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(122, 45, 255, 0.12);
  color: var(--auth-primary);
  font-size: 1rem;
  margin-top: 0.15rem;
}

.auth-page__card {
  padding: clamp(2.5rem, 4vw, 3.2rem);
  background: rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(122, 45, 255, 0.12);
  display: flex;
  align-items: stretch;
}

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

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

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

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

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

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

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

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

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

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

.auth-form .form-control:focus {
  border-color: rgba(122, 45, 255, 0.65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(122, 45, 255, 0.18);
}

.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.9rem;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 32px -18px rgba(122, 45, 255, 0.5);
}

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

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

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

.auth-card__footer {
  margin-top: 0.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(20, 18, 31, 0.08);
  font-size: 0.95rem;
  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: 1199.98px) {
  .auth-page {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  }
}

@media (max-width: 991.98px) {
  .app-shell__content--guest--auth {
    padding-top: calc(var(--navbar-height) + 3.75rem);
  }

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

  .auth-page__card {
    border-left: none;
    border-top: 1px solid rgba(122, 45, 255, 0.12);
  }

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

@media (max-width: 767.98px) {
  .app-shell__content--guest--auth {
    padding-inline: clamp(1rem, 6vw, 2rem);
  }

  .auth-page {
    border-radius: 1.75rem;
    box-shadow: 0 28px 80px -48px rgba(20, 18, 31, 0.45);
  }

  .auth-page__intro {
    padding: clamp(2.4rem, 7vw, 3.4rem) clamp(1.75rem, 6vw, 2.5rem);
  }

  .auth-page__card {
    padding: clamp(2.6rem, 6vw, 3.4rem);
  }
}

@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;
  }
}


/* =========================================================================
   Dashboard filters
   ========================================================================= */
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.95rem 1.1rem 1.05rem;
}

body.app-shell--auth #dashboard-filter-form {
  row-gap: 0.75rem !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-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);
}


/* =========================================================================
   Dashboard widgets typography & spacing
   ========================================================================= */
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.22rem, 1.02rem + 0.85vw, 1.72rem);
  line-height: 1.22;
  letter-spacing: 0.01em;
}

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 .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.15rem, 0.98rem + 0.75vw, 1.55rem);
  }
}

@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;
  }
}
