/* Landing mobile — max-width 768px only (desktop untouched) */

@media (min-width: 769px) {
  .k-mobile-pilot-header,
  .site-nav-toggle,
  .site-nav-panel,
  .loop-progress-v {
    display: none !important;
  }
}

@keyframes kTrackV {
  0% { height: 0%; }
  100% { height: 100%; }
}

@media (max-width: 768px) {
  .landing-page section[id],
  .landing-page section.blue-notify-section,
  .landing-page section:not(header):not(footer) {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .landing-page section#product,
  .landing-page section#hr,
  .landing-page section#pricing,
  .landing-page section#faq,
  .landing-page section.blue-notify-section,
  .landing-page section:has(.feature-cards) {
    padding-top: 80px !important;
  }

  .landing-page h2 {
    font-size: 32px !important;
  }

  .landing-page p {
    font-size: 16px !important;
  }

  .landing-page .k-cta-primary,
  .landing-page .k-cta-secondary,
  .landing-page .site-nav-panel__link,
  .landing-page .site-nav-panel__demo {
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* —— Nav —— */
  .site-header__inner {
    flex-wrap: nowrap !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 60px;
    height: 60px;
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: none !important;
  }

  .site-header__start {
    flex: 1 1 auto;
    gap: 0 !important;
    flex-wrap: nowrap !important;
  }

  .site-nav-desktop,
  .site-header__demo,
  .site-header__pilot-desktop {
    display: none !important;
  }

  .site-header__actions {
    gap: 8px !important;
    flex-shrink: 0;
  }

  a.k-mobile-pilot-header {
    font-size: 13px !important;
    padding: 8px 14px !important;
    min-height: auto;
    line-height: 1.2;
    white-space: nowrap;
  }

  .site-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #090E43;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .site-nav-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #66B5FB;
  }

  .site-nav-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid #F0F1F4;
    box-shadow: 0 12px 24px rgba(9, 14, 67, 0.06);
  }

  .site-nav-panel[hidden] {
    display: none !important;
  }

  .site-header.site-header--menu-open {
    border-bottom-color: transparent;
  }

  .site-nav-panel__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    color: #090E43;
    text-decoration: none;
    border-top: 1px solid #F0F1F4;
  }

  .site-nav-panel__demo {
    font-weight: 500;
    color: #090E43;
  }

  /* —— Hero —— */
  .landing-page {
    overflow-x: clip;
    max-width: 100%;
  }

  .hero-section {
    padding-top: 40px !important;
    gap: 18px !important;
    align-items: stretch !important;
    overflow-x: clip;
    min-width: 0;
  }

  .hero-title {
    font-size: 44px !important;
  }

  .hero-slack-viewport {
    box-sizing: border-box;
    align-self: stretch;
    flex: 0 0 auto;
    min-width: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 24px !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* —— Loop steps —— */
  .loop-steps {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 28px !important;
    align-items: stretch !important;
    padding-left: 0;
  }

  .loop-progress-h {
    display: none !important;
  }

  .loop-progress-v {
    display: block;
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    border-radius: 2px;
    overflow: hidden;
    background: #E3EAF5;
    z-index: 0;
  }

  .loop-progress-v__fill {
    width: 100%;
    height: 0%;
    background: #66B5FB;
    animation: kTrackV 10s linear infinite;
  }

  .loop-step {
    flex: none !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 16px !important;
    padding-left: 0;
  }

  .loop-step > span:not(.loop-step__icon) {
    max-width: none !important;
    text-align: left !important;
  }

  .loop-step__icon {
    flex-shrink: 0;
  }

  /* —— Blue notify card —— */
  .blue-notify-card {
    min-height: 340px !important;
    padding: 24px 16px !important;
  }

  .blue-notify-mascot {
    display: none !important;
  }

  .blue-notify-item {
    gap: 12px !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .blue-notify-item > img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
  }

  .blue-notify-item > div > div:first-child span:first-child {
    font-size: 17px !important;
  }

  .blue-notify-item > div > div:first-child span:last-child {
    font-size: 13px !important;
  }

  .blue-notify-item__text {
    font-size: 16px !important;
  }

  /* —— Feature cards —— */
  .feature-card {
    padding: 22px 20px 0 20px !important;
    flex: 1 1 100% !important;
  }

  .feature-mini-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding-bottom: 4px;
  }

  .feature-mini-table {
    min-width: 280px;
  }

  .feature-mini-table span[style*="font-weight: 500"],
  .feature-mini-table span[style*="font-weight:500"] {
    white-space: nowrap;
  }

  /* —— HR section —— */
  #hr {
    padding-bottom: 48px !important;
  }

  #hr .kscene {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
  }

  #hr .khr-copy {
    max-width: none !important;
    gap: 16px !important;
  }

  #hr .khr-mac {
    flex: none !important;
    max-width: none !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  #hr .khr-mac-bezel {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  #hr .kmac-screen {
    border-radius: 20px !important;
    border: 1px solid #E7E9EE;
    box-shadow: 0 12px 40px rgba(9, 14, 67, 0.08);
    overflow: visible !important;
  }

  #hr .khr-mac-notch,
  #hr .khr-mac-base,
  #hr .khr-app-sidebar {
    display: none !important;
  }

  #hr .kmac-app {
    padding-top: 0 !important;
  }

  #hr .kdash {
    background: #FFFFFF !important;
    border-radius: 20px;
    padding: 16px !important;
  }

  #hr .khr-dash-header > div:first-child {
    display: none !important;
  }

  #hr .khr-dash-toolbar {
    width: 100%;
    flex-wrap: wrap !important;
  }

  #hr .khr-kpi-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px !important;
  }

  #hr .khr-kpi-row > div,
  #hr .khr-kpi {
    flex: none !important;
    min-width: 0 !important;
  }

  #hr .khr-kpi-row > div > span:nth-child(2) {
    font-size: 18px !important;
  }

  #hr .khr-kpi-delta,
  #hr .khr-kpi-row > div > span:nth-child(3) {
    font-size: 12px !important;
  }

  #hr .khr-charts-row {
    flex-direction: column !important;
  }

  #hr .khr-charts-row > div {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #hr .khr-copy .khr-dash-toolbar {
    margin-top: 4px;
  }

  #hr .khr-table-scroll {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding-bottom: 2px;
  }

  #hr .khr-table-scroll::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #FFFFFF);
  }

  /* Min font size */
  .landing-page {
    font-size: 16px;
  }

  .landing-page [style*="font-size: 9px"],
  .landing-page [style*="font-size:9px"],
  .landing-page [style*="font-size: 10px"],
  .landing-page [style*="font-size:10px"] {
    font-size: 12px !important;
  }
}