/* ===================================================================
   Latino Connect Canada — Landing Page
   Built from Figma: "Latino Connect Canada App UI" / Home - English
   =================================================================== */

:root {
  --ink: #1c2230;
  --red: #e13438;
  --red-dark: #c72a2e;
  --muted: #60646e;
  --page: #f7f7f7;
  --card: #ffffff;
  --border: rgba(28, 34, 48, 0.09);
  --shadow: 0 18px 50px rgba(28, 34, 48, 0.08);
  --radius: 24px;
  --maxw: 1200px;
  --font: "Sora", system-ui, -apple-system, sans-serif;
  --font-alt: "Plus Jakarta Sans", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section-title {
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.12;
  text-align: center;
  letter-spacing: -0.01em;
}

.leaf {
  display: inline-block;
  margin-top:40px;
}

.accent {
  color: var(--red);
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--page);
  transition: opacity .6s ease, visibility .6s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
}

.preloader-logo {
  width: 60px;
  height: auto;
  animation: pl-pulse 1.4s ease-in-out infinite;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(225, 52, 56, 0.14);
  border-top-color: var(--red);
  animation: pl-spin .9s linear infinite;
}

.preloader-text {
  position: absolute;
  bottom: -34px;
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
  animation: pl-fade 1.6s ease-in-out infinite;
}

@keyframes pl-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pl-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(.86);
    opacity: .65;
  }
}

@keyframes pl-fade {

  0%,
  100% {
    opacity: .45;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  .preloader-logo,
  .preloader-ring,
  .preloader-text {
    animation: none;
  }
}

/* ============ NAV ============ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 24px;
  display: flex;
  justify-content: center;
  background: linear-gradient(var(--page) 60%, rgba(247, 247, 247, 0));
}

.nav {
  max-width: 980px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card);
  border: 1.2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  box-shadow: 0 8px 30px rgba(28, 34, 48, 0.06);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 34px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-inline: auto;
  font-family: "Geist", var(--font);
  font-weight: 500;
  font-size: 16px;
}

.nav-links>li>a {
  color: var(--ink);
  transition: color .2s;
}

.nav-links>li>a:hover {
  color: var(--red);
}

.nav-lang {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  font-weight: 500;
}

.lang-btn svg {
  transition: transform .2s;
}

.lang-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: 140%;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  min-width: 140px;
  box-shadow: var(--shadow);
  display: none;
}

.lang-menu.open {
  display: block;
}

.lang-menu button,
.lang-menu a {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.lang-menu button:hover,
.lang-menu a:hover {
  background: var(--page);
}

.lang-menu a.is-current {
  color: var(--red);
  font-weight: 600;
}

.nav-store {
  display: flex;
  gap: 8px;
}

.store-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #E13438;
  color: #fff;
  border: none;
  transition: transform .15s, box-shadow .2s;
}

.store-icon:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

/* ============ HERO ============ */
.hero {
  text-align: center;
  padding-top: 40px;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(2.75rem, 7.4vw, 6.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-line1 {
  display: block;
  margin-bottom: 18px;
}

.hero-sub {
  font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  color: var(--ink);
  margin-top: 22px;
}

.hero-phone {
  position: relative;
  width: min(420px, 78vw);
  margin: 30px auto 0;
}

.hero-phone .phone-img {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  /* Sharp phone up top, fading out where the blurred layer takes over */
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 82%);
}

/* Blurred duplicate of the phone that fills the dissolve zone — the frosted fade in the Figma */
.hero-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("assets/hero-phone.png") top center / 100% auto no-repeat;
  filter: blur(7px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 54%, #000 70%, #000 82%, transparent 94%);
  mask-image: linear-gradient(to bottom, transparent 54%, #000 70%, #000 82%, transparent 94%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 155%;
  height: 34%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 62% 100% at center, rgba(225, 52, 56, 0.58) 0%, rgba(225, 52, 56, 0.30) 40%, rgba(225, 52, 56, 0) 72%);
  filter: blur(18px);
  z-index: 1;
}

.qr-card {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  background: #fff;
  padding: 11px;
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(28, 34, 48, 0.22);
  width: 34%;
  max-width: 155px;
}

.qr-card img {
  width: 100%;
  border-radius: 8px;
}

/* Pull the download block up to close the gap left by the phone's faded bottom */
.hero-download {
  margin-top: -80px;
  position: relative;
  z-index: 4;
}

.dl-title {
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.dl-sub {
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  color: var(--ink);
  margin-top: 4px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: 18px;
  padding: 20px 34px;
  border-radius: 999px;
  min-width: 300px;
  transition: transform .15s, box-shadow .2s, background .2s;
  cursor: pointer;
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 26px rgba(225, 52, 56, 0.32);
}

.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1.6px solid var(--ink);
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============ HOW IT WORKS ============ */
.how {
  padding-top: 110px;
}

.how .section-title {
  margin-bottom: 46px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--card);
  border: 1.2px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}

.step-num {
  display: block;
  font-weight: 600;
  font-size: 2rem;
  color: var(--red);
  margin-bottom: 18px;
}

.step-card h3 {
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 12px;
}

.step-card p {
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--muted);
}

/* ============ FEATURES ============ */
.features {
  padding-top: 120px;
}

.features .section-title {
  margin-bottom: 50px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  background: var(--card);
  border: 1.2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 56px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-row:nth-child(even) .feature-text {
  order: 2;
}

.feature-row:nth-child(even) .feature-media {
  order: 1;
}

.feature-text h3 {
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

.feature-text p {
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 30ch;
}

.feature-media {
  display: flex;
  justify-content: center;
}

.feature-media img {
  width: min(340px, 100%);
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  padding-top: 120px;
}

.testimonials .section-title {
  margin-bottom: 46px;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  background: var(--card);
  border: 1.2px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.testimonial-card .quote {
  font-family: var(--font-alt);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--ink);
  line-height: 1.5;
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.person img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.person strong {
  display: block;
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: 1rem;
}

.person span {
  font-family: var(--font-alt);
  font-weight: 400;
  font-size: .875rem;
  color: var(--muted);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(28, 34, 48, 0.2);
  border: none;
  cursor: pointer;
  transition: background .2s, width .2s;
}

.dot.is-active {
  background: var(--red);
  width: 26px;
  border-radius: 6px;
}

/* ============ FAQ ============ */
.faq {
  padding-top: 120px;
}

.faq .section-title {
  margin-bottom: 46px;
}

.faq-list {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card);
  border: 1.2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 28px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-align: left;
}

.faq-q .faq-icon {
  flex-shrink: 0;
  color: #000;
  background: #E7E8EA;
  border-radius: 50%;
  padding: 5px;
  box-sizing: content-box;
  transition: transform .25s;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-q[aria-expanded="true"] + .faq-a {
  max-height: 600px;
}

.faq-a p {
  padding: 0 28px 24px;
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--ink);
  line-height: 1.55;
}

/* ============ FOOTER CTA ============ */
.footer-cta {
  text-align: center;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
}

/* ============ FOOTER ============ */
.footer {
  padding-top: 40px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: "Geist", var(--font);
}

.footer-links a {
  color: var(--red);
  font-weight: 400;
  font-size: 1.125rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(28, 34, 48, 0.10);
  transition: transform .15s, box-shadow .2s;
}

.footer-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(28, 34, 48, 0.16);
}

.footer-social svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ============ LEGAL / CONTENT PAGES ============ */
.legal {
  padding-top: 40px;
  padding-bottom: 40px;
}

.legal-head {
  text-align: center;
  margin-bottom: 40px;
}

.legal-head h1 {
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.legal-head h1 .legal-sub {
  display: block;
  font-size: 0.5em;
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: .01em;
}

.legal-head .updated {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 14px;
}

.legal-body {
  max-width: 820px;
  margin-inline: auto;
  background: var(--card);
  border: 1.2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
}

.legal-body h2 {
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin: 36px 0 14px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  font-weight: 600;
  font-size: 1.15rem;
  margin: 22px 0 10px;
}

.legal-body p,
.legal-body li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #3a3f4b;
}

.legal-body p {
  margin-bottom: 16px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px 22px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--red);
  font-weight: 500;
}

.legal-body a:hover {
  text-decoration: underline;
}

.legal-body strong {
  color: var(--ink);
}

.legal-note {
  background: rgba(225, 52, 56, 0.06);
  border: 1px solid rgba(225, 52, 56, 0.18);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.98rem;
  color: var(--ink);
}

.legal-steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0 !important;
}

.legal-steps li {
  position: relative;
  padding-left: 46px;
  margin-bottom: 16px;
}

.legal-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  font-family: var(--font-alt);
  font-weight: 600;
  color: var(--red);
}

.back-home:hover {
  gap: 12px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav {
    max-width: 100%;
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 8px 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--card);
    border: 1.2px solid var(--border);
    border-radius: 18px;
    padding: 8px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links>li {
    width: 100%;
  }

  .nav-links>li>a {
    display: block;
    padding: 5px 8px;
    border-radius: 10px;
  }

  .nav-links>li>a:hover {
    background: var(--page);
  }

  .nav-store {
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }

  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: .25s;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 34px 28px 0;
    gap: 10px;
  }

  .feature-row:nth-child(even) .feature-text,
  .feature-row:nth-child(even) .feature-media {
    order: initial;
  }

  .feature-text p {
    max-width: none;
    margin-inline: auto;
  }

  .feature-media img {
    width: min(300px, 80%);
  }

  .testimonial-track {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }

  .btn {
    min-width: 260px;
    flex: 1;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 18px;
  }

  .btn {
    min-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-download {
    margin-top: -15vw;
  }

  .faq-q {
    font-size: 1.05rem;
    padding: 20px;
  }

  .faq-a p {
    padding: 0 20px 20px;
  }

  .step-card {
    align-items: center;
  }

  /* file: styles.css */
  @media (max-width: 900px) {
    .nav-links.open {
      align-items: center;
    }

    .nav-store {
      margin-left: 0;
      margin-top: 10px;
      justify-content: center;
      width: 100%;
    }
  }

  /* file: styles.css */
  @media (max-width: 900px) {
    .step-card {
      text-align: center;
    }

    .step-num {
      margin-inline: auto;
    }
  }
}