/* ===========================================================================
 * applanding-opt2 · Dossier narratif — état restauré
 * Hero prose + sections Problème/Solution/Méthode avec figures + CTA compact
 * ======================================================================== */

/* Sub-page: hide the global paper grid. */
body::before { display: none !important; }

/* ---- Hero prose ------------------------------------------------------- */

.applanding-hero--prose {
  max-width: var(--w-content);
  margin-inline: auto;
  padding: var(--s-16) var(--s-6) var(--s-6);
}

.applanding-hero--prose .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--s-4);
}

.applanding-hero--prose h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--color-text);
  margin-bottom: var(--s-3);
  max-width: none;
}

.applanding-hero--prose .hero-lead {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 0;
  /* base.css sets p { max-width: 62ch } globally — override to fill the
   * full prose container width so the sentence wraps naturally rather
   * than cutting mid-line inside a wide 960 px column. */
  max-width: none;
}

/* ---- Section labels (Problème / Solution / Méthode) ------------------ */

.applanding__section-label {
  max-width: var(--w-content);
  margin: var(--s-8) auto var(--s-3);
  padding-inline: var(--s-6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
}

/* ---- Chapter (prose container) --------------------------------------- */

.applanding__chapter {
  max-width: var(--w-content);
  margin-inline: auto;
  padding: 0 var(--s-6) var(--s-6);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
}

.applanding__chapter p {
  margin-bottom: var(--s-3);
  max-width: none;
}

.applanding__chapter p:last-of-type { margin-bottom: 0; }

/* Drop cap — first chapter (intro) only */
.applanding__chapter--intro p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
  float: left;
  line-height: 0.9;
  padding-right: var(--s-3);
  color: var(--color-accent);
}

/* ---- Screenshot figure ------------------------------------------------ */

.applanding__figure--screenshot {
  max-width: 960px;
  margin: var(--s-4) auto var(--s-6);
  padding-inline: var(--s-6);
}

.applanding__figure-screen {
  aspect-ratio: 16 / 9;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
  border-radius: 8px;
}

.applanding__figure-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-border) 0.5px, transparent 0.5px),
    linear-gradient(to bottom, var(--color-border) 0.5px, transparent 0.5px);
  background-size: 40px 40px;
  opacity: 0.4;
}

.applanding__figure-screen-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.applanding__figure-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--color-text-muted);
  margin-top: var(--s-4);
  text-align: center;
  max-width: var(--w-prose);
  margin-inline: auto;
  display: block;
}

/* ---- Pipeline figure (diagramme 4 blocs) ----------------------------- */

.applanding__figure--pipeline {
  max-width: 960px;
  margin: var(--s-8) auto var(--s-12);
  padding: var(--s-8);
  background: color-mix(in oklch, var(--color-blueprint) 4%, var(--color-bg));
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

[data-theme="dark"] .applanding__figure--pipeline {
  background: color-mix(in oklch, var(--color-blueprint) 7%, var(--color-bg));
}

.applanding__pipeline-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  align-items: center;
}

@media (max-width: 700px) {
  .applanding__pipeline-blocks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .applanding__pipeline-blocks { grid-template-columns: 1fr; }
}

.applanding__pipeline-block {
  border: 1px solid var(--color-border-strong);
  padding: var(--s-6);
  background: var(--color-bg);
  position: relative;
  border-radius: 6px;
}

.applanding__pipeline-block-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--s-2);
}

.applanding__pipeline-block-name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--color-text);
  font-weight: 500;
}

/* ---- CTA compact inside .moe-band--compact --------------------------- */

.moe-band--compact {
  padding-block: var(--s-8) var(--s-8);
  min-height: 0;
  /* Breathing room between last chapter and the red CTA band.
   * base.css moe-band has no margin-top; add it scoped to compact variant
   * so the shared .moe-band token is untouched. */
  margin-top: var(--s-12);
}

.applanding__cta-min {
  max-width: var(--w-content);
  margin-inline: auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding-inline: var(--s-6);
}

.applanding__cta-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.625rem);
  font-weight: 500;
  color: var(--moe-cream, #F5F1E8);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.applanding__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  border: 1px solid var(--color-accent);
  text-decoration: none;
  border-radius: 8px;
  transition:
    transform 220ms cubic-bezier(.4,0,.2,1),
    box-shadow 220ms cubic-bezier(.4,0,.2,1),
    background 220ms cubic-bezier(.4,0,.2,1);
}

.applanding__cta-arrow {
  width: 18px;
  height: 9px;
  transition: transform 220ms cubic-bezier(.4,0,.2,1);
}

.applanding__cta-btn:hover,
.applanding__cta-btn:focus-visible {
  transform: translateY(-2px);
  background: var(--color-accent-hi, var(--color-accent));
  box-shadow: 0 10px 24px -10px color-mix(in oklch, var(--color-accent) 70%, transparent);
  outline: none;
}

.applanding__cta-btn:hover .applanding__cta-arrow,
.applanding__cta-btn:focus-visible .applanding__cta-arrow {
  transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
  .applanding__cta-btn,
  .applanding__cta-arrow { transition: none; }
  .applanding__cta-btn:hover { transform: none; }
  .applanding__cta-btn:hover .applanding__cta-arrow { transform: none; }
}

/* ---- Stats callouts ------------------------------------------------- */

.applanding__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-8);
}
.applanding__stat {
  flex: 1 1 120px;
  text-align: center;
  padding: var(--s-4);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg, 8px);
  background: var(--color-surface-1, var(--color-bg));
}
.applanding__stat-value {
  font-family: var(--font-mono);
  font-size: var(--fs-h2, 1.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}
.applanding__stat-label {
  font-size: var(--fs-12, 0.75rem);
  color: var(--color-text-muted);
  margin-top: var(--s-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}
