/* Minimal overrides on top of original Webflow CSS */
.lang-switcher-wrap {
  margin-left: 1rem;
}

.lang-switcher-wrap select {
  appearance: none;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-btn, #d5ccf2);
  border-radius: 8px;
  padding: 0.35rem 1.5rem 0.35rem 0.65rem;
  font-family: Dmsans, system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--i-am-dark, #2f3a48);
  cursor: pointer;
}

.lang-switcher-wrap {
  position: relative;
}

.lang-switcher-wrap::after {
  content: '▾';
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  pointer-events: none;
}

.navbar-3 .container-14.w-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  width: auto;
  max-width: none;
  margin-left: 40px;
  margin-right: 40px;
  padding-left: 0;
  padding-right: 0;
}

@media screen and (max-width: 479px) {
  .navbar-3 .container-14.w-container {
    margin-left: 18px;
    margin-right: 10px;
  }
}

/* Hero title: match original <p> styling, keep h1 for SEO only */
.preview-description .hero-tagline {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-store-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.app-store-download-link {
  line-height: 0;
}

.app-store-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(47, 58, 72, 0.1);
  box-shadow: 0 2px 10px rgba(47, 58, 72, 0.08);
  font-family: Dmsans, system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 1;
}

.app-store-rating-value {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #e8a317;
}

.app-store-rating-star {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.app-store-rating-score {
  display: block;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #e8a317;
}

.section-banner .app-store-download {
  align-items: flex-start;
}

@media screen and (max-width: 767px) {
  .app-store-rating {
    font-size: 0.74rem;
    padding: 0.3rem 0.6rem;
  }
}

/* FAQ section — matches site visual language */
.section-faq {
  background-color: #fff;
  padding: 100px 5%;
}

.section-faq .faq-intro {
  text-align: center;
  margin-bottom: 48px;
}

.faq-grid {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-card {
  background-color: #fff5f0;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 24px 28px;
}

.faq-card h3 {
  font-family: Peachi, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--i-am-dark);
  margin: 0 0 0.75rem;
}

.faq-card p {
  font-family: Dmsans, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--i-am-dark);
  opacity: 0.85;
  margin: 0;
}

/* Extra sticky cards for features 4-5 */
.sticky-base.sticky-extra-base {
  background-color: var(--i-am-bg);
  background-image: linear-gradient(135deg, #fff, #eefcff);
  margin-top: -8rem;
  margin-bottom: 4rem;
  top: 2rem;
}

/* Use h1 only in hero for SEO; feature headings as h2 */
.preview-title .heading-large {
  font-size: 2.5rem;
}

/* ─── Mobile optimization ─── */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

.page-wrapper,
.main-wrapper,
.page-sections {
  overflow-x: clip;
  max-width: 100%;
}

.navbar-3 .brand-2.w-nav-brand {
  width: auto;
  max-width: none;
  min-width: 0;
  flex: 1;
}

.navbar-3 .image-16 {
  width: 72px;
  height: auto;
}

@media screen and (min-width: 1440px) {
  .navbar-3 .image-16 {
    width: 72px;
  }
}

.navbar-3 .brand-title {
  display: inline-block;
  white-space: nowrap;
  margin-left: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.f-footer-menu .link-block {
  padding-right: 0;
}

.f-footer-group.f-footer-menu {
  gap: 0.75rem;
  column-gap: 0.75rem;
}

.f-footer-line {
  margin-left: 0;
  margin-right: 0;
  height: 1em;
}

@media screen and (max-width: 991px) {
  .lang-switcher-wrap {
    margin-left: 0.5rem;
    flex-shrink: 0;
  }

  .lang-switcher-wrap select {
    max-width: 7.5rem;
    font-size: 0.75rem;
  }

  .navbar-3 .image-16 {
    width: 60px;
  }

  .navbar-3 .brand-title {
    font-size: 0.95rem;
    max-width: 9rem;
  }

  /* Hero */
  .hero-home-content {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .hero-bottom {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .preview-intro {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .preview-description {
    width: 100%;
    max-width: 100%;
  }

  .text-size-large.text-color-white.hero-tagline {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Sticky features (incl. extra cards) */
  .sticky-base,
  .sticky-base.sticky-first-base,
  .sticky-base.sticky-second-base,
  .sticky-base.sticky-extra-base {
    position: relative;
    top: 0 !important;
    height: auto;
    min-height: auto;
    max-height: none;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .section-sticky-cards {
    margin-top: 0;
  }

  .sticky-content {
    grid-template-columns: 1fr;
    padding-bottom: 2.5rem;
  }

  .sticky-image {
    width: 100%;
    height: auto;
    aspect-ratio: 637 / 523;
    overflow: hidden;
  }

  .sticky-image .image-fill {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none;
  }

  .sticky-intro,
  .sticky-description,
  .preview-title {
    max-width: 100%;
  }

  /* CTA */
  .text-size-regular.cta-paragraph {
    width: auto;
    max-width: 100%;
  }

  /* Testimonials */
  .f-testimonial-outline-fixed {
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 767px) {
  .navbar-3 .container-14.w-container {
    margin-left: 16px;
    margin-right: 16px;
  }

  /* Disable long hero parallax scroll on mobile */
  .hero-wrapper {
    height: auto;
    min-height: 100svh;
    opacity: 1 !important;
    will-change: auto;
  }

  .preview-hero .hero-home-content {
    order: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1 !important;
    position: relative;
    top: 0;
    margin-bottom: 0;
  }

  .hero-trigger {
    display: none;
  }

  .home-hero {
    position: relative;
    height: auto;
    min-height: 100svh;
  }

  .preview-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .preview-hero .navbar-3 {
    order: -1;
    flex-shrink: 0;
    position: relative;
    z-index: 30;
  }

  .text-size-large.text-color-white.hero-tagline {
    font-size: clamp(1.85rem, 7.5vw, 2.8rem);
    line-height: 1.25;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .preview-intro {
    margin-top: 2rem;
    padding-top: 0;
  }

  .hero-bottom {
    padding-top: 0;
    grid-row-gap: 1.5rem;
  }

  .quick-stack {
    width: 100%;
    justify-content: center;
  }

  .benefits-base {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .looping-text {
    font-size: clamp(1.4rem, 9vw, 2.5rem);
  }

  .f-section-regular-2 {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .f-testimonial-card-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    margin-top: 1.5rem;
  }

  .f-testimonial-outline-fixed {
    width: 100%;
  }

  .section-faq {
    padding: 64px 5%;
  }

  .faq-card {
    padding: 18px 20px;
  }

  .f-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .f-footer-group.f-footer-menu {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .f-footer-line {
    display: none;
  }

  .f-footer-brand {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .f-footer-detail {
    padding-left: 0;
  }

  /* CTA banner: stack vertically */
  .section-banner .quick-stack-2.wf-layout-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 0;
  }

  .section-banner .cell-5 {
    align-items: center;
  }

  .section-banner .quick-stack-3 {
    display: none;
  }
}

@media screen and (max-width: 479px) {
  .navbar-3 .container-14.w-container {
    margin-left: 12px;
    margin-right: 12px;
  }

  .navbar-3 .brand-title {
    display: none;
  }

  .navbar-3 .image-16 {
    width: 52px;
  }

  .lang-switcher-wrap select {
    max-width: 6.5rem;
    padding: 0.3rem 1.2rem 0.3rem 0.5rem;
  }

  .text-size-large.text-color-white.hero-tagline {
    font-size: clamp(1.65rem, 8.5vw, 2.4rem);
  }

  .hero-bottom {
    margin-top: 3.5rem;
  }

  .hero-home-content {
    padding-bottom: 12vh;
  }

  .heading-large {
    font-size: 1.85rem;
  }

  .preview-title .heading-large {
    font-size: 1.85rem;
  }

  .sticky-top {
    height: auto;
    min-height: 3rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .section-banner {
    border-radius: 24px 0 0;
  }

  .heading-large.cta {
    font-size: 1.65rem;
    line-height: 1.15;
  }

  .image-4,
  .section-banner .image {
    width: 160px;
    max-width: 70vw;
  }
}
