/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Ligo App-Shell — swipeable section layout + bottom tab bar + chevrons
   Mobile (<769px): horizontal slide between sections, fixed tab bar.
   Desktop (≥769px): all sections stack vertically, tab bar hidden.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Shell wrapper ────────────────────────────────────────────────── */
.shell {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

/* ── Viewport: clips horizontal track on mobile ───────────────────── */
.shell__viewport {
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
}

/* ── Track: flex-row of all sections ─────────────────────────────── */
.shell__track {
  display: flex;
  flex-direction: row;
  /* JS sets width = N × 100vw and animates translateX */
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: flex-start;
}

/* ── Individual sections ──────────────────────────────────────────── */
.shell__section {
  flex: 0 0 100vw;
  width: 100vw;
  max-width: 100vw;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  position: relative;
  /* Space for fixed tab bar */
  padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 10px);
}

/* ── Top brand bar (sticky within each section) ───────────────────── */
.shell__brand {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: linear-gradient(180deg, rgba(10,14,26,0.92) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,193,7,0.10);
  min-height: 46px;
}

.shell__brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0f4f8;
  letter-spacing: 0.2px;
}

/* ── Bottom nav tab bar ────────────────────────────────────────────── */
.shell__nav {
  position: fixed;
  top: auto;   /* override nav{top:0} tag rule from page CSS */
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(8, 11, 16, 0.97);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255,193,7,0.22);
  display: flex;
  align-items: stretch;
  z-index: 800;
}

/* ── Tab buttons ───────────────────────────────────────────────────── */
.shell__navbtn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 2px;
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(245, 245, 245, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.18s ease;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.2;
  text-align: center;
}

.shell__navbtn svg.ico {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  flex-shrink: 0;
}

.shell__navbtn:hover,
.shell__navbtn.is-active {
  color: #ffc107;
}

.shell__navbtn.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: #ffc107;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.55);
  border-radius: 2px 2px 0 0;
}

/* Founders tab — gold star accent */
.shell__navbtn--founders {
  color: rgba(255, 193, 7, 0.45);
}
.shell__navbtn--founders:hover,
.shell__navbtn--founders.is-active {
  color: #ffc107;
}

/* Multi-line labels for wide button text */
.shell__navbtn--industry {
  font-size: 0.52rem;
  line-height: 1.25;
}

/* ── Chevron swipe affordances (injected by JS) ───────────────────── */
.shell__chevron {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  /* Nudge upward so chevrons sit in the content area above the tab bar */
  margin-top: calc(-29px - env(safe-area-inset-bottom, 0px) * 0.5);
  width: 32px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 26, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 193, 7, 0.18);
  border-radius: 8px;
  color: rgba(255, 193, 7, 0.65);
  cursor: pointer;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, color 0.18s ease;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.shell__chevron.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.shell__chevron:hover { color: #ffc107; }

.shell__chevron svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell__chevron--prev { left: 5px; }
.shell__chevron--next { right: 5px; }

/* One-time hint pulse on the next-chevron at first load */
@keyframes shellChevronHint {
  0%   { opacity: 0; transform: translateY(-50%) translateX(0); }
  25%  { opacity: 0.9; }
  50%  { transform: translateY(-50%) translateX(5px); }
  75%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-50%) translateX(0); }
}

.shell__chevron--next.do-hint {
  animation: shellChevronHint 1.6s ease 0.9s 1 forwards;
  /* after the hint fades, JS class 'is-visible' controls display */
}

/* ── Desktop reset — all sections stack, nav hidden ─────────────── */
@media (min-width: 769px) {
  .shell { overflow-x: visible; }
  .shell__viewport { overflow-x: visible; }

  .shell__track {
    flex-direction: column !important;
    width: 100% !important;
    transform: none !important;
    transition: none !important;
  }

  .shell__section {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 0;
  }

  .shell__brand  { display: none; }
  .shell__nav    { display: none; }
  .shell__chevron { display: none; }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .shell__track { transition: none !important; }
  .shell__navbtn { transition: none; }
  .shell__chevron {
    transition: none;
    animation: none !important;
  }
}
