/* CandiTrail — Landing publique. S'appuie exclusivement sur les tokens de main.css
   (accent slate, gradient signature, Bricolage Grotesque) → dark mode + responsive
   automatiques. Namespace .lp-* pour éviter toute collision avec l'app. */

/* ── Page ─────────────────────────────────────────────────────────────────── */
.lp { background: var(--bg-primary); color: var(--text-primary); }
.lp-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-5); }

/* ── Bandeau bêta (honnête, slim, non défilant) ───────────────────────────── */
.lp-banner {
  background: var(--accent-subtle);
  border-bottom: 1px solid var(--accent-100);
  color: var(--accent-700);
  font-size: 13px;
  text-align: center;
  padding: var(--space-2) var(--space-4);
}
.lp-banner strong { font-weight: 650; }
[data-theme="dark"] .lp-banner { color: var(--accent-200); }

/* ── Navigation (une ligne au desktop) ────────────────────────────────────── */
.lp-nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg-primary) 85%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-default);
}
.lp-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); height: 64px;
}
.lp-nav__brand { display: inline-flex; align-items: center; }
.lp-nav__brand .brand-logo--full { height: 30px; }
.lp-nav__actions { display: flex; align-items: center; gap: var(--space-2); }
.lp-nav__toggle { padding: 7px; line-height: 0; }
.lp-nav__login { display: none; }
@media (min-width: 560px) { .lp-nav__login { display: inline-flex; } }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.lp-hero { position: relative; overflow: hidden; }
.lp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(720px 420px at 78% -6%, var(--accent-subtle), transparent 60%);
}
.lp-hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: var(--space-7);
  align-items: center;
  padding: var(--space-8) 0 var(--space-7);
}
@media (min-width: 880px) {
  .lp-hero__inner { grid-template-columns: 1.05fr 0.95fr; padding: var(--space-9) 0 var(--space-8); }
}
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 4px 11px; border-radius: var(--radius-full);
  background: var(--surface-1); border: 1px solid var(--border-default);
  box-shadow: var(--shadow-xs);
  font-size: 12.5px; font-weight: 550; color: var(--text-secondary);
  margin-bottom: var(--space-4);
}
.lp-eyebrow .dot {
  width: 7px; height: 7px; border-radius: var(--radius-full);
  background: var(--success); box-shadow: 0 0 0 3px var(--success-bg);
}
.lp-h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  line-height: var(--lh-tight); letter-spacing: -0.02em;
  margin: 0 0 var(--space-4); color: var(--text-primary);
}
.lp-h1 .grad {
  background: var(--gradient-signature);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-lead {
  font-size: clamp(16px, 2.2vw, 19px); line-height: var(--lh-normal);
  color: var(--text-secondary); max-width: 38ch; margin: 0 0 var(--space-6);
}
.lp-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.lp-cta-row .btn-primary, .lp-cta-row .btn-secondary { padding: 11px 20px; font-size: 15px; }
.lp-hero__note { margin-top: var(--space-4); font-size: 13px; color: var(--text-muted); }

/* Mock produit (Kanban stylisé, 100% CSS, suit le thème) */
.lp-mock {
  position: relative;
  background: var(--surface-2); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--space-4); overflow: hidden;
}
.lp-mock__bar { display: flex; gap: 6px; margin-bottom: var(--space-4); }
.lp-mock__bar span { width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--border-strong); }
.lp-mock__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.lp-mock__col { display: flex; flex-direction: column; gap: var(--space-2); }
.lp-mock__coltitle { font-size: 11px; font-weight: 650; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.lp-mock__card {
  background: var(--surface-1); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-xs);
  padding: var(--space-3); display: flex; flex-direction: column; gap: 6px;
}
.lp-mock__card b { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.lp-mock__card small { font-size: 11px; color: var(--text-muted); }
.lp-mock__line { height: 5px; border-radius: var(--radius-full); background: var(--bg-selected); }
.lp-mock__line.w60 { width: 60%; } .lp-mock__line.w80 { width: 80%; } .lp-mock__line.w40 { width: 40%; }
.lp-mock__pill { align-self: flex-start; font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: var(--radius-full); }
.lp-mock__pill.is-accent { background: var(--accent-light); color: var(--accent); }
.lp-mock__pill.is-ok { background: var(--success-bg); color: var(--success); }
.lp-mock__pill.is-warn { background: var(--warning-bg); color: var(--warning); }

/* ── Bandeau de valeur (3 points, famille de layout distincte) ─────────────── */
.lp-values {
  display: grid; grid-template-columns: 1fr; gap: var(--space-4);
  padding: var(--space-6) 0; border-top: 1px solid var(--border-default);
}
@media (min-width: 720px) { .lp-values { grid-template-columns: repeat(3, 1fr); } }
.lp-value { display: flex; gap: var(--space-3); align-items: flex-start; }
.lp-value__ic { flex: none; color: var(--accent); margin-top: 2px; }
.lp-value h3 { font-size: 15px; margin: 0 0 2px; color: var(--text-primary); }
.lp-value p { font-size: 13.5px; color: var(--text-secondary); margin: 0; line-height: var(--lh-normal); }

/* ── En-tête de section ───────────────────────────────────────────────────── */
.lp-section { padding: var(--space-8) 0; }
.lp-section--alt { background: var(--bg-secondary); }
.lp-head { max-width: 640px; margin: 0 auto var(--space-7); text-align: center; }
.lp-kicker {
  display: inline-block; font-size: 12.5px; font-weight: 650; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3);
}
.lp-h2 {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px);
  line-height: var(--lh-snug); letter-spacing: -0.015em; margin: 0 0 var(--space-3);
  color: var(--text-primary);
}
.lp-sub { font-size: 16px; color: var(--text-secondary); line-height: var(--lh-normal); margin: 0; }

/* ── Spotlight (feature mise en avant, asymétrique) ───────────────────────── */
.lp-spotlight {
  display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center;
}
@media (min-width: 880px) { .lp-spotlight { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.lp-spotlight__media {
  background: var(--surface-2); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3);
}
.lp-spotlight h3 { font-family: var(--font-display); font-size: 24px; margin: 0 0 var(--space-3); color: var(--text-primary); }
.lp-spotlight p { color: var(--text-secondary); line-height: var(--lh-normal); margin: 0 0 var(--space-4); }
.lp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.lp-checks li { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--text-secondary); font-size: 14.5px; }
.lp-checks svg { flex: none; color: var(--success); margin-top: 3px; }

/* ── Grille de fonctionnalités (cartes) ───────────────────────────────────── */
.lp-features {
  display: grid; grid-template-columns: 1fr; gap: var(--space-4);
}
@media (min-width: 600px) { .lp-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .lp-features { grid-template-columns: repeat(3, 1fr); } }
.lp-feature {
  background: var(--surface-1); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: var(--space-5);
  box-shadow: var(--shadow-card); transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.lp-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--border-strong); }
.lp-feature__ic {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-subtle); color: var(--accent); margin-bottom: var(--space-4);
}
.lp-feature h3 { font-size: 16.5px; margin: 0 0 var(--space-2); color: var(--text-primary); }
.lp-feature p { font-size: 14px; color: var(--text-secondary); line-height: var(--lh-normal); margin: 0; }

/* ── Étapes (« comment ça marche ») ───────────────────────────────────────── */
.lp-steps { display: grid; grid-template-columns: 1fr; gap: var(--space-5); counter-reset: step; }
@media (min-width: 760px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }
.lp-step { position: relative; padding-top: var(--space-5); }
.lp-step__num {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  width: 34px; height: 34px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gradient-signature); color: var(--on-gradient);
  box-shadow: var(--shadow-accent); margin-bottom: var(--space-3);
}
.lp-step h3 { font-size: 17px; margin: 0 0 var(--space-2); color: var(--text-primary); }
.lp-step p { font-size: 14px; color: var(--text-secondary); line-height: var(--lh-normal); margin: 0; }

/* ── Section honnêteté bêta ───────────────────────────────────────────────── */
.lp-beta {
  background: var(--surface-1); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: var(--space-7); display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: center;
}
@media (min-width: 820px) { .lp-beta { grid-template-columns: 1.2fr 1fr; padding: var(--space-8); } }
.lp-beta h2 { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 30px); margin: 0 0 var(--space-3); color: var(--text-primary); }
.lp-beta p { color: var(--text-secondary); line-height: var(--lh-normal); margin: 0 0 var(--space-3); }
.lp-beta__facts { display: flex; flex-direction: column; gap: var(--space-3); }
.lp-fact { display: flex; gap: var(--space-3); align-items: flex-start; }
.lp-fact__ic { flex: none; color: var(--accent); margin-top: 2px; }
.lp-fact b { display: block; font-size: 14.5px; color: var(--text-primary); }
.lp-fact span { font-size: 13px; color: var(--text-muted); }

/* ── CTA final (dégradé signature) ────────────────────────────────────────── */
.lp-final { padding: var(--space-8) 0; }
.lp-final__card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--gradient-signature); color: var(--on-gradient);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
  padding: var(--space-9) var(--space-5);
}
.lp-final__card h2 { font-family: var(--font-display); font-size: clamp(28px, 4.5vw, 40px); margin: 0 0 var(--space-3); color: var(--on-gradient); }
.lp-final__card p { font-size: 17px; opacity: 0.92; margin: 0 0 var(--space-6); }
.lp-final .btn-on-grad {
  background: #fff; color: var(--accent-700);
  padding: 12px 26px; font-size: 15.5px; font-weight: 600;
  border-radius: var(--radius-xs); text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--space-2);
  box-shadow: var(--shadow-md); transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.lp-final .btn-on-grad:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.lp-final__note { margin-top: var(--space-4); font-size: 13px; opacity: 0.85; }

/* ── Reveal au scroll ─ progressive enhancement ───────────────────────────────
   Masqué uniquement quand JS est actif (html.js) : sans JS, tout reste visible.
   Désactivé aussi si prefers-reduced-motion. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease-emphasized), transform 0.6s var(--ease-emphasized); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .lp-feature:hover { transform: none; }
}
