/* ============================================================
   App hub landing page — page-specific styles
   Built on The Scholarship System design system tokens.
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--tss-font-body);
  color: var(--tss-fg);
  background: var(--tss-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; }
a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap--wide { max-width: 1280px; }

/* (Scroll-reveal intentionally omitted — content is always visible.) */

/* ---- layout grids ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}
.apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.show-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.feat-list { display: grid; gap: 14px; }

/* ---- pill / chip ---- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  font-family: var(--tss-font-heading);
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}
.chip--soon { background: var(--tss-sand); color: var(--tss-pine); }
.chip--now  { background: var(--tss-forest); color: #fff; }
.chip--pulse::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px;
  background: currentColor; box-shadow: 0 0 0 0 currentColor;
  animation: chipPulse 2s var(--tss-ease-out) infinite;
}
@keyframes chipPulse {
  0% { box-shadow: 0 0 0 0 rgba(14,102,79,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(14,102,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(14,102,79,0); }
}

/* ---- store badges ---- */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  padding: 9px 16px 9px 13px;
  border-radius: 11px;
  background: #14130f; color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  transition: transform 150ms var(--tss-ease-standard), box-shadow 150ms, background 150ms;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20,19,15,0.28); background: #000; }
.store-badge:active { transform: translateY(0); }
.store-badge__t { font-family: var(--tss-font-body); font-size: 10px; line-height: 1; opacity: 0.82; letter-spacing: 0.02em; }
.store-badge__b { font-family: var(--tss-font-heading); font-weight: 700; font-size: 16px; line-height: 1.15; letter-spacing: 0.01em; }
.store-badge--ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }
.store-badge--ghost:hover { background: rgba(255,255,255,0.16); }

/* ---- phone frame ---- */
.phone {
  position: relative;
  background: linear-gradient(158deg, #2c3b31 0%, #0c130e 78%);
  border-radius: 13.5% / 6.5%;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.07), inset 0 0 0 6px rgba(0,0,0,0.35);
}
.phone__screen {
  position: relative; overflow: hidden; background: #fff;
  border-radius: 11% / 5.6%;
}
.phone__island {
  position: absolute; top: 3.4%; left: 50%; transform: translateX(-50%);
  width: 32%; height: 2.6%; min-height: 16px;
  background: #060907; border-radius: 999px; z-index: 4; pointer-events: none;
}
.phone image-slot { display: block; width: 100%; }

/* ---- links / nav ---- */
.nav-link {
  font-family: var(--tss-font-heading); font-weight: 600; font-size: 14.5px;
  color: var(--tss-pine); text-decoration: none; opacity: 0.86;
  transition: opacity 150ms, color 150ms;
}
.nav-link:hover { opacity: 1; color: var(--tss-forest); }
.nav-mobile-panel {
  display: none;
}

/* ---- buttons (extend kit) ---- */
.tss-btn { white-space: nowrap; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---- check item ---- */
.check {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--tss-font-body); font-size: 15.5px; line-height: 1.3; color: var(--tss-fg);
}
.check__ic {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}

/* ---- how-to-use tracker section ---- */
.howto-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.howto-video {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--tss-radius-lg);
  overflow: hidden;
  box-shadow: var(--tss-shadow-lg);
  background: var(--tss-pine);
}
.howto-video image-slot { display: block; width: 100%; height: 100%; }
.howto-video__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(0deg, rgba(29,51,39,0.34), rgba(29,51,39,0.08));
  pointer-events: none;
}
.howto-video__play {
  width: 74px; height: 74px; border-radius: 999px;
  background: var(--tss-crimson, #71210F);
  display: flex; align-items: center; justify-content: center;
  padding-left: 4px;
  box-shadow: 0 14px 34px rgba(20,19,15,0.4);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--tss-border);
  border-radius: 18px;
  padding: 26px 24px 24px;
  box-shadow: var(--tss-shadow-xs);
  transition: transform 150ms var(--tss-ease-standard), box-shadow 150ms;
}
.step-card:hover { transform: translateY(-2px); box-shadow: var(--tss-shadow-sm); }
.step-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.step-num {
  flex: 0 0 auto;
  font-family: var(--tss-font-heading); font-weight: 800;
  font-size: 30px; line-height: 1; color: var(--tss-forest);
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--tss-forest-50);
  display: flex; align-items: center; justify-content: center;
}
.step-title {
  font-family: var(--tss-font-heading); font-weight: 700;
  font-size: 18px; line-height: 1.2; color: var(--tss-pine); margin: 0;
}
.step-body {
  font-family: var(--tss-font-body); font-size: 14.5px; line-height: 1.55;
  color: var(--tss-fg-muted); margin: 0 0 16px;
}
.step-action { margin-top: auto; }

/* ---- diagonal split (which-app variant) ---- */
.split-screen {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--tss-radius-lg);
  overflow: hidden; box-shadow: var(--tss-shadow-lg);
}
.split-pane { padding: 48px 44px; }

/* ---- responsive-aware grids used elsewhere ---- */
.appcard-body { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.webinar-card { padding: 56px 56px; }
.webinar-grid { display: grid; gap: 40px; align-items: center; }
.show-phones { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .show-grid { grid-template-columns: 1fr; gap: 36px; }
  .howto-top { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .apps-grid { grid-template-columns: 1fr; gap: 22px; }
  .split-screen { grid-template-columns: 1fr; }
  .nav-links, .nav-actions { display: none !important; }
  .nav-burger { display: flex !important; align-items: center; justify-content: center; }
  .nav-mobile-panel {
    display: block; padding: 18px 20px 26px; border-top: 1px solid var(--tss-border);
    background: #fff;
  }
  .nav-link--mobile { font-size: 16.5px; padding: 10px 0; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .split-pane { padding: 34px 26px; }
  .steps-grid { grid-template-columns: 1fr; }
  .appcard-body { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .webinar-card { padding: 34px 22px; }
  .webinar-grid { grid-template-columns: 1fr !important; gap: 30px; }
  .show-phones { flex-wrap: wrap; gap: 10px; }
  .show-phones > div { transform: none !important; }
}
