/* For Users Page Specific Styles */

/* Page Structure */
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  overflow-x: hidden;
}

.hero-section {
  min-height: 85vh;
  height: 85vh;
  background-color: var(--white);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Height-based responsive styles for app section */
@media (max-height: 700px) {
  #app img {
    max-height: 45vh !important;
  }

  #app .btn-primary,
  #app img[alt="Google Play Store"],
  #app img[alt="Apple App Store"] {
    transform: scale(0.85);
    transform-origin: left center;
  }

  #app .space-y-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  #app .mb-6 {
    margin-bottom: 1rem !important;
  }

  #app .mb-8 {
    margin-bottom: 1.5rem !important;
  }

  #app .gap-4 {
    gap: 0.5rem !important;
  }

  #app h2 {
    margin-bottom: 1rem !important;
  }

  #app .flex-wrap {
    gap: 0.75rem !important;
  }
}

@media (max-height: 600px) {
  #app img {
    max-height: 40vh !important;
  }

  #app .btn-primary,
  #app img[alt="Google Play Store"],
  #app img[alt="Apple App Store"] {
    transform: scale(0.75);
  }

  #app ul {
    font-size: 0.875rem;
  }

  #app .body-large {
    font-size: 1rem;
  }
}

/* Mobile height responsive */
@media (max-width: 768px) and (max-height: 700px) {
  #app .max-h-64 {
    max-height: 35vh !important;
  }

  #app .mb-8 {
    margin-bottom: 1rem !important;
  }

  #app .gap-4 {
    gap: 0.5rem !important;
  }

  #app .w-48 {
    width: 10rem !important;
  }

  #app img[alt="Google Play Store"],
  #app img[alt="Apple App Store"] {
    height: auto !important;
    max-height: 3rem !important;
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  #app img[alt="TRST Mobile App"] {
    display: none !important;
  }

  #what-is-trst-id {
    height: auto !important;
    min-height: auto !important;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  #what-is-trst-id .grid {
    gap: 1.5rem !important;
  }

  #what-is-trst-id .p-6 {
    padding: 1rem !important;
  }

  #what-is-trst-id .headline-large {
    font-size: 2rem !important;
    margin-bottom: 2rem !important;
  }

  #what-is-trst-id .headline-small {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  #what-is-trst-id .w-20 {
    width: 4rem !important;
  }

  #what-is-trst-id .h-20 {
    height: 4rem !important;
  }

  #what-is-trst-id .mb-12 {
    margin-bottom: 2rem !important;
  }
}

/* Pattern styles */
.hero-pattern {
  position: absolute;
  top: 0;
  right: -20px;
  width: 50%;
  height: 100%;
  font-family: "trstype";
  font-size: 4.5vw;
  line-height: 1.5;
  opacity: 0.12;
  color: var(--primary-blue);
  pointer-events: none;
  display: block;
  overflow: hidden;
  z-index: 0;
  text-align: left;
  color: transparent;
  -webkit-text-stroke: 2px var(--primary-blue);
  letter-spacing: 0.2em;
  word-spacing: 0.3em;
  padding: 20px;
  white-space: normal;
  word-break: break-word;
}

.tagline-pattern {
  position: absolute;
  top: 10%;
  right: -50px;
  width: 60%;
  height: 80%;
  font-family: "trstype";
  font-size: 5vw;
  line-height: 1.4;
  opacity: 0.1;
  color: var(--primary-blue);
  pointer-events: none;
  display: block;
  overflow: visible;
  z-index: 0;
  text-align: left;
  color: transparent;
  -webkit-text-stroke: 2px var(--primary-blue);
  letter-spacing: 0.15em;
  word-spacing: 0.2em;
  padding: 20px;
  white-space: normal;
  word-break: break-word;
}

.desktop-pattern {
  display: block;
  font-family: "trstype";
}

.mobile-pattern {
  display: none;
}

@media (max-width: 768px) {
  .desktop-pattern {
    display: none;
  }

  .mobile-pattern {
    display: block;
    font-family: "trstype";
  }

  .hero-pattern {
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: calc(25%);
    font-size: 12vw;
    opacity: 0.06;
    text-align: center;
    right: auto;
    display: flex;
  }

  .tagline-pattern {
    top: auto;
    bottom: 0;
    right: -20px;
    width: 100%;
    height: 40%;
    font-size: 12vw;
    overflow: hidden;
  }
}

.blue-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: "trstype", sans-serif;
  font-size: 7vw;
  line-height: 1.4;
  opacity: 0.15;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  display: block;
  overflow: hidden;
  z-index: 1;
  text-align: left;
  padding: 0;
  overflow-wrap: break-all;
}

@media (max-width: 768px) {
  .blue-pattern {
    font-size: 12vw;
    height: calc(30%);
    top: auto;
    bottom: 0;
    left: auto;
    right: auto;
    width: 80%;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
}

/* Section styles */
.section {
  min-height: 100vh;
  height: 100vh;
  scroll-margin-top: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.scroll-arrow {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.3s ease;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-arrow svg {
  width: 100%;
  height: 100%;
  fill: var(--primary-blue);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.features-section {
  padding: 4rem 0;
}

.feature-card {
  padding: 2rem;
}

.blue-section {
  background-color: var(--deepest-blue);
  color: var(--white);
  padding: 4rem 0;
  margin-top: 0;
}

/* Footer override for for-users page */
.footer {
  background-color: var(--white);
  padding: 3rem 0 1rem 0;
  border-top: 1px solid rgba(193, 199, 212, 0.5);
}

/* Landing page container */
.landing-page-container {
  width: 100%;
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
}

.landing-page-landing-page {
  width: 100%;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* Ensure content doesn't overflow on smaller screens */
picture img {
  max-width: 100%;
  height: auto;
}

/* Hide/show desktop and mobile specific elements */
#desktop-thats-it {
  display: flex !important;
}

#mobile-thats-it {
  display: none;
}

@media (max-width: 768px) {
  #desktop-thats-it {
    display: none !important;
  }

  #mobile-thats-it {
    display: block;
  }
}

/* Extracted inline styles from layouts/for-users/single.html */

/* Hero section positioning */
.hero-section-custom {
  min-height: 95vh;
  height: 80vh;
}

/* Tagline section positioning */
.tagline-section-custom {
  padding-bottom: 0;
  min-height: 100vh;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Palm image positioning - desktop */
.palm-image-container-desktop {
  position: relative;
  height: 100%;
}

.palm-image-desktop {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 5;
  max-height: calc(100vh - 70px);
  object-fit: contain;
  object-position: bottom;
  display: block;
  margin-bottom: -1px;
  transform: scale(1.2);
  transform-origin: bottom;
  position: relative;
  z-index: 10;
}

/* Palm image positioning - mobile */
.palm-image-container-mobile {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  text-align: center;
}

.palm-image-mobile {
  max-height: calc(100vh - 300px);
  object-fit: contain;
  object-position: bottom;
  display: block;
  margin-bottom: -1px;
  transform: scale(1.2);
  transform-origin: bottom;
  position: relative;
  z-index: 10;
}

/* Blue section positioning */
.blue-section-custom {
  position: relative;
  z-index: 5;
  margin-top: 0;
  padding-top: 0;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Hand image positioning - desktop */
.hand-image-desktop {
  max-height: 100vh;
  object-fit: contain;
  object-position: left;
}

/* Hand image positioning - mobile */
.hand-image-mobile {
  max-height: 50vh;
  object-fit: contain;
  object-position: left;
}

/* What is TRST ID section */
.trst-id-section {
  min-height: max(900px, 100vh);
  height: auto;
  display: flex;
  align-items: center;
  background-color: #f9fafb;
  position: relative;
  overflow: hidden;
}

/* TRST ID background pattern */
.trst-id-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: "trstype";
  font-size: 6vw;
  line-height: 1.2;
  opacity: 0.03;
  color: var(--primary-blue);
  pointer-events: none;
  display: block;
  overflow: hidden;
  z-index: 0;
  text-align: center;
  padding: 40px;
  white-space: normal;
  word-break: break-word;
}

/* App section positioning */
.app-section-custom {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
}

/* Tagline2 section with background */
.tagline2-section-custom {
  background-size: cover;
  background-position: center;
  background-color: rgba(32, 36, 44, 0.8);
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
}

/* Mobile spacing for hand image */
.hand-image-mobile-spacing {
  margin-left: -16px;
}
