/* =========================================================================
   Tripledit — NEW LAYOUT
   Sections totalement différentes de Stralpay (et de notre v1).
   Architecture :
     1. Header inline minimal (pas pill)
     2. Hero immersif avec mascotte plein écran + ticker transactions
     3. Stepper progress-bar "60 secondes"
     4. Terminal live d'événements
     5. Pricing calculator interactif
     6. Table comparative
     7. Customer stories cards
     8. FAQ accordion
     9. Footer manifesto
   ========================================================================= */

/* hide old sections that might still be in DOM from cache (safety) */
.hero, .stats-strip, .features, .platform-grid, .integrations-grid,
.marquee, .pricing-grid, .testimonial, .final-cta, .site-footer,
.site-header, .checkout-mock {
  display: none !important;
}

body { padding-top: 0; }

/* ===========================================================
   1. HEADER 2 — inline minimal
   =========================================================== */
.site-header2 {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.header2-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}
.brand2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand2 img { width: 28px; height: 28px; transition: transform 0.3s cubic-bezier(.2,.8,.2,1); }
.brand2:hover img { transform: rotate(-8deg) scale(1.05); }
.brand2 span {
  background: linear-gradient(135deg, var(--fg) 0%, #b4c4e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav2 {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}
.nav2 a {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav2 a:hover { color: var(--fg); }
.nav2 a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(.2,.8,.2,1);
}
.nav2 a:hover::after { width: 100%; }

.nav2-actions { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.link2 {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.link2:hover { color: var(--fg); }

.btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn2-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 20px rgba(59,130,246,0.32);
}
.btn2-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 28px rgba(59,130,246,0.5);
}
.btn2-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 70%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(.2,.8,.2,1);
}
.btn2-primary:hover::before { left: 130%; }

.btn2-yellow {
  background: var(--accent);
  color: #1a1505;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(251,191,36,0.32);
}
.btn2-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(251,191,36,0.5);
}
.btn2-link {
  background: transparent;
  color: var(--fg);
  font-weight: 500;
  padding: 9px 4px;
}
.btn2-link:hover { color: var(--accent); }
.btn2-link .play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 10px;
  color: var(--accent);
  margin-right: 2px;
}
.btn2-lg { padding: 13px 22px; font-size: 15px; }
.btn2-block { width: 100%; padding: 12px 18px; }
.btn2 svg { transition: transform 0.3s cubic-bezier(.2,.8,.2,1); }
.btn2-primary:hover svg, .btn2-yellow:hover svg { transform: translateX(3px); }

.nav2-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav2-toggle:hover { background: rgba(255,255,255,0.04); border-color: var(--border-strong); }
.nav2-toggle .icon-close { display: none; }
.nav2-toggle[aria-expanded="true"] .icon-bars { display: none; }
.nav2-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none;
  padding: 16px 20px 24px;
  background: rgba(10, 15, 30, 0.96);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 4px;
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu.open { display: flex; animation: menuSlide 0.25s cubic-bezier(.2,.8,.2,1); }
@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu a {
  display: block;
  padding: 12px 8px;
  font-size: 15px;
  color: var(--fg);
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.05); }
.mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.mobile-menu .btn2 {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  padding: 13px 18px;
  font-size: 15px;
}

@media (max-width: 880px) {
  .nav2, .link2, .nav2-actions { display: none; }
  .nav2-toggle { display: inline-flex; }
  .header2-inner { gap: 16px; }
}

/* ===========================================================
   2. HERO 2 — immersif avec mascotte plein écran
   =========================================================== */
.hero2 {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 80px 0 0;
  background:
    radial-gradient(ellipse 900px 600px at 50% 100%, rgba(59,130,246,0.18), transparent 65%),
    radial-gradient(ellipse 600px 400px at 80% 20%, rgba(251,191,36,0.10), transparent 65%),
    radial-gradient(ellipse 500px 400px at 20% 30%, rgba(251,113,133,0.06), transparent 65%);
}
.hero2-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* Animated gradient orbs — replacement for hero mascot background */
.hero2-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}
.hero2-orb-1 {
  width: 520px; height: 520px;
  top: 8%; left: 18%;
  background: radial-gradient(circle, rgba(59,130,246,0.75), rgba(59,130,246,0) 70%);
  animation: orbFloat1 14s ease-in-out infinite;
}
.hero2-orb-2 {
  width: 460px; height: 460px;
  bottom: 6%; right: 14%;
  background: radial-gradient(circle, rgba(251,191,36,0.55), rgba(251,191,36,0) 70%);
  animation: orbFloat2 18s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, -20px) scale(1.1); }
}
@media (max-width: 640px) {
  .hero2-orb { filter: blur(60px); opacity: 0.4; }
  .hero2-orb-1 { width: 320px; height: 320px; left: -8%; top: 4%; }
  .hero2-orb-2 { width: 280px; height: 280px; right: -8%; bottom: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero2-orb { animation: none; }
}
.hero2-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 75%);
}

.hero2-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px 100px;
}
.hero2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(251,191,36,0.10);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero2-badge .badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

.hero2-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.5vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.hero2-strike {
  position: relative;
  color: var(--fg-dim);
  font-weight: 500;
  font-size: 0.65em;
  display: inline-block;
}
.hero2-strike::after {
  content: '';
  position: absolute;
  left: -4%; right: -4%;
  top: 50%;
  height: 4px;
  background: var(--coral);
  border-radius: 2px;
  transform: rotate(-3deg) scaleX(0);
  transform-origin: left center;
  animation: strikeIn 0.7s 1s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes strikeIn {
  to { transform: rotate(-3deg) scaleX(1); }
}
.hero2-replace {
  background: linear-gradient(110deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: replaceIn 0.7s 1.5s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes replaceIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero2-lede {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero2-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Ticker */
.hero2-ticker {
  position: relative;
  z-index: 1;
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 22, 38, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 0;
  overflow: hidden;
}
.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ticker-pulse {
  width: 8px; height: 8px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--mint);
  animation: pulse 1.4s ease-in-out infinite;
}
.ticker-stream {
  display: flex;
  gap: 40px;
  margin-top: 12px;
  animation: tickerScroll 50s linear infinite;
  width: max-content;
  white-space: nowrap;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
}
.ticker-item .country-flag { font-size: 18px; }
.ticker-item .amount { color: var(--fg); font-weight: 600; }
.ticker-item .ok { color: var(--mint); }
.ticker-item .arrow { color: var(--fg-dim); }
@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .hero2 { min-height: auto; padding-top: 40px; }
  .hero2-content { padding: 40px 20px 60px; }
  .hero2-title { font-size: clamp(34px, 9.5vw, 56px); letter-spacing: -0.03em; }
  .hero2-lede { font-size: 16px; }
  .hero2-ctas .btn2 { width: 100%; max-width: 320px; }
}
@media (max-width: 420px) {
  .hero2-title { font-size: clamp(30px, 9vw, 44px); }
  .hero2-content { padding: 32px 18px 56px; }
}

/* ===========================================================
   COMMON — section heads
   =========================================================== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--primary);
}
.how2-head, .terminal-head, .calc-head, .compare-head, .stories-head, .faq-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.how2-head h2, .terminal-head h2, .calc-head h2, .compare-head h2, .stories-head h2, .faq-head h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--fg);
}
.how2-head h2 em, .terminal-head h2 em, .calc-head h2 em, .compare-head h2 em, .stories-head h2 em, .faq-head h2 em {
  font-style: normal;
  background: linear-gradient(110deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.how2-head p, .terminal-head p, .calc-head p, .compare-head p, .stories-head p, .faq-head p {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
}

/* ===========================================================
   3. STEPPER — "60 secondes"
   =========================================================== */
.how2 {
  padding: 120px 0;
  position: relative;
}

.stepper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 80px;
}
.stepper-rail {
  position: absolute;
  top: 30px; bottom: 30px;
  left: 35px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}
.stepper-rail-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 2px;
  transition: height 0.5s ease;
}

.step-card {
  position: relative;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(.2,.8,.2,1);
}
.step-card.in {
  opacity: 1;
  transform: translateX(0);
}

.step-num {
  position: absolute;
  left: -80px;
  top: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-elev-1);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-dim);
  transition: all 0.5s cubic-bezier(.2,.8,.2,1);
  flex-shrink: 0;
}
.step-card.in .step-num {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 0 0 8px rgba(59,130,246,0.10), 0 12px 30px rgba(59,130,246,0.3);
}

.step-body {
  flex: 1;
  background: rgba(15, 22, 38, 0.6);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  transition: all 0.3s;
}
.step-body:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.step-time {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(251,191,36,0.10);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.step-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--fg);
}
.step-body > p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.step-visual {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.mini-form { display: flex; flex-direction: column; gap: 10px; }
.mini-line {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mini-dot { width: 6px; height: 6px; background: var(--fg-dim); border-radius: 50%; }
.mini-text { color: var(--fg-muted); font-size: 12.5px; }
.mini-btn {
  align-self: flex-start;
  padding: 8px 14px;
  background: var(--primary);
  color: white;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

.code-snippet {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg);
  white-space: pre-wrap;
}
.code-comment { color: var(--fg-dim); font-style: italic; }
.code-key { color: var(--accent); font-weight: 600; }
.code-str { color: var(--mint); }
.code-fn { color: var(--primary); }

.map-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.map-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 22px;
  opacity: 0;
  animation: flagIn 0.5s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes flagIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 720px) {
  .how2 { padding: 80px 0; }
  .stepper { padding-left: 0; gap: 32px; }
  .stepper-rail { display: none; }
  .step-card { flex-direction: column; gap: 16px; }
  .step-num { position: static; width: 56px; height: 56px; font-size: 18px; }
}

/* ===========================================================
   4. TERMINAL section
   =========================================================== */
.terminal-section {
  padding: 120px 0;
  background: var(--bg-elev-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.terminal {
  max-width: 920px;
  margin: 0 auto;
  background: #07091a;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.1);
  position: relative;
}
.terminal::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 2px;
  background: conic-gradient(from var(--tangle, 0deg), transparent 0%, rgba(59,130,246,0.4) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: rotateTangle 10s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}
@property --tangle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rotateTangle { to { --tangle: 360deg; } }

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(15, 22, 38, 0.8);
  border-bottom: 1px solid var(--border);
}
.terminal-dots { display: inline-flex; gap: 6px; }
.td { width: 11px; height: 11px; border-radius: 50%; }
.td-r { background: #ff5f57; }
.td-y { background: #febc2e; }
.td-g { background: #28c840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
}
.terminal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint);
}
.ts-dot {
  width: 8px; height: 8px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--mint);
  animation: pulse 1.6s ease-in-out infinite;
}
.terminal-body {
  height: 360px;
  overflow: hidden;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #c7d3e8;
  position: relative;
}
.terminal-body::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, #07091a, transparent);
  pointer-events: none;
}
.t-line {
  opacity: 0;
  transform: translateY(8px);
  animation: tLineIn 0.4s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes tLineIn {
  to { opacity: 1; transform: translateY(0); }
}
.t-time { color: #5f6c8a; }
.t-method-post { color: #fbbf24; font-weight: 600; }
.t-method-get { color: #4ecdc4; font-weight: 600; }
.t-method-evt { color: #c7a4ff; font-weight: 600; }
.t-path { color: #c7d3e8; }
.t-status-ok { color: #34d399; }
.t-status-201 { color: #34d399; }
.t-status-warn { color: #fbbf24; }
.t-amount { color: #fbbf24; }
.t-id { color: #5f6c8a; }
.t-arrow { color: #5f6c8a; }
.terminal-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: rgba(15, 22, 38, 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}
.terminal-foot strong { color: var(--fg); font-weight: 600; }
.dot-sep { color: var(--fg-dim); }

@media (max-width: 720px) {
  .terminal-section { padding: 80px 0; }
  .terminal-body { font-size: 11px; padding: 14px 12px; height: 280px; }
  .terminal-bar, .terminal-foot { padding: 10px 12px; font-size: 11px; }
}

/* ===========================================================
   5. PRICING CALCULATOR
   =========================================================== */
.calc-section { padding: 120px 0; }
.calc {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.calc-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}
.calc-input > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.slider-wrap { margin-bottom: 32px; }
input[type="range"]#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-elev-2);
  border-radius: 6px;
  outline: none;
  margin-bottom: 12px;
  cursor: grab;
}
input[type="range"]#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  border: 3px solid var(--bg);
  cursor: grab;
  transition: transform 0.2s;
  box-shadow: 0 4px 14px rgba(59,130,246,0.4);
}
input[type="range"]#volume-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]#volume-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.05); }
input[type="range"]#volume-slider::-moz-range-thumb {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  border: 3px solid var(--bg);
  cursor: grab;
  box-shadow: 0 4px 14px rgba(59,130,246,0.4);
}
.slider-marks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
}
.calc-volume {
  text-align: center;
  padding: 24px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.vol-label { display: block; font-size: 12px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.vol-value {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #fff 0%, #b4c4e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vol-unit { display: block; font-size: 13px; color: var(--fg-muted); margin-top: 4px; }

.calc-output {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-recommendation {
  position: relative;
  background: rgba(15, 22, 38, 0.78);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 20px;
  padding: 32px;
  overflow: hidden;
}
.plan-recommendation::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(251,191,36,0.10), transparent 65%);
  pointer-events: none;
}
.plan-recommendation > * { position: relative; }
.plan-label {
  display: block;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 600;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 6px 0 10px;
  font-family: var(--font-display);
}
.plan-amount {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
}
.plan-currency { font-size: 30px; color: var(--fg-muted); }
.plan-period { font-size: 16px; color: var(--fg-muted); font-weight: 500; margin-left: 4px; }
.plan-desc { color: var(--fg-muted); font-size: 14px; margin: 0 0 20px; min-height: 38px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 8px; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
}
.plan-features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
  background-size: contain;
  margin-top: 3px;
}

.savings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.savings-label { display: block; font-size: 12px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.savings-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.saving-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-elev-1);
  border-radius: 10px;
}
.comp-name { font-size: 13.5px; color: var(--fg-muted); }
.comp-save {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--mint);
  font-weight: 600;
}
.savings-foot { font-size: 11px; color: var(--fg-dim); margin: 0; line-height: 1.5; }

.fee-scale {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.fee-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: border-color .2s, background .2s, transform .2s;
}
.fee-row span:first-child { font-size: 11.5px; color: var(--fg-dim); }
.fee-row span:last-child { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: var(--fg-muted); }
.fee-row.is-active {
  background: var(--bg-card);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.fee-row.is-active span:last-child { color: var(--primary); }
@media (max-width: 880px) {
  .fee-scale { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .calc-section { padding: 80px 0; }
  .calc { grid-template-columns: 1fr; }
  .calc-input, .plan-recommendation { padding: 24px; }
}

/* ===========================================================
   6. COMPARISON TABLE
   =========================================================== */
.compare-section {
  padding: 120px 0;
  background: var(--bg-elev-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.compare-table-wrap {
  max-width: 1080px;
  margin: 0 auto;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
}
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.compare-table th, .compare-table td {
  padding: 18px 16px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table th { font-weight: 600; color: var(--fg-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(15, 22, 38, 0.5); }
.compare-table th.col-feature { text-align: left; padding-left: 24px; }
.compare-table td:first-child { text-align: left; padding-left: 24px; font-weight: 500; color: var(--fg); }
.col-us {
  background: linear-gradient(180deg, rgba(251,191,36,0.10), transparent);
  color: var(--accent) !important;
  font-weight: 700 !important;
  position: relative;
}
.col-us::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.col-us .logo-mini {
  width: 16px; height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}
.cell-yes {
  color: var(--mint);
  font-weight: 600;
  background: rgba(52,211,153,0.05);
}
.compare-table tbody td.col-us, /* fallback */
.compare-table tbody tr td:nth-child(2) {
  background: rgba(251,191,36,0.06);
  color: var(--fg) !important;
  font-weight: 600;
}
.cell-no { color: var(--fg-dim); }
.cell-partial { color: var(--accent); opacity: 0.7; font-size: 13px; }
.compare-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.compare-fineprint {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .compare-section { padding: 80px 0; }
  .compare-table th, .compare-table td { padding: 14px 10px; font-size: 12px; }
  /* Hint that the table scrolls horizontally on mobile */
  .compare-table-wrap {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    position: relative;
    box-shadow: inset -22px 0 22px -22px rgba(251,191,36,0.35);
  }
  .compare-table-wrap::after {
    content: '← faites glisser →';
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-align: center;
    color: var(--fg-dim);
    padding: 6px 0 8px;
    border-top: 1px solid var(--border);
    background: rgba(15, 22, 38, 0.5);
    letter-spacing: 0.08em;
  }
  .compare-table th:first-child, .compare-table td:first-child {
    position: sticky;
    left: 0;
    background: #0e1626;
    z-index: 3;
    border-right: 1px solid var(--border-strong);
    box-shadow: 6px 0 12px -6px rgba(0,0,0,0.6);
  }
  .compare-table thead th:first-child { background: #0a1220; z-index: 4; }
}

/* ===========================================================
   7. CUSTOMER STORIES
   =========================================================== */
.stories-section { padding: 120px 0; }
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.story-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.story-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.story-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
}
.story-avatar-1 { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.story-avatar-2 { background: linear-gradient(135deg, var(--coral), var(--accent)); }
.story-avatar-3 { background: linear-gradient(135deg, var(--mint), var(--primary)); }
.story-name { font-weight: 600; font-size: 15px; color: var(--fg); }
.story-role { font-size: 13px; color: var(--fg-muted); }
.story-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.story-quote {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg);
  margin: 0 0 24px;
  font-style: italic;
  letter-spacing: -0.005em;
}
.story-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.metric { text-align: left; }
.metric-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(110deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric-label {
  font-size: 11.5px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .stories-section { padding: 80px 0; }
  .stories-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ===========================================================
   8. FAQ
   =========================================================== */
.faq-section { padding: 120px 0 80px; background: var(--bg-elev-1); border-top: 1px solid var(--border); }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] {
  background: rgba(15, 22, 38, 0.78);
  border-color: rgba(59,130,246,0.3);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  width: 18px; height: 18px;
  color: var(--fg-muted);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
  padding: 0 24px 22px;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.65;
  animation: faqOpen 0.3s cubic-bezier(.2,.8,.2,1);
}
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--primary); }
.faq-answer a:hover { text-decoration: underline; }
.faq-answer code {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================================================
   9. FOOTER manifesto
   =========================================================== */
.footer2 {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 100px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(59,130,246,0.10), transparent 60%);
  pointer-events: none;
}
.footer2 > .container { position: relative; }
.footer2-manifesto {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}
.footer2-manifesto p {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0 0 28px;
}
.footer2-manifesto p br + br { display: none; }

.footer2-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer2-brand .brand2 { margin-bottom: 14px; }
.footer2-brand p { color: var(--fg-muted); font-size: 13.5px; max-width: 320px; line-height: 1.55; }
.footer2-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer2-col h4 {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin: 0 0 16px;
}
.footer2-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer2-col a {
  font-size: 14px;
  color: var(--fg-muted);
  transition: color 0.2s;
  display: inline-block;
}
.footer2-col a:hover { color: var(--fg); transform: translateX(2px); }

.footer2-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--fg-dim);
}
.footer2-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.footer2-status .status-dot {
  width: 8px; height: 8px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--mint);
  animation: pulse 1.6s ease-in-out infinite;
}

@media (max-width: 720px) {
  .footer2 { padding: 70px 0 28px; }
  .footer2-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer2-cols { grid-template-columns: repeat(2, 1fr); }
  .footer2-bottom { flex-direction: column; gap: 12px; }
}
