/* ================================================================
   doligo.cloud — main.css  (pure CSS, no Tailwind)
   CSS vars defined in includes/_head.php
   ================================================================ */

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── Layout utilities ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section {
  padding-block: 5rem;
}
.section-sm {
  padding-block: 3rem;
}

/* ── Typography ───────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 60%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 50px;
  font-size: .9375rem;
  font-weight: 600;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(110,86,207,.4);
}
.btn-primary:hover {
  background: var(--primary-foreground, #5b47b0);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(110,86,207,.35);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--foreground);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(110,86,207,.06);
}
.btn-lg {
  padding: .9rem 2rem;
  font-size: 1rem;
}

/* ── Badge / pill ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 600;
  background: rgba(110,86,207,.12);
  color: var(--primary);
  border: 1px solid rgba(110,86,207,.25);
}
.badge-green {
  background: rgba(34,197,94,.1);
  color: #16a34a;
  border-color: rgba(34,197,94,.25);
}
.badge-amber {
  background: rgba(245,158,11,.1);
  color: #b45309;
  border-color: rgba(245,158,11,.25);
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 4rem;
  background: rgba(var(--card-rgb, 255,255,255), .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.navbar-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
}
.navbar-logo span { color: var(--muted-foreground); font-weight: 400; }
.navbar-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.navbar-links a:hover { color: var(--primary); }
.navbar-links .btn { font-size: .875rem; padding: .45rem 1.15rem; }
.navbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .5rem;
  color: var(--muted-foreground);
}
.navbar-toggle:hover { background: var(--accent); color: var(--primary); }
.navbar-mobile {
  display: none;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border-top: 1px solid var(--border);
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.navbar-mobile.open { display: flex; }
.navbar-mobile a:hover { color: var(--primary); }
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: var(--muted-foreground);
  transition: background .2s, color .2s;
}
.theme-toggle:hover { background: var(--accent); color: var(--primary); }

@media (min-width: 768px) {
  .navbar-links { display: flex; }
  .navbar-toggle { display: none; }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5rem;
  overflow: hidden;
  background: #0c0c1e;
  color: #e8e6f0;
}

/* Dot pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(110,86,207,.18) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Aurora layers */
.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-aurora::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(110,86,207,.28) 0%, transparent 70%);
  animation: auroraFloat 8s ease-in-out infinite alternate;
}
.hero-aurora::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -15%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(168,85,247,.18) 0%, transparent 70%);
  animation: auroraFloat 10s ease-in-out infinite alternate-reverse;
}
.aurora-third {
  position: absolute;
  bottom: -10%;
  left: 20%;
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(99,102,241,.14) 0%, transparent 70%);
  animation: auroraFloat 12s ease-in-out infinite alternate;
}

@keyframes auroraFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, 4%) scale(1.08); }
}

/* Glow ring */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,86,207,.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
  padding: 1.5rem 1.5rem 2rem;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    padding-block: 1.5rem;
  }
}

/* ── Hero left ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem;
  border-radius: 50px;
  background: rgba(110,86,207,.15);
  border: 1px solid rgba(110,86,207,.3);
  color: #c4b5fd;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  animation: fadeUp .6s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  animation: pulse 2s ease-in-out infinite;
}

/* Mode tabs */
.hero-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 0.75rem;
  animation: fadeUp .6s .1s ease both;
}
.hero-tab {
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(200,190,240,.6);
  border: 1px solid rgba(110,86,207,.2);
  transition: all .2s;
}
.hero-tab.active, .hero-tab:hover {
  background: rgba(110,86,207,.2);
  color: #c4b5fd;
  border-color: rgba(110,86,207,.4);
}

.hero-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #f0eeff;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 0.75rem;
  animation: fadeUp .6s .15s ease both;
}
.hero-h1 .highlight {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.0625rem;
  color: rgba(200,190,240,.75);
  max-width: 540px;
  margin-bottom: 1rem;
  line-height: 1.7;
  animation: fadeUp .6s .2s ease both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-bottom: 1.25rem;
  animation: fadeUp .6s .25s ease both;
}

/* Metrics pill */
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  padding: .75rem 1.25rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(110,86,207,.2);
  border-radius: .75rem;
  animation: fadeUp .6s .3s ease both;
}
.hero-metric {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: rgba(200,190,240,.7);
}
.hero-metric strong { color: #c4b5fd; font-weight: 700; }
.hero-metric-sep { color: rgba(110,86,207,.4); font-size: .75rem; }

/* ── Hero right ── */
.hero-right {
  position: relative;
  animation: fadeUp .7s .35s ease both;
}

.hero-screenshot-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(110,86,207,.25),
    0 32px 80px rgba(0,0,0,.6),
    0 0 60px rgba(110,86,207,.15);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}
.hero-screenshot-wrap:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0deg);
}
.hero-screenshot-wrap img {
  width: 100%;
  display: block;
  border-radius: 1rem;
}
.hero-screenshot-glow {
  position: absolute;
  inset: -2px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(110,86,207,.4) 0%, transparent 50%, rgba(168,85,247,.3) 100%);
  pointer-events: none;
  opacity: .6;
}

/* Floating chips */
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .875rem;
  background: rgba(14,12,30,.85);
  border: 1px solid rgba(110,86,207,.3);
  border-radius: .625rem;
  font-size: .8125rem;
  font-weight: 600;
  color: #c4b5fd;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.hero-chip i { color: var(--primary); font-size: .875rem; }
.hero-chip-1 {
  top: -1rem;
  right: -1rem;
  animation: chipFloat 4s ease-in-out infinite;
}
.hero-chip-2 {
  bottom: 2rem;
  left: -1.5rem;
  animation: chipFloat 5s 1s ease-in-out infinite;
}
.hero-chip-3 {
  top: 40%;
  right: -2rem;
  animation: chipFloat 6s .5s ease-in-out infinite;
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.5); }
}

/* ================================================================
   STATS BAR
   ================================================================ */
.statsbar {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 2rem;
}
.statsbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.statsbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .25rem;
}
.statsbar-value {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
  line-height: 1;
}
.statsbar-label {
  font-size: .75rem;
  color: var(--muted-foreground);
  font-weight: 500;
}
.statsbar-note {
  font-size: .6875rem;
  color: var(--muted-foreground);
  text-align: center;
  width: 100%;
  opacity: .7;
  margin-top: .5rem;
}
.statsbar-sep {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
}
@media (max-width: 640px) {
  .statsbar-sep { display: none; }
  .statsbar-item { flex: 1 1 calc(50% - 1rem); }
}

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.section-header .badge {
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--foreground);
  margin-bottom: .875rem;
}
.section-header p {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ================================================================
   FEATURES BENTO GRID
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feat-card:hover {
  border-color: rgba(110,86,207,.35);
  box-shadow: 0 8px 32px rgba(110,86,207,.08);
  transform: translateY(-2px);
}
/* Bento sizing */
.feat-card.col-4 { grid-column: span 4; }
.feat-card.col-3 { grid-column: span 3; }
.feat-card.col-2 { grid-column: span 2; }
.feat-card.col-6 { grid-column: span 6; }

.feat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .75rem;
  background: rgba(110,86,207,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.feat-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: .5rem;
}
.feat-desc {
  font-size: .9rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}
.feat-tag {
  display: inline-block;
  margin-top: .875rem;
  padding: .25rem .625rem;
  background: rgba(110,86,207,.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.feat-tag-green {
  background: rgba(34,197,94,.1);
  color: #16a34a;
}

@media (max-width: 1024px) {
  .feat-card.col-4 { grid-column: span 3; }
  .feat-card.col-2 { grid-column: span 3; }
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .feat-card.col-4, .feat-card.col-3, .feat-card.col-2, .feat-card.col-6 { grid-column: span 1; }
}

/* ================================================================
   STEPS (how it works)
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  counter-reset: steps;
}
.step-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem 1.75rem;
  transition: border-color .2s, box-shadow .2s;
  /* Spotlight effect via JS */
  --sx: 50%;
  --sy: 50%;
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  background: radial-gradient(circle at var(--sx) var(--sy), rgba(110,86,207,.08) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.step-card:hover::before { opacity: 1; }
.step-card:hover {
  border-color: rgba(110,86,207,.3);
  box-shadow: 0 8px 32px rgba(110,86,207,.08);
}
.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: .5rem;
}
.step-desc { font-size: .9rem; color: var(--muted-foreground); line-height: 1.65; }

/* ================================================================
   COMPARISON TABLE
   ================================================================ */
.comparison-wrap {
  overflow-x: auto;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: .9375rem;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
  background: var(--card);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--foreground);
}
.comparison-table thead th:first-child { text-align: left; }
.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--foreground);
  background: var(--card);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:nth-child(odd) td { background: rgba(var(--card-rgb,255,255,255),.4); }
.comparison-table .featured-col {
  background: rgba(110,86,207,.07) !important;
  color: var(--primary) !important;
}
.comparison-table .featured-head {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 0;
}
.comparison-table .check { color: #16a34a; font-size: 1rem; }
.comparison-table .cross { color: #dc2626; font-size: .875rem; }
.comparison-table .neutral { color: var(--muted-foreground); font-size: .875rem; }

/* ================================================================
   PRICING
   ================================================================ */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.pricing-toggle-label {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.pricing-toggle-label.active { color: var(--foreground); font-weight: 700; }
.toggle-switch {
  position: relative;
  width: 3rem;
  height: 1.625rem;
  background: var(--border);
  border-radius: 50px;
  transition: background .2s;
  cursor: pointer;
}
.toggle-switch.on { background: var(--primary); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-switch.on::after { transform: translateX(1.375rem); }
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .625rem;
  background: rgba(34,197,94,.1);
  color: #16a34a;
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.pricing-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  position: relative;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.08);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(110,86,207,.1), 0 16px 48px rgba(110,86,207,.15);
}
.pricing-card.featured:hover {
  box-shadow: 0 0 0 4px rgba(110,86,207,.15), 0 24px 64px rgba(110,86,207,.2);
}
.pricing-popular {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .875rem;
  border-radius: 0 0 .75rem .75rem;
  white-space: nowrap;
}
.pricing-plan {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-foreground);
  margin-bottom: .625rem;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: .25rem;
  margin-bottom: .5rem;
}
.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -.04em;
  line-height: 1;
}
.pricing-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  align-self: flex-start;
  margin-top: .35rem;
}
.pricing-period {
  font-size: .875rem;
  color: var(--muted-foreground);
}
.pricing-billed {
  font-size: .8125rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  min-height: 1.25rem;
}
.pricing-desc {
  font-size: .875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  padding-bottom: 1.25rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
  flex: 1;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 0.75rem;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: var(--foreground);
}
.pricing-feature i {
  color: var(--primary);
  font-size: .8125rem;
  margin-top: .2rem;
  flex-shrink: 0;
}
.pricing-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: .75rem;
  border-radius: .75rem;
  font-size: .9375rem;
  font-weight: 700;
  transition: all .2s;
}
.pricing-cta-outline {
  border: 1.5px solid var(--border);
  color: var(--foreground);
}
.pricing-cta-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pricing-cta-primary {
  background: var(--primary);
  color: #fff;
}
.pricing-cta-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(110,86,207,.35);
}

/* ================================================================
   FACTURATION 2026/2027
   ================================================================ */
.facturation-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.facturation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .facturation-grid { grid-template-columns: 1fr; }
}
.facturation-card {
  border: 1.5px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  background: var(--background);
  position: relative;
  overflow: hidden;
}
.facturation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #a78bfa);
}
.facturation-date {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}
.facturation-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: .625rem;
}
.facturation-desc {
  font-size: .9rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.facturation-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.facturation-list li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: var(--foreground);
}
.facturation-list li i {
  color: var(--primary);
  margin-top: .2rem;
  flex-shrink: 0;
}
.facturation-included {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .875rem;
  color: #16a34a;
  font-weight: 600;
}

/* ================================================================
   DOLIMED
   ================================================================ */
.dolimed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .dolimed-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.dolimed-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  background: rgba(14,165,233,.1);
  color: #0284c7;
  border: 1px solid rgba(14,165,233,.25);
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.dolimed-h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.dolimed-sub {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.dolimed-features {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  margin-bottom: 1rem;
}
.dolimed-feature {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}
.dolimed-feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .625rem;
  background: rgba(14,165,233,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  font-size: .9375rem;
  flex-shrink: 0;
}
.dolimed-feature-text strong {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: .2rem;
}
.dolimed-feature-text span {
  font-size: .875rem;
  color: var(--muted-foreground);
}

.dolimed-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.dolimed-screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.dolimed-screen {
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transition: transform .2s, box-shadow .2s;
  cursor: zoom-in;
  background: var(--card);
  line-height: 0;
}
.dolimed-screen:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(110,86,207,.25);
}
.dolimed-screen img {
  width: 100%;
  height: auto;
  display: block;
}
.dolimed-screen-label {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-align: center;
  padding: .375rem .5rem;
  background: var(--card);
  border-top: 1px solid var(--border);
  line-height: 1.2;
}
.dolimed-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.dolimed-spec {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .875rem;
  padding: .875rem 1rem;
  text-align: center;
}
.dolimed-spec strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .2rem;
}
.dolimed-spec span {
  font-size: .75rem;
  color: var(--muted-foreground);
}

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: rgba(110,86,207,.3); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  user-select: none;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: rgba(110,86,207,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: .75rem;
  flex-shrink: 0;
  transition: transform .25s, background .2s;
}
.faq-item.open .faq-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding-inline: 1.5rem;
}
.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: .9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ================================================================
   CTA FINAL
   ================================================================ */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(110,86,207,.06) 0%, rgba(168,85,247,.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-section h2 {
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-inline: auto;
}
.cta-section p {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  max-width: 540px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}
.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.cta-note {
  font-size: .8125rem;
  color: var(--muted-foreground);
}
.cta-note i { color: #16a34a; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand-logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
  margin-bottom: .875rem;
}
.footer-brand-logo span { color: var(--muted-foreground); font-weight: 400; }
.footer-brand-desc {
  font-size: .875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--muted-foreground);
  transition: color .2s;
}
.footer-contact a:hover { color: var(--primary); }
.footer-contact i { color: var(--primary); width: 1rem; }
.footer-col-title {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--foreground);
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.footer-links a {
  font-size: .875rem;
  color: var(--muted-foreground);
  transition: color .2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem;
  color: var(--muted-foreground);
}
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: var(--primary); }
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ================================================================
   TRUST STRIP
   ================================================================ */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(110,86,207,.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}
.trust-item i { color: var(--primary); }

/* ================================================================
   DARK MODE OVERRIDES
   ================================================================ */
.dark .hero { background: #0a0a18; }
.dark .statsbar { background: var(--card); }
.dark .pricing-card.featured {
  box-shadow: 0 0 0 4px rgba(110,86,207,.2), 0 16px 48px rgba(110,86,207,.2);
}
.dark .hero-chip { background: rgba(10,10,24,.92); }
.dark .comparison-table tbody tr:nth-child(odd) td { background: rgba(255,255,255,.02); }
.dark .navbar {
  background: rgba(10,10,24,.88);
}

/* ================================================================
   RESPONSIVE HELPERS
   ================================================================ */
@media (max-width: 640px) {
  .section { padding-block: 3.5rem; }
  .hero-inner { padding: 1rem 1.25rem 1.5rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-chip-2, .hero-chip-3 { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── Utility classes ────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.hidden { display: none !important; }

/* Local section responsive */
@media (max-width: 768px) {
  #finistere .container > div {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
}

/* ── Video embed ─────────────────────────────────────────── */
.video-outer {
  display: block;
  padding: 4px;
  border-radius: 15px;
  background: linear-gradient(135deg, #6e56cf, #a78bfa, #e879f9, #6e56cf);
  background-size: 300% 300%;
  animation: borderShift 6s ease infinite;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  box-shadow:
    0 0 0 1px rgba(110,86,207,.15),
    0 24px 80px rgba(110,86,207,.25),
    0 8px 32px rgba(0,0,0,.2);
}
@keyframes borderShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.video-wrap {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  line-height: 0;
}
.video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
}

/* ── DoliMed Lightbox ──────────────────────────────────────────── */
.dolimed-lb {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.dolimed-lb.is-open {
  opacity: 1;
  pointer-events: all;
}
.dolimed-lb-inner {
  position: relative;
  max-width: min(92vw, 960px);
  width: 100%;
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 32px 96px rgba(0,0,0,.5);
  transform: scale(.92);
  transition: transform .25s;
}
.dolimed-lb.is-open .dolimed-lb-inner {
  transform: scale(1);
}
.dolimed-lb-img {
  width: 100%;
  height: auto;
  display: block;
}
.dolimed-lb-cap {
  padding: .625rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-align: center;
  background: var(--card);
  border-top: 1px solid var(--border);
}
.dolimed-lb-close {
  position: absolute;
  top: .625rem;
  right: .75rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 1.25rem;
  line-height: 2rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background .15s;
}
.dolimed-lb-close:hover {
  background: var(--primary);
}

/* ================================================================
   LEGAL PAGES
   ================================================================ */
.legal-hero {
  background: linear-gradient(135deg, #1a1040 0%, var(--primary) 100%);
  padding-top: 6rem; padding-bottom: 3.5rem;
  text-align: center;
}
.legal-hero .badge {
  margin: 0 auto 1.25rem;
}
.legal-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  margin-bottom: .75rem;
}
.legal-hero-sub {
  color: rgba(255,255,255,.65);
  font-size: 1.0625rem;
}
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.legal-notice {
  background: rgba(110,86,207,.08);
  border: 1px solid rgba(110,86,207,.25);
  border-radius: .875rem;
  padding: 1rem 1.25rem;
  font-size: .875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
}
.legal-card h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.legal-card p {
  font-size: .9375rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: .75rem;
}
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin: .5rem 0 .75rem;
}
.legal-card li {
  font-size: .9375rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  padding-left: 1.25rem;
  position: relative;
}
.legal-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.legal-card a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-card a:hover { opacity: .8; }
.legal-card strong {
  color: var(--foreground);
  font-weight: 600;
}
.legal-table-wrap { overflow-x: auto; margin: .75rem 0; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  min-width: 480px;
}
.legal-table th {
  background: var(--primary);
  color: #fff;
  padding: .625rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .8125rem;
}
.legal-table th:first-child { border-radius: .5rem 0 0 0; }
.legal-table th:last-child  { border-radius: 0 .5rem 0 0; }
.legal-table td {
  padding: .625rem 1rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tbody tr:hover { background: var(--background); }
.legal-table td:first-child { color: var(--foreground); font-weight: 500; font-family: monospace; }
.legal-table .tag-ok {
  color: #16a34a;
  font-weight: 600;
  font-family: inherit;
}
.legal-table .tag-price {
  color: var(--primary);
  font-weight: 700;
  font-family: inherit;
}
.legal-cta {
  text-align: center;
  padding-top: .5rem;
}

/* ================================================================
   SECTION DARK — sections alternées sombres
   ================================================================ */
.section-dark {
  background: #0f0c24;
  --background: #0f0c24;
  --card: #1a1640;
  --card-foreground: #f0eeff;
  --foreground: #f0eeff;
  --muted-foreground: #b8b4d8;
  --border: rgba(255,255,255,.1);
  --primary: #a78bfa;
  --primary-foreground: #c4b5fd;
  color: #f0eeff;
}
.section-dark .section-header p,
.section-dark .section-header h2 {
  color: inherit;
}
.section-dark .section-header p {
  color: #b8b4d8;
}
.section-dark .badge {
  background: rgba(167,139,250,.15);
  color: #c4b5fd;
  border-color: rgba(167,139,250,.3);
}


/* dark mode : section-dark devient la surface CLAIRE (elevated) */
.dark .section-dark {
  background: #1c1840;
  --background: #1c1840;
  --card: #252150;
  --card-foreground: #f0eeff;
  --foreground: #f0eeff;
  --muted-foreground: #c0bce0;
  --border: rgba(255,255,255,.12);
  --primary: #a78bfa;
  --primary-foreground: #c4b5fd;
  color: #f0eeff;
}

/* ── Dolibarr showcase image ────────────────────────────────────── */
.dolibarr-showcase {
  margin: 0 auto 3.5rem;
  max-width: 960px;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 20px 60px rgba(0,0,0,.12),
    0 6px 20px rgba(0,0,0,.08);
  line-height: 0;
}
.dolibarr-showcase-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.25rem;
}

/* ================================================================
   MODULES GRID (features section)
   ================================================================ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.module-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.375rem 1.25rem;
  transition: box-shadow .2s, transform .2s;
}
.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(110,86,207,.15);
}
.module-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .625rem;
  background: rgba(110,86,207,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: .875rem;
}
.module-card-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: .625rem;
}
.module-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.module-card-list li {
  font-size: .8125rem;
  color: var(--muted-foreground);
  padding-left: .875rem;
  position: relative;
  line-height: 1.55;
}
.module-card-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .modules-grid { grid-template-columns: 1fr; }
}


/* hero outline button — always white on dark hero background */
.hero .btn-outline {
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.hero .btn-outline:hover {
  border-color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* ================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1),
              transform .6s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
[data-reveal='left']  { transform: translateX(-32px); }
[data-reveal='right'] { transform: translateX(32px); }
[data-reveal='scale'] { transform: scale(.94) translateY(12px); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-delay='1'] { transition-delay: .07s; }
[data-delay='2'] { transition-delay: .14s; }
[data-delay='3'] { transition-delay: .21s; }
[data-delay='4'] { transition-delay: .28s; }
[data-delay='5'] { transition-delay: .35s; }
[data-delay='6'] { transition-delay: .42s; }
[data-delay='7'] { transition-delay: .49s; }
[data-delay='8'] { transition-delay: .56s; }

/* respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Dolibarr logo placements ────────────────────────────────────── */
/* Footer */
.footer-doli-link { display: inline-flex; align-items: center; vertical-align: middle; }
.footer-doli-logo {
  height: 20px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  opacity: .85;
  transition: opacity .2s;
}
.dark .footer-doli-logo { filter: brightness(0) invert(1); opacity: .7; }
.footer-doli-link:hover .footer-doli-logo { opacity: 1; }

/* Hero */
.hero-powered-by { white-space: nowrap; flex-wrap: nowrap; 
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 0.75rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
}
.hero-doli-logo {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .7;
  transition: opacity .2s;
}
.hero-powered-by:hover .hero-doli-logo { opacity: 1; }

/* Features section */
.powered-by-doli { white-space: nowrap; flex-wrap: nowrap; 
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .875rem;
  font-size: .8125rem;
  color: var(--muted-foreground);
}
.powered-by-doli a { display: inline-flex; align-items: center; }
.powered-by-doli-img {
  height: 24px;
  width: auto;
  display: block;
  opacity: .75;
  transition: opacity .2s;
  filter: var(--doli-logo-filter, none);
}
.powered-by-doli a:hover .powered-by-doli-img { opacity: 1; }
.dark .powered-by-doli-img { filter: brightness(0) invert(1); opacity: .65; }

/* Infoforma logo in footer */
.footer-info-link { display: inline-flex; align-items: center; vertical-align: middle; white-space: nowrap; }
.footer-info-logo {
  height: 18px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  opacity: .8;
  transition: opacity .2s;
}
.footer-info-link:hover .footer-info-logo { opacity: 1; }
.dark .footer-info-logo { filter: brightness(0) invert(1); opacity: .65; }

/* ── Back to top button ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 500;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(110,86,207,.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, background .2s;
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: all;
}
.back-to-top:hover {
  background: #5b47b0;
  box-shadow: 0 6px 24px rgba(110,86,207,.55);
}

/* ── Nav user link (logged-in state) ──────────────────────────── */
.nav-user-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 500;
  transition: background .2s;
}
.nav-user-link:hover,
.nav-user-link-active:hover {
  background: rgba(110,86,207,.1);
}
html.dark .nav-user-link:hover,
html.dark .nav-user-link-active:hover {
  background: rgba(139,92,246,.15);
}
