/* KLEVGO LOCAL ONEST FONT FACE START */

@font-face {
  font-family: "Onest";
  src: url("../../fonts/onest/Onest-100.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../../fonts/onest/Onest-200.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../../fonts/onest/Onest-300.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../../fonts/onest/Onest-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../../fonts/onest/Onest-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../../fonts/onest/Onest-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../../fonts/onest/Onest-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../../fonts/onest/Onest-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../../fonts/onest/Onest-900.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* KLEVGO LOCAL ONEST FONT FACE END */

* {
  box-sizing: border-box;
  font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --klevby-app-viewport-width: 100vw;
  --klevby-app-viewport-height: 100dvh;
  --klevby-app-available-top: 0px;
  --klevby-app-available-bottom: 100dvh;
  --klevby-app-available-height: 100dvh;
  --klevby-app-available-bottom-offset: 0px;
  --klevby-app-inline-inset: 16px;
  /* Core Token Bridge — new kg shell aliases. Do not consume in feature CSS yet. */
  --kg-viewport-width: var(--klevby-app-viewport-width);
  --kg-viewport-height: var(--klevby-app-viewport-height);
  --kg-shell-top: var(--klevby-app-available-top);
  --kg-shell-bottom: var(--klevby-app-available-bottom);
  --kg-shell-height: var(--klevby-app-available-height);
  --kg-shell-bottom-offset: var(--klevby-app-available-bottom-offset);
  --kg-screen-inline: var(--klevby-app-inline-inset);
  --kg-safe-top: env(safe-area-inset-top, 0px);
  --kg-safe-bottom: env(safe-area-inset-bottom, 0px);

  /* PR-11 Header frame aliases — mirror Kernel top chrome tokens only. */
  --kg-header-top: 0px;
  --kg-header-bottom: var(--kg-shell-top, var(--klevby-app-available-top, 0px));
  --kg-header-height: var(--kg-header-height-measured, var(--kg-header-bottom));
  --kg-header-top-offset: var(--kg-header-top-offset-measured, 0px);
  --kg-header-frame-total: var(--kg-header-bottom);
  --kg-screen-top-frame-offset: var(--kg-header-frame-total);

  /* PR-10 TouchBar frame aliases — mirror legacy bottom chrome tokens only. */
  --kg-touchbar-height: var(--klevby-touchbar-height);
  --kg-touchbar-bottom-gap: var(--klevby-touchbar-bottom-gap);
  --kg-touchbar-bottom-offset: var(--klevby-touchbar-bottom-offset);
  --kg-touchbar-frame-total: var(--klevby-bottom-chrome-total);
  --kg-screen-touchbar-clearance: 8px;
  --kg-screen-bottom-frame-offset: var(--kg-shell-bottom-offset, var(--klevby-app-available-bottom-offset));
  --klevgo-font-display: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --bg: #040807;
  --bg-soft: #0b1210;
  --panel: rgba(17, 24, 21, 0.80);
  --panel-solid: rgba(18, 24, 21, 0.96);
  --glass: rgba(255,255,255,0.07);
  --glass-hover: rgba(255,255,255,0.11);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --text: #fff8ea;
  --muted: rgba(255,248,234,0.68);
  --muted2: rgba(255,248,234,0.44);
  --green: #f4b24a;
  --green2: #ff9f2e;
  --blue: #8fd4ff;
  --gold: #f4b24a;
  --gold2: #ff9f2e;
  --amber: #ffb340;
  --bronze: #8b5b25;
  --red: #e45858;
  --radius-ui: 18px;
  --radius-card: 24px;
  --shadow: 0 18px 50px rgba(0,0,0,0.38);
  --shadow-soft: 0 28px 80px rgba(0,0,0,0.46);
  --glow: 0 0 34px rgba(244,178,74,0.24);

  /* Shared mobile bottom chrome — single contract for TouchBar occupancy (foundation). */
  --klevby-touchbar-height: 70px;
  --klevby-touchbar-bottom-gap: 16px;
  --klevby-bottom-safe-area: env(safe-area-inset-bottom, 0px);
  --klevby-touchbar-bottom-offset: max(var(--klevby-touchbar-bottom-gap), var(--klevby-bottom-safe-area));
  --klevby-bottom-chrome-total: calc(var(--klevby-touchbar-bottom-offset) + var(--klevby-touchbar-height));
}

.app-screen-container {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--klevby-app-available-top);
  bottom: var(--klevby-app-available-bottom-offset);
  height: var(--klevby-app-available-height);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.app-screen-container.app-screen-scroll,
.app-screen-container[data-scroll="y"] {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 380px) {
  :root {
    --klevby-app-inline-inset: 12px;
    --klevby-touchbar-bottom-gap: 14px;
  }
}

html {
  scroll-behavior: smooth;
  background: #000000;
}

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% -10%, rgba(244,178,74,0.13), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(255,159,46,0.10), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(73,42,18,0.24), transparent 40%),
    linear-gradient(180deg, #020403 0%, #07100d 42%, #020403 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

body.post-modal-open {
  overflow: hidden;
  touch-action: none;
}

h1,
h2 {
  font-weight: 800 !important;
}

h3 {
  font-weight: 800;
}

p {
  line-height: 1.5;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(94%, 1180px);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background:
    radial-gradient(circle at 50% 35%, rgba(244,178,74,0.18), transparent 34%),
    #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.app-splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  position: relative;
  height: 86px;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -2px;
  color: #ffffff;
  filter: drop-shadow(0 0 28px rgba(244,178,74,0.20));
}

.splash-k {
  font-weight: inherit;
  display: inline-block;
  animation:
    splashKPulse 1s ease-in-out 0s 1,
    splashKMove 0.85s cubic-bezier(.22,.9,.22,1) 1s forwards;
  transform-origin: center;
}

.splash-rest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 1;
  transform: none;
}

.splash-rest .letter {
  font-weight: inherit;
  display: inline-block;
  opacity: 0;
  transform: translateX(42px) translateY(18px) rotate(18deg) scale(0.84);
  filter: blur(8px);
  transform-origin: center bottom;
  animation: splashLetterWave 0.78s cubic-bezier(0.17, 0.89, 0.32, 1.28) forwards;
}

.splash-rest .letter:nth-child(1) { animation-delay: 1.00s; }
.splash-rest .letter:nth-child(2) { animation-delay: 1.08s; }
.splash-rest .letter:nth-child(3) { animation-delay: 1.16s; }
.splash-rest .letter:nth-child(4) { animation-delay: 1.24s; }
.splash-rest .letter:nth-child(5) { animation-delay: 1.32s; }

.splash-rest .letter:nth-child(4),
.splash-rest .letter:nth-child(5) {
  color: #F47A2B;
}

.splash-logo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(244, 122, 43, 0.95), transparent);
  transform: translateX(-50%);
  animation: splashLine 1.1s ease 1.25s forwards;
}

@keyframes splashKPulse {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }

  20% {
    opacity: 1;
    transform: scale(1.08);
  }

  45% {
    transform: scale(0.96);
  }

  70% {
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splashKMove {
  0% {
    transform: translateX(0) scale(1);
  }

  100% {
    transform: translateX(-3px) scale(1);
  }
}

@keyframes splashLetterWave {
  0% {
    opacity: 0;
    transform: translateX(42px) translateY(18px) rotate(18deg) scale(0.84);
    filter: blur(8px);
  }

  45% {
    opacity: 1;
    transform: translateX(-7px) translateY(-10px) rotate(-8deg) scale(1.08);
    filter: blur(1px);
  }

  68% {
    transform: translateX(4px) translateY(5px) rotate(4deg) scale(0.98);
    filter: blur(0);
  }

  84% {
    transform: translateX(-2px) translateY(-2px) rotate(-2deg) scale(1.02);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0) scale(1);
    filter: blur(0);
  }
}

@keyframes splashLine {
  0% {
    width: 0;
    opacity: 0;
  }

  45% {
    opacity: 1;
  }

  100% {
    width: 168px;
    opacity: 0.85;
  }
}

.skeleton {
  min-height: 260px;
  border-radius: var(--radius-card);
  border: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04),
    rgba(244,178,74,0.10),
    rgba(255,255,255,0.04)
  );
  background-size: 200% 100%;
  animation: shine 1.4s infinite;
  box-shadow: 0 4px 20px rgba(0,0,0,0.16);
}

@keyframes shine {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

.footer {
  text-align: center;
  padding: 36px 0 58px;
  color: rgba(255,248,234,0.42);
  font-size: 14px;
  font-weight: 600;
}

/* KlevGo Home hero brand colors */
.hero-title-brand-main {
  color: #ffffff;
}

.hero-title-brand-accent {
  color: #F47A2B;
}

.hero-title-line {
  color: #ffffff;
}


/* Force Home hero subtitle to pure white */
#homeSection .hero-title .hero-title-line {
  color: #ffffff;
}
