/* ==========================================================================
   Landing (Home/MainPage), auth layout (_LayoutAuth) and privacy page
   ========================================================================== */

body.kb-landing, body.kb-auth { font-family: var(--kb-font); color: var(--kb-text); background: var(--kb-bg); }

/* Landing */
.kb-landing-nav { position: absolute; inset: 0 0 auto 0; z-index: 10; padding: 18px 0; }
.kb-landing-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.kb-landing-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: #fff; }
.kb-landing-brand:hover { color: #fff; text-decoration: none; }
.kb-landing-brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.kb-landing-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.kb-landing-actions .btn-outline-light { border-radius: var(--kb-radius-pill); padding: 8px 18px; }

.kb-hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; color: #fff; background: var(--kb-gradient); overflow: hidden; }
.kb-hero::before { content: ""; position: absolute; width: 700px; height: 700px; top: -30%; right: -15%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 65%); pointer-events: none; }
.kb-hero::after { content: ""; position: absolute; width: 500px; height: 500px; bottom: -30%; left: -10%; border-radius: 50%; background: radial-gradient(circle, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 65%); pointer-events: none; }
.kb-hero .container { position: relative; }
.kb-hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; }
.kb-hero-desc { font-size: 1.15rem; max-width: 520px; opacity: 0.92; margin-bottom: 32px; line-height: 1.6; }
@keyframes kb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* Phone mockups: real screenshots in CSS frames, no background box */
.kb-hero-phones { position: relative; height: 600px; max-width: 470px; margin: 0 auto; animation: kb-float 7s ease-in-out infinite; }
.kb-phone { position: absolute; width: 250px; padding: 10px; border-radius: 42px; background: #15161d; box-shadow: 0 34px 60px rgba(0, 0, 0, 0.38), inset 0 0 0 2px rgba(255, 255, 255, 0.09); }
.kb-phone img { display: block; width: 100%; height: auto; border-radius: 32px; }
.kb-phone-back { left: 0; top: 48px; transform: rotate(-8deg); opacity: 0.94; }
.kb-phone-front { right: 0; top: 0; transform: rotate(6deg); z-index: 2; }
@media (prefers-reduced-motion: reduce) { .kb-hero-phones { animation: none; } }

.kb-store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.kb-store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; min-width: 170px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; backdrop-filter: blur(8px); transition: background 0.2s, transform 0.2s; }
.kb-store-btn:hover { background: rgba(255, 255, 255, 0.26); color: #fff; text-decoration: none; transform: translateY(-2px); }
.kb-store-btn .bi { font-size: 1.6rem; }
.kb-store-btn small { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; }
.kb-store-btn span { display: block; font-size: 1rem; font-weight: 650; line-height: 1.1; }
.kb-store-btn.kb-store-primary { background: #fff; color: var(--kb-brand-2); border-color: #fff; }
.kb-store-btn.kb-store-primary:hover { background: #f4f2ff; color: var(--kb-brand-2); }

.kb-features { padding: 88px 0; }
.kb-feature { height: 100%; padding: 32px 28px; border-radius: var(--kb-radius-lg); background: var(--kb-surface); border: 1px solid var(--kb-border); box-shadow: var(--kb-shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.kb-feature:hover { transform: translateY(-4px); box-shadow: var(--kb-shadow); }
.kb-feature.kb-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.kb-feature.kb-reveal.is-visible { opacity: 1; transform: none; }
.kb-feature-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--kb-gradient); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px; }
.kb-feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.kb-feature p { color: var(--kb-text-muted); margin: 0; line-height: 1.6; }

.kb-landing-footer { padding: 40px 0; border-top: 1px solid var(--kb-border); text-align: center; color: var(--kb-text-muted); font-size: 0.9rem; }
.kb-landing-footer a { color: var(--kb-text-muted); margin: 0 10px; }
.kb-landing-footer a:hover { color: var(--kb-brand-1); }

@media (max-width: 991.98px) {
  .kb-hero { padding-top: 110px; text-align: center; min-height: auto; }
  .kb-hero-desc { margin-inline: auto; }
  .kb-store-buttons { justify-content: center; }
  .kb-hero-phones { height: 500px; max-width: 380px; margin-top: 48px; }
  .kb-phone { width: 205px; }
}
@media (max-width: 575.98px) {
  .kb-landing-nav { padding: 12px 0; }
  .kb-landing-brand { font-size: 1.05rem; gap: 8px; }
  .kb-landing-brand img { width: 36px; height: 36px; border-radius: 10px; }
  .kb-landing-actions { gap: 6px; }
  .kb-landing-actions .btn-group .btn, .kb-landing-actions .btn-icon-sm { padding: 4px 9px; font-size: 0.8rem; }
  .kb-landing-actions > .btn-outline-light { padding: 6px 12px; font-size: 0.85rem; }
  .kb-hero { padding-top: 96px; }
  .kb-hero-phones { height: 430px; max-width: 300px; margin-top: 36px; }
  .kb-phone { width: 168px; padding: 7px; border-radius: 30px; }
  .kb-phone img { border-radius: 23px; }
  .kb-phone-back { top: 36px; }
}
@media (max-width: 380px) {
  .kb-landing-brand span { display: none; }
}

/* Auth layout */
body.kb-auth { min-height: 100vh; display: flex; flex-direction: column; background: var(--kb-gradient); }
.kb-auth-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.kb-auth-top .kb-landing-brand { font-size: 1.1rem; }
.kb-auth-top .kb-landing-brand img { width: 36px; height: 36px; }
.kb-auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 16px 48px; }
.kb-auth-card { width: 100%; max-width: 440px; background: var(--kb-surface); color: var(--kb-text); border-radius: var(--kb-radius-lg); box-shadow: var(--kb-shadow-lg); padding: 36px 32px; }
@media (max-width: 575.98px) { .kb-auth-card { padding: 28px 22px; } }
.kb-auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.kb-auth-card .kb-auth-sub { color: var(--kb-text-muted); margin-bottom: 24px; }
.kb-auth-card .form-control { padding: 0.7rem 0.9rem; }
.kb-auth-or { display: flex; align-items: center; gap: 12px; color: var(--kb-text-faint); font-size: 0.85rem; margin: 18px 0; }
.kb-auth-or::before, .kb-auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--kb-border); }
.kb-btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--kb-surface); border: 1px solid var(--kb-border-strong); color: var(--kb-text); width: 100%; padding: 0.65rem; font-weight: 550; }
.kb-btn-google:hover { background: var(--kb-surface-2); color: var(--kb-text); }
.kb-auth-links { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--kb-text-muted); }
.kb-auth-top .btn, .kb-auth-top .form-select { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.kb-auth-top .btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.kb-pw-toggle { border-left: 0; }

/* Privacy page */
.kb-privacy { max-width: 820px; margin: 40px auto; }
.kb-privacy h1 { font-size: 2rem; margin-bottom: 4px; }
.kb-privacy h2 { font-size: 1.3rem; margin-top: 32px; padding-bottom: 8px; border-bottom: 1px solid var(--kb-border); }
.kb-privacy h3 { font-size: 1.1rem; margin-top: 20px; }
.kb-privacy h4 { font-size: 1rem; margin-top: 14px; color: var(--kb-text-muted); }
.kb-privacy p, .kb-privacy li { line-height: 1.7; color: var(--kb-text-muted); }
