/* ==========================================================================
   Lensora — showcase website styles
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Base & typography
   3.  Layout helpers
   4.  Buttons & links
   5.  Navigation
   6.  Device mockup
   7.  Hero
   8.  Section patterns (eyebrow, headers, cards, bento)
   9.  Feature showcase (tabs + phone)
   10. Steps / timeline
   11. Video player
   12. Gallery
   13. Stats & counters
   14. Split feature rows (features page)
   15. Privacy controls
   16. FAQ (accordion)
   17. Forms
   18. Call to action & footer
   18b. Legal pages (privacy, terms)
   19. Scroll-reveal animations
   20. Responsive adjustments
   21. Reduced motion
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
:root {
  /* Brand palette — mirrors frontend/src/utils/Constants.tsx */
  --lens-bg: #060b13;
  --lens-bg-2: #0a111c;
  --lens-surface: #111a27;
  --lens-surface-2: #1c293a;
  --lens-primary: #b0e0e6;
  --lens-primary-strong: #cfeef2;
  --lens-violet: #7b68ee;
  --lens-accent: #e0ffff;
  --lens-border: #2d3e55;
  --lens-line: rgba(255, 255, 255, 0.08);
  --lens-line-strong: rgba(255, 255, 255, 0.14);
  --lens-glass: rgba(255, 255, 255, 0.04);
  --lens-glass-strong: rgba(255, 255, 255, 0.07);

  --lens-text: #ffffff;
  --lens-text-2: #cbd5e1;
  --lens-muted: #94a3b8; /* 7.4:1 on --lens-bg */
  --lens-heart: #ff5a5a;
  --lens-success: #10b981;

  --lens-gradient: linear-gradient(120deg, #e0ffff 0%, #b0e0e6 45%, #a99cf5 100%);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-script: "Tangerine", "Snell Roundhand", cursive;

  /* Spacing & shape */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --section-y: clamp(80px, 11vw, 150px);
  --nav-h: 76px;

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-device: 0 50px 100px -20px rgba(0, 0, 0, 0.7), 0 30px 60px -30px rgba(123, 104, 238, 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.8s;

  color-scheme: dark;
}

/* 2. Base & typography ----------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background-color: var(--lens-bg);
  color: var(--lens-text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--lens-text);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.display-title {
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  font-weight: 650;
}

.section-title {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* Editorial serif accent used inside headings */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--lens-primary-strong);
}

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

.lead-text {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: var(--lens-muted);
  line-height: 1.65;
}

.text-muted-lens { color: var(--lens-muted) !important; }
.text-primary-lens { color: var(--lens-primary) !important; }

p { color: var(--lens-text-2); }

a {
  color: var(--lens-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
a:hover { color: var(--lens-accent); }

img, video { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(176, 224, 230, 0.3); color: #fff; }

/* Visible, consistent keyboard focus */
:focus-visible {
  outline: 2px solid var(--lens-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--lens-primary);
  color: #071019;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #071019; }

/* 3. Layout helpers -------------------------------------------------------- */
.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: calc(var(--section-y) * 0.6); }

.container-lens {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section-header { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-header.text-center { margin-inline: auto; }
.section-header .lead-text { margin-top: 20px; }

.divider-glow {
  height: 1px;
  border: 0;
  margin: 0;
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(176, 224, 230, 0.35), transparent);
}

/* Ambient background glows reused by several sections */
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
}
.glow-violet { background: radial-gradient(circle, rgba(123, 104, 238, 0.45), transparent 70%); }
.glow-cyan { background: radial-gradient(circle, rgba(176, 224, 230, 0.28), transparent 70%); }

.z-1 { position: relative; z-index: 1; }

/* Decorative glows may extend past the viewport; clip them without creating
   a scroll container (keeps position: sticky and smooth scrolling intact). */
main { overflow-x: clip; }

/* 4. Buttons & links ------------------------------------------------------- */
.btn-lens,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-lens {
  background: var(--lens-primary);
  color: #071019;
  box-shadow: 0 10px 30px -10px rgba(176, 224, 230, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-lens:hover,
.btn-lens:focus-visible {
  background: var(--lens-accent);
  color: #071019;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(176, 224, 230, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-ghost {
  background: var(--lens-glass);
  color: var(--lens-text);
  border-color: var(--lens-line-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: #fff;
  border-color: rgba(176, 224, 230, 0.5);
  background: rgba(176, 224, 230, 0.08);
  transform: translateY(-2px);
}

.btn-sm-lens { min-height: 42px; padding: 0 18px; font-size: 0.925rem; }

.btn-lens .bi,
.btn-ghost .bi { font-size: 1.1em; transition: transform 0.35s var(--ease-out); }
.btn-lens:hover .bi-arrow-right,
.btn-ghost:hover .bi-arrow-right,
.btn-ghost:hover .bi-play-fill { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow .bi { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover .bi { transform: translateX(4px); }

/* App store buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 22px 8px 18px;
  border-radius: 16px;
  background: #fff;
  color: #071019;
  text-decoration: none;
  border: 1px solid #fff;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  position: relative;
}
.store-btn .bi { font-size: 1.8rem; line-height: 1; }
.store-btn small { display: block; font-size: 0.72rem; line-height: 1.1; opacity: 0.75; font-weight: 500; }
.store-btn strong { display: block; font-size: 1.12rem; line-height: 1.15; letter-spacing: -0.01em; }
.store-btn:hover,
.store-btn:focus-visible { color: #071019; transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(255, 255, 255, 0.5); }

/* Shown when a store URL has not been configured yet (see js/main.js) */
.store-btn.is-pending {
  background: var(--lens-glass);
  color: var(--lens-text);
  border-color: var(--lens-line-strong);
  cursor: default;
}
.store-btn.is-pending:hover { transform: none; box-shadow: none; }
.store-btn.is-pending small { opacity: 0.8; }

/* 5. Navigation ------------------------------------------------------------ */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, border-color 0.4s ease, height 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  height: 64px;
  background: rgba(6, 11, 19, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--lens-line);
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand-word {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0.04em;
  transform: translateY(2px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 999px;
  background: var(--lens-glass);
  border: 1px solid var(--lens-line);
}
.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--lens-muted);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #071019; background: var(--lens-primary); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--lens-line-strong);
  background: var(--lens-glass);
  color: #fff;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1025;
  padding: calc(var(--nav-h) + 24px) 24px 32px;
  background: rgba(6, 11, 19, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a.mobile-link {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--lens-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s ease, color 0.2s;
}
.mobile-menu.is-open a.mobile-link { transform: none; opacity: 1; }
.mobile-menu a.mobile-link[aria-current="page"] { color: var(--lens-primary); }
.mobile-menu .btn-lens { margin-top: auto; }
body.menu-open { overflow: hidden; }

/* 6. Device mockup --------------------------------------------------------- */
.device-bazzles {
    padding: 11px;
    box-shadow: var(--shadow-device), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, #2f3a50 0%, #121a29 40%, #0b111c 100%);
    width: fit-content;
    border-radius: 54px;
    margin-inline: auto;
}
.device {
  position: relative;
  width: 100%;
  max-width: 330px;
  aspect-ratio: 390 / 844;
  margin-inline: auto;
  /* padding: 11px; */
  /* border-radius: 54px; */
  /* background: linear-gradient(145deg, #2f3a50 0%, #121a29 40%, #0b111c 100%); */
  /* box-shadow: var(--shadow-device), inset 0 0 0 1px rgba(255, 255, 255, 0.08); */
}
.device::before { /* side buttons */
  content: "";
  position: absolute;
  right: -3px;
  top: 22%;
  width: 3px;
  height: 70px;
  border-radius: 0 3px 3px 0;
  background: #222c3e;
}
.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  background: #000;
  isolation: isolate;
}
.device-screen > img,
.device-screen > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.device-island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 31%;
  height: 26px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.device-bazzles-sm {
    padding: 9px;
    box-shadow: var(--shadow-device), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, #2f3a50 0%, #121a29 40%, #0b111c 100%);
    width: fit-content;
    border-radius: 44px;
    margin-inline: auto;
}
.device-sm > .device-screen > img {
  object-fit: unset;
}
.device-sm { 
  max-width: 270px; 
  padding: 9px; 
  border-radius: 44px; 

    background: linear-gradient(145deg, #2f3a50 0%, #121a29 40%, #0b111c 100%);
}
.device-sm .device-screen { border-radius: 36px; }
.device-sm .device-island { 
  height: 21px; top: 19px; 
}

/* Cross-fading screen stack used by the interactive showcase */
.screen-stack { position: absolute; inset: 0; }
.screen-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.8s var(--ease-out);
}
.screen-stack img.is-active { opacity: 1; transform: none; }

/* 7. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 90px));
  padding-bottom: clamp(70px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before { /* faint dot grid that fades out */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero .glow-violet { width: 620px; height: 620px; right: -120px; top: 60px; }
.hero .glow-cyan { width: 520px; height: 520px; left: -180px; top: -120px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--lens-glass);
  border: 1px solid var(--lens-line-strong);
  color: var(--lens-text-2);
  font-size: 0.875rem;
  font-weight: 500;
}
.eyebrow .tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(176, 224, 230, 0.14);
  color: var(--lens-primary);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lens-primary);
  margin-bottom: 20px;
}
.kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
  color: var(--lens-muted);
  font-size: 0.94rem;
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .bi { color: var(--lens-primary); }

.hero-visual { position: relative; padding: 20px 0; }
.hero-visual .device { max-width: 340px; }

/* Floating glass chips around the hero phone */
.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(17, 26, 39, 0.72);
  border: 1px solid var(--lens-line-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  font-size: 0.86rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  text-align: left;
  animation: float 7s ease-in-out infinite;
}
.float-chip small { display: block; color: var(--lens-muted); font-size: 0.74rem; font-weight: 500; }
.float-chip .chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex: none;
}
.float-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.chip-a { top: 14%; left: -2%; }
.chip-b { top: 46%; right: -4%; animation-delay: -2.5s; }
.chip-c { bottom: 12%; left: 2%; animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Marquee of capabilities under the hero */
.ticker {
  border-block: 1px solid var(--lens-line);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lens-muted);
  font-weight: 500;
  white-space: nowrap;
}
.ticker-track .bi { color: var(--lens-primary); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 110px));
  padding-bottom: clamp(56px, 7vw, 90px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .glow-violet { width: 560px; height: 560px; right: -160px; top: -80px; }
.page-hero .glow-cyan { width: 460px; height: 460px; left: -160px; bottom: -200px; }
.page-hero .lead-text { max-width: 640px; }

/* 8. Section patterns ------------------------------------------------------ */
.glass-card {
  position: relative;
  height: 100%;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--lens-line);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease, background-color 0.4s ease;
}
.glass-card:hover { transform: translateY(-4px); border-color: rgba(176, 224, 230, 0.28); }
.glass-card h3 { font-size: 1.3rem; margin: 22px 0 10px; letter-spacing: -0.02em; }
.glass-card p { color: var(--lens-muted); margin: 0; font-size: 1rem; }

.icon-tile {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.3rem;
  color: var(--lens-primary);
  background: rgba(176, 224, 230, 0.1);
  border: 1px solid rgba(176, 224, 230, 0.2);
}
.icon-tile.violet { color: #c4baff; background: rgba(123, 104, 238, 0.14); border-color: rgba(123, 104, 238, 0.3); }
.icon-tile.rose { color: #ff9a9a; background: rgba(255, 90, 90, 0.12); border-color: rgba(255, 90, 90, 0.28); }
.icon-tile.green { color: #6ee7b7; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.28); }

/* Problem / solution comparison */
.contrast-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); height: 100%; }
.contrast-card.before { background: rgba(255, 255, 255, 0.02); border: 1px dashed var(--lens-line-strong); }
.contrast-card.after {
  background: linear-gradient(160deg, rgba(176, 224, 230, 0.1), rgba(123, 104, 238, 0.08));
  border: 1px solid rgba(176, 224, 230, 0.28);
}
.contrast-card h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--lens-text-2); }
.check-list .bi { flex: none; margin-top: 2px; font-size: 1.1rem; }
.before .check-list .bi { color: var(--lens-muted); }
.after .check-list .bi { color: var(--lens-primary); }

/* Bento grid on the home page */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 20px;
}
.bento .glass-card { display: flex; flex-direction: column; }
.bento-wide { grid-column: span 4; }
.bento-narrow { grid-column: span 2; }
.bento-third { grid-column: span 2; }
.bento-half { grid-column: span 3; }
.bento .bento-media {
  margin-top: auto;
  padding-top: 26px;
}
.bento-shot {
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--lens-line-strong);
  border-bottom: 0;
  overflow: hidden;
  margin-bottom: calc(-1 * clamp(24px, 3vw, 34px));
  max-height: 290px;
}
.bento-shot img { width: 100%; height: auto; transition: transform 0.9s var(--ease-out); }
.glass-card:hover .bento-shot img { transform: translateY(-10px); }

.ratio-demo { display: flex; align-items: flex-end; gap: 14px; }
.ratio-demo span {
  border: 1.5px solid var(--lens-primary);
  border-radius: 8px;
  background: rgba(176, 224, 230, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lens-primary);
}
.ratio-demo .r-1 { width: 74px; height: 74px; }
.ratio-demo .r-169 { width: 112px; height: 63px; }
.ratio-demo .r-916 { width: 50px; height: 89px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #9cc3ff;
  font-size: 0.86rem;
  font-weight: 500;
}

.toggle-demo { display: grid; gap: 10px; }
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--lens-line);
  font-size: 0.94rem;
  color: var(--lens-text-2);
}
.toggle-row .state { font-size: 0.78rem; color: var(--lens-muted); margin-left: auto; }
.switch-ui {
  width: 42px;
  height: 25px;
  border-radius: 999px;
  background: #334155;
  position: relative;
  flex: none;
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: left 0.35s var(--ease-out), background-color 0.35s;
}
.switch-ui.on { background: var(--lens-primary); }
.switch-ui.on::after { left: 20px; background: #071019; }

/* Persona cards */
.persona-card { text-align: left; }
.persona-card .persona-photo {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  margin: -6px -6px 22px;
}
.persona-card .persona-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.persona-card:hover .persona-photo img { transform: scale(1.05); }

/* 9. Feature showcase (tabs + phone) --------------------------------------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.showcase-tabs { display: grid; gap: 10px; }
.showcase-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.showcase-tab:hover { background: rgba(255, 255, 255, 0.025); }
.showcase-tab .icon-tile { width: 44px; height: 44px; font-size: 1.15rem; transition: all 0.3s; }
.showcase-tab .tab-title { display: block; font-size: 1.12rem; font-weight: 650; margin: 2px 0 4px; letter-spacing: -0.015em; color: #fff; }
.showcase-tab .tab-desc {
  display: block;
  margin: 0;
  color: var(--lens-muted);
  font-size: 0.97rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s ease;
}
.showcase-tab[aria-selected="true"] {
  background: linear-gradient(120deg, rgba(176, 224, 230, 0.08), rgba(123, 104, 238, 0.06));
  border-color: rgba(176, 224, 230, 0.22);
}
.showcase-tab[aria-selected="true"] .tab-desc { max-height: 140px; opacity: 1; }
.showcase-tab[aria-selected="true"] .icon-tile { background: var(--lens-primary); color: #071019; border-color: var(--lens-primary); }
/* Auto-advance progress bar */
.showcase-tab .progress-line {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 2px;
  background: var(--lens-primary);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}
.showcase-tab[aria-selected="true"] .progress-line { opacity: 0.7; }
.showcase.is-autoplaying .showcase-tab[aria-selected="true"] .progress-line {
  animation: progress var(--showcase-interval, 6s) linear forwards;
}
@keyframes progress { to { transform: scaleX(1); } }

.showcase-visual { position: relative; }
.showcase-visual .glow { width: 420px; height: 420px; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* 10. Steps / timeline ----------------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step-card { position: relative; padding-top: 70px; }
.step-card .step-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lens-bg);
  border: 1px solid rgba(176, 224, 230, 0.4);
  color: var(--lens-primary);
  font-weight: 600;
  font-size: 1rem;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--lens-bg);
}
.steps::before { /* connecting line */
  content: "";
  position: absolute;
  top: 26px;
  left: 26px;
  right: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(176, 224, 230, 0.5), rgba(123, 104, 238, 0.4), transparent);
}
.step-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step-card p { color: var(--lens-muted); margin: 0; }

/* Vertical journey (How it works page) */
.journey { position: relative; }
.journey-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px);
  position: relative;
}
.journey-step + .journey-step { border-top: 1px solid var(--lens-line); }
.journey-step:nth-child(even) .journey-media { order: -1; }
.journey-index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(176, 224, 230, 0.55);
  display: block;
  margin-bottom: 16px;
}
.journey-step h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.035em; margin-bottom: 18px; }
.journey-step .check-list { margin-top: 26px; }
.journey-step .check-list .bi { color: var(--lens-primary); }
.journey-media { position: relative; display: flex; justify-content: center; }
.journey-media .glow { width: 380px; height: 380px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Mini UI card used in place of a screenshot (sign-up step) */
.ui-card {
  width: 100%;
  max-width: 400px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 26, 39, 0.95), rgba(10, 17, 28, 0.95));
  border: 1px solid var(--lens-line-strong);
  box-shadow: var(--shadow-device);
  position: relative;
  z-index: 1;
}
.ui-card .ui-label { font-size: 0.8rem; color: var(--lens-muted); margin-bottom: 6px; display: block; }
.ui-card .ui-input {
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--lens-line);
  color: var(--lens-text-2);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.otp-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 6px 0 20px; }
.otp-row span {
  aspect-ratio: 1 / 1.15;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--lens-line);
  font-size: 1.3rem;
  font-weight: 600;
}
.otp-row span.filled { border-color: rgba(176, 224, 230, 0.6); background: rgba(176, 224, 230, 0.08); }
.otp-row span.caret::after { content: ""; width: 2px; height: 22px; background: var(--lens-primary); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 11. Video player --------------------------------------------------------- */
.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--lens-line-strong);
  background: #050a12;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02);
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(6, 11, 19, 0.45), rgba(6, 11, 19, 0.1));
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.4s ease;
}
.video-play .play-icon {
  width: clamp(72px, 9vw, 96px);
  height: clamp(72px, 9vw, 96px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
  position: relative;
}
.video-play .play-icon::before { /* soft pulse ring */
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(176, 224, 230, 0.4);
  animation: pulse 2.6s var(--ease-out) infinite;
}
.video-play .play-icon .bi { margin-left: 5px; }
.video-play:hover .play-icon,
.video-play:focus-visible .play-icon { transform: scale(1.08); background: var(--lens-primary); color: #071019; }
.video-play .play-label {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--lens-text-2);
  white-space: nowrap;
}
.video-frame.is-playing .video-play { opacity: 0; pointer-events: none; }
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

.video-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 26px; color: var(--lens-muted); font-size: 0.94rem; }
.video-meta span { display: inline-flex; align-items: center; gap: 8px; }
.video-meta .bi { color: var(--lens-primary); }

/* 12. Gallery -------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 19vw, 250px);
  grid-auto-flow: dense;
  gap: clamp(10px, 1.4vw, 18px);
}
.gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--lens-surface);
}
.gallery figure.tall { grid-row: span 2; }
.gallery figure.wide { grid-column: span 2; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 0.6s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(6, 11, 19, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
  color: var(--lens-text-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}
.gallery figcaption .bi { color: var(--lens-heart); }
.gallery figure:hover figcaption,
.gallery figure:focus-within figcaption { opacity: 1; transform: none; }
.gallery-note { margin-top: 18px; font-size: 0.85rem; color: var(--lens-muted); text-align: center; }

/* 13. Stats & counters ----------------------------------------------------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-lg);
  border: 1px solid var(--lens-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
.stat { padding: clamp(28px, 4vw, 44px) clamp(18px, 3vw, 32px); }
.stat + .stat { border-left: 1px solid var(--lens-line); }
.stat-value {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 12px; color: var(--lens-muted); font-size: 0.95rem; }

/* 14. Split feature rows (features page) ----------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}
.feature-row.reverse .feature-media { order: -1; }
.feature-row + .feature-row { margin-top: clamp(90px, 12vw, 160px); }
.feature-row h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.04em; margin-bottom: 20px; }
.feature-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 34px; }
.feature-point h3 { font-size: 1rem; margin: 12px 0 6px; letter-spacing: -0.01em; }
.feature-point p { color: var(--lens-muted); margin: 0; font-size: 0.95rem; line-height: 1.6; }
.feature-point .bi { font-size: 1.25rem; color: var(--lens-primary); }

.feature-media { position: relative; display: flex; justify-content: center; gap: 20px; }
.feature-media .glow { width: 460px; height: 460px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.feature-media .device + .device { margin-top: 60px; }
.feature-media .device-bazzles-sm + .device-bazzles-sm { margin-top: 60px; }

/* Jump nav on the features page */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}
.jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--lens-line-strong);
  background: var(--lens-glass);
  color: var(--lens-text-2);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}
.jump-nav a:hover { color: #071019; background: var(--lens-primary); border-color: var(--lens-primary); }

/* 15. Privacy controls ----------------------------------------------------- */
.control-card {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--lens-line);
  height: 100%;
  transition: border-color 0.3s ease, transform 0.5s var(--ease-out);
}
.control-card:hover { border-color: rgba(176, 224, 230, 0.3); transform: translateY(-3px); }
.control-card .control-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.control-card h3 { font-size: 1.08rem; margin: 0; letter-spacing: -0.01em; }
.control-card p { margin: 0; color: var(--lens-muted); font-size: 0.96rem; }
.control-card .where { margin-top: 16px; font-size: 0.82rem; color: var(--lens-muted); display: flex; align-items: center; gap: 6px; }

/* Interactive privacy simulator */
.sim {
  border-radius: var(--radius-lg);
  border: 1px solid var(--lens-line-strong);
  background: linear-gradient(160deg, rgba(17, 26, 39, 0.9), rgba(6, 11, 19, 0.9));
  overflow: hidden;
}
.sim-controls { padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--lens-line); }
.sim-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--lens-line);
}
.sim-switch:last-of-type { border-bottom: 0; }
.sim-switch label { font-weight: 500; cursor: pointer; }
.sim-switch .desc { display: block; font-size: 0.85rem; color: var(--lens-muted); font-weight: 400; }

/* Accessible toggle switch built on a native checkbox */
.lens-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: #334155;
  position: relative;
  cursor: pointer;
  flex: none;
  transition: background-color 0.3s ease;
  margin: 0;
}
.lens-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: transform 0.35s var(--ease-out), background-color 0.3s ease;
}
.lens-switch:checked { background: var(--lens-primary); }
.lens-switch:checked::after { transform: translateX(20px); background: #071019; }

.sim-preview { padding: clamp(24px, 3vw, 36px); display: flex; align-items: center; justify-content: center; }
.sim-post {
  width: 100%;
  max-width: 340px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--lens-line);
}
.sim-post .sim-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; font-weight: 600; font-size: 0.92rem; }
.sim-post .sim-head img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.sim-post .sim-head .lock { margin-left: auto; color: var(--lens-primary); font-size: 0.8rem; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; transition: opacity 0.3s; }
.sim-post .sim-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 1; position: relative; }
.sim-post .sim-photo img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.5s ease; }
.sim-post .sim-photo .private-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background: rgba(6, 11, 19, 0.55);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.sim-post .sim-photo .private-veil .bi { font-size: 1.8rem; display: block; margin-bottom: 8px; color: var(--lens-primary); }
.sim-post .sim-actions { display: flex; align-items: center; gap: 16px; padding: 12px 4px 6px; font-size: 1.25rem; }
.sim-post .sim-actions small { font-size: 0.85rem; margin-left: 5px; font-weight: 500; transition: opacity 0.3s; }
.sim-post .sim-actions .liked { color: var(--lens-heart); }
.sim-post .sim-actions .is-disabled { color: #475569; }
.sim-post .sim-note { font-size: 0.82rem; color: var(--lens-muted); padding: 0 4px 4px; min-height: 1.4em; }
.sim[data-private="true"] .private-veil { opacity: 1; }
.sim[data-private="true"] .sim-photo img { filter: blur(14px) brightness(0.7); }
.sim[data-private="false"] .lock { opacity: 0; }

/* 16. FAQ ------------------------------------------------------------------ */
.faq .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--lens-line);
  border-radius: 0 !important;
}
.faq .accordion-button {
  background: transparent;
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  padding: 26px 0;
  box-shadow: none;
  gap: 16px;
}
.faq .accordion-button::after {
  /* replace Bootstrap's chevron with a plus/minus that fits the dark theme */
  background-image: none;
  content: "\F64D"; /* bi-plus-lg */
  font-family: "bootstrap-icons";
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--lens-line-strong);
  transition: transform 0.35s var(--ease-out), background-color 0.3s, color 0.3s;
  color: var(--lens-primary);
  flex: none;
}
.faq .accordion-button:not(.collapsed) { color: var(--lens-primary-strong); }
.faq .accordion-button:not(.collapsed)::after { transform: rotate(45deg); background: var(--lens-primary); color: #071019; border-color: var(--lens-primary); }
.faq .accordion-button:focus-visible { outline: 2px solid var(--lens-primary); outline-offset: 4px; }
.faq .accordion-body { padding: 0 56px 28px 0; color: var(--lens-muted); }

/* 17. Forms ---------------------------------------------------------------- */
.form-card {
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--lens-line-strong);
}
.form-label { font-size: 0.9rem; font-weight: 500; color: var(--lens-text-2); margin-bottom: 8px; }
.form-label .req { color: var(--lens-primary); }
.form-control,
.form-select {
  min-height: 52px;
  border-radius: 14px;
  background-color: rgba(6, 11, 19, 0.6);
  border: 1px solid var(--lens-border);
  color: #fff;
  font-size: 1rem;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control::placeholder { color: #7a8aa0; }
.form-control:focus,
.form-select:focus {
  background-color: rgba(6, 11, 19, 0.8);
  color: #fff;
  border-color: var(--lens-primary);
  box-shadow: 0 0 0 4px rgba(176, 224, 230, 0.16);
}
.form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b0e0e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-select option { background: var(--lens-surface); color: #fff; }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-control.is-invalid,
.was-validated .form-control:invalid,
.form-select.is-invalid { border-color: #ff7b7b; background-image: none; }
.invalid-feedback { color: #ff9a9a; font-size: 0.86rem; }
.invalid-feedback::before { content: "\F333"; font-family: "bootstrap-icons"; margin-right: 6px; } /* bi-exclamation-circle */
.form-check-input { background-color: rgba(6, 11, 19, 0.6); border-color: var(--lens-border); width: 1.2em; height: 1.2em; margin-top: 0.2em; }
.form-check-input:checked { background-color: var(--lens-primary); border-color: var(--lens-primary); --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23071019' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(176, 224, 230, 0.16); border-color: var(--lens-primary); }
.form-check-label { color: var(--lens-muted); font-size: 0.92rem; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
}
.form-status.is-visible { display: flex; }
.form-status.success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.35); color: #a7f3d0; }
.form-status .bi { font-size: 1.2rem; margin-top: 1px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--lens-line);
  background: rgba(255, 255, 255, 0.02);
}
.contact-list h3 { font-size: 1rem; margin: 2px 0 4px; }
.contact-list p { margin: 0; font-size: 0.94rem; color: var(--lens-muted); }

/* 18. Call to action & footer ---------------------------------------------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(28px, 4vw, 44px);
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(123, 104, 238, 0.35), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(176, 224, 230, 0.22), transparent 60%),
    linear-gradient(160deg, #101a2b, #0a111c);
  border: 1px solid var(--lens-line-strong);
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%);
  mask-image: linear-gradient(90deg, #000, transparent 60%);
}
.cta-panel .cta-phones {
  position: absolute;
  right: clamp(-60px, -2vw, 0px);
  bottom: -40%;
  display: flex;
  gap: 18px;
  transform: rotate(-8deg);
  pointer-events: none;
}
.cta-panel .cta-phones .device { width: 220px; max-width: none; }
.cta-panel .cta-phones .device:nth-child(2) { margin-top: -70px; }
.cta-copy { max-width: 560px; position: relative; z-index: 1; }

.site-footer {
  padding: clamp(60px, 8vw, 100px) 0 36px;
  border-top: 1px solid var(--lens-line);
  margin-top: var(--section-y);
}
.site-footer .footer-tagline { color: var(--lens-muted); max-width: 320px; margin-top: 14px; font-size: 0.97rem; }
.site-footer h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--lens-muted);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--lens-text-2); text-decoration: none; font-size: 0.97rem; }
.footer-links a:hover { color: var(--lens-primary); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--lens-line);
  color: var(--lens-muted);
  font-size: 0.88rem;
}
.footer-bottom a { color: var(--lens-muted); }
.footer-bottom a:hover { color: var(--lens-primary); }
.footer-wordmark {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 18rem);
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 56px 0 -20px;
  background: linear-gradient(180deg, rgba(176, 224, 230, 0.2), rgba(176, 224, 230, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1020;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(17, 26, 39, 0.85);
  border: 1px solid var(--lens-line-strong);
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out), visibility 0.3s, background-color 0.2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--lens-primary); color: #071019; }

/* 18b. Legal pages (privacy, terms) --------------------------------------- */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  color: var(--lens-muted);
  font-size: 0.92rem;
}
.legal-meta .bi { color: var(--lens-primary); margin-right: 6px; }

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 22px 24px;
  border: 1px solid var(--lens-line);
  border-radius: var(--radius);
  background: var(--lens-glass);
}
.legal-toc h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--lens-muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.legal-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; font-size: 0.92rem; line-height: 1.4; }
.legal-toc a { color: var(--lens-text-2); text-decoration: none; display: flex; gap: 10px; }
.legal-toc a::before { content: counter(toc) "."; color: var(--lens-muted); min-width: 1.4em; }
.legal-toc a:hover { color: var(--lens-primary); }

.legal-summary {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--lens-line-strong);
  border-radius: var(--radius-lg);
  background: var(--lens-glass-strong);
  margin-bottom: 56px;
}
.legal-summary h2 { font-size: 1.25rem; margin-bottom: 16px; }
.legal-summary ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-summary li { color: var(--lens-text-2); }

.legal-body { max-width: 760px; min-width: 0; }
.legal-body section + section { margin-top: 52px; padding-top: 44px; border-top: 1px solid var(--lens-line); }
.legal-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 18px; }
.legal-body h3 { font-size: 1.08rem; margin: 28px 0 10px; color: var(--lens-text); }
.legal-body p, .legal-body li { color: var(--lens-text-2); }
.legal-body ul { padding-left: 1.2em; display: grid; gap: 8px; margin-bottom: 1rem; }
.legal-body strong { color: var(--lens-text); font-weight: 600; }

.legal-table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--lens-line); border-radius: var(--radius-sm); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 520px; }
.legal-table th, .legal-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--lens-line); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { color: var(--lens-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--lens-glass); }
.legal-table td { color: var(--lens-text-2); }

.legal-callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(176, 224, 230, 0.25);
  background: rgba(176, 224, 230, 0.06);
  margin: 20px 0;
}
.legal-callout .bi { color: var(--lens-primary); font-size: 1.2rem; line-height: 1.5; }
.legal-callout p { margin: 0; }

.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 6px 20px; }

@media (max-width: 991.98px) {
  .legal-toc { position: static; }
}

/* 19. Scroll-reveal animations --------------------------------------------- */
/* Elements start hidden only when JS is running (html.js), so content is
   always visible if scripts fail or are disabled. */
.js [data-reveal] {
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), clip-path 1.2s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.js [data-reveal="up"] { transform: translateY(36px); }
.js [data-reveal="scale"] { transform: scale(0.94); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="image"] { opacity: 1; clip-path: inset(12% 12% 12% 12% round 28px); transform: scale(1.04); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-reveal="image"].is-revealed { clip-path: inset(0 0 0 0 round 0); }

/* 20. Responsive adjustments ----------------------------------------------- */
@media (max-width: 1199.98px) {
  .chip-b { right: -2%; }
  .cta-panel .cta-phones { opacity: 0.4; }
}

@media (max-width: 991.98px) {
  :root { --nav-h: 68px; }
  .nav-links,
  .nav-cta .btn-lens { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero { text-align: center; }
  .hero .hero-actions,
  .hero .hero-proof { justify-content: center; }
  .hero .lead-text { margin-inline: auto; }
  .hero-visual { margin-top: 24px; }
  .chip-a { left: 4%; }
  .chip-b { right: 2%; }
  .chip-c { left: 8%; }

  .bento-wide,
  .bento-narrow,
  .bento-half { grid-column: span 6; }
  .bento-third { grid-column: span 3; }

  .showcase { grid-template-columns: 1fr; }
  .showcase-visual { order: -1; }
  .showcase-visual .device { max-width: 280px; }

  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 26px; bottom: 26px; left: 26px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(176, 224, 230, 0.5), rgba(123, 104, 238, 0.3), transparent); }
  .step-card { padding-top: 0; padding-left: 80px; }

  .journey-step,
  .feature-row { grid-template-columns: 1fr; }
  .journey-step:nth-child(even) .journey-media,
  .feature-row.reverse .feature-media { order: 0; }
  .journey-media,
  .feature-media { margin-top: 12px; }

  .gallery { grid-template-columns: repeat(3, 1fr); }

  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--lens-line); }

  .sim-controls { border-right: 0; border-bottom: 1px solid var(--lens-line); }

  .cta-panel .cta-phones { display: none; }
}

@media (max-width: 767.98px) {
  body { font-size: 1rem; }
  .bento-third { grid-column: span 6; }
  .feature-points { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery figure.wide { grid-column: span 2; }
  .gallery figcaption { opacity: 1; transform: none; }
  .feature-media .device { max-width: 240px; }
  .feature-media .device + .device { display: none; }
  .faq .accordion-body { padding-right: 0; }
  .footer-wordmark { margin-bottom: -10px; }
}

@media (max-width: 575.98px) {
  /* Bootstrap's g-5 gutters are wider than the mobile page gutter */
  .container-lens .row { --bs-gutter-x: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-lens,
  .hero-actions .btn-ghost { width: 100%; }
  .hero-visual .device { max-width: 260px; }
  .float-chip { font-size: 0.78rem; padding: 8px 10px; gap: 8px; }
  .float-chip .chip-icon,
  .float-chip img { width: 28px; height: 28px; }
  .chip-a { left: 0; top: 10%; }
  .chip-b { right: 0; }
  .chip-c { left: 0; bottom: 8%; }
  .stats-band { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--lens-line); }
  .ratio-demo { gap: 10px; }
  .store-btn { width: 100%; justify-content: center; }
  .video-play .play-label { display: none; }
  .back-to-top { right: 14px; bottom: 14px; }
  .mobile-menu a.mobile-link { font-size: 1.6rem; }
}

@media (max-width: 400px) {
  .float-chip.chip-b { display: none; }
  .otp-row { gap: 6px; }
}

/* 21. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker-track { animation: none; width: auto; justify-content: center; }
  .ticker-track > div { flex-wrap: wrap; justify-content: center; gap: 12px 32px !important; padding-inline: 16px; }
  .ticker-dup { display: none !important; }
}
