/* ─── Zekast feature pages — shared styles ─────────────────────────────
   Loaded via head_extra on each /features/{slug} page. Reuses the
   page-hero / section / sub-h / feat-list / btn vocabulary from
   features.html (the hub) and adds:
   - illustration placeholders (visual slots awaiting screencaps/schemas)
   - feature tier band (single-tier callout above related cards)
   - related cards grid (cross-link block at page bottom)
   - hub grid for the rewritten /features page
   ────────────────────────────────────────────────────────────────────── */

/* Page hero — same as features.html but with cta row */
.feature-page .page-hero { padding: 84px 0 48px; border-bottom: 1px solid var(--rule); }
.feature-page .page-hero .folio {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 20px;
}
.feature-page .page-hero .folio a { color: var(--ink-3); }
.feature-page .page-hero .folio a:hover { color: var(--accent); }
.feature-page .page-hero .folio .sep { opacity: 0.5; }
.feature-page .page-hero h1 {
  font-family: var(--f-display);
  font-weight: var(--hero-h1-weight, 700);
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 24px; text-wrap: balance; max-width: 22ch;
  color: var(--ink);
}
.feature-page .page-hero .lede {
  max-width: 62ch; margin: 0 0 28px;
  font-size: var(--hero-lede-size, 17px);
  font-weight: var(--hero-lede-weight, 400);
  line-height: 1.55;
  color: var(--ink-2);
}
.feature-page .hero-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* Feature-page sections — slightly tighter than features.html */
.feature-page .section { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.feature-page .section:last-of-type { border-bottom: 0; }
/* H2 lives INSIDE the text column (next to paragraphs), not in a band above.
   Keeps title and body visually grouped + aligned at top with the illustration. */
.feature-page .section-body h2,
.feature-page .section-body--with-illu > div > h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 38px);
  letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 20px;  /* gap before first paragraph */
  text-wrap: balance;
  color: var(--ink);
  max-width: 22ch;   /* wraps for readability inside the column */
}
.feature-page .section-body {
  max-width: 72ch; color: var(--ink-2);
  line-height: 1.7; font-size: 16px;
}
.feature-page .section-body p { margin: 0 0 16px; }
.feature-page .section-body p:last-child { margin-bottom: 0; }
/* Breathing room between the intro text and the full-width mockup that
   follows it in `.section--has-mockup` sections (they sat flush before). */
.feature-page .section--has-mockup .section-body { margin-bottom: 48px; }
.feature-page .section-body strong { color: var(--ink); font-weight: 600; }
.feature-page .section-body ol {
  padding-left: 1.4em;
  margin: 0 0 16px;
}
.feature-page .section-body ol li { margin-bottom: 8px; }

/* 2-col modifier identical to features.html for sections-with-illu */
.feature-page .section-body--with-illu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  max-width: none;
}
.feature-page .section-body--illu-left .feat-illu,
.feature-page .section-body--illu-left .feat-illu-placeholder { order: -1; }
@media (max-width: 900px) {
  .feature-page .section-body--with-illu {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-page .section-body--illu-left .feat-illu,
  .feature-page .section-body--illu-left .feat-illu-placeholder { order: initial; }
}

/* ─── Illustration placeholder ─────────────────────────────────────────
   Visible-but-clearly-temporary slot waiting for a screencap or schema.
   Renders a dashed-border box with the slot name + a description of
   what the final image should depict. Designed to NEVER be mistaken for
   shipped final design — bright accent border + monospace caption. */
.feat-illu-placeholder {
  margin: 0;
  width: 100%;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(240, 112, 138, 0.05) 0px,
      rgba(240, 112, 138, 0.05) 8px,
      transparent 8px,
      transparent 16px
    );
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  justify-content: center;
  align-items: stretch;
}
.feat-illu-placeholder--hero { min-height: 320px; }
.feat-illu-placeholder--square { aspect-ratio: 1 / 1; min-height: 0; }
.feat-illu-placeholder .ph-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.feat-illu-placeholder .ph-slot {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
}
.feat-illu-placeholder .ph-desc {
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 56ch;
}
.feat-illu-placeholder .ph-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ─── Feature tier band ───────────────────────────────────────────────
   Single line above related cards. "Inclus dès Plan X → Voir tous les plans". */
.feature-tier-band {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
}
.feature-tier-band .tier-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  justify-content: space-between;
  margin: 0;
}
.feature-tier-band .tier-text {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.feature-tier-band .tier-badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 6px;
  background: var(--accent);
  color: #fff;
}
.feature-tier-band .tier-badge--free { background: #1f9d55; }
.feature-tier-band .tier-badge--starter { background: #2563eb; }
.feature-tier-band .tier-badge--pro { background: var(--accent); }
.feature-tier-band .tier-badge--studio { background: #111; }

/* ─── Related cards (cross-link bottom block) ─────────────────────── */
.feature-related { padding: 88px 0 116px; border-top: 1px solid var(--rule); }
.feature-related h2 {
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.related-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.related-card .related-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.related-card .related-title {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.related-card .related-arrow {
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.related-card:hover .related-arrow { color: var(--accent); }

/* ─── Hub /features — bento grid with editorial weight ────────────────
   Variant sizes : hero (3×2), featured (3×1), medium (2×1), compact (1×1)
   on a 6-col grid for asymmetric rhythm. Each variant has its own type
   scale, padding, and information density so the page reads as a curated
   editorial spread, not a uniform dashboard. */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
  margin: 40px 0 80px;
}

.bento-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bento-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

/* Eyebrow — small mono caption above the title, accent-colored.
   Shared across all bento variants. */
.bento-card .bento-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Title — display font, size varies by variant. */
.bento-card .bento-title {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

/* Description — sans, smaller than title. */
.bento-card .bento-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* Tier pill — bottom-aligned. Reuses the badge color tokens defined
   above in the tier-band rules. */
.bento-card .bento-tier {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bento-card .bento-tier::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tier-color, var(--accent));
}
.bento-card.t-free    { --tier-color: #1f9d55; }
.bento-card.t-starter { --tier-color: #2563eb; }
.bento-card.t-pro     { --tier-color: var(--accent); }
.bento-card.t-studio  { --tier-color: #111; }

/* Arrow CTA — absolute top-right corner, animates on hover. */
.bento-card .bento-arrow {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--ink-3);
  transition: color .18s ease, transform .18s ease;
  line-height: 1;
}
.bento-card:hover .bento-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

/* ─── Variant : HERO (3 cols × 2 rows) ──────────────────────────────
   The flagship card — editorial story with bullet list + bigger title.
   Reserve for the universal entry feature (the player). */
.bento-hero {
  grid-column: span 3;
  grid-row: span 2;
  padding: 32px 32px 28px;
  gap: 16px;
  background:
    linear-gradient(135deg,
      rgba(240, 112, 138, 0.07) 0%,
      rgba(240, 112, 138, 0.0) 60%),
    var(--paper);
}
.bento-hero .bento-title {
  font-size: clamp(28px, 3.2vw, 40px);
  max-width: 18ch;
}
.bento-hero .bento-desc {
  font-size: 16px;
  max-width: 42ch;
}
.bento-hero .bento-bullets {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px 14px;
}
.bento-hero .bento-bullets li {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.bento-hero .bento-bullets li::before {
  content: "·";
  color: var(--accent);
  font-weight: 700;
}

/* ─── Variant : FEATURED (3 cols × 1 row) ───────────────────────────
   Secondary headliners — slightly larger title than medium/compact,
   reserved for the highest-value features (monetisation, hosting). */
.bento-featured {
  grid-column: span 3;
  padding: 24px 28px;
  gap: 10px;
}
.bento-featured .bento-title {
  font-size: clamp(22px, 2.2vw, 26px);
  max-width: 20ch;
}

/* ─── Variant : MEDIUM (2 cols × 1 row) ─────────────────────────────
   The mid-density cards : title + 1-line description + tier. */
.bento-medium {
  grid-column: span 2;
  padding: 20px 22px;
  gap: 8px;
}
.bento-medium .bento-title {
  font-size: 19px;
  max-width: 16ch;
}

/* ─── Variant : MEDIUM-WIDE (3 cols × 1 row) ────────────────────────
   For the bottom medium row that has only 2 cards instead of 3 — they
   each take half the width and look slightly more important than the
   regular medium variant. Used for Transcriptions + Statistiques. */
.bento-medium-wide {
  grid-column: span 3;
  padding: 24px 26px;
  gap: 10px;
}
.bento-medium-wide .bento-title {
  font-size: 21px;
  max-width: 24ch;
}

/* ─── Variant : COMPACT (1 col × 1 row, ~2 in a row of 4) ───────────
   Bottom-row utility tiles : tight, just title + tier. */
.bento-compact {
  grid-column: span 2;  /* Within a 6-col base, 2 cols = 3 across on desktop */
  padding: 18px 20px;
  gap: 6px;
  min-height: 110px;
}
.bento-compact .bento-title {
  font-size: 16px;
  font-weight: 600;
  max-width: 14ch;
}
.bento-compact .bento-desc {
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

/* ─── Responsive ─────────────────────────────────────────────────────
   - Tablet (≤1100) : collapse to 4 cols, hero stays prominent (4×2)
   - Mobile  (≤700) : single column stack, every card full width */
@media (max-width: 1100px) {
  .bento-grid { grid-template-columns: repeat(4, 1fr); }
  .bento-hero { grid-column: span 4; grid-row: span 1; min-height: 240px; }
  .bento-featured { grid-column: span 4; }
  .bento-medium { grid-column: span 2; }
  .bento-medium-wide { grid-column: span 2; padding: 20px 22px; }
  .bento-compact { grid-column: span 2; }
}

@media (max-width: 700px) {
  .bento-grid { grid-template-columns: 1fr; gap: 12px; }
  .bento-hero, .bento-featured, .bento-medium, .bento-medium-wide, .bento-compact {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ─── Idea list — for /features/mixes use-case cards ──────────────── */
.idea-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.idea-list li {
  background: var(--bg-2);
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
  border-left: 3px solid var(--accent);
}

/* ─── Numbered steps — for /features/demarrage ────────────────────── */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  counter-reset: step;
}
.steps-list li {
  position: relative;
  padding: 14px 16px 14px 56px;
  margin-bottom: 8px;
  background: var(--bg-2);
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
  counter-increment: step;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ─── Blockquote — for the §demarrage 5-min hedge ─────────────────── */
.feature-page blockquote {
  border-left: 3px solid var(--ink-3);
  padding: 12px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--ink-3);
  font-style: italic;
  background: var(--bg-2);
  border-radius: 0 8px 8px 0;
}
