/* Base Styles */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 0;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hide scrollbars inside custom dropdown menus (mobile + desktop) */
.dob-dd__menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.dob-dd__menu::-webkit-scrollbar {
  display: none;
}

/* Password show/hide toggle (mobile + desktop) */
.password-field {
  position: relative;
  width: 100%;
}

.password-field input[type="password"],
.password-field input[type="text"] {
  padding-right: 46px !important;
}

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.16s, transform 0.18s;
}

.pw-toggle:hover {
  color: rgba(255, 255, 255, 1);
}

.pw-toggle:active {
  transform: translateY(-50%) scale(0.98);
}

@media (max-width: 700px) {
  .pw-toggle {
    right: 8px;
    width: 34px;
    height: 34px;
    color: rgba(255, 255, 255, 0.78);
  }
  .pw-icon {
    width: 18px;
    height: 18px;
  }
}

.pw-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.pw-icon--hide {
  display: none;
}

.pw-toggle[aria-pressed="true"] .pw-icon--show {
  display: none;
}
.pw-toggle[aria-pressed="true"] .pw-icon--hide {
  display: block;
}

/* Video Background and Overlay */
#bgVideo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  pointer-events: none;
}

@supports (height: 100dvh) {
  #bgVideo {
    min-height: 100dvh;
  }
}

.overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background: rgba(0,0,0,0.55);
  z-index: -1;
  pointer-events: none;
}

@supports (height: 100dvh) {
  .overlay {
    min-height: 100dvh;
  }
}

/* Vector */
.vector1 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  margin-top: 30px;
}

.vector1 img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

/* Main Container */
.container {
  /* Keep hero content above the banner and avoid overlapping when the viewport is short */
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 80px;
  padding-bottom: 40px;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
}

.container h1 {
  font-size: 5rem;
  margin-bottom: 0.4em;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.1;
  margin-top: 100px;
}

.container p {
  font-size: 1.3em;
  margin-bottom: 1em;
  max-width: 600px;
}

/* Button Section */
.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  margin-bottom: 0px;
  z-index: 2;
  position: relative;
}

.signup-btn,
.log1-btn {
  width: 200px;
  padding: 15px 5px; /* Increased padding for better proportions */
  background: #ff4d5c;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 40px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 2px 14px #d42647;
  transition: background 0.2s, transform 0.15s ease;
  cursor: pointer;
  display: inline-flex; /* Added for better centering */
  align-items: center; /* Vertically centers text */
  justify-content: center; /* Horizontally centers text */
  line-height: 1; /* Prevents text from shifting */
}

.signup-btn:hover,
.log1-btn:hover {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 2px 14px #fdfdfd;
  transform: scale(1.05);
}


/* ----------------------------------------------------- */


.Banner-section {
  background-color: #ffffffdc;
}

.Banner-section h2{
  color: rgb(255, 0, 0);
  margin-bottom: 10px;
  font-size: 1.5rem;
  text-align: center;
  z-index: 1;
}

.Banner-section p{
  color: rgb(255, 0, 0);
  margin-bottom: 40px;
  font-size: 1.1rem;
  text-align: center;
  z-index: 1;
}

/* Landing stack on desktop; horizontal carousel on small screens (see mobile block) */
.below-hero-carousel {
  width: 100%;
  position: relative;
  z-index: 0;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.below-hero-carousel-viewport {
  overflow: visible;
  width: 100%;
}

.below-hero-carousel-track {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.below-hero-slide {
  width: 100%;
  flex: none;
}

.below-hero-slide--mobile-only {
  display: none;
}

.below-hero-social-section--desktop {
  display: block;
}

.below-hero-carousel-nav {
  display: none;
}

.below-hero-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.below-hero-carousel-dot:hover,
.below-hero-carousel-dot:focus-visible {
  border-color: #ff4d5c;
  outline: none;
}

.below-hero-carousel-dot.is-active {
  background: #ff4d5c;
  border-color: #ff4d5c;
  transform: scale(1.15);
}

/* “Dating without deception” + Our Safety Promise share one slide (desktop stack) */
.below-hero-slide--mission-and-safety .hero-section {
  min-height: 0;
  padding-top: 1.5em;
  padding-bottom: 1.75em;
}

.below-hero-slide--mission-and-safety .safety-promise {
  margin-top: 0;
  padding-top: 2em;
}

.below-hero-slide--mission-and-safety .hero-content {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------- */

/* Hero Section - Dating Without Deception */
.hero-section {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: transparent;
  position: relative;
  overflow: hidden;
  padding: 3em 2em;
  margin-top: 0;
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  padding: 0 1em;
}

.hero-section h1 {
  font-size: 3em;
  color: white;
  margin-bottom: 0.6em;
  font-weight: bold;
  text-shadow: 0 0 30px rgba(255,255,255,0.5);
  line-height: 1.1;
}

.hero-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.3em;
  margin-bottom: 1.5em;
  max-width: 600px;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
}

.hero-features {
  list-style: none;
  padding: 0;
  max-width: 28rem;
  width: 100%;
  margin: 0 auto 1em;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85em;
}

.hero-features li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.65em;
  padding: 0;
  margin: 0;
  color: white;
  font-size: 1.2em;
  font-weight: 500;
  text-align: left;
}

.hero-features li::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.35em;
  text-align: center;
  line-height: 1.25;
  margin-top: 0.08em;
  color: #90EE90;
  font-size: 1.2em;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(144,238,144,0.8);
}

/* How It Works Section */
.how-it-works {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3em 1em 4em 1em;
  text-align: center;
  background: transparent;
  position: relative;
}

.how-it-works h2 {
  font-size: 3em;
  color: white;
  margin-bottom: 1.5em;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.steps-container {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  padding: 0 1em;
}

.step-card {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  padding: 2em 1.5em;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(161, 161, 161, 0.281);
}

.step-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.062);
}

.step-icon.register {
  background: rgba(255, 87, 34, 0.9);
  color: white;
}

.step-icon.verify {
  background: rgba(40, 167, 69, 0.9);
  color: white;
}

.step-icon.connect {
  background: rgba(220, 53, 69, 0.9);
  color: white;
}

.step-card h3 {
  color: white;
  font-size: 1.4em;
  margin-bottom: 0.5em;
}

.step-card p {
  color: #ccc;
  line-height: 1.5;
  font-size: 0.95em;
}

/* Safety Promise Section */
.safety-promise {
  max-width: 1000px;
  margin: 4em auto;
  padding: 4em 2em;
  text-align: center;
  background: transparent;
  border-radius: 20px;
  position: relative;
  overflow: visible;
  margin-bottom: 4em;
}

.safety-promise h2 {
  font-size: 3em;
  color: white;
  margin-bottom: 0.6em;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.safety-promise p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2em;
  margin-bottom: 1.5em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.safety-list {
  list-style: none;
  padding: 0;
  max-width: 28rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85em;
}

.safety-list li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.65em;
  padding: 0;
  margin: 0;
  color: white;
  font-size: 1.1em;
  line-height: 1.4;
  text-align: left;
}

.safety-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.4em;
  text-align: center;
  line-height: 1.35;
  margin-top: 0.06em;
  color: #90EE90;
  font-size: 1.3em;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(144, 238, 144, 0.8);
}

/* Modal Styles — match portal “Contact Us” popup panel */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal, .modal1 {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  animation: modalFadeIn 0.4s ease;
}

.modal-content, .modal-content1 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  width: 350px;
  max-width: 90vw;
  margin: auto;
  padding: 1.5rem;
  padding-top: 2.75rem;
  box-shadow: 0 0 10px #ff4d5c;
  color: #fff;
  position: relative;
  max-height: min(90vh, 100dvh);
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.modal-content::-webkit-scrollbar,
.modal-content1::-webkit-scrollbar {
  display: none;
}

.modal-form-title {
  margin: 0 0 0.35rem;
  color: #ff4d5c;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
}

.close, .close1 {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  font-size: 1.35em;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  user-select: none;
  z-index: 2;
}

.close:hover, .close1:hover {
  color: #ff4d5c;
}

.modal-form-extra {
  margin-top: 0.35rem;
  text-align: center;
}

.modal-form-link {
  color: #ff4d5c;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.modal-form-link:hover {
  color: #ff2a3b;
}

/* Form Styles */
#signupForm, #loginForm, #forgotForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

/* Keep wrapper spacing identical to inputs in modals */
#signupForm .password-field,
#loginForm .password-field,
#forgotForm .password-field {
  width: 100%;
  margin: 0;
}

#signupForm input, #signupForm select,
#loginForm input,
#forgotForm input {
  width: 100%;
  margin: 0;
  padding: 0.5rem;
  text-align: left;
  border-radius: 8px;
  border: 1px solid #ff4d5c;
  font-size: 1rem;
  box-sizing: border-box;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: "Montserrat", sans-serif;
}

#signupForm input,
#signupForm select {
  text-align: center;
  text-align-last: center;
}

#signupForm select option,
#signupForm select optgroup {
  background: #1a1a1a;
  color: #fff;
}

#signupForm select:invalid {
  color: rgba(255, 255, 255, 0.55);
}

#signupForm select:valid {
  color: #fff;
}

#signupForm input::placeholder,
#loginForm input::placeholder,
#forgotForm input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1024px) {
  #loginForm input,
  #forgotForm input {
    text-align: center;
  }
}

#signupForm button[type="submit"],
#loginForm button[type="submit"],
#forgotForm button[type="submit"] {
  margin-top: 0.45rem;
  width: 100%;
  background-color: #ff4d5c;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 0;
  transition: background-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  min-height: 44px;
}

#signupForm button[type="submit"]:hover,
#loginForm button[type="submit"]:hover,
#forgotForm button[type="submit"]:hover {
  background-color: #ff2a3b;
  color: #fff;
}

#formResponse,
#formResponse1,
#forgotResponse {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
}

#formResponse:empty,
#formResponse1:empty,
#forgotResponse:empty {
  margin-top: 0;
  min-height: 0;
}

/* Signup DOB: same inline Y / M / D on all viewports */
.signup-dob-label {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  align-self: flex-start;
}

.signup-dob-label-sub {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92em;
}

#signupForm .dob-fallback--in-form {
  margin: 0;
  gap: 0.35rem;
}

#signupForm .dob-fallback--in-form .dob-fallback-row {
  margin: 0;
}

/* DOB custom dropdowns (no native <select> popup scrollbars) */
.dob-native-sync {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.dob-dd {
  position: relative;
  flex: 1;
  min-width: 0;
}

/* Match #signupForm input / select — not the red submit CTA */
#signupForm .dob-dd__trigger {
  width: 100%;
  margin: 0;
  padding: 0.5rem 1.75rem;
  border-radius: 8px;
  border: 1px solid #ff4d5c;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  min-height: 44px;
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

#signupForm .dob-dd__trigger::after {
  content: "▾";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  opacity: 1;
  pointer-events: none;
}

#signupForm .dob-dd__trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #ff4d5c;
}

#signupForm .dob-dd__trigger:focus-visible {
  outline: 2px solid rgba(255, 77, 92, 0.65);
  outline-offset: 2px;
}

#signupForm .dob-dd__trigger--placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

#signupForm .dob-dd__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  max-height: min(40vh, 14rem);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 8px;
  border: 1px solid #ff4d5c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: #1a1a1a;
}

#signupForm .dob-dd__menu::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#signupForm .dob-dd__option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  min-height: 40px;
  border-radius: 0;
  box-shadow: none;
}

#signupForm .dob-dd__option:last-child {
  border-bottom: none;
}

#signupForm .dob-dd__option:hover,
#signupForm .dob-dd__option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.dob-dd--open {
  z-index: 25;
}

#signupModal .modal-content:has(.dob-dd--open) {
  overflow: visible;
}

/* Long country list: a bit taller than DOB menus; scrollbar still hidden via .dob-dd__menu rules */
#signupForm #countryMenu {
  max-height: min(55vh, 22rem);
}

/* Safari / iOS DOB (hidden sync selects + custom lists) */
.dob-fallback {
  width: 100%;
  margin: 9px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dob-fallback-label {
  font-size: 0.9em;
  color: #333;
  font-weight: 600;
}

.dob-fallback-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

@media (max-width: 480px) {
  .dob-fallback-row {
    flex-direction: column;
  }
  .dob-dd {
    width: 100%;
    flex: none;
  }
}




/* --------------------------------------------------------- */


/* Footer */
footer {
  margin-top: auto;
  background: #101010;
  color: #f1f1f1;
  padding: 22px 8px;
  text-align: center;
}

footer nav a {
  color: #FFFFFF;
  margin: 0 13px;
  text-decoration: none;
  font-size: 1em;
}

footer nav a:hover {
  color: #ff4d5c;
  border-bottom: 2px solid #ff4d5c;
  padding-bottom: 3px;
  transition: all 0.2s ease;
}

/* Tablet Responsiveness */
@media (max-width: 1200px) {
  .container h1 {
    font-size: 4em;
    margin-top: 80px;
  }
}

@media (max-width: 900px) {
  .hero-section h1 {
    font-size: 2.5em;
  }

  .how-it-works h2,
  .safety-promise h2 {
    font-size: 2.5em;
  }

  .step-card {
    min-width: 220px;
  }
}

/* Our Socials section (placed under Our Safety Promise) */
.below-hero-slide--mission-and-safety .below-hero-social-section {
  margin-top: 0;
  padding-top: 2em; /* match Safety Promise spacing */
  padding-bottom: 8em;
}

.below-hero-social-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.below-hero-social-title {
  margin: 0 0 12px 0;
  font-size: 3em;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.below-hero-social {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 0;
}

/* Make socials feel "hero sized" on landing */
.below-hero-social .social-icon {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 4px 15px rgba(0,0,0,0.18);
}

.below-hero-social .social-icon svg {
  width: 32px;
  height: 32px;
}

/* Registration ticker: home slide only (see mobile block); hidden on desktop */
.mobile-reg-ticker {
  display: none;
}

/* Desktop: show the same bulletin ticker (but wider) */
.below-hero-slide--registration-only .mobile-reg-ticker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  margin: 0.85rem 0 0;
  padding: 0.5rem 0.65rem;
  box-sizing: border-box;
  background: rgba(20, 20, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.94);
  text-align: left;
  flex-shrink: 0;
}

.below-hero-slide--registration-only .mobile-reg-ticker__label {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #ffc9cf;
  padding: 0.14rem 0.38rem;
  background: rgba(255, 77, 92, 0.4);
  border-radius: 4px;
  line-height: 1.2;
}

.below-hero-slide--registration-only .mobile-reg-ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.below-hero-slide--registration-only .mobile-reg-ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: mobile-reg-ticker-scroll var(--ticker-duration, 28s) linear infinite;
}

.below-hero-slide--registration-only .mobile-reg-ticker__segment {
  flex-shrink: 0;
  padding-right: 2.5rem;
  white-space: nowrap;
}

@keyframes mobile-reg-ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .below-hero-slide--registration-only .mobile-reg-ticker__track {
    animation: none;
    transform: none;
  }
}

/* Mobile / tablet / narrow screens (includes many phone landscape widths > 768px) */
@media (max-width: 1024px) {
  .below-hero-carousel {
    flex: 1 0 auto;
    /* Space reserved for dot nav + home-indicator (iOS); used to size the home slide */
    --landing-nav-block: max(3.875rem, calc(2.5rem + env(safe-area-inset-bottom, 0px)));
  }

  /* Full-width registration panel becomes compact rotating line on home */
  .below-hero-slide--registration-only {
    display: none !important;
  }

  .below-hero-slide--mobile-only {
    display: flex !important;
  }

  .below-hero-social-section--desktop {
    display: none !important;
  }

  .below-hero-social-title {
    font-size: clamp(1.45rem, 6vw, 1.75rem);
  }

  .below-hero-social .social-icon {
    width: 56px;
    height: 56px;
  }
  .below-hero-social .social-icon svg {
    width: 30px;
    height: 30px;
  }

  /* Mobile-only Socials slide: title near top, big stacked buttons */
  .below-hero-slide--socials {
    justify-content: flex-start;
  }

  .below-hero-slide--socials .below-hero-social-block {
    padding-top: clamp(2.25rem, 7vh, 4.25rem);
  }

  .below-hero-slide--socials .below-hero-social-title {
    font-size: clamp(1.9rem, 7.2vw, 2.35rem);
    margin-bottom: clamp(1.25rem, 4vh, 2.25rem);
  }

  .below-hero-slide--socials .below-hero-social {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .below-hero-slide--socials .below-hero-social .social-icon {
    width: 92px;
    height: 92px;
  }

  .below-hero-slide--socials .below-hero-social .social-icon svg {
    width: 46px;
    height: 46px;
  }

  .below-hero-carousel-dot--desktop-only {
    display: none !important;
  }

  .below-hero-carousel-viewport {
    overflow: hidden;
    width: 100%;
    /* Allow horizontal swipe for carousel + vertical scroll inside slides */
    touch-action: pan-x pan-y;
  }

  .below-hero-carousel-track {
    flex-direction: row;
    align-items: flex-start;
    width: calc(100% * var(--below-hero-slides, 4));
    will-change: transform;
    transition: transform 0.48s cubic-bezier(0.33, 1, 0.32, 1);
  }

  .below-hero-slide--carousel-clone {
    pointer-events: none;
    user-select: none;
  }

  /* Each slide: same viewport stage as home; content vertically centered (scroll if needed) */
  .below-hero-slide {
    flex: 0 0 calc(100% / var(--below-hero-slides, 4));
    width: calc(100% / var(--below-hero-slides, 4));
    min-width: 0;
    box-sizing: border-box;
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--landing-nav-block));
    min-height: calc(100svh - var(--landing-nav-block));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  @supports (height: 100dvh) {
    .below-hero-slide {
      min-height: calc(100dvh - var(--landing-nav-block));
    }
  }

  @supports (justify-content: safe center) {
    .below-hero-slide:not(:first-child):not(.below-hero-slide--carousel-clone) {
      justify-content: safe center;
    }
  }

  /* Home + wrap clone: hero centered in viewport; update strip stays bottom row */
  .below-hero-slide:first-child,
  .below-hero-slide--carousel-clone {
    display: grid;
    grid-template-rows: 1fr auto;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: stretch;
  }

  .below-hero-slide:first-child > .container,
  .below-hero-slide--carousel-clone > .container {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    justify-self: center;
    max-width: min(24rem, 100%);
    padding-top: 0;
    padding-bottom: 0;
    flex-shrink: 0;
  }

  .below-hero-slide:first-child .mobile-reg-ticker,
  .below-hero-slide--carousel-clone .mobile-reg-ticker {
    grid-row: 2;
    grid-column: 1;
    justify-self: center;
    margin-top: 0;
  }

  .mobile-reg-ticker {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: min(100%, 22rem);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: max(0.15rem, env(safe-area-inset-bottom, 0px));
    padding: 0.5rem 0.65rem;
    box-sizing: border-box;
    background: rgba(20, 20, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.72rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.94);
    text-align: left;
    flex-shrink: 0;
  }

  .mobile-reg-ticker__label {
    flex-shrink: 0;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #ffc9cf;
    padding: 0.14rem 0.38rem;
    background: rgba(255, 77, 92, 0.4);
    border-radius: 4px;
    line-height: 1.2;
  }

  .mobile-reg-ticker__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  .mobile-reg-ticker__track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: mobile-reg-ticker-scroll var(--ticker-duration, 28s) linear infinite;
  }

  .mobile-reg-ticker__segment {
    flex-shrink: 0;
    padding-right: 2.5rem;
    white-space: nowrap;
  }

  @keyframes mobile-reg-ticker-scroll {
    to {
      transform: translateX(-50%);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-reg-ticker__track {
      animation: none;
      transform: none;
    }
  }

  /* Vertical rhythm between mission hero and safety block */
  .below-hero-slide--mission-and-safety {
    gap: clamp(1.65rem, 5.5vw, 2.75rem);
  }

  .below-hero-slide--mission-and-safety .hero-section {
    padding: 0;
    margin: 0;
    justify-content: center;
  }

  .below-hero-slide > * {
    width: min(100%, 24rem);
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .below-hero-slide--mission-and-safety > * {
    width: min(100%, 26rem);
    max-width: 26rem;
  }

  .below-hero-slide .how-it-works,
  .below-hero-slide .safety-promise {
    max-width: min(26rem, 100%);
    width: min(100%, 26rem);
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  .Banner-section {
    border-radius: 14px;
    padding: 1.35rem 1.15rem 1.25rem;
    margin-top: 0;
    margin-bottom: 0;
    box-sizing: border-box;
  }

  .Banner-section h2 {
    margin-top: 0;
    margin-bottom: 0.65rem;
    line-height: 1.25;
    font-size: clamp(1.15rem, 4.2vw, 1.4rem);
  }

  .Banner-section p {
    margin-bottom: 0;
    line-height: 1.55;
    font-size: 0.98rem;
    max-width: none;
  }

  .below-hero-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 1rem max(0.75rem, env(safe-area-inset-right, 0px)) 0.5rem max(0.75rem, env(safe-area-inset-left, 0px));
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .below-hero-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 12px auto 0; /* nice gap under ticker */
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px));
  }

  .below-hero-carousel-dot {
    width: 0.625rem;
    height: 0.625rem;
  }

  @media (prefers-reduced-motion: reduce) {
    .below-hero-carousel-track {
      transition: none;
    }
  }

  .container {
    min-height: auto;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .container h1 {
    font-size: clamp(2rem, 7vw, 2.75rem);
    margin-top: 0;
    margin-bottom: 0.35em;
    letter-spacing: 0.04em;
  }

  .container p {
    font-size: 1.05rem;
    margin-bottom: 0.35em;
    line-height: 1.45;
    padding: 0 0.25rem;
  }

  .vector1 {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .button-row {
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.75rem;
    margin-bottom: 0;
    width: 100%;
    max-width: 17.5rem;
    margin-left: auto;
    margin-right: auto;
  }

  .below-hero-slide:first-child .button-row {
    margin-bottom: 0;
  }

  .signup-btn,
  .log1-btn {
    width: 100%;
    max-width: 17.5rem;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
  }

  .vector1 img {
    max-width: 11rem;
  }

  .hero-section {
    padding: 1.75rem 0 2rem;
    min-height: 0;
    justify-content: flex-start;
  }

  .hero-section .hero-content {
    padding: 0 0.15rem;
  }

  .hero-section h1 {
    font-size: clamp(1.65rem, 6vw, 2rem);
    margin-bottom: 0.55em;
  }

  .hero-section p {
    font-size: 1.02rem;
    line-height: 1.55;
    margin-bottom: 1.15em;
  }

  .hero-features {
    margin-bottom: 0;
    max-width: 22rem;
    gap: 0.75em;
  }

  .hero-features li {
    font-size: 0.98rem;
    line-height: 1.45;
    gap: 0.55em;
  }

  .hero-features li::before {
    width: 1.25em;
    font-size: 1.05em;
  }

  .how-it-works {
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .how-it-works h2 {
    font-size: clamp(1.65rem, 5.5vw, 2rem);
    margin-bottom: 1.25rem;
    margin-top: 0;
  }

  .steps-container {
    gap: 1.15rem;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .step-card {
    max-width: 100%;
    margin: 0;
    padding: 1.5rem 1.25rem;
    text-align: center;
  }

  .step-card h3 {
    margin-top: 0.35em;
  }

  .safety-promise {
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .safety-promise h2 {
    font-size: clamp(1.65rem, 5.5vw, 2rem);
    margin-bottom: 0.6em;
    margin-top: 0;
  }

  .safety-promise p {
    font-size: 1.02rem;
    line-height: 1.55;
    margin-bottom: 1.15em;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .safety-list {
    max-width: 22rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    gap: 0.75em;
  }

  .safety-list li {
    font-size: 0.98rem;
    gap: 0.55em;
    line-height: 1.45;
  }

  .safety-list li::before {
    width: 1.25em;
    font-size: 1.1em;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .below-hero-slide {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .container h1 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .vector1 img {
    max-width: 9.5rem;
  }

  .button-row {
    margin-top: 1.5rem;
    max-width: 16.5rem;
  }

  .signup-btn,
  .log1-btn {
    max-width: 16.5rem;
  }

  .Banner-section {
    padding: 1.15rem 1rem;
  }

  .below-hero-carousel-nav {
    gap: 0.55rem;
  }

  .hero-section h1 {
    font-size: clamp(1.5rem, 6.5vw, 1.85rem);
  }

  .hero-section p,
  .safety-promise p {
    font-size: 0.98rem;
  }

  .how-it-works h2,
  .safety-promise h2 {
    font-size: clamp(1.45rem, 6vw, 1.75rem);
  }

  .steps-container {
    align-items: stretch;
  }

  .step-card {
    padding: 1.35rem 1.1rem;
  }

  .modal-content, .modal-content1 {
    width: min(350px, 95vw);
    padding: 2.5rem 1rem 1.25rem;
  }

  .mobile-reg-ticker {
    font-size: 0.68rem;
    padding: 0.45rem 0.55rem;
  }

  .mobile-reg-ticker__label {
    font-size: 0.52rem;
  }

  footer nav a {
    display: inline-block;
    margin: 8px 10px;
  }
}
