/* ============================================
   Fisora — premium landing page
   ============================================ */

/* Self-hosted variable fonts — no requests to fonts.googleapis.com /
   fonts.gstatic.com, no IP transfer to Google. Saves us from the DSGVO
   grey area around third-party font loading.
   Inter:  rsms/inter v4.1 (full unicode, all scripts incl. cyrillic)
   Geist:  vercel/geist 1.3.1 (latin + extended) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/InterVariable.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/GeistVariable.woff2') format('woff2-variations');
}

:root {
  --red: #ff1039;
  --red-soft: #ff3955;
  --red-glow: rgba(255, 16, 57, 0.45);
  --red-glow-strong: rgba(255, 16, 57, 0.75);
  --black: #0d0d0d;
  --black-2: #141416;
  --black-3: #1a1a1d;
  --white: #f1f2f2;
  --white-dim: rgba(241, 242, 242, 0.65);
  --white-faint: rgba(241, 242, 242, 0.4);
  --border: rgba(241, 242, 242, 0.08);
  --border-strong: rgba(241, 242, 242, 0.14);
  --glass: rgba(20, 20, 22, 0.55);
  --glass-strong: rgba(20, 20, 22, 0.75);
  --shadow-1: 0 10px 40px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 30px 80px rgba(0, 0, 0, 0.7);
  --shadow-red: 0 10px 60px rgba(255, 16, 57, 0.35);

  --font-display: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* ===== Osmo scaling system =====
     body font-size scales linearly with the container width.
     Anything sized in em scales with it.
  */
  --size-unit: 16;
  --size-container-ideal: 1440;
  --size-container-min: 992px;
  --size-container-max: 1920px;
  --size-container: clamp(var(--size-container-min), 100vw, var(--size-container-max));
  --size-font: calc(var(--size-container) / (var(--size-container-ideal) / var(--size-unit)));
}

@media screen and (max-width: 991px) {
  :root {
    --size-container-ideal: 834;
    --size-container-min: 768px;
    --size-container-max: 991px;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --size-container-ideal: 550;
    --size-container-min: 480px;
    --size-container-max: 767px;
  }
}

@media screen and (max-width: 479px) {
  :root {
    --size-container-ideal: 390;
    --size-container-min: 320px;
    --size-container-max: 479px;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--black);    /* page fallback under the global canvas */
}

/* ============================================
   Global WebGL backdrop — Three.js shader visible across all dark sections
   ============================================ */
.bg-webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.55;
  /* fade the shader from solid bottom to nearly-transparent top
     so the upper portion of every viewport stays clean & dark */
  -webkit-mask-image: linear-gradient(to top, #000 10%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.15) 100%);
  mask-image:         linear-gradient(to top, #000 10%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.15) 100%);
  animation: bg-webgl-drift 10s ease-in-out infinite;
  will-change: transform;
  transition: opacity 0.4s var(--ease-out);
}

/* Mobile: shader only renders/visible while hero is in view (JS sets the class) */
.bg-webgl.is-out-of-hero { opacity: 0; }

@keyframes bg-webgl-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(-3%, -2%, 0) scale(1.06); }
  66%      { transform: translate3d(3%, -1%, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-webgl { animation: none; }
}

/* ============================================
   Global bottom red glow — viewport-fixed so it never stretches with section size.
   Replaces per-section ::after gradients that stacked & flooded the bg.
   ============================================ */
.bg-bottom-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 55% at 50% 112%, rgba(255,16,57,0.22), transparent 65%);
}

body {
  font-family: var(--font-body);
  background: transparent;          /* lets the global webgl canvas show through */
  color: var(--white);
  font-size: var(--size-font);     /* scales with viewport */
  line-height: 1.5;
  overflow-x: clip;                /* clip, not hidden — keeps sticky working */
  max-width: 100vw;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.011em;
  -webkit-text-size-adjust: 100%;  /* lock font scale on iOS rotate */
  text-size-adjust: 100%;
  touch-action: pan-y;             /* allow vertical scroll only — kills horizontal swipe-zoom */
}

html {
  overflow-x: clip;
  max-width: 100vw;
  background: var(--black);   /* fallback bg in case the WebGL canvas is disabled (mobile) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variation-settings: "wght" 540;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
ul { list-style: none; }

::selection {
  background: var(--red);
  color: var(--white);
}

/* ============ SCROLLBAR — hidden on the page (progress bar replaces it),
   styled inside the contact modal where a real scrollbar is useful ============ */

/* Hide the page scrollbar — the scroll progress bar at the bottom takes over */
html  { scrollbar-width: none; }
body  { scrollbar-width: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Keep a real, styled scrollbar inside the contact modal panel + cookie
   settings modal — same red-gradient look so the two popups feel consistent. */
.contact-modal-panel,
.cookie-modal-panel {
  scrollbar-color: rgba(255,16,57,0.55) rgba(20,20,22,0.3);
  scrollbar-width: thin;
}
.contact-modal-panel::-webkit-scrollbar,
.cookie-modal-panel::-webkit-scrollbar { width: 8px; }
.contact-modal-panel::-webkit-scrollbar-track,
.cookie-modal-panel::-webkit-scrollbar-track {
  background: rgba(20,20,22,0.4);
}
.contact-modal-panel::-webkit-scrollbar-thumb,
.cookie-modal-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255,16,57,0.7), rgba(200,0,43,0.7));
  border-radius: 100px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.contact-modal-panel::-webkit-scrollbar-thumb:hover,
.cookie-modal-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255,16,57,1), rgba(200,0,43,1));
  background-clip: padding-box;
}

/* ============ SCROLL PROGRESS BAR — fixed at the bottom edge ============ */
.progress-bar-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 95;
  background: rgba(241,242,242,0.06);
  cursor: pointer;
  transition: background 0.2s var(--ease-out);
}

.progress-bar-wrap::before {
  /* invisible hit-area so the 4px bar is easier to click */
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -10px; bottom: 0;
}

.progress-bar-wrap:hover {
  background: rgba(241,242,242,0.12);
}

.progress-bar {
  width: 100%;
  height: 100%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255,16,57,0.65);
  transform-origin: 0%;
  transform: scaleX(0);
  will-change: transform;
}

/* Hide scrollbar but keep functionality during Lenis smooth scroll */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

.container {
  width: 100%;
  max-width: var(--size-container);
  margin: 0 auto;
  padding: 0 2em;
}

.container.medium {
  max-width: calc(var(--size-container) * 0.85);
}

.container.small {
  max-width: calc(var(--size-container) * 0.7);
}

/* ============ LOADING SCREEN (app-style) ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(255,16,57,0.16), transparent 65%),
    var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-out), visibility 0s linear 0.7s;
}

.loader.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}

.loader-logo {
  height: 44px;
  width: auto;
  display: block;
  animation: loaderPulse 1.8s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% {
    opacity: 0.9;
    filter: drop-shadow(0 0 0 rgba(255,16,57,0)) drop-shadow(0 0 0 rgba(255,16,57,0));
  }
  50% {
    opacity: 1;
    filter:
      drop-shadow(0 0 14px rgba(255,16,57,0.65))
      drop-shadow(0 0 50px rgba(255,16,57,0.4));
  }
}

.loader-bar {
  width: 220px;
  height: 2px;
  background: rgba(241,242,242,0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar span {
  display: block;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--red) 35%, var(--red-soft) 50%, var(--red) 65%, transparent);
  box-shadow: 0 0 14px rgba(255,16,57,0.6);
  animation: loaderBar 1.4s ease-in-out infinite;
}

@keyframes loaderBar {
  0%   { transform: translateX(-180%); }
  100% { transform: translateX(420%); }
}

.loader-status {
  font-family: var(--font-display);
  font-size: 0.7em;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin: 0;
  animation: loaderStatusPulse 1.8s ease-in-out infinite;
}

@keyframes loaderStatusPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.9; }
}

@media (max-width: 768px) {
  .loader-logo { height: 36px; }
  .loader-bar { width: 180px; }
}

/* ============ NOISE OVERLAY ============ */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: auto;
  z-index: 9999;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("assets/noise.gif");
  background-size: auto;          /* native size — tiny grain dots */
  background-position: 0 0;
  background-repeat: repeat;
}

/* ============ CURSOR GLOW ============ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: blur(40px);
  mix-blend-mode: screen;
}

body:hover .cursor-glow { opacity: 0.4; }
@media (max-width: 768px) { .cursor-glow { display: none; } }

/* ============ HERO WEBGL CANVAS ============ */
.hero-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 1.75em;
  right: 1.75em;
  width: 3.2em;
  height: 3.2em;
  border-radius: 50%;
  background: rgba(20,20,22,0.65);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out),
    background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(255,16,57,0.16);
  border-color: rgba(255,16,57,0.55);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.35),
    0 0 22px rgba(255,16,57,0.35);
}

.back-to-top svg {
  width: 1.2em;
  height: 1.2em;
  display: block;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.2em;
    right: 1.2em;
    width: 2.8em;
    height: 2.8em;
  }
}

/* ============ SCROLL ORB (pocketchange style) ============
   Container is viewport-fixed (inset:0) + overflow:hidden so it never bleeds
   past the viewport. Peak scale is small + no screen-blend so it stays a
   subtle glow at viewport center, not a full-page red wash. */
.scroll-orb {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 50;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

/* JS toggles this when a light-background section is in the viewport */
.scroll-orb.is-hidden-over-light { opacity: 0; }

.scroll-orb span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ff1039 0%, #c8002b 35%, rgba(200,0,43,0.4) 60%, transparent 75%);
  filter: blur(30px);
  transform: translate(-50%, -50%) scale(0);
  will-change: transform, opacity;
}

/* ============================================
   NAVIGATION — only visible during hero (onepager)
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: transparent;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.nav-inner {
  max-width: var(--size-container);
  margin: 0 auto;
  padding: 0 2em;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2em;
}

.nav-logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.nav-logo-svg {
  height: 38px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .nav-logo-svg { height: 32px; }
}

.nav-links {
  display: flex;
  gap: 4px;
  justify-self: center;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white-dim);
  letter-spacing: -0.005em;
  transition: color 0.25s var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  bottom: 4px;
  height: 1px;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.nav-link-secondary {
  font-size: 14px;
  font-weight: 500;
  color: var(--white-dim);
  padding: 10px 8px;
  transition: color 0.25s;
}

.nav-link-secondary:hover { color: var(--white); }

/* ============================================
   Language switcher — compact dropdown in the nav (desktop) that toggles
   open on click. Clicking an option reloads with ?lang=xx (also stored in
   localStorage). Hidden on mobile — see the bottom override block.
   ============================================ */
.lang-switcher {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white-dim);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.lang-current:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
}
.lang-current svg {
  transition: transform 0.2s var(--ease-out);
}
.lang-current[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  background: rgba(20, 20, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
  z-index: 100;
}
.lang-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--white-dim);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.lang-dropdown button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.lang-dropdown button.is-active {
  background: rgba(255, 16, 57, 0.12);
  color: var(--red-soft);
}
.lang-dropdown button em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--white-faint);
}
.lang-dropdown button.is-active em {
  color: var(--red-soft);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ============ MOBILE NAV OVERLAY ============ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 105;
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,16,57,0.25), transparent 60%),
              linear-gradient(180deg, rgba(13,13,13,0.97), rgba(13,13,13,0.99));
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path 0.8s var(--ease-out);
}

.mobile-nav.is-open .mobile-nav-bg {
  clip-path: circle(150% at calc(100% - 44px) 44px);
}

.mobile-nav-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 28px 40px;
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}

/* Close (X) button inside the mobile nav popup */
.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease 0.3s, transform 0.4s var(--ease-out) 0.3s, background 0.25s;
}

.mobile-nav-close:hover {
  background: rgba(255,16,57,0.18);
  border-color: rgba(255,16,57,0.4);
}

.mobile-nav-close svg {
  width: 20px;
  height: 20px;
  display: block;
}

.mobile-nav.is-open .mobile-nav-close {
  opacity: 1;
  transform: scale(1);
}

.mobile-nav.is-open .mobile-nav-inner { opacity: 1; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-link {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.04em;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease, color 0.25s;
  overflow: hidden;
}

.mobile-nav.is-open .mobile-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav.is-open .mobile-link:nth-child(1) { transition-delay: 0.25s; }
.mobile-nav.is-open .mobile-link:nth-child(2) { transition-delay: 0.32s; }
.mobile-nav.is-open .mobile-link:nth-child(3) { transition-delay: 0.39s; }
.mobile-nav.is-open .mobile-link:nth-child(4) { transition-delay: 0.46s; }
.mobile-nav.is-open .mobile-link:nth-child(5) { transition-delay: 0.53s; }

.mobile-link em {
  font-size: 12px;
  font-weight: 400;
  color: var(--white-faint);
  font-style: normal;
  letter-spacing: 0.1em;
}

.mobile-link span {
  display: inline-block;
  transition: transform 0.4s var(--ease-out), color 0.3s;
  background: linear-gradient(90deg, var(--white) 0%, var(--white) 50%, var(--red) 50%, var(--red) 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mobile-link:hover span,
.mobile-link:active span {
  background-position: -100% 0%;
}

.mobile-link::after {
  content: "→";
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translate(-20px, -50%);
  opacity: 0;
  color: var(--red);
  font-size: 28px;
  transition: all 0.3s var(--ease-out);
}

.mobile-link:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-meta {
  font-size: 12px;
  color: var(--white-faint);
  text-align: center;
}

/* Mobile-Lang-Switcher (zweite Instanz vor dem Burger): per default versteckt,
   nur auf max-768 sichtbar. Der Desktop-Switcher (in .nav-actions) wird auf
   Mobile via `.nav-actions { display: none }` (weiter unten) ohnehin verborgen. */
.lang-switcher--mobile { display: none; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: all 0.3s var(--ease-out);
  position: relative;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255,16,57,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  background: var(--red-soft);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255,16,57,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-primary:active { transform: translateY(0); }

.btn-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--red), #ff5577, var(--red));
  background-size: 200% 200%;
  z-index: -1;
  opacity: 0.5;
  filter: blur(12px);
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  padding: 14px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn-dark:hover {
  background: var(--black-2);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* ============================================
   HERO — cinematic, pocketchange-inspired
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 11em 0 0;          /* scales with body font-size */
  overflow: hidden;
  background: transparent;     /* global bg-webgl canvas shows through */
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.085) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center center;
  /* Bottom invisible, fade in around the middle, fully visible at top */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, transparent 62%, rgba(0,0,0,0.4) 80%, #000 100%);
  mask-image:         linear-gradient(to top, transparent 0%, transparent 62%, rgba(0,0,0,0.4) 80%, #000 100%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 110%, rgba(255,16,57,0.12), transparent 70%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.75;
  will-change: transform;
}

.hero-glow-1 {
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--red-glow-strong), transparent 60%);
  bottom: -400px;
  left: 50%;
  transform: translateX(-50%);
  animation: heroGlowMove 14s ease-in-out infinite;
}

.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,16,57,0.55), transparent 60%);
  top: 30%;
  right: -100px;
  animation: heroGlowMove2 11s ease-in-out infinite;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 50%, transparent 50%, var(--black) 100%);
  opacity: 0.5;
}

@keyframes heroGlowMove {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-45%, -60px) scale(1.08); }
}

@keyframes heroGlowMove2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 40px) scale(1.1); }
}

.hero-container {
  position: relative;
  z-index: 5;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 68.75em;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255,16,57,0.08);
  border: 1px solid rgba(255,16,57,0.25);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 80px);
  font-weight: 540;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  font-variation-settings: "wght" 540;
  color: var(--white);
  opacity: 1;
}

.hero-title .char {
  display: inline-block;
  --wght: 600;
  font-variation-settings: "wght" var(--wght);
  will-change: font-variation-settings;
}

.hero-title-red {
  font-style: normal;
  color: var(--red);
  /* drop-shadow follows the visible word shape, so it works cleanly even
     when the mobile rotating word lives inside an overflow:hidden wrapper.
     text-shadow would get clipped at the wrapper edge and look like a
     rectangular background tint. */
  filter:
    drop-shadow(0 0 14px rgba(255,16,57,0.75))
    drop-shadow(0 0 38px rgba(255,16,57,0.45));
}

/* Desktop / Mobile title variants */
.hero-title-d {
  display: inline;
  font-weight: 600;
  font-variation-settings: "wght" 600;   /* baseline before SplitText/JS kicks in */
}
.hero-title-m { display: none; }

@media (max-width: 768px) {
  .hero-title-d { display: none; }
  .hero-title-m { display: inline; }
}

/* Rotating-text styles (mobile hero) */
[data-rotating-words] {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}

.rotating-text__inner {
  display: inline-block;
  position: relative;
  height: 1em;                     /* matches a single line of the title */
  overflow: hidden;                /* clips outgoing words */
  vertical-align: top;
  line-height: 1;
}

.rotating-text__word {
  display: block;
  white-space: nowrap;
  position: absolute;
  top: 0;
  left: 0;
  line-height: 1;
}

.text-gradient-red {
  background: linear-gradient(135deg, #ff5577 0%, #ff1039 50%, #ff5577 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--white-dim);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.55;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  font-size: 13px;
  color: var(--white-faint);
  letter-spacing: 0.04em;
  margin-bottom: 60px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

/* ============ HERO CINEMATIC STAGE ============ */
.hero-stage {
  position: relative;
  max-width: 68.75em;
  margin: 1.25em auto 0;
  z-index: 5;
  opacity: 0;
  transform: translateY(60px);
}

/* 3D perspective hover (per Greensock community pattern) */
[data-3d-hover-target] {
  transform: perspective(50vw);
  transform-style: preserve-3d;
  will-change: transform;
}

[data-3d-hover-inner="layer-1"] { transform: translateZ(3vw); }
[data-3d-hover-inner="layer-2"] { transform: translateZ(5vw); }
[data-3d-hover-inner="layer-3"] { transform: translateZ(6vw); }
[data-3d-hover-inner="layer-4"] { transform: translateZ(8vw); }

.hero-stage-phone {
  position: relative;
  transform-style: preserve-3d;
}

.hero-stage-phone-main {
  margin: 0 auto;
  max-width: 760px;
  filter:
    drop-shadow(0 40px 60px rgba(0,0,0,0.55))
    drop-shadow(0 0 80px rgba(255,16,57,0.35));
}

.hero-stage-phone-main img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============ FLOATING CARDS ============ */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(20,20,22,0.85);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 6;
  animation: floatY 6s ease-in-out infinite;
}

.float-card-1 {
  top: 8%;
  right: 2%;
  animation-delay: 0s;
}

.float-card-2 {
  top: 42%;
  left: 0;
  animation-delay: -2s;
}

.float-card-3 {
  bottom: 12%;
  right: 4%;
  animation-delay: -4s;
}

.float-card-4 {
  top: 8%;
  left: 2%;
  animation-delay: -0.8s;
}

.float-card-5 {
  top: 42%;
  right: 0;
  animation-delay: -2.5s;
}

.float-card-6 {
  bottom: 12%;
  left: 4%;
  animation-delay: -3.2s;
}

.float-card-7 {
  top: 24%;
  right: -2%;
  animation-delay: -1.4s;
}

.float-card-8 {
  bottom: 28%;
  left: -2%;
  animation-delay: -4.6s;
}

.float-card-pulse {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}

.float-card-meta-sub {
  opacity: 0.55;
  font-size: 0.85em;
}

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

.float-card-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255,16,57,0.15);
  border: 1px solid rgba(255,16,57,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.float-card-icon svg { width: 16px; height: 16px; }

.float-card-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.float-card-meta {
  font-size: 11px;
  color: var(--white-faint);
  margin: 0;
}

/* ============ HERO MARQUEE ============ */
.hero-marquee {
  margin-top: 60px;
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 5;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--white-faint);
  letter-spacing: -0.025em;
}

.marquee-track span[aria-hidden="true"] {
  font-size: 8px;
  color: var(--red);
  transform: translateY(-2px);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================
   HORIZONTAL SCROLL — image sequence panel → features panel
   ============================================ */

.hor-scroll {
  position: relative;
  width: 100%;
  height: 500vh;
  background: transparent;        /* global bg-webgl shows through */
  z-index: 5;
}

.hor-scroll-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.hor-scroll-track {
  display: flex;
  width: 200vw;                  /* two 100vw panels side by side */
  height: 100vh;
  will-change: transform;
}

.hor-panel {
  flex: 0 0 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hor-panel-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hor-panel-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 2em;
  background: transparent;        /* global bg-webgl shows through */
}

.hor-features-inner {
  width: 100%;
  max-width: 80em;        /* match .thumbnail-grid / .pricing-grid */
  margin: 0 auto;
}

.hor-features-inner .section-head {
  margin: 0 auto 2.5em;
}

.hor-features-inner .features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

/* Inside the panel the cards should be a bit more compact so they fit in 100vh */
.hor-panel-2 .feature-card {
  padding: 1.6em 1.5em;
}

.hor-panel-2 .feature-card h3 { font-size: 1.1em; margin-bottom: 0.3em; }
.hor-panel-2 .feature-card p { font-size: 0.85em; line-height: 1.5; }
.hor-panel-2 .feature-icon {
  width: 2.6em;
  height: 2.6em;
  margin-bottom: 0.8em;
}
.hor-panel-2 .feature-icon svg { width: 1.2em; height: 1.2em; }

/* Legacy compatibility for old sticky-title-wrapper class (in case still referenced) */
.sticky-title-wrapper {
  background: linear-gradient(180deg, #0d0d0d 0%, #141416 100%);
  width: 100%;
  height: 350vh;
  position: relative;
  z-index: 5;
}

.sticky-title-container {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  padding-left: 1.5em;
  padding-right: 1.5em;
  display: flex;
  position: sticky;
  top: 0;
  overflow: hidden;
  isolation: isolate;
}

.seq-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.seq-canvas.is-ready {
  opacity: 1;
}

.seq-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* red bottom-up glow (hero-style) */
    radial-gradient(ellipse 60% 45% at 50% 110%, rgba(255,16,57,0.30), transparent 70%),
    /* strong outer vignette around the whole image */
    radial-gradient(ellipse 75% 65% at 50% 50%, transparent 40%, rgba(0,0,0,0.85) 100%),
    /* extra darkening at the corners */
    radial-gradient(circle at 0% 0%,   rgba(0,0,0,0.45), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(0,0,0,0.45), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(0,0,0,0.55), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(0,0,0,0.55), transparent 40%),
    /* subtle top/bottom edges */
    linear-gradient(180deg, rgba(13,13,13,0.3) 0%, transparent 30%, transparent 70%, rgba(13,13,13,0.4) 100%);
}

/* Red glow text used inside the sticky-title (works with SplitText char-by-char) */
.sticky-title-red {
  font-style: normal;
  color: var(--red);
  text-shadow:
    0 0 24px rgba(255,16,57,0.55),
    0 0 60px rgba(255,16,57,0.35);
}

/* ============================================
   Hero-style background pattern (grid + red bottom-up glow)
   Apply with: <section class="... dark-bg-style">
   ============================================ */
.dark-bg-style {
  position: relative;
  isolation: isolate;
}

.dark-bg-style::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 4.5em 4.5em;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 45%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 45%, #000 30%, transparent 85%);
  pointer-events: none;
}

.dark-bg-style::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 55% 45% at 50% 110%, rgba(255,16,57,0.16), transparent 70%);
  pointer-events: none;
}

/* Apply hero-style bg (grid + red glow) to the dark sections */
.hor-panel-2,
.how,
.devices-panel {
  position: relative;
  isolation: isolate;
}

.hor-panel-2::before,
.how::before,
.devices-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.085) 1px, transparent 1px);
  background-size: 4.5em 4.5em;
  /* Bottom invisible, fade in around middle, visible toward top */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, transparent 62%, rgba(0,0,0,0.4) 80%, #000 100%);
  mask-image:         linear-gradient(to top, transparent 0%, transparent 62%, rgba(0,0,0,0.4) 80%, #000 100%);
  pointer-events: none;
}

/* per-section red glows removed — replaced by .bg-bottom-glow (viewport-fixed)
   so multiple stacked dark sections don't flood the bg with overlapping reds. */

.sticky-title-inner {
  position: relative;
  z-index: 2;
}

.sticky-title-inner {
  text-align: center;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 60em;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  position: relative;
}

.sticky-title-el {
  font-family: var(--font-display);
  margin-top: 0;
  margin-bottom: 0;
  font-size: clamp(36px, 5.5vw, 90px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.sticky-title-el.is--stacked {
  visibility: hidden;
  position: absolute;
}

@media screen and (max-width: 767px) {
  .sticky-title-el { font-size: 38px; }
}

/* Utility: line-break only on mobile (e.g. "Then post it everywhere — in one click") */
.m-br { display: none; }
@media (max-width: 768px) {
  .m-br { display: inline; }
}

/* ============================================
   SECTIONS — generic
   ============================================ */

.section {
  padding: 6.25em 0;
  position: relative;
}

.section-head {
  max-width: 50em;
  margin: 0 auto 4em;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255,16,57,0.08);
  border: 1px solid rgba(255,16,57,0.2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.eyebrow-dark {
  background: rgba(13,13,13,0.08);
  border-color: rgba(13,13,13,0.15);
  color: var(--black);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-title-dark { color: var(--black); }

/* SplitText (data-highlight-text) wraps every char in its own inline-block
   div, which creates wrap opportunities BETWEEN chars inside a word — long
   words like the German "YouTube-Thumbnails," can break mid-word, leaving
   the trailing comma alone on a new line. Forcing nowrap on the WORD divs
   (direct children — also grandchildren when the heading contains <span>
   wrappers like FAQ) keeps each word's chars together; lines still break
   normally between words. */
[data-highlight-text] > div,
[data-highlight-text] > span > div {
  white-space: nowrap;
}

.section-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--white-dim);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FEATURES
   ============================================ */

.features {
  background: linear-gradient(180deg, #141416 0%, #0d0d0d 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20,20,22,0.7), rgba(20,20,22,0.4));
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,16,57,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(255,16,57,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 40px rgba(255,16,57,0.08);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,16,57,0.15), rgba(255,16,57,0.05));
  border: 1px solid rgba(255,16,57,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.feature-icon svg {
  width: 22px; height: 22px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.feature-glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,16,57,0.2), transparent 60%);
  top: -100px; right: -100px;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.feature-card:hover .feature-glow { opacity: 1; }

/* ============================================
   CIRCLE-REVEAL WHITE SECTION (pocketchange-style)
   the circle scales 0→100 as user scrolls in, revealing the white surface,
   then the content (phone in B&W, big title, signature) fades in
   ============================================ */

/* ---------- 1. Reveal transition zone (growing circle) ----------
   The previous section (.hor-scroll) has a sticky pin holding .hor-panel-2
   in view until its parent scrolls past. We START the reveal OVER that
   pinned content by giving .pc-reveal a strong negative margin-top so its
   own sticky inner activates WHILE .hor-scroll-pin is still pinned. The
   circle grows on top of panel-2 (z-index 6 > .hor-scroll's z-index 5),
   then .pc-section (z-index 6, later in DOM) takes over from the circle. */
.pc-reveal {
  position: relative;
  height: 180vh;
  background: transparent;
  z-index: 6;
  /* Slide ends at 70% (= T+350vh) and .hor-scroll-pin's CSS sticky un-pins
     at T+400vh. With margin-top: -130vh, .pc-reveal-inner's sticky activates
     at T+370vh → 20vh of static panel-2 reading time first, then the circle
     grows on top of stationary panel-2 (z-index 6 > 5) and reaches full
     before panel-2 un-pins. */
  margin-top: -130vh;
  /* Purely decorative — the sticky inner overlays panel-2 with z-index 6
     and would otherwise swallow pointer events from feature card hovers
     underneath. Let mouse traffic pass through to .hor-scroll. */
  pointer-events: none;
}

.pc-reveal-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140vmax;
  height: 140vmax;
  background: #e6e6e6;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  will-change: transform;
}

/* ---------- 2. White content section — natural flow, BIG image ----------
   z-index 6 (same as .pc-reveal, but later in DOM → wins on overlap)
   so the phone/title takes over the viewport seamlessly after the circle
   has filled — and so .hor-scroll (z 5, panel-2 still scrolling out
   underneath) stays hidden behind the white. */
.pc-section {
  position: relative;
  background: #e6e6e6;
  z-index: 6;
  /* No bottom padding — the .pc-signature-wrap already carries its own
     4em margin-bottom for breathing room before the next section. */
  padding: 2em 1.5em 0;
  /* .pc-section.top lands at T+500vh, so it starts entering viewport bottom
     at T+400vh — exactly when the circle reaches full white. Earlier than
     that and you see white below before the circle is complete. */
  margin-top: -50vh;
}

.pc-content {
  max-width: var(--size-container);
  margin: -10vh auto 0;          /* pull the content up so phone appears sooner */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Phone image — 70vw (user pre-cropped the asset so it fills naturally). */
.pc-phone {
  width: 70vw;
  aspect-ratio: 2000 / 1750;
  margin: 0 0 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

.pc-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.7) brightness(0.82);
}

/* .pc-title is now styled by the .section-title / .section-title-dark
   utility classes added in the HTML (same look as the thumbnail/pricing
   headings). Only layout-level overrides remain here. */
.pc-title {
  margin: 0 0 1.2em;
  /* Tighter measure so the headline wraps to ~4-5 lines like Pocketchange's
     reference layout. Description below stays narrower (see .pc-desc). */
  max-width: 22ch;
}

.pc-title span {
  display: block;
}

/* GSAP SplitText wraps words; set initial state for stagger */
.pc-title .word,
.pc-desc .word {
  display: inline-block;
  overflow: hidden;
}

.pc-title .word > *,
.pc-desc .word > * {
  display: inline-block;
}

.pc-desc {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.4;
  color: rgba(13,13,13,0.7);
  /* Intentionally narrower than the headline above — same hierarchy as
     the Pocketchange reference (wide statement → focused paragraph). */
  max-width: 42em;
  margin: 0 0 1.2em;
}

/* Store-style download buttons */
.pc-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 36px;
}

.pc-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--black);
  color: var(--white);
  transition: transform 0.3s var(--ease-out), background 0.3s, box-shadow 0.3s;
}

.pc-store-btn:hover {
  transform: translateY(-2px);
  background: #1c1c20;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.pc-store-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.pc-store-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.pc-store-btn em {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.pc-store-btn strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* "Our promise"-style mark above the heading — Fisora logo flanked by dividers.
   The mark spans the same width as the .thumbnail-grid / .pricing-grid blocks
   below (80em), so the side-rules end at the same gutter the other sections
   respect. */
.pc-promise-mark {
  display: flex;
  align-items: center;
  gap: 1.8em;
  width: 100%;
  max-width: 80em;
  margin: 0 auto 2.5em;
  padding: 0 1.5em;       /* matches the gutter pc-section already uses */
}

.pc-promise-line {
  flex: 1 1 0;
  height: 1px;
  background: rgba(13, 13, 13, 0.18);
}

.pc-promise-logo {
  flex: 0 0 auto;
  width: clamp(96px, 9vw, 150px);
  height: auto;
  display: block;
}

.pc-signature-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;             /* small breathing room between signature and Gary/Founder */
  margin: 2.2em 0 4em;    /* generous bottom margin so the next section doesn't crowd the cite */
}

/* Medium-sized signature so it reads as a hand-drawn focal point above the
   cite without overpowering the section. line-height: 0 still kills the
   inline-baseline gap under the SVG, but we no longer pull the cite up with
   a negative margin — that was making "Gary Founder" overlap the path. */
.pc-signature {
  width: min(36vw, 380px);
  min-width: 240px;
  line-height: 0;
}

.pc-signature svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* signature2.svg ships with its own inline style on each <path>:
   fill:none, stroke:#000, stroke-linecap:round, stroke-linejoin:round,
   stroke-width:5px. The JS overrides the stroke color to brand red and
   animates stroke-dashoffset on scroll — no CSS overrides needed here,
   they would just lose to the inline style anyway. */

.pc-cite {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin: 0;
}

.pc-cite strong {
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
}

@media (max-width: 768px) {
  .pc-section { min-height: 180vh; }
  .pc-content { gap: 28px; padding: 0 20px; }
  /* Phone gets bigger and overflows the container slightly so it dominates
     the mobile section. The horizontal overflow is clipped by the page's
     overflow-x: clip on html/body. */
  .pc-phone { max-width: 600px; width: 110vw; }
  .pc-title { font-size: 30px; max-width: 20ch; }
  .pc-desc { font-size: 14px; max-width: 100%; }

  /* Promise mark: lines extend to the container's max-width on mobile.
     Drop the inner 1.5em padding + tighten gap so the dividers actually
     reach the visual edge of the section's container instead of being
     pinched in by the inherited pc-section padding. */
  .pc-promise-mark {
    padding: 0;
    gap: 0.8em;
  }
}

/* ============================================
   (old) CFA — now unused, kept for reference (DEPRECATED)
   ============================================ */

.cfa-deprecated {
  position: relative;
  padding: 180px 0 160px;
  background: linear-gradient(180deg, #0d0d0d, #131316 50%, #0d0d0d);
  overflow: hidden;
  isolation: isolate;
}

.cfa-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180vmin;
  height: 180vmin;
  z-index: 0;
  pointer-events: none;
  animation: cfaCirclePulse 16s ease-in-out infinite;
}

.cfa-circle svg {
  width: 100%;
  height: 100%;
}

@keyframes cfaCirclePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

.cfa-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,16,57,0.28), transparent 60%);
  filter: blur(100px);
  top: 25%;
  right: -250px;
  z-index: 0;
  pointer-events: none;
}

.cfa-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.cfa-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  filter:
    drop-shadow(0 50px 100px rgba(0,0,0,0.8))
    drop-shadow(0 0 120px rgba(255,16,57,0.35));
  will-change: transform;
}

.cfa-image img {
  width: 100%;
  max-width: 720px;
  height: auto;
}

.cfa-text {
  max-width: 560px;
}

.cfa-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.4vw, 92px);
  font-weight: 540;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--white);
  margin: 22px 0 32px;
  font-variation-settings: "wght" 540;
}

.cfa-desc {
  font-size: 19px;
  line-height: 1.55;
  color: var(--white-dim);
  margin-bottom: 44px;
  max-width: 480px;
}

.cfa-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .cfa-grid { grid-template-columns: 1fr; gap: 60px; }
  .cfa-text { max-width: 100%; text-align: center; margin: 0 auto; }
  .cfa-desc { margin-left: auto; margin-right: auto; }
  .cfa-ctas { justify-content: center; }
  .cfa-image img { max-width: 360px; }
}

@media (max-width: 768px) {
  .cfa { padding: 80px 0; }
  .cfa-image img { max-width: 280px; }
}

/* ============================================
   SHOWCASE — vertical stack, HUGE device, cursor follow
   ============================================ */

/* (showcase section was removed — its styles below are now unused but kept
   in case the section gets re-introduced later.) */

.showcase-header {
  text-align: center;
  position: relative;
  z-index: 2;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 540;
  line-height: 1.1;
  letter-spacing: -0.035em;
  position: relative;
  min-height: 1.3em;
  margin: 14px 0 0;
  font-variation-settings: "wght" 540;
}

.showcase-title-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 20px);
  width: max-content;
  max-width: 90vw;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.showcase-title-line.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.showcase-device {
  position: relative;
  width: min(88vw, 1320px, calc((100vh - 260px) * 1.6));
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1a1d, #0d0d0d);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 70px 160px rgba(0,0,0,0.8),
    0 0 120px rgba(255,16,57,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 1;
}

.showcase-device::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,16,57,0.25),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s;
  mix-blend-mode: screen;
  z-index: 20;
}

.showcase-device.is-hovering::after {
  opacity: 1;
}

.showcase-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.showcase-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(20,20,22,0.55);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  min-width: 180px;
}

.showcase-tab:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(20,20,22,0.8);
}

.showcase-tab.is-active {
  border-color: rgba(255,16,57,0.4);
  background: rgba(255,16,57,0.08);
  box-shadow: 0 0 30px rgba(255,16,57,0.18);
}

.showcase-tab-num {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white-faint);
  transition: color 0.3s;
}

.showcase-tab.is-active .showcase-tab-num { color: var(--red); }

.showcase-tab-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.showcase-tab-desc {
  font-size: 11px;
  color: var(--white-dim);
  margin: 0;
}

.showcase-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-screen.is-active {
  opacity: 1;
  transform: scale(1);
}

.showcase-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* placeholder screens shown if image fails or is missing */
.screen-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,16,57,0.2), transparent 50%),
    linear-gradient(135deg, #1a1a1d, #0d0d0d);
}

.showcase-screen.placeholder .screen-placeholder { display: flex; }

.screen-placeholder-tag {
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255,16,57,0.15);
  border: 1px solid rgba(255,16,57,0.3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.screen-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  gap: 12px;
}

.screen-placeholder-grid > div {
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
}

.screen-placeholder-timeline {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 60px;
}

.screen-placeholder-timeline span {
  width: 60px;
  background: linear-gradient(180deg, var(--red), #aa0023);
  border-radius: 4px;
}

.screen-placeholder-timeline span:nth-child(1) { height: 30%; }
.screen-placeholder-timeline span:nth-child(2) { height: 80%; }
.screen-placeholder-timeline span:nth-child(3) { height: 50%; }
.screen-placeholder-timeline span:nth-child(4) { height: 95%; }

.screen-placeholder-caption {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.screen-placeholder-caption strong {
  color: var(--red);
  text-shadow: 0 0 24px var(--red-glow);
}

.screen-placeholder-ratios {
  display: flex;
  gap: 12px;
}

.screen-placeholder-ratios span {
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255,16,57,0.12);
  border: 1px solid rgba(255,16,57,0.3);
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 14px;
  font-weight: 600;
}

.showcase-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.showcase-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,16,57,0.4), transparent 60%);
  top: 8%; left: -150px;
  animation: orbFloat 9s ease-in-out infinite;
}

.showcase-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,16,57,0.35), transparent 60%);
  bottom: 5%; right: -150px;
  animation: orbFloat 11s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* ============================================
   DEVICES SECTION
   ============================================ */

.devices {
  position: relative;
  background: transparent;
  overflow: hidden;
}

.devices-glow {
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow), transparent 60%);
  filter: blur(100px);
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: heroGlowMove 14s ease-in-out infinite;
}

.devices-stage {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.device-laptop {
  position: absolute;
  width: 64%;
  max-width: 760px;
  left: 50%;
  top: 50%;
  transform: translate(-58%, -45%);
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.6)) drop-shadow(0 0 80px rgba(255,16,57,0.2));
}

.device-laptop img {
  width: 100%;
  height: auto;
}

.device-phone {
  position: absolute;
  width: 36%;
  max-width: 380px;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.7)) drop-shadow(0 0 60px rgba(255,16,57,0.3));
  z-index: 2;
}

.device-phone img {
  width: 100%;
  height: auto;
}

.device-phone-secondary {
  position: absolute;
  width: 22%;
  max-width: 240px;
  left: 6%;
  bottom: 4%;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.7));
  z-index: 1;
  opacity: 0.85;
}

.device-phone-secondary img {
  width: 100%;
  height: auto;
}

.device-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(20,20,22,0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  z-index: 3;
}

.device-tag-laptop {
  bottom: 8%;
  left: -2%;
  animation: floatY 6s ease-in-out infinite;
}

.device-tag-phone {
  top: 8%;
  right: -8%;
  animation: floatY 7s ease-in-out infinite 1s;
}

.tag-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 1024px) {
  .devices-stage { height: 560px; }
  .device-laptop { width: 70%; transform: translate(-58%, -50%); }
  .device-phone { right: 4%; width: 30%; }
  .device-phone-secondary { display: none; }
}

@media (max-width: 768px) {
  .devices-stage { height: 480px; }
  .device-laptop {
    width: 100%;
    max-width: none;
    left: 50%;
    transform: translate(-50%, -55%);
  }
  .device-phone {
    width: 42%;
    right: -4%;
    top: 65%;
  }
  .device-tag-laptop {
    bottom: 0;
    left: 4%;
    font-size: 10px;
    padding: 6px 10px;
  }
  .device-tag-phone {
    top: 24%;
    right: -10%;
    font-size: 10px;
    padding: 6px 10px;
  }
}

/* ============================================
   HANDS REVEAL — sticky section with horizontal-scrolling headline
   Two static hand images at the edges; a giant red headline slides
   across the viewport from off-screen-right to off-screen-left while
   the section is pinned.
   ============================================ */

.hands-reveal {
  position: relative;
  /* 320vh → ~220vh of sticky pin. ~0-28%: headline slide. ~28-37%: bg
     dissolves to transparent (red glow shows through). ~37-69%: .devices-hor
     scrolls up over the still-visible hands (its -100vh margin-top creates
     the overlap) and fully covers right as the pin releases — kept tight so
     there's no empty gap between the two sections. */
  height: 320vh;
  background: #e6e6e6;
  isolation: isolate;
}

.hands-reveal-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hand {
  position: absolute;
  max-width: 48%;
  height: auto;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.hand-left {
  top: 6%;
  left: 0;
  transform: translateX(-10%);
}

.hand-right {
  bottom: 6%;
  right: 0;
  transform: translateX(10%);
}

.hands-reveal-text {
  position: absolute;
  top: 50%;
  left: 0;
  translate: 0 -50%;          /* CSS individual property — won't fight GSAP transform */
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
  z-index: 2;
  filter:
    drop-shadow(0 0 18px rgba(255,16,57,0.5))
    drop-shadow(0 0 60px rgba(255,16,57,0.25));
  will-change: transform;
}

/* Tablet + mobile share the same "simple" hands-reveal layout — the
   .devices-hor 2-panel choreography doesn't fit in the tablet viewport,
   so we hide it (further down) and treat tablet like mobile here too. */
@media (max-width: 1024px) {
  /* Taller section (400vh vs 320vh desktop) so the headline slide has more
     scroll room — text moves slower per vh of scroll. */
  .hands-reveal { height: 400vh; }
  .hand        { max-width: 100%; }
  .hand-left   { top: 4%; transform: translateX(-12%); }
  .hand-right  { bottom: 4%; transform: translateX(12%); }
  .hands-reveal-text { font-size: 50vw; }
}

/* ============================================
   DEVICES — horizontal scroll panels (new layout)
   Two panels: 16:9→9:16 reframe, then AI highlight detection.
   Each shows a "before → after" pair of phone mockups with an arrow between.
   ============================================ */

/* height = sticky range for the 2-panel choreography (text fill → mockups → slide → repeat).
   margin-top: -100vh pulls the section up so it overlaps the last 100vh of the
   pinned .hands-reveal and visually "scrolls up over" it. With z-index 5 (from
   .hor-scroll) it renders above .hands-reveal (which sits at z-index auto). */
.devices-hor {
  height: 500vh;
  margin-top: -100vh;
}

.devices-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  padding: 4vh 0;
}

.devices-panel-inner {
  position: relative;          /* anchor for the absolute bg title */
  width: 100%;
  max-width: 90em;
  margin: 0 auto;
  padding: 0 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

/* Huge watermark heading sitting BEHIND the mockups.
   Brighter color so the scroll-driven fill effect is clearly visible.
   text-shadow gives the chars a soft glow — inherited by SplitText spans,
   overridden inside <em> for a red glow on the highlighted words. */
.devices-bg-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 100vw;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(60px, 11vw, 170px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: rgba(241,242,242,0.32);
  text-shadow:
    0 0 24px rgba(241,242,242,0.35),
    0 0 60px rgba(241,242,242,0.2);
  margin: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.devices-bg-title em {
  font-style: normal;
  color: rgba(255,16,57,0.55);
  text-shadow:
    0 0 24px rgba(255,16,57,0.75),
    0 0 60px rgba(255,16,57,0.45);
}

.devices-pair {
  position: relative;        /* stack above the watermark heading */
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5em;
  width: 100%;
  min-height: 0;
}

/* Wrapper carries the 3D-hover target attribute (data-3d-hover-target).
   Each mockup gets its own perspective + tilt, like the hero mockup. */
.devices-mockup-wrap {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.devices-mockup {
  max-height: 92vh;     /* nearly full viewport tall — heading sits behind */
  max-width: 48vw;
  width: auto;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 30px 50px rgba(0,0,0,0.55))
    drop-shadow(0 0 80px rgba(255,16,57,0.2));
}

.devices-arrow {
  flex: 0 0 auto;
  width: 4em;
  height: 4em;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,16,57,0.5), rgba(255,16,57,0.05) 70%),
    rgba(20,20,22,0.8);
  border: 1px solid rgba(255,16,57,0.55);
  box-shadow:
    0 8px 24px rgba(255,16,57,0.3),
    0 0 40px rgba(255,16,57,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  animation: devicesArrowPulse 2.4s ease-in-out infinite;
}

.devices-arrow svg {
  width: 50%;
  height: 50%;
  display: block;
}

@keyframes devicesArrowPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(255,16,57,0.3), 0 0 40px rgba(255,16,57,0.35); }
  50%      { box-shadow: 0 8px 30px rgba(255,16,57,0.45), 0 0 60px rgba(255,16,57,0.55); }
}

@media (max-width: 768px) {
  .devices-hor { height: 400vh; }

  /* Push the single mockup to the bottom; the heading sits anchored at the top.
     padding-bottom lifts the mockup a bit off the very edge of the viewport. */
  .devices-panel-inner {
    gap: 0;
    padding: 0 0 4vh;
    justify-content: flex-end;
  }

  /* Heading anchored flush at the top of each panel (nav is already hidden by here). */
  .devices-bg-title {
    top: 1em;
    transform: translate(-50%, 0);
    font-size: clamp(56px, 15vw, 130px);
  }

  /* Hide the FIRST mockup + the arrow — only the second/bottom mockup remains
     on mobile, and it goes larger to fill the space. */
  .devices-pair > .devices-mockup-wrap:first-child { display: none; }
  .devices-arrow { display: none; }

  .devices-pair {
    flex-direction: column;
    gap: 0;
  }

  /* The remaining mockup is now the hero of the panel. The source PNGs are
     1000×750 (landscape 4:3), so at max-width:100vw the displayed height was
     only ~37vh — way smaller than the 78vh max-height ever allowed.
     Force width via vw so the height grows proportionally. The horizontal
     overflow is clipped by .hor-scroll-pin's overflow:hidden, which keeps
     the centred phone visible while the background bleeds off the sides. */
  .devices-mockup {
    width: 133vw;
    height: auto;
    max-width: none;
    max-height: 90vh;
    filter: drop-shadow(0 16px 28px rgba(0,0,0,0.55));
  }

  /* No continuous 3D wobble on mobile — too expensive on GPU when combined
     with drop-shadow filters and scrubbed ScrollTriggers (was crashing). */
  .devices-mockup-wrap {
    animation: none;
    will-change: auto;
  }
}

@keyframes devicesMockupFloat {
  0%, 100% {
    transform: perspective(700px) rotateY(-4deg) rotateX(2deg) translateY(0);
  }
  50% {
    transform: perspective(700px) rotateY(4deg) rotateX(-2deg) translateY(-10px);
  }
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how {
  background: transparent;
}

.how-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 80em;        /* match .thumbnail-grid / .pricing-grid */
  margin: 0 auto;
}

.how-line {
  position: absolute;
  top: 60px;
  left: 10%;
  right: 10%;
  height: 100px;
  z-index: 0;
  pointer-events: none;
}

.how-line svg {
  width: 100%; height: 100%;
}

.how-step {
  position: relative;
  padding: 36px 28px;
  border-radius: 20px;
  background: rgba(20,20,22,0.5);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  text-align: center;
  z-index: 1;
  transition: all 0.4s var(--ease-out);
}

.how-step:hover {
  transform: translateY(-6px);
  border-color: rgba(255,16,57,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 40px rgba(255,16,57,0.08);
}

.how-step-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white-faint);
}

.how-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(255,16,57,0.15), rgba(255,16,57,0.05));
  border: 1px solid rgba(255,16,57,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.how-icon svg { width: 26px; height: 26px; }

.how-step h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.how-step p {
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.55;
}

/* ============================================
   THUMBNAIL AI (LIGHT SECTION)
   ============================================ */

.thumbnail-ai {
  background: #e6e6e6;
  color: var(--black);
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.thumbnail-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
  opacity: 0.04;
  pointer-events: none;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 80em;        /* match .pricing-grid + other content widths */
  margin: 0 auto;
}

.thumbnail-desc {
  font-size: 17px;
  color: rgba(13,13,13,0.65);
  line-height: 1.55;
  margin: 20px 0 28px;
}

.thumbnail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.thumbnail-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(13,13,13,0.85);
}

.check {
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.check::after {
  content: "";
  width: 8px; height: 4px;
  border: 2px solid var(--white);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(0, -1px);
}

.thumbnail-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card rotation + float live on the *individual* `rotate`/`translate` CSS
   properties so they don't fight with GSAP's matrix transforms (used for the
   momentum-hover effect). Browser composes the three layers automatically. */
.thumb-card {
  position: absolute;
  width: 280px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(13,13,13,0.1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  cursor: pointer;
  transition:
    box-shadow 0.45s var(--ease-out),
    border-color 0.3s;
  animation: thumbFloat 7s ease-in-out infinite;
  will-change: transform, translate;
}

.thumb-card:hover {
  z-index: 10;
  border-color: rgba(255,16,57,0.45);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.32),
    0 0 60px rgba(255,16,57,0.35);
}

.thumb-card-1 {
  top: 30px;
  left: 0;
  rotate: -6deg;
}

.thumb-card-2 {
  top: 100px;
  left: 50%;
  margin-left: -140px;
  rotate: 2deg;
  z-index: 2;
  animation-duration: 8s;
  animation-delay: 1s;
}

.thumb-card-3 {
  bottom: 30px;
  right: 0;
  rotate: 6deg;
  animation-duration: 9s;
  animation-delay: 2s;
}

@keyframes thumbFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

.thumb-style {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.thumb-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  position: relative;
}

.thumb-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
}

.thumb-art-1 { background-image: url("assets/thumbnail1.jpg"); }
.thumb-art-2 { background-image: url("assets/thumbnail2.jpg"); }
.thumb-art-3 { background-image: url("assets/thumbnail3.jpg"); }

.thumb-caption {
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
}

/* ============================================
   PRICING
   ============================================ */

.pricing {
  background: var(--black);
  position: relative;
  overflow: clip;     /* clip (not hidden) — keeps ScrollTrigger.pin / sticky working */
}

.pricing::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow), transparent 60%);
  filter: blur(80px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  pointer-events: none;
}

/* Three plans laid out in a grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25em;
  align-items: stretch;     /* slots fill row height = tallest card height */
  max-width: 80em;
  margin: 0 auto;
}

/* Each slot is a grid cell. It stretches to the row's height (= tallest card).
   The card inside is sticky relative to the slot, which gives the short cards
   a long sticky range — they stay at top while the tall Creator card scrolls. */
.pricing-slot {
  position: relative;
  display: block;
}

.pricing-card {
  position: sticky;
  top: 3em;
  padding: 2.4em 1.8em 2em;
  border-radius: 1.4em;
  background: rgba(20,20,22,0.55);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.pricing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(255,16,57,0.08), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Highlighted Pro card */
.pricing-card.is-popular {
  background:
    radial-gradient(ellipse at top, rgba(255,16,57,0.22), rgba(20,20,22,0.85) 60%),
    rgba(20,20,22,0.85);
  border-color: rgba(255,16,57,0.45);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.45),
    0 0 80px rgba(255,16,57,0.2),
    inset 0 1px 0 rgba(255,255,255,0.06);
  /* note: no transform here — would break position:sticky */
  margin-top: -0.5em;
}

.pricing-card.is-popular::after {
  background: radial-gradient(circle at top, rgba(255,16,57,0.28), transparent 60%);
}

/* "MOST POPULAR" badge */
.pricing-badge {
  position: absolute;
  top: -0.85em;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.45em 1em;
  border-radius: 100px;
  background: var(--red);
  color: var(--white);
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    0 6px 18px rgba(255,16,57,0.45),
    0 0 24px rgba(255,16,57,0.4);
  z-index: 2;
}

.pricing-plan-label {
  font-size: 0.72em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 1.6em;
  font-weight: 500;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  flex-wrap: wrap;
  margin: 0 0 0.5em;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.6em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-meta {
  font-size: 0.85em;
  color: var(--white-dim);
}

.pricing-tagline {
  font-size: 0.9em;
  color: var(--white-dim);
  line-height: 1.5;
  margin: 0 0 1.6em;
  min-height: 2.7em;
}

.pricing-card .btn-full {
  margin: 0 0 1.6em;
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 1.2em 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  font-size: 0.85em;
  line-height: 1.4;
  color: var(--white);
}

/* Disabled / not-included items shown greyed + strike-through */
.pricing-features li.is-disabled {
  opacity: 0.4;
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.25);
}

/* Cross icon for disabled features */
.cross {
  width: 1.1em;
  height: 1.1em;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  margin-top: 0.15em;
}
.cross::before,
.cross::after {
  content: "";
  position: absolute;
  width: 0.55em;
  height: 1.5px;
  background: rgba(255,255,255,0.4);
  border-radius: 1px;
}
.cross::before { transform: rotate(45deg); }
.cross::after  { transform: rotate(-45deg); }

.pricing-note {
  margin: 2.5em auto 0;
  max-width: 40em;
  font-size: 0.78em;
  color: var(--white-faint);
  text-align: center;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
    max-width: 32em;
  }
  .pricing-slot { display: block; }
  .pricing-card {
    position: static;
    top: auto;
  }
  .pricing-card.is-popular {
    margin-top: 0;
  }
}

/* ============================================
   FINAL CTA
   ============================================ */

/* CTA-Final hosts a sticky-pinned dual-layer wipe: light layer is the
   default; the dark layer sits on top with clip-path inset(0 0 0 100%) →
   hidden, and the scroll-triggered JS animates the left-inset to 0% so
   the dark surface reveals from right → left as the user scrolls. */
.cta-final {
  position: relative;
  height: 200vh;            /* gives 100vh of pinned scroll room for the wipe */
  background: transparent;
  overflow: clip;           /* clip (not hidden) so sticky inside still works */
}

.cta-final-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;         /* hides clip-path overshoot artefacts */
}

.cta-final-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5em 0;
}

.cta-final-layer .container,
.cta-final-layer .cta-content {
  position: relative;
  z-index: 1;
}

/* Drop the 6.25em bottom margin baked into the legacy .cta-content rule —
   the layer is now flex-centered, so an asymmetric bottom margin pushes
   the whole block up and leaves more empty space below than above. */
.cta-final-layer .cta-content {
  margin: 0 auto;
}

/* Initial visible state — light surface, dark type */
.cta-final-layer--light {
  background: #e6e6e6;
  color: var(--black);
  z-index: 1;
}
.cta-final-layer--light .eyebrow {
  color: rgba(13, 13, 13, 0.55);
  border-color: rgba(13, 13, 13, 0.18);
}
.cta-final-layer--light .cta-title { color: var(--black); }
.cta-final-layer--light .cta-sub   { color: rgba(13, 13, 13, 0.65); }

/* Ghost button needs a darker outline on light background */
.cta-final-layer--light .btn-ghost {
  color: var(--black);
  border-color: rgba(13, 13, 13, 0.2);
}
.cta-final-layer--light .btn-ghost:hover {
  color: var(--black);
  background: rgba(13, 13, 13, 0.06);
  border-color: rgba(13, 13, 13, 0.4);
}

/* Revealed state — black surface, white type. Red gradient and red primary
   button stay red because they don't depend on inherited color. */
.cta-final-layer--dark {
  background: var(--black);
  color: var(--white);
  z-index: 2;
  clip-path: inset(0 0 0 100%);
  -webkit-clip-path: inset(0 0 0 100%);
}

.cta-glow {
  position: absolute;
  width: 1000px; height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow-strong), transparent 60%);
  filter: blur(120px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  pointer-events: none;
}

.cta-glow-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,16,57,0.6), transparent 60%);
  top: 30%;
  left: 20%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  animation: heroGlowMove 14s ease-in-out infinite;
}

.cta-content {
  text-align: center;
  max-width: 50em;
  margin: 0 auto 6.25em;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 16px 0 24px;
}

.cta-sub {
  font-size: 18px;
  color: var(--white-dim);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SIGNATURE (unused right now — kept as styling for the inline signature block)
   ============================================ */

.signature-wrap {
  text-align: center;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.signature-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 16px;
}

.signature {
  max-width: 280px;
  margin: 0 auto 12px;
  height: auto;
}

.signature svg {
  width: 100%;
  height: auto;
  fill: var(--white);
}

.signature svg path {
  fill: var(--white);
}

.signature-name {
  font-size: 13px;
  color: var(--white-dim);
}

/* ============================================
   VIDEO SHOWCASE (parallax bg-video, text overlay left/right)
   Drop a real <source src="...mp4"> into the .video-showcase-media element
   when the footage is ready — for now the poster image shows.
   ============================================ */

.video-showcase {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--black);
}

.video-showcase + .video-showcase {
  border-top: 1px solid var(--border);
}

.video-showcase-media-wrap {
  position: absolute;
  inset: -25% 0;             /* extra room top/bottom so parallax translate doesn't reveal edges */
  z-index: 0;
  will-change: transform;
}

.video-showcase-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.08) brightness(0.5);
}

.video-showcase-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13,13,13,0.45) 0%, rgba(13,13,13,0.65) 60%, rgba(13,13,13,0.85) 100%),
    radial-gradient(ellipse 85% 65% at 50% 110%, rgba(255,16,57,0.22), transparent 65%);
}

.video-showcase .container {
  position: relative;
  z-index: 2;
  max-width: 80em;        /* match .thumbnail-grid / .pricing-grid */
}

.video-showcase-content {
  max-width: 30em;
  padding: 6em 0;
}

.video-showcase-content--left  { margin-right: auto; }
.video-showcase-content--right { margin-left: auto; }

.video-showcase-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0.6em 0 0.6em;
  color: var(--white);
}

.video-showcase-title em {
  font-style: normal;
  color: var(--red);
  filter:
    drop-shadow(0 0 14px rgba(255,16,57,0.75))
    drop-shadow(0 0 38px rgba(255,16,57,0.45));
}

.video-showcase-desc {
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--white-dim);
  line-height: 1.55;
  margin: 0 0 1.2em;
}

.video-showcase-meta {
  font-size: 0.8em;
  letter-spacing: 0.06em;
  color: var(--white-faint);
  text-transform: uppercase;
  margin: 0 0 1.8em;
}

.video-showcase-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .video-showcase { min-height: 80vh; }
  .video-showcase-content {
    max-width: none;
    padding: 5em 0;
    text-align: left;
  }
  .video-showcase-content--right { margin-left: 0; }
}

/* ============================================
   FAQ + CONTACT
   ============================================ */

.faq-contact {
  background: var(--black);
  position: relative;
  overflow: clip;
}

/* grid-template-areas lets the heading sit only in col 1 row 1,
   BOTH FAQ lists share row 2 (their first questions align perfectly),
   and the "Report a bug" button sits in its own row → on desktop under
   the left col, on mobile pushed to the very bottom after both FAQ lists. */
.faq-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "head  ."
    "left  right"
    "bug   .";
  column-gap: 4em;
  row-gap: 2.4em;
  max-width: 80em;
  margin: 0 auto;
}

.faq-head            { grid-area: head; }
.faq-list-wrap--left { grid-area: left;  display: flex; flex-direction: column; align-items: flex-start; }
.faq-list-wrap--right{ grid-area: right; }

.faq-head .eyebrow      { margin-bottom: 1em; }
.faq-head .section-title { margin: 0; }

.faq-list-wrap .faq-list { width: 100%; }

/* "Report a bug" button — own grid cell so we can re-place it on mobile */
.faq-bug-btn {
  grid-area: bug;
  justify-self: start;
}

.section-title--left { text-align: left; }

/* (eyebrow + heading spacing handled in .faq-head block above) */

/* ---------- FAQ accordion ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 1em;
  background: rgba(20,20,22,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s, background 0.3s;
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(255,16,57,0.4);
  background: rgba(20,20,22,0.7);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1.1em 1.3em;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 500;
  color: var(--white);
  list-style: none;
  user-select: none;
}

.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ''; }

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background 0.3s var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out);
}

.faq-icon::after { transform: rotate(90deg); }

.faq-item[open] .faq-icon {
  background: rgba(255,16,57,0.25);
}

.faq-item[open] .faq-icon::after { transform: rotate(0deg); }

.faq-a {
  padding: 0 1.3em 1.3em;
  color: var(--white-dim);
  font-size: 0.95em;
  line-height: 1.55;
}

.faq-a p { margin: 0; }

/* ---------- Contact form ---------- */
.contact-intro {
  color: var(--white-dim);
  font-size: 1em;
  line-height: 1.55;
  margin: 0 0 1.8em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.72em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-faint);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.9em 1em;
  border-radius: 12px;
  background: rgba(20,20,22,0.55);
  border: 1px solid var(--border-strong);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95em;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.form-input::placeholder { color: var(--white-faint); }

.form-input:focus {
  outline: none;
  border-color: rgba(255,16,57,0.55);
  background: rgba(20,20,22,0.85);
  box-shadow: 0 0 0 4px rgba(255,16,57,0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

/* (margin-top:auto handled in the faq-contact-grid block above) */

.contact-form-status {
  font-size: 0.85em;
  color: var(--white-dim);
  margin: 0.6em 0 0;
  min-height: 1.2em;
}

.contact-form-status.is-success { color: #4ec18a; }
.contact-form-status.is-error   { color: var(--red-soft); }

@media (max-width: 768px) {
  /* Tighter top spacing — the default .section mobile padding (80px) sits
     later in the cascade and was winning over the previous .faq-contact
     padding-top, so we use a compound selector (.section.faq-contact) to
     boost specificity and force the smaller top padding. */
  .section.faq-contact { padding-top: 1.5em; }
  .faq-contact-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "left"
      "right"
      "bug";       /* button drops to the very bottom after BOTH FAQ lists */
    row-gap: 1.4em;
  }
}

/* ============================================
   CONTACT MODAL (popup triggered by [data-open-contact])
   ============================================ */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em 1em;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.35s var(--ease-out),
    visibility 0s linear 0.35s;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity 0.35s var(--ease-out),
    visibility 0s linear 0s;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,8,10,0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.contact-modal-panel {
  position: relative;
  width: 100%;
  max-width: 32em;
  max-height: calc(100vh - 4em);
  overflow-y: auto;
  padding: 2.6em 2.2em 2.2em;
  border-radius: 1.4em;
  background:
    radial-gradient(ellipse at top, rgba(255,16,57,0.12), transparent 60%),
    rgba(20,20,22,0.92);
  border: 1px solid rgba(255,16,57,0.25);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.55),
    0 0 80px rgba(255,16,57,0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease-out);
}

.contact-modal.is-open .contact-modal-panel {
  transform: translateY(0) scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 1em;
  right: 1em;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.contact-modal-close:hover {
  background: rgba(255,16,57,0.18);
  border-color: rgba(255,16,57,0.5);
}

.contact-modal-close svg {
  width: 1.1em;
  height: 1.1em;
}

.contact-modal-title {
  font-family: var(--font-display);
  font-size: 1.8em;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0.6em 0 0.4em;
}

.contact-modal-desc {
  color: var(--white-dim);
  font-size: 0.95em;
  line-height: 1.55;
  margin: 0 0 1.6em;
}

@media (max-width: 768px) {
  .contact-modal { padding: 1em; }
  .contact-modal-panel { padding: 2.2em 1.5em 1.6em; }
}

/* ============================================
   COOKIE / CONSENT BANNER + SETTINGS MODAL
   ============================================ */

/* Bottom-right slide-up card. Native [hidden] attribute keeps it out of
   layout until JS un-hides it; .is-open then triggers the transition. */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  padding: 1em;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  width: 100%;
  max-width: 56em;
  background: rgba(20, 20, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 1.4em 1.6em;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4em;
  align-items: center;
  justify-content: space-between;
  /* Start hidden below the viewport, slide in when .is-open. */
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.35s var(--ease-out);
}

.cookie-banner.is-open .cookie-banner-inner {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-text {
  flex: 1 1 22em;
  min-width: 0;
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 0.4em;
}

.cookie-banner-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--white-dim);
  margin: 0;
}

.cookie-banner-desc a {
  color: var(--red-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-desc a:hover { color: var(--white); }

.cookie-banner-actions {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
  align-items: center;
}

/* The btn styles are inherited from the main button styles; just normalize
   sizing for the compact banner context. */
.cookie-banner-actions .btn-sm {
  padding: 0.7em 1.1em;
  font-size: 13px;
}

@media (max-width: 640px) {
  .cookie-banner { padding: 0.5em; }
  .cookie-banner-inner {
    padding: 1em 1.1em 1.1em;
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
    /* Without this, the desktop `justify-content: space-between` would pump
       extra vertical space between text and buttons in the column layout. */
    justify-content: flex-start;
    gap: 0.85em;
  }
  /* On desktop the text block is flex:1 (grows horizontally next to the
     buttons). In the mobile column layout that same rule makes it grow
     VERTICALLY — turning a 4-line paragraph into 350px of dead space.
     Disable the grow on mobile so the banner is content-sized. */
  .cookie-banner-text { flex: 0 0 auto; }
  .cookie-banner-title {
    font-size: 14px;
    margin-bottom: 0.25em;
  }
  .cookie-banner-desc {
    font-size: 12.5px;
    line-height: 1.5;
  }
  /* 2-row grid: secondary actions side-by-side on top, primary CTA full-width
     below. Much shorter than 3 stacked full-width buttons. */
  .cookie-banner-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45em;
  }
  .cookie-banner-actions .btn {
    width: 100%;
    padding: 0.75em 0.7em;
    font-size: 12.5px;
  }
  .cookie-banner-actions .btn-primary {
    grid-column: 1 / -1;
  }
}

/* ---------- Settings Modal ---------- */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0s linear 0.3s;
}

.cookie-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease-out), visibility 0s;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cookie-modal-panel {
  position: relative;
  width: 100%;
  max-width: 32em;
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(20, 20, 22, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 2.4em 2em 1.8em;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  transform: translateY(20px);
  transition: transform 0.35s var(--ease-out);
}

.cookie-modal.is-open .cookie-modal-panel {
  transform: translateY(0);
}

.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--white-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

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

.cookie-modal-close svg { width: 16px; height: 16px; }

.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.6em;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0.5em 0 0.4em;
}

.cookie-modal-desc {
  color: var(--white-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 1.6em;
}

/* Category rows — first one (essential) is a div (no toggle), rest are
   labels wrapping a hidden checkbox + custom toggle. */
.cookie-cat {
  display: block;
  padding: 1em 0;
  border-top: 1px solid var(--border);
  cursor: default;
}
label.cookie-cat { cursor: pointer; }

.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 0.4em;
}

.cookie-cat-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.cookie-cat-always {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-faint);
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 100px;
}

.cookie-cat-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--white-dim);
  margin: 0;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-toggle input {
  position: absolute;
  width: 0; height: 0;
  opacity: 0;
  pointer-events: none;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  transition: background 0.25s var(--ease-out);
  cursor: pointer;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.25s var(--ease-out);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--red);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(16px);
}

.cookie-toggle input:focus-visible + .cookie-toggle-slider {
  box-shadow: 0 0 0 3px rgba(255,16,57,0.3);
}

.cookie-modal-actions {
  display: flex;
  gap: 0.6em;
  margin-top: 2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
}

.cookie-modal-actions .btn {
  flex: 1 1 50%;
  justify-content: center;
}

@media (max-width: 640px) {
  .cookie-modal { padding: 1em; }
  .cookie-modal-panel { padding: 2em 1.3em 1.4em; }
  .cookie-modal-actions { flex-direction: column; }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 5em 0 2.5em;
  position: relative;
}

/* Same horizontal inset as the thumbnail / pricing sections */
.footer .container { max-width: 80em; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 320px;
}

/* Bigger logo in the footer than in the nav.
   The SVG viewBox has empty space top + bottom (the logo glyph sits in the
   middle of the box). Negative margins compensate for that — values are
   slightly less than the full empty-space so the logo's cap-line lands on
   the same baseline as the adjacent column titles (which have their own
   line-height padding). */
/* The new fisora-logo.svg has minimal internal padding, so no negative-margin
   trimming is needed (unlike the old wordmark which had ~30% empty padding
   that we used to crop visually). Just set a clean height. */
.footer-brand .nav-logo-svg {
  height: 32px;
}

@media (max-width: 768px) {
  .footer-brand .nav-logo-svg {
    height: 28px;
  }
}

.footer-tag {
  margin-top: 18px;
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.5;
}

/* Small positioning line below the tagline — "Eine App der Werbeagentur FIANO e.U." */
.footer-attribution {
  margin-top: 10px;
  font-size: 12px;
  color: var(--white-faint);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.footer-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 14px;
  color: var(--white-dim);
  transition: color 0.25s;
}

.footer-col a:hover { color: var(--white); }

.footer-socials {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
}

.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
}

.footer-socials a:hover {
  background: rgba(255,16,57,0.1);
  border-color: rgba(255,16,57,0.4);
  color: var(--red);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 16px; height: 16px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--white-faint);
}

/* ============================================
   ANIMATION ENTRY STATES
   ============================================ */
/* see hero-stage and [data-reveal] for entrance states */

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; max-width: none; }
  .showcase-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 80px; }
  .showcase-visual { order: -1; max-width: 500px; margin: 0 auto; }
  .thumbnail-grid { grid-template-columns: 1fr; gap: 60px; }
  .thumbnail-visual { height: 420px; }
  .float-card-1 { right: 0; }
  .float-card-2 { left: 0; }
  .float-card-3 { right: 0; }
  .float-card-7, .float-card-8 { display: none; }
  .nav-inner { padding: 0 20px; }

  /* Horizontal scroll: features panel grid → 2 columns at tablet */
  .hor-panel-2 .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav-links,
  .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav { padding: 16px 0; }
  .nav.is-scrolled { padding: 10px 0; }
  .nav-inner {
    padding: 0 16px;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .nav-logo { font-size: 19px; }
  .nav-logo-mark { width: 22px; }

  /* Mobile-Lang-Switcher sichtbar machen + exakt gleiche Höhe (44px) und
     gleicher border-radius (12px) wie der Burger-Toggle. */
  .lang-switcher--mobile { display: block; grid-column: 3; }
  .lang-switcher--mobile .lang-current {
    height: 44px;
    box-sizing: border-box;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 11px;
    gap: 5px;
  }
  /* Dropdown nach LINKS ausklappen (right-bündig am Switcher), damit es nicht
     über den rechten Bildschirmrand hinausragt. */
  .lang-switcher--mobile .lang-dropdown {
    right: 0;
    left: auto;
    min-width: 180px;
  }

  .hero {
    padding: 7em 0 0;            /* tighter top spacing on mobile */
    min-height: auto;
  }
  .hero-grid { background-size: 44px 44px; }
  /* let the mockup breathe past the container padding so it feels bigger */
  .hero-stage {
    margin-top: 2.5em;
    margin-left: -1em;
    margin-right: -1em;
  }
  .hero-stage-phone-main { max-width: 100%; }
  .badge { margin-bottom: 1.1em; }   /* a bit more breathing room above the title */
  .hero-sub { margin-bottom: 1.4em; }
  .hero-meta { margin-bottom: 1.5em; }

  /* Two CTAs side-by-side, no wrap */
  .hero-ctas {
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 1em;
  }
  .hero-ctas .btn {
    padding: 12px 14px;
    font-size: 13px;
    flex: 1 1 0;                  /* equal width */
    white-space: nowrap;
  }

  .hero-title {
    font-size: clamp(50px, 11.5vw, 72px);   /* a touch bigger again */
    line-height: 1.06;
  }
  /* Float-cards must stay within viewport — no negative offsets */
  .float-card-1 { top: 4%; right: 8px; }
  .float-card-2 { top: 40%; left: 8px; }
  .float-card-3 { bottom: 6%; right: 8px; }
  /* mirror cards on the other side for a fuller mobile layout */
  .float-card-4 { display: flex; top: 4%; left: 8px; }
  .float-card-5 { display: flex; top: 40%; right: 8px; }
  .float-card-6 { display: flex; bottom: 6%; left: 8px; }
  /* Keep the last two hidden — too cluttered on small screens */
  .float-card-7, .float-card-8 { display: none; }
  .float-card { padding: 8px 12px; font-size: 12px; }
  .float-card-title { font-size: 11px; }
  .float-card-meta { font-size: 9px; }
  .float-card-icon { width: 26px; height: 26px; }
  .float-card-icon svg { width: 14px; height: 14px; }

  /* ---- Mobile horizontal scroll ---- */
  /* TESTING: devices-hor section hidden on mobile. Remove this rule (or
     set `display: revert`) to bring it back, then the rules below need to
     be uncommented:
       .devices-hor .hor-scroll-track { flex-direction: column; width: 100%; height: 200vh; }
       .devices-hor .hor-panel        { flex: 0 0 100vh; width: 100%; height: 100vh; } */
  /* Note: this is also matched by the @media (max-width: 1024px) block
     below — tablet hides devices-hor too. */
  .devices-hor { display: none !important; }

  /* Features .hor-scroll: section 550vh + track 300vh (panel-1 100vh +
     panel-2 200vh). JS slides yPercent: -67 (= -200vh of 300vh track)
     during 50%→77% of section = 148vh of scroll for 200vh translate
     (≈1.35:1, comfortable). Panel-2 is now 200vh so the 6 cards have
     plenty of breathing room. */
  .hor-scroll:not(.devices-hor) { height: 550vh; }
  .hor-scroll:not(.devices-hor) .hor-scroll-track {
    flex-direction: column;
    width: 100%;
    height: 300vh;
  }
  .hor-scroll:not(.devices-hor) .hor-panel-1 {
    flex: 0 0 100vh;
    width: 100%;
    height: 100vh;
  }
  .hor-scroll:not(.devices-hor) .hor-panel-2 {
    flex: 0 0 200vh;
    width: 100%;
    height: 200vh;
    padding: 4vh 1em;
  }

  /* Slightly larger card sizing than the previous comfortable set — more
     touch-target, more readable headings and descriptions. */
  .hor-panel-2 .hor-features-inner .section-head { margin: 0 auto 1.4em; }
  .hor-panel-2 .features-grid {
    grid-template-columns: 1fr;
    gap: 0.9em;
  }
  .hor-panel-2 .feature-card { padding: 1.4em 1.4em; }
  .hor-panel-2 .feature-card h3 { font-size: 1.05em; margin-bottom: 0.3em; }
  .hor-panel-2 .feature-card p { font-size: 0.9em; line-height: 1.45; }
  .hor-panel-2 .feature-icon { width: 2.4em; height: 2.4em; margin-bottom: 0.7em; }

  .hero-marquee { margin-top: 40px; padding: 18px 0; }
  .marquee-track span { font-size: 16px; }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 50px; }

  .features-grid { grid-template-columns: 1fr; gap: 12px; }

  .how-flow { grid-template-columns: 1fr; gap: 16px; }
  .how-line { display: none; }

  /* On mobile we hide .devices-hor — but its "scroll up over hands-reveal"
     stack effect is still nice. So we hand the same overlap to the next
     section in DOM (.thumbnail-ai): pull it up by 100vh and render it
     above hands-reveal (z-index 5 vs hands-reveal's auto/0). */
  .thumbnail-ai {
    padding: 100px 0;
    margin-top: -100vh;
    z-index: 5;
  }
  .thumb-card { width: 220px; }
  .thumb-card-2 { margin-left: -110px; }

  .pricing-card { padding: 36px 28px; }
  .price-amount { font-size: 48px; }

  /* Showcase: device fits on small screens, tabs compact */
  .showcase-inner {
    padding: 4.5em 0.8em 1em;
    gap: 0.8em;
  }
  .showcase-device {
    width: 94vw;
    max-width: 94vw;
    max-height: calc(100vh - 18em);
  }
  .showcase-title { font-size: clamp(20px, 5.5vw, 28px); }
  .showcase-tabs { gap: 0.4em; }
  .showcase-tab {
    min-width: 0;
    flex: 1 1 calc(50% - 0.4em);
    padding: 0.6em 0.8em;
  }
  .showcase-tab-title { font-size: 12px; }
  .showcase-tab-desc { font-size: 10px; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================================
   TABLET (769–1024px) — share the simpler layout with mobile for the
   sections whose desktop choreography doesn't fit a narrow viewport.
   devices-hor's 2-panel side-by-side breaks below ~1100px, so hide it
   here too and let thumbnail-ai take over the "scroll up over hands-reveal"
   stack effect (same trick as mobile). hands-reveal mobile rules are
   already applied at <=1024px in the hands-reveal block further up.
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .devices-hor { display: none !important; }
  .thumbnail-ai {
    margin-top: -100vh;
    z-index: 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
