/* ---------- GLOBAL ---------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  /* match header height so anchor scroll lands below nav */
}

/* Scroll snap only on mobile; desktop scrolls freely */
@media (max-width: 991px) {
  html {
    scroll-snap-type: y proximity;
  }

  body {
    scroll-snap-type: y mandatory;
  }
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Fixed background with parallax image */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #FFF5EB;
  color: #1e1e1e;
  position: relative;
  height: auto;
  min-height: 100%;
  --bg-pos-x: 50%;
  --bg-pos-y: 50%;
  /* No body padding-top: hero starts at top and uses its own padding so nav doesn’t add extra gap */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #FFF5EB;
  background-image:
    url('../img/bg-pattern.png'),
    linear-gradient(0deg, #FFF5EB 50.12%, #CEC7C2 100%);
  background-repeat: repeat, no-repeat;
  background-size: 110%, 100% 100%;
  background-position: var(--bg-pos-x) var(--bg-pos-y), center;
  pointer-events: none;
  will-change: background-position;
}

/* Grid lines overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(62, 57, 47, 0.1) 1px, transparent 2px),
    linear-gradient(to bottom, rgba(62, 57, 47, 0.1) 1px, transparent 2px);
  background-size: 40px 40px;
  opacity: 0.6;
}

@media (max-width: 991px) {
  body::before {
    background-size: 150%, 100% 100%;
  }

  body::after {
    background-size: 40px 40px;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto Slab", serif;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

.ibm-text {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-family: "IBM Plex Mono", monospace;
}

.ibm-text-small {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-family: "IBM Plex Mono", monospace;
}

.ibm-text-x-small {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-family: "IBM Plex Mono", monospace;
}

.inter-text {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-family: "Inter", sans-serif;
}

.inter-text-small {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-family: "Inter", sans-serif;
}

.inter-text-x-small {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-family: "Inter", sans-serif;
}

.roboto-text {
  font-family: "Roboto Slab", serif;
}

.bg-yellow {
  background-color: #f7c965;
}

.bg-grey {
  background-color: #d3c1ac;
  /* background-color: #e9ccaa; */
}

/* Get started button hover */
.btn.bg-yellow:hover {
  background-color: #EE9C53 !important;
}

.bg-beige {
  /* background-color: #FBE6C9; */
  /* background-color: #ffcf8c; */
  background-color: #ffcf75;
}

.bg-new-dark {
  background-color: #676058;
}

.bg-secondary {
  background-color: #2f2a23;
}

.bg-dark-brown {
  background-color: #3E392F;
}

.bg-ace-white {
  background-color: #FFF5EB;
}

.bg-ace-dark {
  background-color: #2f2a23 !important;
}

/* Ensure the same grid overlay appears inside modals */
.modal .bg-ace-white {
  /* Match `body::after` grid spacing and color strength */
  background-image:
    linear-gradient(to right, rgba(62, 57, 47, 0.06) 1px, transparent 2px),
    linear-gradient(to bottom, rgba(62, 57, 47, 0.06) 1px, transparent 2px);
  background-size: 40px 40px;
  background-position: 0 0;
  /* Keep the grid aligned to the viewport like the fixed `body::after` overlay */
  background-attachment: fixed;
}

footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 0;
}

/* ---------- HEADER ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-top: 1rem;
  width: 100%;
  max-width: 100%;
}

.nav-pill {
  background-color: #2f2a23;
  border-radius: 999px;
  min-height: 64px;
  /* box-shadow: 0 10px 30px rgba(0,0,0,0.15); */
  transition: all 0.3s ease;
  position: relative;
}

.nav-link {
  color: white;
  font-weight: 500;
  padding: 0.75rem 1rem;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:active,
.nav-link:visited {
  color: white;
}

.nav-link:hover {
  color: #f7c965;
}

.nav-logo {
  width: 150px;
  height: auto;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Vertical 3-dots menu icon (replaces hamburger) */
.navbar-toggler-icon.navbar-toggler-icon-dots {
  background-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 24px;
  height: 24px;
  pointer-events: none;
  filter: none;
  /* override .navbar-toggler-icon invert so dots stay white */
}

.navbar-toggler-icon-dots-vertical {
  flex-direction: column;
}

.navbar-toggler-icon-dots .dot, .navbar-toggler-icon-dots .hidden-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  /* background-color: #fff; */
  display: block;
}

.navbar-toggler-icon-dots .dot {
  background-color: #fff;
}

.navbar-toggler-icon-dots .hidden-dot {
  display: none;
}

.navbar-toggler-dots {
  position: relative;
  z-index: 1002;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  cursor: pointer;
  touch-action: manipulation;
}

/* X icon (shown when menu is open on mobile) */
.navbar-toggler-icon.navbar-toggler-icon-x {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: auto;
  pointer-events: none;
  filter: none;
  /* keep X white (override .navbar-toggler-icon invert) */
  z-index: 1;
}

.navbar-toggler-icon-x .x-line {
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
}

.navbar-toggler-icon-x .x-line:first-child {
  transform: rotate(45deg);
}

.navbar-toggler-icon-x .x-line:last-child {
  transform: rotate(-45deg);
}

/* Non-functional (decorative) toggler – no menu open */
.navbar-toggler-no-action {
  cursor: default;
  pointer-events: none;
}

/* MOBILE MENU OVERLAY */
@media (max-width: 991px) {

  /* When menu is open: show X, hide 3-dots on the functional toggler */
  .site-header:has(#mainNav.show) .navbar-toggler-dots:not(.navbar-toggler-no-action) .navbar-toggler-icon-dots {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    z-index: -1 !important;
  }

  .site-header:has(#mainNav.show) .navbar-toggler-dots:not(.navbar-toggler-no-action) .navbar-toggler-icon-x {
    display: flex !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .site-header {
    padding-top: 0;
    top: 0;
    /* Keep header visible on mobile – do not hide on scroll up/down */
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-logo {
    width: 150px !important;
  }

  .nav-pill {
    position: relative;
    overflow: visible;
    min-height: 70px;
    border-radius: 0;
    clip-path: ellipse(100% 100% at 50% 0%);
    /* border-radius: 0 0 25% 25%; */
    /* arc shape at bottom without clipping dropdown */
  }

  .navbar-brand {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-bottom: 0.25rem !important;
  }

  /* Hide desktop nav items inside nav-pill on mobile (shown in dropdown instead) */
  .nav-pill .d-lg-flex {
    display: none !important;
  }

  /* Mobile dropdown - positioned outside nav-pill to avoid clipping */
  /* Visibility: hidden by .collapse, shown when .show is added by Bootstrap toggle */
  .navbar-collapse-mobile {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #2f2a23;
    /* Same arc as header: ellipse with full width, 70px vertical radius (matches .nav-pill min-height) */
    border-radius: 0 0 50% 50% / 0 0 70px 70px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: -999;
    margin: 0;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
  }

  /* Smooth downward open/close transition */
  .navbar-collapse-mobile.collapsing {
    transition: height 0.35s ease-out !important;
  }

  .navbar-collapse-mobile.collapse {
    overflow: hidden;
  }

  .navbar-collapse-mobile.show {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
  }

  /* Keep nav and CTA centered in mobile dropdown */
  .navbar-collapse-mobile .navbar-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .navbar-collapse-mobile .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
  }

  .navbar-collapse-mobile .nav-link:hover {
    background-color: rgba(247, 201, 101, 0.1);
  }

  /* CTA button always centered - block + margin so no flex reflow jump */
  .navbar-collapse-mobile .btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.25rem;
    width: auto;
    min-width: 10rem;
  }

}

/* Hide mobile dropdown on desktop (≥992px) - desktop nav is inside nav-pill */
@media (min-width: 992px) {
  .navbar-collapse-mobile {
    display: none !important;
  }
}

/* Mobile menu overlay and scroll lock (only when dropdown is open) */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

@media (max-width: 991px) {
  .mobile-menu-overlay {
    display: block;
  }

  .mobile-menu-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.mobile-menu-open {
    overflow: hidden;
    touch-action: none;
  }
}

/* ---------- HERO ---------- */

.hero {
  min-height: 100vh;
  position: relative;
  background: transparent;
  overflow: visible;
  z-index: 1;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 0;
  padding-top: 5.5rem;
  /* start content below fixed header; hero bg extends behind nav */
}

.badge-rank {
  border: 2px solid #2f2a23;
  color: #2f2a23;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.hero-title {
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.1;
}

@media (max-width: 991px) {
  .hero {
    overflow: visible;
    padding-bottom: 0;
    padding-top: 4.5rem;
    /* match shorter mobile header (~70px) */
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }

  .navbar {
    padding-top: 0;
    top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .navbar .container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Make phone image extend beyond hero section */
  .hero .phone {
    position: relative;
    margin-bottom: -50px;
    z-index: 10;
    transform: translateY(50px);
  }

  /* Add padding to features section to accommodate overlap */
  .features {
    padding-top: 100px;
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 1400px) {

  .hero {
    padding-top: 0rem;
    /* start content below fixed header; hero bg extends behind nav */
  }

  .hero-title {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.9;
}

.stat-number {
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0;
}

/* ---------- DOWNLOAD BUTTONS ---------- */

.download-btn {
  width: 100%;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  border-radius: 0.8rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

.download-btn-content {
  /* display: flex; */
  /* flex-direction: column; */
  /* align-items: start; */
  /* justify-content: center; */
  text-align: start;
  line-height: 1.2;
}

.download-btn-label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.download-btn-store {
  display: block;
  /* color: #ffc107; */
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
}

@media (max-width: 1400px) {

  .download-btn-label {
    font-size: .8rem;
  }

  .download-btn-store {
    font-size: 1.4rem;
  }
}

@media (max-width: 991px) {
  .download-btn-label {
    font-size: .8rem;
  }
}


/* ---------- PHONES ---------- */

.phone {
  /* position: absolute; */
  max-width: 100%;
  /* transition: transform 0.3s ease; */
  position: relative;
  z-index: 2;
}

.phone-front {
  z-index: 2;
  /* left: 45%; */
  /* top: 10%; */
}


/* .phone:hover {
  transform: scale(1.03);
} */

/* ---------- FEATURES ---------- */

.features, .pricing, .testimonials, .about {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 0;
}

.feature-card {
  height: 18em;
  overflow: hidden;
}

.feature-card-new {
  height: 36em;
  overflow: hidden;
}

.feature-card-inner {
  position: relative;
  overflow: hidden;
  color: #000;
  border: 3px solid #c2926b;
}

.feature-card-top, .feature-card-bottom, .feature-card-other {
  border-radius: 2rem;
}

.feature-card-bg {
  position: absolute;
  /* Extend beyond card so parallax translate never reveals edges (clipped by parent overflow) */
  top: -20vh;
  right: -5%;
  bottom: -20vh;
  left: -5%;
  z-index: 0;
  /* background-color: #676058; */
  /* background-color: #ffcf8c; */
  /* background-color: #f7c965; */
  background-image: url('../img/bg-pattern.png');
  background-repeat: repeat;
  /* Fixed size so pattern scale matches across all cards */
  background-size: 1500px;
  background-position: 50% 50%;
  background-blend-mode: multiply;
  will-change: transform;
  pointer-events: none;
}

.feature-card-inner>*:not(.feature-card-bg) {
  position: relative;
  z-index: 1;
}

/* .feature-card-top, .feature-card-bottom, .feature-card-other {
  border: 4px solid #be9879;
} */

@media (max-width: 991px) {
  .feature-card, .feature-card-new {
    max-height: 15em;
    height: auto;
  }

  .feature-card-bg {
    background-size: 1200px;
  }
}

@media (max-width: 768px) {
  .feature-card {
    max-height: 12em;
    height: auto;
  }

  .feature-card-icon {
    width: 40px !important;
    height: auto;
    margin-bottom: 0.5rem;
  }

  .feature-card-top {
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    /* border: 3px solid #be9879; */
    border: none;
    border-bottom: 3px solid #c2926b;
    /* border-bottom: 0px; */
  }

  .feature-card-bottom {
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border: none;
    /* border-top: 0px; */
    /* border: 3px solid #be9879; */
  }

  .feature-card-other {
    border-radius: 0em;
    /* border: 3px solid #be9879; */
    border: none;
    border-bottom: 3px solid #c2926b;
  }

  /* .feature-card-inner {
    border: none;
  } */
}

.feature-card-image {
  border-radius: 1rem;
  width: 300px;
  overflow: hidden;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.feature-card-icon {
  width: 60px;
  height: auto;
  /* margin-left: 1rem; */
  /* margin-bottom: 0.5rem; */
}

@media (max-width: 991px) {
  .feature-card-image {
    width: 100%;
    object-position: center;
  }
}

/* ---------- PRICING ---------- */
.pricing {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-bg-wrapper {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 0;
  overflow: hidden;
  border-radius: 2rem;
  pointer-events: none;
}

@media (min-width: 992px) {
  .pricing-bg-wrapper {
    top: 3rem;
    left: 3rem;
    right: 3rem;
    bottom: 3rem;
    border-radius: 4rem;
  }
}

.pricing-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-color: #FBE6C9; */
  /* background-color: #FFCA5F; */
  background-image: url('../img/bg-pattern.png');
  background-repeat: repeat;
  background-size: 100%;
  background-position: 50% 50%;
  background-blend-mode: hard-light;
  will-change: transform;
}

@media (max-width: 991px) {
  .pricing-bg {
    background-size: 300%;
  }
}

.pricing .pricing-container {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* .pricing-plan-container {
  position: relative;
  overflow: hidden;
}

.pricing-plan-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #f7c965;
  background-image: url('../img/bg-pattern.png');
  background-repeat: repeat;
  background-size: 100%;
  background-position: 50% 50%;
  background-blend-mode: hard-light;
  will-change: transform;
  pointer-events: none;
}

.pricing-plan-content {
  position: relative;
  z-index: 1;
}

@media (max-width: 991px) {
  .pricing-plan-bg {
    background-size: 200%;
  }
} */

.bg-plan {
  background-color: #3E392F;
  color: #fff;
  padding: .6rem;
  border-radius: 1.5rem;
  min-height: 300px;
  height: 100%;
}

/* Custom border-4 utility for Bootstrap compatibility */
.border-container {
  border-width: 5px !important;
  border-style: solid;
  height: 100%;
}

@media (max-width: 768px) {
  .border-container {
    border-width: 3px !important;
  }
}

.border-monthly {
  border-color: #635449;
}

.border-yearly {
  border-color: #FFC552;
}

.border-lifetime {
  border-color: #E253D8;
}

.border-dark-brown {
  border-color: #e2d8c5 !important;
}

.bg-monthly {
  background-color: #635449;
}

.bg-yearly {
  background-color: #FFC552;
}

.bg-lifetime {
  background-color: #E253D8;
}

/* ---------- TESTIMONIALS ---------- */

.testimonial-card {
  height: 12em;
  overflow: hidden;
  display: flex;
  /* padding: 1rem; */
  flex-direction: column;
  justify-content: end;
  align-items: end;
  flex-shrink: 0;
  flex-grow: 0;
  width: 400px;
  min-width: 400px;
  max-width: 400px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .testimonial-card {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    height: 10em;
  }
}

.testimonial-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid #c2926b;
  background-color: #d3c1ac;
  /* background-color: #e1ba8e; */
  color: #000;
}

/* ---------- TICKER TAPE ---------- */

.ticker-tape-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin: 1rem 0;
  /* mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); */
}

.ticker-tape-track {
  width: 100%;
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
}

.ticker-tape-content {
  display: inline-flex;
  gap: 1rem;
  width: max-content;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animation controlled by JavaScript for seamless looping */
.ticker-tape-content {
  transition: none;
}

/* Pause animation on hover */
.ticker-tape-wrapper:hover .ticker-tape-content {
  animation-play-state: paused;
}

.testimonial-user-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: .7rem;
}

.testimonial-user-image {
  width: 30px;
  height: 30px;
  background-color: #635449;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

/* ---------- TESTIMONIALS ---------- */
.bg-4636 {
  background-color: #CFD1FF;
}

.bg-work {
  background-color: #6261ad;
  height: 24em;
  display: flex;
  justify-content: end;
}

/* ---------- ACCOUNT ---------- */

.account-container {
  background-color: #FBE6C9;
  padding: 2rem;
  border-radius: 1.5rem;
  background-image: url('../img/bg-pattern.png');
  background-repeat: repeat;
  background-size: 100%;
  background-position: 50% 50%;
  background-blend-mode: hard-light;
  height: 100%;
}


/* Full viewport account page (e.g. verify email) – no vertical scroll */
.verify-email-page {
  height: 100%;
  /* overflow: hidden; */
}

html.verify-email-page,
body.verify-email-page {
  height: 100%;
  margin: 0;
  /* overflow: hidden; */
}

body.verify-email-page {
  /* padding: 2em; */
  box-sizing: border-box;
}

.verify-email-page .account-support {
  height: 100%;
  padding: 2em;
}

.verify-email-page .account-container {
  height: 100%;
  min-height: 0;
  padding: 2em;
  box-sizing: border-box;
}

/* Full viewport account page (delete account) – same layout as verify email */
.delete-account-page {
  height: 100%;
}

html.delete-account-page,
body.delete-account-page {
  height: 100%;
  margin: 0;
}

body.delete-account-page {
  /* padding: 2em; */
  box-sizing: border-box;
}

.delete-account-page .account-support {
  height: 100%;
  padding: 2em;
}

.delete-account-page .account-container {
  height: 100%;
  min-height: 0;
  padding: 2em;
  box-sizing: border-box;
}

/* Sub-pages with navbar: content below fixed header */
body.delete-account-page .account-support,
body.verify-email-page .account-support,
body.support-page .account-support,
body.privacy-page .account-support {
  padding-top: 5.5rem;
}

/* Support page: same layout as verify-email and delete-account */
.support-page {
  height: 100%;
}

html.support-page,
body.support-page {
  height: 100%;
  margin: 0;
}

body.support-page {
  /* padding: 2em; */
  box-sizing: border-box;
}

.support-page .account-support {
  height: auto;
  padding: 2em;
}

.support-page .account-container {
  height: 100%;
  min-height: 0;
  padding: 2em;
  box-sizing: border-box;
}

/* Support page FAQ accordion colors */
.support-page .accordion-button:not(.collapsed) {
  background-color: #fcd188;
  color: #1e1e1e;
}

.support-page .accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 182, 97, 0.4);
}

/* Privacy page: same layout as other sub-pages, container can grow for long content */
.privacy-page {
  height: 100%;
  min-height: 100%;
}

html.privacy-page,
body.privacy-page {
  min-height: 100%;
  margin: 0;
}

body.privacy-page {
  /* padding: 2em; */
  box-sizing: border-box;
}

.privacy-page .account-support {
  padding: 2em;
  min-height: 0;
}

.privacy-page .account-container {
  min-height: 0;
  padding: 2em;
  box-sizing: border-box;
}

/* Legal pages should scroll freely (no scroll-snap) */
html.privacy-page,
html.terms-page,
html.support-page,
html.verify-email-page,
html.delete-account-page,
body.privacy-page,
body.support-page,
body.verify-email-page,
body.delete-account-page,
body.terms-page {
  scroll-snap-type: none !important;
}

.support-img {
  width: 100px;
  height: auto;
}

@media (max-width: 768px) {

  .delete-account-page .account-support,
  .support-page .account-support,
  .verify-email-page .account-support,
  .terms-page .account-support,
  .delete-account-page .account-support,
  .privacy-page .account-support {
    padding-top: 3rem !important;
    padding-left: 0rem !important;
    padding-right: 0rem !important;
  }

  .support-img {
    width: 100px;
    height: auto;
    margin-top: 2rem;
  }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 991px) {
  .hero {
    min-height: auto;
  }

  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: visible;
  }

  .nav-pill {
    max-width: 100%;
    overflow: visible;
  }

  .navbar {
    overflow: visible;
  }

  .bg-plan {
    min-height: 200px;
  }

  /* Features section: smaller text on mobile */
  .features h2 {
    font-size: 1.5rem;
  }

  .feature-card h4 {
    font-size: 1rem;
  }

  .feature-card p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  /* Pricing section: smaller text on mobile */
  .pricing h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .pricing .ibm-text {
    font-size: clamp(0.7rem, 1.75vw, 0.8rem);
  }

  /* Testimonials section: smaller text on mobile */
  .testimonial-card-content p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .testimonial-user-info p {
    font-size: 0.9rem !important;
  }

  .testimonial-user-info img {
    width: 25px;
    height: 25px;
  }
}

.strikethrough-red {
  position: relative;
  color: #B6B6B6;
  text-decoration: none;
}

.strikethrough-red::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 3px;
  background-color: red;
  transform: translateY(-50%);
}

/* Footer 4636 logo: desktop hover to color, mobile always color */
.footer-4636-logo {
  position: relative;
  display: inline-block;
}

.footer-4636-logo .footer-logo-default,
.footer-4636-logo .footer-logo-color {
  width: 150px;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.footer-4636-logo .footer-logo-color {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 992px) {
  .footer-4636-logo:hover .footer-logo-default {
    opacity: 0;
  }

  .footer-4636-logo:hover .footer-logo-color {
    opacity: 1;
  }
}

@media (max-width: 991px) {
  .footer-4636-logo .footer-logo-default {
    display: none !important;
  }

  .footer-4636-logo .footer-logo-color {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 991px) {
  .w-md-50 {
    width: 50% !important;
  }

  .w-md-75 {
    width: 75% !important;
  }
}