/* ============================================================
   Replly — Landing Page
   Aesthetic: modern indigo SaaS · sentiment-driven accents
   Display: Space Grotesk  ·  Body: Inter
   ============================================================ */

:root {
  /* Surfaces & ink */
  --bg: #fbfbfe;
  --bg-2: #f5f4fd;
  --card: #ffffff;
  --ink: #14132b;
  --ink-soft: #3a3960;
  --muted: #6b6a86;
  --line: #e9e8f4;
  --line-soft: #f1f0f9;

  /* Brand (app primary #4F46E5) */
  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --primary-soft: #eef0ff;
  --violet: #7c3aed;

  /* Sentiment (from the product) */
  --promoter: #10b981;
  --promoter-soft: #e6faf2;
  --passive: #f59e0b;
  --passive-soft: #fef5e3;
  --detractor: #f43f5e;
  --detractor-soft: #fee9ed;

  --radius: 0.75rem;
  --radius-lg: 1.1rem;
  --radius-xl: 1.6rem;

  --shadow-sm: 0 1px 2px rgba(20, 19, 43, 0.06);
  --shadow-md: 0 14px 34px -18px rgba(31, 27, 90, 0.28);
  --shadow-lg: 0 40px 70px -30px rgba(31, 27, 90, 0.4);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 22px 48px -28px rgba(31, 27, 90, 0.35);

  --container: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image: radial-gradient(
      120% 90% at 50% -20%,
      rgba(79, 70, 229, 0.08),
      transparent 60%
    ),
    radial-gradient(40rem 30rem at 110% 0%, rgba(124, 58, 237, 0.06), transparent 60%);
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.grad-text {
  background: linear-gradient(100deg, var(--primary), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

::selection {
  background: rgba(79, 70, 229, 0.18);
}

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

em {
  font-style: normal;
  color: var(--primary);
}

/* ---------------------------------------------------------- Buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.72rem 1.15rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    color 0.18s var(--ease);
  white-space: nowrap;
  user-select: none;
}

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

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-lg {
  font-size: 1.02rem;
  padding: 0.95rem 1.5rem;
  border-radius: 0.8rem;
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  width: 1.1em;
  height: 1.1em;
}

.btn-primary {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  box-shadow: var(--shadow-md), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.btn-primary:hover {
  --btn-bg: var(--primary-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.btn-outline {
  --btn-fg: var(--ink);
  border-color: var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  border-color: rgba(79, 70, 229, 0.4);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-ghost {
  --btn-fg: var(--ink-soft);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-on-dark {
  --btn-bg: #fff;
  --btn-fg: var(--primary-strong);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.btn-on-dark:hover {
  transform: translateY(-1px);
}

.btn-outline-on-dark {
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}
.btn-outline-on-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 254, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.logo-mark {
  width: 32px;
  height: 32px;
  color: var(--primary);
  display: inline-flex;
}
.logo-mark svg,
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wordmark-text .accent {
  color: var(--primary);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 1rem;
}
.primary-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s var(--ease);
}
.primary-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--card);
}
.lang-opt {
  border: 0;
  background: transparent;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-opt[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--card);
}
.mobile-nav a {
  padding: 0.7rem 0.25rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .lang-switch-mobile {
  align-self: flex-start;
  margin: 0.6rem 0;
}
.mobile-nav .btn {
  margin-top: 0.4rem;
}
.mobile-nav[data-open] {
  display: flex;
}

/* ---------------------------------------------------------- Sections */
.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.section-head {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head-left {
  text-align: left;
  margin-inline: 0;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}
.section-head p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------------------------------------------------------- Hero */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(79, 70, 229, 0.09) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 25%, #000, transparent 75%);
  mask-image: radial-gradient(80% 60% at 50% 25%, #000, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-strong);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--promoter);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.hero-copy h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.4rem, 5.6vw, 4rem);
}

.hero-nps-note {
  margin-top: 0.85rem;
  font-size: clamp(0.82rem, 1.1vw, 0.92rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32rem;
}
.hero-nps-note strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
  margin-top: 1.75rem;
  list-style: none;
  padding: 0;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--promoter);
}

/* hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.device-phone {
  position: relative;
  width: 290px;
  background: #0e0c2a;
  border-radius: 2.4rem;
  padding: 0.55rem;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.device-notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 1.05rem;
  background: #0e0c2a;
  border-bottom-left-radius: 0.9rem;
  border-bottom-right-radius: 0.9rem;
  z-index: 2;
}
.device-screen {
  --srv-paper: #f6f1e9;
  --srv-raised: #fffdf9;
  --srv-ink: #211d18;
  --srv-ink-soft: #6f675b;
  --srv-line: #e8e0d2;
  position: relative;
  background: var(--srv-paper);
  border-radius: 2rem;
  overflow: hidden;
  padding: 1.25rem 1.05rem 1.15rem;
}
.device-screen::before {
  content: "";
  position: absolute;
  top: -45%;
  left: 50%;
  width: 150%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(
    55% 60% at 50% 0%,
    rgba(79, 70, 229, 0.22),
    transparent 70%
  );
  pointer-events: none;
}

.srv-card {
  position: relative;
  text-align: left;
}
.srv-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.srv-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  background: var(--srv-raised);
  border: 1px solid var(--srv-line);
  border-radius: 9px;
}
.srv-biz {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--srv-ink);
}
.srv-count {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.srv-q {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--srv-ink);
  margin-bottom: 1.05rem;
  text-wrap: balance;
}
.srv-mood {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.srv-mood-emoji {
  font-size: 1.4rem;
  line-height: 1;
}
.srv-mood-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--srv-ink);
}
.srv-scale {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.srv-scale span {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--srv-line);
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--srv-ink);
  background: var(--srv-raised);
}
.srv-scale .is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 20px -8px rgba(79, 70, 229, 0.7);
}
.srv-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--srv-ink-soft);
  margin-top: 0.6rem;
}
.srv-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 44px;
  margin-top: 1.15rem;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(79, 70, 229, 0.75);
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  animation: floaty 5s var(--ease) infinite;
}
.float-chip-1 {
  top: 12%;
  right: 0;
}
.float-chip-2 {
  bottom: 16%;
  left: -6%;
  animation-delay: 1.4s;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-green {
  background: var(--promoter);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}
.dot-rose {
  background: var(--detractor);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.16);
}

.qr-badge {
  position: absolute;
  bottom: 4%;
  right: 2%;
  width: 70px;
  height: 70px;
  padding: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  animation: floaty 6s var(--ease) infinite;
  animation-delay: 0.6s;
}
.qr-svg {
  width: 100%;
  height: 100%;
}

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

/* trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.9rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-strip .sep {
  color: var(--line);
}

/* ---------------------------------------------------------- Sectors */
.cats-band {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.cats-head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
.cats-head h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: 0.6rem;
}
.cats-viewport {
  margin-top: 2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.cats-marquee {
  display: flex;
  gap: 0.8rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.cats-marquee:hover {
  animation-play-state: paused;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.7rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.cat-pill .cat-emoji {
  font-size: 1.1rem;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------------------------------------------------------- Smart routing */
.routing {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-block: 1px solid var(--line-soft);
}
.routing-flow {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.rf-source {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.rf-source-emoji {
  font-size: 2.4rem;
}
.rf-source-label {
  display: block;
  margin-top: 0.6rem;
  font-weight: 600;
  font-family: var(--font-display);
}
.rf-mini-scale {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 1rem;
}
.rf-mini-scale i {
  width: 14px;
  height: 22px;
  border-radius: 5px;
  background: var(--c);
  opacity: 0.85;
}

.rf-branches {
  display: grid;
  gap: 1rem;
}
.rf-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--line);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.rf-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.rf-card-up {
  border-left-color: var(--promoter);
}
.rf-card-mid {
  border-left-color: var(--passive);
}
.rf-card-down {
  border-left-color: var(--detractor);
}
.rf-card header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.rf-card h3 {
  font-size: 1.1rem;
}
.rf-card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.rf-card .rf-meaning {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.7rem;
}
.rf-card .rf-action {
  position: relative;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
}
.rf-card .rf-action::before {
  content: "↳";
  margin-right: 0.35rem;
  font-weight: 700;
  opacity: 0.7;
}
.rf-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.rf-badge-green {
  background: var(--promoter-soft);
  color: #0a7a55;
}
.rf-badge-amber {
  background: var(--passive-soft);
  color: #a9690a;
}
.rf-badge-rose {
  background: var(--detractor-soft);
  color: #be1a37;
}
.rf-cta-mock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 0.6rem;
}
.rf-cta-mock svg {
  width: 15px;
  height: 15px;
}
.rf-cta-green {
  background: var(--promoter-soft);
  color: #0a7a55;
}
.rf-cta-amber {
  background: var(--passive-soft);
  color: #a9690a;
}
.rf-cta-rose {
  background: var(--detractor-soft);
  color: #be1a37;
}
.routing-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2rem;
  max-width: 42rem;
  margin-inline: auto;
}

/* ---------------------------------------------------------- Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.25);
}
.feature-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  margin-bottom: 1rem;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.icon-indigo {
  background: var(--primary-soft);
  color: var(--primary);
}
.icon-violet {
  background: #f3ebff;
  color: var(--violet);
}
.icon-green {
  background: var(--promoter-soft);
  color: #0a7a55;
}
.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------------------------------------------------------- Survey types / metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2.4rem;
}
.metric-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.metric-abbr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.6rem;
  border-radius: 0.55rem;
}
.metric-range {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.metric-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.metric-desc {
  color: var(--muted);
  font-size: 0.93rem;
}
.metric-q {
  margin-top: 1.05rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-soft);
}
.metric-nps {
  border-top-color: var(--primary);
}
.metric-nps .metric-abbr {
  background: var(--primary-soft);
  color: var(--primary);
}
.metric-csat {
  border-top-color: var(--promoter);
}
.metric-csat .metric-abbr {
  background: var(--promoter-soft);
  color: #0a7a55;
}
.metric-ces {
  border-top-color: var(--passive);
}
.metric-ces .metric-abbr {
  background: var(--passive-soft);
  color: #b4730a;
}

/* ---------------------------------------------------------- Dashboard showcase */
.showcase {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}
.showcase-stage {
  position: relative;
  max-width: 940px;
  margin-inline: auto;
}
.browser-mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: #f7f7fc;
  border-bottom: 1px solid var(--line);
}
.browser-dots {
  display: inline-flex;
  gap: 6px;
}
.browser-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e0dff0;
}
.browser-dots i:nth-child(1) {
  background: #ff6058;
}
.browser-dots i:nth-child(2) {
  background: #ffbe2f;
}
.browser-dots i:nth-child(3) {
  background: #2bca44;
}
.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.3rem 0.7rem;
}
.browser-url svg {
  width: 13px;
  height: 13px;
  color: var(--promoter);
}

.dash {
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
  background: #fafaff;
}
.dash-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.dstat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.dstat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.dstat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.dstat-sub {
  font-size: 0.72rem;
  color: var(--muted);
}
.accent-indigo {
  color: var(--primary);
}
.accent-green {
  color: var(--promoter);
}
.accent-rose {
  color: var(--detractor);
}

.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
}
.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--ink-soft);
}
.trend-tabs {
  display: inline-flex;
  gap: 2px;
  background: #f1f0fb;
  border-radius: 0.5rem;
  padding: 2px;
}
.trend-tabs i {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
}
.trend-tabs i.is-active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.dist-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line-soft);
}
.dist-seg {
  height: 100%;
}
.seg-green {
  background: var(--promoter);
}
.seg-amber {
  background: var(--passive);
}
.seg-rose {
  background: var(--detractor);
}
.dist-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.dist-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: -1px;
}
.d-green {
  background: var(--promoter);
}
.d-amber {
  background: var(--passive);
}
.d-rose {
  background: var(--detractor);
}

.dash-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0.8rem;
}
.dash-row .dash-card {
  margin-bottom: 0;
}
.spark {
  width: 100%;
  height: 88px;
}
.branch-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.branch-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.branch-list li:first-child {
  border-top: 0;
}
.b-nps {
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

.alert-chip {
  position: absolute;
  top: 16%;
  right: -10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--detractor);
  border-radius: 0.7rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: floaty 5.5s var(--ease) infinite;
}
.alert-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--detractor);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.16);
}

/* ---------------------------------------------------------- How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}
.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------- Pricing */
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 1.6rem;
  padding: 4px;
  background: #f1f0fb;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}
.billing-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.5rem 1rem;
  border-radius: 0.55rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.billing-opt.is-active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.save-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0a7a55;
  background: var(--promoter-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: start;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #fff, #fcfbff);
}
.price-ribbon {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(100deg, var(--primary), var(--violet));
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.price-card-head h3 {
  font-size: 1.3rem;
}
.price-tagline {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.25rem;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-top: 1.2rem;
}
.price-amount .currency {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.price-amount .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
}
.price-amount .amount-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
}
.price-amount .per {
  color: var(--muted);
  font-weight: 500;
}
.price-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.5rem;
  min-height: 1.1rem;
}
.price-card .btn {
  margin-top: 1.3rem;
}
.price-feats {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: grid;
  gap: 0.65rem;
}
.price-feats li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.price-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--promoter-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7.5' stroke='%2310b981' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.price-feats li strong {
  color: var(--ink);
  font-weight: 700;
}
.price-fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2rem;
  max-width: 44rem;
  margin-inline: auto;
}

/* ---------------------------------------------------------- FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.faq-list {
  display: grid;
  gap: 0.7rem;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.2rem;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-chevron {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: transform 0.2s var(--ease);
}
.faq-chevron::before {
  left: 0;
  transform: rotate(45deg);
}
.faq-chevron::after {
  right: 0;
  transform: rotate(-45deg);
}
.faq-item[open] .faq-chevron::before {
  transform: rotate(-45deg);
}
.faq-item[open] .faq-chevron::after {
  transform: rotate(45deg);
}
.faq-item p {
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 1.2rem;
  margin: 0;
}

/* ---------------------------------------------------------- CTA band */
.cta-band {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.cta-inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(120deg, #2a2270, var(--primary) 55%, var(--violet));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  box-shadow: var(--shadow-lg);
}
.cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.14) 1px, transparent 0);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}
.cta-inner h2 {
  position: relative;
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  max-width: 28rem;
  margin-inline: auto;
}
.cta-inner p {
  position: relative;
  margin: 1rem auto 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}
.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.8rem;
}

/* ---------------------------------------------------------- Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 2rem;
}
.footer-brand .wordmark {
  font-size: 1.2rem;
}
.footer-brand p {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 18rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-legal {
  display: inline-flex;
  gap: 1.2rem;
}
.footer-legal a:hover {
  color: var(--primary);
}

/* ---------------------------------------------------------- Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float-chip,
  .qr-badge,
  .alert-chip,
  .cats-marquee {
    animation: none;
  }
}

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .primary-nav,
  .header-actions .btn,
  .header-actions .lang-switch {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 440px;
    margin-top: 1rem;
  }
  .routing-flow {
    grid-template-columns: 1fr;
  }
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }
  .price-card-featured {
    order: -1;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .alert-chip {
    right: 8px;
    top: 8px;
  }
}

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

@media (max-width: 560px) {
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-row {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-cta .btn {
    flex: 1 1 auto;
  }
}

/* ---------------------------------------------------------- Galleries / Carousel */
.gallery {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.gallery--tinted {
  background: var(--bg-2);
}

.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  padding: 0.5rem 0.25rem 0.5rem;
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track > li {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.carousel-slide {
  display: block;
  width: clamp(248px, 80vw, 326px);
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.carousel-frame {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.carousel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide:hover .carousel-frame {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.carousel-slide:focus-visible {
  outline: none;
}
.carousel-slide:focus-visible .carousel-frame {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* zoom hint */
.carousel-frame::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(20, 19, 43, 0.55)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E")
    center / 1.05rem no-repeat;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
}
.carousel-slide:hover .carousel-frame::after,
.carousel-slide:focus-visible .carousel-frame::after {
  opacity: 1;
  transform: scale(1);
}

.carousel-cap {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* real-life: lifestyle photos, cover crop */
.gallery-real .carousel-frame {
  aspect-ratio: 4 / 5;
}
.gallery-real .carousel-frame img {
  object-fit: cover;
}

/* qr designs: show the whole template, never crop */
.gallery-qr .carousel-slide {
  width: clamp(220px, 72vw, 286px);
}
.gallery-qr .carousel-frame {
  aspect-ratio: 3 / 4;
  background: var(--bg-2);
}
.gallery-qr .carousel-frame img {
  object-fit: contain;
  padding: 0.85rem;
}

/* arrows */
.carousel-arrow {
  position: absolute;
  top: calc(50% - 1.3rem);
  transform: translateY(-50%);
  z-index: 3;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease),
    color 0.15s var(--ease), border-color 0.15s var(--ease), opacity 0.15s var(--ease);
}
.carousel-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}
.carousel-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}
.carousel-arrow svg {
  width: 1.2rem;
  height: 1.2rem;
}
.carousel-prev {
  left: -0.6rem;
}
.carousel-next {
  right: -0.6rem;
}

/* dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s var(--ease), width 0.2s var(--ease);
}
.carousel-dot.is-active {
  background: var(--primary);
  width: 1.4rem;
}

@media (max-width: 860px) {
  .carousel-prev {
    left: 0.25rem;
  }
  .carousel-next {
    right: 0.25rem;
  }
}

/* ---------------------------------------------------------- Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 9, 25, 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.lightbox[hidden] {
  display: none;
}
.lightbox.is-open {
  opacity: 1;
}

.lightbox-stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img {
  max-width: min(92vw, 760px);
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox-cap {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.98rem;
}
.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.24);
}
.lightbox-close {
  top: clamp(0.75rem, 2.5vw, 1.5rem);
  right: clamp(0.75rem, 2.5vw, 1.5rem);
  width: 2.75rem;
  height: 2.75rem;
}
.lightbox-close svg {
  width: 1.4rem;
  height: 1.4rem;
}
.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
}
.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.05);
}
.lightbox-arrow svg {
  width: 1.5rem;
  height: 1.5rem;
}
.lightbox-prev {
  left: clamp(0.5rem, 2.5vw, 1.75rem);
}
.lightbox-next {
  right: clamp(0.5rem, 2.5vw, 1.75rem);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox {
    transition: none;
  }
  .carousel-track {
    scroll-behavior: auto;
  }
}
