/**
 * Lightning Track — shared mobile / touch layout
 * Place this <link> after each page’s inline <style>.
 */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

table {
  max-width: 100%;
}

.table-scroll,
.review-table-wrap {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .app-nav {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-top: max(12px, env(safe-area-inset-top, 0px));
  }

  .joining-label {
    width: 100%;
    text-align: center;
  }

  .progress-steps {
    row-gap: 8px;
  }

  .ps {
    white-space: normal;
    line-height: 1.35;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row-left {
    flex-direction: column;
    width: 100%;
  }

  .btn-row .btn-primary-orange,
  .btn-row .btn-outline {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
  }

  header .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  header nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }
}

@media (max-width: 480px) {
  .invite-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .invite-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .invite-card {
    padding: 22px 16px 26px;
    border-radius: 10px;
  }

  .code-field {
    font-size: 15px;
    letter-spacing: 2px;
  }

  .form-heading h1 {
    font-size: clamp(22px, 7vw, 32px);
  }

  .hero h2 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-btn {
    min-height: 48px;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}
