/* ==========================================================================
   FlowSentric — Marketing site design system
   Hand-built, zero-dependency. Light + Dark themes via [data-theme].
   ========================================================================== */

/* ---- Self-hosted fonts --------------------------------------------------- */
/* Served locally (assets/fonts/) instead of Google Fonts — no visitor IP is
   sent to a third party (GDPR: dynamic Google Fonts embedding has been ruled
   unlawful in Germany) and it removes a render-blocking third-party request.
   `font-display: swap` keeps text visible while the woff2 loads. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-800.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/inter-900.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
}

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-300: #5eead4;
  --brand-400: #2dd4bf;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --cyan: #22d3ee;
  --grad: linear-gradient(135deg, #0d9488 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(13, 148, 136, .18), rgba(34, 211, 238, .18));

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radius / shadow / motion */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1200px;
}

/* Dark (default) */
:root,
[data-theme="dark"] {
  --bg: #070b14;
  --bg-2: #0a1020;
  --surface: #0e1626;
  --surface-2: #131d31;
  --surface-3: #18243b;
  --border: rgba(255, 255, 255, .09);
  --border-2: rgba(255, 255, 255, .14);
  --text: #eaf1fb;
  --text-muted: #9db0c7;
  --text-faint: #67788f;
  --accent: #2dd4bf;
  --accent-ink: #062b27;
  --ring: rgba(45, 212, 191, .45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(45, 212, 191, .25), 0 20px 60px -20px rgba(13, 148, 136, .55);
  --grid-line: rgba(255, 255, 255, .045);
  /* Glassmorphism */
  --glass: rgba(18, 27, 45, .60);
  --glass-2: rgba(22, 32, 52, .75);
  --glass-brd: rgba(255, 255, 255, .14);
  --glass-blur: blur(18px) saturate(1.4);
  color-scheme: dark;
}

/* Light — softened off-white (warmer, premium feel — never pure #fff) */
[data-theme="light"] {
  --bg: #d9e0ec;
  --bg-2: #d0d8e5;
  --surface: #eaeff6;
  --surface-2: #e2e8f2;
  --surface-3: #d5dce9;
  --border: rgba(15, 23, 42, .13);
  --border-2: rgba(15, 23, 42, .20);
  --text: #0c1626;
  --text-muted: #3d4f66;
  --text-faint: #647a94;
  --accent: #0d9488;
  --accent-ink: #ffffff;
  --ring: rgba(13, 148, 136, .35);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 14px 34px -16px rgba(15, 23, 42, .18);
  --shadow-lg: 0 44px 80px -28px rgba(15, 23, 42, .24);
  --glow: 0 0 0 1px rgba(13, 148, 136, .20), 0 24px 60px -24px rgba(13, 148, 136, .35);
  --grid-line: rgba(15, 23, 42, .07);
  /* Glassmorphism */
  --glass: rgba(255, 255, 255, .42);
  --glass-2: rgba(255, 255, 255, .58);
  --glass-brd: rgba(255, 255, 255, .65);
  --glass-blur: blur(18px) saturate(1.6);
  color-scheme: light;
}

/* ---- Reset --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Clip horizontal overflow to stop sideways panning on mobile/iOS. Use `clip`,
     NOT `hidden`: overflow:hidden on html/body turns them into a scroll container,
     which breaks `position: sticky` on the nav. `clip` clips without creating a
     scroll container, so the sticky header keeps working. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  /* `clip` (not `hidden`) so the sticky nav isn't trapped in a scroll container. */
  overflow-x: clip;
  /* Long unbreakable strings (URLs, emails in the legal pages) must wrap
     instead of forcing the layout wider than a phone screen. */
  overflow-wrap: break-word;
}

/* Soft fixed colour wash so the frosted-glass surfaces have something to refract */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 12% 6%, rgba(13, 148, 136, .16), transparent 70%),
    radial-gradient(36% 30% at 88% 12%, rgba(34, 211, 238, .14), transparent 70%),
    radial-gradient(46% 42% at 78% 90%, rgba(13, 148, 136, .12), transparent 70%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(45, 212, 191, .3);
}

/* ---- Typography ---------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--text);
}

.h-display {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
}

.h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.muted {
  color: var(--text-muted);
}

.faint {
  color: var(--text-faint);
}

.grad-text {
  background: linear-gradient(120deg, var(--brand-400), var(--cyan) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono {
  font-family: var(--font-mono);
}

/* ---- Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
  /* Clip the decorative blurred orbs (absolutely positioned with large widths
     + negative offsets) so they never push the page wider than the viewport on
     mobile. `clip` doesn't create a scroll container or force overflow-y:auto. */
  overflow-x: clip;
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.maxw-sm {
  max-width: 540px;
}

.maxw-md {
  max-width: 680px;
}

.maxw-lg {
  max-width: 820px;
}

.grid {
  display: grid;
  gap: 24px;
}

.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-sm {
  gap: 10px;
}

.gap {
  gap: 16px;
}

.gap-lg {
  gap: 28px;
}

.wrap {
  flex-wrap: wrap;
}

.mt-sm {
  margin-top: 12px;
}

.mt {
  margin-top: 24px;
}

.mt-lg {
  margin-top: 40px;
}

/* ---- Eyebrow / section header ------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--grad-soft);
  border: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-head .lead {
  margin-top: 16px;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-full);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:active {
  transform: translateY(1px) scale(.99);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(13, 148, 136, .65);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -10px rgba(13, 148, 136, .8);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
}

.btn-secondary:hover {
  background: var(--surface-3);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn-ghost {
  color: var(--text-muted);
  padding-inline: 14px;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 9px 16px;
  font-size: .9rem;
}

.btn-block {
  width: 100%;
}

/* ---- Nav ----------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  flex-wrap: nowrap;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
  box-shadow: var(--shadow-sm);
  /* Single gradient-tile mark used on every surface (nav, footer, favicon) so
     the logo is identical across pages, languages, and BOTH themes — the teal
     tile keeps it readable on light and dark alike. */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 1;
  min-width: 0;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: .9rem;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color .2s, border-color .2s, background .2s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-2);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.nav-toggle {
  display: none;
}

.theme-sun {
  display: none;
}

[data-theme="dark"] .theme-sun {
  display: block;
}

[data-theme="dark"] .theme-moon {
  display: none;
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 70px 0 auto 0;
  z-index: 55;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  display: flex;
  animation: fade-down .25s var(--ease);
}

.mobile-menu a {
  padding: 13px 12px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-menu a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.mobile-menu .btn {
  margin-top: 10px;
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Sticky mobile CTA (conversion bar, mobile only) -------------------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  gap: 10px;
  align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}

.mobile-cta.show {
  transform: translateY(0);
}

.mobile-cta .btn {
  flex: 1;
  justify-content: center;
}

@media (max-width: 768px) {
  .mobile-cta {
    display: flex;
  }
}

/* ---- Decorative background ---------------------------------------------- */
.bg-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  z-index: -1;
  pointer-events: none;
}

.orb-teal {
  background: radial-gradient(circle, rgba(13, 148, 136, .6), transparent 70%);
}

.orb-cyan {
  background: radial-gradient(circle, rgba(34, 211, 238, .45), transparent 70%);
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(40px, 6vw, 70px);
  overflow: hidden;
}

.hero .orb-teal {
  width: 540px;
  height: 540px;
  top: -180px;
  left: -140px;
}

.hero .orb-cyan {
  width: 460px;
  height: 460px;
  top: -120px;
  right: -120px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 8px 7px 7px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-badge b {
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  padding: 3px 9px;
  border-radius: var(--r-full);
  letter-spacing: .02em;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 34px;
}

.hero-note {
  margin-top: 18px;
  font-size: .9rem;
  color: var(--text-faint);
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* ---- Browser frame mockup ----------------------------------------------- */
.frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.frame-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.frame-bar i:nth-child(1) {
  background: #ff5f57;
}

.frame-bar i:nth-child(2) {
  background: #febc2e;
}

.frame-bar i:nth-child(3) {
  background: #28c840;
}

.frame-bar .url {
  margin-left: 12px;
  font-size: .78rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: var(--r-full);
  flex: 1;
  max-width: 320px;
}

.frame img {
  display: block;
  width: 100%;
}

.hero-shot {
  position: relative;
  margin-top: clamp(40px, 6vw, 64px);
  max-width: 1080px;
  margin-inline: auto;
  animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

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

.hero-shot::after {
  content: "";
  position: absolute;
  inset: auto 8% -30px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(13, 148, 136, .5), transparent 70%);
  filter: blur(28px);
  z-index: -1;
}

/* ---- Logo strip ---------------------------------------------------------- */
.logos {
  padding-block: 44px;
  border-block: 1px solid var(--border);
}

.logos p {
  text-align: center;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 30px;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-muted);
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  transition: color .2s, border-color .2s, transform .2s;
}

.logo-chip:hover {
  color: var(--text);
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.logo-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

/* ---- Cards --------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background .25s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 20px -6px rgba(13, 148, 136, .3);
}

.card .ic {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  color: var(--accent);
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.card .ic svg {
  width: 23px;
  height: 23px;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: .96rem;
}

.card .benefit {
  margin-top: 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.card-feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
}

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

/* span helpers for bento */
.span-2 {
  grid-column: span 2;
}

/* ---- Showcase tabs ------------------------------------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .2s;
}

.tab svg {
  width: 17px;
  height: 17px;
}

.tab:hover {
  color: var(--text);
  border-color: var(--border-2);
}

.tab.active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 8px 22px -10px rgba(13, 148, 136, .7);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
  animation: fade-in .4s var(--ease);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 40px;
  align-items: center;
}

.showcase-copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 14px;
}

.showcase-copy p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.showcase-list {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: grid;
  gap: 13px;
}

.showcase-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
  font-size: .97rem;
}

.showcase-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
  margin-top: 1px;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Steps (how it works) ----------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, 1fr);
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.step .num {
  counter-increment: step;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: var(--grad);
  margin-bottom: 16px;
}

.step .num::before {
  content: counter(step);
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 7px;
}

.step p {
  color: var(--text-muted);
  font-size: .93rem;
}

/* ---- Benefits stat strip ------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat .big {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.stat .lbl {
  color: var(--text-muted);
  font-size: .92rem;
  margin-top: 4px;
}

/* ---- Split feature (benefits) ------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split.rev .split-media {
  order: -1;
}

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.check-list li {
  display: flex;
  gap: 14px;
}

.check-list .ck {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--border);
}

.check-list .ck svg {
  width: 16px;
  height: 16px;
}

.check-list b {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.check-list span {
  color: var(--text-muted);
  font-size: .93rem;
}

/* ---- Use cases ----------------------------------------------------------- */
.usecase {
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .25s var(--ease), border-color .25s;
}

.usecase:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.usecase .tag {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
}

.usecase h3 {
  font-size: 1.12rem;
  margin: 10px 0 8px;
}

.usecase p {
  color: var(--text-muted);
  font-size: .94rem;
}

/* ---- Services ------------------------------------------------------------ */
.svc {
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}

.svc:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}

.svc .ic {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--grad-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.svc .ic svg {
  width: 24px;
  height: 24px;
}

.svc h3 {
  font-size: 1.15rem;
  margin-bottom: 9px;
}

.svc p {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 14px;
}

.svc ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.svc li {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--text-muted);
  font-size: .9rem;
}

.svc li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---- Pricing ------------------------------------------------------------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 44px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
}

.billing-toggle button {
  padding: 9px 20px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-muted);
  transition: all .2s;
}

.billing-toggle button.active {
  background: var(--grad);
  color: #fff;
}

.billing-toggle .save {
  font-size: .76rem;
  font-weight: 700;
  color: var(--accent);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.plan .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 14px;
  border-radius: var(--r-full);
  text-transform: uppercase;
}

.plan h3 {
  font-size: 1.2rem;
}

.plan .desc {
  color: var(--text-muted);
  font-size: .9rem;
  min-height: 40px;
  margin-top: 6px;
}

.plan .price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 16px 0 2px;
}

.plan .price small {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-faint);
}

.plan .per {
  color: var(--text-faint);
  font-size: .85rem;
  min-height: 20px;
}

.plan .btn {
  margin: 22px 0;
}

.plan ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.plan li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .91rem;
  color: var(--text-muted);
}

.plan li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
  margin-top: 1px;
}

.plan li.off {
  color: var(--text-faint);
  opacity: .65;
}

.plan li.off svg {
  color: var(--text-faint);
}

/* comparison table */
.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.cmp th,
.cmp td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cmp thead th {
  font-weight: 700;
  color: var(--text);
  position: sticky;
  top: 70px;
  background: var(--bg);
}

.cmp td:not(:first-child),
.cmp th:not(:first-child) {
  text-align: center;
}

.cmp tbody tr:hover {
  background: var(--surface-2);
}

.cmp .yes {
  color: var(--accent);
}

.cmp .no {
  color: var(--text-faint);
}

.cmp .grp td {
  background: var(--surface-2);
  font-weight: 700;
  letter-spacing: .02em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* ---- FAQ ----------------------------------------------------------------- */
.faq {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  text-align: left;
  color: var(--text);
}

.faq-q .chev {
  transition: transform .25s var(--ease);
  color: var(--text-muted);
  flex: none;
}

.faq-item.open .faq-q .chev {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}

.faq-a-inner {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: .97rem;
}

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(48px, 7vw, 84px) 32px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
}

.cta-band .orb-teal {
  width: 520px;
  height: 520px;
  bottom: -260px;
  left: -120px;
  opacity: .65;
}

.cta-band .orb-cyan {
  width: 460px;
  height: 460px;
  top: -240px;
  right: -100px;
  opacity: .55;
}

/* ---- Testimonials -------------------------------------------------------- */
.quote {
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.quote .stars {
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.quote p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
}

.quote .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.quote .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  flex: none;
}

.quote .who b {
  display: block;
  font-size: .92rem;
}

.quote .who span {
  font-size: .82rem;
  color: var(--text-faint);
}

/* ---- Footer -------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 32px;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
}

.footer-grid h4 {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 11px;
}

.footer-grid a {
  color: var(--text-muted);
  font-size: .93rem;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-about p {
  color: var(--text-muted);
  font-size: .93rem;
  margin: 14px 0 18px;
  max-width: 300px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: .88rem;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all .2s;
}

.social a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.social svg {
  width: 17px;
  height: 17px;
}

/* ---- Misc / page hero ---------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(56px, 7vw, 90px);
  padding-bottom: clamp(32px, 4vw, 48px);
  overflow: hidden;
  text-align: center;
}

.page-hero .orb-teal {
  width: 480px;
  height: 480px;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* contact form */
.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ---- Reveal-on-scroll ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: .08s;
}

.reveal.d2 {
  transition-delay: .16s;
}

.reveal.d3 {
  transition-delay: .24s;
}

.reveal.d4 {
  transition-delay: .32s;
}

/* ---- Glassmorphism ------------------------------------------------------- */
/* Frosted, translucent surfaces. The colour wash in body::before + section
   orbs give the blur something to pick up. */
.card,
.svc,
.usecase,
.plan,
.step,
.stat,
.faq-item,
.billing-toggle,
.logo-chip,
.hero-badge,
.pill,
.quote {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: var(--glass-brd);
}

.frame {
  background: var(--glass-2);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.frame-bar {
  background: var(--glass);
}

.cta-band {
  background: var(--glass-2);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: var(--glass-brd);
}

.icon-btn {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* keep the featured plan's accent ring on top of the glass */
.plan.featured {
  border-color: var(--accent);
}

/* form inputs stay solid for legibility */
.field input,
.field select,
.field textarea {
  background: var(--surface);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

  /* graceful fallback: solid surfaces where blur isn't supported */
  .card,
  .svc,
  .usecase,
  .plan,
  .step,
  .stat,
  .faq-item,
  .billing-toggle,
  .logo-chip,
  .hero-badge,
  .pill,
  .quote,
  .frame,
  .frame-bar,
  .cta-band,
  .icon-btn {
    background: var(--surface);
  }
}

/* ---- Integrations marquee ------------------------------------------------ */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

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

.int-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  padding: 11px 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-muted);
}

.int-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
}

/* ---- Replace-grid (consolidation comparison) ----------------------------- */
.replace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.replace-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: transform .2s var(--ease), border-color .2s;
}

.replace-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.replace-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}

.replace-old {
  font-size: .9rem;
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: var(--text-faint);
  flex: none;
}

.replace-new {
  font-size: .93rem;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 1024px) {
  .replace-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .replace-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Language switcher --------------------------------------------------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.lang-switch button {
  padding: 7px 12px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: .03em;
}

.lang-switch button.active {
  background: var(--grad);
  color: #fff;
}

/* ---- Responsive ---------------------------------------------------------- */
/* German text is ~30% longer; accommodate with flexible sizing */
[lang="de"] .tab {
  padding: 9px 13px;
  font-size: .85rem;
}

[lang="de"] .tabs {
  gap: 6px;
  flex-wrap: wrap;
}

[lang="de"] .btn-lg {
  padding: 14px 22px;
  font-size: 1rem;
}

[lang="de"] .btn-primary {
  white-space: normal;
  text-align: center;
}

[lang="de"] .h-display {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

[lang="de"] .h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

[lang="de"] .hero-note {
  gap: 10px 14px;
  font-size: .84rem;
}

[lang="de"] .showcase-copy h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

[lang="de"] .check-list b {
  font-size: .95rem;
}

[lang="de"] .check-list span {
  font-size: .88rem;
}

[lang="de"] .replace-old {
  font-size: .82rem;
}

[lang="de"] .replace-new {
  font-size: .86rem;
}

[lang="de"] .plan .desc {
  min-height: 52px;
}

[lang="de"] .plan h3 {
  font-size: 1.1rem;
}

[lang="de"] .plan li {
  font-size: .86rem;
}

[lang="de"] .eyebrow {
  font-size: .74rem;
  letter-spacing: .04em;
  padding: 5px 12px;
}

[lang="de"] .card h3 {
  font-size: 1.05rem;
}

[lang="de"] .card p {
  font-size: .91rem;
}

[lang="de"] .usecase h3 {
  font-size: 1.05rem;
}

[lang="de"] .usecase p {
  font-size: .89rem;
}

[lang="de"] .svc h3 {
  font-size: 1.08rem;
}

[lang="de"] .nav-links a {
  padding: 9px 8px;
  font-size: .82rem;
}

[lang="de"] .step h3 {
  font-size: 1rem;
}

[lang="de"] .step p {
  font-size: .88rem;
}

[lang="de"] .faq-q {
  font-size: .96rem;
}

[lang="de"] .hero-badge {
  font-size: .8rem;
}

[lang="de"] .hero-badge span {
  word-break: break-word;
}

@media (max-width: 1024px) {
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps,
  .stats,
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  /* On mobile the top bar is just: brand · language · theme · burger.
     The Sign in + Start Free Trial buttons live in the slide-down menu and
     the sticky bottom CTA, so showing them here too overflowed the bar. */
  .nav-actions .btn-trial-desktop,
  .nav-actions .btn-ghost {
    display: none;
  }

  /* Belt-and-braces: the bar never grows past the viewport. */
  .nav-inner {
    gap: 10px;
  }

  .nav-actions {
    gap: 6px;
  }

  .showcase-grid,
  .split,
  .split.rev {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .split.rev .split-media {
    order: 0;
  }

  .cols-3,
  .cols-2 {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .replace-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .showcase-copy h3 {
    font-size: 1.4rem;
  }

  .hero-shot {
    margin-top: 32px;
  }

  .hero-shot .frame {
    border-radius: var(--r-md);
  }

  .check-list {
    gap: 12px;
  }

  .cta-band {
    padding: clamp(32px, 5vw, 56px) 20px;
    border-radius: var(--r-lg);
  }

  .stats {
    gap: 14px;
  }

  .stat {
    padding: 18px 14px;
  }

  .stat .big {
    font-size: 1.8rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .cols-4,
  .steps,
  .stats,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .row-2 {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .btn {
    width: auto;
  }

  .btn-lg {
    padding: 14px 20px;
    font-size: .98rem;
  }

  /* keep big type and the badge from clipping on narrow phones */
  .h-display {
    font-size: clamp(1.85rem, 8vw, 2.8rem);
    letter-spacing: -.03em;
  }

  .h1 {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  }

  .h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.9rem);
  }

  .lead {
    font-size: clamp(.95rem, 3.8vw, 1.1rem);
  }

  .hero-badge {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    font-size: .78rem;
    gap: 6px;
    padding: 6px 10px;
  }

  .hero-note {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: .84rem;
  }

  .hero-shot {
    margin-top: 28px;
    animation: none;
  }

  /* Pricing */
  .plan {
    padding: 24px 20px;
  }

  .plan .price {
    font-size: 2.2rem;
  }

  .plan .desc {
    min-height: auto;
  }

  /* Steps */
  .steps {
    gap: 14px;
  }

  .step {
    padding: 22px 18px;
  }

  /* Cards */
  .card {
    padding: 22px 18px;
  }

  /* Use cases */
  .usecase {
    padding: 20px 18px;
  }

  /* Replace grid */
  .replace-item {
    padding: 14px 16px;
    gap: 10px;
  }

  .replace-old {
    font-size: .82rem;
  }

  .replace-new {
    font-size: .86rem;
  }

  /* FAQ */
  .faq-q {
    padding: 16px 18px;
    font-size: .95rem;
  }

  .faq-a-inner {
    padding: 0 18px 16px;
    font-size: .92rem;
  }

  /* Footer */
  .footer-grid {
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Logo row */
  .logo-row {
    gap: 10px 14px;
  }

  .logo-chip {
    padding: 7px 12px;
    font-size: .84rem;
  }

  /* Billing toggle (if ever re-added) */
  .billing-toggle {
    width: 100%;
    justify-content: center;
  }

  .cmp thead th {
    position: static;
  }

  /* Nav on mobile */
  .nav-inner {
    height: 60px;
    gap: 8px;
  }

  .nav-actions {
    gap: 6px;
  }

  .brand {
    font-size: 1.02rem;
    gap: 8px;
    min-width: 0;
  }

  .brand .logo {
    width: 28px;
    height: 28px;
  }

  .lang-switch button {
    padding: 6px 9px;
    font-size: .72rem;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  /* Mobile menu */
  .mobile-menu {
    top: 60px;
    padding: 14px 16px 20px;
  }

  /* Services */
  .svc {
    padding: 22px 18px;
  }

  /* Integrations marquee */
  .int-chip {
    padding: 9px 14px;
    font-size: .84rem;
  }

  /* Section spacing on mobile */
  .section {
    padding-block: clamp(48px, 7vw, 80px);
  }

  .section--tight {
    padding-block: clamp(36px, 5vw, 56px);
  }

  .section-head {
    margin-bottom: 28px;
  }
}

/* ---- Cookie consent banner ----------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 24px;
  background: var(--glass-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-brd);
  transform: translateY(100%);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: .9rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}

/* ---- Back-to-top button ------------------------------------------------- */
/* Raised above the chat-widget bubble (bottom-right, ~60px tall at 20px) so
   the two floating controls stack instead of overlapping. */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  border: 1px solid var(--glass-brd);
  background: var(--glass-2);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s;
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--surface-3);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* On phones the bottom-right corner is contested (sticky CTA bar + chat
   widget bubble) — park the arrow bottom-LEFT above the CTA bar instead. */
@media (max-width: 768px) {
  .scroll-top {
    left: 16px;
    right: auto;
    bottom: 78px;
  }
}

.cookie-actions {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}

/* ---- Trust badges -------------------------------------------------------- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: none;
}

/* ---- Very small phones (≤380px: iPhone SE, small Android) ----------------
   Keep the top bar tidy: brand · language · theme · burger, never overflowing.
   (Sign in / Start trial are in the slide-down menu + the sticky bottom CTA.) */
@media (max-width: 380px) {
  .brand {
    font-size: .95rem;
    gap: 6px;
  }

  .nav-actions {
    gap: 4px;
  }

  .lang-switch button {
    padding: 5px 7px;
    font-size: .7rem;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }
}

/* ===== Themes / polish showcase ===== */
.theme-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-top: 46px;
}
.theme-gallery > div { flex: 1 1 320px; max-width: 360px; min-width: 0; }
.theme-gallery .frame { margin: 0; }
.theme-cap { margin: 14px 4px 0; font-size: .95rem; font-weight: 600; color: var(--text); }
@media (max-width: 560px) { .theme-gallery { gap: 20px; margin-top: 32px; } }
