:root{--luma:#3da5f5;--bg:#07111f;--soft:#0d1b2d;--text:#f7fbff;--muted:#a9bdd0;--border:rgba(255,255,255,.12);--ks:#05ce78}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.6}a{color:inherit;text-decoration:none}
.site-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:112px;padding:6px clamp(28px,5.5vw,90px);background:var(--luma);border-bottom:1px solid rgba(255,255,255,.18)}
.brand{display:flex;align-items:center;min-width:0}.brand img{display:block;width:min(500px,48vw);height:auto}
.nav-links{display:flex;gap:34px;color:#061526;font-weight:900;font-size:1.08rem;align-items:center}.nav-links a:hover{color:#fff}
.hero{position:relative;isolation:isolate;min-height:82vh;display:grid;grid-template-columns:minmax(0,1.18fr) minmax(310px,.82fr);align-items:center;gap:clamp(42px,7vw,100px);overflow:hidden;padding:clamp(34px,4vw,58px) clamp(28px,6vw,96px)}
.hero-glow{position:absolute;z-index:-1;border-radius:999px;filter:blur(90px);opacity:.28}.hero-glow-one{width:420px;height:420px;top:-120px;left:-100px;background:var(--luma)}.hero-glow-two{width:340px;height:340px;right:-100px;bottom:-80px;background:#5ed7c3}
.launch-row{display:flex;align-items:center;flex-wrap:wrap;gap:24px;margin-bottom:22px}.launch-date{color:var(--luma);font-weight:900;letter-spacing:.12em;text-transform:uppercase;font-size:clamp(.85rem,1.35vw,1.05rem)}
.kickstarter-logo{display:block;width:clamp(190px,18vw,300px);height:auto;max-height:58px;object-fit:contain}
h1,h2,h3,p{margin-top:0}h1{margin-bottom:24px;font-size:clamp(2.7rem,6vw,5.8rem);line-height:.98;letter-spacing:-.055em}h1 span{color:var(--luma)}
.hero-copy,.section-copy{max-width:720px;color:var(--muted);font-size:clamp(1.05rem,2vw,1.25rem)}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:32px}.button{display:inline-flex;min-height:54px;align-items:center;justify-content:center;padding:14px 22px;border:1px solid transparent;border-radius:12px;font-weight:900;font-size:1rem;transition:transform 160ms ease,background 160ms ease}.button:hover{transform:translateY(-2px)}
.button-primary{background:var(--luma);color:#04111d}.button-primary:hover{background:#69bbf8}.button-kickstarter{background:var(--ks);color:#042115}.button-kickstarter:hover{background:#26dc91}
.hero-note{margin-top:20px;color:var(--text);font-size:clamp(1rem,1.6vw,1.2rem);font-weight:800}
.product-preview{width:min(100%,540px);justify-self:center;padding:24px;border:1px solid rgba(61,165,245,.5);border-radius:28px;background:linear-gradient(160deg,rgba(18,36,58,.98),rgba(8,20,35,.98));box-shadow:0 30px 80px rgba(0,0,0,.38),0 0 38px rgba(61,165,245,.12);overflow:hidden}
.product-preview h2{margin:0 0 14px;font-size:clamp(1.65rem,3vw,2.45rem)}.flow-line{height:7px;margin-bottom:18px;border-radius:999px;background:linear-gradient(90deg,#5ed7c3,var(--luma),#a685f5)}.product-preview img{display:block;width:100%;height:auto;max-height:440px;object-fit:contain;border-radius:18px}
.section{padding:clamp(72px,9vw,120px) clamp(20px,8vw,120px)}.section-kicker{margin:0 0 14px;color:var(--luma);font-weight:900;letter-spacing:.12em;text-transform:uppercase;font-size:clamp(.85rem,1.35vw,1.05rem)}.section h2{max-width:850px;margin-bottom:20px;font-size:clamp(2rem,4vw,4rem);line-height:1.05;letter-spacing:-.04em}.section-dark{background:var(--soft)}
.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:44px}.feature-card{padding:24px;border:1px solid var(--border);border-radius:16px;background:rgba(255,255,255,.035)}.feature-card h3{margin-bottom:8px;font-size:1.2rem}.feature-card p{margin-bottom:0;color:var(--muted)}
.trial-section,.launch-section{text-align:center}.trial-section .section-copy,.launch-section .section-copy{margin-right:auto;margin-left:auto}
.site-footer{display:flex;justify-content:space-between;gap:30px;padding:34px clamp(20px,8vw,120px);border-top:1px solid var(--border);color:var(--muted)}.site-footer strong{color:var(--text)}.site-footer p{margin-bottom:0}
@media(max-width:900px){.site-header{min-height:92px}.brand img{width:min(400px,68vw);height:auto}.nav-links{display:none}.hero{min-height:auto;grid-template-columns:1fr;padding-top:36px}.product-preview{width:min(100%,520px)}.feature-grid{grid-template-columns:1fr}.site-footer{flex-direction:column}}
@media(max-width:520px){.site-header{padding:7px 18px}.brand img{width:min(340px,82vw);height:auto}.hero-actions{flex-direction:column}.button{width:100%}.launch-row{align-items:flex-start;flex-direction:column;gap:10px}.kickstarter-logo{width:min(250px,75vw)}.product-preview{padding:17px}.product-preview img{max-height:360px}}


.mail-loading {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 17, 31, 0.58);
  backdrop-filter: blur(6px);
}

.mail-loading.show {
  display: flex;
}

.mail-loading-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 210px;
  padding: 26px 28px;
  border: 1px solid rgba(61, 165, 245, 0.45);
  border-radius: 20px;
  background: rgba(13, 27, 45, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.mail-loading-card p {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--luma);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.feature-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.feature-button:hover {
  border-color: rgba(61, 165, 245, 0.62);
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.feature-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.feature-modal.show {
  display: flex;
}

.feature-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(8px);
}

.feature-modal-card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(61, 165, 245, 0.5);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(18, 36, 58, 0.98), rgba(8, 20, 35, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.feature-modal-card h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.feature-modal-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.feature-hint{margin:-8px 0 28px;color:var(--muted);font-size:clamp(.95rem,1.4vw,1.08rem)}
.feature-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.feature-card.feature-button{min-height:118px;padding:20px 18px;display:flex;align-items:center;justify-content:center;text-align:center}
.feature-card.feature-button h3{margin:0;font-size:clamp(1.35rem,2vw,1.8rem);line-height:1.1}
@media(max-width:900px){.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.feature-grid{gap:12px}.feature-card.feature-button{min-height:92px;padding:16px 10px}.feature-card.feature-button h3{font-size:1.15rem}}


.feature-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin: 36px 0 44px;
  align-items: stretch;
}

.showcase-video-card,
.showcase-image-card {
  border: 1px solid rgba(61, 165, 245, 0.5);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.showcase-video-card video,
.showcase-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}

.feature-subtitle {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  letter-spacing: -0.03em;
}

.feature-card.feature-button {
  background: var(--luma);
  border-color: rgba(61, 165, 245, 0.85);
  color: #04111d;
  box-shadow: 0 16px 38px rgba(61, 165, 245, 0.14);
}

.feature-card.feature-button:hover {
  background: #69bbf8;
  border-color: rgba(105, 187, 248, 0.95);
}

.feature-card.feature-button h3 {
  color: #04111d;
  font-weight: 1000;
}

.modal-gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin: 8px 0 18px;
  scroll-snap-type: x mandatory;
}

.modal-gallery img {
  flex: 0 0 auto;
  width: min(260px, 78vw);
  max-height: 520px;
  object-fit: contain;
  border: 1px solid rgba(61, 165, 245, 0.35);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  scroll-snap-align: start;
}

.feature-modal-card {
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .feature-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-video-card video,
  .showcase-image-card img {
    max-height: none;
    height: auto;
  }
}

@media (max-width: 520px) {
  .modal-gallery img {
    width: min(230px, 82vw);
  }
}


/* v17: Features media layout tuning */
.feature-showcase {
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  align-items: stretch;
}

.showcase-video-card {
  max-width: 390px;
  justify-self: start;
}

.showcase-video-card video {
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: 640px;
  object-fit: cover;
}

.showcase-image-card img {
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 900px) {
  .feature-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-video-card {
    max-width: 420px;
    justify-self: center;
    width: 100%;
  }

  .showcase-video-card video {
    aspect-ratio: 9 / 16;
    max-height: none;
  }

  .showcase-image-card img {
    object-fit: contain;
  }
}


/* v18: fit media showcase above the fold */
.feature-showcase {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  margin: 28px 0 34px;
}

.showcase-video-card {
  width: 100%;
  max-width: 300px;
  justify-self: center;
  border-radius: 22px;
}

.showcase-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  border-radius: 22px;
}

.showcase-image-card {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  align-self: center;
}

.showcase-image-card img {
  display: block;
  width: min(100%, 920px);
  height: auto;
  max-height: 455px;
  object-fit: contain;
  object-position: center center;
  border-radius: 18px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .feature-showcase {
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
    gap: 26px;
  }

  .showcase-video-card {
    max-width: 280px;
  }

  .showcase-image-card img {
    max-height: 410px;
  }
}

@media (max-width: 900px) {
  .feature-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-video-card {
    max-width: 330px;
  }

  .showcase-image-card img {
    max-height: none;
  }
}


/* v19: preserve full video frame including LumaFlow app bar */
.showcase-video-card,
.showcase-video-card video {
  border-radius: 0 !important;
}

.showcase-video-card {
  overflow: visible !important;
  background: transparent !important;
}

.showcase-video-card video {
  object-fit: contain !important;
  object-position: center center !important;
  background: #000;
}


/* v20: horizontal media positioning only */
.feature-showcase {
  justify-content: center;
  padding-left: clamp(120px, 10vw, 190px);
  padding-right: clamp(16px, 3vw, 48px);
}

@media (max-width: 900px) {
  .feature-showcase {
    padding-left: 0;
    padding-right: 0;
  }
}


/* v21: exact Spanish snapshot image, no rounded corners */
.showcase-image-card,
.showcase-image-card img {
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.showcase-image-card img {
  object-fit: contain !important;
}


/* v23: popup boxes only — do not touch the Features media section */
@media (min-width: 769px) {
  .feature-modal {
    padding: 22px !important;
    overflow: hidden !important;
  }

  .feature-modal-card {
    width: min(1360px, calc(100vw - 56px)) !important;
    max-width: 1360px !important;
    max-height: calc(100vh - 44px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .feature-modal-card h2 {
    flex: 0 0 auto !important;
    margin-bottom: 14px !important;
    font-size: clamp(2rem, 3.4vw, 3.8rem) !important;
  }

  .modal-gallery {
    flex: 0 1 auto !important;
    width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 22px !important;
    padding: 4px 0 14px !important;
    margin: 0 0 12px !important;
  }

  .modal-gallery img {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: calc((100% - 44px) / 3) !important;
    height: min(48vh, 500px) !important;
    max-height: 500px !important;
    object-fit: contain !important;
  }

  #feature-modal-copy {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
  }
}


/* v25 — popup internal layout only.
   Does NOT touch the main Features media section. */
@media (min-width: 769px) {
  .feature-modal-card {
    display: grid !important;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.65fr) !important;
    grid-template-rows: auto auto 1fr !important;
    column-gap: 42px !important;
    align-items: center !important;
  }

  .feature-modal-card .modal-close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 5 !important;
  }

  .feature-modal-card .modal-kicker {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: 0 0 10px !important;
    align-self: end !important;
  }

  .feature-modal-card h2 {
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    align-self: start !important;
    font-size: clamp(2.6rem, 4vw, 4.8rem) !important;
    line-height: 1.03 !important;
  }

  .feature-modal-card #feature-modal-copy {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin: 22px 0 0 !important;
    align-self: start !important;
    max-width: 520px !important;
  }

  .feature-modal-card .modal-gallery {
    grid-column: 2 !important;
    grid-row: 1 / 4 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 18px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 18px 48px 18px 0 !important;
    box-sizing: border-box !important;
  }

  .feature-modal-card .modal-gallery img {
    width: auto !important;
    height: min(58vh, 560px) !important;
    max-height: 100% !important;
    max-width: calc((100% - 36px) / 3) !important;
    object-fit: contain !important;
    flex: 0 1 auto !important;
  }
}


/* v27 — keep popup content sizing like Dashboard/Bills.
   Only tighten the OUTER popup box for 1-photo and 2-photo features. */
@media (min-width: 769px) {
  /* 2-photo popups: smaller outer box, screenshots stay full-size */
  .feature-modal-card:has(.modal-gallery img:nth-child(2):last-child) {
    width: min(1240px, calc(100vw - 56px)) !important;
    max-width: 1240px !important;
  }

  .feature-modal-card:has(.modal-gallery img:nth-child(2):last-child) .modal-gallery img {
    max-width: 330px !important;
  }

  /* 1-photo popups: smaller outer box, screenshot stays full-size */
  .feature-modal-card:has(.modal-gallery img:only-child) {
    width: min(1080px, calc(100vw - 56px)) !important;
    max-width: 1080px !important;
  }

  .feature-modal-card:has(.modal-gallery img:only-child) .modal-gallery img {
    max-width: 330px !important;
  }
}

/* v28 — About story only */
.about-story p {
  margin: 0 0 1rem;
}
.about-story p:last-child {
  margin-bottom: 0;
}


/* v29 — About section: wider story + founder photo + full-width closing line */
.about-section {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}

.about-layout .about-story {
  max-width: none;
}

.about-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-founder-photo {
  display: block;
  width: min(100%, 390px);
  height: clamp(430px, 48vw, 610px);
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: 18px;
  border: 1px solid rgba(61, 165, 245, 0.72);
}

.about-closing {
  width: 100%;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  padding-top: clamp(1.25rem, 2vw, 1.75rem);
  border-top: 1px solid rgba(61, 165, 245, 0.35);
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  line-height: 1.25;
  color: #f5f8ff;
  text-align: center;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-founder-photo {
    width: min(100%, 420px);
    height: 520px;
  }
}

@media (max-width: 560px) {
  .about-founder-photo {
    height: 430px;
  }

  .about-closing {
    text-align: left;
  }
}


/* v30 — tighter About ending */
.about-closing {
  margin-top: 1rem !important;
  padding-top: 0 !important;
  border-top: none !important;
  font-size: clamp(1.25rem, 1.75vw, 1.8rem) !important;
  text-align: left !important;
  max-width: 980px !important;
}

.about-section {
  padding-bottom: clamp(3rem, 5vw, 4.5rem) !important;
}


/* v31 — match About title-to-copy spacing to hero title spacing */
.about-section h2 {
  margin-bottom: 1rem !important;
}


/* v32 — tighten ONLY the About heading-to-first-paragraph gap */
.about-section h2 {
  margin-bottom: 0.2rem !important;
}

.about-section h2 + p,
.about-section .about-copy > p:first-child {
  margin-top: 0 !important;
}


/* v33 — footer social links */
.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
}

.footer-social-label {
  color: #f7fbff;
  font-weight: 800;
}

.footer-socials a {
  color: #3da5f5;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  opacity: 0.8;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .footer-socials {
    gap: 0.65rem 0.9rem;
    padding-inline: 1rem;
  }

  .footer-social-label {
    flex-basis: 100%;
    text-align: center;
  }
}


/* v34 — clickable social icons instead of text names */
.footer-socials .social-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(61, 165, 245, 0.65);
  border-radius: 50%;
  color: #3da5f5;
  text-decoration: none;
  background: rgba(61, 165, 245, 0.08);
}

.footer-socials .social-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-socials .social-icon[title="TikTok"] svg,
.footer-socials .social-icon[title="Facebook"] svg {
  fill: currentColor;
  stroke: none;
}

.footer-socials .social-icon:hover,
.footer-socials .social-icon:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
  background: rgba(61, 165, 245, 0.18);
}


/* v36 — footer: preserve icons, left align them, copyright stays right */
.footer-socials {
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 1.35rem !important;
}

.footer-socials .social-icon {
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px !important;
}

.footer-socials .social-icon svg {
  width: 28px !important;
  height: 28px !important;
}

.footer-social-label {
  display: none !important;
}


/* v37 — soften only the bright Spanish snapshot against the dark section */
.spanish-snapshot-toned {
  filter: brightness(0.82) contrast(0.96) saturate(0.94) !important;
}

/* v38 — Spanish and French availability previews */
.showcase-language-column {
  display: grid;
  gap: clamp(28px, 4vw, 46px);
  align-self: center;
  min-width: 0;
}

.language-preview-block {
  min-width: 0;
}

.language-preview-label {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 900;
  text-align: center;
}

.showcase-language-column .showcase-image-card img {
  display: block;
  width: min(100%, 920px);
  height: auto;
  max-height: 455px;
  object-fit: contain !important;
  object-position: center center;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .showcase-language-column .showcase-image-card img {
    max-height: 410px;
  }
}

@media (max-width: 900px) {
  .showcase-language-column {
    width: 100%;
  }

  .showcase-language-column .showcase-image-card img {
    max-height: none;
  }
}



/* v39 - Balance feature media layout */
@media (min-width: 901px){
  .feature-showcase{
    grid-template-columns:minmax(320px,380px) minmax(0,1fr) !important;
    align-items:start !important;
    gap:40px !important;
  }

  .showcase-video-card{
    max-width:380px !important;
    width:100% !important;
  }

  .showcase-video-card video{
    max-height:680px !important;
  }

  .showcase-language-column{
    gap:26px !important;
  }

  .showcase-language-column .showcase-image-card img{
    max-height:250px !important;
    width:auto !important;
    max-width:100% !important;
  }

  .language-preview-label{
    font-size:1.35rem !important;
    margin-bottom:10px !important;
  }
}

/* v40 — final desktop balance for video and language previews */
@media (min-width: 901px) {
  .feature-showcase {
    width: min(100%, 1320px) !important;
    margin: 28px auto 34px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    grid-template-columns: minmax(300px, 350px) minmax(0, 1fr) !important;
    gap: clamp(42px, 5vw, 72px) !important;
    align-items: start !important;
  }

  .showcase-video-card {
    width: 100% !important;
    max-width: 350px !important;
    justify-self: center !important;
  }

  .showcase-video-card video {
    width: 100% !important;
    max-height: 630px !important;
  }

  .showcase-language-column {
    gap: 30px !important;
    align-self: start !important;
  }

  .showcase-language-column .showcase-image-card img {
    width: min(100%, 760px) !important;
    max-height: 290px !important;
  }

  .language-preview-label {
    font-size: 1.45rem !important;
    margin-bottom: 11px !important;
  }
}

/* v41 — centered feature media and clickable language previews */
@media (min-width: 901px) {
  .feature-showcase {
    width: min(100%, 1340px) !important;
    margin: 28px auto 34px !important;
    padding: 0 !important;
    grid-template-columns: minmax(340px, 430px) minmax(0, 1fr) !important;
    gap: clamp(50px, 6vw, 90px) !important;
    align-items: start !important;
  }

  .showcase-video-card {
    width: min(100%, 340px) !important;
    max-width: 340px !important;
    justify-self: center !important;
  }

  .showcase-video-card video {
    width: 100% !important;
    max-height: 610px !important;
  }

  .showcase-language-column {
    width: 100% !important;
    max-width: 700px !important;
    justify-self: center !important;
    gap: 30px !important;
  }

  .showcase-language-column .showcase-image-card img {
    width: 100% !important;
    max-width: 700px !important;
    max-height: 280px !important;
  }
}

.language-preview-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.language-preview-button .showcase-image-card {
  display: block;
  transition: transform 160ms ease, filter 160ms ease;
}

.language-preview-button:hover .showcase-image-card,
.language-preview-button:focus-visible .showcase-image-card {
  transform: scale(1.015);
  filter: brightness(1.05);
}

.language-preview-button:focus-visible {
  outline: 2px solid var(--luma);
  outline-offset: 8px;
  border-radius: 8px;
}

.language-preview-action {
  display: block;
  margin-top: 10px;
  color: var(--luma);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.language-image-modal {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.language-image-modal.show {
  display: flex;
}

.language-image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(8px);
}

.language-image-modal-card {
  position: relative;
  z-index: 1;
  width: min(1500px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 20px;
  border: 1px solid rgba(61, 165, 245, 0.55);
  border-radius: 18px;
  background: rgba(8, 20, 35, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  overflow: auto;
}

.language-image-modal-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 88px);
  object-fit: contain;
}

.language-image-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(7,17,31,.86);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.language-image-modal-close:hover {
  background: rgba(61,165,245,.28);
}

@media (max-width: 900px) {
  .language-preview-action {
    font-size: .95rem;
  }

  .language-image-modal {
    padding: 12px;
  }

  .language-image-modal-card {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 12px;
  }

  .language-image-modal-card img {
    max-height: calc(100vh - 48px);
  }
}

/* v42 — move ONLY the Spanish/French preview column upward on desktop */
@media (min-width: 901px) {
  .showcase-language-column {
    transform: translateY(-120px) !important;
  }
}

/* v43 — tighten section transitions and remove phantom layout space */
#features {
  padding-top: clamp(52px, 6vw, 82px) !important;
  padding-bottom: clamp(52px, 6vw, 82px) !important;
}

#about {
  padding-top: clamp(52px, 6vw, 82px) !important;
}

@media (min-width: 901px) {
  .showcase-language-column {
    transform: none !important;
    margin-top: -120px !important;
    margin-bottom: -120px !important;
  }
}

@media (max-width: 900px) {
  #features,
  #about {
    padding-top: 58px !important;
    padding-bottom: 58px !important;
  }
}


/* v44 — polished mobile previews and full-screen popups */
body.modal-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 900px) {
  /* Keep the language previews compact on the page. */
  .showcase-language-column {
    gap: 30px !important;
  }

  .language-preview-block {
    width: 100%;
  }

  .language-preview-button {
    width: min(100%, 420px);
    margin: 0 auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .showcase-language-column .showcase-image-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
  }

  .showcase-language-column .showcase-image-card img {
    width: 100% !important;
    max-width: 420px !important;
    max-height: 210px !important;
    object-fit: contain !important;
  }

  .language-preview-label {
    font-size: 1.25rem !important;
    margin-bottom: 10px !important;
  }

  .language-preview-action {
    margin-top: 8px;
    font-size: .95rem;
  }

  /* Feature popup: full-screen, words first, screenshots below, no sideways gallery. */
  .feature-modal {
    padding: 0 !important;
    align-items: stretch !important;
  }

  .feature-modal-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 72px 20px 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .feature-modal-card .modal-kicker {
    order: 1;
    margin-bottom: 8px !important;
  }

  .feature-modal-card h2 {
    order: 2;
    margin: 0 0 14px !important;
    padding-right: 38px;
    font-size: clamp(2rem, 9vw, 3rem) !important;
  }

  .feature-modal-card #feature-modal-copy {
    order: 3;
    margin: 0 0 24px !important;
    font-size: 1.08rem !important;
    line-height: 1.55 !important;
  }

  .feature-modal-card .modal-gallery {
    order: 4;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 12px !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .feature-modal-card .modal-gallery img {
    display: block !important;
    width: min(100%, 360px) !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    flex: none !important;
    border-radius: 16px !important;
  }

  .feature-modal-card .modal-close {
    position: fixed !important;
    top: max(14px, env(safe-area-inset-top)) !important;
    right: 14px !important;
    z-index: 5 !important;
    width: 46px !important;
    height: 46px !important;
  }

  /* Language preview: true full-screen image with no inner scrolling. */
  .language-image-modal {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  .language-image-modal-card {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: max(64px, env(safe-area-inset-top)) 10px max(18px, env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  .language-image-modal-card img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }

  .language-image-modal-close {
    position: fixed !important;
    top: max(14px, env(safe-area-inset-top)) !important;
    right: 14px !important;
    z-index: 5 !important;
    width: 48px !important;
    height: 48px !important;
  }
}

@media (max-width: 480px) {
  .language-preview-button {
    width: min(100%, 330px);
  }

  .showcase-language-column .showcase-image-card img {
    max-width: 330px !important;
    max-height: 175px !important;
  }
}


/* v45 — compact mobile feature thumbnails with tap-to-open image view */
.feature-gallery-button {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: zoom-in;
}

.feature-gallery-button img {
  display: block;
}

@media (max-width: 900px) {
  /* The language cards remain tappable, but the redundant instruction is gone. */
  .language-preview-action {
    display: none !important;
  }

  /* Three compact screenshots below the feature description. */
  .feature-modal-card .modal-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: start !important;
  }

  .feature-modal-card .feature-gallery-button {
    width: 100% !important;
    min-width: 0 !important;
    border: 1px solid rgba(61, 165, 245, 0.35) !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.035) !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .feature-modal-card .feature-gallery-button img,
  .feature-modal-card .modal-gallery img {
    width: 100% !important;
    height: clamp(150px, 46vw, 230px) !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: top center !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  /* One- and two-image features still use the available width cleanly. */
  .feature-modal-card .modal-gallery:has(.feature-gallery-button:only-child) {
    grid-template-columns: minmax(0, 220px) !important;
    justify-content: center !important;
  }

  .feature-modal-card .modal-gallery:has(.feature-gallery-button:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Image-only popup supports normal phone pinch zoom and panning. */
  .language-image-modal,
  .language-image-modal-card,
  .language-image-modal-card img {
    touch-action: pinch-zoom !important;
  }

  .language-image-modal-card {
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .language-image-modal-card img {
    width: auto !important;
    height: auto !important;
    min-width: min(100%, 420px) !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

@media (max-width: 480px) {
  .feature-modal-card .modal-gallery {
    gap: 8px !important;
  }

  .feature-modal-card .feature-gallery-button img,
  .feature-modal-card .modal-gallery img {
    height: clamp(135px, 44vw, 190px) !important;
  }
}


/* v46 mobile feature gallery — explicit three-thumbnail row, cache-busted */
@media (max-width: 900px) {
  .feature-modal-card {
    display: flex !important;
    flex-direction: column !important;
  }

  .feature-modal-card #feature-modal-copy {
    order: 3 !important;
  }

  .feature-modal-card .modal-gallery {
    order: 4 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 18px 0 0 !important;
  }

  .feature-modal-card .feature-gallery-button {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 150px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    border: 1px solid rgba(61,165,245,.45) !important;
  }

  .feature-modal-card .feature-gallery-button img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 0 !important;
  }

  .feature-modal-card .modal-gallery:has(.feature-gallery-button:only-child) {
    grid-template-columns: minmax(0, 180px) !important;
    justify-content: center !important;
  }

  .feature-modal-card .modal-gallery:has(.feature-gallery-button:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 420px) {
  .feature-modal-card .feature-gallery-button {
    height: 125px !important;
  }
}


/* v47 — mobile screenshots shown as true miniature images, not cropped bubbles */
@media (max-width: 900px) {
  .feature-modal-card .modal-gallery,
  .feature-modal-card .modal-gallery:has(.feature-gallery-button:only-child),
  .feature-modal-card .modal-gallery:has(.feature-gallery-button:nth-child(2):last-child) {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
  }

  .feature-modal-card .feature-gallery-button {
    flex: 0 1 104px !important;
    width: 104px !important;
    height: auto !important;
    min-width: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    text-align: center !important;
  }

  .feature-modal-card .feature-gallery-button img,
  .feature-modal-card .modal-gallery img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 104px !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    border: 1px solid rgba(61, 165, 245, 0.5) !important;
    border-radius: 9px !important;
    background: transparent !important;
  }

  .feature-gallery-zoom-label {
    display: block !important;
    margin-top: 7px !important;
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    color: #7cc5ff !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 420px) {
  .feature-modal-card .modal-gallery,
  .feature-modal-card .modal-gallery:has(.feature-gallery-button:only-child),
  .feature-modal-card .modal-gallery:has(.feature-gallery-button:nth-child(2):last-child) {
    gap: 9px !important;
  }

  .feature-modal-card .feature-gallery-button {
    flex-basis: 92px !important;
    width: 92px !important;
  }

  .feature-modal-card .feature-gallery-button img,
  .feature-modal-card .modal-gallery img {
    max-width: 92px !important;
  }

  .feature-gallery-zoom-label {
    font-size: 0.66rem !important;
  }
}

/* v48 — restore the original desktop feature-popup layout.
   The clickable wrapper only exists as a mobile zoom control; on desktop it
   disappears from layout so screenshots size and align exactly as before. */
@media (min-width: 901px) {
  .feature-modal-card .feature-gallery-button {
    display: contents !important;
  }

  .feature-modal-card .feature-gallery-zoom-label {
    display: none !important;
  }

  .feature-modal-card .modal-gallery img {
    cursor: default !important;
  }

  .feature-modal-card:has(.feature-gallery-button:nth-child(2):last-child) {
    width: min(1240px, calc(100vw - 56px)) !important;
    max-width: 1240px !important;
  }

  .feature-modal-card:has(.feature-gallery-button:nth-child(2):last-child) .modal-gallery img {
    max-width: 330px !important;
  }

  .feature-modal-card:has(.feature-gallery-button:only-child) {
    width: min(1080px, calc(100vw - 56px)) !important;
    max-width: 1080px !important;
  }

  .feature-modal-card:has(.feature-gallery-button:only-child) .modal-gallery img {
    max-width: 330px !important;
  }
}

/* v49 — desktop language-preview spacing only.
   Lower the Spanish heading slightly and tighten the Spanish/French stack so
   the French preview sits higher when navigating to Features. */
@media (min-width: 901px) {
  .showcase-language-column {
    margin-top: -105px !important;
    gap: 0 !important;
  }

  .language-preview-block + .language-preview-block {
    margin-top: 8px !important;
  }
}

/* v51 — larger, consistently sized mobile feature thumbnails with more breathing room */
@media (max-width: 900px) {
  .feature-modal-card .modal-gallery,
  .feature-modal-card .modal-gallery:has(.feature-gallery-button:only-child),
  .feature-modal-card .modal-gallery:has(.feature-gallery-button:nth-child(2):last-child) {
    margin-top: 34px !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .feature-modal-card .feature-gallery-button {
    flex: 0 0 118px !important;
    width: 118px !important;
  }

  .feature-modal-card .feature-gallery-button img,
  .feature-modal-card .modal-gallery img {
    width: 118px !important;
    max-width: 118px !important;
    height: auto !important;
  }

  .feature-gallery-zoom-label {
    margin-top: 8px !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 420px) {
  .feature-modal-card .modal-gallery,
  .feature-modal-card .modal-gallery:has(.feature-gallery-button:only-child),
  .feature-modal-card .modal-gallery:has(.feature-gallery-button:nth-child(2):last-child) {
    margin-top: 30px !important;
    gap: 10px !important;
  }

  .feature-modal-card .feature-gallery-button {
    flex-basis: 104px !important;
    width: 104px !important;
  }

  .feature-modal-card .feature-gallery-button img,
  .feature-modal-card .modal-gallery img {
    width: 104px !important;
    max-width: 104px !important;
  }

  .feature-gallery-zoom-label {
    font-size: 0.72rem !important;
  }
}


/* v52 — website Privacy Policy and Terms & Conditions */
.footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-legal-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--luma);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-copyright {
  align-self: center;
  text-align: right;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.legal-modal.show {
  display: flex;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.86);
  backdrop-filter: blur(8px);
}

.legal-modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100dvh - 48px);
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(61, 165, 245, 0.55);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(18, 36, 58, 0.99), rgba(8, 20, 35, 0.99));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal-modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin: -12px -12px 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.94);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.legal-document h2 {
  margin-bottom: 10px;
  padding-right: 42px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal-document h3 {
  margin: 30px 0 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.legal-document p {
  color: var(--muted);
}

.legal-document a {
  color: var(--luma);
  font-weight: 800;
}

.legal-updated {
  margin-bottom: 28px;
  color: var(--text) !important;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .site-footer {
    align-items: flex-start;
  }

  .footer-left {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-copyright {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .legal-modal {
    padding: 0;
    align-items: stretch;
  }

  .legal-modal-card {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    padding: max(72px, env(safe-area-inset-top)) 20px max(30px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }

  .legal-modal-close {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    float: none;
    margin: 0;
  }

  .legal-document h2 {
    padding-right: 34px;
  }
}
