/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/*
 * Color/type/radius/shadow tokens live in design-tokens.css (loaded before
 * this file in views/layout.ejs) — institutional redesign, see git history
 * on branch redesign/institutional-identity. Everything (including
 * --accent-dark/--border-accent, previously duplicated here) now lives in
 * that single file: a second :root block in this file was found to silently
 * fail to apply in production (cause not fully root-caused — possibly a
 * Chromium quirk with same-named custom properties split across two
 * stylesheets) — consolidating into one :root avoids the whole bug class.
 */

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 165px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background-color: transparent;
}
.logo-svg {
  height: 195px;
  width: auto;
  display: block;
  background: transparent;
}
.site-logo--footer .logo-svg {
  height: 202.5px;
}

/* ===== HERO ===== */
.hero {
  padding: 8rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}
.hero-eyebrow {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.hero-lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 46ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.trust-badge {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}
.trust-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}


/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-cta-primary { flex: 0 0 auto; }
.hero-cta-secondary { flex: 0 0 auto; }
.hero-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.hero-logo-tagline {
  text-align: center;
  font-size: 1.06rem; /* ~17px */
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

/* Social proof */
.hero-social-proof {
  text-align: center;
  padding: 2rem 0 0;
}
.sp-counter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.sp-number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.sp-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ===== REDESIGNED HERO (P0) ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  min-height: auto;
}

/* Trust band */
.hero-trust-band {
  margin-bottom: 3rem;
  width: 100%;
}
.hero-trust-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}
.hero-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-trust-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.hero-trust-logo:hover { opacity: 0.85; }
.htl-abbr {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--fg-muted);
}
.htl-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--fg);
}

/* Hero text */
.hero-text {
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.hero-eyebrow {
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 1.25rem;
}
.hero-lede {
  max-width: 52ch;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
}

/* SP Counters row */
.hero-sp-counters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.sp-counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.sp-counter-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.sp-counter-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  white-space: nowrap;
}
.sp-counter-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Video demo */
.hero-demo-wrap {
  width: 100%;
  max-width: 760px;
  margin-bottom: 2.5rem;
}
.hero-demo-video {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  position: relative;
  background: #0F172A;
}
.hero-demo-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}
.hero-demo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 2;
}
.hero-demo-placeholder.has-video .hero-demo-thumb {
  display: none;
}
.hero-demo-placeholder.has-video .hero-demo-overlay {
  display: flex;
}
.is-playing .hero-video {
  display: block;
}
.is-playing .hero-demo-placeholder {
  display: none;
}
.hero-demo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0,0,0,0.25);
}
.hero-demo-play {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
}
.hero-demo-play:hover { transform: scale(1.08); }
.hero-demo-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}

/* Play/Pause center button */
.hero-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  backdrop-filter: blur(4px);
}
.hero-demo-video:hover .hero-play-btn,
.hero-play-btn.paused {
  opacity: 1;
}
.hero-play-btn:hover {
  background: rgba(37,99,235,0.7);
  border-color: rgba(255,255,255,0.6);
}
.hero-play-btn.paused .icon-play { display: none; }
.hero-play-btn.paused .icon-pause { display: block !important; }
.hero-play-btn:not(.paused) .icon-play { display: block; }
.hero-play-btn:not(.paused) .icon-pause { display: none; }

/* Sound toggle button */
.hero-sound-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  backdrop-filter: blur(4px);
  padding: 0;
}
.hero-demo-video:hover .hero-sound-btn {
  opacity: 1;
}
.hero-sound-btn:hover {
  background: rgba(0,0,0,0.7);
}
.hero-sound-btn.muted .icon-sound-on { display: none; }
.hero-sound-btn.muted .icon-sound-off { display: block !important; }
.hero-sound-btn:not(.muted) .icon-sound-on { display: block; }
.hero-sound-btn:not(.muted) .icon-sound-off { display: none; }

/* Hide controls when video is not playing */
.hero-demo-video:not(.is-playing) .hero-play-btn,
.hero-demo-video:not(.is-playing) .hero-sound-btn {
  opacity: 0;
  pointer-events: none;
}
.hero-demo-video.is-playing:hover .hero-play-btn {
  opacity: 1;
}

#video-modal {
  flex-direction: column;
}

/* CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.hero-cta-primary {
  padding: 0.9rem 2rem;
}
.hero-cta-secondary {
  padding: 0.9rem 2rem;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--fg-muted);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.hero-cta-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== HERO 4 MÉTIERS GRID ===== */
.hero-4m {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.hero-4m-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.hero-4m-cell {
  position: relative;
  overflow: hidden;
}
.hero-4m-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hero-4m-cell:hover img {
  transform: scale(1.04);
}
.hero-4m-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.35);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}
.hero-4m-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.62);
  pointer-events: none;
}
.hero-4m-accroche {
  text-align: center;
  color: #fff;
  max-width: 620px;
  padding: 2rem;
}
.hero-4m-intro {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.35;
}
.hero-4m-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hero-4m-features li {
  font-size: clamp(0.82rem, 1.6vw, 1.05rem);
  line-height: 1.5;
  text-align: left;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.hero-4m-icon {
  flex-shrink: 0;
  font-size: 1rem;
}
.hero-4m-closer {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 800;
  margin-top: 0.8rem;
  color: #38bdf8;
  letter-spacing: -0.01em;
}

/* ===== ONE FLAT RATE SECTION ===== */
.ofr {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.ofr-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.ofr .section-sub {
  text-align: center;
  margin-top: 0.5rem;
}
.ofr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.ofr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.ofr-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.ofr-card--featured {
  border-color: var(--fg);
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(37,99,235,0.15);
}
.ofr-card--featured:hover {
  border-color: var(--fg);
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(37,99,235,0.2);
  transform: translateY(-3px);
}
.ofr-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ofr-plan {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.ofr-price {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.ofr-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 1.25rem;
}
.ofr-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex: 1;
}
.ofr-cta {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.ofr-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.ofr-cta--featured {
  background: var(--fg);
}
.ofr-cta--featured:hover {
  background: #0F172A;
}

/* Responsive — Ofr */
@media (max-width: 768px) {
  .ofr-grid { grid-template-columns: 1fr; gap: 1rem; }
  .ofr-card--featured { order: -1; }
  .ofr { padding: 4rem 1.5rem; }
}

/* RTL — Ofr */
html[dir="rtl"] .ofr-card--featured { order: 0; }

/* ===== SERVICES SECTION ===== */
.services { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--border); }
.services-inner { max-width: 1200px; margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.services-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.services-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(37,99,235,0.2);
  transform: translateY(-2px);
}
.services-icon { line-height: 0; }
.services-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
}
.services-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== FLOW SECTION ===== */
.flow {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.flow-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--fg-muted);
  font-size: 1rem;
}
.flow-grid {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.flow-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.flow-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.flow-arrow {
  display: flex;
  align-items: center;
  padding-top: 2.5rem;
  flex-shrink: 0;
}
.flow-num {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.flow-icon { margin-bottom: 1rem; }
.flow-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.flow-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.flow-tags span {
  font-size: 0.68rem;
  color: #8B6914;
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.flow-bottom {
  text-align: center;
  font-size: 0.95rem;
  color: var(--fg-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.flow-bottom strong { color: var(--accent); }

/* ===== OUTCOMES ===== */
.outcomes {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.outcomes-inner {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.outcomes-headline { margin-bottom: 3rem; text-align: center; }
.outcomes-headline .section-eyebrow,
.outcomes-headline h2 { text-align: center; }
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.outcome-card {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.outcome-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.outcome-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.outcomes-quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
}
.outcomes-quote p {
  font-style: italic;
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.outcomes-quote span {
  font-size: 0.75rem;
  color: #94A3B8;
}

/* ===== CASE STUDIES — P1 ===== */
.case-studies {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.case-studies-inner { max-width: 1200px; margin: 0 auto; }
.case-studies .section-eyebrow,
.case-studies .section-title,
.case-studies .section-sub { text-align: center; }
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.cs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cs-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.cs-card-image {
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
}
.cs-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.cs-card:hover .cs-thumb { transform: scale(1.03); }
.cs-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.cs-sector {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cs-card-body {
  padding: 1.5rem;
}
.cs-company {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.cs-challenge, .cs-result {
  margin-bottom: 0.75rem;
}
.cs-label-before, .cs-label-after {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 0.3rem;
  margin-right: 0.5rem;
}
.cs-label-before {
  background: rgba(239,68,68,0.1);
  color: #EF4444;
  border: 1px solid rgba(239,68,68,0.2);
}
.cs-label-after {
  background: rgba(37,99,235,0.1);
  color: #8B6914;
  border: 1px solid rgba(37,99,235,0.2);
}
.cs-challenge p, .cs-result p {
  font-size: 0.88rem;
  color: var(--fg);
  line-height: 1.55;
}
.cs-metrics {
  display: flex;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.cs-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cs-metric-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
}
.cs-metric--accent { color: var(--accent); }
.cs-metric--green { color: #059669; }
.cs-metric-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-metrics { gap: 0.75rem; }
}

/* ===== CLOSING ===== */
.closing { padding: 6rem 2rem; background: var(--bg-alt); max-width: 1200px; margin: 0 auto; }
.closing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.closing-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.closing-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.closing-text p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.closing-cta {
  display: inline-block;
  background: linear-gradient(135deg, #1B2B4B, #0A1628);
  color: #fff;
  border-radius: 10px;
  padding: 0.9rem 2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 4px 16px rgba(27,43,75,0.25);
  transition: box-shadow 0.2s, transform 0.15s;
}

/* ===== NAVBAR CTA ===== */
.navbar-cta {
  margin-left: auto;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(27,43,75,0.3);
}
.navbar-cta:hover { opacity: 0.92; box-shadow: 0 4px 20px rgba(37,99,235,0.4); transform: translateY(-1px); }

/* ===== SIGNUP SECTION ===== */
.signup-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 11rem clears the fixed .navbar (~166px tall on desktop) — 8rem (128px)
     left the title tucked 38px under the navbar's translucent blur. */
  padding: 11rem 2rem 4rem;
  background: var(--bg);
}
.signup-container {
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.signup-container h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.signup-container > p {
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.signup-form { text-align: left; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--fg);
}
.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
}
.price-amount {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}
.price-period {
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.price-desc {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-left: auto;
}
.form-error {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  color: #DC2626;
  font-size: 0.85rem;
  text-align: center;
}
/* ===== PLAN SELECTOR ===== */
.plan-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--bg-card);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%2364748B' d='M7 9L2 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s;
}
.plan-select:focus { outline: none; border-color: var(--accent); }

/* ===== BILLING TOGGLE ===== */
.billing-toggle {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.billing-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.85rem;
  position: relative;
}
.billing-option input[type="radio"] { display: none; }
.billing-option--active {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.billing-label { font-weight: 600; color: var(--fg); }
.billing-save {
  font-size: 0.7rem;
  color: #059669;
  font-weight: 600;
  background: rgba(5,150,105,0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

.signup-footer {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ===== CHECKOUT SUCCESS ===== */
.success-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  background: var(--bg);
}
.success-container { max-width: 480px; width: 100%; text-align: center; }
.success-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  margin: 0 auto 1.5rem;
}
.success-container h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--fg);
}
.success-container p {
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.success-email {
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 2rem;
}
.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-dim); }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
}
.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-meta span {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.footer-legal-links {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-align: center;
}
.footer-legal-links a {
  color: var(--fg-muted);
  text-decoration: underline;
  transition: color 0.2s;
}
.footer-legal-links a:hover {
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .logo-svg { height: 90px; }
  .site-logo--footer .logo-svg { height: 52px; }
  .navbar-inner { height: 90px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
    padding-top: 7rem;
  }
  .hero-4m { margin: 0 1rem 2rem; aspect-ratio: 4 / 5; }
  .hero-4m-features li { font-size: 0.85rem; }
  .hero-4m-intro { font-size: 1rem; }
  .hero-4m-closer { font-size: 1.1rem; }
  .flow-grid { flex-direction: column; gap: 1rem; }
  .flow-arrow { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .outcomes-grid { grid-template-columns: 1fr; }
  .closing-inner { grid-template-columns: 1fr; }
  .closing-img { max-height: 260px; object-fit: cover; }
}
@media (max-width: 600px) {
  .logo-svg { height: 68px; }
  .hero { padding: 6rem 1.5rem 4rem; }
  .hero-4m { margin: 0 0.75rem 1.5rem; aspect-ratio: 3 / 4; border-radius: 12px; }
  .hero-4m-accroche { padding: 1rem; }
  .hero-4m-features li { font-size: 0.78rem; gap: 0.35rem; }
  .hero-4m-intro { font-size: 0.9rem; margin-bottom: 0.8rem; }
  .hero-4m-closer { font-size: 1rem; }
  .hero-4m-label { font-size: 0.6rem; bottom: 4px; left: 6px; }
  .flow, .services, .outcomes-inner, .closing { padding-left: 1.5rem; padding-right: 1.5rem; }
  .outcome-card { padding: 1.75rem; }
  .outcome-num { font-size: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== LANGUAGE SELECTOR ===== */
.navbar-lang {
  margin-left: 1rem;
}
.lang-select {
  appearance: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 5px 28px 5px 10px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.lang-select:hover {
  border-color: var(--accent);
  color: var(--fg);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.lang-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ===== NAVBAR RIGHT WRAPPER ===== */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(37,99,235,0.3);
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-dropdown-trigger:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}
.nav-dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.nav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 0.65rem 1.2rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.nav-dropdown-item:hover {
  background: var(--bg-subtle);
  color: var(--accent);
  border-left-color: var(--accent);
}
.nav-dropdown-item:first-child {
  border-radius: 12px 12px 0 0;
}
.nav-dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

/* ===== RTL (Arabic) ===== */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .flow-arrow {
  transform: scaleX(-1);
}
html[dir="rtl"] .closing-cta {
  direction: ltr;
}
html[dir="rtl"] .navbar-inner {
  flex-direction: row-reverse;
}
html[dir="rtl"] .navbar-right {
  flex-direction: row-reverse;
}
html[dir="rtl"] .nav-dropdown-menu {
  right: auto;
  left: 0;
}
html[dir="rtl"] .nav-dropdown-item {
  border-left: none;
  border-right: 3px solid transparent;
}
html[dir="rtl"] .nav-dropdown-item:hover {
  border-right-color: var(--accent);
}
html[dir="rtl"] .site-logo {
  align-items: center;
}
html[dir="rtl"] .trust-divider {
  margin: 0;
}
html[dir="rtl"] .price-desc {
  margin-left: 0;
  margin-right: auto;
}

/* ===== CJK / Arabic FONT OVERRIDES ===== */
/* Override CSS vars per-locale so every element inherits the right Unicode font first */
html[lang="zh"] { --font-head: 'Noto Sans SC', 'PingFang SC', 'Poppins', sans-serif; --font-body: 'Noto Sans SC', 'PingFang SC', 'DM Sans', sans-serif; }
html[lang="ja"] { --font-head: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'Poppins', sans-serif; --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'DM Sans', sans-serif; }
html[lang="ko"] { --font-head: 'Noto Sans KR', 'Malgun Gothic', 'Poppins', sans-serif; --font-body: 'Noto Sans KR', 'Malgun Gothic', 'DM Sans', sans-serif; }
html[lang="ar"] { --font-head: 'Noto Sans Arabic', 'Poppins', sans-serif; --font-body: 'Noto Sans Arabic', 'DM Sans', sans-serif; }

/* ===== PRICING SECTION ===== */
.pricing {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.pricing-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.pricing .section-eyebrow,
.pricing .section-title,
.pricing .section-sub {
  text-align: center;
}
.pricing .section-sub {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.pricing-grid--degressive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pricing-card--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md), 0 4px 24px rgba(37,99,235,0.15);
}
.pricing-card--featured:hover {
  box-shadow: var(--shadow-lg), 0 4px 32px rgba(37,99,235,0.2);
}
.preview-badge {
  display: inline-block;
  background: #F59E0B;
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.preview-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
}
.preview-pw-form {
  max-width: 360px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}
.pricing-card--best-value {
  border-color: var(--border);
}
.pricing-card--best-value:hover {
  border-color: var(--border-accent);
}
.pc-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 1;
}
.pc-starter-badge {
  display: inline-block;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.pc-badge-save {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(37,99,235,0.2);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.pc-badge-save--best {
  color: #059669;
  background: rgba(5,150,105,0.08);
  border-color: rgba(5,150,105,0.2);
}
.pc-header {
  margin-bottom: 0.75rem;
}
.pc-engagement {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pc-price {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.04em;
  line-height: 1;
}
.pc-period {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fg-muted);
  letter-spacing: 0;
}
.pc-card-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}
.pc-included {
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-align: center;
  margin-bottom: 0.75rem;
  font-style: italic;
}
.pc-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  flex: 1;
}
.pc-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.4;
}
.pc-feature svg { flex-shrink: 0; margin-top: 2px; }
.pc-cta {
  display: block;
  text-align: center;
  padding: 0.75rem;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
  margin-top: auto;
}
.pc-cta:hover { opacity: 0.88; }
.pc-cta--default {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
}
.pc-cta--default:hover { border-color: var(--accent); color: var(--accent); }
.pc-cta--featured {
  background: linear-gradient(135deg, #1B2B4B, #0A1628);
  color: #fff;
  border: 1px solid transparent;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(27,43,75,0.3);
}
.pc-cta--featured:hover { box-shadow: 0 4px 20px rgba(37,99,235,0.4); transform: translateY(-1px); }

/* Custom footer */
.pricing-custom-footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.pricing-custom-footer p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.pricing-custom-cta {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.pricing-custom-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ===== PRICING — Toggle + 6-tier grid ===== */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
}
.pricing-toggle-label {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color 0.2s;
  cursor: pointer;
}
.pricing-toggle-label.active { color: var(--fg); }
.pricing-toggle {
  width: 48px;
  height: 26px;
  background: var(--border);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.pricing-toggle.annual { background: var(--accent); }
.pricing-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.pricing-toggle.annual .pricing-toggle-thumb { transform: translateX(22px); }
.pricing-toggle-save {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #059669;
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.2);
  padding: 1px 6px;
  border-radius: 6px;
  margin-left: 4px;
  letter-spacing: 0.03em;
}

/* 6-tier grid */
.pricing-grid--6tier {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.pc-plan-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--fg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.pc-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}
.pc-price--custom {
  font-size: 1.4rem;
  color: var(--fg-muted);
  font-weight: 700;
}
.pc-target {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-bottom: 0.25rem;
}
.pc-ce-que-ca-change {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(0,212,170,0.06);
  border-left: 3px solid var(--accent);
  line-height: 1.4;
}
.pricing-card--enterprise {
  border-style: dashed;
  background: var(--bg-alt);
}
.pricing-card--enterprise .pc-header { margin-bottom: 0.5rem; }
.pricing-card--enterprise .pc-price {
  font-size: 1.5rem;
  color: var(--fg-muted);
  font-weight: 800;
}
.pc-best-value-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #059669;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 1;
}

/* Security badges */
.pricing-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.pricing-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.ps-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ps-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ps-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--fg);
  font-weight: 500;
}
.ps-badge-icon { font-size: 1rem; }
.ps-badge--efacture {
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: 20px;
  padding: 0.25rem 0.65rem;
  color: #065f46;
}

/* E-facturation horizontal banner */
.ps-banner--efacture {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 1px 4px rgba(16,185,129,0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: default;
}
.ps-banner--efacture:hover {
  box-shadow: 0 2px 12px rgba(16,185,129,0.25);
  transform: translateY(-1px);
}
.ps-banner--efacture[dir="rtl"] {
  flex-direction: row-reverse;
}
.ps-banner-check {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-banner-text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.1rem; }
.ps-banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.ps-banner-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: #10b981;
  line-height: 1.2;
}
.ps-banner-reform {
  font-size: 0.85rem;
  font-weight: 600;
  color: #b91c1c;
  line-height: 1.3;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-block;
}
@media (max-width: 480px) {
  .ps-banner--efacture { padding: 0.6rem 1rem; gap: 0.65rem; }
  .ps-banner-check { width: 30px; height: 30px; }
  .ps-banner-title { font-size: 0.85rem; }
  .ps-banner-sub { font-size: 0.75rem; }
  .ps-banner-reform { font-size: 0.78rem; }
}

/* FAQ */
.pricing-faq {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.faq-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-accent); }
.faq-q {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.faq-a {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== RESPONSIVE — Pricing ===== */
@media (max-width: 1000px) {
  .pricing-grid--degressive,
  .pricing-grid--6tier {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .pricing-grid--degressive,
  .pricing-grid--6tier {
    grid-template-columns: 1fr;
  }
  .pricing { padding: 4rem 1.5rem; }
  .pc-price { font-size: 1.8rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .pricing-security { flex-direction: column; gap: 1rem; }
}
@media (max-width: 1000px) {
  .pricing-grid--degressive {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .pricing-grid--degressive {
    grid-template-columns: 1fr;
  }
  .pricing { padding: 4rem 1.5rem; }
  .pc-price { font-size: 1.8rem; }
}

/* ===== RTL — Pricing ===== */
html[dir="rtl"] .pc-popular-badge {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}
html[dir="rtl"] .pc-feature svg {
  order: 1;
}
html[dir="rtl"] .pricing-grid--degressive {
  direction: rtl;
}

/* ===== PRICING — Savings Banner ===== */
.pricing-savings-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(5,150,105,0.08));
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0 auto 1rem;
  max-width: 480px;
}
.pricing-savings-icon { font-size: 1.1rem; }

/* Cloud Storage label inside pricing card */
.pc-cloud-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  margin-bottom: 0.15rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(37,99,235,0.25);
}
.pc-feature--cloud {
  padding-left: 0.2rem;
}


/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 5rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-header {
  margin-bottom: 2.5rem;
  text-align: center;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}
.contact-phone {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding: 1.25rem 2rem;
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  background: var(--accent-dim);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  cursor: pointer;
}
.contact-phone:hover {
  border-color: var(--accent);
  background: rgba(37,99,235,0.12);
  transform: translateY(-1px);
}
.contact-phone-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.contact-phone-flags {
  display: flex;
  gap: 6px;
  font-size: 1.25rem;
  line-height: 1;
}
.contact-phone-number {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.contact-phone-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.contact-phone-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  flex-wrap: wrap;
}
.contact-email {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding: 1.25rem 2rem;
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  background: var(--accent-dim);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  cursor: pointer;
}
.contact-email:hover {
  border-color: var(--accent);
  background: rgba(37,99,235,0.12);
  transform: translateY(-1px);
}
.contact-email-icon {
  display: flex;
  align-items: center;
  color: var(--fg-muted);
}
.contact-email-addr {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.contact-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0;
  color: var(--fg-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.contact-callback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.75rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(37,99,235,0.3);
}
.contact-callback-btn:hover { opacity: 0.92; box-shadow: 0 4px 20px rgba(37,99,235,0.4); transform: translateY(-1px); }
.contact-hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.contact-hours svg { flex-shrink: 0; }

/* ===== CALLBACK MODAL ===== */
.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.callback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
.callback-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  text-align: left;
  box-shadow: var(--shadow-lg);
}
.callback-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}
.callback-close:hover { color: var(--fg); }
.callback-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}
.callback-subtitle {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}
.callback-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg);
}
.form-field input,
.form-field select {
  padding: 0.7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}
.callback-submit {
  margin-top: 0.5rem;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
  box-shadow: 0 2px 12px rgba(37,99,235,0.25);
}
.callback-submit:hover:not(:disabled) { opacity: 0.92; box-shadow: 0 4px 20px rgba(37,99,235,0.35); transform: translateY(-1px); }
.callback-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.callback-success {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem 0;
}
.callback-success p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ===== RTL (Arabic) — Contact ===== */
html[dir="rtl"] .callback-title { padding-right: 0; padding-left: 2rem; }
html[dir="rtl"] .callback-close { right: auto; left: 1rem; }
html[dir="rtl"] .form-field select { background-position: left 10px center; padding-right: 1rem; padding-left: 30px; }
html[dir="rtl"] .contact-divider { flex-direction: row-reverse; }
html[dir="rtl"] .contact-callback-btn { flex-direction: row-reverse; }

/* ===== RESPONSIVE — Contact ===== */
@media (max-width: 480px) {
  .contact-section { padding: 3.5rem 1.5rem; }
  .contact-card { padding: 2rem 1.5rem; }
  .contact-phone-number { font-size: 1.3rem; }
  .callback-panel { padding: 2rem 1.5rem; }
}

/* ===== TASK PLANNER — Client Dashboard ===== */
.planner-section { margin-bottom: 32px; }
.planner-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.planner-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--fg); }
.planner-tabs { display: flex; gap: 4px; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 4px; }
.planner-tab { padding: 8px 16px; border-radius: 7px; border: none; background: none; color: var(--fg-muted); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.planner-tab.active { background: var(--accent); color: #fff; }
.planner-tab:hover:not(.active) { background: rgba(255,255,255,0.08); color: var(--fg); }

/* Overdue banner */
.overdue-banner { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: #FCA5A5; font-weight: 600; }
.overdue-banner .overdue-icon { font-size: 1.2rem; }

/* Kanban board */
.kanban-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kanban-col { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 14px; padding: 16px; min-height: 200px; }
.kanban-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kanban-col-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--fg-muted); }
.kanban-col-count { background: rgba(255,255,255,0.1); border-radius: 20px; padding: 2px 8px; font-size: 0.75rem; font-weight: 700; color: var(--fg-muted); }
.kanban-col.todo    { border-top: 3px solid #94A3B8; }
.kanban-col.in_progress { border-top: 3px solid var(--accent); }
.kanban-col.done    { border-top: 3px solid var(--success); }

/* Task cards */
.task-card { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; cursor: pointer; transition: all 0.15s; position: relative; }
.task-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.task-card-title { font-weight: 600; font-size: 0.88rem; color: var(--fg); margin-bottom: 6px; line-height: 1.35; }
.task-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-priority-badge { font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em; }
.priority-high   { background: rgba(239,68,68,0.15); color: #FCA5A5; }
.priority-medium { background: rgba(245,158,11,0.15); color: #FCD34D; }
.priority-low    { background: rgba(34,197,94,0.12); color: #86EFAC; }
.task-due-date { font-size: 0.75rem; color: var(--fg-muted); }
.task-due-date.overdue { color: #FCA5A5; font-weight: 600; }
.task-assignee { font-size: 0.72rem; color: var(--fg-muted); display: flex; align-items: center; gap: 4px; }
.task-done-check { position: absolute; top: 10px; right: 10px; font-size: 0.8rem; color: var(--success); }

/* Calendar view */
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-month { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--fg); }
.calendar-nav-btn { background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; color: var(--fg-muted); cursor: pointer; font-size: 0.85rem; }
.calendar-nav-btn:hover { border-color: var(--accent); color: var(--fg); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-day-header { text-align: center; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); padding: 6px 0; font-weight: 600; }
.calendar-day { min-height: 72px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px; padding: 6px; cursor: pointer; transition: all 0.1s; font-size: 0.8rem; }
.calendar-day:hover { border-color: var(--accent); background: rgba(37,99,235,0.05); }
.calendar-day.other-month { opacity: 0.35; }
.calendar-day.today { border-color: var(--accent); }
.calendar-day.has-tasks { border-color: rgba(37,99,235,0.4); }
.calendar-day-num { font-weight: 700; color: var(--fg); margin-bottom: 2px; }
.calendar-day-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; margin: 1px; }
.calendar-day-dot.high { background: #FCA5A5; }

/* List view */
.task-list-table { width: 100%; border-collapse: collapse; }
.task-list-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); padding: 8px 12px; border-bottom: 1px solid var(--border); font-weight: 600; }
.task-list-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.88rem; }
.task-list-table tr:hover td { background: rgba(255,255,255,0.03); }
.task-list-name { font-weight: 600; color: var(--fg); }
.task-list-done td { opacity: 0.5; }
.task-list-done .task-list-name { text-decoration: line-through; }
.sort-btn { background: none; border: none; color: var(--fg-muted); cursor: pointer; font-size: 0.72rem; font-weight: 600; padding: 2px 4px; }
.sort-btn:hover { color: var(--accent); }
.sort-btn.active { color: var(--accent); }

/* Task modal */
.task-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.task-modal { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 18px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; padding: 28px; position: relative; }
.task-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--fg-muted); font-size: 1.2rem; cursor: pointer; }
.task-modal-close:hover { color: var(--fg); }
.task-form-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--fg); }
.form-control { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--fg); font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: border-color 0.15s; }
.form-control:focus { border-color: var(--accent); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
textarea.form-control { resize: vertical; min-height: 80px; }
.btn-save { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border: none; border-radius: 8px; padding: 12px 24px; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: opacity 0.15s; }
.btn-save:hover { opacity: 0.85; }
.btn-delete { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #FCA5A5; border-radius: 8px; padding: 10px 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.btn-delete:hover { background: rgba(239,68,68,0.25); }
.task-status-select { display: flex; gap: 8px; }
.status-option { flex: 1; text-align: center; padding: 8px; border: 2px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 0.8rem; font-weight: 600; color: var(--fg-muted); background: none; transition: all 0.15s; }
.status-option:hover { border-color: var(--accent); }
.status-option.selected { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.task-form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }

/* Planner responsive */
@media (max-width: 768px) {
  .kanban-board { grid-template-columns: 1fr; }
  .planner-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 500px) {
  .task-list-table { font-size: 0.8rem; }
  .task-list-table th:nth-child(5), .task-list-table td:nth-child(5) { display: none; }
}

/* ===== URGENCY HOOK SCROLL BANNERS ===== */
.urgency-hook {
  background: #0B1120;
  padding: 2.5rem 1rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.urgency-hook-text {
  font-family: 'Sora', 'Poppins', 'Noto Sans Arabic', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.35;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .urgency-hook { padding: 2rem 1rem; }
  .urgency-hook-text { font-size: 1rem; }
}

/* ===== RGPD COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  padding: 1.25rem 2rem;
  font-family: var(--font-body);
  display: none;
  align-items: flex-start;
  gap: 1.5rem;
}
#cookie-banner.show { display: flex; }
#cookie-banner-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
#cookie-banner-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
#cookie-banner-text strong { color: var(--fg); font-weight: 600; }
#cookie-banner-text a { color: var(--accent); text-decoration: underline; }
#cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  align-items: center;
}
#cookie-banner .btn-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font-body);
}
#cookie-banner .btn-accept:hover { background: var(--accent-dark); }
#cookie-banner .btn-reject {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: var(--font-body);
}
#cookie-banner .btn-reject:hover { border-color: var(--fg-muted); color: var(--fg); }
#cookie-banner .btn-preferences {
  background: transparent;
  color: var(--accent);
  border: none;
  text-decoration: underline;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  font-family: var(--font-body);
}
@media (max-width: 640px) {
  #cookie-banner { flex-wrap: wrap; padding: 1rem 1.25rem; gap: 0.75rem; }
  #cookie-banner-text { flex: 1 1 100%; }
  #cookie-banner-actions { flex-wrap: wrap; }
}

/* ===== Cookie Preferences Panel ===== */
#cookie-preferences-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9998;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  width: 480px;
  max-width: calc(100vw - 2rem);
  padding: 1.5rem 1.75rem;
  font-family: var(--font-body);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.12);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
#cookie-preferences-panel.show {
  transform: translateX(-50%) translateY(0);
}
.cookie-prefs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cookie-prefs-header strong { font-size: 1.05rem; font-weight: 600; }
#cookie-prefs-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}
#cookie-prefs-close:hover { color: var(--fg); }
.cookie-prefs-category { margin-bottom: 1.25rem; }
.cookie-prefs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.cookie-prefs-row strong { font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 0.2rem; }
.cookie-prefs-row p { font-size: 0.8rem; color: var(--fg-muted); margin: 0; line-height: 1.4; }
.cookie-prefs-footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.cookie-prefs-footer .btn-accept {
  width: 100%;
  justify-content: center;
}

/* Toggle switch (cookie preferences) */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

@media (max-width: 640px) {
  #cookie-preferences-panel { width: 100%; left: 0; transform: translateY(120%); border-radius: 16px 16px 0 0; }
  #cookie-preferences-panel.show { transform: translateY(0); }
}

/* ===== WORKFLOWS PAGE ===== */
.wf-page {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 6rem;
}
.wf-hero {
  text-align: center;
  padding: 8rem 2rem 4rem;
  max-width: 760px;
  margin: 0 auto;
}
.wf-hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.wf-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.wf-hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 54ch;
  margin: 0 auto 2.5rem;
}
.wf-hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.wf-btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(37,99,235,0.25);
  transition: opacity 0.2s, transform 0.15s;
}
.wf-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.wf-btn-secondary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.wf-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.wf-section-head {
  text-align: center;
  padding: 0 2rem;
  margin-bottom: 3rem;
}
.wf-section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.wf-section-head p { font-size: 0.95rem; color: var(--fg-muted); }
.wf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 900px) { .wf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wf-grid { grid-template-columns: 1fr; } .wf-hero { padding: 6rem 1.5rem 3rem; } }
.wf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.wf-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.wf-card-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.wf-card-icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0; line-height: 1;
}
.wf-card-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--fg); line-height: 1.3; }
.wf-card-desc { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.55; margin-bottom: 1.25rem; flex: 1; }
.wf-card-stat {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  background: rgba(37,99,235,0.05);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
}
.wf-stat-num { font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.wf-stat-label { font-size: 0.78rem; color: var(--fg-muted); line-height: 1.4; }
.wf-card-divider { height: 1px; background: var(--border); margin: 0 0 1rem; }
.wf-card-meta { display: flex; flex-direction: column; gap: 0.75rem; }
.wf-meta-row { display: flex; flex-direction: column; gap: 0.2rem; }
.wf-meta-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.wf-meta-value { font-size: 0.8rem; color: var(--fg-muted); line-height: 1.5; }
.wf-steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.wf-steps-list li { font-size: 0.8rem; color: var(--fg-muted); display: flex; align-items: baseline; gap: 0.4rem; line-height: 1.45; }
.wf-steps-list li::before { content: '→'; color: var(--accent); font-size: 0.75rem; flex-shrink: 0; margin-top: 1px; }
.wf-systems { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-system-tag { font-size: 0.68rem; font-weight: 600; color: var(--fg-muted); background: var(--bg-alt); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; }
.wf-card-cta {
  display: block; text-align: center; margin-top: 1.25rem; padding: 0.7rem;
  border-radius: 10px; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  text-decoration: none; transition: opacity 0.2s, border-color 0.2s, color 0.2s;
  border: 1px solid var(--border); color: var(--fg);
}
.wf-card-cta:hover { border-color: var(--accent); color: var(--accent); }
.wf-custom { max-width: 680px; margin: 5rem auto 0; padding: 0 2rem; text-align: center; }
.wf-custom-inner { background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: 20px; padding: 3rem 2.5rem; box-shadow: var(--shadow-md); }
.wf-custom-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.wf-custom h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--fg); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.wf-custom p { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.6; margin-bottom: 1.75rem; }
.wf-footer-nav { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 2rem; text-align: center; margin-top: 5rem; }
.wf-footer-nav a { font-size: 0.85rem; color: var(--fg-muted); text-decoration: none; margin: 0 1rem; transition: color 0.2s; }
.wf-footer-nav a:hover { color: var(--accent); }
html[dir="rtl"] .wf-card-header { flex-direction: row-reverse; }
html[dir="rtl"] .wf-steps-list li { flex-direction: row-reverse; }
html[dir="rtl"] .wf-card-stat { flex-direction: row-reverse; }

/* Standalone "Tableau de bord" link — matches .topbar-nav a in portal.css so
   the button looks identical whichever stylesheet a page loads. */
.btn-dashboard-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.12s;
  white-space: nowrap;
}

/* Lucide icons — inline SVG helper (see lib/icons.js) */
.icon {
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
}
.btn-dashboard-link:hover { background: rgba(0,0,0,0.05); color: var(--fg); }