/* =========================================================
   QuickLook Landing Page
   Source: Figma "QL Landing Page" — Desktop 26:2 / Mobile 26:267
   ========================================================= */

:root {
  /* Brand */
  --brand-blue: #0055d4;
  --brand-blue-2: #2563eb;
  --brand-red: #e11d48;
  --brand-red-strong: #df0c1d;
  --brand-gradient: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue-2) 100%);

  /* Neutrals (slate) */
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --surface: #f8fafc;
  --white: #ffffff;

  /* Tints */
  --blue-100: #dbeafe;
  --rose-100: #ffe4e6;
  --green-100: #d1fae5;
  --green-700: #047857;

  /* Type */
  --font-display: "Lato", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;
  --fw-extrabold: 800;

  /* Layout */
  --container: 1280px;
  --gutter: 48px;
  --header-h: 81px;

  /* Effects */
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Fonts: self-hosted Lato 2.015, Latin subset (assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/lato-500.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/lato-600.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/lato-700.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/lato-800.woff2") format("woff2");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
button { font: inherit; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Logo crop (matches Figma image fill crop) ---------- */
.logo-crop {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 573 / 126;
  flex-shrink: 0;
}
.logo-crop img {
  position: absolute;
  max-width: none;
  width: 139.76%;
  height: 448.68%;
  left: -13.65%;
  top: -219.74%;
}
.logo-crop--header { width: 159px; }
.logo-crop--hero   { width: 573px; max-width: 100%; }
.logo-crop--footer { width: 345px; max-width: 100%; }

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.9px;
  color: var(--ink-900);
  text-align: center;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(15, 23, 42, .18); }

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px; /* keeps the nav clear of the logo on 992–1199px screens */
}
.nav {
  flex: 0 1 942px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  position: relative;
  padding: 11px 0 15.5px;
  font-size: 15px;
  line-height: 22.5px;
  font-weight: 500;
  color: var(--ink-600);
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-link:hover { color: var(--brand-blue); }
.nav-link.is-active {
  color: var(--brand-blue);
  font-weight: 700;
  border-bottom-color: var(--brand-blue);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: clip;
  padding-top: 40px;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}
.hero-glow {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}
.hero-glow--top {
  top: -96px;
  left: 50%;
  width: 760px;
  height: 360px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(219, 234, 254, .6) 0%, rgba(238, 242, 255, .5) 50%, rgba(255, 228, 230, .4) 100%);
  filter: blur(110px);
}
.hero-glow--right {
  right: -12px;
  top: 320px;
  width: 420px;
  height: 420px;
  transform: translateY(-50%);
  background: rgba(255, 228, 230, .4);
  filter: blur(120px);
  animation: glowFloat 9s ease-in-out infinite alternate;
}
@keyframes glowFloat {
  to { transform: translate(-40px, -45%) scale(1.08); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 40px;
}
.hero-copy {
  grid-column: 1 / span 7;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(42px, 4.375vw, 56px);
  line-height: 1.2857;
  letter-spacing: -1.4px;
  color: var(--ink-900);
}
.hero-text {
  max-width: 573px;
  font-size: 18px;
  line-height: 29.25px;
  color: var(--ink-600);
}
.hero-visual {
  grid-column: 8 / span 4;
  width: 368px;
  max-width: 100%;
  aspect-ratio: 368 / 552;
  overflow: hidden;
}
.hero-visual img {
  width: 120%;
  max-width: none;
  height: 100%;
  margin-left: .08%;
  object-fit: cover;
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* =========================================================
   DEMO
   ========================================================= */
.demo {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 31px 0 81px;
}
.demo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.demo-head {
  width: 100%;
  max-width: 768px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding-top: 1px;
}

.ribbon {
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 432px;
  height: 94px;
  padding: 13px 21px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9999px;
  box-shadow: var(--shadow-md);
}
.ribbon span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 20px;
  letter-spacing: .7px;
  color: var(--ink-900);
}
.ribbon img { width: 12px; height: 12px; animation: nudge 1.6s ease-in-out infinite; }
.ribbon img + span + img { animation-delay: .3s; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(3px); }
}

/* Video card */
.video-card {
  width: 100%;
  max-width: 1024px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding: 25px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}
.video-frame {
  --s: 1; /* play button scale */
  position: relative;
  width: 100%;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05);
  isolation: isolate;
}
.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.video-frame:hover .video-thumb { transform: scale(1.02); }
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0);
  transition: background-color .3s ease;
  pointer-events: none;
}
.video-frame:hover::after { background: rgba(15, 23, 42, .06); }

/* Center play button */
.play-btn {
  position: relative;
  z-index: 3;
  width: 96px;
  height: 96px;
  padding: 0 20px 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(225, 29, 72, .9);
  box-shadow: var(--shadow-2xl);
  transform: scale(var(--s));
  transition: transform .3s var(--ease), opacity .3s ease, background-color .2s;
}
.play-btn img { width: 23.16px; height: 29.46px; }
.play-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(225, 29, 72, .55);
  z-index: -1;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.play-btn:hover,
.video-frame:hover .play-btn { background: var(--brand-red); transform: scale(calc(var(--s) * 1.06)); }

/* YouTube player (injected on click) */
.video-frame iframe {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-frame.is-loaded { cursor: default; }
.video-frame.is-loaded > :not(iframe) { visibility: hidden; }
.video-frame.is-loaded::after { display: none; }

/* Scan With Your Webcam */
.btn-scan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--brand-red-strong);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(225, 29, 72, .3), 0 4px 6px -4px rgba(225, 29, 72, .3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn-scan img { width: 16.67px; height: 18.33px; }
.btn-scan:hover {
  background: #c40a19;
  transform: translateY(-2px);
  box-shadow: 0 14px 22px -6px rgba(225, 29, 72, .45), 0 6px 10px -6px rgba(225, 29, 72, .35);
}
.btn-scan:active { transform: translateY(0); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: 96px var(--gutter) 97px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.contact-inner {
  width: 100%;
  max-width: 1089px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-title { flex: 1 1 0; text-align: left; }
.contact-cards {
  flex: 0 1 564px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.contact-card + .contact-card { min-height: 99px; }
.contact-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-xl);
}
.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon--blue { background: var(--blue-100); }
.contact-icon--rose { background: var(--rose-100); }
.contact-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.contact-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--ink-500);
}
.contact-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 28px;
  color: var(--ink-900);
  overflow-wrap: anywhere;
}

/* =========================================================
   INTRODUCED BY
   ========================================================= */
.authority {
  padding: 40px 0 41px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.authority-inner {
  max-width: calc(768px + var(--gutter) * 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding-top: 1px;
}
.authority-title { font-size: 24px; font-weight: 500; }
.lk-logo-link {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  transition: opacity .2s ease, transform .3s var(--ease);
}
.lk-logo-link:hover { opacity: .85; transform: translateY(-2px); }
.lk-logo { width: 538px; aspect-ratio: 538 / 89; height: auto; object-fit: cover; }
.authority-text {
  padding-top: 3px;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-600);
  text-align: center;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 49px 0 48px;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.copyright {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-500);
  text-align: center;
}
.copyright strong { font-weight: 700; color: var(--ink-700); }
.copyright a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.copyright a:hover strong { color: var(--brand-blue); }
.copyright a:hover { text-decoration-color: var(--brand-blue); }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
  .br-lg { display: none; }
}

/* Tablet & mobile — stacked layout from Figma mobile frame (26:267) */
@media (max-width: 991px) {
  :root { --gutter: 16px; --header-h: 112px; }

  .header-inner {
    height: 111px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
  .nav { flex: none; gap: 18px; }
  .nav-link { font-size: 12px; line-height: 18px; padding: 7px 0 5px; }

  .hero { padding-top: 28px; }
  .hero-glow--top { left: calc(50% + .5px); }
  .hero-grid { display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .hero-copy { width: 100%; }
  .logo-crop--hero { width: 300px; margin-block: 3px; }
  .hero-title { font-size: 34px; line-height: 42px; }
  .hero-text { font-size: 16px; line-height: 29.25px; max-width: none; }
  .hero-visual { width: 287px; aspect-ratio: 287 / 360; }
  .hero-visual img { width: 100.35%; margin-left: -.17%; }

  .demo { padding: 40px 0 41px; }
  .demo-inner { gap: 24px; }
  .section-title { font-size: 27px; line-height: 34px; }
  .ribbon { width: 320px; height: 48px; padding: 13px; gap: 12px; margin-top: 3px; }
  .ribbon span { font-size: 15px; }

  .video-card { padding: 9px; gap: 12px; }
  .btn-scan { font-size: 12px; font-weight: 600; }
  .video-frame { border-radius: 16px; }
  .play-btn { --s: .6; }

  .contact { padding: 40px var(--gutter) 41px; }
  .contact-inner { flex-direction: column; align-items: stretch; gap: 24px; }
  .contact-cards { flex: none; }
  .contact-card, .contact-card + .contact-card { min-height: 88px; }
  .contact-text { gap: 0; }
  .contact-label { font-size: 12px; line-height: 17px; }
  .contact-value { font-size: 21px; line-height: 29px; }

  .authority-title { font-size: 27px; font-weight: var(--fw-extrabold); }
  .lk-logo { width: 345px; aspect-ratio: 345 / 57.36; }
  .authority-text { font-size: 15px; line-height: 24px; }

  .site-footer { padding: 25px 0 24px; }
  .footer-inner { padding-inline: 24px; }
  .logo-crop--footer { width: 230px; }
  .copyright { font-size: 10px; line-height: 18px; }
}

/* Tablet: give the stacked layout a bit more room */
@media (min-width: 600px) and (max-width: 991px) {
  :root { --gutter: 32px; }
  .hero-copy { max-width: 640px; }
  .hero-title { font-size: 44px; line-height: 54px; }
  .hero-visual { width: 340px; }
  .play-btn { --s: .8; }
  .contact-inner { max-width: 640px; }
  .contact-cards .contact-card { width: 100%; }
  .lk-logo { width: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
